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.59) |
4 | AC_INIT(src/vped.C) |
4 | AC_INIT |
|
|
5 | AC_CONFIG_SRCDIR([src/gvpe.C]) |
5 | AC_CANONICAL_TARGET |
6 | AC_CANONICAL_TARGET |
6 | AM_INIT_AUTOMAKE(vpe, 1.2) |
7 | AM_INIT_AUTOMAKE(gvpe, 1.8) |
7 | AM_CONFIG_HEADER(config.h) |
8 | AC_CONFIG_HEADERS([config.h]) |
8 | AM_MAINTAINER_MODE |
9 | AM_MAINTAINER_MODE |
9 | |
10 | |
10 | AH_TOP([ |
11 | AH_TOP([ |
11 | #ifndef CONFIG_H__ |
12 | #ifndef CONFIG_H__ |
12 | #define CONFIG_H__ |
13 | #define CONFIG_H__ |
… | |
… | |
16 | #endif |
17 | #endif |
17 | |
18 | |
18 | ]) |
19 | ]) |
19 | |
20 | |
20 | AH_BOTTOM([ |
21 | AH_BOTTOM([ |
|
|
22 | typedef unsigned char u8; |
|
|
23 | typedef signed char s8; |
|
|
24 | |
21 | #if __CYGWIN__ |
25 | #if __CYGWIN__ |
22 | |
26 | |
23 | typedef unsigned char u8; |
|
|
24 | typedef unsigned short u16; |
27 | typedef unsigned short u16; |
25 | typedef unsigned int u32; |
28 | typedef unsigned int u32; |
|
|
29 | typedef signed short s16; |
|
|
30 | typedef signed int s32; |
26 | |
31 | |
27 | #else |
32 | #else |
28 | #include <inttypes.h> |
33 | #include <inttypes.h> |
29 | |
34 | |
30 | /* old modula-2 habits */ |
35 | /* old modula-2 habits */ |
31 | typedef unsigned char u8; |
|
|
32 | typedef uint16_t u16; |
36 | typedef uint16_t u16; |
33 | typedef uint32_t u32; |
37 | typedef uint32_t u32; |
|
|
38 | typedef int16_t s16; |
|
|
39 | typedef int32_t s32; |
34 | #endif |
40 | #endif |
35 | |
41 | |
|
|
42 | #endif |
|
|
43 | |
|
|
44 | #if HAVE_CLOCALE |
|
|
45 | # define CLOCALE <clocale> |
|
|
46 | #else |
|
|
47 | # define CLOCALE <locale.h> |
36 | #endif |
48 | #endif |
37 | ]) |
49 | ]) |
38 | |
50 | |
39 | dnl Include the macros from the m4/ directory |
51 | dnl Include the macros from the m4/ directory |
40 | AM_ACLOCAL_INCLUDE(m4) |
52 | AM_ACLOCAL_INCLUDE(m4) |
… | |
… | |
44 | |
56 | |
45 | # Enable GNU extensions. |
57 | # Enable GNU extensions. |
46 | # Define this here, not in acconfig's @TOP@ section, since definitions |
58 | # Define this here, not in acconfig's @TOP@ section, since definitions |
47 | # 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. |
48 | AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extenstions]) |
60 | AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extenstions]) |
49 | AC_DEFINE([__USE_BSD], 1, [Enable BSD extensions]) |
61 | |
|
|
62 | # do NOT define POSIX_SOURCE, sicne this clashes with many BSDs |
|
|
63 | dnl AC_DEFINE([_POSIX_SOURCE], 1, [Enable POSIX 1003.1 extensions]) |
|
|
64 | dnl AC_DEFINE([_XOPEN_SOURCE], 500, [Enable XOPEN extensions]) |
50 | |
65 | |
51 | ALL_LINGUAS="" |
66 | ALL_LINGUAS="" |
52 | |
67 | |
53 | dnl Checks for programs. |
68 | dnl Checks for programs. |
54 | AC_PROG_CC |
69 | AC_PROG_CC |
… | |
… | |
59 | AC_PROG_INSTALL |
74 | AC_PROG_INSTALL |
60 | AC_PROG_LN_S |
75 | AC_PROG_LN_S |
61 | AC_PROG_MAKE_SET |
76 | AC_PROG_MAKE_SET |
62 | AC_PROG_RANLIB |
77 | AC_PROG_RANLIB |
63 | |
78 | |
64 | AC_ISC_POSIX |
|
|
65 | |
|
|
66 | AC_ARG_ENABLE(iftype, |
79 | AC_ARG_ENABLE(iftype, |
67 | [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ |
80 | [AS_HELP_STRING(--enable-iftype=TYPE/SUBTYPE, |
68 | Use kernel/net device interface TYPE/SUBTYPE. |
81 | Use kernel/net device interface TYPE/SUBTYPE. |
69 | Working combinations are: |
82 | Working combinations are: |
70 | "native/linux" |
83 | "native/linux" |
71 | "tincd/linux" |
84 | "tincd/linux" |
72 | "tincd/freebsd"; |
85 | "tincd/freebsd" |
|
|
86 | "tincd/openbsd" |
|
|
87 | "tincd/darwin" |
|
|
88 | "native/cygwin"; |
73 | Untested combinations are: |
89 | Untested combinations are: |
74 | "tincd/netbsd" |
90 | "tincd/netbsd" |
75 | "tincd/darwin" |
|
|
76 | "tincd/solaris" |
91 | "tincd/solaris" |
77 | "tincd/openbsd"; |
92 | "tincd/mingw" |
|
|
93 | "tincd/raw_socket" |
|
|
94 | "tincd/uml_socket"; |
78 | Broken combinations are: |
95 | Broken combinations are: |
79 | "tincd/cygwin"; |
96 | "tincd/cygwin"; |
80 | The default is to autodetect. |
97 | The default is to autodetect. |
81 | ])], |
98 | )], |
82 | [ |
99 | [ |
83 | IFTYPE=`echo $enableval | sed s%/.*%%` |
100 | IFTYPE=`echo $enableval | sed s%/.*%%` |
84 | IFSUBTYPE=`echo $enableval | sed s%.*/%%` |
101 | IFSUBTYPE=`echo $enableval | sed s%.*/%%` |
85 | ] |
102 | ] |
86 | ) |
103 | ) |
… | |
… | |
131 | esac |
148 | esac |
132 | fi |
149 | fi |
133 | AC_MSG_RESULT($IFTYPE/$IFSUBTYPE) |
150 | AC_MSG_RESULT($IFTYPE/$IFSUBTYPE) |
134 | AC_SUBST(IFTYPE,$IFTYPE) |
151 | AC_SUBST(IFTYPE,$IFTYPE) |
135 | AC_SUBST(IFSUBTYPE,$IFSUBTYPE) |
152 | AC_SUBST(IFSUBTYPE,$IFSUBTYPE) |
|
|
153 | AC_DEFINE_UNQUOTED(IFTYPE,"$IFTYPE",[kernel interface type]) |
|
|
154 | AC_DEFINE_UNQUOTED(IFSUBTYPE,"$IFSUBTYPE",[kernel interface subtype]) |
136 | |
155 | |
137 | AC_CACHE_SAVE |
156 | AC_CACHE_SAVE |
138 | |
157 | |
139 | dnl Checks for libraries. |
158 | dnl Checks for libraries. |
140 | |
159 | |
141 | AC_LANG(C++) |
160 | AC_LANG(C++) |
142 | AC_CHECK_HEADERS(ext/hash_map) |
161 | AC_CHECK_HEADERS(ext/hash_map clocale) |
143 | |
162 | |
144 | dnl Checks for header files. |
163 | dnl Checks for header files. |
145 | AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
164 | AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
146 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \ |
165 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h \ |
147 | sys/poll.h sys/mman.h netinet/in.h]) |
166 | sys/mman.h netinet/in.h]) |
148 | AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
167 | AC_CHECK_HEADERS([arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
149 | [ |
168 | [ |
150 | #include <sys/types.h> |
169 | #include <sys/types.h> |
151 | #include <sys/socket.h> |
170 | #include <sys/socket.h> |
152 | #ifdef HAVE_NETINET_IN_H |
171 | #ifdef HAVE_NETINET_IN_H |
153 | # include <netinet/in.h> |
172 | # include <netinet/in.h> |
… | |
… | |
167 | AC_HEADER_TIME |
186 | AC_HEADER_TIME |
168 | AC_STRUCT_TM |
187 | AC_STRUCT_TM |
169 | |
188 | |
170 | AC_CACHE_CHECK([for socklen_t], ac_cv_type_socklen_t, |
189 | AC_CACHE_CHECK([for socklen_t], ac_cv_type_socklen_t, |
171 | [ |
190 | [ |
172 | AC_TRY_COMPILE( |
191 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
173 | [#include <sys/types.h> |
192 | #include <sys/socket.h>]], [[socklen_t len = 42; return len;]])],[ac_cv_type_socklen_t=yes],[ac_cv_type_socklen_t=no]) |
174 | #include <sys/socket.h>], |
|
|
175 | [socklen_t len = 42; return len;], |
|
|
176 | ac_cv_type_socklen_t=yes, |
|
|
177 | ac_cv_type_socklen_t=no) |
|
|
178 | ]) |
193 | ]) |
179 | if test $ac_cv_type_socklen_t = yes; then |
194 | if test $ac_cv_type_socklen_t = yes; then |
180 | AC_DEFINE(HAVE_SOCKLEN_T, 1, [socklen_t available]) |
195 | AC_DEFINE(HAVE_SOCKLEN_T, 1, [socklen_t available]) |
181 | fi |
196 | fi |
182 | |
197 | |
183 | AC_CACHE_CHECK([for struct addrinfo], ac_cv_struct_addrinfo, |
198 | AC_CACHE_CHECK([for struct addrinfo], ac_cv_struct_addrinfo, |
184 | [ |
199 | [ |
185 | AC_TRY_COMPILE( |
200 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
186 | [#include <sys/types.h> |
|
|
187 | #include <sys/socket.h> |
201 | #include <sys/socket.h> |
188 | #include <netdb.h>], |
202 | #include <netdb.h>]], [[struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family;]])],[ac_cv_struct_addrinfo=yes],[ac_cv_struct_addrinfo=no]) |
189 | [struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family;], |
|
|
190 | ac_cv_struct_addrinfo=yes, |
|
|
191 | ac_cv_struct_addrinfo=no) |
|
|
192 | ]) |
203 | ]) |
193 | if test $ac_cv_struct_addrinfo = yes; then |
204 | if test $ac_cv_struct_addrinfo = yes; then |
194 | AC_DEFINE(HAVE_STRUCT_ADDRINFO, 1, [struct addrinfo available]) |
205 | AC_DEFINE(HAVE_STRUCT_ADDRINFO, 1, [struct addrinfo available]) |
195 | fi |
206 | fi |
196 | |
207 | |
… | |
… | |
200 | AC_LANG_PUSH(C) |
211 | AC_LANG_PUSH(C) |
201 | |
212 | |
202 | AC_HEADER_STDC |
213 | AC_HEADER_STDC |
203 | |
214 | |
204 | dnl argl, could somebody catapult darwin into the 21st century??? |
215 | dnl argl, could somebody catapult darwin into the 21st century??? |
205 | AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall poll) |
216 | AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall) |
206 | |
217 | |
207 | AC_FUNC_ALLOCA |
218 | AC_FUNC_ALLOCA |
208 | |
219 | |
209 | dnl Support for SunOS |
220 | dnl Support for SunOS |
210 | |
221 | |
… | |
… | |
228 | if test "x$openssl_include" != x; then |
239 | if test "x$openssl_include" != x; then |
229 | CXXFLAGS="$CXXFLAGS -I$openssl_include" |
240 | CXXFLAGS="$CXXFLAGS -I$openssl_include" |
230 | fi |
241 | fi |
231 | dnl tinc_ZLIB |
242 | dnl tinc_ZLIB |
232 | |
243 | |
|
|
244 | AC_ARG_ENABLE(static-daemon, |
|
|
245 | [AS_HELP_STRING(--enable-static-daemon,enable statically linked daemon.)], |
|
|
246 | [LDFLAGS_DAEMON=-static] |
|
|
247 | ) |
|
|
248 | AC_SUBST(LDFLAGS_DAEMON) |
|
|
249 | |
233 | AC_ARG_ENABLE(rohc, |
250 | AC_ARG_ENABLE(rohc, |
234 | [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], |
251 | [AS_HELP_STRING(--enable-rohc,enable robust header compression (rfc3095).)], |
235 | [ |
252 | [ |
236 | echo |
253 | echo |
237 | echo "**********************************************************************" |
254 | echo "**********************************************************************" |
238 | echo "**********************************************************************" |
255 | echo "**********************************************************************" |
239 | echo "**** --enable-rohc not yet implemented *******************************" |
256 | echo "**** --enable-rohc is highly experimental, do not use ****************" |
240 | echo "**********************************************************************" |
|
|
241 | echo "**** uuh sorry, I am such an ass, but I didn't find any rfc3095 (ROHC)" |
|
|
242 | echo "**** implementation to be used in GPL code on the web." |
|
|
243 | echo "**** so this option is just a fake. Please implement one and send it" |
|
|
244 | echo "**** to me ;)" |
|
|
245 | echo "**********************************************************************" |
|
|
246 | echo "**********************************************************************" |
|
|
247 | echo "**********************************************************************" |
257 | echo "**********************************************************************" |
248 | echo "**********************************************************************" |
258 | echo "**********************************************************************" |
249 | echo |
259 | echo |
|
|
260 | rohc=true |
|
|
261 | AC_DEFINE_UNQUOTED(ENABLE_ROHC, 1, [ROHC support]) |
250 | ] |
262 | ] |
251 | ) |
263 | ) |
252 | |
264 | |
|
|
265 | AM_CONDITIONAL(ROHC, test x$rohc = xtrue) |
|
|
266 | |
253 | AC_ARG_ENABLE(icmp, |
267 | AC_ARG_ENABLE(icmp, |
254 | [AC_HELP_STRING(--enable-icmp, [enable icmp protocol support (default disabled).])], |
268 | [AS_HELP_STRING(--enable-icmp,enable icmp protocol support (default disabled).)], |
255 | AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.]) |
269 | AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.]) |
256 | ) |
270 | ) |
257 | |
271 | |
258 | AC_ARG_ENABLE(tcp, |
272 | AC_ARG_ENABLE(tcp, |
259 | [AC_HELP_STRING(--enable-tcp, [enable tcp protocol support (default disabled).])], |
273 | [AS_HELP_STRING(--enable-tcp,enable tcp protocol support (default disabled).)], |
260 | AC_DEFINE_UNQUOTED(ENABLE_TCP, 1, [TCP protocol support.]) |
274 | AC_DEFINE_UNQUOTED(ENABLE_TCP, 1, [TCP protocol support.]) |
261 | ) |
275 | ) |
262 | |
276 | |
|
|
277 | AC_ARG_ENABLE(dns, |
|
|
278 | [AS_HELP_STRING(--enable-dns,enable dns tunnel protocol support (DOES NOT WORK).)], |
|
|
279 | [ |
|
|
280 | AC_CHECK_HEADER(gmp.h,,[AC_MSG_ERROR([gmp.h not found, required for --enable-dns])]) |
|
|
281 | AC_CHECK_LIB(gmp,main,,[AC_MSG_ERROR([libgmp not found, required for --enable-dns])]) |
|
|
282 | |
|
|
283 | AC_DEFINE_UNQUOTED(ENABLE_DNS, 1, [DNS tunnel protocol support.]) |
|
|
284 | ] |
|
|
285 | ) |
|
|
286 | |
263 | AC_ARG_ENABLE(http-proxy, |
287 | AC_ARG_ENABLE(http-proxy, |
264 | [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])], |
288 | [AS_HELP_STRING(--enable-http-proxy,enable http proxy connect support (default disabled).)], |
265 | AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.]) |
289 | AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.]) |
266 | ) |
290 | ) |
267 | |
291 | |
268 | HMAC=12 dnl see also the AC_HELP_STRING |
292 | HMAC=12 |
269 | AC_ARG_ENABLE(hmac-length, |
293 | AC_ARG_ENABLE(hmac-length, |
270 | [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])], |
294 | [AS_HELP_STRING(--enable-hmac-length=BYTES,[ |
|
|
295 | use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])], |
271 | HMAC=$enableval |
296 | HMAC=$enableval |
272 | ) |
297 | ) |
273 | AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.]) |
298 | AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.]) |
274 | |
299 | |
275 | RAND=8 dnl see also the AC_HELP_STRING |
300 | RAND=8 |
276 | AC_ARG_ENABLE(rand-length, |
301 | AC_ARG_ENABLE(rand-length, |
277 | [AC_HELP_STRING(--enable-rand-length=BYTES, [use BYTES bytes of extra randomness (default 8). Allowed values are 0, 4, 8.])], |
302 | [AS_HELP_STRING(--enable-rand-length=BYTES, |
|
|
303 | [use BYTES bytes of extra randomness (default 8). Allowed values are 0, 4, 8.])], |
278 | RAND=$enableval |
304 | RAND=$enableval |
279 | ) |
305 | ) |
280 | AC_DEFINE_UNQUOTED(RAND_SIZE, $RAND, [Add this many bytes of randomness to each packet.]) |
306 | AC_DEFINE_UNQUOTED(RAND_SIZE, $RAND, [Add this many bytes of randomness to each packet.]) |
281 | |
307 | |
282 | MTU=1500 dnl see also the AC_HELP_STRING |
308 | MTU=1500 |
283 | AC_ARG_ENABLE(mtu, |
309 | AC_ARG_ENABLE(mtu, |
284 | [AC_HELP_STRING(--enable-max-mtu=BYTES, enable mtu sizes upto BYTES bytes (default 1500). Use 9100 for jumbogram support.)], |
310 | [AS_HELP_STRING(--enable-max-mtu=BYTES,enable mtu sizes upto BYTES bytes (default 1500). Use 9100 for jumbogram support.)], |
285 | MTU=$enableval |
311 | MTU=$enableval |
286 | ) |
312 | ) |
287 | AC_DEFINE_UNQUOTED(MAX_MTU, $MTU + 14, [Maximum MTU supported.]) |
313 | AC_DEFINE_UNQUOTED(MAX_MTU, $MTU + 14, [Maximum MTU supported.]) |
288 | |
314 | |
289 | COMPRESS=1 |
315 | COMPRESS=1 |
290 | AC_ARG_ENABLE(compression, |
316 | AC_ARG_ENABLE(compression, |
291 | [AC_HELP_STRING(--disable-compression, Disable compression support.)], |
317 | [AS_HELP_STRING(--disable-compression,Disable compression support.)], |
292 | if test "x$enableval" = xno; then |
318 | if test "x$enableval" = xno; then |
293 | COMPRESS=0 |
319 | COMPRESS=0 |
294 | fi |
320 | fi |
295 | ) |
321 | ) |
296 | AC_DEFINE_UNQUOTED(ENABLE_COMPRESSION, $COMPRESS, [Enable compression support.]) |
322 | AC_DEFINE_UNQUOTED(ENABLE_COMPRESSION, $COMPRESS, [Enable compression support.]) |
297 | |
323 | |
298 | CIPHER=bf_cbc |
324 | CIPHER=bf_cbc |
299 | AC_ARG_ENABLE(cipher, |
325 | AC_ARG_ENABLE(cipher, |
300 | [AC_HELP_STRING(--enable-cipher, [ |
326 | [AS_HELP_STRING(--enable-cipher,[ |
301 | Select the symmetric cipher (default "bf"). Must be one of |
327 | Select the symmetric cipher (default "bf"). |
302 | "bf" (blowfish), "aes-128" (rijndael), "aes-192" or "aes-256".])], |
328 | Must be one of "bf" (blowfish), "aes-128" (rijndael), "aes-192" or "aes-256".])], |
303 | if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi |
329 | if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi |
304 | if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi |
330 | if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi |
305 | if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi |
331 | if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi |
306 | if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi |
332 | if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi |
307 | ) |
333 | ) |
308 | AC_DEFINE_UNQUOTED(ENABLE_CIPHER, EVP_${CIPHER}, [Select the symmetric cipher to use.]) |
334 | AC_DEFINE_UNQUOTED(ENABLE_CIPHER, EVP_${CIPHER}, [Select the symmetric cipher to use.]) |
309 | |
335 | |
310 | DIGEST=sha1 |
336 | DIGEST=sha1 |
311 | AC_ARG_ENABLE(digest, |
337 | AC_ARG_ENABLE(digest, |
312 | [AC_HELP_STRING(--enable-digest, [ |
338 | [AS_HELP_STRING(--enable-digest,[ |
313 | Select the digets algorithm to use (default "sha1"). Must be one of |
339 | Select the digets algorithm to use (default "sha1"). Must be one of |
314 | "sha1", "ripemd160", "md5" or "md4" (insecure).])], |
340 | "sha1", "ripemd160", "md5" or "md4" (insecure).])], |
315 | if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi |
341 | if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi |
316 | if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi |
342 | if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi |
317 | if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi |
343 | if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi |
318 | if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi |
344 | if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi |
319 | ) |
345 | ) |
… | |
… | |
325 | |
351 | |
326 | if $CXX -v --help 2>&1 | grep -q fexceptions; then |
352 | if $CXX -v --help 2>&1 | grep -q fexceptions; then |
327 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
353 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
328 | fi |
354 | fi |
329 | |
355 | |
330 | if $CXX -v --help 2>&1 | grep -q ffunction-sections; then |
356 | dnl if $CXX -v --help 2>&1 | grep -q ffunction-sections; then |
331 | CXXFLAGS="$CXXFLAGS -ffunction-sections" |
357 | dnl CXXFLAGS="$CXXFLAGS -ffunction-sections" |
332 | fi |
358 | dnl fi |
333 | |
359 | dnl |
334 | if $LD -v --help 2>&1 | grep -q gc-sections; then |
360 | dnl if $LD -v --help 2>&1 | grep -q gc-sections; then |
335 | LDFLAGS="$LDFLAGS -Wl,--gc-sections" |
361 | dnl LDFLAGS="$LDFLAGS -Wl,--gc-sections" |
336 | fi |
362 | dnl fi |
337 | |
363 | |
338 | AC_CONFIG_COMMANDS_POST([ |
364 | AC_CONFIG_COMMANDS_POST([ |
339 | |
365 | |
340 | echo |
366 | echo |
341 | echo "***" |
367 | echo "***" |
… | |
… | |
346 | echo "*** Digest used: $DIGEST" |
372 | echo "*** Digest used: $DIGEST" |
347 | echo "*** HMAC length: $HMAC" |
373 | echo "*** HMAC length: $HMAC" |
348 | echo "*** RAND used: $RAND" |
374 | echo "*** RAND used: $RAND" |
349 | echo "*** Max. MTU: $MTU" |
375 | echo "*** Max. MTU: $MTU" |
350 | echo "*** Compression: $COMPRESS" |
376 | echo "*** Compression: $COMPRESS" |
351 | echo "***" |
|
|
352 | |
377 | |
353 | if test "x$DIGEST" = xmd4; then |
378 | if test "x$DIGEST" = xmd4; then |
354 | echo "*** WARNING" |
379 | echo "***" |
355 | echo "*** The digest you have chosen ($DIGEST) is known to be insecure" |
380 | echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure" |
356 | echo "***" |
|
|
357 | fi |
381 | fi |
|
|
382 | |
|
|
383 | if test "$HMAC" -lt 12; then |
|
|
384 | echo "***" |
|
|
385 | echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure" |
|
|
386 | fi |
|
|
387 | |
|
|
388 | if test "$RAND" -lt 8; then |
|
|
389 | echo "***" |
|
|
390 | echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure" |
|
|
391 | fi |
|
|
392 | |
|
|
393 | echo "***" |
358 | |
394 | |
359 | echo |
395 | echo |
360 | |
396 | |
361 | ]) |
397 | ]) |
362 | |
398 | |
363 | AC_SUBST(INCLUDES) |
399 | AC_SUBST(INCLUDES) |
364 | |
400 | |
365 | AC_OUTPUT(Makefile po/Makefile.in |
401 | AC_CONFIG_FILES([Makefile po/Makefile.in |
366 | src/Makefile |
402 | src/Makefile |
367 | doc/Makefile |
403 | doc/Makefile |
368 | lib/Makefile |
404 | lib/Makefile |
369 | m4/Makefile |
405 | m4/Makefile |
370 | ) |
406 | ]) |
|
|
407 | AC_OUTPUT |