aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2018-02-12 07:26:45 -0800
committerPaul Eggert2018-02-12 07:27:01 -0800
commit1590f8823d858b7bbad7f8a067fe356a19e1d5f8 (patch)
treeed6dbd8a0944947f206274b0c810e396f42f3415
parente9ca57cfcbaf1a8dfc6bde5a2afd5f3c7b357cb1 (diff)
downloademacs-1590f8823d858b7bbad7f8a067fe356a19e1d5f8.tar.gz
emacs-1590f8823d858b7bbad7f8a067fe356a19e1d5f8.zip
Revert libpng /usr/local patch
It broke builds on Arch, Debian, OpenSuSE; see thread containing: https://lists.gnu.org/r/2018-02/msg00330.html * configure.ac: Don't try pkg-config; just use libpng-config.
-rw-r--r--configure.ac7
1 files changed, 1 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index ec25e9b8c77..f2a8332d71a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3612,11 +3612,7 @@ elif test "${with_png}" != no; then
3612 if test "$opsys" = mingw32; then 3612 if test "$opsys" = mingw32; then
3613 AC_CHECK_HEADER([png.h], [HAVE_PNG=yes]) 3613 AC_CHECK_HEADER([png.h], [HAVE_PNG=yes])
3614 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then 3614 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
3615 EMACS_CHECK_MODULES([PNG], [libpng >= 1.0.0]) 3615 AC_MSG_CHECKING([for png])
3616 if test $HAVE_PNG = no; then
3617 # Test old way in case pkg-config doesn't have it (older machines).
3618 AC_MSG_CHECKING([for libpng not configured by pkg-config])
3619
3620 png_cflags=`(libpng-config --cflags) 2>&AS_MESSAGE_LOG_FD` && 3616 png_cflags=`(libpng-config --cflags) 2>&AS_MESSAGE_LOG_FD` &&
3621 png_ldflags=`(libpng-config --ldflags) 2>&AS_MESSAGE_LOG_FD` || { 3617 png_ldflags=`(libpng-config --ldflags) 2>&AS_MESSAGE_LOG_FD` || {
3622 # libpng-config does not work; configure by hand. 3618 # libpng-config does not work; configure by hand.
@@ -3649,7 +3645,6 @@ elif test "${with_png}" != no; then
3649 CFLAGS=$SAVE_CFLAGS 3645 CFLAGS=$SAVE_CFLAGS
3650 LIBS=$SAVE_LIBS 3646 LIBS=$SAVE_LIBS
3651 AC_MSG_RESULT([$HAVE_PNG]) 3647 AC_MSG_RESULT([$HAVE_PNG])
3652 fi
3653 fi 3648 fi
3654fi 3649fi
3655if test $HAVE_PNG = yes; then 3650if test $HAVE_PNG = yes; then