summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2012-10-06 17:40:28 +0200
committerJens Georg <mail@jensge.org>2012-10-06 17:40:28 +0200
commit57875ff84e0c8de9fe9f4952c6bf6336ca269e2d (patch)
tree353c92aed3d88a1d0e72c1bbfc78a9416f5d7032
parent58024a2692857f20899c4e1978b1e1fc7dead46b (diff)
downloadgupnp-vala-57875ff84e0c8de9fe9f4952c6bf6336ca269e2d.tar.gz
Only build vapi for old versions
-rw-r--r--configure.ac18
1 files changed, 7 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index 95064c5..055224f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,26 +33,22 @@ if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([Cannot find the "pkg-config" program in your PATH])
fi
-PKG_CHECK_MODULES(GSSDP, [gssdp-1.0 >= 0.11.0])
-
dnl check if we have gssdp >= 0.12.2 which carries its own vapi
-PKG_CHECK_MODULES(NEW_GSSDP, [gssdp-1.0 >= 0.12.2],
+PKG_CHECK_MODULES(NEW_GSSDP, [gssdp-1.0 >= 0.11.0 gssdp-1.0 < 0.12.2],
[
- has_new_gssdp=yes
- has_gssdp=no
- VALA_CHECK_PACKAGES([gssdp-1.0])
- ],
- [has_new_gssdp=no
has_gssdp=yes
+ ],
+ [
+ has_gssdp=no
])
-AM_CONDITIONAL(WITH_GSSDP, [test "x$has_new_gssdp" = "xno"])
+AM_CONDITIONAL(WITH_GSSDP, [test "x$has_gssdp" = "xyes"])
-PKG_CHECK_MODULES(GUPNP, [gupnp-1.0 >= 0.18.0],
+PKG_CHECK_MODULES(GUPNP, [gupnp-1.0 >= 0.18.0 gupnp-1.0 < 0.19.0],
has_gupnp=yes,
has_gupnp=no)
AM_CONDITIONAL(WITH_GUPNP, [test "x$has_gupnp" = "xyes"])
-PKG_CHECK_MODULES(GUPNP_AV, [gupnp-av-1.0 >= 0.9.0],
+PKG_CHECK_MODULES(GUPNP_AV, [gupnp-av-1.0 >= 0.9.0 gupnp-av-1.0 < 0.11.0],
has_gupnp_av=yes,
has_gupnp_av=no)
AM_CONDITIONAL(WITH_GUPNP_AV, [test "x$has_gupnp_av" = "xyes"])