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

Comparing gvpe/configure (file contents):
Revision 1.58 by root, Wed Nov 2 07:06:38 2016 UTC vs.
Revision 1.59 by root, Thu Oct 25 04:32:26 2018 UTC

623LIBOBJS 623LIBOBJS
624INCLUDES 624INCLUDES
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
752with_libiconv_prefix 757with_libiconv_prefix
753enable_nls 758enable_nls
754with_libintl_prefix 759with_libintl_prefix
755enable_iftype 760enable_iftype
756with_kernel 761with_kernel
757with_openssl_include
758with_openssl_lib
759enable_threads 762enable_threads
760enable_static_daemon 763enable_static_daemon
761enable_icmp 764enable_icmp
762enable_tcp 765enable_tcp
763enable_http_proxy 766enable_http_proxy
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
1463 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1471 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1464 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib 1472 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1465 --without-libintl-prefix don't search for libintl in includedir and libdir 1473 --without-libintl-prefix don't search for libintl in includedir and libdir
1466 --with-kernel=dir give the directory with kernel sources 1474 --with-kernel=dir give the directory with kernel sources
1467 (default: /usr/src/linux) 1475 (default: /usr/src/linux)
1468 --with-openssl-include=DIR OpenSSL headers directory (without trailing /openssl)
1469 --with-openssl-lib=DIR OpenSSL library directory
1470 1476
1471Some influential environment variables: 1477Some influential environment variables:
1472 CC C compiler command 1478 CC C compiler command
1473 CFLAGS C compiler flags 1479 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 you have headers in a nonstandard directory <include dir> 1484 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor 1485 CPP C preprocessor
1480 CXX C++ compiler command 1486 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags 1487 CXXFLAGS C++ compiler flags
1482 CXXCPP C++ preprocessor 1488 CXXCPP C++ preprocessor
1489 PKG_CONFIG path to pkg-config utility
1490 PKG_CONFIG_PATH
1491 directories to add to pkg-config's search path
1492 PKG_CONFIG_LIBDIR
1493 path overriding pkg-config's built-in search path
1494 LIBCRYPTO_CFLAGS
1495 C compiler flags for LIBCRYPTO, overriding pkg-config
1496 LIBCRYPTO_LIBS
1497 linker flags for LIBCRYPTO, overriding pkg-config
1483 1498
1484Use these variables to override the choices made by `configure' or to help 1499Use these variables to override the choices made by `configure' or to help
1485it to find libraries and programs with nonstandard names/locations. 1500it to find libraries and programs with nonstandard names/locations.
1486 1501
1487Report bugs to the package provider. 1502Report bugs to the package provider.
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2225 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval 2227 as_fn_set_status $ac_retval
2213 2228
2214} # ac_fn_cxx_try_link 2229} # ac_fn_cxx_try_link
2215
2216# ac_fn_cxx_check_func LINENO FUNC VAR
2217# ------------------------------------
2218# Tests whether FUNC exists, setting the cache variable VAR accordingly
2219ac_fn_cxx_check_func ()
2220{
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223$as_echo_n "checking for $2... " >&6; }
2224if eval \${$3+:} false; then :
2225 $as_echo_n "(cached) " >&6
2226else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228/* end confdefs.h. */
2229/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2231#define $2 innocuous_$2
2232
2233/* System header to define __stub macros and hopefully few prototypes,
2234 which can conflict with char $2 (); below.
2235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2236 <limits.h> exists even on freestanding compilers. */
2237
2238#ifdef __STDC__
2239# include <limits.h>
2240#else
2241# include <assert.h>
2242#endif
2243
2244#undef $2
2245
2246/* Override any GCC internal prototype to avoid an error.
2247 Use char because int might match the return type of a GCC
2248 builtin and then its argument prototype would still apply. */
2249#ifdef __cplusplus
2250extern "C"
2251#endif
2252char $2 ();
2253/* The GNU C library defines this for functions which it implements
2254 to always fail with ENOSYS. Some functions are actually named
2255 something starting with __ and the normal name is an alias. */
2256#if defined __stub_$2 || defined __stub___$2
2257choke me
2258#endif
2259
2260int
2261main ()
2262{
2263return $2 ();
2264 ;
2265 return 0;
2266}
2267_ACEOF
2268if ac_fn_cxx_try_link "$LINENO"; then :
2269 eval "$3=yes"
2270else
2271 eval "$3=no"
2272fi
2273rm -f core conftest.err conftest.$ac_objext \
2274 conftest$ac_exeext conftest.$ac_ext
2275fi
2276eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278$as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280
2281} # ac_fn_cxx_check_func
2282cat >config.log <<_ACEOF 2230cat >config.log <<_ACEOF
2283This file contains any messages produced by compilers while 2231This file contains any messages produced by compilers while
2284running configure, to aid debugging if configure makes a mistake. 2232running configure, to aid debugging if configure makes a mistake.
2285 2233
2286It was created by $as_me, which was 2234It was created by $as_me, which was
3026fi 2974fi
3027 2975
3028 2976
3029# Define the identity of the package. 2977# Define the identity of the package.
3030 PACKAGE=gvpe 2978 PACKAGE=gvpe
3031 VERSION=3.0 2979 VERSION=3.1
3032 2980
3033 2981
3034cat >>confdefs.h <<_ACEOF 2982cat >>confdefs.h <<_ACEOF
3035#define PACKAGE "$PACKAGE" 2983#define PACKAGE "$PACKAGE"
3036_ACEOF 2984_ACEOF
8085 8033
8086 8034
8087 8035
8088 8036
8089 8037
8090 tinc_ac_save_CPPFLAGS="$CPPFLAGS"
8091 8038
8092 8039
8093# Check whether --with-openssl-include was given.
8094if test "${with_openssl_include+set}" = set; then :
8095 withval=$with_openssl_include; openssl_include="$withval"
8096 CFLAGS="$CFLAGS -I$withval"
8097 CPPFLAGS="$CPPFLAGS -I$withval"
8098 8040
8099fi
8100 8041
8101 8042
8102 8043
8103# Check whether --with-openssl-lib was given. 8044if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8104if test "${with_openssl_lib+set}" = set; then : 8045 if test -n "$ac_tool_prefix"; then
8105 withval=$with_openssl_lib; openssl_lib="$withval" 8046 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8106 LIBS="$LIBS -L$withval" 8047set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8107 8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108fi 8049$as_echo_n "checking for $ac_word... " >&6; }
8109 8050if ${ac_cv_path_PKG_CONFIG+:} false; then :
8110 8051 $as_echo_n "(cached) " >&6
8111 for ac_header in openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h
8112do :
8113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8114ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8115if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8116 cat >>confdefs.h <<_ACEOF
8117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8118_ACEOF
8119
8120else 8052else
8121 as_fn_error $? "OpenSSL header files not found." "$LINENO" 5; break 8053 case $PKG_CONFIG in
8122 8054 [\\/]* | ?:[\\/]*)
8123fi 8055 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8124 8056 ;;
8057 *)
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8068 fi
8125done 8069done
8070 done
8071IFS=$as_save_IFS
8126 8072
8073 ;;
8074esac
8075fi
8076PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8077if test -n "$PKG_CONFIG"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8079$as_echo "$PKG_CONFIG" >&6; }
8080else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
8083fi
8127 8084
8128 CPPFLAGS="$tinc_ac_save_CPPFLAGS"
8129 8085
8086fi
8087if test -z "$ac_cv_path_PKG_CONFIG"; then
8088 ac_pt_PKG_CONFIG=$PKG_CONFIG
8089 # Extract the first word of "pkg-config", so it can be a program name with args.
8090set dummy pkg-config; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } 8092$as_echo_n "checking for $ac_word... " >&6; }
8132if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : 8093if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8133 $as_echo_n "(cached) " >&6 8094 $as_echo_n "(cached) " >&6
8134else 8095else
8135 ac_check_lib_save_LIBS=$LIBS 8096 case $ac_pt_PKG_CONFIG in
8136LIBS="-lcrypto $LIBS" 8097 [\\/]* | ?:[\\/]*)
8137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8098 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8138/* end confdefs.h. */
8139
8140/* Override any GCC internal prototype to avoid an error.
8141 Use char because int might match the return type of a GCC
8142 builtin and then its argument prototype would still apply. */
8143#ifdef __cplusplus
8144extern "C"
8145#endif
8146char SHA1_Init ();
8147int
8148main ()
8149{
8150return SHA1_Init ();
8151 ; 8099 ;;
8152 return 0; 8100 *)
8153} 8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154_ACEOF 8102for as_dir in $PATH
8155if ac_fn_cxx_try_link "$LINENO"; then : 8103do
8156 ac_cv_lib_crypto_SHA1_Init=yes 8104 IFS=$as_save_IFS
8157else 8105 test -z "$as_dir" && as_dir=.
8158 ac_cv_lib_crypto_SHA1_Init=no 8106 for ac_exec_ext in '' $ac_executable_extensions; do
8159fi 8107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160rm -f core conftest.err conftest.$ac_objext \ 8108 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8161 conftest$ac_exeext conftest.$ac_ext 8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8162LIBS=$ac_check_lib_save_LIBS 8110 break 2
8163fi 8111 fi
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
8165$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
8166if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
8167 LIBS="$LIBS -lcrypto"
8168else
8169 as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5
8170
8171fi
8172
8173
8174 for ac_func in RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms
8175do :
8176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8177ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
8178if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8179 cat >>confdefs.h <<_ACEOF
8180#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8181_ACEOF
8182
8183fi
8184done 8112done
8113 done
8114IFS=$as_save_IFS
8185 8115
8116 ;;
8117esac
8118fi
8119ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8120if test -n "$ac_pt_PKG_CONFIG"; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8122$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8123else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125$as_echo "no" >&6; }
8126fi
8186 8127
8187 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 8128 if test "x$ac_pt_PKG_CONFIG" = x; then
8188if test "x$ac_cv_func_dlopen" = xyes; then : 8129 PKG_CONFIG=""
8130 else
8131 case $cross_compiling:$ac_tool_warned in
8132yes:)
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8135ac_tool_warned=yes ;;
8136esac
8137 PKG_CONFIG=$ac_pt_PKG_CONFIG
8138 fi
8139else
8140 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8141fi
8189 8142
8143fi
8144if test -n "$PKG_CONFIG"; then
8145 _pkg_min_version=0.9.0
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8147$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8148 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8150$as_echo "yes" >&6; }
8190else 8151 else
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153$as_echo "no" >&6; }
8154 PKG_CONFIG=""
8155 fi
8156fi
8157
8158pkg_failed=no
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCRYPTO" >&5
8192$as_echo_n "checking for dlopen in -ldl... " >&6; } 8160$as_echo_n "checking for LIBCRYPTO... " >&6; }
8193if ${ac_cv_lib_dl_dlopen+:} false; then : 8161
8194 $as_echo_n "(cached) " >&6 8162if test -n "$LIBCRYPTO_CFLAGS"; then
8163 pkg_cv_LIBCRYPTO_CFLAGS="$LIBCRYPTO_CFLAGS"
8164 elif test -n "$PKG_CONFIG"; then
8165 if test -n "$PKG_CONFIG" && \
8166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5
8167 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5
8168 ac_status=$?
8169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8170 test $ac_status = 0; }; then
8171 pkg_cv_LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1" 2>/dev/null`
8172 test "x$?" != "x0" && pkg_failed=yes
8173else
8174 pkg_failed=yes
8175fi
8195else 8176 else
8196 ac_check_lib_save_LIBS=$LIBS 8177 pkg_failed=untried
8197LIBS="-ldl $LIBS" 8178fi
8198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8179if test -n "$LIBCRYPTO_LIBS"; then
8199/* end confdefs.h. */ 8180 pkg_cv_LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS"
8200 8181 elif test -n "$PKG_CONFIG"; then
8201/* Override any GCC internal prototype to avoid an error. 8182 if test -n "$PKG_CONFIG" && \
8202 Use char because int might match the return type of a GCC 8183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5
8203 builtin and then its argument prototype would still apply. */ 8184 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5
8204#ifdef __cplusplus 8185 ac_status=$?
8205extern "C" 8186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8206#endif 8187 test $ac_status = 0; }; then
8207char dlopen (); 8188 pkg_cv_LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1" 2>/dev/null`
8208int 8189 test "x$?" != "x0" && pkg_failed=yes
8209main () 8190else
8210{ 8191 pkg_failed=yes
8211return dlopen (); 8192fi
8212 ;
8213 return 0;
8214}
8215_ACEOF
8216if ac_fn_cxx_try_link "$LINENO"; then :
8217 ac_cv_lib_dl_dlopen=yes
8218else 8193 else
8219 ac_cv_lib_dl_dlopen=no 8194 pkg_failed=untried
8220fi 8195fi
8221rm -f core conftest.err conftest.$ac_objext \ 8196
8222 conftest$ac_exeext conftest.$ac_ext 8197
8223LIBS=$ac_check_lib_save_LIBS 8198
8224fi 8199if test $pkg_failed = yes; then
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 8201$as_echo "no" >&6; }
8227if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8228 LIBS="$LIBS -ldl"
8229else
8230 as_fn_error $? "OpenSSL depends on libdl." "$LINENO" 5
8231 8202
8232fi 8203if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8233 8204 _pkg_short_errors_supported=yes
8234
8235fi
8236
8237
8238 ac_fn_cxx_check_func "$LINENO" "inflate" "ac_cv_func_inflate"
8239if test "x$ac_cv_func_inflate" = xyes; then :
8240
8241else 8205else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 8206 _pkg_short_errors_supported=no
8243$as_echo_n "checking for inflate in -lz... " >&6; }
8244if ${ac_cv_lib_z_inflate+:} false; then :
8245 $as_echo_n "(cached) " >&6
8246else
8247 ac_check_lib_save_LIBS=$LIBS
8248LIBS="-lz $LIBS"
8249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250/* end confdefs.h. */
8251
8252/* Override any GCC internal prototype to avoid an error.
8253 Use char because int might match the return type of a GCC
8254 builtin and then its argument prototype would still apply. */
8255#ifdef __cplusplus
8256extern "C"
8257#endif
8258char inflate ();
8259int
8260main ()
8261{
8262return inflate ();
8263 ;
8264 return 0;
8265}
8266_ACEOF
8267if ac_fn_cxx_try_link "$LINENO"; then :
8268 ac_cv_lib_z_inflate=yes
8269else
8270 ac_cv_lib_z_inflate=no
8271fi 8207fi
8272rm -f core conftest.err conftest.$ac_objext \ 8208 if test $_pkg_short_errors_supported = yes; then
8273 conftest$ac_exeext conftest.$ac_ext 8209 LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1" 2>&1`
8274LIBS=$ac_check_lib_save_LIBS 8210 else
8275fi 8211 LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1" 2>&1`
8212 fi
8213 # Put the nasty error message in config.log where it belongs
8214 echo "$LIBCRYPTO_PKG_ERRORS" >&5
8215
8216 as_fn_error $? "Package requirements (libcrypto >= 1) were not met:
8217
8218$LIBCRYPTO_PKG_ERRORS
8219
8220Consider adjusting the PKG_CONFIG_PATH environment variable if you
8221installed software in a non-standard prefix.
8222
8223Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS
8224and LIBCRYPTO_LIBS to avoid the need to call pkg-config.
8225See the pkg-config man page for more details." "$LINENO" 5
8226elif test $pkg_failed = untried; then
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277$as_echo "$ac_cv_lib_z_inflate" >&6; } 8228$as_echo "no" >&6; }
8278if test "x$ac_cv_lib_z_inflate" = xyes; then : 8229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8279 LIBS="$LIBS -lz" 8230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8280else 8231as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8281 as_fn_error $? "OpenSSL depends on libz." "$LINENO" 5 8232is in your PATH or set the PKG_CONFIG environment variable to the full
8233path to pkg-config.
8282 8234
8283fi 8235Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS
8236and LIBCRYPTO_LIBS to avoid the need to call pkg-config.
8237See the pkg-config man page for more details.
8284 8238
8239To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8240See \`config.log' for more details" "$LINENO" 5; }
8241else
8242 LIBCRYPTO_CFLAGS=$pkg_cv_LIBCRYPTO_CFLAGS
8243 LIBCRYPTO_LIBS=$pkg_cv_LIBCRYPTO_LIBS
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8245$as_echo "yes" >&6; }
8285 8246
8286fi
8287
8288
8289if test "x$openssl_include" != x; then
8290 CXXFLAGS="$CXXFLAGS -I$openssl_include"
8291fi 8247fi
8292 8248
8293# Check whether --enable-threads was given. 8249# Check whether --enable-threads was given.
8294if test "${enable_threads+set}" = set; then : 8250if test "${enable_threads+set}" = set; then :
8295 enableval=$enable_threads; try_threads=$enableval 8251 enableval=$enable_threads; try_threads=$enableval
10154fi 10110fi
10155 10111
10156echo "***" 10112echo "***"
10157echo 10113echo
10158 10114
10115if pkg-config --exists 'libcrypto >= 1.1 libcrypto < 2.0'; then
10116 cat <<EOF
10117
10118***
10119*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING
10120***
10121*** You seem to configure gvpe with OpenSSL 1.1 or newer.
10122*** While this probably compiles, please note that this is not only
10123*** unsupported, but also discouraged.
10124***
10125*** It is recommended to use either OpenSSL 1.0, as long as that is still
10126*** supported, or LibreSSL (https://www.libressl.org/).
10127***
10128*** This is not a political issue - while porting GVPE to the newer
10129*** OpenSSL 1.1 API, I encountered two incompatible API changes that were
10130*** not documented, were not caught while compiling but caused security
10131*** issues. When reported, the reaction of the OpenSSL developers was to
10132*** update the documentation.
10133***
10134*** As a result, I lost all confidence in the ability and desire of
10135*** OpenSSL developers to create a safe API, and would highly recommend
10136*** switching to LibreSSL which explicitly avoids such braking changes.
10137***
10138*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING
10139***
10140*** Again, do not use OpenSSL 1.1 and complain if stuff breaks.
10141*** You have been warned, but your choice is respected.
10142***
10143
10159 10144
10145EOF
10146fi
10147
10148

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines