/build/m4/shamrock/nunit.m4
http://github.com/hbons/SparkleShare · m4 · 29 lines · 23 code · 6 blank · 0 comment · 0 complexity · 94cb391a1e011f1660cbec985820214c MD5 · raw file
- AC_DEFUN([SHAMROCK_CHECK_NUNIT],
- [
- NUNIT_REQUIRED=2.4.7
- AC_ARG_ENABLE(tests, AC_HELP_STRING([--enable-tests], [Enable NUnit tests]),
- enable_tests=$enableval, enable_tests="no")
- if test "x$enable_tests" = "xno"; then
- do_tests=no
- AM_CONDITIONAL(ENABLE_TESTS, false)
- else
- PKG_CHECK_MODULES(NUNIT, nunit >= $NUNIT_REQUIRED,
- do_tests="yes", do_tests="no")
- AC_SUBST(NUNIT_LIBS)
- AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes")
- if test "x$do_tests" = "xno"; then
- PKG_CHECK_MODULES(NUNIT, mono-nunit >= 2.4,
- do_tests="yes", do_tests="no")
- AC_SUBST(NUNIT_LIBS)
- AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes")
- if test "x$do_tests" = "xno"; then
- AC_MSG_WARN([Could not find nunit: tests will not be available]) fi
- fi
- fi
- ])