From e6e851da50cd482ffd61d3c3cdb4928096cace55 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 25 Nov 2010 21:35:19 +0100 Subject: [PATCH] Allow omitting arg to --with-swfdec-testsuite to default to where 'make fetch-swfdec' will put things --- configure.ac | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index ace02c52f..a23c72c72 100644 --- a/configure.ac +++ b/configure.ac @@ -2202,11 +2202,16 @@ AM_CONDITIONAL(MING_VERSION_0_4_4, [ test $MING_VERSION_CODE -ge 00040400 ]) if test x$cross_compiling = xno; then - AC_ARG_WITH([swfdec_testsuite], - AC_HELP_STRING([--with-swfdec-testsuite], - [directory where swfdec testsuite (the 'test' dir) is]), - SWFDEC_TESTSUITE=${withval}) - AC_SUBST(SWFDEC_TESTSUITE) + AC_ARG_WITH([swfdec_testsuite], + AC_HELP_STRING([--with-swfdec-testsuite], + [directory where swfdec testsuite (the 'test' dir) is]), + if test x"${withval}" = xyes; then + dir=`dirname $0`/testsuite/swfdec/src/test + withval=`cd ${dir} && pwd` + fi + SWFDEC_TESTSUITE=${withval} + ) + AC_SUBST(SWFDEC_TESTSUITE) fi AM_CONDITIONAL(ENABLE_SWFDEC_TESTSUITE, [ test x"$SWFDEC_TESTSUITE" != x ]) -- 2.11.4.GIT