diff --git a/configure b/configure index de3153f2eb..481bd3b66d 100755 --- a/configure +++ b/configure @@ -5306,7 +5306,7 @@ fi # -Wdeclaration-after-statement isn't applicable for C++. Specific C files # disable it, so AC_SUBST the negative form. PERMIT_DECLARATION_AFTER_STATEMENT= - if test x"save_$CFLAGS" != x"$CFLAGS"; then + if test x"$save_CFLAGS" != x"$CFLAGS"; then PERMIT_DECLARATION_AFTER_STATEMENT=-Wno-declaration-after-statement fi diff --git a/configure.in b/configure.in index 0373c155f0..9c7a9738bc 100644 --- a/configure.in +++ b/configure.in @@ -481,7 +481,7 @@ if test "$GCC" = yes -a "$ICC" = no; then # -Wdeclaration-after-statement isn't applicable for C++. Specific C files # disable it, so AC_SUBST the negative form. PERMIT_DECLARATION_AFTER_STATEMENT= - if test x"save_$CFLAGS" != x"$CFLAGS"; then + if test x"$save_CFLAGS" != x"$CFLAGS"; then PERMIT_DECLARATION_AFTER_STATEMENT=-Wno-declaration-after-statement fi AC_SUBST(PERMIT_DECLARATION_AFTER_STATEMENT)