diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-19 19:09:46 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-04-19 19:09:46 -0300 |
commit | 01e9b5c0191762b75175f6eabfb9915f9899fc15 (patch) | |
tree | c1db09f8681e30f46b6cc9cb4661d6eed162603e | |
parent | 329ef39c0fe382498dde48b5822b041a3804f618 (diff) | |
download | blogc-01e9b5c0191762b75175f6eabfb9915f9899fc15.tar.gz blogc-01e9b5c0191762b75175f6eabfb9915f9899fc15.tar.bz2 blogc-01e9b5c0191762b75175f6eabfb9915f9899fc15.zip |
build: replace --enable-cmocka with --enable-tests
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | 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} ") |