aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog4
-rwxr-xr-xgprof/configure14
-rw-r--r--gprof/configure.in10
3 files changed, 14 insertions, 14 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 9a07866..b13c796 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,9 +1,9 @@
2005-03-16 Nick Clifton <nickc@redhat.com>
Ben Elliston <bje@au.ibm.com>
- * configure.in (error-on-warning): New switch: Add -Werror to the
+ * configure.in (werror): New switch: Add -Werror to the
compiler command line. Enabled by default. Disable via
- --disable-error-on-warning.
+ --disable-werror.
* configure: Regenerate.
2005-03-15 Nick Clifton <nickc@redhat.com>
diff --git a/gprof/configure b/gprof/configure
index d8df941..e637b93 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
diff --git a/gprof/configure.in b/gprof/configure.in
index de9d791..01dd81f 100644
--- a/gprof/configure.in
+++ b/gprof/configure.in
@@ -34,21 +34,21 @@ AC_CHECK_HEADERS(sys/gmon_out.h)
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
-AC_ARG_ENABLE(error-on-warning,
- [ --enable-error-on-warning treat compile warnings as errors],
+AC_ARG_ENABLE(werror,
+ [ --enable-werror treat compile warnings as errors],
[case "${enableval}" in
yes | y) ERROR_ON_WARNING="yes" ;;
no | n) ERROR_ON_WARNING="no" ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
esac])
-# 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
build_warnings="$build_warnings -Werror"
fi
-
+
AC_ARG_ENABLE(build-warnings,
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
[case "${enableval}" in