Enlightenment CVS committal Author : doursse Project : e17 Module : libs/evas
Dir : e17/libs/evas Modified Files: configure.in Log Message: add the DirectDraw engine. Evas is now available on Windows (tm) =================================================================== RCS file: /cvs/e/e17/libs/evas/configure.in,v retrieving revision 1.217 retrieving revision 1.218 diff -u -3 -r1.217 -r1.218 --- configure.in 5 May 2007 15:14:17 -0000 1.217 +++ configure.in 27 May 2007 06:43:22 -0000 1.218 @@ -135,10 +135,66 @@ esac AC_SUBST(dlopen_libs) +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])) + +fnmatch_libs="" +AC_CHECK_FUNCS(fnmatch, res=yes, res=no) +if test "x$res" = "xno"; then + AC_CHECK_LIB(fnmatch, fnmatch, res=yes fnmatch_libs="-lfnmatch", res=no) +dnl Test for compilation with MinGW. +dnl fnmatch function is in the libiberty library + if test "x$res" = "xno"; then + AC_CHECK_LIB(iberty, fnmatch, res=yes fnmatch_libs="-liberty", res=no) + fi + if test "x$res" = "xno"; then + AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty]) + fi +fi + +AC_SUBST(fnmatch_libs) + ##################################################################### ## Engines ####################################### +## Check if we should build the software_ddraw engine +have_evas_software_ddraw="no"; +## Automatic check... +AC_CHECK_HEADER(ddraw.h, + [ have_evas_software_ddraw="yes" ], + [ have_evas_software_ddraw="no" ] +) +## Manual override +AC_MSG_CHECKING(whether software directdraw backend is to be built) +AC_ARG_ENABLE(software-ddraw, AC_HELP_STRING([--enable-software-ddraw],[enable the Software DirectDraw rendering backend]), [ + if test x"$enableval" = x"yes" ; then + AC_MSG_RESULT(yes) + have_evas_software_ddraw="yes" + else + AC_MSG_RESULT(no) + have_evas_software_ddraw="no" + fi + ], [ + AC_MSG_RESULT($have_evas_software_ddraw) + ] +) +if test "x$have_evas_software_ddraw" = "xyes"; then + AC_PATH_XTRA + AC_CHECK_HEADER(ddraw.h, + [ + AC_DEFINE(BUILD_ENGINE_SOFTWARE_DDRAW, 1, [Software DirectDraw Rendering Backend]) + ddraw_libs="-lddraw" + ], + [ + AC_MSG_RESULT(disabling software DirectDraw engine) + have_evas_software_ddraw="no" + ] + ) +fi +AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_DDRAW, test "x$have_evas_software_ddraw" = "xyes") + + +####################################### ## Check if we should build the software_x11 engine have_evas_software_x11="no"; ## Automatic check... @@ -1953,6 +2009,8 @@ AC_SUBST(VALGRIND_CFLAGS) +AC_SUBST(ddraw_libs) + AC_SUBST(x_cflags) AC_SUBST(x_libs) @@ -2018,6 +2076,7 @@ src/modules/Makefile src/modules/engines/Makefile src/modules/engines/software_generic/Makefile +src/modules/engines/software_ddraw/Makefile src/modules/engines/software_x11/Makefile src/modules/engines/software_xcb/Makefile src/modules/engines/fb/Makefile @@ -2071,6 +2130,7 @@ echo "Configuration Options Summary:" echo echo "Engines:" +echo " Software DirectDraw.....: $have_evas_software_ddraw" echo " Software X11............: $have_evas_software_x11" echo " Software XCB............: $have_evas_software_xcb" echo " Software Framebuffer....: $have_evas_fb" ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs