Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje


Modified Files:
        INSTALL configure.in 


Log Message:
make edje binaries compile and allow the creation of the edje shared lib on 
windows. Remove some trailing spaces

===================================================================
RCS file: /cvs/e/e17/libs/edje/INSTALL,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- INSTALL     2 Jun 2003 23:49:54 -0000       1.1
+++ INSTALL     26 Aug 2007 12:54:51 -0000      1.2
@@ -12,3 +12,8 @@
     make install
 
 NOTE: You MUST make install Edje for it to run properly.
+
+NOTE: for compilation with MinGW, fnmatch.h is probably missing.
+      That file can be found here:
+http://www.koders.com/c/fid2B518462CB1EED3D4E31E271DB83CD1582F6EEBE.aspx
+      It should be installed in the mingw include directory.
===================================================================
RCS file: /cvs/e/e17/libs/edje/configure.in,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -3 -r1.83 -r1.84
--- configure.in        10 Jul 2007 00:13:23 -0000      1.83
+++ configure.in        26 Aug 2007 12:54:51 -0000      1.84
@@ -12,24 +12,38 @@
 
 AC_PROG_CC
 AM_PROG_CC_STDC
+AM_PROG_CC_C_O
 AC_HEADER_STDC
 AC_C_CONST
 AM_ENABLE_SHARED
 AM_PROG_LIBTOOL
 AC_FUNC_ALLOCA
 
+create_shared_lib=""
+case "$host_os" in
+       mingw|mingw32)
+               create_shared_lib="-no-undefined "
+               ;;
+esac
+
+AC_SUBST(create_shared_lib)
+
 AC_CHECK_FUNCS(realpath)
 
-AC_CHECK_HEADERS(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure 
your CFLAGS environment variable contains include lines for the location of 
this file]))
+AC_CHECK_HEADERS(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, res=no)
-  if test "x$res" = "xno"; then
-    AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch])
-  else
-    fnmatch_libs="-lfnmatch"
-  fi
+       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)



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to