the effect of causing CFLAGS environment variable settings to be
ignored for certain parts of the build (genoffsets.c, for one).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14410
# warning flag is supported.
AC_DEFUN([AC_GCC_WARNING_COND],[
AC_MSG_CHECKING([if gcc accepts -W$1])
-safe_CFLAGS=$CLFLAGS
+safe_CFLAGS=$CFLAGS
CFLAGS="-W$1"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[;]])], [
has_warning_flag=yes
# substitution is then done to cancel the warning flag.
AC_DEFUN([AC_GCC_WARNING_SUBST_NO],[
AC_MSG_CHECKING([if gcc accepts -W$1])
-safe_CFLAGS=$CLFLAGS
+safe_CFLAGS=$CFLAGS
CFLAGS="-W$1"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[;]])], [
AC_SUBST([$2], [-Wno-$1])