[banshee] build: fail if --enable-tests and no nunit found (bgo#664887)



commit 78d04025734669a91d6f703e7efd2a1f454a400b
Author: Andrés G. Aragoneses <knocte gmail com>
Date:   Wed Jan 8 13:02:16 2014 +0100

    build: fail if --enable-tests and no nunit found (bgo#664887)
    
    As tests are disabled by default, using the flag --enable-tests
    at configure time should fail (and not just warn) and stop the
    build, to let the developer know that the flag could not be
    applied successfully.

 build/m4/shamrock/nunit.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/build/m4/shamrock/nunit.m4 b/build/m4/shamrock/nunit.m4
index a52a7cb..3cd1ef1 100644
--- a/build/m4/shamrock/nunit.m4
+++ b/build/m4/shamrock/nunit.m4
@@ -16,7 +16,7 @@ AC_DEFUN([SHAMROCK_CHECK_NUNIT],
                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])
+                       AC_MSG_ERROR([nunit was not found or is not up to date. Please install nunit 
$NUNIT_REQUIRED or higher.])
                fi
        fi
 ])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]