Skip to content

Commit

Permalink
add --disable-tests configure option
Browse files Browse the repository at this point in the history
  • Loading branch information
Radvendii committed Apr 23, 2021
1 parent 6304782 commit 7e2c1e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = lib tinytest tests
SUBDIRS = lib

if BUILDDOC
SUBDIRS += doc
Expand All @@ -11,6 +11,10 @@ if BUILDEXAMPLES
SUBDIRS += examples
endif

if BUILDTESTS
SUBDIRS += tinytest tests
endif

.PHONY: dist-rpm

dist-rpm: distcheck
Expand Down
12 changes: 12 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,18 @@ doexamples=yes

AM_CONDITIONAL(BUILDEXAMPLES, test x$doexamples = xyes)

dotests=yes

AC_ARG_ENABLE(tests,
AS_HELP_STRING([--disable-tests], [Disable building of the tests]),
[if test "$enableval" = "no"; then dotests="no"; fi],
[
dotests=yes
]
)

AM_CONDITIONAL(BUILDTESTS, test x$dotests = xyes)

dnl Check for MinGW. Workaround for libtool's DLL_EXPORT stupidity.

case "$target" in
Expand Down

0 comments on commit 7e2c1e6

Please sign in to comment.