From: Nils Gillmann Date: Mon, 25 Jun 2018 12:17:03 +0000 (+0000) Subject: configure: Add initial upnpc code X-Git-Tag: v0.11.0~357^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=67669ed0c7f9472cb9018579cc0e4fe83a7de1cf;p=oweals%2Fgnunet.git configure: Add initial upnpc code Signed-off-by: Nils Gillmann --- diff --git a/configure.ac b/configure.ac index fc44dcf5a..c8e316416 100644 --- a/configure.ac +++ b/configure.ac @@ -213,10 +213,19 @@ else AC_MSG_WARN([warning: 'iptables' not found.]) fi - AC_CHECK_PROG(VAR_IFCONFIG_BINARY, ifconfig, true, false) AC_MSG_WARN([warning: 'ifconfig' not found.]) +# miniupnpc / upnpc binary is a soft runtime requirement +AC_PATH_TARGET_TOOL(VAR_UPNPC_BINARY, upnpc, false) + +if test x"$VAR_UPNPC_BINARY" != x"false" +then +AC_DEFINE_UNQUOTED([UPNPC], "$VAR_UPNPC_BINARY", [Path to upnpc binary]) +else +AC_MSG_WARN([warning: 'upnpc' binary not found.]) +fi + AC_CHECK_MEMBER(struct tm.tm_gmtoff, [AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if struct tm has the tm_gmtoff member.])], @@ -1811,6 +1820,10 @@ then AC_MSG_NOTICE([WARNING: jansson library not found. json support will not be compiled.]) fi +# +# FIXME: `some modules' -> be more specific which exact modules. +# + # warn user if iptables is not found if test "$VAR_IPTABLES_BINARY" = "false" then @@ -1823,6 +1836,12 @@ then AC_MSG_NOTICE([WARNING: ifconfig not found. some modules may not have full functionality.]) fi +# warn user if upnpc binary is not found +if test "$VAR_UPNPC_BINARY" = "false" +then +AC_MSG_NOTICE([WARNING: upnpc binary not found. some modules may not have full functionality.]) +fi + #gnutls if test x$gnutls != xtrue then