--- gvpe/configure.ac 2009/08/07 20:58:15 1.56 +++ gvpe/configure.ac 2011/03/08 17:33:30 1.58 @@ -4,7 +4,7 @@ AC_INIT AC_CONFIG_SRCDIR([src/gvpe.C]) AC_CANONICAL_TARGET -AM_INIT_AUTOMAKE(gvpe, 2.22) +AM_INIT_AUTOMAKE(gvpe, 2.24) AC_CONFIG_HEADERS([config.h]) AM_MAINTAINER_MODE @@ -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] @@ -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"