OSDN Git Service

config/:
[pf3gnuchains/pf3gnuchains4x.git] / libiberty / configure
index d26c8b5..9bccb8e 100755 (executable)
@@ -3925,7 +3925,7 @@ for real_option in -W -Wall -Wwrite-strings -Wc++-compat \
   # 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_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`