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

Wed, 21 Mar 2018 09:19:00 -0700

author
kevinw
date
Wed, 21 Mar 2018 09:19:00 -0700
changeset 2205
54eb4c29ece4
parent 2204
0e87966d7ff1
child 2206
7ba4e17574e0

8033292: only warn, not fail, on unknown variables in configure
Reviewed-by: ihse, erikj

common/autoconf/basics.m4 file | annotate | diff | comparison | revisions
common/autoconf/generated-configure.sh file | annotate | diff | comparison | revisions
     1.1 --- a/common/autoconf/basics.m4	Tue Mar 20 09:19:10 2018 -0700
     1.2 +++ b/common/autoconf/basics.m4	Wed Mar 21 09:19:00 2018 -0700
     1.3 @@ -250,7 +250,7 @@
     1.4    if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then
     1.5      # Replace the separating ! with spaces before presenting for end user.
     1.6      unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ }
     1.7 -    AC_MSG_ERROR([The following variables are unknown to configure: $unknown_variables])
     1.8 +    AC_MSG_WARN([The following variables might be unknown to configure: $unknown_variables])
     1.9    fi
    1.10  ])
    1.11  
     2.1 --- a/common/autoconf/generated-configure.sh	Tue Mar 20 09:19:10 2018 -0700
     2.2 +++ b/common/autoconf/generated-configure.sh	Wed Mar 21 09:19:00 2018 -0700
     2.3 @@ -4076,7 +4076,7 @@
     2.4  #CUSTOM_AUTOCONF_INCLUDE
     2.5  
     2.6  # Do not change or remove the following line, it is needed for consistency checks:
     2.7 -DATE_WHEN_GENERATED=1521554908
     2.8 +DATE_WHEN_GENERATED=1521626909
     2.9  
    2.10  ###############################################################################
    2.11  #
    2.12 @@ -47013,7 +47013,8 @@
    2.13    if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then
    2.14      # Replace the separating ! with spaces before presenting for end user.
    2.15      unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ }
    2.16 -    as_fn_error $? "The following variables are unknown to configure: $unknown_variables" "$LINENO" 5
    2.17 +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5
    2.18 +$as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;}
    2.19    fi
    2.20  
    2.21  

mercurial