aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2015-03-23 11:55:24 +0100
committerAndreas Schwab2015-03-23 12:08:41 +0100
commitff3878d749591ebf78da532ec1eb6fa00cb5757d (patch)
tree2b7e61aaaf9b53582c06f77fe74b4c53996c67b6
parent90b46f5b54b8eda06e2c5bcd13d9c6475afe767b (diff)
downloademacs-ff3878d749591ebf78da532ec1eb6fa00cb5757d.tar.gz
emacs-ff3878d749591ebf78da532ec1eb6fa00cb5757d.zip
* configure.ac: Fix jpeg version check to work with gcc >= 5.
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac18
2 files changed, 15 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 4abd9d6e047..b578d0867b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12015-03-23 Andreas Schwab <schwab@suse.de>
2
3 * configure.ac: Fix jpeg version check to work with gcc >= 5.
4
12015-01-20 Eli Zaretskii <eliz@gnu.org> 52015-01-20 Eli Zaretskii <eliz@gnu.org>
2 6
3 * configure.ac (HAVE_W32): Abort with error message if 7 * configure.ac (HAVE_W32): Abort with error message if
diff --git a/configure.ac b/configure.ac
index 209bae9eef9..dd1ab324688 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3075,10 +3075,12 @@ if test "${opsys}" = "mingw32"; then
3075 AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl 3075 AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl
3076 if test "${HAVE_JPEG}" = "yes"; then 3076 if test "${HAVE_JPEG}" = "yes"; then
3077 AC_DEFINE(HAVE_JPEG) 3077 AC_DEFINE(HAVE_JPEG)
3078 AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])], 3078 AC_EGREP_CPP([version 6b or later],
3079 [#include <jpeglib.h> 3079 [#include <jpeglib.h>
3080 version=JPEG_LIB_VERSION 3080 #if JPEG_LIB_VERSION >= 62
3081], 3081 version 6b or later
3082 #endif
3083 ],
3082 [AC_DEFINE(HAVE_JPEG)], 3084 [AC_DEFINE(HAVE_JPEG)],
3083 [AC_MSG_WARN([libjpeg found, but not version 6b or later]) 3085 [AC_MSG_WARN([libjpeg found, but not version 6b or later])
3084 HAVE_JPEG=no]) 3086 HAVE_JPEG=no])
@@ -3094,10 +3096,12 @@ elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
3094 AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl 3096 AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl
3095 if test "${HAVE_JPEG}" = "yes"; then 3097 if test "${HAVE_JPEG}" = "yes"; then
3096 AC_DEFINE(HAVE_JPEG) 3098 AC_DEFINE(HAVE_JPEG)
3097 AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])], 3099 AC_EGREP_CPP([version 6b or later],
3098 [#include <jpeglib.h> 3100 [#include <jpeglib.h>
3099 version=JPEG_LIB_VERSION 3101 #if JPEG_LIB_VERSION >= 62
3100], 3102 version 6b or later
3103 #endif
3104 ],
3101 [AC_DEFINE(HAVE_JPEG)], 3105 [AC_DEFINE(HAVE_JPEG)],
3102 [AC_MSG_WARN([libjpeg found, but not version 6b or later]) 3106 [AC_MSG_WARN([libjpeg found, but not version 6b or later])
3103 HAVE_JPEG=no]) 3107 HAVE_JPEG=no])