… | |
… | |
2 | |
2 | |
3 | AC_PREREQ(2.59) |
3 | AC_PREREQ(2.59) |
4 | AC_INIT |
4 | AC_INIT |
5 | AC_CONFIG_SRCDIR([src/gvpe.C]) |
5 | AC_CONFIG_SRCDIR([src/gvpe.C]) |
6 | AC_CANONICAL_TARGET |
6 | AC_CANONICAL_TARGET |
7 | AM_INIT_AUTOMAKE(gvpe, 1.9) |
7 | AM_INIT_AUTOMAKE(gvpe, 2.01) |
8 | AC_CONFIG_HEADERS([config.h]) |
8 | AC_CONFIG_HEADERS([config.h]) |
9 | AM_MAINTAINER_MODE |
9 | AM_MAINTAINER_MODE |
10 | |
10 | |
11 | AH_TOP([ |
11 | AH_TOP([ |
12 | #ifndef CONFIG_H__ |
12 | #ifndef CONFIG_H__ |
… | |
… | |
55 | AM_GNU_GETTEXT_VERSION(0.11.5) |
55 | AM_GNU_GETTEXT_VERSION(0.11.5) |
56 | |
56 | |
57 | # Enable GNU extensions. |
57 | # Enable GNU extensions. |
58 | # Define this here, not in acconfig's @TOP@ section, since definitions |
58 | # Define this here, not in acconfig's @TOP@ section, since definitions |
59 | # in the latter don't make it into the configure-time tests. |
59 | # in the latter don't make it into the configure-time tests. |
60 | AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extenstions]) |
60 | AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extensions]) |
61 | |
61 | |
62 | # do NOT define POSIX_SOURCE, sicne this clashes with many BSDs |
62 | # do NOT define POSIX_SOURCE, sicne this clashes with many BSDs |
63 | dnl AC_DEFINE([_POSIX_SOURCE], 1, [Enable POSIX 1003.1 extensions]) |
63 | dnl AC_DEFINE([_POSIX_SOURCE], 1, [Enable POSIX 1003.1 extensions]) |
64 | dnl AC_DEFINE([_XOPEN_SOURCE], 500, [Enable XOPEN extensions]) |
64 | dnl AC_DEFINE([_XOPEN_SOURCE], 500, [Enable XOPEN extensions]) |
65 | |
65 | |
… | |
… | |
264 | ] |
264 | ] |
265 | ) |
265 | ) |
266 | |
266 | |
267 | AM_CONDITIONAL(ROHC, test x$rohc = xtrue) |
267 | AM_CONDITIONAL(ROHC, test x$rohc = xtrue) |
268 | |
268 | |
|
|
269 | dnl AC_ARG_ENABLE(bridging, |
|
|
270 | dnl [AS_HELP_STRING(--enable-bridging,enable bridging support (default disabled).)], |
|
|
271 | dnl AC_DEFINE_UNQUOTED(ENABLE_BRIDGING, 1, [bridging support.]) |
|
|
272 | dnl ) |
|
|
273 | |
269 | AC_ARG_ENABLE(icmp, |
274 | AC_ARG_ENABLE(icmp, |
270 | [AS_HELP_STRING(--enable-icmp,enable icmp protocol support (default disabled).)], |
275 | [AS_HELP_STRING(--enable-icmp,enable icmp protocol support (default disabled).)], |
271 | AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.]) |
276 | AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.]) |
272 | ) |
277 | ) |
273 | |
278 | |
… | |
… | |
321 | COMPRESS=0 |
326 | COMPRESS=0 |
322 | fi |
327 | fi |
323 | ) |
328 | ) |
324 | AC_DEFINE_UNQUOTED(ENABLE_COMPRESSION, $COMPRESS, [Enable compression support.]) |
329 | AC_DEFINE_UNQUOTED(ENABLE_COMPRESSION, $COMPRESS, [Enable compression support.]) |
325 | |
330 | |
326 | CIPHER=bf_cbc |
331 | CIPHER=aes_128_cbc |
327 | AC_ARG_ENABLE(cipher, |
332 | AC_ARG_ENABLE(cipher, |
328 | [AS_HELP_STRING(--enable-cipher,[ |
333 | [AS_HELP_STRING(--enable-cipher,[ |
329 | Select the symmetric cipher (default "bf"). |
334 | Select the symmetric cipher (default "aes-128"). |
330 | Must be one of "bf" (blowfish), "aes-128" (rijndael), "aes-192" or "aes-256".])], |
335 | Must be one of "bf" (blowfish), "aes-128" (rijndael), "aes-192" or "aes-256".])], |
331 | if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi |
336 | if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi |
332 | if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi |
337 | if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi |
333 | if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi |
338 | if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi |
334 | if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi |
339 | if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi |
335 | ) |
340 | ) |
336 | AC_DEFINE_UNQUOTED(ENABLE_CIPHER, EVP_${CIPHER}, [Select the symmetric cipher to use.]) |
341 | AC_DEFINE_UNQUOTED(ENABLE_CIPHER, EVP_${CIPHER}, [Select the symmetric cipher to use.]) |
337 | |
342 | |
338 | DIGEST=sha1 |
343 | DIGEST=ripemd160 |
339 | AC_ARG_ENABLE(digest, |
344 | AC_ARG_ENABLE(digest, |
340 | [AS_HELP_STRING(--enable-digest,[ |
345 | [AS_HELP_STRING(--enable-digest,[ |
341 | Select the digets algorithm to use (default "sha1"). Must be one of |
346 | Select the digest algorithm to use (default "ripemd160"). Must be one of |
342 | "sha1", "ripemd160", "md5" or "md4" (insecure).])], |
347 | "sha512", "sha256", "sha1", "ripemd160", "md5" or "md4" (insecure).])], |
|
|
348 | if test "x$enableval" = xsha512 ; then DIGEST=sha512 ; fi |
|
|
349 | if test "x$enableval" = xsha256 ; then DIGEST=sha256 ; fi |
343 | if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi |
350 | if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi |
344 | if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi |
351 | if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi |
345 | if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi |
352 | if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi |
346 | if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi |
353 | if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi |
347 | ) |
354 | ) |
… | |
… | |
361 | dnl |
368 | dnl |
362 | dnl if $LD -v --help 2>&1 | grep -q gc-sections; then |
369 | dnl if $LD -v --help 2>&1 | grep -q gc-sections; then |
363 | dnl LDFLAGS="$LDFLAGS -Wl,--gc-sections" |
370 | dnl LDFLAGS="$LDFLAGS -Wl,--gc-sections" |
364 | dnl fi |
371 | dnl fi |
365 | |
372 | |
366 | AC_CONFIG_COMMANDS_POST([ |
373 | AC_SUBST(INCLUDES) |
|
|
374 | |
|
|
375 | AC_CONFIG_FILES([Makefile po/Makefile.in |
|
|
376 | src/Makefile |
|
|
377 | doc/Makefile |
|
|
378 | lib/Makefile |
|
|
379 | m4/Makefile |
|
|
380 | ]) |
|
|
381 | AC_OUTPUT |
367 | |
382 | |
368 | echo |
383 | echo |
369 | echo "***" |
384 | echo "***" |
370 | echo "*** Configuration Summary" |
385 | echo "*** Configuration Summary" |
371 | echo "***" |
386 | echo "***" |
… | |
… | |
373 | echo "*** Cipher used: $CIPHER" |
388 | echo "*** Cipher used: $CIPHER" |
374 | echo "*** Digest used: $DIGEST" |
389 | echo "*** Digest used: $DIGEST" |
375 | echo "*** HMAC length: $HMAC" |
390 | echo "*** HMAC length: $HMAC" |
376 | echo "*** RAND used: $RAND" |
391 | echo "*** RAND used: $RAND" |
377 | echo "*** Max. MTU: $MTU" |
392 | echo "*** Max. MTU: $MTU" |
378 | echo "*** Compression: $COMPRESS" |
393 | |
|
|
394 | echo "***" |
|
|
395 | echo "*** Enable options:" |
|
|
396 | grep ENABLE_ config.h | sed -e 's/^/*** /' |
379 | |
397 | |
380 | if test "x$DIGEST" = xmd4; then |
398 | if test "x$DIGEST" = xmd4; then |
381 | echo "***" |
399 | echo "***" |
382 | echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" |
400 | echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" |
383 | fi |
401 | fi |
… | |
… | |
391 | echo "***" |
409 | echo "***" |
392 | echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure" |
410 | echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure" |
393 | fi |
411 | fi |
394 | |
412 | |
395 | echo "***" |
413 | echo "***" |
396 | |
|
|
397 | echo |
414 | echo |
398 | |
415 | |
399 | ]) |
|
|
400 | |
416 | |
401 | AC_SUBST(INCLUDES) |
|
|
402 | |
|
|
403 | AC_CONFIG_FILES([Makefile po/Makefile.in |
|
|
404 | src/Makefile |
|
|
405 | doc/Makefile |
|
|
406 | lib/Makefile |
|
|
407 | m4/Makefile |
|
|
408 | ]) |
|
|
409 | AC_OUTPUT |
|
|