blob: 187594960897be1d504dfbde5a87ee2e1b5c2c83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- configure.ac 2006-02-04 16:04:12.000000000 -0600
+++ configure.ac 2006-02-04 16:09:37.000000000 -0600
@@ -130,14 +130,17 @@
dnl #
dnl # Check for Check
dnl #
-AM_PATH_CHECK(, [have_check="yes"],
-[
- AC_MSG_WARN([Check not found; cannot run some unit tests])
- have_check="no"
-])
-
-AM_CONDITIONAL(HAVE_CHECK, test "$have_check" = "yes")
+AC_ARG_ENABLE([tests],
+ AC_HELP_STRING([--disable-tests],[Disable unit tests]),,
+ [enable_tests=yes])
+
+if test "x$enable_tests" = "xyes" ; then
+ AM_PATH_CHECK(, [have_check="yes"], AC_MSG_ERROR([Check not found]))
+else
+ have_check="no"
+fi
+AM_CONDITIONAL(HAVE_CHECK, test "$have_check" = "yes")
dnl # Use wall if we have GCC
if test "x$GCC" = "xyes"; then
|