Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/tcpdump/configure
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 699 Lines • ▼ Show 20 Lines | |||||
with_gcc | with_gcc | ||||
enable_universal | enable_universal | ||||
with_smi | with_smi | ||||
enable_smb | enable_smb | ||||
with_user | with_user | ||||
with_chroot | with_chroot | ||||
with_sandbox_capsicum | with_sandbox_capsicum | ||||
enable_ipv6 | enable_ipv6 | ||||
with_system_libpcap | |||||
with_crypto | with_crypto | ||||
with_cap_ng | |||||
' | ' | ||||
ac_precious_vars='build_alias | ac_precious_vars='build_alias | ||||
host_alias | host_alias | ||||
target_alias | target_alias | ||||
CC | CC | ||||
CFLAGS | CFLAGS | ||||
LDFLAGS | LDFLAGS | ||||
LIBS | LIBS | ||||
▲ Show 20 Lines • Show All 619 Lines • ▼ Show 20 Lines | |||||
Optional Packages: | Optional Packages: | ||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||||
--without-gcc don't use gcc | --without-gcc don't use gcc | ||||
--with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes | --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes | ||||
--without-smi don't link with libsmi | --without-smi don't link with libsmi | ||||
--with-user=USERNAME drop privileges by default to USERNAME | --with-user=USERNAME drop privileges by default to USERNAME | ||||
--with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY | --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY | ||||
--with-sandbox-capsicum | --with-sandbox-capsicum use Capsicum security functions [default=yes, if | ||||
available] | |||||
--with-system-libpcap don't use local pcap library | |||||
--with-crypto use OpenSSL libcrypto [default=yes, if available] | --with-crypto use OpenSSL libcrypto [default=yes, if available] | ||||
--with-cap-ng use libcap-ng [default=yes, if available] | |||||
Some influential environment variables: | Some influential environment variables: | ||||
CC C compiler command | CC C compiler command | ||||
CFLAGS C compiler flags | CFLAGS C compiler flags | ||||
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||||
nonstandard directory <lib dir> | nonstandard directory <lib dir> | ||||
LIBS libraries to pass to the linker, e.g. -l<library> | LIBS libraries to pass to the linker, e.g. -l<library> | ||||
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||||
▲ Show 20 Lines • Show All 3,172 Lines • ▼ Show 20 Lines | if test "${with_sandbox_capsicum+set}" = set; then : | ||||
withval=$with_sandbox_capsicum; | withval=$with_sandbox_capsicum; | ||||
fi | fi | ||||
# | # | ||||
# Check whether various functions are available. If any are, set | # Check whether various functions are available. If any are, set | ||||
# ac_lbl_capsicum_function_seen to yes; if any are not, set | # ac_lbl_capsicum_function_seen to yes; if any are not, set | ||||
# ac_lbl_capsicum_function_not_seen to yes. | # ac_lbl_capsicum_function_not_seen to yes. | ||||
# | # | ||||
# All of them must be available in order to enable capsicum sandboxing. | # We don't check cap_rights_init(), as it's a macro, wrapping another | ||||
# function, in at least some versions of FreeBSD, and AC_CHECK_FUNCS() | |||||
# doesn't handle that. | |||||
# | # | ||||
# All of the ones we check for must be available in order to enable | |||||
# capsicum sandboxing. | |||||
# | |||||
# XXX - do we need to check for all of them, or are there some that, if | |||||
# present, imply others are present? | |||||
# | |||||
if test ! -z "$with_sandbox-capsicum" && test "$with_sandbox-capsicum" != "no" ; then | if test ! -z "$with_sandbox-capsicum" && test "$with_sandbox-capsicum" != "no" ; then | ||||
for ac_func in cap_enter cap_rights_init cap_rights_limit cap_ioctls_limit openat | for ac_func in cap_enter cap_rights_limit cap_ioctls_limit openat | ||||
do : | do : | ||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | ||||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
_ACEOF | _ACEOF | ||||
ac_lbl_capsicum_function_seen=yes | ac_lbl_capsicum_function_seen=yes | ||||
▲ Show 20 Lines • Show All 285 Lines • ▼ Show 20 Lines | |||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5 | ||||
$as_echo_n "checking whether to enable ipv6... " >&6; } | $as_echo_n "checking whether to enable ipv6... " >&6; } | ||||
# Check whether --enable-ipv6 was given. | # Check whether --enable-ipv6 was given. | ||||
if test "${enable_ipv6+set}" = set; then : | if test "${enable_ipv6+set}" = set; then : | ||||
enableval=$enable_ipv6; case "$enableval" in | enableval=$enable_ipv6; case "$enableval" in | ||||
yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
$as_echo "yes" >&6; } | $as_echo "yes" >&6; } | ||||
LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC" | LOCALSRC="print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC" | ||||
$as_echo "#define INET6 1" >>confdefs.h | $as_echo "#define INET6 1" >>confdefs.h | ||||
ipv6=yes | ipv6=yes | ||||
;; | ;; | ||||
*) | *) | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
$as_echo "no" >&6; } | $as_echo "no" >&6; } | ||||
Show All 18 Lines | |||||
#error "AF_INET6 not defined" | #error "AF_INET6 not defined" | ||||
#endif | #endif | ||||
_ACEOF | _ACEOF | ||||
if ac_fn_c_try_compile "$LINENO"; then : | if ac_fn_c_try_compile "$LINENO"; then : | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
$as_echo "yes" >&6; } | $as_echo "yes" >&6; } | ||||
LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC" | LOCALSRC="print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC" | ||||
$as_echo "#define INET6 1" >>confdefs.h | $as_echo "#define INET6 1" >>confdefs.h | ||||
ipv6=yes | ipv6=yes | ||||
else | else | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
$as_echo "no" >&6; } | $as_echo "no" >&6; } | ||||
ipv6=no | ipv6=no | ||||
▲ Show 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | |||||
if test "$ac_res" != no; then : | if test "$ac_res" != no; then : | ||||
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 | ||||
$as_echo_n "checking getaddrinfo bug... " >&6; } | $as_echo_n "checking getaddrinfo bug... " >&6; } | ||||
if ${td_cv_buggygetaddrinfo+:} false; then : | if ${td_cv_buggygetaddrinfo+:} false; then : | ||||
$as_echo_n "(cached) " >&6 | $as_echo_n "(cached) " >&6 | ||||
else | else | ||||
if test "$cross_compiling" = yes; then : | if test "$cross_compiling" = yes; then : | ||||
td_cv_buggygetaddrinfo=yes | td_cv_buggygetaddrinfo=unknown | ||||
else | else | ||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||||
/* end confdefs.h. */ | /* end confdefs.h. */ | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <netdb.h> | #include <netdb.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
▲ Show 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||||
conftest.$ac_objext conftest.beam conftest.$ac_ext | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||||
fi | fi | ||||
fi | fi | ||||
if test "$td_cv_buggygetaddrinfo" = no; then | if test "$td_cv_buggygetaddrinfo" = no; then | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5 | ||||
$as_echo "good" >&6; } | $as_echo "good" >&6; } | ||||
elif test "$td_cv_buggygetaddrinfo" = unknown; then | |||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5 | |||||
$as_echo "unknown (cross-compiling)" >&6; } | |||||
else | else | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 | ||||
$as_echo "buggy" >&6; } | $as_echo "buggy" >&6; } | ||||
fi | fi | ||||
if test "$td_cv_buggygetaddrinfo" = "yes"; then | if test "$td_cv_buggygetaddrinfo" = "yes"; then | ||||
# | # | ||||
# XXX - it doesn't appear that "ipv6type" can ever be | # XXX - it doesn't appear that "ipv6type" can ever be | ||||
▲ Show 20 Lines • Show All 562 Lines • ▼ Show 20 Lines | |||||
done | done | ||||
if test $ac_cv_func_pfopen = "no" ; then | if test $ac_cv_func_pfopen = "no" ; then | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5 | ||||
$as_echo "Using $pfopen" >&6; } | $as_echo "Using $pfopen" >&6; } | ||||
LIBS="$LIBS $pfopen" | LIBS="$LIBS $pfopen" | ||||
fi | fi | ||||
fi | fi | ||||
libpcap=FAIL | |||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5 | ||||
$as_echo_n "checking for local pcap library... " >&6; } | $as_echo_n "checking for local pcap library... " >&6; } | ||||
libpcap=FAIL | |||||
# Check whether --with-system-libpcap was given. | |||||
if test "${with_system_libpcap+set}" = set; then : | |||||
withval=$with_system_libpcap; | |||||
fi | |||||
if test "x$with_system_libpcap" != xyes ; then | |||||
lastdir=FAIL | lastdir=FAIL | ||||
places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ | places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ | ||||
egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'` | egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'` | ||||
places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \ | places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \ | ||||
egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'` | egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'` | ||||
for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do | for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do | ||||
basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \ | basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \ | ||||
sed -e 's/-PRE-GIT$//' ` | sed -e 's/-PRE-GIT$//' ` | ||||
if test $lastdir = $basedir ; then | if test $lastdir = $basedir ; then | ||||
continue; | continue; | ||||
fi | fi | ||||
lastdir=$dir | lastdir=$dir | ||||
if test -r $dir/libpcap.a ; then | if test -r $dir/libpcap.a ; then | ||||
libpcap=$dir/libpcap.a | libpcap=$dir/libpcap.a | ||||
d=$dir | d=$dir | ||||
fi | fi | ||||
done | done | ||||
fi | |||||
if test $libpcap = FAIL ; then | if test $libpcap = FAIL ; then | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||||
$as_echo "not found" >&6; } | $as_echo "not found" >&6; } | ||||
# | # | ||||
# Look for pcap-config. | # Look for pcap-config. | ||||
# | # | ||||
if test -n "$ac_tool_prefix"; then | if test -n "$ac_tool_prefix"; then | ||||
▲ Show 20 Lines • Show All 299 Lines • ▼ Show 20 Lines | |||||
this could be a problem with the libpcap that was built, and we will | this could be a problem with the libpcap that was built, and we will | ||||
not be able to determine why this is happening, and thus will not be | not be able to determine why this is happening, and thus will not be | ||||
able to fix it, without that information, as we have not been able to | able to fix it, without that information, as we have not been able to | ||||
reproduce this problem ourselves." "$LINENO" 5 | reproduce this problem ourselves." "$LINENO" 5 | ||||
fi | fi | ||||
ac_fn_c_check_func "$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks" | |||||
if test "x$ac_cv_func_pcap_list_datalinks" = xyes; then : | |||||
$as_echo "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h | |||||
for ac_func in pcap_free_datalinks | |||||
do : | |||||
ac_fn_c_check_func "$LINENO" "pcap_free_datalinks" "ac_cv_func_pcap_free_datalinks" | |||||
if test "x$ac_cv_func_pcap_free_datalinks" = xyes; then : | |||||
cat >>confdefs.h <<_ACEOF | |||||
#define HAVE_PCAP_FREE_DATALINKS 1 | |||||
_ACEOF | |||||
fi | |||||
done | |||||
else | |||||
case " $LIBOBJS " in | |||||
*" datalinks.$ac_objext "* ) ;; | |||||
*) LIBOBJS="$LIBOBJS datalinks.$ac_objext" | |||||
;; | |||||
esac | |||||
fi | |||||
for ac_func in pcap_set_datalink | |||||
do : | |||||
ac_fn_c_check_func "$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink" | |||||
if test "x$ac_cv_func_pcap_set_datalink" = xyes; then : | |||||
cat >>confdefs.h <<_ACEOF | |||||
#define HAVE_PCAP_SET_DATALINK 1 | |||||
_ACEOF | |||||
fi | |||||
done | |||||
ac_fn_c_check_func "$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val" | |||||
if test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes; then : | |||||
$as_echo "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h | |||||
ac_fn_c_check_func "$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description" | |||||
if test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes; then : | |||||
$as_echo "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h | |||||
else | |||||
case " $LIBOBJS " in | |||||
*" dlnames.$ac_objext "* ) ;; | |||||
*) LIBOBJS="$LIBOBJS dlnames.$ac_objext" | |||||
;; | |||||
esac | |||||
fi | |||||
else | |||||
case " $LIBOBJS " in | |||||
*" dlnames.$ac_objext "* ) ;; | |||||
*) LIBOBJS="$LIBOBJS dlnames.$ac_objext" | |||||
;; | |||||
esac | |||||
fi | |||||
for ac_func in pcap_breakloop | |||||
do : | |||||
ac_fn_c_check_func "$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop" | |||||
if test "x$ac_cv_func_pcap_breakloop" = xyes; then : | |||||
cat >>confdefs.h <<_ACEOF | |||||
#define HAVE_PCAP_BREAKLOOP 1 | |||||
_ACEOF | |||||
fi | |||||
done | |||||
ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell" | |||||
if test "x$ac_cv_func_pcap_dump_ftell" = xyes; then : | |||||
$as_echo "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h | |||||
else | |||||
case " $LIBOBJS " in | |||||
*" pcap_dump_ftell.$ac_objext "* ) ;; | |||||
*) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" | |||||
;; | |||||
esac | |||||
fi | |||||
# | # | ||||
# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate | # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate | ||||
# libraries (e.g., "-lsocket -lnsl" on Solaris). | # libraries (e.g., "-lsocket -lnsl" on Solaris). | ||||
# | # | ||||
# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which | # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which | ||||
# use AC_CHECK_FUNC which doesn't let us specify the right #includes | # use AC_CHECK_FUNC which doesn't let us specify the right #includes | ||||
# to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8 | # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8 | ||||
# resolver, and the way it defines inet_{ntop,pton} is rather strange; | # resolver, and the way it defines inet_{ntop,pton} is rather strange; | ||||
▲ Show 20 Lines • Show All 351 Lines • ▼ Show 20 Lines | if test $ac_cv_sockaddr_has_sa_len = yes ; then | ||||
$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h | ||||
fi | fi | ||||
if test "$ac_cv_sockaddr_has_sa_len" = no; then | if test "$ac_cv_sockaddr_has_sa_len" = no; then | ||||
missing_includes=yes | missing_includes=yes | ||||
fi | fi | ||||
ac_fn_c_check_func "$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks" | |||||
if test "x$ac_cv_func_pcap_list_datalinks" = xyes; then : | |||||
$as_echo "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h | |||||
for ac_func in pcap_free_datalinks | |||||
do : | |||||
ac_fn_c_check_func "$LINENO" "pcap_free_datalinks" "ac_cv_func_pcap_free_datalinks" | |||||
if test "x$ac_cv_func_pcap_free_datalinks" = xyes; then : | |||||
cat >>confdefs.h <<_ACEOF | |||||
#define HAVE_PCAP_FREE_DATALINKS 1 | |||||
_ACEOF | |||||
fi | |||||
done | |||||
else | |||||
case " $LIBOBJS " in | |||||
*" datalinks.$ac_objext "* ) ;; | |||||
*) LIBOBJS="$LIBOBJS datalinks.$ac_objext" | |||||
;; | |||||
esac | |||||
fi | |||||
for ac_func in pcap_set_datalink | |||||
do : | |||||
ac_fn_c_check_func "$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink" | |||||
if test "x$ac_cv_func_pcap_set_datalink" = xyes; then : | |||||
cat >>confdefs.h <<_ACEOF | |||||
#define HAVE_PCAP_SET_DATALINK 1 | |||||
_ACEOF | |||||
fi | |||||
done | |||||
ac_fn_c_check_func "$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val" | |||||
if test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes; then : | |||||
$as_echo "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h | |||||
ac_fn_c_check_func "$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description" | |||||
if test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes; then : | |||||
$as_echo "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h | |||||
else | |||||
case " $LIBOBJS " in | |||||
*" dlnames.$ac_objext "* ) ;; | |||||
*) LIBOBJS="$LIBOBJS dlnames.$ac_objext" | |||||
;; | |||||
esac | |||||
fi | |||||
else | |||||
case " $LIBOBJS " in | |||||
*" dlnames.$ac_objext "* ) ;; | |||||
*) LIBOBJS="$LIBOBJS dlnames.$ac_objext" | |||||
;; | |||||
esac | |||||
fi | |||||
for ac_func in pcap_breakloop | |||||
do : | |||||
ac_fn_c_check_func "$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop" | |||||
if test "x$ac_cv_func_pcap_breakloop" = xyes; then : | |||||
cat >>confdefs.h <<_ACEOF | |||||
#define HAVE_PCAP_BREAKLOOP 1 | |||||
_ACEOF | |||||
fi | |||||
done | |||||
ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell" | |||||
if test "x$ac_cv_func_pcap_dump_ftell" = xyes; then : | |||||
$as_echo "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h | |||||
else | |||||
case " $LIBOBJS " in | |||||
*" pcap_dump_ftell.$ac_objext "* ) ;; | |||||
*) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" | |||||
;; | |||||
esac | |||||
fi | |||||
# | # | ||||
# Do we have the new open API? Check for pcap_create, and assume that, | # Do we have the new open API? Check for pcap_create, and assume that, | ||||
# if we do, we also have pcap_activate() and the other new routines | # if we do, we also have pcap_activate() and the other new routines | ||||
# introduced in libpcap 1.0.0. | # introduced in libpcap 1.0.0. | ||||
# | # | ||||
for ac_func in pcap_create | for ac_func in pcap_create | ||||
do : | do : | ||||
ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create" | ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create" | ||||
Show All 33 Lines | |||||
#define HAVE_PCAP_SET_TSTAMP_PRECISION 1 | #define HAVE_PCAP_SET_TSTAMP_PRECISION 1 | ||||
_ACEOF | _ACEOF | ||||
fi | fi | ||||
done | done | ||||
fi | fi | ||||
for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version pcap_setdirection | # | ||||
# Check for a miscellaneous collection of functions which we use | |||||
# if we have them. | |||||
# | |||||
for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version pcap_setdirection pcap_set_immediate_mode | |||||
do : | do : | ||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | ||||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||||
_ACEOF | _ACEOF | ||||
Show All 38 Lines | |||||
if ac_fn_c_try_link "$LINENO"; then : | if ac_fn_c_try_link "$LINENO"; then : | ||||
ac_lbl_cv_pcap_version_defined=yes | ac_lbl_cv_pcap_version_defined=yes | ||||
else | else | ||||
ac_lbl_cv_pcap_version_defined=no | ac_lbl_cv_pcap_version_defined=no | ||||
fi | fi | ||||
rm -f core conftest.err conftest.$ac_objext \ | rm -f core conftest.err conftest.$ac_objext \ | ||||
conftest$ac_exeext conftest.$ac_ext | conftest$ac_exeext conftest.$ac_ext | ||||
if test "$ac_lbl_cv_pcap_version_defined" = yes ; then | if test "$ac_lbl_cv_pcap_version_defined" = yes ; then | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||||
$as_echo "yes" >&6; } | $as_echo "yes" >&6; } | ||||
$as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h | $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h | ||||
else | else | ||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||||
$as_echo "no" >&6; } | $as_echo "no" >&6; } | ||||
fi | fi | ||||
▲ Show 20 Lines • Show All 243 Lines • ▼ Show 20 Lines | |||||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | ||||
#define uint64_t $ac_cv_c_uint64_t | #define uint64_t $ac_cv_c_uint64_t | ||||
_ACEOF | _ACEOF | ||||
;; | ;; | ||||
esac | esac | ||||
# | # | ||||
# Make sure we have a definition for C99's uintptr_t (regardless of | |||||
# whether the environment is a C99 environment or not). | |||||
# | |||||
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |||||
if test "x$ac_cv_type_uintptr_t" = xyes; then : | |||||
$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |||||
else | |||||
for ac_type in 'unsigned int' 'unsigned long int' \ | |||||
'unsigned long long int'; do | |||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||||
/* end confdefs.h. */ | |||||
$ac_includes_default | |||||
int | |||||
main () | |||||
{ | |||||
static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |||||
test_array [0] = 0; | |||||
return test_array [0]; | |||||
; | |||||
return 0; | |||||
} | |||||
_ACEOF | |||||
if ac_fn_c_try_compile "$LINENO"; then : | |||||
cat >>confdefs.h <<_ACEOF | |||||
#define uintptr_t $ac_type | |||||
_ACEOF | |||||
ac_type= | |||||
fi | |||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |||||
test -z "$ac_type" && break | |||||
done | |||||
fi | |||||
# | |||||
# Define the old BSD specified-width types in terms of the C99 types; | # Define the old BSD specified-width types in terms of the C99 types; | ||||
# we may need them with libpcap include files. | # we may need them with libpcap include files. | ||||
# | # | ||||
ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default | ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
" | " | ||||
if test "x$ac_cv_type_u_int8_t" = xyes; then : | if test "x$ac_cv_type_u_int8_t" = xyes; then : | ||||
▲ Show 20 Lines • Show All 1,156 Lines • ▼ Show 20 Lines | |||||
fi | fi | ||||
for ac_header in openssl/evp.h | for ac_header in openssl/evp.h | ||||
do : | do : | ||||
ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" | ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" | ||||
if test "x$ac_cv_header_openssl_evp_h" = xyes; then : | if test "x$ac_cv_header_openssl_evp_h" = xyes; then : | ||||
cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF | ||||
#define HAVE_OPENSSL_EVP_H 1 | #define HAVE_OPENSSL_EVP_H 1 | ||||
_ACEOF | |||||
fi | |||||
done | |||||
fi | |||||
# Check for libcap-ng | |||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libcap-ng" >&5 | |||||
$as_echo_n "checking whether to use libcap-ng... " >&6; } | |||||
# Specify location for both includes and libraries. | |||||
want_libcap_ng=ifavailable | |||||
# Check whether --with-cap_ng was given. | |||||
if test "${with_cap_ng+set}" = set; then : | |||||
withval=$with_cap_ng; | |||||
if test $withval = no | |||||
then | |||||
want_libcap_ng=no | |||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |||||
$as_echo "no" >&6; } | |||||
elif test $withval = yes | |||||
then | |||||
want_libcap_ng=yes | |||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |||||
$as_echo "yes" >&6; } | |||||
fi | |||||
else | |||||
# | |||||
# Use libcap-ng if it's present, otherwise don't. | |||||
# | |||||
want_libcap_ng=ifavailable | |||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5 | |||||
$as_echo "yes, if available" >&6; } | |||||
fi | |||||
if test "$want_libcap_ng" != "no"; then | |||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for capng_change_id in -lcap-ng" >&5 | |||||
$as_echo_n "checking for capng_change_id in -lcap-ng... " >&6; } | |||||
if ${ac_cv_lib_cap_ng_capng_change_id+:} false; then : | |||||
$as_echo_n "(cached) " >&6 | |||||
else | |||||
ac_check_lib_save_LIBS=$LIBS | |||||
LIBS="-lcap-ng $LIBS" | |||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||||
/* end confdefs.h. */ | |||||
/* Override any GCC internal prototype to avoid an error. | |||||
Use char because int might match the return type of a GCC | |||||
builtin and then its argument prototype would still apply. */ | |||||
#ifdef __cplusplus | |||||
extern "C" | |||||
#endif | |||||
char capng_change_id (); | |||||
int | |||||
main () | |||||
{ | |||||
return capng_change_id (); | |||||
; | |||||
return 0; | |||||
} | |||||
_ACEOF | |||||
if ac_fn_c_try_link "$LINENO"; then : | |||||
ac_cv_lib_cap_ng_capng_change_id=yes | |||||
else | |||||
ac_cv_lib_cap_ng_capng_change_id=no | |||||
fi | |||||
rm -f core conftest.err conftest.$ac_objext \ | |||||
conftest$ac_exeext conftest.$ac_ext | |||||
LIBS=$ac_check_lib_save_LIBS | |||||
fi | |||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_change_id" >&5 | |||||
$as_echo "$ac_cv_lib_cap_ng_capng_change_id" >&6; } | |||||
if test "x$ac_cv_lib_cap_ng_capng_change_id" = xyes; then : | |||||
cat >>confdefs.h <<_ACEOF | |||||
#define HAVE_LIBCAP_NG 1 | |||||
_ACEOF | |||||
LIBS="-lcap-ng $LIBS" | |||||
fi | |||||
for ac_header in cap-ng.h | |||||
do : | |||||
ac_fn_c_check_header_mongrel "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default" | |||||
if test "x$ac_cv_header_cap_ng_h" = xyes; then : | |||||
cat >>confdefs.h <<_ACEOF | |||||
#define HAVE_CAP_NG_H 1 | |||||
_ACEOF | _ACEOF | ||||
fi | fi | ||||
done | done | ||||
fi | fi | ||||
▲ Show 20 Lines • Show All 1,417 Lines • Show Last 20 Lines |