package available.
sfbug #664541.
* configure.in: look for check.h. This will set up a HAVE_CHECK_H define.
* tests/chardata.c, tests/runtests.c: update banner. add test for
HAVE_CHECK_H and bail if not present.
AC_SUBST(FILEMAP)
AC_CHECK_FUNCS(memmove bcopy)
+AC_CHECK_HEADERS(check.h)
dnl some basic configuration
AC_DEFINE([XML_NS], 1,
-/* chardata.c
- *
- *
- */
+/* Copyright (c) 1998-2003 Thai Open Source Software Center Ltd
+ See the file COPYING for copying permission.
+
+ chardata.c
+*/
+
+#include <expat_config.h>
+#ifdef HAVE_CHECK_H
+#include <check.h>
+#else
+#error This test suite requires the 'check' unit test framework (http://check.sf.net/)
+#endif
#include <assert.h>
#include <check.h>
-#include <assert.h>
+/* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
+ See the file COPYING for copying permission.
+
+ runtest.c : run the Expat test suite
+*/
+
+#include <expat_config.h>
+#ifdef HAVE_CHECK_H
#include <check.h>
+#else
+#error This test suite requires the 'check' unit test framework (http://check.sf.net/)
+#endif
+
+#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>