[PATCH] configure: reguire libjpeg 8

Riccardo Magliocchetti (via Code Review) gerrit at gerrit.libreoffice.org
Mon May 6 03:58:14 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3796

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/96/3796/1

configure: reguire libjpeg 8

b5a9cc71 introduced the use of JERR_BAD_CROP_SPEC which is available
since libjpeg8.

Change-Id: I19e4287b0c1a9ddc0baaa70ab61364f99571682c
---
M configure.ac
1 file changed, 14 insertions(+), 0 deletions(-)



diff --git a/configure.ac b/configure.ac
index af43cac..4f6a102 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7175,6 +7175,20 @@
         [AC_MSG_ERROR(jpeg.h not found. install libjpeg)], [])
     AC_CHECK_LIB(jpeg, jpeg_resync_to_restart, [ JPEG3RDLIB=-ljpeg ],
     [AC_MSG_CHECKING(jpeg library not found or fuctional)], [])
+    AC_MSG_CHECKING([[libjpeg version is 8 or greater]])
+	AC_PREPROC_IFELSE([ AC_LANG_SOURCE(
+			  [[
+#include <stdio.h>
+#include <jpeglib.h>
+#if JPEG_LIB_VERSION < 80
+#error "wrong version"
+#endif
+int main(int c, char**v) { return 0; }
+			  ]]) ],
+			  [AC_MSG_RESULT(yes)],
+		          [AC_MSG_RESULT(no)
+                           AC_MSG_ERROR(jpeg library version >= 8 required)
+                          ])
     libo_MINGW_CHECK_DLL([libjpeg])
 else
     AC_MSG_RESULT([internal])

-- 
To view, visit https://gerrit.libreoffice.org/3796
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I19e4287b0c1a9ddc0baaa70ab61364f99571682c
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Riccardo Magliocchetti <riccardo.magliocchetti at gmail.com>



More information about the LibreOffice mailing list