summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 659096b..1c07c7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,11 +11,14 @@ AC_ARG_PROGRAM
AC_DEFINE(RELDATE, "1998-12-04")
+dnl Find a standard C compiler
+AC_PROG_CC
+AM_PROG_CC_STDC
+
dnl If we're using gcc, specify `-Wall'. I've also checked the code
dnl with `-pedantic -W -Wall -Wpointer-arith -Wstrict-prototypes
dnl -Wmissing-prototypes', and checked that all the warnings generated
dnl are harmless.
-AC_PROG_CC
case "$GCC" in
yes) CFLAGS="-Wall $CFLAGS" ;;
esac