forked from libbitcoin/libbitcoin-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
59 lines (48 loc) · 1.66 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
AC_INIT([libbitcoin], [1.0.10], [[email protected]])
AC_USE_SYSTEM_EXTENSIONS
AC_LANG(C++)
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror])
AM_PROG_AR
LT_INIT
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_GNU_SOURCE
AX_CXX_COMPILE_STDCXX_11(noext,mandatory)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_ARG_ENABLE(leveldb,
[AC_HELP_STRING([--enable-leveldb],
[Build LevelDB support.])],
[bld_leveldb="$enable_leveldb"], [bld_leveldb="no"])
AM_CONDITIONAL([DO_LEVELDB], [test "$enable_leveldb" = "yes"])
AC_MSG_CHECKING(--enable-testnet argument)
AC_ARG_ENABLE(testnet,
[ --enable-testnet Enable testnet],
[enable_testnet=$enableval],
[enable_testnet="no"])
AC_MSG_RESULT($enable_testnet)
if test "$enable_testnet" = "yes"; then
AC_DEFINE(ENABLE_TESTNET)
fi
AX_BOOST_BASE
#AX_BOOST_SYSTEM
#AX_BOOST_THREAD
PKG_PROG_PKG_CONFIG
if test "$bld_leveldb" = "yes"; then
AC_SUBST(LDFLAG_LEVELDB)
LDFLAG_LEVELDB="-lleveldb"
AC_SUBST(CFLAG_LEVELDB)
CFLAG_LEVELDB="-DLEVELDB_ENABLED"
fi
AM_CXXFLAGS="-ggdb -g3 -Wall -Wno-missing-braces -pedantic -Wextra -fstack-protector-all -DDEBUG -fvisibility=internal -fvisibility-inlines-hidden"
AC_SUBST([AM_CXXFLAGS])
PKG_CHECK_MODULES([SSL], [libssl >= 0.9])
PKG_CHECK_MODULES([CURL], [libcurl])
PKG_CHECK_MODULES([libsecp256k1], [libsecp256k1])
AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH],
[Path to the pkgconfig directory [[LIBDIR/pkgconfig]]]),
[pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig'])
AC_SUBST([pkgconfigdir])
AC_CONFIG_FILES([Makefile include/bitcoin/Makefile src/Makefile libbitcoin.pc])
AC_OUTPUT