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

Comparing gvpe/configure.ac (file contents):
Revision 1.8 by pcg, Tue Oct 14 03:22:09 2003 UTC vs.
Revision 1.9 by pcg, Tue Oct 14 15:48:15 2003 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.57) 3AC_PREREQ(2.57)
4AC_INIT(src/vped.C) 4AC_INIT(src/vped.C)
5AC_CANONICAL_TARGET 5AC_CANONICAL_TARGET
6AM_INIT_AUTOMAKE(vpe, 1.0) 6AM_INIT_AUTOMAKE(vpe, 1.2)
7AM_CONFIG_HEADER(config.h) 7AM_CONFIG_HEADER(config.h)
8AM_MAINTAINER_MODE 8AM_MAINTAINER_MODE
9 9
10AH_TOP([ 10AH_TOP([
11#ifndef CONFIG_H__ 11#ifndef CONFIG_H__
65 65
66AC_ARG_ENABLE(iftype, 66AC_ARG_ENABLE(iftype,
67 [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ 67 [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [
68 Use kernel/net device interface TYPE/SUBTYPE. 68 Use kernel/net device interface TYPE/SUBTYPE.
69 Working combinations are: 69 Working combinations are:
70 "native/linux" "tincd/linux"; 70 "native/linux" "tincd/linux" "tincd/freebsd";
71 Untested combinations are: 71 Untested combinations are:
72 "tincd/freebsd" "tincd/netbsd" "tincd/darwin" "tincd/solaris" 72 "tincd/netbsd" "tincd/darwin" "tincd/solaris"
73 "tincd/openbsd" "tincd/netbsd" "tincd/cygwin"; 73 "tincd/openbsd" "tincd/cygwin";
74 Broken combinations are: 74 Broken combinations are:
75 "native/cygwin"; 75 "native/cygwin";
76 The default is autodetected. 76 The default is to autodetect.
77 ])], 77 ])],
78 [ 78 [
79 IFTYPE=`echo $enableval | sed s%/.*%%` 79 IFTYPE=`echo $enableval | sed s%/.*%%`
80 IFSUBTYPE=`echo $enableval | sed s%.*/%%` 80 IFSUBTYPE=`echo $enableval | sed s%.*/%%`
81 ] 81 ]
239 echo 239 echo
240 ] 240 ]
241) 241)
242 242
243AC_ARG_ENABLE(icmp, 243AC_ARG_ENABLE(icmp,
244 [AC_HELP_STRING(--enable-icmp, [enable icmp protocol support.])], 244 [AC_HELP_STRING(--enable-icmp, [enable icmp protocol support (default disabled).])],
245 AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.]) 245 AC_DEFINE_UNQUOTED(ENABLE_ICMP, 1, [ICMP protocol support.])
246) 246)
247 247
248AC_ARG_ENABLE(tcp, 248AC_ARG_ENABLE(tcp,
249 [AC_HELP_STRING(--enable-tcp, [enable tcp protocol support.])], 249 [AC_HELP_STRING(--enable-tcp, [enable tcp protocol support (default disabled).])],
250 AC_DEFINE_UNQUOTED(ENABLE_TCP, 1, [TCP protocol support.]) 250 AC_DEFINE_UNQUOTED(ENABLE_TCP, 1, [TCP protocol support.])
251) 251)
252 252
253AC_ARG_ENABLE(http-proxy, 253AC_ARG_ENABLE(http-proxy,
254 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support.])], 254 [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])],
255 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.]) 255 AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.])
256) 256)
257 257
258HMAC=16 dnl see also the AC_HELP_STRING 258HMAC=12 dnl see also the AC_HELP_STRING
259AC_ARG_ENABLE(hmac-length, 259AC_ARG_ENABLE(hmac-length,
260 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 16). Allowed values are 4, 8, 12, 16.])], 260 [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])],
261 HMAC=$enableval 261 HMAC=$enableval
262) 262)
263AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.]) 263AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.])
264 264
265RAND=8 dnl see also the AC_HELP_STRING 265RAND=8 dnl see also the AC_HELP_STRING
287 287
288CIPHER=bf_cbc 288CIPHER=bf_cbc
289AC_ARG_ENABLE(cipher, 289AC_ARG_ENABLE(cipher,
290 [AC_HELP_STRING(--enable-cipher, [ 290 [AC_HELP_STRING(--enable-cipher, [
291 Select the symmetric cipher (default "bf"). Must be one of 291 Select the symmetric cipher (default "bf"). Must be one of
292 "bf" (blowfish), "aes-128", "aes-192" or "aes-256".])], 292 "bf" (blowfish), "aes-128" (rijndael), "aes-192" or "aes-256".])],
293 if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi 293 if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi
294 if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi 294 if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi
295 if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi 295 if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi
296 if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi 296 if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi
297) 297)
299 299
300DIGEST=sha1 300DIGEST=sha1
301AC_ARG_ENABLE(digest, 301AC_ARG_ENABLE(digest,
302 [AC_HELP_STRING(--enable-digest, [ 302 [AC_HELP_STRING(--enable-digest, [
303 Select the digets algorithm to use (default "sha1"). Must be one of 303 Select the digets algorithm to use (default "sha1"). Must be one of
304 "sha1", "ripemd160", "md4" or "md5".])], 304 "sha1", "ripemd160", "md5" or "md4" (insecure).])],
305 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi 305 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi
306 if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi 306 if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi
307 if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi
307 if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi 308 if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi
308 if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi
309) 309)
310AC_DEFINE_UNQUOTED(ENABLE_DIGEST, EVP_${DIGEST}, [Select the digest algorithm to use.]) 310AC_DEFINE_UNQUOTED(ENABLE_DIGEST, EVP_${DIGEST}, [Select the digest algorithm to use.])
311 311
312if $CXX -v --help 2>&1 | grep -q fno-rtti; then 312if $CXX -v --help 2>&1 | grep -q fno-rtti; then
313 CXXFLAGS="$CXXFLAGS -fno-rtti" 313 CXXFLAGS="$CXXFLAGS -fno-rtti"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines