Test for compiler flags after checking for compiler. pinentry-0-6-5
authorWerner Koch <wk@gnupg.org>
Mon, 30 Sep 2002 09:50:44 +0000 (09:50 +0000)
committerWerner Koch <wk@gnupg.org>
Mon, 30 Sep 2002 09:50:44 +0000 (09:50 +0000)
configure.ac

index c8217fc..79ede7e 100644 (file)
@@ -35,18 +35,18 @@ AM_MAINTAINER_MODE
 
 AC_CANONICAL_HOST
 
-dnl Checks for compiler features.
-if test "$GCC" = yes; then
-    CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
-    CPPFLAGS="$CPPFLAGS -Wall"
-fi
-
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
 AC_PROG_RANLIB
 
+dnl Checks for compiler features.
+if test "$GCC" = yes; then
+    CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
+    CPPFLAGS="$CPPFLAGS -Wall"
+fi
+
 dnl Checks for library functions.
 AC_CHECK_FUNCS(seteuid stpcpy)
 GNUPG_CHECK_MLOCK