[cpp-xmltooling] 03/22: Prefer the plain cxxtestgen program

Scott Cantor cantor.2 at osu.edu
Thu Jun 21 14:57:19 EDT 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-xmltooling.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=f65cd0b512a3aa64826a25ef8c9187ff18d48fab

commit f65cd0b512a3aa64826a25ef8c9187ff18d48fab
Author: Ferenc Wágner <wferi at niif.hu>
AuthorDate: Wed Jul 6 09:32:40 2016 +0200

    Prefer the plain cxxtestgen program
    
    cxxtestgen.pl was removed in 2009.
---
 configure.ac | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1e2a8df..11ccc04 100644
--- a/configure.ac
+++ b/configure.ac
@@ -362,21 +362,9 @@ AC_LINK_IFELSE(
     [AC_DEFINE([HAVE_ITERATOR_TRAITS],[1],[Define to 1 if you have an STL implementation that supports std::iterator_traits.])],[])
 
 # Check for unit test support
-CXXTEST="/usr/bin/cxxtestgen.pl"
-CXXTESTFLAGS=""
-AC_ARG_WITH(cxxtest,
-    AS_HELP_STRING([--with-cxxtest=PATH], [where cxxtest is installed]),
-    [if test x_$with_cxxtest != x_/usr; then
-        CXXTEST="${with_cxxtest}/cxxtestgen.pl"
-        CXXTESTFLAGS="-I${with_cxxtest}"
-    fi])
-if ! test -f "${CXXTEST}"; then
-    AC_MSG_WARN([cxxtestgen not found, won't build unit tests])
-fi
-
-AC_SUBST(CXXTEST)
-AC_SUBST(CXXTESTFLAGS)
-AM_CONDITIONAL(BUILD_UNITTEST,test -f ${CXXTEST})
+AC_ARG_VAR([CXXTEST], [override the cxxtestgen executable and options])
+AC_CHECK_PROGS([CXXTEST], [cxxtestgen cxxtestgen.pl], [false])
+AM_CONDITIONAL([BUILD_UNITTEST], [test "x${CXXTEST}" != xfalse])
 
 AX_CREATE_PKGCONFIG_INFO(,,[$XMLSEC_LIBS -lxmltooling],[OpenSAML XMLTooling-C library])
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list