Changeset View
Changeset View
Standalone View
Standalone View
configure.ac
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | AC_ARG_WITH([system-univalue], | ||||
[system_univalue=$withval], | [system_univalue=$withval], | ||||
[system_univalue=no] | [system_univalue=no] | ||||
) | ) | ||||
AC_ARG_ENABLE([zmq], | AC_ARG_ENABLE([zmq], | ||||
[AS_HELP_STRING([--disable-zmq], | [AS_HELP_STRING([--disable-zmq], | ||||
[disable ZMQ notifications])], | [disable ZMQ notifications])], | ||||
[use_zmq=$enableval], | [use_zmq=$enableval], | ||||
[use_zmq=yes]) | [use_zmq=yes]) | ||||
AC_ARG_ENABLE([bip70], | |||||
[AS_HELP_STRING([--disable-bip70], | |||||
[disable BIP70 (payment protocol) support in GUI (enabled by default)])], | |||||
[enable_bip70=$enableval], | |||||
[enable_bip70=yes]) | |||||
AC_ARG_WITH([protoc-bindir],[AS_HELP_STRING([--with-protoc-bindir=BIN_DIR],[specify protoc bin path])], [protoc_bin_path=$withval], []) | AC_ARG_WITH([protoc-bindir],[AS_HELP_STRING([--with-protoc-bindir=BIN_DIR],[specify protoc bin path])], [protoc_bin_path=$withval], []) | ||||
AC_ARG_ENABLE(man, | AC_ARG_ENABLE(man, | ||||
[AS_HELP_STRING([--disable-man], | [AS_HELP_STRING([--disable-man], | ||||
[do not install man pages (default is to install)])],, | [do not install man pages (default is to install)])],, | ||||
enable_man=yes) | enable_man=yes) | ||||
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no) | AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no) | ||||
▲ Show 20 Lines • Show All 710 Lines • ▼ Show 20 Lines | |||||
if test x$use_pkgconfig = xyes; then | if test x$use_pkgconfig = xyes; then | ||||
: dnl | : dnl | ||||
m4_ifdef( | m4_ifdef( | ||||
[PKG_CHECK_MODULES], | [PKG_CHECK_MODULES], | ||||
[ | [ | ||||
PKG_CHECK_MODULES([SSL], [libssl],, [AC_MSG_ERROR(openssl not found.)]) | PKG_CHECK_MODULES([SSL], [libssl],, [AC_MSG_ERROR(openssl not found.)]) | ||||
PKG_CHECK_MODULES([CRYPTO], [libcrypto],,[AC_MSG_ERROR(libcrypto not found.)]) | PKG_CHECK_MODULES([CRYPTO], [libcrypto],,[AC_MSG_ERROR(libcrypto not found.)]) | ||||
if test x$enable_bip70 != xno; then | |||||
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([PROTOBUF], [protobuf], [have_protobuf=yes], [BITCOIN_QT_FAIL(libprotobuf not found)])]) | BITCOIN_QT_CHECK([PKG_CHECK_MODULES([PROTOBUF], [protobuf], [have_protobuf=yes], [BITCOIN_QT_FAIL(libprotobuf not found)])]) | ||||
fi | |||||
if test x$use_qr != xno; then | if test x$use_qr != xno; then | ||||
BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode], [have_qrencode=yes], [have_qrencode=no])]) | BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode], [have_qrencode=yes], [have_qrencode=no])]) | ||||
fi | fi | ||||
if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$use_tests != xnononono; then | if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$use_tests != xnononono; then | ||||
PKG_CHECK_MODULES([EVENT], [libevent],, [AC_MSG_ERROR(libevent not found.)]) | PKG_CHECK_MODULES([EVENT], [libevent],, [AC_MSG_ERROR(libevent not found.)]) | ||||
if test x$TARGET_OS != xwindows; then | if test x$TARGET_OS != xwindows; then | ||||
PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads],, [AC_MSG_ERROR(libevent_pthreads not found.)]) | PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads],, [AC_MSG_ERROR(libevent_pthreads not found.)]) | ||||
fi | fi | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | if test "x$use_zmq" = "xyes"; then | ||||
dnl Assume libzmq was built for static linking | dnl Assume libzmq was built for static linking | ||||
case $host in | case $host in | ||||
*mingw*) | *mingw*) | ||||
ZMQ_CFLAGS="$ZMQ_CFLAGS -DZMQ_STATIC" | ZMQ_CFLAGS="$ZMQ_CFLAGS -DZMQ_STATIC" | ||||
;; | ;; | ||||
esac | esac | ||||
fi | fi | ||||
if test x$enable_bip70 != xno; then | |||||
BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],[PROTOBUF_LIBS=-lprotobuf], BITCOIN_QT_FAIL(libprotobuf not found))) | BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],[PROTOBUF_LIBS=-lprotobuf], BITCOIN_QT_FAIL(libprotobuf not found))) | ||||
fi | |||||
if test x$use_qr != xno; then | if test x$use_qr != xno; then | ||||
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [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 | ||||
save_CXXFLAGS="${CXXFLAGS}" | save_CXXFLAGS="${CXXFLAGS}" | ||||
CXXFLAGS="${CXXFLAGS} ${CRYPTO_CFLAGS} ${SSL_CFLAGS}" | CXXFLAGS="${CXXFLAGS} ${CRYPTO_CFLAGS} ${SSL_CFLAGS}" | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
fi | fi | ||||
fi | fi | ||||
AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$need_bundled_univalue = xyes]) | AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$need_bundled_univalue = xyes]) | ||||
AC_SUBST(UNIVALUE_CFLAGS) | AC_SUBST(UNIVALUE_CFLAGS) | ||||
AC_SUBST(UNIVALUE_LIBS) | AC_SUBST(UNIVALUE_LIBS) | ||||
if test x$enable_bip70 != xno; then | |||||
BITCOIN_QT_PATH_PROGS([PROTOC], [protoc],$protoc_bin_path) | BITCOIN_QT_PATH_PROGS([PROTOC], [protoc],$protoc_bin_path) | ||||
fi | |||||
AC_MSG_CHECKING([whether to build bitcoind]) | AC_MSG_CHECKING([whether to build bitcoind]) | ||||
AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes]) | AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes]) | ||||
AC_MSG_RESULT($build_bitcoind) | AC_MSG_RESULT($build_bitcoind) | ||||
AC_MSG_CHECKING([whether to build bitcoin-seeder]) | AC_MSG_CHECKING([whether to build bitcoin-seeder]) | ||||
AM_CONDITIONAL([BUILD_BITCOIN_SEEDER], [test x$build_bitcoin_seeder = xyes]) | AM_CONDITIONAL([BUILD_BITCOIN_SEEDER], [test x$build_bitcoin_seeder = xyes]) | ||||
AC_MSG_RESULT($build_bitcoin_seeder) | AC_MSG_RESULT($build_bitcoin_seeder) | ||||
▲ Show 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | if test x$bitcoin_enable_qt != xno; then | ||||
AC_MSG_CHECKING([whether to build test_bitcoin-qt]) | AC_MSG_CHECKING([whether to build test_bitcoin-qt]) | ||||
if test x$use_gui_tests$bitcoin_enable_qt_test = xyesyes; then | if test x$use_gui_tests$bitcoin_enable_qt_test = xyesyes; then | ||||
AC_MSG_RESULT([yes]) | AC_MSG_RESULT([yes]) | ||||
BUILD_TEST_QT="yes" | BUILD_TEST_QT="yes" | ||||
else | else | ||||
AC_MSG_RESULT([no]) | AC_MSG_RESULT([no]) | ||||
fi | fi | ||||
AC_MSG_CHECKING([whether to build BIP70 support]) | |||||
if test x$enable_bip70 != xno; then | |||||
AC_DEFINE([ENABLE_BIP70],[1],[Define if BIP70 support should be compiled in]) | |||||
enable_bip70=yes | |||||
AC_MSG_RESULT([yes]) | |||||
else | |||||
AC_MSG_RESULT([no]) | |||||
fi | |||||
fi | fi | ||||
AM_CONDITIONAL([ENABLE_ZMQ], [test "x$use_zmq" = "xyes"]) | AM_CONDITIONAL([ENABLE_ZMQ], [test "x$use_zmq" = "xyes"]) | ||||
AC_MSG_CHECKING([whether to build test_bitcoin]) | AC_MSG_CHECKING([whether to build test_bitcoin]) | ||||
if test x$use_tests = xyes; then | if test x$use_tests = xyes; then | ||||
AC_MSG_RESULT([yes]) | AC_MSG_RESULT([yes]) | ||||
BUILD_TEST="yes" | BUILD_TEST="yes" | ||||
Show All 25 Lines | |||||
AM_CONDITIONAL([TARGET_DARWIN], [test x$TARGET_OS = xdarwin]) | AM_CONDITIONAL([TARGET_DARWIN], [test x$TARGET_OS = xdarwin]) | ||||
AM_CONDITIONAL([BUILD_DARWIN], [test x$BUILD_OS = xdarwin]) | AM_CONDITIONAL([BUILD_DARWIN], [test x$BUILD_OS = xdarwin]) | ||||
AM_CONDITIONAL([TARGET_WINDOWS], [test x$TARGET_OS = xwindows]) | AM_CONDITIONAL([TARGET_WINDOWS], [test x$TARGET_OS = xwindows]) | ||||
AM_CONDITIONAL([ENABLE_WALLET],[test x$enable_wallet = xyes]) | AM_CONDITIONAL([ENABLE_WALLET],[test x$enable_wallet = xyes]) | ||||
AM_CONDITIONAL([ENABLE_TESTS],[test x$BUILD_TEST = xyes]) | AM_CONDITIONAL([ENABLE_TESTS],[test x$BUILD_TEST = xyes]) | ||||
AM_CONDITIONAL([ENABLE_SEEDER_TESTS],[test x$BUILD_SEEDER_TEST = xyes]) | AM_CONDITIONAL([ENABLE_SEEDER_TESTS],[test x$BUILD_SEEDER_TEST = xyes]) | ||||
AM_CONDITIONAL([ENABLE_QT],[test x$bitcoin_enable_qt = xyes]) | AM_CONDITIONAL([ENABLE_QT],[test x$bitcoin_enable_qt = xyes]) | ||||
AM_CONDITIONAL([ENABLE_QT_TESTS],[test x$BUILD_TEST_QT = xyes]) | AM_CONDITIONAL([ENABLE_QT_TESTS],[test x$BUILD_TEST_QT = xyes]) | ||||
AM_CONDITIONAL([ENABLE_BIP70],[test x$enable_bip70 = xyes]) | |||||
AM_CONDITIONAL([ENABLE_BENCH],[test x$use_bench = xyes]) | AM_CONDITIONAL([ENABLE_BENCH],[test x$use_bench = xyes]) | ||||
AM_CONDITIONAL([USE_QRCODE], [test x$use_qr = xyes]) | AM_CONDITIONAL([USE_QRCODE], [test x$use_qr = xyes]) | ||||
AM_CONDITIONAL([USE_LCOV],[test x$use_lcov = xyes]) | AM_CONDITIONAL([USE_LCOV],[test x$use_lcov = xyes]) | ||||
AM_CONDITIONAL([GLIBC_BACK_COMPAT],[test x$use_glibc_compat = xyes]) | AM_CONDITIONAL([GLIBC_BACK_COMPAT],[test x$use_glibc_compat = xyes]) | ||||
AM_CONDITIONAL([HARDEN],[test x$use_hardening = xyes]) | AM_CONDITIONAL([HARDEN],[test x$use_hardening = xyes]) | ||||
AM_CONDITIONAL([ENABLE_HWCRC32],[test x$enable_hwcrc32 = xyes]) | AM_CONDITIONAL([ENABLE_HWCRC32],[test x$enable_hwcrc32 = xyes]) | ||||
AM_CONDITIONAL([ENABLE_SSE41],[test x$enable_sse41 = xyes]) | AM_CONDITIONAL([ENABLE_SSE41],[test x$enable_sse41 = xyes]) | ||||
AM_CONDITIONAL([ENABLE_AVX2],[test x$enable_avx2 = xyes]) | AM_CONDITIONAL([ENABLE_AVX2],[test x$enable_avx2 = xyes]) | ||||
▲ Show 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | case ${OS} in | ||||
;; | ;; | ||||
esac | esac | ||||
echo | echo | ||||
echo "Options used to compile and link:" | echo "Options used to compile and link:" | ||||
echo " with wallet = $enable_wallet" | echo " with wallet = $enable_wallet" | ||||
echo " with gui / qt = $bitcoin_enable_qt" | echo " with gui / qt = $bitcoin_enable_qt" | ||||
if test x$bitcoin_enable_qt != xno; then | if test x$bitcoin_enable_qt != xno; then | ||||
echo " with bip70 = $enable_bip70" | |||||
echo " with qr = $use_qr" | echo " with qr = $use_qr" | ||||
fi | fi | ||||
echo " with zmq = $use_zmq" | echo " with zmq = $use_zmq" | ||||
echo " with test = $use_tests" | echo " with test = $use_tests" | ||||
echo " with bench = $use_bench" | echo " with bench = $use_bench" | ||||
echo " with upnp = $use_upnp" | echo " with upnp = $use_upnp" | ||||
echo " use asm = $use_asm" | echo " use asm = $use_asm" | ||||
echo " sanitizers = $use_sanitizers" | echo " sanitizers = $use_sanitizers" | ||||
Show All 14 Lines |