[libdmapsharing] Don't try to build Vala test programs without libgee Signed-off-by: W. Michael Petullo <mike flyn or



commit 0593b6e14382245e6648eec81ce5d5949f66f4db
Author: W. Michael Petullo <mike flyn org>
Date:   Mon Feb 7 20:45:17 2011 -0600

    Don't try to build Vala test programs without libgee
    Signed-off-by: W. Michael Petullo <mike flyn org>

 configure.ac      |    1 +
 tests/Makefile.am |    6 +++++-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 05745dd..cf7e906 100644
--- a/configure.ac
+++ b/configure.ac
@@ -346,6 +346,7 @@ AC_SUBST(GTK_CFLAGS)
 AC_SUBST(GTK_LIBS)
 
 PKG_CHECK_MODULES(GEE, gee-1.0, HAVE_GEE=yes, HAVE_GEE=no)
+AM_CONDITIONAL(HAVE_GEE, test "x$HAVE_GEE" = "xyes")
 
 AC_SUBST(GEE_CFLAGS)
 AC_SUBST(GEE_LIBS)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 19872e9..efbe44f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,4 +1,8 @@
-noinst_PROGRAMS = test-dmap-client test-dmap-server dacplisten dpapview dmapcopy dmapserve
+noinst_PROGRAMS = test-dmap-client test-dmap-server
+
+if HAVE_GEE
+noinst_PROGRAMS += dacplisten dpapview dmapcopy dmapserve
+endif
 
 test_dmap_client_SOURCES = \
 	test-dmap-db.c \



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