Make the tests subdirectory optional.
Otherwise build breaks when check is not installed.
This commit is contained in:
parent
caf979a4c5
commit
936b766905
@ -1,4 +1,7 @@
|
||||
SUBDIRS = src . tests
|
||||
if COND_WANT_TESTS
|
||||
MAYBE_TESTS = tests
|
||||
endif
|
||||
SUBDIRS = src . $(MAYBE_TESTS)
|
||||
|
||||
dist_man_MANS = bip.1 bip.conf.5 bipmkpw.1
|
||||
|
||||
|
@ -44,6 +44,7 @@ PKG_CHECK_MODULES([CHECK], [check >= 0.9.6], [
|
||||
AC_CONFIG_FILES([tests/Makefile])
|
||||
enable_tests=yes
|
||||
], [ enable_tests=no ])
|
||||
AM_CONDITIONAL([COND_WANT_TESTS], [test "$enable_tests" = yes])
|
||||
|
||||
AC_CHECK_FUNC(backtrace_symbols_fd, [
|
||||
AC_DEFINE(HAVE_BACKTRACE, [], [Use glibc backtrace on fatal()])
|
||||
|
Loading…
Reference in New Issue
Block a user