mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 23:47:39 +01:00
add --disable-tests option
Allows to skip tests build.
This commit is contained in:
parent
ad0d7633bc
commit
208a430bcb
2 changed files with 16 additions and 3 deletions
|
@ -42,7 +42,11 @@ endif
|
||||||
|
|
||||||
nodist_include_HEADERS = include/libunwind-common.h
|
nodist_include_HEADERS = include/libunwind-common.h
|
||||||
|
|
||||||
SUBDIRS = src tests
|
SUBDIRS = src
|
||||||
|
|
||||||
|
if CONFIG_TESTS
|
||||||
|
SUBDIRS += tests
|
||||||
|
endif
|
||||||
|
|
||||||
if CONFIG_DOCS
|
if CONFIG_DOCS
|
||||||
SUBDIRS += doc
|
SUBDIRS += doc
|
||||||
|
|
11
configure.ac
11
configure.ac
|
@ -129,6 +129,10 @@ AC_ARG_ENABLE(documentation,
|
||||||
AS_HELP_STRING([--disable-documentation],[Disable generating the man pages]),,
|
AS_HELP_STRING([--disable-documentation],[Disable generating the man pages]),,
|
||||||
[enable_documentation=yes])
|
[enable_documentation=yes])
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(tests,
|
||||||
|
AS_HELP_STRING([--disable-tests],[Disable tests build]),,
|
||||||
|
[enable_tests=yes])
|
||||||
|
|
||||||
AC_MSG_CHECKING([if we should build libunwind-setjmp])
|
AC_MSG_CHECKING([if we should build libunwind-setjmp])
|
||||||
AC_MSG_RESULT([$enable_setjmp])
|
AC_MSG_RESULT([$enable_setjmp])
|
||||||
|
|
||||||
|
@ -396,7 +400,12 @@ if test "x$enable_documentation" = "xyes"; then
|
||||||
AC_CONFIG_FILES(doc/Makefile doc/common.tex)
|
AC_CONFIG_FILES(doc/Makefile doc/common.tex)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CONFIG_FILES(Makefile src/Makefile tests/Makefile tests/check-namespace.sh
|
AM_CONDITIONAL([CONFIG_TESTS], [test x$enable_tests = xyes])
|
||||||
|
if test "x$enable_tests" = "xyes"; then
|
||||||
|
AC_CONFIG_FILES(tests/Makefile tests/check-namespace.sh)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CONFIG_FILES(Makefile src/Makefile
|
||||||
include/libunwind-common.h
|
include/libunwind-common.h
|
||||||
include/libunwind.h include/tdep/libunwind_i.h)
|
include/libunwind.h include/tdep/libunwind_i.h)
|
||||||
AC_CONFIG_FILES(src/unwind/libunwind.pc src/coredump/libunwind-coredump.pc
|
AC_CONFIG_FILES(src/unwind/libunwind.pc src/coredump/libunwind-coredump.pc
|
||||||
|
|
Loading…
Reference in a new issue