* ltdl.m4 (AC_CHECK_HEADERS): Check for assert.h.

* libltdl/ltdl.c:  If not, disable assertions manually.
This commit is contained in:
Gary V. Vaughan 2001-09-13 19:43:58 +00:00
parent 56245fe9ef
commit 7eba1343df
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -86,8 +86,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 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"

View File

@ -45,7 +45,8 @@ AC_REQUIRE([AC_LTDL_DLSYM_USCORE])
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])