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

Comparing gvpe/configure.ac (file contents):
Revision 1.57 by root, Tue Feb 15 13:31:22 2011 UTC vs.
Revision 1.61 by root, Sat Jul 13 04:10:29 2013 UTC

1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2 2
3AC_PREREQ(2.59) 3AC_PREREQ(2.69)
4AC_INIT 4AC_INIT
5AC_CONFIG_SRCDIR([src/gvpe.C]) 5AC_CONFIG_SRCDIR([src/gvpe.C])
6AC_CANONICAL_TARGET 6AC_CANONICAL_TARGET
7AM_INIT_AUTOMAKE(gvpe, 2.24) 7AM_INIT_AUTOMAKE(gvpe, 2.24)
8AC_CONFIG_HEADERS([config.h]) 8AC_CONFIG_HEADERS([config.h])
45# define CLOCALE <clocale> 45# define CLOCALE <clocale>
46#else 46#else
47# define CLOCALE <locale.h> 47# define CLOCALE <locale.h>
48#endif 48#endif
49]) 49])
50
51dnl Include the macros from the m4/ directory
52AM_ACLOCAL_INCLUDE(m4)
53 50
54AM_GNU_GETTEXT([external]) 51AM_GNU_GETTEXT([external])
55AM_GNU_GETTEXT_VERSION(0.11.5) 52AM_GNU_GETTEXT_VERSION(0.11.5)
56 53
57# Enable GNU extensions. 54# Enable GNU extensions.
243if test "x$openssl_include" != x; then 240if test "x$openssl_include" != x; then
244 CXXFLAGS="$CXXFLAGS -I$openssl_include" 241 CXXFLAGS="$CXXFLAGS -I$openssl_include"
245fi 242fi
246dnl tinc_ZLIB 243dnl tinc_ZLIB
247 244
245AC_ARG_ENABLE(threads,
246 [AS_HELP_STRING(--enable-threads,try to use threads for long-running asynchronous operations (default enabled).)],
247 [try_threads=$enableval],
248 [try_threads=yes]
249)
250
251if test "x$try_threads" = xyes; then
252 AC_CHECK_HEADER(pthread.h,[
253 LIBS="$LIBS -lpthread"
254 AC_COMPILE_IFELSE(
255 [AC_LANG_PROGRAM([#include <pthread.h>], [pthread_t id; pthread_create (&id, 0, 0, 0);])],
256 [AC_DEFINE_UNQUOTED(ENABLE_PTHREADS, 1, [POSIX thread support.])]
257 )
258 ])
259fi
260
248AC_ARG_ENABLE(static-daemon, 261AC_ARG_ENABLE(static-daemon,
249 [AS_HELP_STRING(--enable-static-daemon,enable statically linked daemon.)], 262 [AS_HELP_STRING(--enable-static-daemon,enable statically linked daemon.)],
250 [LDFLAGS_DAEMON=-static] 263 [LDFLAGS_DAEMON=-static]
251) 264)
252AC_SUBST(LDFLAGS_DAEMON) 265AC_SUBST(LDFLAGS_DAEMON)
335MTU=1500 348MTU=1500
336AC_ARG_ENABLE(max-mtu, 349AC_ARG_ENABLE(max-mtu,
337 [AS_HELP_STRING(--enable-max-mtu=BYTES,enable mtu sizes upto BYTES bytes (default 1500). Use 9100 for jumbogram support.)], 350 [AS_HELP_STRING(--enable-max-mtu=BYTES,enable mtu sizes upto BYTES bytes (default 1500). Use 9100 for jumbogram support.)],
338 MTU=$enableval 351 MTU=$enableval
339) 352)
340AC_DEFINE_UNQUOTED(MAX_MTU, $MTU + 14, [Maximum MTU supported.]) 353AC_DEFINE_UNQUOTED(MAX_MTU, ($MTU + 14), [Maximum MTU supported.])
341 354
342COMPRESS=1 355COMPRESS=1
343AC_ARG_ENABLE(compression, 356AC_ARG_ENABLE(compression,
344 [AS_HELP_STRING(--disable-compression,Disable compression support.)], 357 [AS_HELP_STRING(--disable-compression,Disable compression support.)],
345 if test "x$enableval" = xno; then 358 if test "x$enableval" = xno; then
362 375
363DIGEST=ripemd160 376DIGEST=ripemd160
364AC_ARG_ENABLE(digest, 377AC_ARG_ENABLE(digest,
365 [AS_HELP_STRING(--enable-digest=CIPHER,[ 378 [AS_HELP_STRING(--enable-digest=CIPHER,[
366 Select the digest algorithm to use (default "ripemd160"). Must be one of 379 Select the digest algorithm to use (default "ripemd160"). Must be one of
367 "sha512", "sha256", "sha1" (somewhat insecure), "ripemd160", "md5" (insecure) or "md4" (insecure).])], 380 "sha512", "sha256", "sha1" (legacy), "ripemd160", "md5" (insecure) or "md4" (insecure).])],
368 if test "x$enableval" = xsha512 ; then DIGEST=sha512 ; fi 381 if test "x$enableval" = xsha512 ; then DIGEST=sha512 ; fi
369 if test "x$enableval" = xsha256 ; then DIGEST=sha256 ; fi 382 if test "x$enableval" = xsha256 ; then DIGEST=sha256 ; fi
370 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi 383 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi
371 if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi 384 if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi
372 if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi 385 if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi
420if test "x$DIGEST" = xmd4; then 433if test "x$DIGEST" = xmd4; then
421echo "***" 434echo "***"
422echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" 435echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure"
423fi 436fi
424 437
438if test "x$DIGEST" = xmd5; then
439echo "***"
440echo "*** WARNING: The digest you have chosen ($DIGEST) is quite insecure"
441fi
442
425if test "$HMAC" -lt 12; then 443if test "$HMAC" -lt 12; then
426echo "***" 444echo "***"
427echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure" 445echo "*** WARNING: The hmac length you have chosen ($HMAC) is quite insecure"
428fi 446fi
429 447
430if test "$RAND" -lt 8; then 448if test "$RAND" -lt 8; then
431echo "***" 449echo "***"
432echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure" 450echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines