bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Use -Wall if compiler is gcc


From: Hideki IWAMOTO
Subject: [PATCH] Use -Wall if compiler is gcc
Date: Thu, 05 Jun 2003 22:22:15 +0900

Copied from configure.in which Glade generated.


Index: configure.ac
===================================================================
RCS file: /cvsroot/global/global/configure.ac,v
retrieving revision 1.9
diff -u -r1.9 configure.ac
--- configure.ac        5 Jun 2003 01:45:42 -0000       1.9
+++ configure.ac        5 Jun 2003 13:16:33 -0000
@@ -123,6 +123,16 @@
         AC_MSG_RESULT(no)
 ])
 
+dnl Use -Wall if we have gcc.
+changequote(,)dnl
+if test "x$GCC" = "xyes"; then
+  case " $CFLAGS " in
+  *[\ \        ]-Wall[\ \      ]*) ;;
+  *) CFLAGS="$CFLAGS -Wall" ;;
+  esac
+fi
+changequote([,])dnl
+
 AC_SUBST(INCLUDES)
 AC_SUBST(LDADD)
 

----
Hideki IWAMOTO  address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]