From e5f6768c96d1b7369dbc6cf028a2c554477ba427 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Tue, 28 Jun 2011 18:12:54 +0200 Subject: [PATCH] Fix htools, QuickCheck library detection and tests Just saw this while testing the migration to QuickCheck v2: while configure.ac detects that QuickCheck-2.x is not available, the test in Makefile.am was against WANT_HTOOLS (overall htools compilation), not on a more-specific WANT_HTOOLSTESTS. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- Makefile.am | 2 +- configure.ac | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index f8f836b24..20f82939d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -665,7 +665,7 @@ dist_TESTS = \ $(python_tests) nodist_TESTS = -if WANT_HTOOLS +if WANT_HTOOLSTESTS nodist_TESTS += $(haskell_tests) endif diff --git a/configure.ac b/configure.ac index a10146133..1886facd7 100644 --- a/configure.ac +++ b/configure.ac @@ -431,6 +431,7 @@ AC_SUBST(HTOOLS_APIDOC) fi # end if enable_htools, define automake conditions AM_CONDITIONAL([WANT_HTOOLS], [test x$HTOOLS = xyes]) +AM_CONDITIONAL([WANT_HTOOLSTESTS], [test x$GHC_PKG_QUICKCHECK != x]) AM_CONDITIONAL([WANT_HTOOLSAPIDOC], [test x$HTOOLS_APIDOC = xyes]) SOCAT_USE_ESCAPE= -- GitLab