PATCH: configure warnings for libjpeg and giflib

Marcus Meissner marcus at jet.franken.de
Fri Jul 15 14:49:04 CDT 2005


Hi,

Another testballoon.

Will print this:

*** No JPEG support: jpeglib.h not found, OLE automation cannot use JPEGs.
*** To add support, install the necessary jpeglib development package,
*** usually called libjpeg-devel or jpeg-devel.

*** No GIF support: gif_lib.h not found, OLE automation cannot use GIFs.
*** To add support, install the necessary giflib development package,
*** usually called gif_lib-devel or libgif-devel or libungif-devel.

Ciao, Marcus

Changelog:
	Add warnings for missing GIF and JPEG support.

Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.376
diff -u -r1.376 configure.ac
--- configure.ac	15 Jul 2005 16:39:42 -0000	1.376
+++ configure.ac	15 Jul 2005 19:48:22 -0000
@@ -181,11 +181,9 @@
 	float.h \
 	fontconfig/fontconfig.h \
 	getopt.h \
-	gif_lib.h \
 	ieeefp.h \
 	io.h \
 	jack/jack.h \
-	jpeglib.h \
 	lber.h \
 	lcms/lcms.h \
 	lcms.h \
@@ -264,6 +262,21 @@
 )
 AC_HEADER_STAT()
 
+AC_CHECK_HEADER(jpeglib.h,
+[
+    AC_DEFINE(HAVE_JPEGLIB_H)
+    wine_cv_msg_jpeglib=no
+],[
+    wine_cv_msg_jpeglib=yes
+])
+
+AC_CHECK_HEADER(gif_lib.h,[
+    AC_DEFINE(HAVE_GIF_LIB_H)
+    wine_cv_msg_giflib=no
+],[
+    wine_cv_msg_giflib=yes
+])
+
 dnl **** Check for X11 ****
 
 if test "$have_x" = "yes"
@@ -1820,6 +1833,22 @@
   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
   echo "*** freetype-devel package (or its equivalent on your distribution) to"
   echo "*** enable Wine to use TrueType fonts."
+fi
+
+if test "$wine_cv_msg_jpeglib" = "yes"
+then
+  echo
+  echo "*** No JPEG support: jpeglib.h not found, OLE automation cannot use JPEGs."
+  echo "*** To add support, install the necessary jpeglib development package,"
+  echo "*** usually called libjpeg-devel or jpeg-devel."
+fi
+
+if test "$wine_cv_msg_giflib" = "yes"
+then
+  echo
+  echo "*** No GIF support: gif_lib.h not found, OLE automation cannot use GIFs."
+  echo "*** To add support, install the necessary giflib development package,"
+  echo "*** usually called gif_lib-devel or libgif-devel or libungif-devel."
 fi
 
 if test -z "$ALSALIBS" -a -z "$ARTSC_LIBS" -a -z "$AUDIOIOLIBS" -a \



More information about the wine-patches mailing list