fi
CFLAGS_NOERROR=
+CFLAGS_NOSTRICT=
+CFLAGS_NOUNUSED=
+CFLAGS_NOOLDSTYLE=
if test "x$GCC" = "xyes"; then
if test "x$enable_warnings" = "xyes"; then
XCFLAGS="${XCFLAGS} -Wall -Wstrict-prototypes -Wold-style-definition -Werror -fdiagnostics-show-option -Wpointer-arith"
if test "x$enable_checking" != "xall"; then
CFLAGS_NOERROR="-Wno-error"
+ CFLAGS_NOSTRICT="-fno-strict-aliasing"
+ CFLAGS_NOUNUSED="-Wno-unused"
+ CFLAGS_NOOLDSTYLE="-Wno-old-style-definition"
AC_DEFINE(IGNORE_SOME_GCC_WARNINGS, 1, [define to disable some gcc warnings in warnings-as-errors mode])
fi
fi
fi
-CFLAGS_NOSTRICT=
-
-if test "x$GCC" = "xyes"; then
- CFLAGS_NOSTRICT="-fno-strict-aliasing"
-fi
-
-if test "x$GCC" = "xyes"; then
- CFLAGS_NOUNUSED="-Wno-unused"
-else
- CFLAGS_NOUNUSED=
-fi
-
-if test "x$GCC" = "xyes"; then
- CFLAGS_NOOLDSTYLE="-Wno-old-style-definition"
-else
- CFLAGS_NOOLDSTYLE=
-fi
-
dnl horribly cheating, assuming double / is ok.
case $INSTALL in
./* )