aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac16
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}
")