Configure can receive explicit path to openssl base directory, assumes

libssl and libcrypto are in the linker's path.


git-svn-id: http://voip.null.ro/svn/yate@2686 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2009-06-04 14:52:08 +00:00
parent 96a7f06550
commit 32cf49f174
1 changed files with 15 additions and 0 deletions

View File

@ -778,6 +778,21 @@ if [[ "x$ac_cv_use_openssl" = "xyes" ]]; then
verssl="no"
fi
AC_MSG_RESULT([$verssl])
elif [[ "x$ac_cv_use_openssl" != "xno" ]]; then
AC_MSG_CHECKING([for OpenSSL in $ac_cv_use_openssl])
verssl=no
if [[ -f "$ac_cv_use_openssl/include/openssl/opensslconf.h" ]]; then
verssl=`sed -n 's/^#define SHLIB_VERSION_NUMBER "\([0-9.]\+\)".*/\1/p' <$ac_cv_use_openssl/include/openssl/opensslv.h 2>/dev/null`
if [[ "x$verssl" != "x" ]]; then
HAVE_OPENSSL=yes
OPENSSL_VER="$verssl"
OPENSSL_INC="-I$ac_cv_use_openssl/include"
OPENSSL_LIB="-lssl -lcrypto"
else
verssl=no
fi
fi
AC_MSG_RESULT([$verssl])
fi
AC_SUBST(HAVE_OPENSSL)
AC_SUBST(OPENSSL_INC)