exists, include it.
* configure.in: Check for stdlib.h
This cleans up many warnings on the Alpha as malloc is not previously
declared. In Beta-6, gssapiP_generic.h always included k5-int.h (which
included stdlib.h). Now, only the DOS and Mac platforms include k5-int.h
so we need to include stdlib.h if present.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8895
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Aug 2 13:37:10 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * gssapiP_generic.h: If not on a Mac or under Dos, and stdlib.h
+ exists, include it.
+
+ * configure.in: Check for stdlib.h
+
Thu Jul 25 00:03:01 1996 Theodore Y. Ts'o <tytso@mit.edu>
* util_ordering.c (g_order_check):
AC_PROG_AWK
V5_SHARED_LIB_OBJS
SubdirLibraryRule([${OBJS}])
+AC_CHECK_HEADERS(stdlib.h)
AC_SIZE_T
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
#if (defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH))
#include <k5-int.h>
+#else
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
#endif
+#endif
+
#include "gssapi_generic.h"
#include "gssapi_err_generic.h"