/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

  1. AC_DEFUN([SHAMROCK_CHECK_NUNIT],
  2. [
  3. NUNIT_REQUIRED=2.4.7
  4. AC_ARG_ENABLE(tests, AC_HELP_STRING([--enable-tests], [Enable NUnit tests]),
  5. enable_tests=$enableval, enable_tests="no")
  6. if test "x$enable_tests" = "xno"; then
  7. do_tests=no
  8. AM_CONDITIONAL(ENABLE_TESTS, false)
  9. else
  10. PKG_CHECK_MODULES(NUNIT, nunit >= $NUNIT_REQUIRED,
  11. do_tests="yes", do_tests="no")
  12. AC_SUBST(NUNIT_LIBS)
  13. AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes")
  14. if test "x$do_tests" = "xno"; then
  15. PKG_CHECK_MODULES(NUNIT, mono-nunit >= 2.4,
  16. do_tests="yes", do_tests="no")
  17. AC_SUBST(NUNIT_LIBS)
  18. AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes")
  19. if test "x$do_tests" = "xno"; then
  20. AC_MSG_WARN([Could not find nunit: tests will not be available]) fi
  21. fi
  22. fi
  23. ])