diff options
author | Alexander Kojevnikov <alexk@gnome.org> | 2012-02-14 10:42:16 +0800 |
---|---|---|
committer | Alexander Kojevnikov <alexk@gnome.org> | 2012-02-14 10:42:16 +0800 |
commit | 0e25142e533007b518773dcc7936f7711decc2a9 (patch) | |
tree | 8f929ead3ba08b6db3d949782b2b5f370a94207b /build/m4 | |
parent | 0b712cd0ed522df5b90e719fc7d10577d006ee86 (diff) |
build: Make mono-upnp dependency optional
Diffstat (limited to 'build/m4')
-rw-r--r-- | build/m4/banshee/mono-upnp.m4 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/build/m4/banshee/mono-upnp.m4 b/build/m4/banshee/mono-upnp.m4 index 2ae7f93cb..8e1e03332 100644 --- a/build/m4/banshee/mono-upnp.m4 +++ b/build/m4/banshee/mono-upnp.m4 @@ -5,11 +5,11 @@ AC_DEFUN([BANSHEE_CHECK_MONO_UPNP], AC_ARG_ENABLE(upnp, AC_HELP_STRING([--disable-upnp], [Disable UPnP support]), , enable_upnp="yes") if test "x$enable_upnp" = "xyes"; then - has_mono-upnp=no PKG_CHECK_MODULES(MONO_UPNP, mono.ssdp >= $MONOUPNP_REQUIRED mono.upnp >= $MONOUPNP_REQUIRED - mono.upnp.dcp.mediaserver1 >= $MONOUPNP_REQUIRED) + mono.upnp.dcp.mediaserver1 >= $MONOUPNP_REQUIRED, + enable_upnp=yes, enable_upnp=no) AC_SUBST(MONO_UPNP_LIBS) @@ -25,10 +25,9 @@ AC_DEFUN([BANSHEE_CHECK_MONO_UPNP], done AC_SUBST(MONOUPNP_ASSEMBLIES) - AM_CONDITIONAL(UPNP_ENABLED, true) + AM_CONDITIONAL(UPNP_ENABLED, test "x$enable_upnp" = "xyes") else AM_CONDITIONAL(UPNP_ENABLED, false) fi ]) - |