force explicit use of --disable-gnutls if gnutls support is not required
[claws.git] / configure.ac
index 5fabeaf1e6d8217e34d1b9bbd073ee7367ee20f8..58c63ace4455bd190f9958040152f1d9f583a276 100644 (file)
@@ -486,8 +486,10 @@ if test "x$enable_gnutls" != "xno"; then
                ])
         ],
         [
-                echo "Building without gnutls"
-               enable_gnutls=no
+                echo "Building without GnuTLS"
+               AC_MSG_RESULT([*** GnuTLS support is recommended ])
+               AC_MSG_RESULT([*** You can use --disable-gnutls if you don't need it.])
+               AC_MSG_ERROR([GnuTLS not found])
         ])
         AC_SUBST(GNUTLS_LIBS)
         AC_SUBST(GNUTLS_CFLAGS)