diff options
author | Tom Tromey <tromey@redhat.com> | 2006-07-28 21:41:38 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2006-07-28 21:41:38 +0000 |
commit | 09d07e91e921fb9ef7d924a14a1a21e7bf8d38be (patch) | |
tree | a3a36eb1e024c042420f39c721247cdc21819a3e | |
parent | 7dc75abe247caed1c0de52de1a42a0fa9a007741 (diff) | |
download | classpath-09d07e91e921fb9ef7d924a14a1a21e7bf8d38be.tar.gz |
* configure.ac: Enable -Werror by default on Linux-with-gcc.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.ac | 15 |
2 files changed, 17 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2006-07-28 Tom Tromey <tromey@redhat.com> + + * configure.ac: Enable -Werror by default on Linux-with-gcc. + 2006-07-28 Lillian Angel <langel@redhat.com> * native/jni/gtk-peer/GtkDragSourceContextPeer.c: diff --git a/configure.ac b/configure.ac index 3d200d167..22ea81127 100644 --- a/configure.ac +++ b/configure.ac @@ -120,9 +120,9 @@ AC_ARG_ENABLE([Werror], [case "${enableval}" in yes) ENABLE_WERROR=yes ;; no) ENABLE_WERROR=no ;; - *) ENABLE_WERROR=no ;; + *) ENABLE_WERROR=default ;; esac], - [ENABLE_WERROR=no]) + [ENABLE_WERROR=default]) dnl ----------------------------------------------------------- dnl Default AWT toolkit @@ -305,6 +305,17 @@ dnl AC_PROG_AWK AC_PROG_CC AC_PROG_CPP +# Handle -Werror default case. +if test "$ENABLE_WERROR" = default; then + case "$host_os" in + *linux*) + if test "$GCC" = yes; then + ENABLE_WERROR=yes + fi + ;; + esac +fi + if test "x${COMPILE_COLLECTIONS}" = xyes; then AC_PATH_PROG(PERL, [perl]) AC_SUBST(PERL) |