… | |
… | |
732 | with_libintl_prefix |
732 | with_libintl_prefix |
733 | enable_iftype |
733 | enable_iftype |
734 | with_kernel |
734 | with_kernel |
735 | with_openssl_include |
735 | with_openssl_include |
736 | with_openssl_lib |
736 | with_openssl_lib |
|
|
737 | enable_threads |
737 | enable_static_daemon |
738 | enable_static_daemon |
738 | enable_icmp |
739 | enable_icmp |
739 | enable_tcp |
740 | enable_tcp |
740 | enable_http_proxy |
741 | enable_http_proxy |
741 | enable_dns |
742 | enable_dns |
… | |
… | |
1392 | "tincd/darwin" "native/cygwin"; Untested |
1393 | "tincd/darwin" "native/cygwin"; Untested |
1393 | combinations are: "tincd/bsd" "tincd/solaris" |
1394 | combinations are: "tincd/bsd" "tincd/solaris" |
1394 | "tincd/mingw" "tincd/raw_socket" "tincd/uml_socket"; |
1395 | "tincd/mingw" "tincd/raw_socket" "tincd/uml_socket"; |
1395 | Broken combinations are: "tincd/cygwin"; The default |
1396 | Broken combinations are: "tincd/cygwin"; The default |
1396 | is to autodetect. |
1397 | is to autodetect. |
|
|
1398 | --enable-threads try to use threads for long-running asynchronous |
|
|
1399 | operations (default enabled). |
1397 | --enable-static-daemon enable statically linked daemon. |
1400 | --enable-static-daemon enable statically linked daemon. |
1398 | --disable-icmp enable icmp protocol support (default enabled). |
1401 | --disable-icmp enable icmp protocol support (default enabled). |
1399 | --disable-tcp enable tcp protocol support (default enabled). |
1402 | --disable-tcp enable tcp protocol support (default enabled). |
1400 | --disable-http-proxy enable http proxy connect support (default enabled). |
1403 | --disable-http-proxy enable http proxy connect support (default enabled). |
1401 | --enable-dns enable dns tunnel protocol support (default |
1404 | --enable-dns enable dns tunnel protocol support (default |
… | |
… | |
8203 | done |
8206 | done |
8204 | |
8207 | |
8205 | |
8208 | |
8206 | CPPFLAGS="$tinc_ac_save_CPPFLAGS" |
8209 | CPPFLAGS="$tinc_ac_save_CPPFLAGS" |
8207 | |
8210 | |
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_version in -lcrypto" >&5 |
8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 |
8209 | $as_echo_n "checking for SHA1_version in -lcrypto... " >&6; } |
8212 | $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } |
8210 | if test "${ac_cv_lib_crypto_SHA1_version+set}" = set; then : |
8213 | if test "${ac_cv_lib_crypto_SHA1_Init+set}" = set; then : |
8211 | $as_echo_n "(cached) " >&6 |
8214 | $as_echo_n "(cached) " >&6 |
8212 | else |
8215 | else |
8213 | ac_check_lib_save_LIBS=$LIBS |
8216 | ac_check_lib_save_LIBS=$LIBS |
8214 | LIBS="-lcrypto $LIBS" |
8217 | LIBS="-lcrypto $LIBS" |
8215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
… | |
… | |
8219 | Use char because int might match the return type of a GCC |
8222 | Use char because int might match the return type of a GCC |
8220 | builtin and then its argument prototype would still apply. */ |
8223 | builtin and then its argument prototype would still apply. */ |
8221 | #ifdef __cplusplus |
8224 | #ifdef __cplusplus |
8222 | extern "C" |
8225 | extern "C" |
8223 | #endif |
8226 | #endif |
8224 | char SHA1_version (); |
8227 | char SHA1_Init (); |
8225 | int |
8228 | int |
8226 | main () |
8229 | main () |
8227 | { |
8230 | { |
8228 | return SHA1_version (); |
8231 | return SHA1_Init (); |
8229 | ; |
8232 | ; |
8230 | return 0; |
8233 | return 0; |
8231 | } |
8234 | } |
8232 | _ACEOF |
8235 | _ACEOF |
8233 | if ac_fn_cxx_try_link "$LINENO"; then : |
8236 | if ac_fn_cxx_try_link "$LINENO"; then : |
8234 | ac_cv_lib_crypto_SHA1_version=yes |
8237 | ac_cv_lib_crypto_SHA1_Init=yes |
8235 | else |
8238 | else |
8236 | ac_cv_lib_crypto_SHA1_version=no |
8239 | ac_cv_lib_crypto_SHA1_Init=no |
8237 | fi |
8240 | fi |
8238 | rm -f core conftest.err conftest.$ac_objext \ |
8241 | rm -f core conftest.err conftest.$ac_objext \ |
8239 | conftest$ac_exeext conftest.$ac_ext |
8242 | conftest$ac_exeext conftest.$ac_ext |
8240 | LIBS=$ac_check_lib_save_LIBS |
8243 | LIBS=$ac_check_lib_save_LIBS |
8241 | fi |
8244 | fi |
8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_version" >&5 |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 |
8243 | $as_echo "$ac_cv_lib_crypto_SHA1_version" >&6; } |
8246 | $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } |
8244 | if test "x$ac_cv_lib_crypto_SHA1_version" = x""yes; then : |
8247 | if test "x$ac_cv_lib_crypto_SHA1_Init" = x""yes; then : |
8245 | LIBS="$LIBS -lcrypto" |
8248 | LIBS="$LIBS -lcrypto" |
8246 | else |
8249 | else |
8247 | as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5 |
8250 | as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5 |
8248 | |
8251 | |
8249 | fi |
8252 | fi |
… | |
… | |
8364 | fi |
8367 | fi |
8365 | |
8368 | |
8366 | |
8369 | |
8367 | if test "x$openssl_include" != x; then |
8370 | if test "x$openssl_include" != x; then |
8368 | CXXFLAGS="$CXXFLAGS -I$openssl_include" |
8371 | CXXFLAGS="$CXXFLAGS -I$openssl_include" |
|
|
8372 | fi |
|
|
8373 | |
|
|
8374 | # Check whether --enable-threads was given. |
|
|
8375 | if test "${enable_threads+set}" = set; then : |
|
|
8376 | enableval=$enable_threads; try_threads=$enableval |
|
|
8377 | else |
|
|
8378 | try_threads=yes |
|
|
8379 | |
|
|
8380 | fi |
|
|
8381 | |
|
|
8382 | |
|
|
8383 | if test "x$try_threads" = xyes; then |
|
|
8384 | ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
|
|
8385 | if test "x$ac_cv_header_pthread_h" = x""yes; then : |
|
|
8386 | |
|
|
8387 | LIBS="$LIBS -lpthread" |
|
|
8388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
8389 | /* end confdefs.h. */ |
|
|
8390 | #include <pthread.h> |
|
|
8391 | int |
|
|
8392 | main () |
|
|
8393 | { |
|
|
8394 | pthread_t id; pthread_create (&id, 0, 0, 0); |
|
|
8395 | ; |
|
|
8396 | return 0; |
|
|
8397 | } |
|
|
8398 | _ACEOF |
|
|
8399 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
8400 | |
|
|
8401 | cat >>confdefs.h <<_ACEOF |
|
|
8402 | #define ENABLE_PTHREADS 1 |
|
|
8403 | _ACEOF |
|
|
8404 | |
|
|
8405 | |
|
|
8406 | fi |
|
|
8407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8408 | |
|
|
8409 | fi |
|
|
8410 | |
|
|
8411 | |
8369 | fi |
8412 | fi |
8370 | |
8413 | |
8371 | # Check whether --enable-static-daemon was given. |
8414 | # Check whether --enable-static-daemon was given. |
8372 | if test "${enable_static_daemon+set}" = set; then : |
8415 | if test "${enable_static_daemon+set}" = set; then : |
8373 | enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static |
8416 | enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static |
… | |
… | |
10189 | if test "x$DIGEST" = xmd4; then |
10232 | if test "x$DIGEST" = xmd4; then |
10190 | echo "***" |
10233 | echo "***" |
10191 | echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" |
10234 | echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" |
10192 | fi |
10235 | fi |
10193 | |
10236 | |
|
|
10237 | if test "x$DIGEST" = xmd5; then |
|
|
10238 | echo "***" |
|
|
10239 | echo "*** WARNING: The digest you have chosen ($DIGEST) is probably insecure" |
|
|
10240 | fi |
|
|
10241 | |
10194 | if test "$HMAC" -lt 12; then |
10242 | if test "$HMAC" -lt 12; then |
10195 | echo "***" |
10243 | echo "***" |
10196 | echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure" |
10244 | echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure" |
10197 | fi |
10245 | fi |
10198 | |
10246 | |