diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-04 05:27:28 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:37 -0400 |
commit | 90975c27d0a701a66ee4d24ea8f08a12eda6cfce (patch) | |
tree | 12772454b1778051d2e239e10b4084e57be9a122 /configure.in | |
parent | 6489868434bd2fb4bc6ae5ad102a50c2a2e15e8e (diff) | |
download | fork-ledger-90975c27d0a701a66ee4d24ea8f08a12eda6cfce.tar.gz fork-ledger-90975c27d0a701a66ee4d24ea8f08a12eda6cfce.tar.bz2 fork-ledger-90975c27d0a701a66ee4d24ea8f08a12eda6cfce.zip |
Corrected build problems.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/configure.in b/configure.in index f8e0b956..20798aaa 100644 --- a/configure.in +++ b/configure.in @@ -347,6 +347,35 @@ else AM_CONDITIONAL(HAVE_BOOST_PYTHON, false) fi +# check for CppUnit +AC_CACHE_CHECK( + [if cppunit is available], + [cppunit_avail], + [cppunit_save_libs=$LIBS + LIBS="-lcppunit $LIBS" + AC_LANG_PUSH(C++) + AC_TRY_LINK( + [#include <cppunit/CompilerOutputter.h> + #include <cppunit/TestResult.h> + #include <cppunit/TestResultCollector.h> + #include <cppunit/TestRunner.h> + #include <cppunit/TextTestProgressListener.h> + #include <cppunit/BriefTestProgressListener.h> + #include <cppunit/XmlOutputter.h> + #include <cppunit/extensions/TestFactoryRegistry.h>], + [CPPUNIT_NS::TestResult controller; + CPPUNIT_NS::TestResultCollector result;], + [cppunit_avail=true], + [cppunit_avail=false]) + AC_LANG_POP + LIBS=$cppunit_save_libs]) + +if [test x$cppunit_avail = xtrue ]; then + AM_CONDITIONAL(HAVE_CPPUNIT, true) +else + AM_CONDITIONAL(HAVE_CPPUNIT, false) +fi + # Check for options AC_ARG_ENABLE(debug, [ --enable-debug Turn on debugging], |