From dd1dc3f041c8b001d40dc3a8f06b0a028628306f Mon Sep 17 00:00:00 2001 From: Hiroshi Saito Date: Tue, 27 Mar 2007 13:40:02 +0000 Subject: [PATCH] without of openssl cannot have been done. Fix did this. However,The compilation doesn't succeed if OpenSSL is not made effective now. This problem is still continued.... --- configure.ac | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 12f9fd6..bd55df3 100644 --- a/configure.ac +++ b/configure.ac @@ -86,26 +86,25 @@ PGAC_ARG_BOOL(enable, pthreads, no, ]) # Need OpenSSL +PGAC_ARG_BOOL(with, openssl, yes, + [--with-openssl=PATH where openssl is installed(default)]) + +if test "$with_openssl" = yes; then AC_PATH_PROG(PKG_CONFIG, pkg-config) if test "x$PKG_CONFIG" = x || test "x$PKG_CONFIG" = "xno" ; then - AC_ARG_WITH(openssl, - AC_HELP_STRING([--with-openssl=PATH], [where openssl is installed]), - [if test x_$with_openssl != x_/usr; then + if test x_$with_openssl != x_/usr; then SSLLIBS="-L${with_openssl}/lib" SSLFLAGS="-I${with_openssl}/include" - fi]) + fi SSLLIBS="$SSLLIBS -lssl -lcrypto" else SSLLIBS="`$PKG_CONFIG --libs openssl`" SSLFLAGS="`$PKG_CONFIG --cflags openssl`" fi -#AC_CHECKING(for OpenSSL libraries) AC_MSG_RESULT($SSLLIBS) LIBS="$LIBS $SSLLIBS" -#AC_CHECKING(for OpenSSL cflags) AC_MSG_RESULT($SSLFLAGS) CPPFLAGS="$SSLFLAGS $CPPFLAGS" - AC_CHECK_HEADER([openssl/ssl.h],, AC_MSG_ERROR([unable to find openssl header files])) AC_MSG_CHECKING(for ERR_load_CRYPTO_string) @@ -116,6 +115,9 @@ AC_MSG_CHECKING(for SSL_library_init) AC_TRY_LINK_FUNC([SSL_library_init],, AC_MSG_ERROR([unable to link with openssl libraries])) AC_MSG_RESULT(yes) + +fi + # AC_PROG_CC -- 2.39.5