Bug 803914 - Port |Bug 791305 Use libjpeg's color conversion code instead of our own| to comm-central r=Callek
authorIan Neal <iann_cvs@blueyonder.co.uk>
Sun, 28 Oct 2012 23:01:37 +0000
changeset 14133 2f982f997c225f2365ab88451859207d742ad225
parent 14132 edf5ed0b0b7d7fdd407cbe7e05934b7f7395c2cb
child 14134 9687bde9504c7be9a7c90fabbfc7d11117ab6067
push id804
push userbugzilla@standard8.plus.com
push dateMon, 07 Jan 2013 21:31:35 +0000
treeherdercomm-beta@9fdc5c67cdb1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCallek
bugs803914, 791305
Bug 803914 - Port |Bug 791305 Use libjpeg's color conversion code instead of our own| to comm-central r=Callek
configure.in
--- a/configure.in
+++ b/configure.in
@@ -3979,17 +3979,21 @@ else
 fi
 
 if test "$MOZ_NATIVE_JPEG" = 1; then
     AC_TRY_COMPILE([ #include <stdio.h>
                      #include <sys/types.h>
                      #include <jpeglib.h> ],
                    [ #if JPEG_LIB_VERSION < $MOZJPEG
                      #error "Insufficient JPEG library version ($MOZJPEG required)."
-                     #endif ],
+                     #endif
+                     #ifndef JCS_EXTENSIONS
+                     #error "libjpeg-turbo JCS_EXTENSIONS required"
+                     #endif
+                     ],
                    MOZ_NATIVE_JPEG=1,
                    AC_MSG_ERROR([Insufficient JPEG library version for --with-system-jpeg]))
 fi 
 CFLAGS=$_SAVE_CFLAGS
 LDFLAGS=$_SAVE_LDFLAGS
 LIBS=$_SAVE_LIBS
 
 if test -n "${JPEG_DIR}" -a -d "${JPEG_DIR}" -a "$MOZ_NATIVE_JPEG" = 1; then