Lines Matching +full:lo +full:- +full:en

1 #                                               -*- Autoconf -*-
16 AC_INIT([unbound],m4_defn([VERSION_MAJOR]).m4_defn([VERSION_MINOR]).m4_defn([VERSION_MICRO]),[unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues],[unbound])
31 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
36 # 1.4.0-snapshots had 1:5:0
122 # Current -- the number of the binary API that we're implementing
123 # Revision -- which iteration of the implementation of the binary
125 # Age -- How many previous binary API versions do we also
145 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
169 if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
190 AS_HELP_STRING([--with-conf-file=path],[Pathname to the Unbound configuration file]),
199 AC_ARG_WITH(run-dir,
200 AS_HELP_STRING([--with-run-dir=path],[set default directory to chdir to (by default dir part of cfg file)]),
212 AC_ARG_WITH(chroot-dir,
213 AS_HELP_STRING([--with-chroot-dir=path],[set default directory to chroot to (by default same as run-dir)]),
225 AC_ARG_WITH(share-dir,
226 AS_HELP_STRING([--with-share-dir=path],[set default directory with shared data (by default same as share/unbound)]),
233 AS_HELP_STRING([--with-pidfile=filename],[set default pathname to unbound pidfile (default run-dir/unbound.pid)]),
245 AC_ARG_WITH(rootkey-file,
246 AS_HELP_STRING([--with-rootkey-file=filename],[set default pathname to root key file (default run-dir/root.key). This file is read and written.]),
258 AC_ARG_WITH(rootcert-file,
259 AS_HELP_STRING([--with-rootcert-file=filename],[set default pathname to root update certificate file (default run-dir/icannbundle.pem). This file need not exist if you are content with the builtin.]),
272 AS_HELP_STRING([--with-username=user],[set default user that unbound changes to (default user is unbound)]),
282 # Check for 'grep -e' program, here, since ACX_CHECK_FLTO needs that.
288 # allow user to override the -g -O2 flags.
291 ACX_CHECK_COMPILER_FLAG(g, [CFLAGS="$CFLAGS -g"])
292 ACX_CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"])
300 AC_ARG_ENABLE(checking, AS_HELP_STRING([--enable-checking],[Enable warnings, asserts, makefile-dependencies]))
301 AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],[same as enable-checking]))
307 ACX_CHECK_COMPILER_FLAG(W, [CFLAGS="$CFLAGS -W"])
308 ACX_CHECK_COMPILER_FLAG(Wall, [CFLAGS="$CFLAGS -Wall"])
309 ACX_CHECK_COMPILER_FLAG(Wextra, [CFLAGS="$CFLAGS -Wextra"])
310 ACX_CHECK_COMPILER_FLAG(Wdeclaration-after-statement, [CFLAGS="$CFLAGS -Wdeclaration-after-statement"])
332 AC_MSG_CHECKING(whether the C compiler (${CC-cc}) accepts the "weak" attribute)
355 AC_MSG_CHECKING(whether the C compiler (${CC-cc}) accepts the "noreturn" attribute)
378 AC_MSG_CHECKING(whether the C compiler (${CC-cc}) accepts the "fallthrough" attribute)
380 CFLAGS="$CFLAGS -Werror"
418 CPPFLAGS="$CPPFLAGS -I$srcdir"
423 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
433 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
444 if test "$LEX" != "" -a "$LEX" != ":"; then
447 if test "$LEX" != "" -a "$LEX" != ":"; then
450 if test "$LEX" = "" -o "$LEX" = ":"; then
451 if test ! -f util/configlexer.c; then
456 if test "$YACC" = "" -o "$YACC" = ":"; then
457 if test ! -f util/configparser.c; then
465 # pkg-config is only needed for these options, do not require it otherwise
466 if test "$enable_systemd" = "yes" -o "$enable_dnstap" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
473 # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
583 res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
612 if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
613 if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
620 # Include systemd.m4 - begin
622 # Include systemd.m4 - end
625 AC_ARG_ENABLE(alloc-checks, AS_HELP_STRING([--enable-alloc-checks],[ enable to memory allocation statistics, for debug purposes ]),
627 AC_ARG_ENABLE(alloc-lite, AS_HELP_STRING([--enable-alloc-lite],[ enable for lightweight alloc assertions, for debug purposes ]),
629 AC_ARG_ENABLE(alloc-nonregional, AS_HELP_STRING([--enable-alloc-nonregional],[ enable nonregional allocs, slow but exposes regional allocations to other memory purifiers, for debug purposes ]),
636 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
638 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
672 # the non-threadsafe C libraries.
673 AC_ARG_WITH(pthreads, AS_HELP_STRING([--with-pthreads],[use pthreads library, or --without-pthreads to disable threading support.]),
679 if test -n "$PTHREAD_LIBS"; then
689 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
690 AC_MSG_CHECKING([if -pthread unused during linking])
698 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&AS_MESSAGE_LOG_FD
699 $CC $CFLAGS -c conftest.c -o conftest.o 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD
702 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&AS_MESSAGE_LOG_FD
703 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD
704 if test $? -ne 0; then
706 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
707 PTHREAD_CFLAGS_ONLY="-pthread"
715 rm -f conftest conftest.c conftest.o
716 fi # endif -pthread in CFLAGS
722 AC_ARG_WITH(solaris-threads, AS_HELP_STRING([--with-solaris-threads],[use solaris native thread library.]), [ ],[ withval="no" ])
726 AC_MSG_WARN([Have pthreads already, ignoring --with-solaris-threads])
732 ACX_CHECK_COMPILER_FLAG(mt, [CFLAGS="$CFLAGS -mt"],
733 [CFLAGS="$CFLAGS -D_REENTRANT"])
741 fi # end of non-mingw check of thread libraries
744 AC_ARG_WITH(syslog-facility, AS_HELP_STRING([--with-syslog-facility=LOCAL0 - LOCAL7],[ set SYSLOG_FACILITY, default DAEMON ]),
748 LOCAL[[0-7]]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
757 AS_HELP_STRING([--with-dynlibmodule],[build dynamic library module, or --without-dynlibmodule to disable it. (default=no)]),
764 DYNLIBMOD_OBJ="dynlibmod.lo"
769 # link with -ldl if not already there, for all executables because
773 DYNLIBMOD_EXTRALIBS="-export-dynamic"
775 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
782 AS_HELP_STRING([--with-pyunbound],[build PyUnbound, or --without-pyunbound to skip it. (default=no)]),
794 AS_HELP_STRING([--with-pythonmodule],[build Python module, or --without-pythonmodule to disable script engine. (default=no)]),
810 if test ! -z "$PYTHON_VERSION"; then
812 if test "$PYTHON_VERSION_MAJOR" -lt 2; then
815 if test "$PYTHON_VERSION_MAJOR" -eq 2 -a "$PYTHON_VERSION_MINOR" -lt 4; then
822 [PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"]
827 if test -n "$LIBS"; then
835 if test -n "$CPPFLAGS"; then
840 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
851 AC_ARG_ENABLE(swig-version-check, AS_HELP_STRING([--disable-swig-version-check],[Disable swig version check to build python modules with older swig even though that is unreliable]))
858 if test ! -x "$SWIG"; then
871 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
875 PYTHONMOD_INSTALL=pythonmod-install
877 PYTHONMOD_UNINSTALL=pythonmod-uninstall
886 PYUNBOUND_OBJ="libunbound_wrap.lo"
890 PYUNBOUND_INSTALL=pyunbound-install
892 PYUNBOUND_UNINSTALL=pyunbound-uninstall
904 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
910 GCC_DOCKER_LINTFLAGS='-syntax'
921 AC_ARG_WITH([nss], AS_HELP_STRING([--with-nss=path],[use libnss instead of openssl, installed at path.]),
925 if test "$withval" != "" -a "$withval" != "yes"; then
926 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
927 LDFLAGS="$LDFLAGS -L$withval/lib"
929 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
931 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
932 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
934 LIBS="$LIBS -lnss3 -lnspr4"
943 AC_ARG_WITH([nettle], AS_HELP_STRING([--with-nettle=path],[use libnettle as crypto library, installed at path.]),
947 AC_CHECK_HEADERS([nettle/dsa-compat.h],,, [AC_INCLUDES_DEFAULT])
948 if test "$withval" != "" -a "$withval" != "yes"; then
949 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
950 LDFLAGS="$LDFLAGS -L$withval/lib"
953 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
955 LIBS="$LIBS -lhogweed -lnettle -lgmp"
963 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
966 SSLLIB="-lssl"
971 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
973 LIBS="-lssl $LIBS"
974 AC_MSG_CHECKING([if libssl needs -lcrypt32])
984 LIBS="$LIBS -lcrypt32"
1000 # these check_funcs need -lssl
1002 LIBS="-lssl $LIBS"
1066 AC_ARG_WITH([libbsd], AS_HELP_STRING([--with-libbsd],[Use portable libbsd functions]), [
1068 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
1079 AC_ARG_ENABLE(sha1, AS_HELP_STRING([--disable-sha1],[Disable SHA1 RRSIG support, does not disable nsec3 support]))
1089 AC_ARG_ENABLE(sha2, AS_HELP_STRING([--disable-sha2],[Disable SHA256 and SHA512 RRSIG support]))
1098 AC_ARG_ENABLE(subnet, AS_HELP_STRING([--enable-subnet],[Enable client subnet]))
1102 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
1104 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
1117 if test -n "$ssldir"; then
1118 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib"
1136 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
1160 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
1173 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
1210 AC_ARG_ENABLE(gost, AS_HELP_STRING([--disable-gost],[Disable GOST support]))
1212 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
1228 AC_ARG_ENABLE(ecdsa, AS_HELP_STRING([--disable-ecdsa],[Disable ECDSA support]))
1234 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
1237 AC_CHECK_DECL([OPENSSL_NO_EC], [AC_MSG_ERROR([OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa])
1243 AC_CHECK_FUNC(ECDSA_sign, [], [AC_MSG_ERROR([OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa])])
1244 AC_CHECK_FUNC(SHA384_Init, [], [AC_MSG_ERROR([OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa])])
1246 AC_CHECK_DECLS([NID_X9_62_prime256v1, NID_secp384r1], [], [AC_MSG_ERROR([OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa])], [AC_INCLUDES_DEFAULT
1269 AC_ARG_ENABLE(dsa, AS_HELP_STRING([--disable-dsa],[Disable DSA support]))
1274 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
1278 ], [if test "x$enable_dsa" = "xyes"; then AC_MSG_ERROR([OpenSSL does not support DSA and you used --enable-dsa.])
1297 ], [if test "x$enable_dsa" = "xyes"; then AC_MSG_ERROR([OpenSSL does not support DSA and you used --enable-dsa.])
1309 AC_ARG_WITH(deprecate-rsa-1024, AS_HELP_STRING([--with-deprecate-rsa-1024],[Deprecate RSA 1024 bit length, makes that an unsupported key, for use when OpenSSL FIPS refuses 1024 bit verification]))
1314 AC_ARG_ENABLE(ed25519, AS_HELP_STRING([--disable-ed25519],[Disable ED25519 support]))
1320 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
1323 ], [ if test "x$enable_ed25519" = "xyes"; then AC_MSG_ERROR([OpenSSL does not support ED25519 and you used --enable-ed25519.])
1337 AC_ARG_ENABLE(ed448, AS_HELP_STRING([--disable-ed448],[Disable ED448 support]))
1343 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
1346 ], [ if test "x$enable_ed448" = "xyes"; then AC_MSG_ERROR([OpenSSL does not support ED448 and you used --enable-ed448.])
1357 AC_ARG_ENABLE(event-api, AS_HELP_STRING([--enable-event-api],[Enable (experimental) pluggable event base libunbound API installed to unbound-event.h]))
1360 AC_SUBST(UNBOUND_EVENT_INSTALL, [unbound-event-install])
1361 AC_SUBST(UNBOUND_EVENT_UNINSTALL, [unbound-event-uninstall])
1367 AC_ARG_ENABLE(tfo-client, AS_HELP_STRING([--enable-tfo-client],[Enable TCP Fast Open for client mode]))
1372 [AC_MSG_ERROR([TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client])],
1379 [AC_MSG_ERROR([TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client])],
1391 AC_ARG_ENABLE(tfo-server, AS_HELP_STRING([--enable-tfo-server],[Enable TCP Fast Open for server mode]))
1394 AC_CHECK_DECL([TCP_FASTOPEN], [AC_MSG_WARN([Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO])], [AC_MSG_ERROR([TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server])], [AC_INCLUDES_DEFAULT
1404 AC_ARG_WITH(libevent, AS_HELP_STRING([--with-libevent=pathname],[use libevent (will check /usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr or you can specify an explicit path). Slower, but allows use of large outgoing port ranges.]),
1409 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
1414 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
1418 CPPFLAGS="$CPPFLAGS -I$thedir/include"
1424 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
1427 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
1434 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
1435 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
1436 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
1440 LATE_LDFLAGS="build/libevent/*.lo -lm"
1441 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
1444 You can restart ./configure --with-libevent=no to use a builtin alternative.
1451 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
1452 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
1456 if test "$thedir" != "/usr" -a "$thedir" != ""; then
1457 LDFLAGS="$LDFLAGS -L$thedir/lib"
1480 AC_CHECK_FUNCS([event_assign]) # in libevent, for thread-safety
1490 if test -n "$BAK_LDFLAGS_SET"; then
1498 AC_ARG_WITH(libexpat, AS_HELP_STRING([--with-libexpat=path],[specify explicit path for libexpat.]),
1503 if test -f "$dir/include/expat.h"; then
1507 CPPFLAGS="$CPPFLAGS -I$dir/include"
1508 LDFLAGS="$LDFLAGS -L$dir/lib"
1523 AC_ARG_WITH(libhiredis, AS_HELP_STRING([--with-libhiredis=path],[specify explicit path for libhiredis.]),
1526 if test x_$withval = x_yes -o x_$withval != x_no; then
1528 if test x_$withval = x_ -o x_$withval = x_yes; then
1532 if test -f "$dir/include/hiredis/hiredis.h"; then
1536 CPPFLAGS="$CPPFLAGS -I$dir/include"
1537 LDFLAGS="$LDFLAGS -L$dir/lib"
1541 LIBS="$LIBS -lhiredis"
1555 AC_ARG_WITH(libnghttp2, AS_HELP_STRING([--with-libnghttp2=path],[specify explicit path for libnghttp2.]),
1558 if test x_$withval = x_yes -o x_$withval != x_no; then
1560 if test x_$withval = x_ -o x_$withval = x_yes; then
1564 if test -f "$dir/include/nghttp2/nghttp2.h"; then
1568 CPPFLAGS="$CPPFLAGS -I$dir/include"
1569 LDFLAGS="$LDFLAGS -L$dir/lib"
1573 LIBS="$LIBS -lnghttp2"
1587 AC_ARG_WITH(libngtcp2, AS_HELP_STRING([--with-libngtcp2=path],[specify explicit path for libngtcp2, for QUIC.]),
1590 if test x_$withval = x_yes -o x_$withval != x_no; then
1592 if test x_$withval = x_ -o x_$withval = x_yes; then
1596 if test -f "$dir/include/ngtcp2/ngtcp2.h"; then
1600 CPPFLAGS="$CPPFLAGS -I$dir/include"
1601 LDFLAGS="$LDFLAGS -L$dir/lib"
1605 LIBS="$LIBS -lngtcp2"
1619 AC_CHECK_LIB([ngtcp2_crypto_openssl], [ngtcp2_crypto_encrypt_cb], [ LIBS="$LIBS -lngtcp2_crypto_openssl" ])
1620 AC_CHECK_LIB([ngtcp2_crypto_quictls], [ngtcp2_crypto_encrypt_cb], [ LIBS="$LIBS -lngtcp2_crypto_quictls" ])
1647 AC_ARG_ENABLE(static-exe, AS_HELP_STRING([--enable-static-exe],[ enable to compile executables statically against (event) uninstalled libs, for debug purposes ]),
1650 staticexe="-static"
1652 staticexe="-all-static"
1657 LIBS="$LIBS -lgdi32"
1659 AC_CHECK_LIB([z], [compress], [ LIBS="$LIBS -lz" ])
1660 if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then
1663 LIBS="$LIBS -l:libssp.a"
1669 AC_ARG_ENABLE(fully-static, AS_HELP_STRING([--enable-fully-static],[ enable to compile fully static ]),
1672 staticexe="-all-static"
1678 LIBS="$LIBS -lgdi32"
1680 AC_CHECK_LIB([z], [compress], [ LIBS="$LIBS -lz" ])
1681 if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then
1684 LIBS="$LIBS -l:libssp.a"
1690 AC_ARG_ENABLE(lock_checks, AS_HELP_STRING([--enable-lock-checks],[ enable to check lock and unlock calls, for debug purposes ]),
1694 CHECKLOCK_OBJ="checklocks.lo"
1706 LIBS="$LIBS -liphlpapi"
1708 LIBS="$LIBS -liphlpapi -lcrypt32"
1710 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
1714 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
1720 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
1729 AC_LIBOBJ([fake-rfc2553])
1817 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
1819 AC_DEFINE(DARWIN_BROKEN_SETREUID, 1, [Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work])
1886 dnl without CTIME, ARC4-functions and without reallocarray.
1930 LIBS="$LIBS -lmd"
1957 AC_ARG_ENABLE(allsymbols, AS_HELP_STRING([--enable-allsymbols],[export all symbols from libunbound and link binaries to it, smaller install size but libunbound export table is polluted by internal symbols]))
1963 AC_DEFINE(EXPORT_ALL_SYMBOLS, 1, [Define this if you enabled-allsymbols from libunbound to link binaries to it for smaller install size, but the libunbound export table is polluted by internal symbols])
1967 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
1975 UBSYMS="-export-symbols clubsyms.def"
2002 AC_SUBST(DNSTAP_SOCKET_TESTBIN,['unbound-dnstap-socket$(EXEEXT)'])
2003 AC_SUBST([DNSTAP_SRC], ["dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"])
2004 AC_SUBST([DNSTAP_OBJ], ["dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"])
2017 AC_SUBST([DNSCRYPT_OBJ], ["dnscrypt.lo"])
2025 AC_ARG_ENABLE(cachedb, AS_HELP_STRING([--enable-cachedb],[enable cachedb module that can use external cache storage]))
2032 AC_SUBST([CACHEDB_OBJ], ["cachedb.lo redis.lo"])
2040 AC_ARG_ENABLE(ipsecmod, AS_HELP_STRING([--enable-ipsecmod],[Enable ipsecmod module that facilitates opportunistic IPsec]))
2044 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
2046 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
2055 AC_ARG_ENABLE(ipset, AS_HELP_STRING([--enable-ipset],[enable ipset module]))
2061 IPSET_OBJ="ipset.lo"
2067 AC_ARG_WITH(libmnl, AS_HELP_STRING([--with-libmnl=path],[specify explicit path for libmnl.]),
2071 if test x_$withval = x_ -o x_$withval = x_yes; then
2075 if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then
2079 if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then
2082 if test "$dir" != "/usr" -o -n "$extralibmnl"; then
2083 CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl"
2086 LDFLAGS="$LDFLAGS -L$dir/lib"
2089 LIBS="$LIBS -lmnl"
2105 AC_ARG_ENABLE(explicit-port-randomisation, AS_HELP_STRING([--disable-explicit-port-randomisation],[disable explicit source port randomisation and rely on the kernel to provide random source ports]))
2114 if echo "$host" | $GREP -i -e linux >/dev/null; then
2115 AC_ARG_ENABLE(linux-ip-local-port-range, AS_HELP_STRING([--enable-linux-ip-local-port-range], [Define this to enable use of /proc/sys/net/ipv4/ip_local_port_range as a default outgoing port range. This is only for the libunbound on Linux and does not affect unbound resolving daemon itself. This may severely limit the number of available outgoing ports and thus decrease randomness. Define this only when the target system restricts (e.g. some of SELinux enabled distributions) the use of non-ephemeral ports.]))
2118 AC_DEFINE([USE_LINUX_IP_LOCAL_PORT_RANGE], [1], [Define this to enable use of /proc/sys/net/ipv4/ip_local_port_range as a default outgoing port range. This is only for the libunbound on Linux and does not affect unbound resolving daemon itself. This may severely limit the number of available outgoing ports and thus decrease randomness. Define this only when the target system restricts (e.g. some of SELinux enabled distributions) the use of non-ephemeral ports.])
2126 AC_MSG_CHECKING([if ${MAKE:-make} supports $< with implicit rule in scope])
2131 all: conftest.lo
2133 conftest.lo foo.lo bla.lo:
2134 if test -f "\$<"; then touch \$@; fi
2136 .SUFFIXES: .lo
2137 .c.lo:
2138 if test -f "\$<"; then touch \$@; fi
2140 conftest.lo: conftest.dir/conftest.c
2144 rm -f conftest.lo conftest.c
2145 ${MAKE:-make} -f conftest.make >/dev/null
2146 rm -f conftest.make conftest.c conftest.dir/conftest.c
2147 rm -rf conftest.dir
2148 if test ! -f conftest.lo; then
2150 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
2157 rm -f conftest.lo
2163 INSTALLTARGET="install-all"
2164 AC_ARG_WITH(libunbound-only, AS_HELP_STRING([--with-libunbound-only],[do not build daemon and tool programs]),
2168 INSTALLTARGET="install-lib"
2173 AC_MSG_ERROR([--with-nss can only be used in combination with --with-libunbound-only.])
2176 AC_MSG_ERROR([--with-nettle can only be used in combination with --with-libunbound-only.])
2184 if test -n "$LATE_LDFLAGS"; then
2188 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
2189 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
2209 /** Use small-ldns codebase */
2409 #include "compat/fake-rfc2553.h"
2450 ub-dns-control 8953/tcp unbound dns nameserver control */
2452 /** the version of unbound-control that this software implements */
2463 AC_CONFIG_FILES([Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service contrib/unbound_portable.service])