autoconf checks must not be inside conditional code (fixes 'conditional AMDEP was never defined' error)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@301 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
parent
c5f68abe35
commit
620c506f96
|
@ -26,12 +26,13 @@ AC_ARG_ENABLE(integration-tests,
|
|||
[enables tests outside of the library (can be used together with normal builds of the library)]),
|
||||
enable_integration_tests="$enableval", enable_integration_tests="no")
|
||||
|
||||
AC_CHECK_HEADERS(signal.h)
|
||||
|
||||
# cppunit needed?
|
||||
if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
|
||||
CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || AC_MSG_ERROR("cppunit-config --cflags failed - is it installed?")
|
||||
CPPUNIT_LDFLAGS=`cppunit-config --libs` || AC_MSG_ERROR("cppunit-config --libs failed - is it installed?")
|
||||
CPPUNIT_TESTS=client-test
|
||||
AC_CHECK_HEADERS(signal.h)
|
||||
fi
|
||||
AC_SUBST(CPPUNIT_CXXFLAGS)
|
||||
AC_SUBST(CPPUNIT_LDFLAGS)
|
||||
|
|
Loading…
Reference in a new issue