]> The Tcpdump Group git mirrors - tcpdump/blobdiff - configure
DNS: Sync types with IANA
[tcpdump] / configure
index 411359a6a52d5226e64d68d64e09fe2e18c8d8f2..954550f83ee52fd6553526be1d00650fec53692e 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for tcpdump 4.99.2-PRE-GIT.
+# Generated by GNU Autoconf 2.69 for tcpdump 4.99.4-PRE-GIT.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -577,8 +577,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='tcpdump'
 PACKAGE_TARNAME='tcpdump'
-PACKAGE_VERSION='4.99.2-PRE-GIT'
-PACKAGE_STRING='tcpdump 4.99.2-PRE-GIT'
+PACKAGE_VERSION='4.99.4-PRE-GIT'
+PACKAGE_STRING='tcpdump 4.99.4-PRE-GIT'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1258,7 +1258,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures tcpdump 4.99.2-PRE-GIT to adapt to many kinds of systems.
+\`configure' configures tcpdump 4.99.4-PRE-GIT to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1323,7 +1323,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of tcpdump 4.99.2-PRE-GIT:";;
+     short | recursive ) echo "Configuration of tcpdump 4.99.4-PRE-GIT:";;
    esac
   cat <<\_ACEOF
 
@@ -1340,8 +1340,8 @@ Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   --without-gcc           don't use gcc
-  --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
+  --with-smi              link with libsmi (allows to load MIBs on the fly to
+                          decode SNMP packets) [default=yes, if available]
   --with-user=USERNAME    drop privileges by default to USERNAME
   --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
   --with-sandbox-capsicum use Capsicum security functions [default=yes, if
@@ -1426,7 +1426,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-tcpdump configure 4.99.2-PRE-GIT
+tcpdump configure 4.99.4-PRE-GIT
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2074,7 +2074,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by tcpdump $as_me 4.99.2-PRE-GIT, which was
+It was created by tcpdump $as_me 4.99.4-PRE-GIT, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -4180,42 +4180,6 @@ fi
 
 done
 
-for ac_header in net/pfvar.h
-do :
-  ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
-#include <sys/socket.h>
-#include <net/if.h>
-"
-if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_NET_PFVAR_H 1
-_ACEOF
-
-fi
-
-done
-
-if test "$ac_cv_header_net_pfvar_h" = yes; then
-       for ac_header in net/if_pflog.h
-do :
-  ac_fn_c_check_header_compile "$LINENO" "net/if_pflog.h" "ac_cv_header_net_if_pflog_h" "#include <sys/types.h>
-       #include <sys/socket.h>
-       #include <net/if.h>
-       #include <net/pfvar.h>
-"
-if test "x$ac_cv_header_net_if_pflog_h" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_NET_IF_PFLOG_H 1
-_ACEOF
-
-fi
-
-done
-
-       if test "$ac_cv_header_net_if_pflog_h" = yes; then
-               LOCALSRC="print-pflog.c $LOCALSRC"
-       fi
-fi
 
 case "$host_os" in
 
@@ -4324,8 +4288,11 @@ else
 /* end confdefs.h.  */
 
 /* libsmi available check */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <smi.h>
-main()
+int main()
 {
   int current, revision, age, n;
   const int required = 2;
@@ -4878,6 +4845,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
 
+#include <string.h>
 /* AF_INET6 available check */
 #include <sys/types.h>
 #ifdef _WIN32
@@ -5139,7 +5107,7 @@ esac
 fi
 
 
-for ac_func in fork vfork strftime
+for ac_func in fork vfork
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -5919,8 +5887,44 @@ fi
             # routines in those libraries, so we'll need to link with
             # them, because we'll be linking statically with it.
             #
+            # If it supports --static-pcap-only. use that, as we will be
+            # linking with a static libpcap but won't be linking
+            # statically with any of the libraries on which it depends;
+            # those libraries might not even have static versions
+            # installed.
+            #
+            # That means we need to find out the libraries on which
+            # libpcap directly depends, so we can link with them, but we
+            # don't need to link with the libraries on which those
+            # libraries depend as, on all UN*Xes with which I'm
+            # familiar, the libraries on which a shared library depends
+            # are stored in the library and are automatically loaded by
+            # the run-time linker, without the executable having to be
+            # linked with those libraries.  (This allows a library to be
+            # changed to depend on more libraries without breaking that
+            # library's ABI.)
+            #
+            # The only way to test for that support is to see if the
+            # script contains the string "static-pcap-only"; we can't
+            # try using that flag and checking for errors, as the
+            # versions of the script that didn't have that flag wouldn't
+            # report or return an error for an unsupported command-line
+            # flag.  Those older versions provided, with --static, only
+            # the libraries on which libpcap depends, not the
+            # dependencies of those libraries; the versions with
+            # --static-pcap-only provide all the dependencies with
+            # --static, for the benefit of programs that are completely
+            # statically linked, and provide only the direct
+            # dependencies with --static-pcap-only.
+            #
+            if grep -s -q "static-pcap-only" "$PCAP_CONFIG"
+            then
+                static_opt="--static-pcap-only"
+            else
+                static_opt="--static"
+            fi
             V_INCLS="-I$local_pcap_dir $V_INCLS"
-            additional_libs=`"$PCAP_CONFIG" --static --additional-libs`
+            additional_libs=`"$PCAP_CONFIG" $static_opt --additional-libs`
             libpcap="$libpcap $additional_libs"
         else
             #
@@ -6040,7 +6044,7 @@ if test "x$ac_cv_func_pcap_loop" = xyes; then :
 
 else
 
-        as_fn_error $? "This is a bug, please follow the guidelines in CONTRIBUTING and include the
+        as_fn_error $? "This is a bug, please follow the guidelines in CONTRIBUTING.md and include the
 config.log file in your report.  If you have downloaded libpcap from
 tcpdump.org, and built it yourself, please also include the config.log
 file from the libpcap source directory, the Makefile from the libpcap
@@ -6090,6 +6094,8 @@ else
 /* end confdefs.h.  */
 
                #include <netdb.h>
+               #include <netinet/ether.h>
+               #include <stdlib.h>
                #include <sys/types.h>
                #include <sys/param.h>
                #include <sys/socket.h>
@@ -7076,7 +7082,7 @@ $as_echo_n "checking whether the compiler supports the -W option... " >&6; }
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7128,7 +7134,7 @@ $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7180,7 +7186,7 @@ $as_echo_n "checking whether the compiler supports the -Wassign-enum option... "
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7232,7 +7238,7 @@ $as_echo_n "checking whether the compiler supports the -Wcast-qual option... " >
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7284,7 +7290,7 @@ $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes opti
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7336,7 +7342,7 @@ $as_echo_n "checking whether the compiler supports the -Wmissing-variable-declar
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7388,7 +7394,7 @@ $as_echo_n "checking whether the compiler supports the -Wold-style-definition op
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7440,7 +7446,7 @@ $as_echo_n "checking whether the compiler supports the -Wpedantic option... " >&
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7492,7 +7498,7 @@ $as_echo_n "checking whether the compiler supports the -Wpointer-arith option...
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7544,7 +7550,7 @@ $as_echo_n "checking whether the compiler supports the -Wpointer-sign option...
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7596,7 +7602,7 @@ $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6;
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7648,7 +7654,7 @@ $as_echo_n "checking whether the compiler supports the -Wsign-compare option...
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7700,7 +7706,7 @@ $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes optio
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7752,7 +7758,7 @@ $as_echo_n "checking whether the compiler supports the -Wunreachable-code-return
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7804,7 +7810,7 @@ $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -7856,7 +7862,7 @@ $as_echo_n "checking whether the compiler supports the -Wwrite-strings option...
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #    https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us
        #
-       # This may, as per those two messages, be fixed in autoonf 2.70,
+       # This may, as per those two messages, be fixed in autoconf 2.70,
        # but we only require 2.64 or newer for now.
        #
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -8877,7 +8883,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by tcpdump $as_me 4.99.2-PRE-GIT, which was
+This file was extended by tcpdump $as_me 4.99.4-PRE-GIT, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -8943,7 +8949,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-tcpdump config.status 4.99.2-PRE-GIT
+tcpdump config.status 4.99.4-PRE-GIT
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"