aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure.in
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-01-04 16:09:57 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-01-04 16:09:57 +0000
commit1eaf7d9c9bb05bda80afe13ad649681abe74f622 (patch)
tree78647095cb02b3c2357d89ef789e8166846eb99a /libiberty/configure.in
parent3f552d62f43183546eaeb9132d2de1066f8ceef1 (diff)
downloadgcc-1eaf7d9c9bb05bda80afe13ad649681abe74f622.zip
gcc-1eaf7d9c9bb05bda80afe13ad649681abe74f622.tar.gz
gcc-1eaf7d9c9bb05bda80afe13ad649681abe74f622.tar.bz2
configure.in (ac_libiberty_warn_cflags): Turn on warnings if we're using gcc.
* configure.in (ac_libiberty_warn_cflags): Turn on warnings if we're using gcc. * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@ From-SVN: r31205
Diffstat (limited to 'libiberty/configure.in')
-rw-r--r--libiberty/configure.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/libiberty/configure.in b/libiberty/configure.in
index 10b8294..cc1b2c2 100644
--- a/libiberty/configure.in
+++ b/libiberty/configure.in
@@ -55,6 +55,7 @@ AC_PROG_CC_GNU
if test $ac_cv_prog_gcc = yes; then
GCC=yes
+ ac_libiberty_warn_cflags='-W -Wall -Wtraditional'
dnl Check whether -g works, even if CFLAGS is set, in case the package
dnl plays around with CFLAGS (such as to build both debugging and
dnl normal versions of a library), tasteless as that idea is.
@@ -71,9 +72,11 @@ dnl normal versions of a library), tasteless as that idea is.
fi
else
GCC=
+ ac_libiberty_warn_cflags=
test "${CFLAGS+set}" = set || CFLAGS="-g"
fi
])
+AC_SUBST(ac_libiberty_warn_cflags)
LIB_AC_PROG_CC