aboutsummaryrefslogtreecommitdiff
path: root/net/dmapd
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2015-02-10 12:08:28 +0100
committerNicolas Thill <nico@openwrt.org>2015-02-10 12:08:28 +0100
commit278105df8ed62d530bbd0249b604a71c6632f8ad (patch)
treec7b9211778e97c0d0d71bc2af811e90159f297d7 /net/dmapd
parent9fdf0326d7c44a14abbc5345791396ebdce86f65 (diff)
dmapd: make check library optionnal
Signed-off-by: Nicolas Thill <nico@openwrt.org>
Diffstat (limited to 'net/dmapd')
-rw-r--r--net/dmapd/patches/002-make_unit_test_optionnal.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/dmapd/patches/002-make_unit_test_optionnal.patch b/net/dmapd/patches/002-make_unit_test_optionnal.patch
new file mode 100644
index 000000000..3f42f6b2b
--- /dev/null
+++ b/net/dmapd/patches/002-make_unit_test_optionnal.patch
@@ -0,0 +1,17 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -233,7 +233,13 @@ else
+ AM_CONDITIONAL(USE_LIBDB, false)
+ fi
+
+-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],have_check=yes,have_check=no)
++dnl Test if --enable-unit-test given
++AC_ARG_ENABLE(unit-test, [AC_HELP_STRING([--enable-unit-test],[enable unit test])])
++if test "x$enable_unit_test" = "xyes" ; then
++ PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],have_check=yes,have_check=no)
++else
++ have_check=no
++fi
+ AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
+
+ AM_CONDITIONAL(FLYN, test "$FLYN")