From 362c62cd45e6100542be104c2b52ffb3083d40a7 Mon Sep 17 00:00:00 2001 From: srittau Date: Tue, 13 Nov 2001 15:43:41 +0000 Subject: [PATCH 1/1] Minor fixes and improvements. --- macros/ssl-check.m4 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/macros/ssl-check.m4 b/macros/ssl-check.m4 index 62ef137e..c9fbbe81 100644 --- a/macros/ssl-check.m4 +++ b/macros/ssl-check.m4 @@ -1,15 +1,15 @@ -dnl $Id: ssl-check.m4,v 1.2 2001-10-28 12:09:17 srittau Exp $ +dnl $Id: ssl-check.m4,v 1.3 2001-11-13 15:43:41 srittau Exp $ dnl Autoconf macro to check for SSL or OpenSSL AC_DEFUN([AC_PATH_SSL], [ tryssl=yes + tryssldir= - AC_ARG_WITH(ssl-dir, [ - --with-ssl-dir=PATH specify path to OpenSSL installation (must contain + AC_ARG_WITH(ssl-dir, [ --with-ssl-dir=PATH specify path to OpenSSL installation (must contain lib and include dirs)], [ if test "x$withval" != "xno"; then - tryssldir=$withval + tryssldir="$withval" else tryssl=no fi @@ -26,11 +26,12 @@ AC_DEFUN([AC_PATH_SSL], [ if test -f "$ssldir/include/openssl/cast.h" ; then SSL_CFLAGS="$SSL_CFLAGS -I$ssldir/include -I$ssldir/include/openssl" SSL_LIBS="$SSL_LIBS -L$ssldir/lib -L$ssldir -lcrypto" - if test "$need_dash_r" = "yes"; then + if test "x$need_dash_r" = "xyes"; then SSL_LIBS="$SSL_LIBS -R$ssldir/lib -R$ssldir" fi AC_MSG_RESULT([$ssldir (enabling RANDNUM and DHX support)]) +dnl FIXME: The following looks crude and probably doesn't work properly. dnl Check for the crypto library: AC_CHECK_LIB(crypto, main) dnl Check for "DES" library (for SSLeay, not openssl): -- 2.39.2