caja-extensions/fix-build-error-with-gupnp-1.6.patch
panchenbo f7c32d9ac9 fix build error with gupnp-1.6 and del unused info
(cherry picked from commit 55b2d520043a7a0b297d095903181c8b39b52c19)
2024-03-29 15:51:34 +08:00

14 lines
662 B
Diff

diff --git a/configure.ac b/configure.ac
index 4bf7d08..3c5a89e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -196,6 +196,8 @@ if test "x$enable_sendto" = "xyes"; then
fi
;;
upnp)
+ PKG_CHECK_MODULES(UPNP, gupnp-1.6 >= $GUPNP_REQUIRED,
+ enable_upnp=yes AC_DEFINE([HAS_GUPNP_VERSION_1_6], 1, ["Version is at least 1.6"]), enable_upnp=no)
PKG_CHECK_MODULES(UPNP, gupnp-1.2 >= $GUPNP_REQUIRED,
enable_upnp=yes AC_DEFINE([HAS_GUPNP_VERSION_1_2], 1, ["Version is at least 1.2"]), enable_upnp=no)
PKG_CHECK_MODULES(UPNP, gupnp-1.0 >= $GUPNP_REQUIRED,