1 | dnl Process this file with autoconf to produce a configure script. |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | |
2 | |
3 | AC_PREREQ(2.57) |
3 | AC_PREREQ(2.57) |
4 | AC_INIT(src/vped.C) |
4 | AC_INIT(src/vped.C) |
5 | AC_CANONICAL_TARGET |
5 | AC_CANONICAL_TARGET |
6 | AM_INIT_AUTOMAKE(vpe, 1.2) |
6 | AM_INIT_AUTOMAKE(vpe, 1.5) |
7 | AM_CONFIG_HEADER(config.h) |
7 | AM_CONFIG_HEADER(config.h) |
8 | AM_MAINTAINER_MODE |
8 | AM_MAINTAINER_MODE |
9 | |
9 | |
10 | AH_TOP([ |
10 | AH_TOP([ |
11 | #ifndef CONFIG_H__ |
11 | #ifndef CONFIG_H__ |
… | |
… | |
44 | |
44 | |
45 | # Enable GNU extensions. |
45 | # Enable GNU extensions. |
46 | # Define this here, not in acconfig's @TOP@ section, since definitions |
46 | # Define this here, not in acconfig's @TOP@ section, since definitions |
47 | # in the latter don't make it into the configure-time tests. |
47 | # in the latter don't make it into the configure-time tests. |
48 | AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extenstions]) |
48 | AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extenstions]) |
49 | AC_DEFINE([__USE_BSD], 1, [Enable BSD extensions]) |
49 | |
|
|
50 | # do NOT define POSIX_SOURCE, sicne this clashes with many BSDs |
|
|
51 | dnl AC_DEFINE([_POSIX_SOURCE], 1, [Enable POSIX 1003.1 extensions]) |
|
|
52 | dnl AC_DEFINE([_XOPEN_SOURCE], 500, [Enable XOPEN extensions]) |
50 | |
53 | |
51 | ALL_LINGUAS="" |
54 | ALL_LINGUAS="" |
52 | |
55 | |
53 | dnl Checks for programs. |
56 | dnl Checks for programs. |
54 | AC_PROG_CC |
57 | AC_PROG_CC |
… | |
… | |
58 | AC_PROG_AWK |
61 | AC_PROG_AWK |
59 | AC_PROG_INSTALL |
62 | AC_PROG_INSTALL |
60 | AC_PROG_LN_S |
63 | AC_PROG_LN_S |
61 | AC_PROG_MAKE_SET |
64 | AC_PROG_MAKE_SET |
62 | AC_PROG_RANLIB |
65 | AC_PROG_RANLIB |
63 | |
|
|
64 | AC_ISC_POSIX |
|
|
65 | |
66 | |
66 | AC_ARG_ENABLE(iftype, |
67 | AC_ARG_ENABLE(iftype, |
67 | [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ |
68 | [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ |
68 | Use kernel/net device interface TYPE/SUBTYPE. |
69 | Use kernel/net device interface TYPE/SUBTYPE. |
69 | Working combinations are: |
70 | Working combinations are: |
… | |
… | |
145 | AC_LANG(C++) |
146 | AC_LANG(C++) |
146 | AC_CHECK_HEADERS(ext/hash_map) |
147 | AC_CHECK_HEADERS(ext/hash_map) |
147 | |
148 | |
148 | dnl Checks for header files. |
149 | dnl Checks for header files. |
149 | AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
150 | AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
150 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \ |
151 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h \ |
151 | sys/poll.h sys/mman.h netinet/in.h]) |
152 | sys/mman.h netinet/in.h]) |
152 | AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
153 | AC_CHECK_HEADERS([arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
153 | [ |
154 | [ |
154 | #include <sys/types.h> |
155 | #include <sys/types.h> |
155 | #include <sys/socket.h> |
156 | #include <sys/socket.h> |
156 | #ifdef HAVE_NETINET_IN_H |
157 | #ifdef HAVE_NETINET_IN_H |
157 | # include <netinet/in.h> |
158 | # include <netinet/in.h> |
… | |
… | |
204 | AC_LANG_PUSH(C) |
205 | AC_LANG_PUSH(C) |
205 | |
206 | |
206 | AC_HEADER_STDC |
207 | AC_HEADER_STDC |
207 | |
208 | |
208 | dnl argl, could somebody catapult darwin into the 21st century??? |
209 | dnl argl, could somebody catapult darwin into the 21st century??? |
209 | AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall poll) |
210 | AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall) |
210 | |
211 | |
211 | AC_FUNC_ALLOCA |
212 | AC_FUNC_ALLOCA |
212 | |
213 | |
213 | dnl Support for SunOS |
214 | dnl Support for SunOS |
214 | |
215 | |
… | |
… | |
350 | echo "*** Digest used: $DIGEST" |
351 | echo "*** Digest used: $DIGEST" |
351 | echo "*** HMAC length: $HMAC" |
352 | echo "*** HMAC length: $HMAC" |
352 | echo "*** RAND used: $RAND" |
353 | echo "*** RAND used: $RAND" |
353 | echo "*** Max. MTU: $MTU" |
354 | echo "*** Max. MTU: $MTU" |
354 | echo "*** Compression: $COMPRESS" |
355 | echo "*** Compression: $COMPRESS" |
355 | echo "***" |
|
|
356 | |
356 | |
357 | if test "x$DIGEST" = xmd4; then |
357 | if test "x$DIGEST" = xmd4; then |
358 | echo "*** WARNING" |
358 | echo "***" |
359 | echo "*** The digest you have chosen ($DIGEST) is known to be insecure" |
359 | echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" |
360 | echo "***" |
|
|
361 | fi |
360 | fi |
|
|
361 | |
|
|
362 | if test "$HMAC" -lt 12; then |
|
|
363 | echo "***" |
|
|
364 | echo "*** WARNING: The hmac length you have chosen ($HMAC) might be insecure" |
|
|
365 | fi |
|
|
366 | |
|
|
367 | if test "$RAND" -lt 8; then |
|
|
368 | echo "***" |
|
|
369 | echo "*** WARNING: The random prefix you have chosen ($RAND) might be insecure" |
|
|
370 | fi |
|
|
371 | |
|
|
372 | echo "***" |
362 | |
373 | |
363 | echo |
374 | echo |
364 | |
375 | |
365 | ]) |
376 | ]) |
366 | |
377 | |