From 7a5b2c37ea0b4ec81fbe8be7c1d7f9bf1731439e Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 22 Jun 2010 11:45:17 +0200 Subject: Build test tools also under autoconf The tests can be disabled by using --enable-test=no in configure. Signed-off-by: Henrik Rydberg --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index cb59c11..3a033ab 100644 --- a/configure.ac +++ b/configure.ac @@ -21,6 +21,14 @@ AC_PROG_LIBTOOL AC_PROG_CC AC_PROG_INSTALL +# Optional test build +AC_ARG_ENABLE(test, + AC_HELP_STRING([--enable-test], + [Build test programs [[default=auto]]]), + [build_test="$enableval"], + [build_test="auto"]) +AM_CONDITIONAL(BUILD_TEST, [ test "$build_test" != "no" ]) + # Initialize X.Org macros m4_ifndef([XORG_MACROS_VERSION], [m4_fatal([must install xorg-macros 1.5 or later before running autoconf/autogen])]) @@ -29,5 +37,6 @@ XORG_DEFAULT_OPTIONS AC_CONFIG_FILES([Makefile src/Makefile + test/Makefile mtdev.pc]) AC_OUTPUT -- cgit v1.2.3