X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/3c8d9107437aca614516e8e6555c02b77ae9313c..337ee6b38ea35823ab77a03b3841cf888904b336:/configure.ac diff --git a/configure.ac b/configure.ac index 09500be993..4cb29c1fbf 100644 --- a/configure.ac +++ b/configure.ac @@ -3064,7 +3064,7 @@ elif test "${with_png}" != no; then # mingw32 loads the library dynamically. if test "$opsys" = mingw32; then AC_CHECK_HEADER([png.h], [HAVE_PNG=yes]) - else + elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then AC_MSG_CHECKING([for png]) png_cflags=`(libpng-config --cflags) 2>&AS_MESSAGE_LOG_FD` && png_libs=`(libpng-config --libs) 2>&AS_MESSAGE_LOG_FD` || {