Use autoconf's test to set HAVE_ANSI_COMPILER and check that instead.
+2004-03-06 Paul D. Smith <psmith@gnu.org>
+
+ * configure.in (HAVE_ANSI_COMPILER): Define if we have an ANSI/ISO
+ compiler.
+ * make.h: Convert uses of __STDC__ to HAVE_ANSI_COMPILER.
+ * misc.c (message,error,fatal): Ditto.
+ * configh.dos.template: Define HAVE_ANSI_COMPILER.
+ * config.h.W32.template: Ditto.
+ * config.h-vms.template: Ditto.
+ * config.ami.template: Ditto.
+
2004-03-04 Paul D. Smith <psmith@gnu.org>
* README.template: Add a note about broken /bin/sh on SunOS
GNU make NEWS -*-indented-text-*-
History of user-visible changes.
- 04 March 2004
+ 06 March 2004
Copyright (C) 2002,2003,2004 Free Software Foundation, Inc.
See the end for copying conditions.
/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
/* #undef STAT_MACROS_BROKEN */
+/* Define if your compiler conforms to the ANSI C standard. */
+#define HAVE_ANSI_COMPILER 1
+
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS
/* Define if you have the <ndir.h> header file. */
/* #undef HAVE_NDIR_H */
+/* Define if your compiler conforms to the ANSI C standard. */
+#define HAVE_ANSI_COMPILER 1
+
/* Define to 1 if you have the <stdarg.h> header file. */
#define HAVE_STDARG_H 1
/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
/* #undef STAT_MACROS_BROKEN */
+/* Define if your compiler conforms to the ANSI C standard. */
+#define HAVE_ANSI_COMPILER 1
+
/* Define to 1 if you have the <stdarg.h> header file. */
#define HAVE_STDARG_H 1
/* Define if you have the select function. */
#define HAVE_SELECT 1
+/* Define if your compiler conforms to the ANSI C standard. */
+#define HAVE_ANSI_COMPILER 1
+
+/* Define to 1 if you have the <stdarg.h> header file. */
+#define HAVE_STDARG_H 1
+
/* Define if you have the vprintf library function. */
#undef HAVE_VPRINTF
#define HAVE_VPRINTF 1
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
# endif
#endif
-#if __STDC__ && USE_VARIADIC && HAVE_STDARG_H
+#if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H
extern void message (int prefix, const char *fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern void error (const struct floc *flocp, const char *fmt, ...)
/* Print a message on stdout. */
void
-#if __STDC__ && USE_VARIADIC && HAVE_STDARG_H
+#if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H
message (int prefix, const char *fmt, ...)
#else
message (prefix, fmt, va_alist)
/* Print an error message. */
void
-#if __STDC__ && USE_VARIADIC && HAVE_STDARG_H
+#if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H
error (const struct floc *flocp, const char *fmt, ...)
#else
error (flocp, fmt, va_alist)
/* Print an error message and exit. */
void
-#if __STDC__ && USE_VARIADIC && HAVE_STDARG_H
+#if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H
fatal (const struct floc *flocp, const char *fmt, ...)
#else
fatal (flocp, fmt, va_alist)