]> sjero.net Git - linphone/blobdiff - configure.ac
Check upnp version
[linphone] / configure.ac
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