Enlightenment CVS committal

Author  : vapier
Project : e17
Module  : libs/imlib2

Dir     : e17/libs/imlib2


Modified Files:
        configure.in 


Log Message:
use -std=gnu99 in CPPFLAGS if compiler supports it

===================================================================
RCS file: /cvs/e/e17/libs/imlib2/configure.in,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -3 -r1.133 -r1.134
--- configure.in        25 Oct 2006 04:45:08 -0000      1.133
+++ configure.in        7 Nov 2006 04:37:34 -0000       1.134
@@ -39,6 +39,15 @@
 
 AM_PROG_LIBTOOL
 
+dnl See if the compiler supports -std=gnu99 since some math
+dnl functions need it (aka round())
+AC_MSG_CHECKING(whether $CC accepts -std=gnu99)
+cc_supports_gnu99="yes"
+save_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS -std=gnu99"
+AC_TRY_COMPILE(,,,[cc_supports_gnu99="no";CPPFLAGS="$save_CPPFLAGS"])
+AC_MSG_RESULT($cc_supports_gnu99)
+
 if test "x${bindir}" = 'x${exec_prefix}/bin'; then
   if test "x${exec_prefix}" = "xNONE"; then
     if test "x${prefix}" = "xNONE"; then



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to