[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-24 ff3878d: * configure.ac: Fix jpeg version check t
From: |
Andreas Schwab |
Subject: |
[Emacs-diffs] emacs-24 ff3878d: * configure.ac: Fix jpeg version check to work with gcc >= 5. |
Date: |
Mon, 23 Mar 2015 11:12:02 +0000 |
branch: emacs-24
commit ff3878d749591ebf78da532ec1eb6fa00cb5757d
Author: Andreas Schwab <address@hidden>
Commit: Andreas Schwab <address@hidden>
* configure.ac: Fix jpeg version check to work with gcc >= 5.
---
ChangeLog | 4 ++++
configure.ac | 18 +++++++++++-------
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4abd9d6..b578d08 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-23 Andreas Schwab <address@hidden>
+
+ * configure.ac: Fix jpeg version check to work with gcc >= 5.
+
2015-01-20 Eli Zaretskii <address@hidden>
* configure.ac (HAVE_W32): Abort with error message if
diff --git a/configure.ac b/configure.ac
index 209bae9..dd1ab32 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3075,10 +3075,12 @@ if test "${opsys}" = "mingw32"; then
AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library
(-ljpeg).])dnl
if test "${HAVE_JPEG}" = "yes"; then
AC_DEFINE(HAVE_JPEG)
- AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])],
- [#include <jpeglib.h>
- version=JPEG_LIB_VERSION
-],
+ AC_EGREP_CPP([version 6b or later],
+ [#include <jpeglib.h>
+ #if JPEG_LIB_VERSION >= 62
+ version 6b or later
+ #endif
+ ],
[AC_DEFINE(HAVE_JPEG)],
[AC_MSG_WARN([libjpeg found, but not version 6b or later])
HAVE_JPEG=no])
@@ -3094,10 +3096,12 @@ elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" =
"yes"; then
AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library
(-ljpeg).])dnl
if test "${HAVE_JPEG}" = "yes"; then
AC_DEFINE(HAVE_JPEG)
- AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])],
+ AC_EGREP_CPP([version 6b or later],
[#include <jpeglib.h>
- version=JPEG_LIB_VERSION
-],
+ #if JPEG_LIB_VERSION >= 62
+ version 6b or later
+ #endif
+ ],
[AC_DEFINE(HAVE_JPEG)],
[AC_MSG_WARN([libjpeg found, but not version 6b or later])
HAVE_JPEG=no])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-24 ff3878d: * configure.ac: Fix jpeg version check to work with gcc >= 5.,
Andreas Schwab <=