]> arthur.barton.de Git - netatalk.git/blobdiff - macros/ssl-check.m4
Minor cleanups.
[netatalk.git] / macros / ssl-check.m4
index c9fbbe813dde71b7d09382f0e326bf20149a114a..b9c369e49f3778258e621d19b3827791002dffc2 100644 (file)
@@ -1,19 +1,16 @@
-dnl $Id: ssl-check.m4,v 1.3 2001-11-13 15:43:41 srittau Exp $
+dnl $Id: ssl-check.m4,v 1.4 2001-12-01 15:17:33 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
+                       else
+                               tryssldir="$withval"
                        fi
-               ]
+               ], [tryssl=yes]
        )
 
        SSL_CFLAGS=""