From 01e9b5c0191762b75175f6eabfb9915f9899fc15 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 19 Apr 2015 19:09:46 -0300 Subject: build: replace --enable-cmocka with --enable-tests --- Makefile.am | 2 +- configure.ac | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index 0988b5f..1c56a55 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ ACLOCAL_AMFLAGS = -I m4 AM_DISTCHECK_CONFIGURE_FLAGS = \ - --enable-cmocka \ + --enable-tests \ --disable-valgrind diff --git a/configure.ac b/configure.ac index 5736a33..cd2bc89 100644 --- a/configure.ac +++ b/configure.ac @@ -35,21 +35,21 @@ AM_CONDITIONAL([USE_VALGRIND], [test "x$have_valgrind" = "xyes"]) VALGRIND="$ac_cv_path_valgrind" AC_SUBST(VALGRIND) -AC_ARG_ENABLE([cmocka], AS_HELP_STRING([--disable-cmocka], - [ignore presence of cmocka. this will disable unit tests])) -AS_IF([test "x$enable_cmocka" != "xno"], [ +AC_ARG_ENABLE([tests], AS_HELP_STRING([--disable-tests], + [disable unit tests, ignoring presence of cmocka])) +AS_IF([test "x$enable_tests" != "xno"], [ PKG_PROG_PKG_CONFIG PKG_CHECK_MODULES([CMOCKA], [cmocka], [ - CMOCKA="enabled" + TESTS="enabled" have_cmocka=yes ], [ - CMOCKA="disabled" + TESTS="disabled" have_cmocka=no ]) ]) AS_IF([test "x$have_cmocka" = "xyes"], , [ - AS_IF([test "x$enable_cmocka" = "xyes"], [ - AC_MSG_ERROR([cmocka requested but not found]) + AS_IF([test "x$enable_tests" = "xyes"], [ + AC_MSG_ERROR([unit tests requested but cmocka not found]) ]) ]) AM_CONDITIONAL([USE_CMOCKA], [test "x$have_cmocka" = "xyes"]) @@ -70,7 +70,7 @@ AS_ECHO(" cflags: ${CFLAGS} ldflags: ${LDFLAGS} - cmocka: ${CMOCKA} + tests: ${TESTS} valgrind: ${VALGRIND} ") -- cgit v1.2.3-18-g5258