ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure
(Generate patch)

Comparing gvpe/configure (file contents):
Revision 1.55 by root, Wed Jun 18 20:40:51 2014 UTC vs.
Revision 1.60 by root, Thu Oct 25 07:31:58 2018 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69. 3# Generated by GNU Autoconf 2.69 for gvpe 3.1.
4# 4#
5# 5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7# 7#
8# 8#
573subdirs= 573subdirs=
574MFLAGS= 574MFLAGS=
575MAKEFLAGS= 575MAKEFLAGS=
576 576
577# Identity of this package. 577# Identity of this package.
578PACKAGE_NAME= 578PACKAGE_NAME='gvpe'
579PACKAGE_TARNAME= 579PACKAGE_TARNAME='gvpe'
580PACKAGE_VERSION= 580PACKAGE_VERSION='3.1'
581PACKAGE_STRING= 581PACKAGE_STRING='gvpe 3.1'
582PACKAGE_BUGREPORT= 582PACKAGE_BUGREPORT=''
583PACKAGE_URL= 583PACKAGE_URL=''
584 584
585ac_unique_file="src/gvpe.C" 585ac_unique_file="src/gvpe.C"
586# Factoring default headers for most tests. 586# Factoring default headers for most tests.
587ac_includes_default="\ 587ac_includes_default="\
588#include <stdio.h> 588#include <stdio.h>
619# include <unistd.h> 619# include <unistd.h>
620#endif" 620#endif"
621 621
622ac_subst_vars='LTLIBOBJS 622ac_subst_vars='LTLIBOBJS
623LIBOBJS 623LIBOBJS
624INCLUDES 624AM_CPPFLAGS
625ROHC_FALSE 625ROHC_FALSE
626ROHC_TRUE 626ROHC_TRUE
627LDFLAGS_DAEMON 627LDFLAGS_DAEMON
628LIBCRYPTO_LIBS
629LIBCRYPTO_CFLAGS
630PKG_CONFIG_LIBDIR
631PKG_CONFIG_PATH
632PKG_CONFIG
628HAVE_TUNTAP 633HAVE_TUNTAP
629LINUX_IF_TUN_H 634LINUX_IF_TUN_H
630ALLOCA 635ALLOCA
631CXXCPP 636CXXCPP
632IFSUBTYPE 637IFSUBTYPE
720htmldir 725htmldir
721infodir 726infodir
722docdir 727docdir
723oldincludedir 728oldincludedir
724includedir 729includedir
730runstatedir
725localstatedir 731localstatedir
726sharedstatedir 732sharedstatedir
727sysconfdir 733sysconfdir
728datadir 734datadir
729datarootdir 735datarootdir
751with_libiconv_prefix 757with_libiconv_prefix
752enable_nls 758enable_nls
753with_libintl_prefix 759with_libintl_prefix
754enable_iftype 760enable_iftype
755with_kernel 761with_kernel
756with_openssl_include
757with_openssl_lib
758enable_threads 762enable_threads
759enable_static_daemon 763enable_static_daemon
760enable_icmp 764enable_icmp
761enable_tcp 765enable_tcp
762enable_http_proxy 766enable_http_proxy
763enable_dns 767enable_dns
764enable_rsa_length 768enable_rsa_length
765enable_hmac_length 769enable_hmac_length
766enable_rand_length
767enable_max_mtu 770enable_max_mtu
768enable_compression 771enable_compression
769enable_cipher 772enable_cipher
770enable_hmac_digest 773enable_hmac_digest
771enable_auth_digest 774enable_auth_digest
780CPPFLAGS 783CPPFLAGS
781CPP 784CPP
782CXX 785CXX
783CXXFLAGS 786CXXFLAGS
784CCC 787CCC
785CXXCPP' 788CXXCPP
789PKG_CONFIG
790PKG_CONFIG_PATH
791PKG_CONFIG_LIBDIR
792LIBCRYPTO_CFLAGS
793LIBCRYPTO_LIBS'
786 794
787 795
788# Initialize some variables set by options. 796# Initialize some variables set by options.
789ac_init_help= 797ac_init_help=
790ac_init_version=false 798ac_init_version=false
819datarootdir='${prefix}/share' 827datarootdir='${prefix}/share'
820datadir='${datarootdir}' 828datadir='${datarootdir}'
821sysconfdir='${prefix}/etc' 829sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com' 830sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var' 831localstatedir='${prefix}/var'
832runstatedir='${localstatedir}/run'
824includedir='${prefix}/include' 833includedir='${prefix}/include'
825oldincludedir='/usr/include' 834oldincludedir='/usr/include'
826docdir='${datarootdir}/doc/${PACKAGE}' 835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827infodir='${datarootdir}/info' 836infodir='${datarootdir}/info'
828htmldir='${docdir}' 837htmldir='${docdir}'
829dvidir='${docdir}' 838dvidir='${docdir}'
830pdfdir='${docdir}' 839pdfdir='${docdir}'
831psdir='${docdir}' 840psdir='${docdir}'
1071 1080
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil) 1082 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;; 1083 silent=yes ;;
1075 1084
1085 -runstatedir | --runstatedir | --runstatedi | --runstated \
1086 | --runstate | --runstat | --runsta | --runst | --runs \
1087 | --run | --ru | --r)
1088 ac_prev=runstatedir ;;
1089 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1090 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1091 | --run=* | --ru=* | --r=*)
1092 runstatedir=$ac_optarg ;;
1093
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;; 1095 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*) 1097 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;; 1098 sbindir=$ac_optarg ;;
1208 1226
1209# Check all directory arguments for consistency. 1227# Check all directory arguments for consistency.
1210for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1228for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \ 1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir 1231 libdir localedir mandir runstatedir
1214do 1232do
1215 eval ac_val=\$$ac_var 1233 eval ac_val=\$$ac_var
1216 # Remove trailing slashes. 1234 # Remove trailing slashes.
1217 case $ac_val in 1235 case $ac_val in
1218 */ ) 1236 */ )
1321# 1339#
1322if test "$ac_init_help" = "long"; then 1340if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing. 1341 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh. 1342 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF 1343 cat <<_ACEOF
1326\`configure' configures this package to adapt to many kinds of systems. 1344\`configure' configures gvpe 3.1 to adapt to many kinds of systems.
1327 1345
1328Usage: $0 [OPTION]... [VAR=VALUE]... 1346Usage: $0 [OPTION]... [VAR=VALUE]...
1329 1347
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as 1348To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE. See below for descriptions of some of the useful variables. 1349VAR=VALUE. See below for descriptions of some of the useful variables.
1361 --sbindir=DIR system admin executables [EPREFIX/sbin] 1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec] 1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1366 --libdir=DIR object code libraries [EPREFIX/lib] 1385 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include] 1386 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info] 1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man] 1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1393 --docdir=DIR documentation root [DATAROOTDIR/doc/gvpe]
1375 --htmldir=DIR html documentation [DOCDIR] 1394 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR] 1395 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR] 1396 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR] 1397 --psdir=DIR ps documentation [DOCDIR]
1379_ACEOF 1398_ACEOF
1391 --target=TARGET configure for building compilers for TARGET [HOST] 1410 --target=TARGET configure for building compilers for TARGET [HOST]
1392_ACEOF 1411_ACEOF
1393fi 1412fi
1394 1413
1395if test -n "$ac_init_help"; then 1414if test -n "$ac_init_help"; then
1396 1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of gvpe 3.1:";;
1417 esac
1397 cat <<\_ACEOF 1418 cat <<\_ACEOF
1398 1419
1399Optional Features: 1420Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options 1421 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 use BITS rsa keys (default 3072). Allowed values are 1449 use BITS rsa keys (default 3072). Allowed values are
1429 2048-10240. 1450 2048-10240.
1430 --enable-hmac-length=BYTES 1451 --enable-hmac-length=BYTES
1431 use a hmac of length BYTES bytes (default 12). 1452 use a hmac of length BYTES bytes (default 12).
1432 Allowed values are 4, 8, 12, 16. 1453 Allowed values are 4, 8, 12, 16.
1433 --enable-rand-length=BYTES
1434 use BYTES bytes of extra randomness (default 12).
1435 Allowed values are 0, 4, 8, 12.
1436 --enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500). 1454 --enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500).
1437 Use 9100 for jumbogram support. 1455 Use 9100 for jumbogram support.
1438 --disable-compression Disable compression support. 1456 --disable-compression Disable compression support.
1439 --enable-cipher=CIPHER Select the symmetric cipher (default "aes-128"). 1457 --enable-cipher=CIPHER Select the symmetric cipher (default "aes-128").
1440 Must be one of "bf" (blowfish), "aes-128" 1458 Must be one of "aes-128" (rijndael), "aes-192", or
1441 (rijndael), "aes-192", "aes-256", "camellia-128" or
1442 "camellia-256". 1459 "aes-256".
1443 --enable-hmac-digest=HMAC 1460 --enable-hmac-digest=HMAC
1444 Select the HMAC digest algorithm to use (default 1461 Select the HMAC digest algorithm to use (default
1445 "sha1"). Must be one of "sha512", "sha256", "sha1", 1462 "sha1"). Must be one of "sha512", "sha256", "sha1",
1446 "ripemd160", "whirlpool". 1463 "ripemd160", "whirlpool".
1447 --enable-auth-digest=DIGEST 1464 --enable-auth-digest=DIGEST
1456 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1473 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1457 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib 1474 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1458 --without-libintl-prefix don't search for libintl in includedir and libdir 1475 --without-libintl-prefix don't search for libintl in includedir and libdir
1459 --with-kernel=dir give the directory with kernel sources 1476 --with-kernel=dir give the directory with kernel sources
1460 (default: /usr/src/linux) 1477 (default: /usr/src/linux)
1461 --with-openssl-include=DIR OpenSSL headers directory (without trailing /openssl)
1462 --with-openssl-lib=DIR OpenSSL library directory
1463 1478
1464Some influential environment variables: 1479Some influential environment variables:
1465 CC C compiler command 1480 CC C compiler command
1466 CFLAGS C compiler flags 1481 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 you have headers in a nonstandard directory <include dir> 1486 you have headers in a nonstandard directory <include dir>
1472 CPP C preprocessor 1487 CPP C preprocessor
1473 CXX C++ compiler command 1488 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags 1489 CXXFLAGS C++ compiler flags
1475 CXXCPP C++ preprocessor 1490 CXXCPP C++ preprocessor
1491 PKG_CONFIG path to pkg-config utility
1492 PKG_CONFIG_PATH
1493 directories to add to pkg-config's search path
1494 PKG_CONFIG_LIBDIR
1495 path overriding pkg-config's built-in search path
1496 LIBCRYPTO_CFLAGS
1497 C compiler flags for LIBCRYPTO, overriding pkg-config
1498 LIBCRYPTO_LIBS
1499 linker flags for LIBCRYPTO, overriding pkg-config
1476 1500
1477Use these variables to override the choices made by `configure' or to help 1501Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations. 1502it to find libraries and programs with nonstandard names/locations.
1479 1503
1480Report bugs to the package provider. 1504Report bugs to the package provider.
1538fi 1562fi
1539 1563
1540test -n "$ac_init_help" && exit $ac_status 1564test -n "$ac_init_help" && exit $ac_status
1541if $ac_init_version; then 1565if $ac_init_version; then
1542 cat <<\_ACEOF 1566 cat <<\_ACEOF
1543configure 1567gvpe configure 3.1
1544generated by GNU Autoconf 2.69 1568generated by GNU Autoconf 2.69
1545 1569
1546Copyright (C) 2012 Free Software Foundation, Inc. 1570Copyright (C) 2012 Free Software Foundation, Inc.
1547This configure script is free software; the Free Software Foundation 1571This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it. 1572gives unlimited permission to copy, distribute and modify it.
2203 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2227 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 as_fn_set_status $ac_retval 2229 as_fn_set_status $ac_retval
2206 2230
2207} # ac_fn_cxx_try_link 2231} # ac_fn_cxx_try_link
2208
2209# ac_fn_cxx_check_func LINENO FUNC VAR
2210# ------------------------------------
2211# Tests whether FUNC exists, setting the cache variable VAR accordingly
2212ac_fn_cxx_check_func ()
2213{
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2216$as_echo_n "checking for $2... " >&6; }
2217if eval \${$3+:} false; then :
2218 $as_echo_n "(cached) " >&6
2219else
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221/* end confdefs.h. */
2222/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2224#define $2 innocuous_$2
2225
2226/* System header to define __stub macros and hopefully few prototypes,
2227 which can conflict with char $2 (); below.
2228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2229 <limits.h> exists even on freestanding compilers. */
2230
2231#ifdef __STDC__
2232# include <limits.h>
2233#else
2234# include <assert.h>
2235#endif
2236
2237#undef $2
2238
2239/* Override any GCC internal prototype to avoid an error.
2240 Use char because int might match the return type of a GCC
2241 builtin and then its argument prototype would still apply. */
2242#ifdef __cplusplus
2243extern "C"
2244#endif
2245char $2 ();
2246/* The GNU C library defines this for functions which it implements
2247 to always fail with ENOSYS. Some functions are actually named
2248 something starting with __ and the normal name is an alias. */
2249#if defined __stub_$2 || defined __stub___$2
2250choke me
2251#endif
2252
2253int
2254main ()
2255{
2256return $2 ();
2257 ;
2258 return 0;
2259}
2260_ACEOF
2261if ac_fn_cxx_try_link "$LINENO"; then :
2262 eval "$3=yes"
2263else
2264 eval "$3=no"
2265fi
2266rm -f core conftest.err conftest.$ac_objext \
2267 conftest$ac_exeext conftest.$ac_ext
2268fi
2269eval ac_res=\$$3
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271$as_echo "$ac_res" >&6; }
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273
2274} # ac_fn_cxx_check_func
2275cat >config.log <<_ACEOF 2232cat >config.log <<_ACEOF
2276This file contains any messages produced by compilers while 2233This file contains any messages produced by compilers while
2277running configure, to aid debugging if configure makes a mistake. 2234running configure, to aid debugging if configure makes a mistake.
2278 2235
2279It was created by $as_me, which was 2236It was created by gvpe $as_me 3.1, which was
2280generated by GNU Autoconf 2.69. Invocation command line was 2237generated by GNU Autoconf 2.69. Invocation command line was
2281 2238
2282 $ $0 $@ 2239 $ $0 $@
2283 2240
2284_ACEOF 2241_ACEOF
3018 fi 2975 fi
3019fi 2976fi
3020 2977
3021 2978
3022# Define the identity of the package. 2979# Define the identity of the package.
3023 PACKAGE=gvpe 2980 PACKAGE='gvpe'
3024 VERSION=2.25 2981 VERSION='3.1'
3025 2982
3026 2983
3027cat >>confdefs.h <<_ACEOF 2984cat >>confdefs.h <<_ACEOF
3028#define PACKAGE "$PACKAGE" 2985#define PACKAGE "$PACKAGE"
3029_ACEOF 2986_ACEOF
8078 8035
8079 8036
8080 8037
8081 8038
8082 8039
8083 tinc_ac_save_CPPFLAGS="$CPPFLAGS"
8084 8040
8085 8041
8086# Check whether --with-openssl-include was given.
8087if test "${with_openssl_include+set}" = set; then :
8088 withval=$with_openssl_include; openssl_include="$withval"
8089 CFLAGS="$CFLAGS -I$withval"
8090 CPPFLAGS="$CPPFLAGS -I$withval"
8091 8042
8092fi
8093 8043
8094 8044
8095 8045
8096# Check whether --with-openssl-lib was given. 8046if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8097if test "${with_openssl_lib+set}" = set; then : 8047 if test -n "$ac_tool_prefix"; then
8098 withval=$with_openssl_lib; openssl_lib="$withval" 8048 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8099 LIBS="$LIBS -L$withval" 8049set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8100 8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101fi 8051$as_echo_n "checking for $ac_word... " >&6; }
8102 8052if ${ac_cv_path_PKG_CONFIG+:} false; then :
8103 8053 $as_echo_n "(cached) " >&6
8104 for ac_header in openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h
8105do :
8106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8108if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8109 cat >>confdefs.h <<_ACEOF
8110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8111_ACEOF
8112
8113else 8054else
8114 as_fn_error $? "OpenSSL header files not found." "$LINENO" 5; break 8055 case $PKG_CONFIG in
8115 8056 [\\/]* | ?:[\\/]*)
8116fi 8057 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8117 8058 ;;
8059 *)
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8118done 8071done
8072 done
8073IFS=$as_save_IFS
8119 8074
8075 ;;
8076esac
8077fi
8078PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8079if test -n "$PKG_CONFIG"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8081$as_echo "$PKG_CONFIG" >&6; }
8082else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084$as_echo "no" >&6; }
8085fi
8120 8086
8121 CPPFLAGS="$tinc_ac_save_CPPFLAGS"
8122 8087
8088fi
8089if test -z "$ac_cv_path_PKG_CONFIG"; then
8090 ac_pt_PKG_CONFIG=$PKG_CONFIG
8091 # Extract the first word of "pkg-config", so it can be a program name with args.
8092set dummy pkg-config; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } 8094$as_echo_n "checking for $ac_word... " >&6; }
8125if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : 8095if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8126 $as_echo_n "(cached) " >&6 8096 $as_echo_n "(cached) " >&6
8127else 8097else
8128 ac_check_lib_save_LIBS=$LIBS 8098 case $ac_pt_PKG_CONFIG in
8129LIBS="-lcrypto $LIBS" 8099 [\\/]* | ?:[\\/]*)
8130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8100 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8131/* end confdefs.h. */
8132
8133/* Override any GCC internal prototype to avoid an error.
8134 Use char because int might match the return type of a GCC
8135 builtin and then its argument prototype would still apply. */
8136#ifdef __cplusplus
8137extern "C"
8138#endif
8139char SHA1_Init ();
8140int
8141main ()
8142{
8143return SHA1_Init ();
8144 ; 8101 ;;
8145 return 0; 8102 *)
8146} 8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147_ACEOF 8104for as_dir in $PATH
8148if ac_fn_cxx_try_link "$LINENO"; then : 8105do
8149 ac_cv_lib_crypto_SHA1_Init=yes 8106 IFS=$as_save_IFS
8150else 8107 test -z "$as_dir" && as_dir=.
8151 ac_cv_lib_crypto_SHA1_Init=no 8108 for ac_exec_ext in '' $ac_executable_extensions; do
8152fi 8109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8153rm -f core conftest.err conftest.$ac_objext \ 8110 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8154 conftest$ac_exeext conftest.$ac_ext 8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155LIBS=$ac_check_lib_save_LIBS 8112 break 2
8156fi 8113 fi
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
8158$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
8159if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
8160 LIBS="$LIBS -lcrypto"
8161else
8162 as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5
8163
8164fi
8165
8166
8167 for ac_func in RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms
8168do :
8169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8170ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
8171if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8172 cat >>confdefs.h <<_ACEOF
8173#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8174_ACEOF
8175
8176fi
8177done 8114done
8115 done
8116IFS=$as_save_IFS
8178 8117
8118 ;;
8119esac
8120fi
8121ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8122if test -n "$ac_pt_PKG_CONFIG"; then
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8124$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8125else
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127$as_echo "no" >&6; }
8128fi
8179 8129
8180 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 8130 if test "x$ac_pt_PKG_CONFIG" = x; then
8181if test "x$ac_cv_func_dlopen" = xyes; then : 8131 PKG_CONFIG=""
8132 else
8133 case $cross_compiling:$ac_tool_warned in
8134yes:)
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8137ac_tool_warned=yes ;;
8138esac
8139 PKG_CONFIG=$ac_pt_PKG_CONFIG
8140 fi
8141else
8142 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8143fi
8182 8144
8145fi
8146if test -n "$PKG_CONFIG"; then
8147 _pkg_min_version=0.9.0
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8149$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8150 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8152$as_echo "yes" >&6; }
8183else 8153 else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155$as_echo "no" >&6; }
8156 PKG_CONFIG=""
8157 fi
8158fi
8159
8160pkg_failed=no
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCRYPTO" >&5
8185$as_echo_n "checking for dlopen in -ldl... " >&6; } 8162$as_echo_n "checking for LIBCRYPTO... " >&6; }
8186if ${ac_cv_lib_dl_dlopen+:} false; then : 8163
8187 $as_echo_n "(cached) " >&6 8164if test -n "$LIBCRYPTO_CFLAGS"; then
8165 pkg_cv_LIBCRYPTO_CFLAGS="$LIBCRYPTO_CFLAGS"
8166 elif test -n "$PKG_CONFIG"; then
8167 if test -n "$PKG_CONFIG" && \
8168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5
8169 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5
8170 ac_status=$?
8171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8172 test $ac_status = 0; }; then
8173 pkg_cv_LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1" 2>/dev/null`
8174 test "x$?" != "x0" && pkg_failed=yes
8175else
8176 pkg_failed=yes
8177fi
8188else 8178 else
8189 ac_check_lib_save_LIBS=$LIBS 8179 pkg_failed=untried
8190LIBS="-ldl $LIBS" 8180fi
8191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8181if test -n "$LIBCRYPTO_LIBS"; then
8192/* end confdefs.h. */ 8182 pkg_cv_LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS"
8193 8183 elif test -n "$PKG_CONFIG"; then
8194/* Override any GCC internal prototype to avoid an error. 8184 if test -n "$PKG_CONFIG" && \
8195 Use char because int might match the return type of a GCC 8185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5
8196 builtin and then its argument prototype would still apply. */ 8186 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5
8197#ifdef __cplusplus 8187 ac_status=$?
8198extern "C" 8188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8199#endif 8189 test $ac_status = 0; }; then
8200char dlopen (); 8190 pkg_cv_LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1" 2>/dev/null`
8201int 8191 test "x$?" != "x0" && pkg_failed=yes
8202main () 8192else
8203{ 8193 pkg_failed=yes
8204return dlopen (); 8194fi
8205 ;
8206 return 0;
8207}
8208_ACEOF
8209if ac_fn_cxx_try_link "$LINENO"; then :
8210 ac_cv_lib_dl_dlopen=yes
8211else 8195 else
8212 ac_cv_lib_dl_dlopen=no 8196 pkg_failed=untried
8213fi 8197fi
8214rm -f core conftest.err conftest.$ac_objext \ 8198
8215 conftest$ac_exeext conftest.$ac_ext 8199
8216LIBS=$ac_check_lib_save_LIBS 8200
8217fi 8201if test $pkg_failed = yes; then
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 8203$as_echo "no" >&6; }
8220if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8221 LIBS="$LIBS -ldl"
8222else
8223 as_fn_error $? "OpenSSL depends on libdl." "$LINENO" 5
8224 8204
8225fi 8205if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8226 8206 _pkg_short_errors_supported=yes
8227
8228fi
8229
8230
8231 ac_fn_cxx_check_func "$LINENO" "inflate" "ac_cv_func_inflate"
8232if test "x$ac_cv_func_inflate" = xyes; then :
8233
8234else 8207else
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 8208 _pkg_short_errors_supported=no
8236$as_echo_n "checking for inflate in -lz... " >&6; }
8237if ${ac_cv_lib_z_inflate+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239else
8240 ac_check_lib_save_LIBS=$LIBS
8241LIBS="-lz $LIBS"
8242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243/* end confdefs.h. */
8244
8245/* Override any GCC internal prototype to avoid an error.
8246 Use char because int might match the return type of a GCC
8247 builtin and then its argument prototype would still apply. */
8248#ifdef __cplusplus
8249extern "C"
8250#endif
8251char inflate ();
8252int
8253main ()
8254{
8255return inflate ();
8256 ;
8257 return 0;
8258}
8259_ACEOF
8260if ac_fn_cxx_try_link "$LINENO"; then :
8261 ac_cv_lib_z_inflate=yes
8262else
8263 ac_cv_lib_z_inflate=no
8264fi 8209fi
8265rm -f core conftest.err conftest.$ac_objext \ 8210 if test $_pkg_short_errors_supported = yes; then
8266 conftest$ac_exeext conftest.$ac_ext 8211 LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1" 2>&1`
8267LIBS=$ac_check_lib_save_LIBS 8212 else
8268fi 8213 LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1" 2>&1`
8214 fi
8215 # Put the nasty error message in config.log where it belongs
8216 echo "$LIBCRYPTO_PKG_ERRORS" >&5
8217
8218 as_fn_error $? "Package requirements (libcrypto >= 1) were not met:
8219
8220$LIBCRYPTO_PKG_ERRORS
8221
8222Consider adjusting the PKG_CONFIG_PATH environment variable if you
8223installed software in a non-standard prefix.
8224
8225Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS
8226and LIBCRYPTO_LIBS to avoid the need to call pkg-config.
8227See the pkg-config man page for more details." "$LINENO" 5
8228elif test $pkg_failed = untried; then
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270$as_echo "$ac_cv_lib_z_inflate" >&6; } 8230$as_echo "no" >&6; }
8271if test "x$ac_cv_lib_z_inflate" = xyes; then : 8231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8272 LIBS="$LIBS -lz" 8232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8273else 8233as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8274 as_fn_error $? "OpenSSL depends on libz." "$LINENO" 5 8234is in your PATH or set the PKG_CONFIG environment variable to the full
8235path to pkg-config.
8275 8236
8276fi 8237Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS
8238and LIBCRYPTO_LIBS to avoid the need to call pkg-config.
8239See the pkg-config man page for more details.
8277 8240
8241To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8242See \`config.log' for more details" "$LINENO" 5; }
8243else
8244 LIBCRYPTO_CFLAGS=$pkg_cv_LIBCRYPTO_CFLAGS
8245 LIBCRYPTO_LIBS=$pkg_cv_LIBCRYPTO_LIBS
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8247$as_echo "yes" >&6; }
8278 8248
8279fi
8280
8281
8282if test "x$openssl_include" != x; then
8283 CXXFLAGS="$CXXFLAGS -I$openssl_include"
8284fi 8249fi
8285 8250
8286# Check whether --enable-threads was given. 8251# Check whether --enable-threads was given.
8287if test "${enable_threads+set}" = set; then : 8252if test "${enable_threads+set}" = set; then :
8288 enableval=$enable_threads; try_threads=$enableval 8253 enableval=$enable_threads; try_threads=$enableval
8482cat >>confdefs.h <<_ACEOF 8447cat >>confdefs.h <<_ACEOF
8483#define HMACLENGTH $HMACSIZE 8448#define HMACLENGTH $HMACSIZE
8484_ACEOF 8449_ACEOF
8485 8450
8486 8451
8487RANDSIZE=12
8488# Check whether --enable-rand-length was given.
8489if test "${enable_rand_length+set}" = set; then :
8490 enableval=$enable_rand_length; RANDSIZE=$enableval
8491
8492fi
8493
8494
8495cat >>confdefs.h <<_ACEOF
8496#define RAND_SIZE $RANDSIZE
8497_ACEOF
8498
8499
8500MTU=1500 8452MTU=1500
8501# Check whether --enable-max-mtu was given. 8453# Check whether --enable-max-mtu was given.
8502if test "${enable_max_mtu+set}" = set; then : 8454if test "${enable_max_mtu+set}" = set; then :
8503 enableval=$enable_max_mtu; MTU=$enableval 8455 enableval=$enable_max_mtu; MTU=$enableval
8504 8456
8523cat >>confdefs.h <<_ACEOF 8475cat >>confdefs.h <<_ACEOF
8524#define ENABLE_COMPRESSION $COMPRESS 8476#define ENABLE_COMPRESSION $COMPRESS
8525_ACEOF 8477_ACEOF
8526 8478
8527 8479
8528CIPHER=aes_128_cbc 8480CIPHER=aes_128_ctr
8529# Check whether --enable-cipher was given. 8481# Check whether --enable-cipher was given.
8530if test "${enable_cipher+set}" = set; then : 8482if test "${enable_cipher+set}" = set; then :
8531 enableval=$enable_cipher; if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi 8483 enableval=$enable_cipher; #if test "x$enableval" = xbf ; then CIPHER=bf_ctr ; fi
8532 if test "x$enableval" = xaes-128 ; then CIPHER=aes_128_cbc ; fi 8484 if test "x$enableval" = xaes-128 ; then CIPHER=aes_128_ctr ; fi
8533 if test "x$enableval" = xaes-192 ; then CIPHER=aes_192_cbc ; fi 8485 if test "x$enableval" = xaes-192 ; then CIPHER=aes_192_ctr ; fi
8534 if test "x$enableval" = xaes-256 ; then CIPHER=aes_256_cbc ; fi 8486 if test "x$enableval" = xaes-256 ; then CIPHER=aes_256_ctr ; fi
8535 if test "x$enableval" = xcamellia-128; then CIPHER=camellia_128_cbc; fi 8487 #if test "x$enableval" = xcamellia-128; then CIPHER=camellia_128_ctr; fi
8536 if test "x$enableval" = xcamellia-256; then CIPHER=camellia_256_cbc; fi 8488 #if test "x$enableval" = xcamellia-256; then CIPHER=camellia_256_ctr; fi
8537 8489
8538fi 8490fi
8539 8491
8540 8492
8541cat >>confdefs.h <<_ACEOF 8493cat >>confdefs.h <<_ACEOF
9114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9115# Save the log message, to keep $0 and so on meaningful, and to 9067# Save the log message, to keep $0 and so on meaningful, and to
9116# report actual input values of CONFIG_FILES etc. instead of their 9068# report actual input values of CONFIG_FILES etc. instead of their
9117# values after options handling. 9069# values after options handling.
9118ac_log=" 9070ac_log="
9119This file was extended by $as_me, which was 9071This file was extended by gvpe $as_me 3.1, which was
9120generated by GNU Autoconf 2.69. Invocation command line was 9072generated by GNU Autoconf 2.69. Invocation command line was
9121 9073
9122 CONFIG_FILES = $CONFIG_FILES 9074 CONFIG_FILES = $CONFIG_FILES
9123 CONFIG_HEADERS = $CONFIG_HEADERS 9075 CONFIG_HEADERS = $CONFIG_HEADERS
9124 CONFIG_LINKS = $CONFIG_LINKS 9076 CONFIG_LINKS = $CONFIG_LINKS
9180 9132
9181_ACEOF 9133_ACEOF
9182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9183ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9135ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9184ac_cs_version="\\ 9136ac_cs_version="\\
9185config.status 9137gvpe config.status 3.1
9186configured by $0, generated by GNU Autoconf 2.69, 9138configured by $0, generated by GNU Autoconf 2.69,
9187 with options \\"\$ac_cs_config\\" 9139 with options \\"\$ac_cs_config\\"
9188 9140
9189Copyright (C) 2012 Free Software Foundation, Inc. 9141Copyright (C) 2012 Free Software Foundation, Inc.
9190This config.status script is free software; the Free Software Foundation 9142This config.status script is free software; the Free Software Foundation
10146echo "*** RSA size: $RSA" 10098echo "*** RSA size: $RSA"
10147echo "*** Cipher used: $CIPHER" 10099echo "*** Cipher used: $CIPHER"
10148echo "*** Digest used: $DIGEST" 10100echo "*** Digest used: $DIGEST"
10149echo "*** Authdigest: $AUTH" 10101echo "*** Authdigest: $AUTH"
10150echo "*** HMAC length: $HMAC" 10102echo "*** HMAC length: $HMAC"
10151echo "*** RAND used: $RAND"
10152echo "*** Max. MTU: $MTU" 10103echo "*** Max. MTU: $MTU"
10153 10104
10154echo "***" 10105echo "***"
10155echo "*** Enable options:" 10106echo "*** Enable options:"
10156grep ENABLE_ config.h | sed -e 's/^/*** /' 10107grep ENABLE_ config.h | sed -e 's/^/*** /'
10158if test "$HMACSIZE" -lt 12; then 10109if test "$HMACSIZE" -lt 12; then
10159echo "***" 10110echo "***"
10160echo "*** WARNING: The hmac length you have chosen ($HMACSIZE) is quite insecure" 10111echo "*** WARNING: The hmac length you have chosen ($HMACSIZE) is quite insecure"
10161fi 10112fi
10162 10113
10163if test "$RANDSIZE" -lt 12; then
10164echo "***"
10165echo "*** WARNING: The random prefix you have chosen ($RANDSIZE) is probably insecure"
10166fi
10167
10168echo "***" 10114echo "***"
10169echo 10115echo
10170 10116
10117if pkg-config --exists 'libcrypto >= 1.1 libcrypto < 2.0'; then
10118 cat <<EOF
10119
10120***
10121*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING
10122***
10123*** You seem to configure gvpe with OpenSSL 1.1 or newer.
10124*** While this probably compiles, please note that this is not only
10125*** unsupported, but also discouraged.
10126***
10127*** It is recommended to use either OpenSSL 1.0, as long as that is still
10128*** supported, or LibreSSL (https://www.libressl.org/).
10129***
10130*** This is not a political issue - while porting GVPE to the newer
10131*** OpenSSL 1.1 API, I encountered two incompatible API changes that were
10132*** not documented, were not caught while compiling but caused security
10133*** issues. When reported, the reaction of the OpenSSL developers was to
10134*** update the documentation.
10135***
10136*** As a result, I lost all confidence in the ability and desire of
10137*** OpenSSL developers to create a safe API, and would highly recommend
10138*** switching to LibreSSL which explicitly avoids such braking changes.
10139***
10140*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING
10141***
10142*** Again, do not use OpenSSL 1.1 and complain if stuff breaks.
10143*** You have been warned, but your choice is respected.
10144***
10145
10171 10146
10147EOF
10148fi
10149
10150

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines