[Mockpp-commits] mockpp/config ac_cxx_cxxtest.m4,NONE,1.1
Brought to you by:
ewald-arnold
|
From: Ewald A. <ewa...@us...> - 2005-12-10 15:15:24
|
Update of /cvsroot/mockpp/mockpp/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12553/config Added Files: ac_cxx_cxxtest.m4 Log Message: new --- NEW FILE: ac_cxx_cxxtest.m4 --- AC_DEFUN([EA_CHECK_LIBCXXTEST], [ AC_CHECK_HEADERS(cxxtest/TestSuite.h) # "Unusual" places for cxxtest cxxtest_inc_dirs="/usr/include /usr/local/include `pwd`/3party/cxxtest" if test x$enable_builtin_cxxtest = xyes; then cxxtest_inc_dirs="$cxxtest_inc_dirs $srcdir/3party/cxxtest" fi cxxtest_lib_dirs="/usr/lib /usr/local/lib" if test x$enable_builtin_cxxtest = xyes; then cxxtest_lib_dirs="$cxxtest_lib_dirs $srcdir/3party/cxxtest" fi if test "ac_cv_header_cxxtest_TestSuite_h" != "yes"; then echo "checking for cxxtest/TestCase.h at $cxxtest_inc_dirs" EA_FIND_FILE(cxxtest/TestSuite.h, $cxxtest_inc_dirs, cxxtest_inc, dummy) if test x$cxxtest_inc != xNO; then echo "found cxxtest/TestCase.h at $cxxtest_inc" EA_EXTRA_INC="$EA_EXTRA_INC -I$cxxtest_inc" AC_DEFINE(HAVE_CXXTEST, 1, [Define if you have CxxTest installed.]) else echo "*******************************************************" echo "*** cxxtest/TestSuite.h not found." echo "*******************************************************" AH_TEMPLATE(HAVE_CXXTEST, [Define if you have CxxTest installed.]) fi fi echo "checking for *cxxtest.la *cxxtest.so* *cxxtest.a* *cxxtest*.dll* at $cxxtest_lib_dirs" EA_FIND_FILE(cxxtest.la *cxxtest.so* *cxxtest*.a *cxxtest*.dll*, $cxxtest_lib_dirs, cxxtest_lib, cxxtest_name) if test x$cxxtest_lib != xNO; then echo "found cxxtest as $cxxtest_name at $cxxtest_lib" LIBCXXTEST="-l$cxxtest_name" EA_EXTRA_LIB="$EA_EXTRA_LIB -L$cxxtest_lib" else echo "*******************************************************" echo "*** *cxxtest.{la,so,a,dll}* not found." echo "*******************************************************" fi AC_SUBST(LIBCXXTEST) ]) |