initial import
[patches.git] / imlib2-gnu99.patch
1 Index: configure.in
2 ===================================================================
3 RCS file: /cvs/e/e17/libs/imlib2/configure.in,v
4 retrieving revision 1.133
5 diff -u -p -r1.133 configure.in
6 --- configure.in 25 Oct 2006 04:45:08 -0000 1.133
7 +++ configure.in 6 Nov 2006 15:35:41 -0000
8 @@ -39,6 +39,15 @@ m4_defun([AC_PROG_F77],[])
9
10 AM_PROG_LIBTOOL
11
12 +dnl See if the compiler supports -std=gnu99 since some math
13 +dnl functions need it (aka round())
14 +AC_MSG_CHECKING(whether $CC accepts -std=gnu99)
15 +cc_supports_gnu99="yes"
16 +save_CPPFLAGS="$CPPFLAGS"
17 +CPPFLAGS="$CPPFLAGS -std=gnu99"
18 +AC_TRY_COMPILE(,,,[cc_supports_gnu99="no";CPPFLAGS="$save_CPPFLAGS"])
19 +AC_MSG_RESULT($cc_supports_gnu99)
20 +
21 if test "x${bindir}" = 'x${exec_prefix}/bin'; then
22 if test "x${exec_prefix}" = "xNONE"; then
23 if test "x${prefix}" = "xNONE"; then