--- gvpe/configure 2004/01/17 15:43:02 1.13 +++ gvpe/configure 2005/03/05 19:25:21 1.25 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.58. +# Generated by GNU Autoconf 2.59. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation @@ -309,7 +309,7 @@ # include #endif" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE USE_NLS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S RANLIB ac_ct_RANLIB IFTYPE IFSUBTYPE CXXCPP ALLOCA LINUX_IF_TUN_H HAVE_TUNTAP INCLUDES LIBOBJS LTLIBOBJS' +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE USE_NLS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S RANLIB ac_ct_RANLIB IFTYPE IFSUBTYPE CXXCPP ALLOCA LINUX_IF_TUN_H HAVE_TUNTAP LDFLAGS_DAEMON ROHC_TRUE ROHC_FALSE INCLUDES LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. @@ -869,34 +869,33 @@ --disable-rpath do not hardcode runtime library paths --disable-nls do not use Native Language Support --enable-iftype=TYPE/SUBTYPE - Use kernel/net device interface TYPE/SUBTYPE. Working combinations are: - "native/linux" "tincd/linux" "tincd/freebsd" "tincd/openbsd" "tincd/darwin" "native/cygwin"; Untested - combinations are: "tincd/netbsd" "tincd/solaris" "tincd/mingw"; Broken combinations are: + Use kernel/net device interface TYPE/SUBTYPE. + Working combinations are: "native/linux" + "tincd/linux" "tincd/freebsd" "tincd/openbsd" + "tincd/darwin" "native/cygwin"; Untested + combinations are: "tincd/netbsd" "tincd/solaris" + "tincd/mingw"; Broken combinations are: "tincd/cygwin"; The default is to autodetect. - --enable-rohc - enable robust header compression (rfc3095). - --enable-icmp - enable icmp protocol support (default disabled). - --enable-tcp - enable tcp protocol support (default disabled). - --enable-http-proxy - enable http proxy connect support (default disabled). + --enable-static-daemon enable statically linked daemon. + --enable-rohc enable robust header compression (rfc3095). + --enable-icmp enable icmp protocol support (default disabled). + --enable-tcp enable tcp protocol support (default disabled). + --enable-dns enable dns tunnel protocol support (DOES NOT WORK). + --enable-http-proxy enable http proxy connect support (default + disabled). --enable-hmac-length=BYTES - use a hmac of length BYTES bytes (default - 12). Allowed values are 4, 8, 12, 16. + use a hmac of length BYTES bytes (default 12). + Allowed values are 4, 8, 12, 16. --enable-rand-length=BYTES use BYTES bytes of extra randomness (default 8). Allowed values are 0, 4, 8. - --enable-max-mtu=BYTES - enable mtu sizes upto BYTES bytes (default 1500). + --enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500). Use 9100 for jumbogram support. - --disable-compression - Disable compression support. - --enable-cipher - Select the symmetric cipher (default "bf"). Must be - one of "bf" (blowfish), "aes-128" (rijndael), "aes-192" or "aes-256". - --enable-digest - Select the digets algorithm to use (default "sha1"). + --disable-compression Disable compression support. + --enable-cipher Select the symmetric cipher (default "bf"). Must be + one of "bf" (blowfish), "aes-128" (rijndael), + "aes-192" or "aes-256". + --enable-digest Select the digets algorithm to use (default "sha1"). Must be one of "sha1", "ripemd160", "md5" or "md4" (insecure). @@ -914,24 +913,16 @@ --with-openssl-lib=DIR OpenSSL library directory Some influential environment variables: - CC - C compiler command - CFLAGS - C compiler flags - LDFLAGS - linker flags, e.g. -L if you have - libraries in a nonstandard directory - CPPFLAGS - C/C++ preprocessor flags, e.g. -I if you - have headers in a nonstandard directory - CPP - C preprocessor - CXX - C++ compiler command - CXXFLAGS - C++ compiler flags - CXXCPP - C++ preprocessor + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have + headers in a nonstandard directory + CPP C preprocessor + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. @@ -1044,7 +1035,7 @@ running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was -generated by GNU Autoconf 2.58. Invocation command line was +generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ @@ -1371,6 +1362,7 @@ + ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then @@ -1727,8 +1719,8 @@ # Define the identity of the package. - PACKAGE=vpe - VERSION=1.4 + PACKAGE=gvpe + VERSION=1.8 cat >>confdefs.h <<_ACEOF @@ -9688,6 +9680,14 @@ CXXFLAGS="$CXXFLAGS -I$openssl_include" fi +# Check whether --enable-static-daemon or --disable-static-daemon was given. +if test "${enable_static_daemon+set}" = set; then + enableval="$enable_static_daemon" + LDFLAGS_DAEMON=-static + +fi; + + # Check whether --enable-rohc or --disable-rohc was given. if test "${enable_rohc+set}" = set; then enableval="$enable_rohc" @@ -9695,21 +9695,31 @@ echo echo "**********************************************************************" echo "**********************************************************************" - echo "**** --enable-rohc not yet implemented *******************************" - echo "**********************************************************************" - echo "**** uuh sorry, I am such an ass, but I didn't find any rfc3095 (ROHC)" - echo "**** implementation to be used in GPL code on the web." - echo "**** so this option is just a fake. Please implement one and send it" - echo "**** to me ;)" - echo "**********************************************************************" - echo "**********************************************************************" + echo "**** --enable-rohc is highly experimental, do not use ****************" echo "**********************************************************************" echo "**********************************************************************" echo + rohc=true + +cat >>confdefs.h <<_ACEOF +#define ENABLE_ROHC 1 +_ACEOF + fi; + + +if test x$rohc = xtrue; then + ROHC_TRUE= + ROHC_FALSE='#' +else + ROHC_TRUE='#' + ROHC_FALSE= +fi + + # Check whether --enable-icmp or --disable-icmp was given. if test "${enable_icmp+set}" = set; then enableval="$enable_icmp" @@ -9732,6 +9742,236 @@ fi; +# Check whether --enable-dns or --disable-dns was given. +if test "${enable_dns+set}" = set; then + enableval="$enable_dns" + + if test "${ac_cv_header_gmp_h+set}" = set; then + echo "$as_me:$LINENO: checking for gmp.h" >&5 +echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6 +if test "${ac_cv_header_gmp_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5 +echo "${ECHO_T}$ac_cv_header_gmp_h" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking gmp.h usability" >&5 +echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking gmp.h presence" >&5 +echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ------------------------------------------ ## +## Report this to the AC_PACKAGE_NAME lists. ## +## ------------------------------------------ ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for gmp.h" >&5 +echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6 +if test "${ac_cv_header_gmp_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_header_gmp_h=$ac_header_preproc +fi +echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5 +echo "${ECHO_T}$ac_cv_header_gmp_h" >&6 + +fi +if test $ac_cv_header_gmp_h = yes; then + : +else + { { echo "$as_me:$LINENO: error: gmp.h not found, required for --enable-dns" >&5 +echo "$as_me: error: gmp.h not found, required for --enable-dns" >&2;} + { (exit 1); exit 1; }; } +fi + + + +echo "$as_me:$LINENO: checking for main in -lgmp" >&5 +echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6 +if test "${ac_cv_lib_gmp_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgmp $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + + +int +main () +{ +main (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_gmp_main=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_gmp_main=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5 +echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6 +if test $ac_cv_lib_gmp_main = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBGMP 1 +_ACEOF + + LIBS="-lgmp $LIBS" + +else + { { echo "$as_me:$LINENO: error: libgmp not found, required for --enable-dns" >&5 +echo "$as_me: error: libgmp not found, required for --enable-dns" >&2;} + { (exit 1); exit 1; }; } +fi + + + +cat >>confdefs.h <<_ACEOF +#define ENABLE_DNS 1 +_ACEOF + + + +fi; + # Check whether --enable-http-proxy or --disable-http-proxy was given. if test "${enable_http_proxy+set}" = set; then enableval="$enable_http_proxy" @@ -9743,7 +9983,8 @@ fi; -HMAC=8 # Check whether --enable-hmac-length or --disable-hmac-length was given. +HMAC=12 +# Check whether --enable-hmac-length or --disable-hmac-length was given. if test "${enable_hmac_length+set}" = set; then enableval="$enable_hmac_length" HMAC=$enableval @@ -9755,7 +9996,8 @@ _ACEOF -RAND=8 # Check whether --enable-rand-length or --disable-rand-length was given. +RAND=8 +# Check whether --enable-rand-length or --disable-rand-length was given. if test "${enable_rand_length+set}" = set; then enableval="$enable_rand_length" RAND=$enableval @@ -9767,7 +10009,8 @@ _ACEOF -MTU=1500 # Check whether --enable-mtu or --disable-mtu was given. +MTU=1500 +# Check whether --enable-mtu or --disable-mtu was given. if test "${enable_mtu+set}" = set; then enableval="$enable_mtu" MTU=$enableval @@ -9840,6 +10083,7 @@ ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile" + cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure @@ -9966,6 +10210,13 @@ Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi +if test -z "${ROHC_TRUE}" && test -z "${ROHC_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"ROHC\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"ROHC\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files @@ -10238,7 +10489,7 @@ cat >&5 <<_CSEOF This file was extended by $as_me, which was -generated by GNU Autoconf 2.58. Invocation command line was +generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -10301,7 +10552,7 @@ cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status -configured by $0, generated by GNU Autoconf 2.58, +configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. @@ -10590,6 +10841,9 @@ s,@ALLOCA@,$ALLOCA,;t t s,@LINUX_IF_TUN_H@,$LINUX_IF_TUN_H,;t t s,@HAVE_TUNTAP@,$HAVE_TUNTAP,;t t +s,@LDFLAGS_DAEMON@,$LDFLAGS_DAEMON,;t t +s,@ROHC_TRUE@,$ROHC_TRUE,;t t +s,@ROHC_FALSE@,$ROHC_FALSE,;t t s,@INCLUDES@,$INCLUDES,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t @@ -11402,14 +11656,24 @@ echo "*** RAND used: $RAND" echo "*** Max. MTU: $MTU" echo "*** Compression: $COMPRESS" -echo "***" if test "x$DIGEST" = xmd4; then -echo "*** WARNING" -echo "*** The digest you have chosen ($DIGEST) is known to be insecure" echo "***" +echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" +fi + +if test "$HMAC" -lt 12; then +echo "***" +echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure" +fi + +if test "$RAND" -lt 8; then +echo "***" +echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure" fi +echo "***" + echo