Browse Source

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.
0.10
Josh Triplett 11 years ago
parent
commit
a26a367629
  1. 6
      configure.ac

6
configure.ac

@ -342,7 +342,11 @@ BITCOIN_FIND_BDB48 @@ -342,7 +342,11 @@ BITCOIN_FIND_BDB48
dnl Check for libminiupnpc (optional)
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
dnl Check for boost libs

Loading…
Cancel
Save