Index: libiberty/configure |
diff --git a/libiberty/configure b/libiberty/configure |
index c798937deecfd8c6da2c634a9b5652fdb9b0004f..6e98352f356ffdc22ecdba010b6378a1d307b659 100755 |
--- a/libiberty/configure |
+++ b/libiberty/configure |
@@ -3920,8 +3920,14 @@ ac_c_preproc_warn_flag=yes |
ac_libiberty_warn_cflags= |
save_CFLAGS="$CFLAGS" |
-for option in -W -Wall -Wwrite-strings -Wc++-compat \ |
+for real_option in -W -Wall -Wwrite-strings -Wc++-compat \ |
-Wstrict-prototypes; 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 x$real_option : 'x-Wno-\(.*\)'` ;; |
+ *) option=$real_option ;; |
+ esac |
as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 |
@@ -3953,11 +3959,13 @@ eval ac_res=\$$as_acx_Woption |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
$as_echo "$ac_res" >&6; } |
if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : |
- ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$option" |
+ ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$real_option" |
fi |
done |
CFLAGS="$save_CFLAGS" |
+# Do the check with the no- prefix removed from the warning options |
+# since gcc silently accepts any -Wno-* option on purpose |
if test "$GCC" = yes; then : |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5 |
$as_echo_n "checking whether $CC supports -pedantic ... " >&6; } |
@@ -4859,7 +4867,7 @@ case "${host}" in |
;; |
i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*) |
;; |
- i[34567]86-*-interix3*) |
+ i[34567]86-*-interix[3-9]*) |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
# Instead, we relocate shared libraries at runtime. |
;; |
@@ -4891,9 +4899,6 @@ case "${host}" in |
m68k-*-*) |
PICFLAG=-fpic |
;; |
- s390*-*-*) |
- PICFLAG=-fpic |
- ;; |
# FIXME: Override -fPIC default in libgcc only? |
sh-*-linux* | sh[2346lbe]*-*-linux*) |
PICFLAG=-fpic |
@@ -6816,7 +6821,7 @@ if test "${ac_cv_func_strncmp_works+set}" = set; then : |
$as_echo_n "(cached) " >&6 |
else |
if test "$cross_compiling" = yes; then : |
- ac_cv_func_strncmp_works=no |
+ ac_cv_func_strncmp_works=yes |
else |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
/* end confdefs.h. */ |