Merge #10175: Remove excess logic.
[bitcoinplatinum.git] / depends / config.site.in
blob3d7c9fd43c7a87cfb8fc56fb504f525a2f8bfe15
1 depends_prefix="`dirname ${ac_site_file}`/.."
3 cross_compiling=maybe
4 host_alias=@HOST@
5 ac_tool_prefix=${host_alias}-
7 if test -z $with_boost; then
8   with_boost=$depends_prefix
9 fi
10 if test -z $with_qt_plugindir; then
11   with_qt_plugindir=$depends_prefix/plugins
13 if test -z $with_qt_translationdir; then
14   with_qt_translationdir=$depends_prefix/translations
16 if test -z $with_qt_bindir; then
17   with_qt_bindir=$depends_prefix/native/bin
19 if test -z $with_protoc_bindir; then
20   with_protoc_bindir=$depends_prefix/native/bin
24 if test -z $enable_wallet && test -n "@no_wallet@"; then
25   enable_wallet=no
28 if test -z $with_miniupnpc && test -n "@no_upnp@"; then
29   with_miniupnpc=no
32 if test -z $with_gui && test -n "@no_qt@"; then
33   with_gui=no
36 if test x@host_os@ = xdarwin; then
37   BREW=no
38   PORT=no
41 if test x@host_os@ = xmingw32; then
42   if test -z $with_qt_incdir; then
43     with_qt_incdir=$depends_prefix/include
44   fi
45   if test -z $with_qt_libdir; then
46     with_qt_libdir=$depends_prefix/lib
47   fi
50 PATH=$depends_prefix/native/bin:$PATH
51 PKG_CONFIG="`which pkg-config` --static"
53 # These two need to remain exported because pkg-config does not see them
54 # otherwise. That means they must be unexported at the end of configure.ac to
55 # avoid ruining the cache. Sigh.
57 export PKG_CONFIG_LIBDIR=$depends_prefix/lib/pkgconfig
58 export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig
60 CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS"
61 LDFLAGS="-L$depends_prefix/lib $LDFLAGS"
63 CC="@CC@"
64 CXX="@CXX@"
65 OBJC="${CC}"
66 CCACHE=$depends_prefix/native/bin/ccache
67 PYTHONPATH=$depends_prefix/native/lib/python/dist-packages:$PYTHONPATH
69 if test -n "@AR@"; then
70   AR=@AR@
71   ac_cv_path_ac_pt_AR=${AR}
74 if test -n "@RANLIB@"; then
75   RANLIB=@RANLIB@
76   ac_cv_path_ac_pt_RANLIB=${RANLIB}
79 if test -n "@NM@"; then
80   NM=@NM@
81   ac_cv_path_ac_pt_NM=${NM}
84 if test -n "@debug@"; then
85   enable_reduce_exports=no
88 if test -n "@CFLAGS@"; then
89   CFLAGS="@CFLAGS@ $CFLAGS"
91 if test -n "@CXXFLAGS@"; then
92   CXXFLAGS="@CXXFLAGS@ $CXXFLAGS"
94 if test -n "@CPPFLAGS@"; then
95   CPPFLAGS="@CPPFLAGS@ $CPPFLAGS"
97 if test -n "@LDFLAGS@"; then
98   LDFLAGS="@LDFLAGS@ $LDFLAGS"