|
1 | 1 | #! /bin/sh |
2 | 2 | # Guess values for system-dependent variables and create Makefiles. |
3 | | -# Generated by GNU Autoconf 2.71 for tcpdump 4.99.5. |
| 3 | +# Generated by GNU Autoconf 2.71 for tcpdump 4.99.6. |
4 | 4 | # |
5 | 5 | # |
6 | 6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
@@ -608,8 +608,8 @@ MAKEFLAGS= |
608 | 608 | # Identity of this package. |
609 | 609 | PACKAGE_NAME='tcpdump' |
610 | 610 | PACKAGE_TARNAME='tcpdump' |
611 | | -PACKAGE_VERSION='4.99.5' |
612 | | -PACKAGE_STRING='tcpdump 4.99.5' |
| 611 | +PACKAGE_VERSION='4.99.6' |
| 612 | +PACKAGE_STRING='tcpdump 4.99.6' |
613 | 613 | PACKAGE_BUGREPORT='' |
614 | 614 | PACKAGE_URL='' |
615 | 615 |
|
@@ -1306,7 +1306,7 @@ if test "$ac_init_help" = "long"; then |
1306 | 1306 | # Omit some internal or obsolete options to make the list less imposing. |
1307 | 1307 | # This message is too long to be a string in the A/UX 3.1 sh. |
1308 | 1308 | cat <<_ACEOF |
1309 | | -\`configure' configures tcpdump 4.99.5 to adapt to many kinds of systems. |
| 1309 | +\`configure' configures tcpdump 4.99.6 to adapt to many kinds of systems. |
1310 | 1310 |
|
1311 | 1311 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1312 | 1312 |
|
|
1372 | 1372 |
|
1373 | 1373 | if test -n "$ac_init_help"; then |
1374 | 1374 | case $ac_init_help in |
1375 | | - short | recursive ) echo "Configuration of tcpdump 4.99.5:";; |
| 1375 | + short | recursive ) echo "Configuration of tcpdump 4.99.6:";; |
1376 | 1376 | esac |
1377 | 1377 | cat <<\_ACEOF |
1378 | 1378 |
|
|
1489 | 1489 | test -n "$ac_init_help" && exit $ac_status |
1490 | 1490 | if $ac_init_version; then |
1491 | 1491 | cat <<\_ACEOF |
1492 | | -tcpdump configure 4.99.5 |
| 1492 | +tcpdump configure 4.99.6 |
1493 | 1493 | generated by GNU Autoconf 2.71 |
1494 | 1494 |
|
1495 | 1495 | Copyright (C) 2021 Free Software Foundation, Inc. |
@@ -2086,7 +2086,7 @@ cat >config.log <<_ACEOF |
2086 | 2086 | This file contains any messages produced by compilers while |
2087 | 2087 | running configure, to aid debugging if configure makes a mistake. |
2088 | 2088 |
|
2089 | | -It was created by tcpdump $as_me 4.99.5, which was |
| 2089 | +It was created by tcpdump $as_me 4.99.6, which was |
2090 | 2090 | generated by GNU Autoconf 2.71. Invocation command line was |
2091 | 2091 |
|
2092 | 2092 | $ $0$ac_configure_args_raw |
@@ -4248,6 +4248,11 @@ then : |
4248 | 4248 |
|
4249 | 4249 | fi |
4250 | 4250 |
|
| 4251 | + |
| 4252 | +# On Linux, if Autoconf version >= 2.72 and GNU C Library version >= 2.34, |
| 4253 | +# uncomment AC_SYS_YEAR2038_RECOMMENDED to ensure time_t is Y2038-safe. |
| 4254 | +# (Can be done by autogen.sh) |
| 4255 | +# AC_SYS_YEAR2038_RECOMMENDED |
4251 | 4256 | # |
4252 | 4257 | # Get the size of a void *, to know whether this is a 32-bit or 64-bit build. |
4253 | 4258 | # |
@@ -5838,18 +5843,6 @@ then : |
5838 | 5843 | fi |
5839 | 5844 |
|
5840 | 5845 |
|
5841 | | -# |
5842 | | -# Make sure we have snprintf(); we require it. |
5843 | | -# |
5844 | | -ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
5845 | | -if test "x$ac_cv_func_snprintf" = xyes |
5846 | | -then : |
5847 | | - |
5848 | | -else $as_nop |
5849 | | - as_fn_error $? "snprintf() is required but wasn't found" "$LINENO" 5 |
5850 | | -fi |
5851 | | - |
5852 | | - |
5853 | 5846 | # |
5854 | 5847 | # It became apparent at some point that using a suitable C99 compiler does not |
5855 | 5848 | # automatically mean snprintf(3) implementation in the libc supports all the |
@@ -5883,32 +5876,50 @@ else $as_nop |
5883 | 5876 | #include <inttypes.h> |
5884 | 5877 | #include <sys/types.h> |
5885 | 5878 |
|
| 5879 | +#if defined(_WIN32) && !defined(_SSIZE_T_DEFINED) |
| 5880 | +/* |
| 5881 | + * On UN*Xes, this is a signed integer type of the same size as size_t. |
| 5882 | + * |
| 5883 | + * It's not defined by Visual Studio; we assume that ptrdiff_t will |
| 5884 | + * be a type that is a signed integer type of the same size as size_t. |
| 5885 | + */ |
| 5886 | +typedef ptrdiff_t ssize_t; |
| 5887 | +#endif |
| 5888 | +
|
| 5889 | +/* |
| 5890 | + * Avoid trying to cast negative values to unsigned types, or doing |
| 5891 | + * shifts of signed types, in order not to have the test program fail |
| 5892 | + * if we're building with undefined-behavior sanitizers enabled. |
| 5893 | + */ |
5886 | 5894 | int main() |
5887 | 5895 | { |
5888 | 5896 | char buf[100]; |
5889 | | - uint64_t t = (uint64_t)1 << 32; |
| 5897 | + unsigned int ui = sizeof(buf); |
| 5898 | + int i = sizeof(buf); |
| 5899 | + int64_t i64 = INT64_C(0x100000000); |
| 5900 | + uint64_t ui64 = UINT64_C(0x100000000); |
5890 | 5901 |
|
5891 | | - snprintf(buf, sizeof(buf), "%zu", sizeof(buf)); |
| 5902 | + snprintf(buf, sizeof(buf), "%zu", (size_t)ui); |
5892 | 5903 | if (strncmp(buf, "100", sizeof(buf))) |
5893 | 5904 | return 1; |
5894 | 5905 |
|
5895 | | - snprintf(buf, sizeof(buf), "%zd", -sizeof(buf)); |
| 5906 | + snprintf(buf, sizeof(buf), "%zd", (ssize_t)(-i)); |
5896 | 5907 | if (strncmp(buf, "-100", sizeof(buf))) |
5897 | 5908 | return 2; |
5898 | 5909 |
|
5899 | | - snprintf(buf, sizeof(buf), "%" PRId64, -t); |
| 5910 | + snprintf(buf, sizeof(buf), "%" PRId64, -i64); |
5900 | 5911 | if (strncmp(buf, "-4294967296", sizeof(buf))) |
5901 | 5912 | return 3; |
5902 | 5913 |
|
5903 | | - snprintf(buf, sizeof(buf), "0o%" PRIo64, t); |
| 5914 | + snprintf(buf, sizeof(buf), "0o%" PRIo64, ui64); |
5904 | 5915 | if (strncmp(buf, "0o40000000000", sizeof(buf))) |
5905 | 5916 | return 4; |
5906 | 5917 |
|
5907 | | - snprintf(buf, sizeof(buf), "0x%" PRIx64, t); |
| 5918 | + snprintf(buf, sizeof(buf), "0x%" PRIx64, ui64); |
5908 | 5919 | if (strncmp(buf, "0x100000000", sizeof(buf))) |
5909 | 5920 | return 5; |
5910 | 5921 |
|
5911 | | - snprintf(buf, sizeof(buf), "%" PRIu64, t); |
| 5922 | + snprintf(buf, sizeof(buf), "%" PRIu64, ui64); |
5912 | 5923 | if (strncmp(buf, "4294967296", sizeof(buf))) |
5913 | 5924 | return 6; |
5914 | 5925 |
|
@@ -7845,6 +7856,11 @@ fi |
7845 | 7856 |
|
7846 | 7857 |
|
7847 | 7858 | rm -f os-proto.h |
| 7859 | + # |
| 7860 | + # MKDEP defaults to no-op (":") if we don't test whether the compiler |
| 7861 | + # supports generating dependencies |
| 7862 | + # |
| 7863 | + MKDEP=: |
7848 | 7864 | if test "${LBL_CFLAGS+set}" = set; then |
7849 | 7865 | V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" |
7850 | 7866 | fi |
@@ -8066,6 +8082,59 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
8066 | 8082 | ac_c_werror_flag="$save_ac_c_werror_flag" |
8067 | 8083 |
|
8068 | 8084 |
|
| 8085 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5 |
| 8086 | +printf %s "checking whether the compiler supports the -Wcomma option... " >&6; } |
| 8087 | + save_CFLAGS="$CFLAGS" |
| 8088 | + CFLAGS="$CFLAGS -Wcomma" |
| 8089 | + # |
| 8090 | + # XXX - yes, this depends on the way AC_LANG_WERROR works, |
| 8091 | + # but no mechanism is provided to turn AC_LANG_WERROR on |
| 8092 | + # *and then turn it back off*, so that we *only* do it when |
| 8093 | + # testing compiler options - 15 years after somebody asked |
| 8094 | + # for it: |
| 8095 | + # |
| 8096 | + # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror |
| 8097 | + # |
| 8098 | + save_ac_c_werror_flag="$ac_c_werror_flag" |
| 8099 | + ac_c_werror_flag=yes |
| 8100 | + # |
| 8101 | + # We use AC_LANG_SOURCE() so that we can control the complete |
| 8102 | + # content of the program being compiled. We do not, for example, |
| 8103 | + # want the default "int main()" that AC_LANG_PROGRAM() generates, |
| 8104 | + # as it will generate a warning with -Wold-style-definition, meaning |
| 8105 | + # that we would treat it as not working, as the test will fail if |
| 8106 | + # *any* error output, including a warning due to the flag we're |
| 8107 | + # testing, is generated; see |
| 8108 | + # |
| 8109 | + # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us |
| 8110 | + # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us |
| 8111 | + # |
| 8112 | + # This may, as per those two messages, be fixed in autoconf 2.70, |
| 8113 | + # but we only require 2.69 or newer for now. |
| 8114 | + # |
| 8115 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8116 | +/* end confdefs.h. */ |
| 8117 | +int main(void) { return 0; } |
| 8118 | +_ACEOF |
| 8119 | +if ac_fn_c_try_compile "$LINENO" |
| 8120 | +then : |
| 8121 | + |
| 8122 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8123 | +printf "%s\n" "yes" >&6; } |
| 8124 | + CFLAGS="$save_CFLAGS" |
| 8125 | + V_CCOPT="$V_CCOPT -Wcomma" |
| 8126 | + |
| 8127 | +else $as_nop |
| 8128 | + |
| 8129 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8130 | +printf "%s\n" "no" >&6; } |
| 8131 | + CFLAGS="$save_CFLAGS" |
| 8132 | + |
| 8133 | +fi |
| 8134 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8135 | + ac_c_werror_flag="$save_ac_c_werror_flag" |
| 8136 | + |
| 8137 | + |
8069 | 8138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5 |
8070 | 8139 | printf %s "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; } |
8071 | 8140 | save_CFLAGS="$CFLAGS" |
@@ -9024,16 +9093,20 @@ printf "%s\n" "no" >&6; } |
9024 | 9093 | # .devel file; why should the ABI for which we produce code |
9025 | 9094 | # depend on .devel? |
9026 | 9095 | # |
| 9096 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use an os-proto.h header" >&5 |
| 9097 | +printf %s "checking whether to use an os-proto.h header... " >&6; } |
9027 | 9098 | os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` |
9028 | 9099 | name="lbl/os-$os.h" |
9029 | 9100 | if test -f $name ; then |
| 9101 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, at \"$name\"" >&5 |
| 9102 | +printf "%s\n" "yes, at \"$name\"" >&6; } |
9030 | 9103 | ln -s $name os-proto.h |
9031 | 9104 |
|
9032 | 9105 | printf "%s\n" "#define HAVE_OS_PROTO_H 1" >>confdefs.h |
9033 | 9106 |
|
9034 | 9107 | else |
9035 | | - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5 |
9036 | | -printf "%s\n" "$as_me: WARNING: can't find $name" >&2;} |
| 9108 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9109 | +printf "%s\n" "no" >&6; } |
9037 | 9110 | fi |
9038 | 9111 | fi |
9039 | 9112 |
|
@@ -9689,6 +9762,8 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9689 | 9762 | ac_config_headers="$ac_config_headers config.h" |
9690 | 9763 |
|
9691 | 9764 |
|
| 9765 | + |
| 9766 | + |
9692 | 9767 | ac_config_commands="$ac_config_commands .devel" |
9693 | 9768 |
|
9694 | 9769 | ac_config_files="$ac_config_files Makefile tcpdump.1" |
@@ -10192,7 +10267,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10192 | 10267 | # report actual input values of CONFIG_FILES etc. instead of their |
10193 | 10268 | # values after options handling. |
10194 | 10269 | ac_log=" |
10195 | | -This file was extended by tcpdump $as_me 4.99.5, which was |
| 10270 | +This file was extended by tcpdump $as_me 4.99.6, which was |
10196 | 10271 | generated by GNU Autoconf 2.71. Invocation command line was |
10197 | 10272 |
|
10198 | 10273 | CONFIG_FILES = $CONFIG_FILES |
@@ -10260,7 +10335,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ |
10260 | 10335 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10261 | 10336 | ac_cs_config='$ac_cs_config_escaped' |
10262 | 10337 | ac_cs_version="\\ |
10263 | | -tcpdump config.status 4.99.5 |
| 10338 | +tcpdump config.status 4.99.6 |
10264 | 10339 | configured by $0, generated by GNU Autoconf 2.71, |
10265 | 10340 | with options \\"\$ac_cs_config\\" |
10266 | 10341 |
|
@@ -10990,4 +11065,3 @@ printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 |
10990 | 11065 | fi |
10991 | 11066 |
|
10992 | 11067 | exit 0 |
10993 | | -
|
|
0 commit comments