Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/eet

Dir     : e17/libs/eet


Modified Files:
        configure.in 


Log Message:

use evil on win32:

 * remove all the specific win32 code
 * replace EAPI by EAPI_DEF in front of definitions of funtions
 * no need to check windows.h, winsock2.h
 * sys/mmap.h will be detected automatically (thanks to evil on win32)
 * use AC_CHECK_HEADERS instead of AC_CHECK_HEADERS_ONCE as this macro is too 
recent (from autoconf 2.59c)


===================================================================
RCS file: /cvs/e/e17/libs/eet/configure.in,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -3 -r1.84 -r1.85
--- configure.in        26 Jan 2008 05:52:47 -0000      1.84
+++ configure.in        2 Mar 2008 06:49:48 -0000       1.85
@@ -30,22 +30,23 @@
 
 AC_FUNC_ALLOCA
 
-AC_CHECK_HEADER(zlib.h,, AC_MSG_ERROR("Cannot find zlib.h. Make sure your 
CFLAGS environment variable contains include lines for the location of this 
file"))
-AC_CHECK_HEADER(jpeglib.h,, AC_MSG_ERROR("Cannot find jpeglib.h. Make sure 
your CFLAGS environment variable contains include lines for the location of 
this file"))
-
-AC_CHECK_HEADERS_ONCE(netinet/in.h sys/mman.h windows.h winsock2.h)
-
-winsock_libs=""
+win32_libs=""
 create_shared_lib=""
 case "$host_os" in
        mingw|mingw32)
-               winsock_libs="-lwsock32"
+               PKG_CHECK_MODULES([EVIL], [evil])
+               AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
+               win32_libs="-lws2_32"
                create_shared_lib="-no-undefined "
                ;;
 esac
-
-AC_SUBST(winsock_libs)
+AC_SUBST(win32_libs)
 AC_SUBST(create_shared_lib)
+
+AC_CHECK_HEADER(zlib.h,, AC_MSG_ERROR("Cannot find zlib.h. Make sure your 
CFLAGS environment variable contains include lines for the location of this 
file"))
+AC_CHECK_HEADER(jpeglib.h,, AC_MSG_ERROR("Cannot find jpeglib.h. Make sure 
your CFLAGS environment variable contains include lines for the location of 
this file"))
+
+AC_CHECK_HEADERS(netinet/in.h)
 
 AC_CHECK_HEADER(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure 
your CFLAGS environment variable contains include lines for the location of 
this file. MinGW users: see the INSTALL file]))
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to