Lines Matching +full:no +full:- +full:ether +full:- +full:link
25 # At minimum, we want C++/C99-style // comments.
28 if test "$ac_cv_prog_cc_c99" = "no"; then
36 # Get the size of a void *, to know whether this is a 32-bit or 64-bit build.
41 # Get the size of a time_t, to know whether it's 32-bit or 64-bit.
49 AS_HELP_STRING([--disable-universal],[don't build universal on macOS]))
50 if test "$enable_universal" != "no"; then
55 # Leopard. Build for x86 and 32-bit PowerPC, with
58 V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
59 LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
64 # Snow Leopard. Build for x86-64 and x86, with
65 # x86-64 first. (That's what Apple does.)
67 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
68 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
76 # Do we have pkg-config?
86 [AS_HELP_STRING([--with-smi],
87 [link with libsmi (allows to load MIBs on the fly to decode SNMP packets) [default=yes, if available]])],
104 LIBS="-lsmi $LIBS"
122 if (required < current - age || required > current)
141 1) AC_MSG_RESULT(no - smiInit failed) ;;
142 2) AC_MSG_RESULT(no - header/library version mismatch) ;;
143 3) AC_MSG_RESULT(no - can't determine library version) ;;
144 4) AC_MSG_RESULT(no - too old) ;;
145 *) AC_MSG_RESULT(no) ;;
150 AC_MSG_RESULT(not when cross-compiling)
159 AC_ARG_ENABLE([instrument-functions],
160 [AS_HELP_STRING([--enable-instrument-functions],
161 [enable instrument functions code [default=no]])],
163 [enableval=no])
169 [--enable-instrument-functions was given, but test for library libbfd failed. Please install the 'binutils-dev' package.])],
173 LOCALSRC="$LOCALSRC instrument-functions.c"
174 # Add '-finstrument-functions' instrumentation option to generate
177 CFLAGS="$CFLAGS -O0 -ggdb -finstrument-functions -fno-stack-protector -fno-pic"
178 LDFLAGS="$LDFLAGS -O0 -ggdb -fno-stack-protector -no-pie"
179 LIBS="$LIBS -lbfd"
181 *) AC_MSG_RESULT(no)
185 AC_MSG_CHECKING([whether to enable the possibly-buggy SMB printer])
187 [AS_HELP_STRING([--enable-smb],
188 [enable possibly-buggy SMB printer [default=no]])],
190 [enableval=no])
194 [define if you want to build the possibly-buggy SMB printer])
195 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
197 *) AC_MSG_RESULT(no)
204 [AS_HELP_STRING([--with-user=USERNAME],
208 [withval=no])
210 [no], [AC_MSG_RESULT(no)],
211 [''|yes], [AC_MSG_ERROR([--with-user requires a username])],
222 [AS_HELP_STRING([--with-chroot=DIRECTORY],
226 [withval=no]
229 [no], [AC_MSG_RESULT(no)],
230 [''|yes], [AC_MSG_ERROR([--with-chroot requires a directory])],
238 AC_ARG_WITH(sandbox-capsicum,
239 AS_HELP_STRING([--with-sandbox-capsicum],
253 # XXX - do we need to check for all of them, or are there some that, if
256 if test -z "$with_sandbox_capsicum" || test "$with_sandbox_capsicum" != "no" ; then
269 AC_CHECK_LIB(casper, cap_init, LIBS="$LIBS -lcasper")
270 AC_CHECK_LIB(cap_dns, cap_gethostbyaddr, LIBS="$LIBS -lcap_dns")
273 if test "x$ac_lbl_capsicum_function_seen" = "xyes" -a "x$ac_lbl_capsicum_function_not_seen" != "xyes"; then
277 AC_MSG_RESULT(no)
280 if test "x$ac_cv_lib_casper_cap_init" = "xyes" -a "x$ac_cv_lib_cap_dns_cap_gethostbyaddr" = "xyes"; then
284 AC_MSG_RESULT(no)
332 AC_MSG_RESULT(no)
333 ipv6=no
339 ipv6trylibc=no
343 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
366 linux-glibc)
375 linux-libinet6)
381 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
386 CFLAGS="-I/usr/inet6/include $CFLAGS"
408 CFLAGS="-I/usr/local/v6/include $CFLAGS"])
428 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
429 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
430 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
436 echo 'Fatal: no $ipv6lib library found. cannot continue.'
464 # Testing the 64-bit conversion specifiers in addition to that requires the
486 snprintf(buf, sizeof(buf), "%zd", -sizeof(buf));
487 if (strncmp(buf, "-100", sizeof(buf)))
490 snprintf(buf, sizeof(buf), "%" PRId64, -t);
491 if (strncmp(buf, "-4294967296", sizeof(buf)))
514 AC_MSG_RESULT(no)
520 AC_MSG_RESULT(not while cross-compiling)
524 AC_CHECK_LIB(rpc, main) dnl It's unclear why we might need -lrpc
526 dnl Some platforms may need -lnsl for getrpcbynumber.
533 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
534 # libraries (e.g., "-lsocket -lnsl" on Solaris).
539 # Some might have it and declare it in <netinet/ether.h>
551 #include <netinet/ether.h>
567 ], [ac_cv_buggy_ether_ntohost=no],
569 [ac_cv_buggy_ether_ntohost="not while cross-compiling"])])
570 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
575 if test "$ac_cv_func_ether_ntohost" = yes -a \
576 "$ac_cv_buggy_ether_ntohost" = "no"; then
596 # No, how about <netinet/ether.h>, as on Linux?
598 # This test fails if we don't have <netinet/ether.h>
609 [Define to 1 if netinet/ether.h declares `ether_ntohost'])
612 #include <netinet/ether.h>
620 # No, how about <sys/ethernet.h>, as on Solaris 10
645 # No, how about <arpa/inet.h>, as in AIX?
672 # No, how about <netinet/if_ether.h>?
710 # No, we'll have to declare it ourselves.
804 if test $ac_cv_func_pcap_lib_version = "no" ; then
813 [ac_lbl_cv_pcap_version_defined=no])
818 AC_MSG_RESULT(no)
824 # why we don't check for remote-capture APIs if we're building
836 if test "$ac_cv_func_pcap_set_parser_debug" = "no" ; then
849 [ac_lbl_cv_pcap_debug_defined=no])
854 AC_MSG_RESULT(no)
866 [ac_lbl_cv_yydebug_defined=no])
871 AC_MSG_RESULT(no)
938 # Check whether we have pcap/pcap-inttypes.h.
941 AC_CHECK_HEADERS(pcap/pcap-inttypes.h)
951 # Define the old BSD specified-width types in terms of the C99 types;
989 AS_HELP_STRING([--with-crypto]@<:@=DIR@:>@,
992 if test $withval = no
994 # User doesn't want to link with libcrypto.
995 want_libcrypto=no
996 AC_MSG_RESULT(no)
999 # User wants to link with libcrypto but hasn't specified
1004 # User wants to link with libcrypto and has specified
1012 # Use libcrypto if it's present, otherwise don't; no directory
1018 if test "$want_libcrypto" != "no"; then
1022 if test -z "$libcrypto_root"; then
1024 # No.
1026 # First, try looking for it with pkg-config, if we have it.
1028 # Homebrew's pkg-config does not, by default, look for
1029 # pkg-config files for packages it has installed.
1031 # dumped in package-specific directories whose paths are
1032 # not only package-specific but package-version-specific.
1035 # PKG_CONFIG_PATH from "brew --env openssl" and add that
1036 # to PKG_CONFIG_PATH. (No, we can't just assume it's under
1040 # That's the nice thing about Homebrew - it makes things easier!
1044 if test -n "$BREW"; then
1045 openssl_pkgconfig_dir=`$BREW --env --plain openssl | sed -n 's/PKG_CONFIG_PATH: //p'`
1061 if test "x$HAVE_LIBCRYPTO" != "xyes" -a -n "$BREW"; then
1065 # $BREW --prefix --installed <formula>
1074 if $BREW --prefix --installed openssl >/dev/null 2>&1; then
1077 # directory. (No, we can't just assume it's
1083 openssl_path=`$BREW --prefix openssl`
1084 LIBCRYPTO_CFLAGS="-I$openssl_path/include"
1085 LIBCRYPTO_LIBS="-L$openssl_path/lib -lcrypto"
1087 AC_MSG_RESULT(no)
1105 if test "x$HAVE_LIBCRYPTO" != "xyes" -a -d "/usr/local/include" -a -d "/usr/local/lib"; then
1107 CFLAGS="$CFLAGS -I/usr/local/include"
1108 LIBS="$LIBS -L/usr/local/lib -lcrypto"
1121 LIBCRYPTO_CFLAGS="-I/usr/local/include"
1122 LIBCRYPTO_LIBS="-L/usr/local/lib -lcrypto"
1124 AC_MSG_RESULT(no))
1135 # as a shared library but doesn't provide headers - Apple,
1145 LIBS="$LIBS -lcrypto"
1158 LIBCRYPTO_LIBS="-lcrypto"
1160 AC_MSG_RESULT(no))
1170 CFLAGS="$CFLAGS -I$libcrypto_root/include"
1171 LIBS="$LIBS -L$libcrypto_root/lib -lcrypto"
1184 LIBCRYPTO_CFLAGS="-I$libcrypto_root/include"
1185 LIBCRYPTO_LIBS="-L$libcrypto_root/lib -lcrypto"
1187 AC_MSG_RESULT(no))
1195 AC_DEFINE([HAVE_LIBCRYPTO], [1], [Define to 1 if you have a usable `crypto' library (-lcrypto).])
1200 # make sure they come after any -I or -L flags for
1201 # a local libpcap - those must take precedence of any
1232 # Check for libcap-ng
1233 AC_MSG_CHECKING(whether to use libcap-ng)
1237 AS_HELP_STRING([--with-cap-ng],
1238 [use libcap-ng @<:@default=yes, if available@:>@]),
1240 if test $withval = no
1242 want_libcap_ng=no
1243 AC_MSG_RESULT(no)
1251 # Use libcap-ng if it's present, otherwise don't.
1256 if test "$want_libcap_ng" != "no"; then
1257 AC_CHECK_LIB(cap-ng, capng_change_id)
1258 AC_CHECK_HEADERS(cap-ng.h)
1264 CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
1265 V_INCLS="$V_INCLS -I$srcdir/missing"
1280 AC_CONFIG_COMMANDS([.devel],[[if test -f .devel; then
1281 echo timestamp > stamp-h
1282 cat $srcdir/Makefile-devel-adds >> Makefile