[Libreoffice-commits] core.git: configure.ac

Michael Stahl mstahl at redhat.com
Thu May 16 07:20:19 PDT 2013


 configure.ac |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cdc87e5f32056da77749304f3148f1c842a958d0
Author: Michael Stahl <mstahl at redhat.com>
Date:   Thu May 16 15:58:27 2013 +0200

    configure: tweak the jpeg error messages a bit
    
    Apparently libjpeg-turbo (used on Fedora) has a bunch of emulation
    modes for jpeg-6/jpeg-7/jpeg-8 compatibility, and the jpeg-6 one
    supports JERR_BAD_CROP_SPEC too, which was added to libjpeg in jpeg-7.
    
    Change-Id: I5ca4deb3ea059996cf72e0e92fc80bd11fc6979a

diff --git a/configure.ac b/configure.ac
index 556f946..12d950b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7135,7 +7135,7 @@ if test "$with_system_jpeg" = "yes"; then
         [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 7 or greater]])
+    AC_MSG_CHECKING([[libjpeg supports JERR_BAD_CROP_SPEC (jpeg-7 API)]])
 	AC_COMPILE_IFELSE([ AC_LANG_SOURCE(
 			  [[
 #include <stdio.h>
@@ -7144,7 +7144,7 @@ int main(int c, char**v) { printf("%d\n", JERR_BAD_CROP_SPEC); return 0; }
 			  ]]) ],
 			  [AC_MSG_RESULT(yes)],
 		          [AC_MSG_RESULT(no)
-                           AC_MSG_ERROR(jpeg library version >= 7 required)
+                           AC_MSG_ERROR(jpeg library version >= 7 or jpeg-turbo version >= 1.1 required)
                           ])
     libo_MINGW_CHECK_DLL([libjpeg])
 else


More information about the Libreoffice-commits mailing list