From 1212a635bb9d617224614534de6ab9ee398a469b Mon Sep 17 00:00:00 2001 From: szaka Date: Mon, 11 Aug 2008 13:02:09 +0000 Subject: [PATCH] portability fix: use -Wall only with gcc (e.g. Sun Studio fails) --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6dd36acb..fad167cc 100644 --- a/configure.ac +++ b/configure.ac @@ -271,8 +271,10 @@ AC_CHECK_FUNCS([ \ ]) AC_SYS_LARGEFILE -# We add -Wall to enable some compiler warnings. -CFLAGS="${CFLAGS} -Wall" +if test "$GCC" = "yes" ; then + # We add -Wall to enable some compiler warnings. + CFLAGS="${CFLAGS} -Wall" +fi if test "${enable_pedantic}" = "yes"; then enable_warnings="yes"