/build/m4/shamrock/nunit.m4
m4 | 29 lines | 23 code | 6 blank | 0 comment | 0 complexity | 94cb391a1e011f1660cbec985820214c MD5 | raw file
1AC_DEFUN([SHAMROCK_CHECK_NUNIT], 2[ 3 NUNIT_REQUIRED=2.4.7 4 5 AC_ARG_ENABLE(tests, AC_HELP_STRING([--enable-tests], [Enable NUnit tests]), 6 enable_tests=$enableval, enable_tests="no") 7 8 if test "x$enable_tests" = "xno"; then 9 do_tests=no 10 AM_CONDITIONAL(ENABLE_TESTS, false) 11 else 12 PKG_CHECK_MODULES(NUNIT, nunit >= $NUNIT_REQUIRED, 13 do_tests="yes", do_tests="no") 14 15 AC_SUBST(NUNIT_LIBS) 16 AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes") 17 18 if test "x$do_tests" = "xno"; then 19 PKG_CHECK_MODULES(NUNIT, mono-nunit >= 2.4, 20 do_tests="yes", do_tests="no") 21 22 AC_SUBST(NUNIT_LIBS) 23 AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes") 24 25 if test "x$do_tests" = "xno"; then 26 AC_MSG_WARN([Could not find nunit: tests will not be available]) fi 27 fi 28 fi 29])