[Galago-commits] r2574 - trunk/galago-daemon
galago-commits at freedesktop.org
galago-commits at freedesktop.org
Thu Feb 9 00:35:54 PST 2006
Author: chipx86
Date: 2006-02-09 00:35:51 -0800 (Thu, 09 Feb 2006)
New Revision: 2574
Modified:
trunk/galago-daemon/ChangeLog
trunk/galago-daemon/configure.ac
Log:
Patch by compnerd to provide a configure option for disabling unit tests. This closes ticket #20.
Modified: trunk/galago-daemon/ChangeLog
===================================================================
--- trunk/galago-daemon/ChangeLog 2006-02-09 08:29:22 UTC (rev 2573)
+++ trunk/galago-daemon/ChangeLog 2006-02-09 08:35:51 UTC (rev 2574)
@@ -1,3 +1,9 @@
+Thu Feb 09 00:34:52 PST 2006 Christian Hammond <chipx86 at chipx86.com>
+
+ * configure.ac:
+ - Patch by compnerd to provide a configure option for disabling
+ unit tests. This closes ticket #20.
+
Thu Feb 09 00:28:25 PST 2006 Christian Hammond <chipx86 at chipx86.com>
* src/logging.c:
Modified: trunk/galago-daemon/configure.ac
===================================================================
--- trunk/galago-daemon/configure.ac 2006-02-09 08:29:22 UTC (rev 2573)
+++ trunk/galago-daemon/configure.ac 2006-02-09 08:35:51 UTC (rev 2574)
@@ -130,12 +130,16 @@
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"
-])
+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")
More information about the galago-commits
mailing list