summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorAleksey Sanin <aleksey@src.gnome.org>2002-11-06 06:50:39 +0000
committerAleksey Sanin <aleksey@src.gnome.org>2002-11-06 06:50:39 +0000
commit634b5fb5b00e879a803e959de238fd61ce915913 (patch)
tree352b70f07c7c3de008f0218c59d493dddde773cd /configure.in
parent9f1b98146d418b8654809d5bf66aff6f927832bd (diff)
downloadxmlsec1-634b5fb5b00e879a803e959de238fd61ce915913.tar.gz
xmlsec1-634b5fb5b00e879a803e959de238fd61ce915913.tar.bz2
xmlsec1-634b5fb5b00e879a803e959de238fd61ce915913.zip
one more configure.in tweak
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 25ff952e..62629357 100644
--- a/configure.in
+++ b/configure.in
@@ -252,8 +252,10 @@ else
if test "$with_openssl" = "no" ; then
AC_MSG_ERROR(at least one crypto engine is required for $PACKAGE)
else
+ ac_openssl_inc_folder=""
if test "x$with_openssl" != "x" ; then
OPENSSL_PREFIX=$with_openssl
+ ac_openssl_inc_folder="$OPENSSL_PREFIX/include"
dnl do not add -I/usr/include and -L/usr/lib because
dnl compiler does it anyway
if test "$OPENSSL_PREFIX" = "/usr" ; then
@@ -265,10 +267,12 @@ else
fi
OPENSSL_LDADDS="$OPENSSL_PREFIX/lib/libcrypto.a"
else
+
OPENSSL_INCLUDES_FOUND="no"
OPENSSL_LIBS_FOUND="no"
for dir in $ac_openssl_inc_dir; do
if test -f $dir/openssl/ssl.h; then
+ ac_openssl_inc_folder="$dir/include"
dnl do not add -I/usr/include because compiler does it anyway
if test "$dir" = "/usr/include" ; then
OPENSSL_CFLAGS=""
@@ -299,7 +303,7 @@ else
fi
dnl Check the OpenSSL version
- OLD_CPPFLAGS=$CPPFLAGS
+ OLD_CPPFLAGS="-I$ac_openssl_inc_folder"
CPPFLAGS="$OPENSSL_CFLAGS"
AC_EGREP_CPP(yes,[
#include <openssl/opensslv.h>