Skip to content

Commit

Permalink
Merge bitcoin#8293: Bugfix: Allow building libbitcoinconsensus withou…
Browse files Browse the repository at this point in the history
…t any univalue

8a270b2 Bugfix: Allow building libbitcoinconsensus without any univalue (Luke Dashjr)
  • Loading branch information
laanwj committed Aug 13, 2016
2 parents fe1780e + 8a270b2 commit efce84d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,12 @@ fi

dnl univalue check

need_bundled_univalue=yes

if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnonononono; then
need_bundled_univalue=no
else

if test x$system_univalue != xno ; then
found_univalue=no
if test x$use_pkgconfig = xyes; then
Expand All @@ -855,18 +861,22 @@ if test x$system_univalue != xno ; then

if test x$found_univalue = xyes ; then
system_univalue=yes
need_bundled_univalue=no
elif test x$system_univalue = xyes ; then
AC_MSG_ERROR([univalue not found])
else
system_univalue=no
fi
fi

if test x$system_univalue = xno ; then
if test x$need_bundled_univalue = xyes ; then
UNIVALUE_CFLAGS='-I$(srcdir)/univalue/include'
UNIVALUE_LIBS='univalue/libunivalue.la'
fi
AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$system_univalue = xno])

fi

AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$need_bundled_univalue = xyes])
AC_SUBST(UNIVALUE_CFLAGS)
AC_SUBST(UNIVALUE_LIBS)

Expand Down Expand Up @@ -1105,7 +1115,7 @@ PKGCONFIG_LIBDIR_TEMP="$PKG_CONFIG_LIBDIR"
unset PKG_CONFIG_LIBDIR
PKG_CONFIG_LIBDIR="$PKGCONFIG_LIBDIR_TEMP"

if test x$system_univalue = xno; then
if test x$need_bundled_univalue = xyes; then
AC_CONFIG_SUBDIRS([src/univalue])
fi

Expand Down

0 comments on commit efce84d

Please sign in to comment.