aboutsummaryrefslogtreecommitdiff
path: root/src/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r--src/aclocal.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 25cd63b91..13b54abe5 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -205,12 +205,16 @@ if test x"$tls" != x; then
SSL_LIBS="-L$ssl_prefix/lib -lcrypto"
AC_CHECK_LIB(ssl, SSL_new, [ have_openssl=yes ], [ have_openssl=no ], [ $SSL_LIBS $SSL_CFLAGS ])
if test x"$have_openssl" = xyes; then
- AC_CHECK_HEADERS($ssl_prefix/include/openssl/ssl.h, have_openssl_h=yes)
+ save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="-I$ssl_prefix/lib $CPPFLAGS"
+ AC_CHECK_HEADERS(openssl/ssl.h, have_openssl_h=yes)
+ CPPFLAGS=$save_CPPFLAGS
if test x"$have_openssl_h" = xyes; then
have_openssl=yes
printf "openssl found in $ssl_prefix\n";
SSL_LIBS="-L$ssl_prefix/lib -lssl -lcrypto"
- SSL_CFLAGS="-I$ssl_prefix/include/openssl -DHAVE_SSL"
+ CPPFLAGS="-I$ssl_prefix/lib $CPPFLAGS"
+ SSL_CFLAGS="-DHAVE_SSL"
break
fi
fi