--- gvpe/configure.ac 2011/02/15 13:31:22 1.57 +++ gvpe/configure.ac 2011/10/18 13:24:01 1.59 @@ -245,6 +245,22 @@ fi dnl tinc_ZLIB +AC_ARG_ENABLE(threads, + [AS_HELP_STRING(--enable-threads,try to use threads for long-running asynchronous operations (default enabled).)], + [try_threads=$enableval], + [try_threads=yes] +) + +if test "x$try_threads" = xyes; then + AC_CHECK_HEADER(pthread.h,[ + LIBS="$LIBS -lpthread" + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([#include ], [pthread_t id; pthread_create (&id, 0, 0, 0);])], + [AC_DEFINE_UNQUOTED(ENABLE_PTHREADS, 1, [POSIX thread support.])] + ) + ]) +fi + AC_ARG_ENABLE(static-daemon, [AS_HELP_STRING(--enable-static-daemon,enable statically linked daemon.)], [LDFLAGS_DAEMON=-static] @@ -337,7 +353,7 @@ [AS_HELP_STRING(--enable-max-mtu=BYTES,enable mtu sizes upto BYTES bytes (default 1500). Use 9100 for jumbogram support.)], MTU=$enableval ) -AC_DEFINE_UNQUOTED(MAX_MTU, $MTU + 14, [Maximum MTU supported.]) +AC_DEFINE_UNQUOTED(MAX_MTU, ($MTU + 14), [Maximum MTU supported.]) COMPRESS=1 AC_ARG_ENABLE(compression, @@ -422,6 +438,11 @@ echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" fi +if test "x$DIGEST" = xmd5; then +echo "***" +echo "*** WARNING: The digest you have chosen ($DIGEST) is probably insecure" +fi + if test "$HMAC" -lt 12; then echo "***" echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure"