aboutsummaryrefslogtreecommitdiff
path: root/gprof/configure
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-04-07 07:20:51 +0000
committerAlan Modra <amodra@gmail.com>2010-04-07 07:20:51 +0000
commit397841b5aed514e848c022e64ef1cfc5fa68afcc (patch)
tree2abe708916d3ad24b19b578008e327711d8efb09 /gprof/configure
parentd1a98e0c8c56d6f2adfc6ae1a8699752e1c75774 (diff)
downloadgdb-397841b5aed514e848c022e64ef1cfc5fa68afcc.zip
gdb-397841b5aed514e848c022e64ef1cfc5fa68afcc.tar.gz
gdb-397841b5aed514e848c022e64ef1cfc5fa68afcc.tar.bz2
* configure: Regenerate.
Diffstat (limited to 'gprof/configure')
-rwxr-xr-xgprof/configure16
1 files changed, 14 insertions, 2 deletions
diff --git a/gprof/configure b/gprof/configure
index b1e1cb9..57e91da 100755
--- a/gprof/configure
+++ b/gprof/configure
@@ -11998,7 +11998,19 @@ fi
-GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
+GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+__GNUC__
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "^[0-3]$" >/dev/null 2>&1; then :
+
+else
+ GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
+fi
+rm -f conftest*
+
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
@@ -12010,7 +12022,7 @@ if test "${enable_werror+set}" = set; then :
fi
-# Enable -Wno-format by default when using gcc on mingw
+# Disable -Wformat by default when using gcc on mingw
case "${host}" in
*-*-mingw32*)
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then