From 976a155c800bdc3a30ae5041d094c23582012306 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 20 Dec 2011 17:01:29 +0000 Subject: config/: * warnings.m4 (ACX_PROG_CC_WARNING_OPTS): Avoid leading dash in expr call. libdecnumber/: * configure: Regenerate. libiberty/: * configure: Regenerate. --- config/ChangeLog | 5 +++++ config/warnings.m4 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/ChangeLog b/config/ChangeLog index 2d06a8d6be..1087ad8ca9 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2011-12-20 Andreas Schwab + + * warnings.m4 (ACX_PROG_CC_WARNING_OPTS): Avoid leading dash in + expr call. + 2011-12-19 Andreas Schwab * warnings.m4 (ACX_PROG_CC_WARNING_OPTS) diff --git a/config/warnings.m4 b/config/warnings.m4 index 292e5a471a..b64b594e62 100644 --- a/config/warnings.m4 +++ b/config/warnings.m4 @@ -32,7 +32,7 @@ for real_option in $1; do # Do the check with the no- prefix removed since gcc silently # accepts any -Wno-* option on purpose case $real_option in - -Wno-*) option=-W`expr $real_option : '-Wno-\(.*\)'` ;; + -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; *) option=$real_option ;; esac AS_VAR_PUSHDEF([acx_Woption], [acx_cv_prog_cc_warning_$option]) -- cgit v1.2.1