# cxxtest under <cxxtest-root>/bin/cxxtest
AC_PATH_PROGS(CXXTESTGEN,
cxxtestgen.pl cxxtestgen.py cxxtestgen,
- [
- AC_MSG_NOTICE([unit tests disabled, \
- could not find cxxtestgen.pl or \
- cxxtestgen.py or cxxtestgen])
- CXXTEST=
- ],
+ [],
[$CXXTEST:$CXXTEST/bin:$PATH])
- if test -n "$CXXTESTGEN" -a "`basename $CXXTESTGEN`" = "cxxtestgen.pl"; then
- if test -z "$PERL"; then
- AC_CHECK_PROGS(PERL, perl, perl, [])
- else
- AC_CHECK_PROG(PERL, "$PERL", "$PERL", [])
- fi
+ if test -n "$CXXTESTGEN"; then
+ if "`basename $CXXTESTGEN`" = "cxxtestgen.pl"; then
+ if test -z "$PERL"; then
+ AC_CHECK_PROGS(PERL, perl, perl, [])
+ else
+ AC_CHECK_PROG(PERL, "$PERL", "$PERL", [])
+ fi
- if test -z "$PERL"; then
- AC_MSG_WARN([unit tests disabled, perl not found.])
- CXXTESTGEN=
- CXXTEST=
+ if test -z "$PERL"; then
+ AC_MSG_WARN([unit tests disabled, perl not found.])
+ CXXTESTGEN=
+ CXXTEST=
+ fi
fi
+ else
+ AC_MSG_NOTICE([unit tests disabled, could not find cxxtestgen.pl or cxxtestgen.py or cxxtestgen])
+ CXXTEST=
fi
# check if CxxTest headers exist and set include paths accordingly