aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2018-03-11 18:49:03 +0100
committerVasil Dimov <vd@FreeBSD.org>2018-03-15 19:59:11 +0100
commit71129e0265f322249cce6fa3e02df92dd9c8b2d5 (patch)
treec158af719c6075d304cfd876f56d3f7348dccd25
parent8c632f73c29efa5cb87fc7ea44d3d332cb29d408 (diff)
Do not check for main() in libminiupnpc
main() { main(); } causes "infinite recursion" compilation warning which with -Werror fails the check.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 18f707f0ba..80116d597f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -771,7 +771,7 @@ dnl Check for libminiupnpc (optional)
if test x$use_upnp != xno; then
AC_CHECK_HEADERS(
[miniupnpc/miniwget.h miniupnpc/miniupnpc.h miniupnpc/upnpcommands.h miniupnpc/upnperrors.h],
- [AC_CHECK_LIB([miniupnpc], [main],[MINIUPNPC_LIBS=-lminiupnpc], [have_miniupnpc=no])],
+ [AC_CHECK_LIB([miniupnpc], [upnpDiscover], [MINIUPNPC_LIBS=-lminiupnpc], [have_miniupnpc=no])],
[have_miniupnpc=no]
)
fi