Bladeren bron

dmapd: make check library optionnal

Signed-off-by: Nicolas Thill <nico@openwrt.org>
Nicolas Thill 10 jaren geleden
bovenliggende
commit
278105df8e
1 gewijzigde bestanden met toevoegingen van 17 en 0 verwijderingen
  1. 17
    0
      net/dmapd/patches/002-make_unit_test_optionnal.patch

+ 17
- 0
net/dmapd/patches/002-make_unit_test_optionnal.patch Bestand weergeven

@@ -0,0 +1,17 @@
1
+--- a/configure.ac
2
++++ b/configure.ac
3
+@@ -233,7 +233,13 @@ else
4
+   AM_CONDITIONAL(USE_LIBDB, false)
5
+ fi
6
+ 
7
+-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],have_check=yes,have_check=no)
8
++dnl Test if --enable-unit-test given
9
++AC_ARG_ENABLE(unit-test, [AC_HELP_STRING([--enable-unit-test],[enable unit test])])
10
++if test "x$enable_unit_test" = "xyes" ; then
11
++  PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],have_check=yes,have_check=no)
12
++else
13
++  have_check=no
14
++fi
15
+ AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
16
+ 
17
+ AM_CONDITIONAL(FLYN, test "$FLYN")