[libdmapsharing] Allow explicit disable of libcheck at configure time



commit 9b9e24afdeef6c2444912a4015a0730d163f5775
Author: W. Michael Petullo <mike flyn org>
Date:   Mon Aug 1 13:49:41 2016 -0400

    Allow explicit disable of libcheck at configure time
    
    Signed-off-by: W. Michael Petullo <mike flyn org>

 configure.ac |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2a6b624..ac5f10f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -359,10 +359,15 @@ if test -n "$BUILD_DPAPVIEW" ; then
        AC_WARN([will not build dpapview])
 fi
 
-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],have_check=yes,have_check=no)
-AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
-if test "x$have_check" = "xyes"; then
-       AC_DEFINE(HAVE_CHECK, 1, [Define if check support is enabled])
+AC_ARG_ENABLE(check, [  --disable-check         do not build check support], enable_check=$enableval, 
enable_check=yes)
+if test x$enable_check = xyes; then
+       PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],have_check=yes,have_check=no)
+       AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
+       if test "x$have_check" = "xyes"; then
+               AC_DEFINE(HAVE_CHECK, 1, [Define if check support is enabled])
+       fi
+else
+       AM_CONDITIONAL(HAVE_CHECK, false)
 fi
 
 AC_CHECK_LIB(z, uncompress)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]