If GnuTLS is not available a simple ./configure prints
configure: error: --with-ssl=gnutls was given, but GNUTLS is not available.

This seems misleading, so I changed it to
configure: error: GnuTLS has not been found. Use --with-ssl=openssl if you
explicitly want OpenSSL.

Any opinions ?

Tim
From a80986a8c95354eeefad2c39dc8813c829f79a4a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim Rühsen?= <[email protected]>
Date: Fri, 5 Dec 2014 12:18:30 +0100
Subject: [PATCH] Fix message in configure.ac for when GnuTLS has not been
 found

---
 ChangeLog    | 4 ++++
 configure.ac | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index c142e0c..5f13bc1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-12-05  Tim Ruehsen <[email protected]>

+	* configure.ac: Fix message for when GnuTLS has not been found.
+
+2014-12-05  Tim Ruehsen <[email protected]>
+
 	* bootstrap.conf: Add modules fnmatch, memrchr, strcase, strptime,
 	strtoll, timegm
 	Remove module strcasecmp
diff --git a/configure.ac b/configure.ac
index 43949a2..a366e83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -422,7 +422,7 @@ AS_IF([test x"$with_ssl" = xopenssl], [
         AC_LIBOBJ([gnutls])
         LIBS="$LIBGNUTLS $LIBS"
       else
-        AC_MSG_ERROR([--with-ssl=gnutls was given, but GNUTLS is not available.])
+        AC_MSG_ERROR([GnuTLS has not been found. Use --with-ssl=openssl if you explicitly want OpenSSL.])
       fi
     ])

--
2.1.3

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to