|
Lines 107-114
Link Here
|
| 107 |
AC_MSG_CHECKING(for C flags to get more warnings) |
107 |
AC_MSG_CHECKING(for C flags to get more warnings) |
| 108 |
ac_save_CFLAGS="$CFLAGS" |
108 |
ac_save_CFLAGS="$CFLAGS" |
| 109 |
if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then |
109 |
if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then |
| 110 |
dnl gcc is the easiest C compiler |
110 |
warning_CFLAGS="-Wall" |
| 111 |
warning_CFLAGS="-Wall -Wno-pointer-sign" |
111 |
# Check if compiler supports -Wno-pointer-sign and add it if supports |
|
|
112 |
CFLAGS_saved="$CFLAGS" |
| 113 |
CFLAGS="$CFLAGS -Wno-pointer-sign" |
| 114 |
AC_COMPILE_IFELSE([ AC_LANG_SOURCE([[ int foo; ]])], |
| 115 |
[ warning_CFLAGS="${warning_CFLAGS} -Wno-pointer-sign" ],) |
| 116 |
CFLAGS="$CFLAGS_saved" |
| 112 |
else |
117 |
else |
| 113 |
dnl Vendor supplied C compilers are a bit tricky |
118 |
dnl Vendor supplied C compilers are a bit tricky |
| 114 |
case "$host_os" in |
119 |
case "$host_os" in |