… | |
… | |
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.8) |
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 | |
… | |
… | |
77 | AC_PROG_RANLIB |
77 | AC_PROG_RANLIB |
78 | |
78 | |
79 | AC_ARG_ENABLE(iftype, |
79 | AC_ARG_ENABLE(iftype, |
80 | [AS_HELP_STRING(--enable-iftype=TYPE/SUBTYPE, |
80 | [AS_HELP_STRING(--enable-iftype=TYPE/SUBTYPE, |
81 | Use kernel/net device interface TYPE/SUBTYPE. |
81 | Use kernel/net device interface TYPE/SUBTYPE. |
82 | Working combinations are: |
82 | Working combinations are (see doc/gvpe.osdep.5.pod): |
83 | "native/linux" |
83 | "native/linux" |
84 | "tincd/linux" |
84 | "tincd/linux" |
|
|
85 | "tincd/netbsd" |
85 | "tincd/freebsd" |
86 | "tincd/freebsd" |
86 | "tincd/openbsd" |
87 | "tincd/openbsd" |
|
|
88 | "native/darwin" |
87 | "tincd/darwin" |
89 | "tincd/darwin" |
88 | "native/cygwin"; |
90 | "native/cygwin"; |
89 | Untested combinations are: |
91 | Untested combinations are: |
90 | "tincd/netbsd" |
92 | "tincd/bsd" |
91 | "tincd/solaris" |
93 | "tincd/solaris" |
92 | "tincd/mingw" |
94 | "tincd/mingw" |
93 | "tincd/raw_socket" |
95 | "tincd/raw_socket" |
94 | "tincd/uml_socket"; |
96 | "tincd/uml_socket"; |
95 | Broken combinations are: |
97 | Broken combinations are: |
… | |
… | |
116 | IFTYPE=tincd |
118 | IFTYPE=tincd |
117 | IFSUBTYPE=freebsd |
119 | IFSUBTYPE=freebsd |
118 | AC_DEFINE(HAVE_FREEBSD, 1, [FreeBSD]) |
120 | AC_DEFINE(HAVE_FREEBSD, 1, [FreeBSD]) |
119 | ;; |
121 | ;; |
120 | *darwin*) |
122 | *darwin*) |
121 | IFTYPE=tincd |
123 | IFTYPE=native |
122 | IFSUBTYPE=darwin |
124 | IFSUBTYPE=darwin |
123 | AC_DEFINE(HAVE_DARWIN, 1, [Darwin (MacOS/X)]) |
125 | AC_DEFINE(HAVE_DARWIN, 1, [Darwin (MacOS/X)]) |
124 | ;; |
126 | ;; |
125 | *solaris*) |
127 | *solaris*) |
126 | IFTYPE=tincd |
128 | IFTYPE=tincd |
… | |
… | |
262 | ] |
264 | ] |
263 | ) |
265 | ) |
264 | |
266 | |
265 | AM_CONDITIONAL(ROHC, test x$rohc = xtrue) |
267 | AM_CONDITIONAL(ROHC, test x$rohc = xtrue) |
266 | |
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 | |
267 | AC_ARG_ENABLE(icmp, |
274 | AC_ARG_ENABLE(icmp, |
268 | [AS_HELP_STRING(--enable-icmp,enable icmp protocol support (default disabled).)], |
275 | [AS_HELP_STRING(--enable-icmp,enable icmp protocol support (default disabled).)], |
269 | AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.]) |
276 | AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.]) |
270 | ) |
277 | ) |
271 | |
278 | |
… | |
… | |
319 | COMPRESS=0 |
326 | COMPRESS=0 |
320 | fi |
327 | fi |
321 | ) |
328 | ) |
322 | AC_DEFINE_UNQUOTED(ENABLE_COMPRESSION, $COMPRESS, [Enable compression support.]) |
329 | AC_DEFINE_UNQUOTED(ENABLE_COMPRESSION, $COMPRESS, [Enable compression support.]) |
323 | |
330 | |
324 | CIPHER=bf_cbc |
331 | CIPHER=aes_128_cbc |
325 | AC_ARG_ENABLE(cipher, |
332 | AC_ARG_ENABLE(cipher, |
326 | [AS_HELP_STRING(--enable-cipher,[ |
333 | [AS_HELP_STRING(--enable-cipher,[ |
327 | Select the symmetric cipher (default "bf"). |
334 | Select the symmetric cipher (default "aes-128"). |
328 | 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".])], |
329 | if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi |
336 | if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi |
330 | 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 |
331 | 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 |
332 | 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 |
333 | ) |
340 | ) |
334 | 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.]) |
335 | |
342 | |
336 | DIGEST=sha1 |
343 | DIGEST=ripemd160 |
337 | AC_ARG_ENABLE(digest, |
344 | AC_ARG_ENABLE(digest, |
338 | [AS_HELP_STRING(--enable-digest,[ |
345 | [AS_HELP_STRING(--enable-digest,[ |
339 | 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 |
340 | "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 |
341 | if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi |
350 | if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi |
342 | if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi |
351 | if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi |
343 | if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi |
352 | if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi |
344 | if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi |
353 | if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi |
345 | ) |
354 | ) |
… | |
… | |
359 | dnl |
368 | dnl |
360 | 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 |
361 | dnl LDFLAGS="$LDFLAGS -Wl,--gc-sections" |
370 | dnl LDFLAGS="$LDFLAGS -Wl,--gc-sections" |
362 | dnl fi |
371 | dnl fi |
363 | |
372 | |
364 | 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 |
365 | |
382 | |
366 | echo |
383 | echo |
367 | echo "***" |
384 | echo "***" |
368 | echo "*** Configuration Summary" |
385 | echo "*** Configuration Summary" |
369 | echo "***" |
386 | echo "***" |
… | |
… | |
371 | echo "*** Cipher used: $CIPHER" |
388 | echo "*** Cipher used: $CIPHER" |
372 | echo "*** Digest used: $DIGEST" |
389 | echo "*** Digest used: $DIGEST" |
373 | echo "*** HMAC length: $HMAC" |
390 | echo "*** HMAC length: $HMAC" |
374 | echo "*** RAND used: $RAND" |
391 | echo "*** RAND used: $RAND" |
375 | echo "*** Max. MTU: $MTU" |
392 | echo "*** Max. MTU: $MTU" |
376 | echo "*** Compression: $COMPRESS" |
393 | |
|
|
394 | echo "***" |
|
|
395 | echo "*** Enable options:" |
|
|
396 | grep ENABLE_ config.h | sed -e 's/^/*** /' |
377 | |
397 | |
378 | if test "x$DIGEST" = xmd4; then |
398 | if test "x$DIGEST" = xmd4; then |
379 | echo "***" |
399 | echo "***" |
380 | 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" |
381 | fi |
401 | fi |
… | |
… | |
389 | echo "***" |
409 | echo "***" |
390 | 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" |
391 | fi |
411 | fi |
392 | |
412 | |
393 | echo "***" |
413 | echo "***" |
394 | |
|
|
395 | echo |
414 | echo |
396 | |
415 | |
397 | ]) |
|
|
398 | |
416 | |
399 | AC_SUBST(INCLUDES) |
|
|
400 | |
|
|
401 | AC_CONFIG_FILES([Makefile po/Makefile.in |
|
|
402 | src/Makefile |
|
|
403 | doc/Makefile |
|
|
404 | lib/Makefile |
|
|
405 | m4/Makefile |
|
|
406 | ]) |
|
|
407 | AC_OUTPUT |
|
|