From 943e47558e63d959aa701db65782e8ebbc3d2d08 Mon Sep 17 00:00:00 2001 From: srittau Date: Sat, 15 Dec 2001 12:44:34 +0000 Subject: [PATCH] Backport from trunk: cleanup SSL macro. --- macros/ssl-check.m4 | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/macros/ssl-check.m4 b/macros/ssl-check.m4 index c9fbbe81..e77e8618 100644 --- a/macros/ssl-check.m4 +++ b/macros/ssl-check.m4 @@ -1,19 +1,21 @@ -dnl $Id: ssl-check.m4,v 1.3 2001-11-13 15:43:41 srittau Exp $ +dnl $Id: ssl-check.m4,v 1.3.2.1 2001-12-15 12:44:34 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 lib and include dirs)], [ - if test "x$withval" != "xno"; then - tryssldir="$withval" - else + if test "x$withval" = "xno"; then tryssl=no + elif test "x$withval" = "xyes"; then + tryssl=yes + tryssldir= + else + dnl FIXME: should only try in $withval + tryssl=yes + tryssldir="$withval" fi - ] + ], [tryssl=yes] ) SSL_CFLAGS="" -- 2.39.2