1 configure.in: do not hard-code search patch for SSL headers
3 Do. Not. Do. That. It breaks cross-compilation.
5 Also use the SSL headers dir to look for blowfish headers.
7 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
9 diff -durN vtun-3.0.3.orig/configure.in vtun-3.0.3/configure.in
10 --- vtun-3.0.3.orig/configure.in 2009-03-29 12:08:51.000000000 +0200
11 +++ vtun-3.0.3/configure.in 2013-02-16 23:44:44.004339680 +0100
14 AC_CHECKING( for md5 Library and Header files ... )
15 AC_SEARCH_HEADERS(md5.h,
16 - $SSL_HDR_DIR /usr/include/openssl "" /usr/include /usr/include/ssl /usr/local/include /usr/local/ssl/include /usr/include/sys,
19 AC_MSG_ERROR( SSL headers not found. )
23 AC_CHECKING( for blowfish Library and Header files ... )
24 AC_SEARCH_HEADERS(blowfish.h,
25 - $BLOWFISH_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto,
26 + $BLOWFISH_HDR_DIR $SSL_HDR_DIR,
27 AC_CHECK_LIB(crypto, BF_set_key,
32 AC_CHECKING( for AES Library and Header files ... )
33 AC_SEARCH_HEADERS(aes.h,
34 - $SSL_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto,
36 AC_CHECK_LIB(crypto, AES_set_encrypt_key,
38 AC_DEFINE(HAVE_SSL_AES)
41 AC_CHECKING( for EVP Library and Header files ... )
42 AC_SEARCH_HEADERS(evp.h,
43 - $SSL_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto,
45 AC_CHECK_LIB(crypto, EVP_EncryptInit,
47 AC_DEFINE(HAVE_SSL_EVP)