]> git.eshelyaron.com Git - emacs.git/commitdiff
Require libgnutls unless --with-gnutls=no
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Jul 2016 09:00:18 +0000 (11:00 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Jul 2016 09:07:17 +0000 (11:07 +0200)
* configure.ac: Report an error if the gnutls library is missing,
unless --with-gnutls=no is specified.

configure.ac
etc/NEWS

index c94ecb629efac57c6a65c2f6db3ff42624abe8b4..cca555c27b44479ee458bcf51e6833debce29a86 100644 (file)
@@ -3568,9 +3568,9 @@ fi
 AC_SUBST(LIBGIF)
 
 dnl Check for required libraries.
+MISSING=
+WITH_NO=
 if test "${HAVE_X11}" = "yes"; then
-  MISSING=""
-  WITH_NO=""
   test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
     MISSING="libXpm" && WITH_NO="--with-xpm=no"
   test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
@@ -3581,15 +3581,16 @@ if test "${HAVE_X11}" = "yes"; then
     MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
   test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
     MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
-
-  if test "X${MISSING}" != X; then
-    AC_MSG_ERROR([The following required libraries were not found:
+fi
+test "${with_gnutls}" != "no" && test "${HAVE_GNUTLS}" != "yes" &&
+  MISSING="$MISSING gnutls" && WITH_NO="$WITH_NO --with-gnutls=no"
+if test "X${MISSING}" != X; then
+  AC_MSG_ERROR([The following required libraries were not found:
     $MISSING
 Maybe some development libraries/packages are missing?
 If you don't want to link with them give
     $WITH_NO
 as options to configure])
-  fi
 fi
 
 ### Use -lgpm if available, unless '--with-gpm=no'.
index e01f180e711db1ba3622b08367346ff528600d66..6462effd9f4bfb506e63fa07fabb9cfcb89a3793 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -25,6 +25,9 @@ otherwise leave it unmarked.
 \f
 * Installation Changes in Emacs 25.2
 
+** By default libgnutls is now required when building Emacs.
+Use 'configure --with-gnutls=no' to build even when GnuTLS is missing.
+
 ** The new option 'configure --enable-gcc-warnings=warn-only' causes
 GCC to issue warnings without stopping the build.  This behavior is
 now the default in developer builds.  As before, use