X-Git-Url: https://unix4lyfe.org/gitweb/darkstat-debian/blobdiff_plain/4da209d9116b41ab59eeedc5823bc2cb64b5bc3e..HEAD:/configure diff --git a/configure b/configure index 520dc65..dd1e288 100755 --- 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 darkstat 3.0.717. +# Generated by GNU Autoconf 2.69 for darkstat 3.0.719. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -577,10 +577,10 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='darkstat' PACKAGE_TARNAME='darkstat' -PACKAGE_VERSION='3.0.717' -PACKAGE_STRING='darkstat 3.0.717' +PACKAGE_VERSION='3.0.719' +PACKAGE_STRING='darkstat 3.0.719' PACKAGE_BUGREPORT='' -PACKAGE_URL='http://unix4lyfe.org/darkstat/' +PACKAGE_URL='https://unix4lyfe.org/darkstat/' ac_unique_file="darkstat.c" # Factoring default headers for most tests. @@ -676,7 +676,6 @@ SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking -with_chroot_dir with_privdrop_user enable_silent_rules enable_debug @@ -1232,7 +1231,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 darkstat 3.0.717 to adapt to many kinds of systems. +\`configure' configures darkstat 3.0.719 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1293,7 +1292,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of darkstat 3.0.717:";; + short | recursive ) echo "Configuration of darkstat 3.0.719:";; esac cat <<\_ACEOF @@ -1310,7 +1309,6 @@ Optional Features: Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-chroot-dir specify the chroot directory (default: /var/empty) --with-privdrop-user specify which user to drop privileges to (default: nobody) --with-pcap=DIR prefix to libpcap installation @@ -1329,7 +1327,7 @@ Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. -darkstat home page: . +darkstat home page: . _ACEOF ac_status=$? fi @@ -1392,7 +1390,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -darkstat configure 3.0.717 +darkstat configure 3.0.719 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1690,7 +1688,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 darkstat $as_me 3.0.717, which was +It was created by darkstat $as_me 3.0.719, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2044,45 +2042,6 @@ ac_config_headers="$ac_config_headers config.h" RULE="------------------------------------------------------------" -# Let user specify CHROOT_DIR, or else autodetect it, or else die. - -# Check whether --with-chroot-dir was given. -if test "${with_chroot_dir+set}" = set; then : - withval=$with_chroot_dir; if test "x$withval" = "xyes"; then - as_fn_error $? "please specify --with-chroot-dir=/path/to/darkstat/chroot" "$LINENO" 5 - fi - _chd="$withval" -else - # Find an "empty" directory to serve as the chroot. - _chd="/var/empty" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $_chd" >&5 -$as_echo_n "checking for $_chd... " >&6; } - if test -d $_chd ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found it" >&5 -$as_echo "found it" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not there" >&5 -$as_echo "not there" >&6; } - _chd="/var/lib/empty" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $_chd" >&5 -$as_echo_n "checking for $_chd... " >&6; } - if test -d $_chd ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found it" >&5 -$as_echo "found it" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not there either" >&5 -$as_echo "not there either" >&6; } - as_fn_error $? "please specify --with-chroot-dir=/path/to/darkstat/chroot" "$LINENO" 5 - fi - fi -fi - - -cat >>confdefs.h <<_ACEOF -#define CHROOT_DIR "$_chd" -_ACEOF - - # Allow configure-time override of PRIVDROP_USER. # Check whether --with-privdrop-user was given. @@ -3011,6 +2970,55 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu +# Compiler's language features. + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 +$as_echo_n "checking for C/C++ restrict keyword... " >&6; } +if ${ac_cv_c_restrict+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_restrict=no + # The order here caters to the fact that C++ does not require restrict. + for ac_kw in __restrict __restrict__ _Restrict restrict; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +typedef int * int_ptr; + int foo (int_ptr $ac_kw ip) { + return ip[0]; + } +int +main () +{ +int s[1]; + int * $ac_kw t = s; + t[0] = 0; + return foo(t) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_restrict=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_restrict" != no && break + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 +$as_echo "$ac_cv_c_restrict" >&6; } + + case $ac_cv_c_restrict in + restrict) ;; + no) $as_echo "#define restrict /**/" >>confdefs.h + ;; + *) cat >>confdefs.h <<_ACEOF +#define restrict $ac_cv_c_restrict +_ACEOF + ;; + esac + + # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : @@ -3117,7 +3125,6 @@ rm -f conftest.$ac_objext conftest.$ac_ext # Check for zlib. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 $as_echo_n "checking for deflate in -lz... " >&6; } if ${ac_cv_lib_z_deflate+:} false; then : @@ -3169,10 +3176,9 @@ $RULE I can't link to zlib. You really can't have a modern operating system without zlib. -If you are using a package-based operating system (like -something with RPMs), see if there is a zlib-devel package -that you can install, to provide the zlib headers and -libraries. +On Debian or a derivative, try: sudo apt-get install zlib1g-dev + +On an RPM system, see if there is a zlib-devel package. $RULE END @@ -4746,7 +4752,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 darkstat $as_me 3.0.717, which was +This file was extended by darkstat $as_me 3.0.719, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -4803,13 +4809,13 @@ Configuration headers: $config_headers Report bugs to the package provider. -darkstat home page: ." +darkstat home page: ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -darkstat config.status 3.0.717 +darkstat config.status 3.0.719 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\"