]>
Commit | Line | Data |
---|---|---|
e6fa787a CF |
1 | depends_prefix="`dirname ${ac_site_file}`/.." |
2 | ||
1dec09b3 CF |
3 | cross_compiling=maybe |
4 | host_alias=@HOST@ | |
5 | ac_tool_prefix=${host_alias}- | |
6 | ||
7 | if test -z $with_boost; then | |
e6fa787a | 8 | with_boost=$depends_prefix |
1dec09b3 CF |
9 | fi |
10 | if test -z $with_qt_plugindir; then | |
e6fa787a | 11 | with_qt_plugindir=$depends_prefix/plugins |
1dec09b3 CF |
12 | fi |
13 | if test -z $with_qt_translationdir; then | |
e6fa787a | 14 | with_qt_translationdir=$depends_prefix/translations |
1dec09b3 CF |
15 | fi |
16 | if test -z $with_qt_bindir; then | |
e6fa787a | 17 | with_qt_bindir=$depends_prefix/native/bin |
1dec09b3 CF |
18 | fi |
19 | if test -z $with_protoc_bindir; then | |
e6fa787a | 20 | with_protoc_bindir=$depends_prefix/native/bin |
1dec09b3 | 21 | fi |
f53f490b JG |
22 | # Disable comparison utility (#592) |
23 | #if test -z $with_comparison_tool; then | |
e6fa787a | 24 | # with_comparison_tool=$depends_prefix/native/share/BitcoindComparisonTool_jar/BitcoindComparisonTool.jar |
f53f490b | 25 | #fi |
1dec09b3 CF |
26 | |
27 | ||
28 | if test -z $enable_wallet && test -n "@no_wallet@"; then | |
29 | enable_wallet=no | |
30 | fi | |
31 | ||
32 | if test -z $with_miniupnpc && test -n "@no_upnp@"; then | |
33 | with_miniupnpc=no | |
34 | fi | |
35 | ||
36 | if test -z $with_gui && test -n "@no_qt@"; then | |
37 | with_gui=no | |
38 | fi | |
39 | ||
ab720685 | 40 | if test x@host_os@ = xdarwin; then |
1dec09b3 CF |
41 | BREW=no |
42 | PORT=no | |
43 | fi | |
44 | ||
ab720685 | 45 | if test x@host_os@ = xmingw32; then |
1dec09b3 | 46 | if test -z $with_qt_incdir; then |
e6fa787a | 47 | with_qt_incdir=$depends_prefix/include |
1dec09b3 CF |
48 | fi |
49 | if test -z $with_qt_libdir; then | |
e6fa787a | 50 | with_qt_libdir=$depends_prefix/lib |
1dec09b3 CF |
51 | fi |
52 | fi | |
53 | ||
e6fa787a | 54 | PATH=$depends_prefix/native/bin:$PATH |
54566de2 CF |
55 | PKG_CONFIG="`which pkg-config` --static" |
56 | ||
57 | # These two need to remain exported because pkg-config does not see them | |
58 | # otherwise. That means they must be unexported at the end of configure.ac to | |
59 | # avoid ruining the cache. Sigh. | |
60 | ||
e6fa787a CF |
61 | export PKG_CONFIG_LIBDIR=$depends_prefix/lib/pkgconfig |
62 | export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig | |
dc66ff53 | 63 | |
e6fa787a CF |
64 | CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS" |
65 | LDFLAGS="-L$depends_prefix/lib $LDFLAGS" | |
1dec09b3 | 66 | |
54566de2 CF |
67 | CC="@CC@" |
68 | CXX="@CXX@" | |
69 | OBJC="${CC}" | |
70 | OBJCXX="${CXX}" | |
e6fa787a | 71 | CCACHE=$depends_prefix/native/bin/ccache |
1dec09b3 CF |
72 | |
73 | if test -n "@AR@"; then | |
54566de2 | 74 | AR=@AR@ |
1dec09b3 CF |
75 | ac_cv_path_ac_pt_AR=${AR} |
76 | fi | |
77 | ||
78 | if test -n "@RANLIB@"; then | |
54566de2 | 79 | RANLIB=@RANLIB@ |
1dec09b3 CF |
80 | ac_cv_path_ac_pt_RANLIB=${RANLIB} |
81 | fi | |
82 | ||
83 | if test -n "@NM@"; then | |
54566de2 | 84 | NM=@NM@ |
1dec09b3 CF |
85 | ac_cv_path_ac_pt_NM=${NM} |
86 | fi | |
87 | ||
00522cd4 CF |
88 | if test -n "@debug@"; then |
89 | enable_reduce_exports=no | |
90 | fi | |
91 | ||
1dec09b3 | 92 | if test -n "@CFLAGS@"; then |
54566de2 | 93 | CFLAGS="@CFLAGS@ $CFLAGS" |
1dec09b3 CF |
94 | fi |
95 | if test -n "@CXXFLAGS@"; then | |
54566de2 | 96 | CXXFLAGS="@CXXFLAGS@ $CXXFLAGS" |
1dec09b3 | 97 | fi |
2027ad30 | 98 | if test -n "@CPPFLAGS@"; then |
54566de2 | 99 | CPPFLAGS="@CPPFLAGS@ $CPPFLAGS" |
2027ad30 | 100 | fi |
dc66ff53 | 101 | if test -n "@LDFLAGS@"; then |
54566de2 | 102 | LDFLAGS="@LDFLAGS@ $LDFLAGS" |
dc66ff53 | 103 | fi |