CVS: winex configure.ac,1.99,1.100

[email protected]
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex configure.ac,1.99,1.100Update of /var/lib/cvsd/cvsroot/winex
In directory agravaine:/tmp/cvs-serv16842

Modified Files:
	configure.ac 
Log Message:

- require libjpeg & libpng on MacOS X
- fixes to build with the above on MacOS X


Index: configure.ac
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/configure.ac,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- configure.ac	30 Mar 2007 20:17:32 -0000	1.99
+++ configure.ac	30 Mar 2007 20:23:33 -0000	1.100
@@ -339,6 +339,16 @@
     )
 )
 
+case $host in
+    *darwin*)
+        AC_CHECK_HEADERS(libjpeg/jpeglib.h,,
+                        [AC_MSG_ERROR([**** You must have libjpeg framework version 6b or greater installed ****])])
+        AC_DEFINE(HAVE_LIBJPEG,1,[Define if you have libjpeg including devel headers])
+        CFLAGS="$CFLAGS -I /Library/Frameworks/libjpeg.framework/Headers";
+        JPEGLIB="-framework libjpeg"
+       ;;
+esac
+
 LIBPNG=""
 AC_CHECK_HEADERS(png.h,
     AC_HAVE_LIBRARY(z,
@@ -351,6 +361,16 @@
 )
 AC_SUBST(LIBPNG)
 
+case $host in
+    *darwin*)
+        AC_CHECK_HEADERS(libpng/png.h,,
+                        [AC_MSG_ERROR([**** You must have libpng framework version 1.2.13 or greater installed ****])])
+        AC_DEFINE(HAVE_LIBPNG,1,[Define if you have libpng including devel headers])
+        CFLAGS="$CFLAGS -I /Library/Frameworks/libpng.framework/Headers";
+        LIBPNG="-framework libpng -lz"
+        ;;
+esac
+
 LIBRESOLV=""
 AC_CHECK_LIB(resolv,res_9_init,
    AC_DEFINE(HAVE_LIBRESOLV,1,[Define if you have libresolv including devel headers])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.