* libltdl/ltdl.c: If not, disable assertions manually.
+2001-09-13 Gary V. Vaughan <gary@gnu.org>
+
+ * ltdl.m4 (AC_CHECK_HEADERS): Check for assert.h.
+ * libltdl/ltdl.c: If not, disable assertions manually.
+
2001-09-11 Gary V. Vaughan <gary@gnu.org>
* bootstrap: Be robust to having no files that need removing.
# include <argz.h>
#endif
-/* I have never seen a system without this: */
-#include <assert.h>
+#if HAVE_ASSERT_H
+# include <assert.h>
+#else
+# define assert(arg) ((void) 0)
+#endif
#include "ltdl.h"
AC_REQUIRE([AC_LTDL_SYS_DLOPEN_DEPLIBS])
AC_REQUIRE([AC_LTDL_FUNC_ARGZ])
-AC_CHECK_HEADERS([ctype.h errno.h malloc.h memory.h stdlib.h stdio.h unistd.h])
+AC_CHECK_HEADERS([assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
+ stdio.h unistd.h])
AC_CHECK_HEADERS([dl.h sys/dl.h dld.h])
AC_CHECK_HEADERS([string.h strings.h], [break])