8033292: only warn, not fail, on unknown variables in configure

Reviewed-by: erikj
This commit is contained in:
Magnus Ihse Bursie 2014-01-31 10:24:58 +01:00
parent b9f32d4842
commit a9618434af
2 changed files with 4 additions and 3 deletions

@ -250,7 +250,7 @@ AC_DEFUN([BASIC_CHECK_LEFTOVER_OVERRIDDEN],
if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then
# Replace the separating ! with spaces before presenting for end user.
unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ }
AC_MSG_ERROR([The following variables are unknown to configure: $unknown_variables])
AC_MSG_WARN([The following variables might be unknown to configure: $unknown_variables])
fi
])

@ -4087,7 +4087,7 @@ fi
#CUSTOM_AUTOCONF_INCLUDE
# Do not change or remove the following line, it is needed for consistency checks:
DATE_WHEN_GENERATED=1391032272
DATE_WHEN_GENERATED=1391160222
###############################################################################
#
@ -48539,7 +48539,8 @@ $as_echo "no, disabling ccaching of precompiled headers" >&6; }
if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then
# Replace the separating ! with spaces before presenting for end user.
unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ }
as_fn_error $? "The following variables are unknown to configure: $unknown_variables" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5
$as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;}
fi