Subject: bug#25317: [bug-gnu-emacs] emacs-25.1.91 build feedback

From: [email-masked]
Date: Sun, 22 Jan 2017 00:11:11 -0500

"Nelson H. F. Beebe" <[email-masked]> writes:
>
> One pain in emacs-x.y.z releases is that if any of the graphics
> libraries (gif, jpeg, png, tiff, ...) and associated header files are
> missing, configure aborts.  
>
> I would MUCH rather that it just warned that it would not be able to
> supply that rarely-used feature of viewing bitmap graphics files, and
> carry on with the build.  

Hmm, the problem is that configure.ac is currently structured in such a
way that it can't distinguish between --with-gif=yes and not passing any
--with-gif option, so changing this is not so easy.  As a quick fix, you
can apply the following patch to disable this checking for all the image
libraries:

--- i/configure.ac
+++ w/configure.ac
@@ -3517,7 +3517,7 @@ fi
 AC_SUBST(LIBGIF)
 
 dnl Check for required libraries.
-if test "${HAVE_X11}" = "yes"; then
+if false ; then
   MISSING=""
   WITH_NO=""
   test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&

Or if you're building from the tarball without running autoreconf, patch
configure directly:

--- i/configure
+++ w/configure
@@ -15731,7 +15731,7 @@
 fi

-if test "${HAVE_X11}" = "yes"; then
+if false ; then
   MISSING=""
   WITH_NO=""
   test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&