1 diff -rduNp vtun-3.0.1.orig3/configure.in vtun-3.0.1/configure.in
2 --- vtun-3.0.1.orig3/configure.in 2007-10-13 19:30:40.000000000 +0200
3 +++ vtun-3.0.1/configure.in 2007-10-13 19:37:23.000000000 +0200
4 @@ -45,7 +45,8 @@ AC_ARG_ENABLE(socks,
5 AC_ARG_WITH(ssl-headers,
6 --with-ssl-headers=DIR Crypto Include files location,
8 - CPPFLAGS="$CPPFLAGS -I$withval"
9 + CPPFLAGS="$CPPFLAGS -I$withval",
10 + SSL_HDR_DIR="/usr/include/openssl /usr/include /usr/include/ssl /usr/local/include /usr/local/ssl/include /usr/include/sys /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto"
13 --with-ssl-lib=DIR Crypto Library location,
14 @@ -54,7 +55,8 @@ AC_ARG_WITH(ssl-lib,
16 AC_ARG_WITH(lzo-headers,
17 --with-lzo-headers=DIR LZO Include files location,
18 - LZO_HDR_DIR="$withval"
19 + LZO_HDR_DIR="$withval",
20 + LZO_HDR_DIR=" /usr/include/lzo \"\" /usr/local/include"
23 --with-lzo-lib=DIR LZO Library location,
24 @@ -63,7 +65,8 @@ AC_ARG_WITH(lzo-lib,
26 AC_ARG_WITH(blowfish-headers,
27 --with-blowfish-headers=DIR Blowfish Include files location,
28 - BLOWFISH_HDR_DIR="$withval"
29 + BLOWFISH_HDR_DIR="$withval",
30 + BLOWFISH_HDR_DIR="/usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto"
33 AC_ARG_WITH(socks-lib,
34 @@ -126,10 +129,10 @@ if test "$LZO" = "yes"; then
36 AS_MESSAGE([checking for LZO Library and Header files ... ...])
37 AC_SEARCH_HEADERS(lzo_asm.h,
38 - $LZO_HDR_DIR /usr/include/lzo "" /usr/local/include,
41 AC_SEARCH_HEADERS(lzo1x.h,
42 - $LZO_HDR_DIR /usr/include/lzo "" /usr/local/include,
45 AC_MSG_ERROR( LZO library not found. )
47 @@ -160,7 +163,7 @@ if test "$SSL" = "yes"; then
49 AS_MESSAGE([checking for md5 Library and Header files ... ...])
50 AC_SEARCH_HEADERS(md5.h,
51 - $SSL_HDR_DIR /usr/include/openssl "" /usr/include /usr/include/ssl /usr/local/include /usr/local/ssl/include /usr/include/sys,
54 AC_MSG_ERROR( SSL headers not found. )
56 @@ -170,7 +173,7 @@ if test "$SSL" = "yes"; then
58 AS_MESSAGE([checking for blowfish Library and Header files ... ...])
59 AC_SEARCH_HEADERS(blowfish.h,
60 - $BLOWFISH_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto,
62 AC_CHECK_LIB(crypto, BF_set_key,
65 @@ -187,7 +190,7 @@ if test "$SSL" = "yes"; then
67 AC_CHECKING( for AES Library and Header files ... )
68 AC_SEARCH_HEADERS(aes.h,
69 - $SSL_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto,
71 AC_CHECK_LIB(crypto, AES_set_encrypt_key,
73 AC_DEFINE(HAVE_SSL_AES, 1, "AES encryption support")
74 @@ -202,7 +205,7 @@ if test "$SSL" = "yes"; then
76 AC_CHECKING( for EVP Library and Header files ... )
77 AC_SEARCH_HEADERS(evp.h,
78 - $SSL_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto,
80 AC_CHECK_LIB(crypto, EVP_EncryptInit,
82 AC_DEFINE(HAVE_SSL_EVP, 1, "EVP encryption support")