Do not check for main() in libminiupnpc
main() { main(); } causes "infinite recursion" compilation warning which with -Werror fails the check.
This commit is contained in:
parent
8c632f73c2
commit
71129e0265
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue