19972
|
1 |
--- gtkhtml-3.31.5/configure.ac.orig 2010-08-05 16:48:02.854984542 +0800
|
|
2 |
+++ gtkhtml-3.31.5/configure.ac 2010-08-05 16:51:57.450526780 +0800
|
|
3 |
@@ -102,7 +102,6 @@
|
|
4 |
dnl on GCC's previous "undefined" behavior, so disable strict-aliasing
|
|
5 |
dnl optimization until we can find and fix all the abuses.
|
|
6 |
dnl XXX This really belongs in AM_CFLAGS.
|
|
7 |
-CFLAGS="$CFLAGS $WARNING_FLAGS -fno-strict-aliasing"
|
|
8 |
|
|
9 |
dnl *********************
|
|
10 |
dnl Necessary programs
|
|
11 |
@@ -114,6 +113,12 @@
|
|
12 |
AC_FUNC_MALLOC
|
|
13 |
AC_TYPE_SIZE_T
|
|
14 |
|
|
15 |
+if test "x${GCC}" = "xyes"; then
|
|
16 |
+ CFLAGS="$CFLAGS $WARNING_FLAGS -fno-strict-aliasing"
|
|
17 |
+else
|
|
18 |
+ CFLAGS="$CFLAGS $WARNING_FLAGS"
|
|
19 |
+fi
|
|
20 |
+
|
|
21 |
AC_CHECK_FUNCS([memchr memmove memset regcomp setlocale strchr strcspn strrchr strstr strtol strtoull])
|
|
22 |
AC_CHECK_HEADERS([fcntl.h libintl.h])
|
|
23 |
|