|
|
@ -11,8 +11,21 @@ AC_CONFIG_SRCDIR([src/main.cpp]) |
|
|
|
AC_CONFIG_HEADERS([src/config/bitcoin-config.h]) |
|
|
|
AC_CONFIG_HEADERS([src/config/bitcoin-config.h]) |
|
|
|
AC_CONFIG_AUX_DIR([build-aux]) |
|
|
|
AC_CONFIG_AUX_DIR([build-aux]) |
|
|
|
AC_CONFIG_MACRO_DIR([build-aux/m4]) |
|
|
|
AC_CONFIG_MACRO_DIR([build-aux/m4]) |
|
|
|
LT_INIT([disable-shared]) |
|
|
|
|
|
|
|
AC_CANONICAL_HOST |
|
|
|
AC_CANONICAL_HOST |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnl By default, libtool for mingw refuses to link static libs into a dll for |
|
|
|
|
|
|
|
dnl fear of mixing pic/non-pic objects, and import/export complications. Since |
|
|
|
|
|
|
|
dnl we have those under control, re-enable that functionality. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case $host in |
|
|
|
|
|
|
|
*mingw*) |
|
|
|
|
|
|
|
lt_cv_deplibs_check_method="pass_all" |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LT_INIT([disable-shared]) |
|
|
|
|
|
|
|
|
|
|
|
AH_TOP([#ifndef BITCOIN_CONFIG_H]) |
|
|
|
AH_TOP([#ifndef BITCOIN_CONFIG_H]) |
|
|
|
AH_TOP([#define BITCOIN_CONFIG_H]) |
|
|
|
AH_TOP([#define BITCOIN_CONFIG_H]) |
|
|
|
AH_BOTTOM([#endif //BITCOIN_CONFIG_H]) |
|
|
|
AH_BOTTOM([#endif //BITCOIN_CONFIG_H]) |
|
|
@ -462,7 +475,7 @@ dnl Check for libminiupnpc (optional) |
|
|
|
if test x$use_upnp != xno; then |
|
|
|
if test x$use_upnp != xno; then |
|
|
|
AC_CHECK_HEADERS( |
|
|
|
AC_CHECK_HEADERS( |
|
|
|
[miniupnpc/miniwget.h miniupnpc/miniupnpc.h miniupnpc/upnpcommands.h miniupnpc/upnperrors.h], |
|
|
|
[miniupnpc/miniwget.h miniupnpc/miniupnpc.h miniupnpc/upnpcommands.h miniupnpc/upnperrors.h], |
|
|
|
[AC_CHECK_LIB([miniupnpc], [main],, [have_miniupnpc=no])], |
|
|
|
[AC_CHECK_LIB([miniupnpc], [main],[MINIUPNPC_LIBS=-lminiupnpc], [have_miniupnpc=no])], |
|
|
|
[have_miniupnpc=no] |
|
|
|
[have_miniupnpc=no] |
|
|
|
) |
|
|
|
) |
|
|
|
fi |
|
|
|
fi |
|
|
@ -632,9 +645,9 @@ else |
|
|
|
AC_CHECK_HEADER([openssl/ssl.h],, AC_MSG_ERROR(libssl headers missing),) |
|
|
|
AC_CHECK_HEADER([openssl/ssl.h],, AC_MSG_ERROR(libssl headers missing),) |
|
|
|
AC_CHECK_LIB([ssl], [main],SSL_LIBS=-lssl, AC_MSG_ERROR(libssl missing)) |
|
|
|
AC_CHECK_LIB([ssl], [main],SSL_LIBS=-lssl, AC_MSG_ERROR(libssl missing)) |
|
|
|
|
|
|
|
|
|
|
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],,BITCOIN_QT_FAIL(libprotobuf not found))) |
|
|
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],[PROTOBUF_LIBS=-lprotobuf], BITCOIN_QT_FAIL(libprotobuf not found))) |
|
|
|
if test x$use_qr != xno; then |
|
|
|
if test x$use_qr != xno; then |
|
|
|
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],, [have_qrencode=no])]) |
|
|
|
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])]) |
|
|
|
BITCOIN_QT_CHECK([AC_CHECK_HEADER([qrencode.h],, have_qrencode=no)]) |
|
|
|
BITCOIN_QT_CHECK([AC_CHECK_HEADER([qrencode.h],, have_qrencode=no)]) |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
@ -808,6 +821,7 @@ AC_SUBST(BUILD_TEST) |
|
|
|
AC_SUBST(BUILD_QT) |
|
|
|
AC_SUBST(BUILD_QT) |
|
|
|
AC_SUBST(BUILD_TEST_QT) |
|
|
|
AC_SUBST(BUILD_TEST_QT) |
|
|
|
AC_SUBST(MINIUPNPC_CPPFLAGS) |
|
|
|
AC_SUBST(MINIUPNPC_CPPFLAGS) |
|
|
|
|
|
|
|
AC_SUBST(MINIUPNPC_LIBS) |
|
|
|
AC_CONFIG_FILES([Makefile src/Makefile share/setup.nsi share/qt/Info.plist src/test/buildenv.py]) |
|
|
|
AC_CONFIG_FILES([Makefile src/Makefile share/setup.nsi share/qt/Info.plist src/test/buildenv.py]) |
|
|
|
AC_CONFIG_FILES([qa/pull-tester/run-bitcoind-for-test.sh],[chmod +x qa/pull-tester/run-bitcoind-for-test.sh]) |
|
|
|
AC_CONFIG_FILES([qa/pull-tester/run-bitcoind-for-test.sh],[chmod +x qa/pull-tester/run-bitcoind-for-test.sh]) |
|
|
|
AC_CONFIG_FILES([qa/pull-tester/build-tests.sh],[chmod +x qa/pull-tester/build-tests.sh]) |
|
|
|
AC_CONFIG_FILES([qa/pull-tester/build-tests.sh],[chmod +x qa/pull-tester/build-tests.sh]) |
|
|
|