diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-14 18:49:11 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-12-14 18:49:11 +0000 |
commit | 7cf203895b4196e2a4f82aa08b623442671567d0 (patch) | |
tree | 34c0fd03ee7b67136773a88793f4c48f6a1ca4b3 /fastjar/configure.in | |
parent | 5ffd458b1af533f15abc805786882eb0df388dd1 (diff) | |
download | gcc-7cf203895b4196e2a4f82aa08b623442671567d0.tar.gz |
* configure.in (fastjar_warn_cflags): Set when using gcc.
* Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38255 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fastjar/configure.in')
-rw-r--r-- | fastjar/configure.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fastjar/configure.in b/fastjar/configure.in index 000b991a46f..ca0e6703697 100644 --- a/fastjar/configure.in +++ b/fastjar/configure.in @@ -11,6 +11,12 @@ AC_PATH_PROG(CP, cp, /bin/cp, $PATH:/bin:/usr/bin:/usr/local/bin) AC_PATH_PROG(STRIP, strip, /usr/bin/strip, $PATH:/bin:/usr/bin:/usr/local/bin) AC_PATH_PROG(CHMOD, chmod, /bin/chmod, $PATH:/bin:/usr/bin:/usr/local/bin) +dnl Add warning flags if we are using gcc. +if test "$GCC" = yes; then + fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings' +fi +AC_SUBST(fastjar_warn_cflags) + dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC |