diff options
author | Paul Smith <psmith@gnu.org> | 2004-03-06 08:05:17 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2004-03-06 08:05:17 +0000 |
commit | f305a52c02cd17188bb6cc429d56c5912c976229 (patch) | |
tree | a90c162509322242fb0e7f0caf747cecb09c659c /configure.in | |
parent | 213ccc2234fe09b99a39f3d3884626898596c815 (diff) | |
download | gunmake-f305a52c02cd17188bb6cc429d56c5912c976229.tar.gz |
Don't use __STDC__; some compilers don't set it properly.
Use autoconf's test to set HAVE_ANSI_COMPILER and check that instead.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 3828be7..967a8ed 100644 --- a/configure.in +++ b/configure.in @@ -52,11 +52,17 @@ AC_HEADER_TIME AC_CHECK_HEADERS(stdlib.h locale.h unistd.h limits.h fcntl.h string.h \ memory.h sys/param.h sys/time.h sys/timeb.h) +# Set a flag if we have an ANSI C compiler +if test "$ac_cv_prog_cc_stdc" != no; then + AC_DEFINE(HAVE_ANSI_COMPILER, 1, + [Define if your compiler conforms to the ANSI C standard.]) +fi + + # Determine what kind of variadic function calls we support AC_CHECK_HEADERS(stdarg.h varargs.h, break) AM_PROG_CC_C_O -AM_PROG_CC_STDC AC_C_CONST AC_TYPE_SIGNAL AC_TYPE_UID_T |