Skip to content

Commit 6893d74

Browse files
committed
Merge pull request #3322
26d1b65 src/Makefile.am: Simplify clean of leveldb (Josh Triplett) a26a367 configure.ac: Check for miniupnpc headers, not just -lminiupnpc (Josh Triplett) 82ccb05 autogen.sh: Stop passing --verbose to autoreconf (Josh Triplett) e12dafd autogen.sh: Use long options to autoreconf, for self-documentation (Josh Triplett) 19b9add autogen.sh: Support running from outside the source directory (Josh Triplett) 97d285a autogen.sh: Use set -e to fail if any command fails (Josh Triplett) f80b723 autogen.sh: Add a /bin/sh shebang. (Josh Triplett)
2 parents 05e27c6 + 26d1b65 commit 6893d74

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

autogen.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
autoreconf -vif
1+
#!/bin/sh
2+
set -e
3+
srcdir="$(dirname $0)"
4+
cd "$srcdir"
5+
autoreconf --install --force

configure.ac

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,11 @@ fi
376376

377377
dnl Check for libminiupnpc (optional)
378378
if test x$use_upnp != xno; then
379-
AC_CHECK_LIB([miniupnpc], [main],, [have_miniupnpc=no])
379+
AC_CHECK_HEADERS(
380+
[miniupnpc/miniwget.h miniupnpc/miniupnpc.h miniupnpc/upnpcommands.h miniupnpc/upnperrors.h],
381+
[AC_CHECK_LIB([miniupnpc], [main],, [have_miniupnpc=no])],
382+
[have_miniupnpc=no]
383+
)
380384
fi
381385

382386
dnl Check for boost libs

src/Makefile.am

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,4 @@ EXTRA_DIST = leveldb Makefile.include
135135

136136
clean-local:
137137
-$(MAKE) -C leveldb clean
138-
rm -f leveldb/port/*.gcno leveldb/db/*.gcno leveldb/table/*.gcno leveldb/helpers/*.gcno
139-
rm -f leveldb/util/*.gcno leveldb/helpers/memenv/*.gcno
138+
rm -f leveldb/*/*.gcno leveldb/helpers/memenv/*.gcno

0 commit comments

Comments
 (0)