diff --git a/Makefile.am b/Makefile.am index 5402499..00623a1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,11 @@ NULL = ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = python_modules common tests docs +SUBDIRS = python_modules common docs + +if ENABLE_TESTS +SUBDIRS += tests +endif EXTRA_DIST = \ meson.build \ diff --git a/configure.ac b/configure.ac index 9d10287..2dba7c8 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,13 @@ AC_SEARCH_LIBS(regcomp, [regex rx]) SPICE_CHECK_SYSDEPS SPICE_EXTRA_CHECKS +AC_ARG_ENABLE([tests], + AS_HELP_STRING([--enable-tests], + [Enable tests @<:@default=yes@:>@]), + [], + enable_tests="yes") +AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "xyes") + AC_ARG_ENABLE([alignment-checks], AS_HELP_STRING([--enable-alignment-checks], [Enable runtime checks for cast alignment @<:@default=no@:>@]),