8cb8d8 | 2001-02-27 | Henrik Grubbström (Grubba) | | # $Id: configure.in,v 1.7 2001/02/27 18:52:25 grubba Exp $
|
ab6aec | 1997-02-11 | Fredrik Hübinette (Hubbe) | | AC_INIT(ssleay.c)
|
6087ce | 1997-03-14 | Niels Möller | | AC_CONFIG_HEADER(config.h)
|
e26981 | 1998-09-20 | Fredrik Hübinette (Hubbe) | | AC_MODULE_INIT()
|
ab6aec | 1997-02-11 | Fredrik Hübinette (Hubbe) | |
|
ea33d8 | 1997-09-07 | Henrik Grubbström (Grubba) | | AC_ARG_WITH(ssleay, [ --with-ssleay enable the ssleay-module],[],[with_ssleay=no])
|
ab6aec | 1997-02-11 | Fredrik Hübinette (Hubbe) | |
|
e45ef2 | 2001-02-14 | Mirar (Pontus Hagland) | | PIKE_FEATURE_WITHOUT(Ssleay)
|
ab6aec | 1997-02-11 | Fredrik Hübinette (Hubbe) | | if test x$with_ssleay = xyes; then
|
e45ef2 | 2001-02-14 | Mirar (Pontus Hagland) | | PIKE_FEATURE_NODEP(Ssleay)
|
ab6aec | 1997-02-11 | Fredrik Hübinette (Hubbe) | | OLD_LDFLAGS=$LDFLAGS
OLD_CPPFLAGS=$CPPFLAGS
OLD_LIBS=$LIBS
AC_MSG_CHECKING(Checking for existance of SSLeay)
AC_CACHE_VAL(pike_cv_ssleay_exists,
[
|
8cb8d8 | 2001-02-27 | Henrik Grubbström (Grubba) | | if test -d $with_root/usr/local/ssl ; then
|
ab6aec | 1997-02-11 | Fredrik Hübinette (Hubbe) | | pike_cv_ssleay_exists="yes"
else
pike_cv_ssleay_exists="no"
fi
])
AC_MSG_RESULT($pike_cv_ssleay_exists)
if test x$pike_cv_ssleay_exists = xyes; then
|
8cb8d8 | 2001-02-27 | Henrik Grubbström (Grubba) | | if test -d $with_root/usr/local/ssl/lib ; then
echo Added $with_root/usr/local/ssl/lib to the library search path.
LDFLAGS="-L$with_root/usr/local/ssl/lib ${LDFLAGS}"
|
ab6aec | 1997-02-11 | Fredrik Hübinette (Hubbe) | | # link with libc first, so we get the right definition
# of crypt()
LDFLAGS="-lc ${LDFLAGS}"
fi
|
8cb8d8 | 2001-02-27 | Henrik Grubbström (Grubba) | | if test -d $with_root/usr/local/ssl/include ; then
echo Added $with_root/usr/local/ssl/include to the include search path.
CPPFLAGS="-I$with_root/usr/local/ssl/include ${CPPFLAGS}"
|
ab6aec | 1997-02-11 | Fredrik Hübinette (Hubbe) | | fi
pike_cv_ssleay="yes"
AC_CHECK_LIB(crypto, ERR_print_errors_fp, [], [ pike_cv_ssleay="no" ])
AC_CHECK_LIB(ssl, SSL_use_PrivateKey_file, [], [ pike_cv_ssleay="no" ])
AC_MSG_CHECKING(Supported version of SSLeay)
AC_MSG_RESULT($pike_cv_ssleay)
if test x$pike_cv_ssleay = xyes; then
AC_DEFINE(HAVE_SSLEAY)
|
e45ef2 | 2001-02-14 | Mirar (Pontus Hagland) | | PIKE_FEATURE_OK(Ssleay)
|
ab6aec | 1997-02-11 | Fredrik Hübinette (Hubbe) | | else
# Restore variables, so we don't link with unnessesary libs
LIBS=$OLD_LIBS
CPPFLAGS=$OLD_CPPFLAGS
LDFLAGS=$OLD_LDFLAGS
fi
fi
fi
AC_OUTPUT(Makefile,echo FOO >stamp-h )
|