diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2020-10-20 19:51:22 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2020-10-20 19:51:22 -0400 |
commit | e70dcd0a9f89efbdaa011c20737ad550635ea580 (patch) | |
tree | a71a2fa247107cdb56194eeec4be9f54bee34f49 /configure.ac | |
parent | 46d7b108179b477a00464fc47dc8aa1c6389ee03 (diff) | |
download | farstream-master.tar.gz |
Update the configure test to match
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 03afc96b..1efed132 100644 --- a/configure.ac +++ b/configure.ac @@ -370,8 +370,25 @@ fi if test "x$HAVE_GUPNP" = "xyes"; then AC_DEFINE(HAVE_GUPNP,,[Have the GUPnP IGD library]) + + PKG_CHECK_MODULES(GUPNP_CORE, [ gupnp-1.2 ], + [ HAVE_GUPNP_CORE_12=yes ], + [ HAVE_GUPNP_CORE_12=no + PKG_CHECK_MODULES(GUPNP_CORE, [ gupnp-1.0 ], + [ HAVE_GUPNP_CORE_10=yes ], + [ HAVE_GUPNP_CORE_10=no ]) + ]) + + if test "x$HAVE_GUPNP_CORE_10" = "xyes"; then + AC_DEFINE(HAVE_GUPNP_CORE_10,,[Have the GUPnP 1.0 library]) + fi + + if test "x$HAVE_GUPNP_CORE_12" = "xyes"; then + AC_DEFINE(HAVE_GUPNP_CORE_12,,[Have the GUPnP 1.2 library]) + fi fi + dnl build static plugins or not AC_MSG_CHECKING([whether to build static plugins or not]) AC_ARG_ENABLE( |