Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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@gmail.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.