mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
configure.ac: Check for miniupnpc headers, not just -lminiupnpc
This protects against broken systems which have libminiupnpc.a or libminiupnpc.so installed but don't have the miniupnpc headers.
This commit is contained in:
parent
82ccb05b07
commit
a26a367629
@ -342,7 +342,11 @@ BITCOIN_FIND_BDB48
|
|||||||
|
|
||||||
dnl Check for libminiupnpc (optional)
|
dnl Check for libminiupnpc (optional)
|
||||||
if test x$use_upnp != xno; then
|
if test x$use_upnp != xno; then
|
||||||
AC_CHECK_LIB([miniupnpc], [main],, [have_miniupnpc=no])
|
AC_CHECK_HEADERS(
|
||||||
|
[miniupnpc/miniwget.h miniupnpc/miniupnpc.h miniupnpc/upnpcommands.h miniupnpc/upnperrors.h],
|
||||||
|
[AC_CHECK_LIB([miniupnpc], [main],, [have_miniupnpc=no])],
|
||||||
|
[have_miniupnpc=no]
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Check for boost libs
|
dnl Check for boost libs
|
||||||
|
Loading…
Reference in New Issue
Block a user