]> sjero.net Git - linphone/commitdiff
Check upnp version
authorYann Diorcet <yann.diorcet@belledonne-communications.com>
Fri, 15 Mar 2013 13:16:23 +0000 (14:16 +0100)
committerYann Diorcet <yann.diorcet@belledonne-communications.com>
Fri, 15 Mar 2013 13:16:45 +0000 (14:16 +0100)
configure.ac
mediastreamer2

index ae2d5938600b6283ec7c6e4842379b55a6d5b467..4957eeb58ce4c83b26f990d438293a334900d872 100644 (file)
@@ -183,7 +183,12 @@ AC_ARG_ENABLE(upnp,
 )
 
 if test "$build_upnp" != "false" ; then
-       PKG_CHECK_MODULES([LIBUPNP], [libupnp], [build_upnp=true],
+       PKG_CHECK_MODULES([LIBUPNP], [libupnp], 
+               [if  pkg-config --atleast-version=1.6 "libupnp < 1.7"; then
+                       build_upnp=true
+               else
+                       AC_MSG_ERROR([libupnp >= 1.6 < 1.5 required.])
+               fi],
                [if test "$build_upnp" == "true" ; then
                        AC_MSG_ERROR([libupnp not found.])
                else
index d1d3e1af51ab26ecb9808d6f83629e661c67af5f..f223705f2853e62f0fb5340b994cd40665b9e854 160000 (submodule)
@@ -1 +1 @@
-Subproject commit d1d3e1af51ab26ecb9808d6f83629e661c67af5f
+Subproject commit f223705f2853e62f0fb5340b994cd40665b9e854