diff options
author | 2005-03-16 17:18:17 +0000 | |
---|---|---|
committer | 2005-03-16 17:18:17 +0000 | |
commit | 569acd2ce265a3bfeef4f025bb1b4da52bcce5d2 (patch) | |
tree | 83813fa28b4519bb4871f5668b7f5e4ad2d90973 /gprof/configure | |
parent | * event-top.c (handle_sigquit): Do not define for systems without (diff) | |
download | binutils-gdb-569acd2ce265a3bfeef4f025bb1b4da52bcce5d2.tar.gz binutils-gdb-569acd2ce265a3bfeef4f025bb1b4da52bcce5d2.tar.bz2 binutils-gdb-569acd2ce265a3bfeef4f025bb1b4da52bcce5d2.zip |
Rename switch to enable/disable -Werror to --enable-werror/--disable-werror
for compatibility with gcc.
Diffstat (limited to 'gprof/configure')
-rwxr-xr-x | gprof/configure | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gprof/configure b/gprof/configure index d8df9412e36..e637b930fa9 100755 --- a/gprof/configure +++ b/gprof/configure @@ -859,7 +859,7 @@ Optional Features: --disable-nls do not use Native Language Support --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer - --enable-error-on-warning treat compile warnings as errors + --enable-werror treat compile warnings as errors --enable-build-warnings Enable build-time compiler warnings if gcc is used Optional Packages: @@ -8289,19 +8289,19 @@ done build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" -# Check whether --enable-error-on-warning or --disable-error-on-warning was given. -if test "${enable_error_on_warning+set}" = set; then - enableval="$enable_error_on_warning" +# Check whether --enable-werror or --disable-werror was given. +if test "${enable_werror+set}" = set; then + enableval="$enable_werror" case "${enableval}" in yes | y) ERROR_ON_WARNING="yes" ;; no | n) ERROR_ON_WARNING="no" ;; - *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-error-on-warning" >&5 -echo "$as_me: error: bad value ${enableval} for --enable-error-on-warning" >&2;} + *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 +echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} { (exit 1); exit 1; }; } ;; esac fi; -# Enable -Werror by default, suppressing it only for --disable-error-on-warning +# Enable -Werror by default, suppressing it only for --disable-werror # or --disable-build-warnings. if test "${ERROR_ON_WARNING}" != no then |