1 configure.in: minimal syntax fixup for autoreconf
3 This is the strictly minimal syntax fixups to make autoreconf happy...
5 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
8 Note: configure.in is still full of incorrect syntax, but fixing it is
9 a task for another day, and would have to be upstreamed. But upstream
10 looks to be moribund at best, if not dead... :-(
12 So, keep it for ourselves for now... Too bad, vtun is really helpfull.
14 --- vtun-3.0.3.orig/configure.in 2013-02-16 23:54:52.582451817 +0100
15 +++ vtun-3.0.3/configure.in 2013-02-17 00:03:13.640887353 +0100
17 AC_SEARCH_LIBS(nanosleep, rt posix4)
19 dnl Check for setproctitle in libutil
20 -AC_SEARCH_LIBS(setproctitle, util bsd, AC_DEFINE(HAVE_SETPROC_TITLE) )
21 +AC_SEARCH_LIBS(setproctitle, util bsd, AC_DEFINE([HAVE_SETPROC_TITLE],[],[Define to set title in /proc]) )
23 if test "$SHAPER" = "yes"; then
24 - AC_DEFINE(HAVE_SHAPER)
25 + AC_DEFINE([HAVE_SHAPER],[],[Define to use shapper])
28 if test "$ZLIB" = "yes"; then
30 AC_CHECKING( for ZLIB Library and Header files ... )
31 AC_CHECK_LIB(z, deflate,
33 - AC_DEFINE(HAVE_ZLIB),
34 + AC_DEFINE([HAVE_ZLIB],[],[Define to use ZLIB]),
35 AC_MSG_ERROR( Zlib library not found.)
39 AC_CHECK_LIB($I, lzo1x_decompress,
43 + AC_DEFINE([HAVE_LZO],[],[Define to use LZO])
48 AC_CHECK_LIB(crypto, BF_set_key,
52 - AC_DEFINE(HAVE_SSL_BLOWFISH)
53 + AC_DEFINE([HAVE_SSL],[],[Define to use SSL])
54 + AC_DEFINE([HAVE_SSL_BLOWFISH],[],[Define to use blowfish])
56 AC_MSG_ERROR( SSL library not found. )
60 AC_CHECK_LIB(crypto, AES_set_encrypt_key,
62 - AC_DEFINE(HAVE_SSL_AES)
63 + AC_DEFINE([HAVE_SSL_AES],[],[Define to use AES])
65 AC_MSG_ERROR( AES library not found. )
69 AC_CHECK_LIB(crypto, EVP_EncryptInit,
71 - AC_DEFINE(HAVE_SSL_EVP)
72 + AC_DEFINE([HAVE_SSL_EVP],[],Define to use EVP)
74 AC_MSG_ERROR( EVP library not found. )
79 if test "$NATHACK" = "yes"; then
80 - AC_DEFINE(ENABLE_NAT_HACK)
81 + AC_DEFINE([ENABLE_NAT_HACK],[],[Define to use NAT hack])
84 if test "$SOCKS" = "yes"; then
86 REL=`echo 'BRANCH-3_X' | tr -d '$: \-' | sed 's/^[A-Za-z]*//' | sed 's/\_/\./'`
89 -AC_DEFINE_UNQUOTED(VTUN_VER, "$REL `date '+%m/%d/%Y'`")
90 +AC_DEFINE_UNQUOTED([VTUN_VER], ["$REL `date '+%m/%d/%Y'`"], [vtun version])