From d994d4702855cc3c19a3ed0beafbb7a79d8a34cc Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 13 Dec 2012 22:37:09 +0000 Subject: [PATCH] Check for yodl >= 2.02. 1.31.18 is known not to work and 2.01.00 to 2.01.03 gave an error message git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13959 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- configure.in | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index ef7c2d0b7..1c31b74a0 100644 --- a/configure.in +++ b/configure.in @@ -118,7 +118,7 @@ AC_SUBST(ENABLE_CCACHE) echo "" echo "Checking packages required for SWIG developers." -echo "Note : None of the following packages are required for users to compile and install SWIG" +echo "Note : None of the following packages are required for users to compile and install SWIG from the distributed tarball" echo "" AC_PROG_YACC @@ -128,11 +128,22 @@ AC_SUBST(AR) AC_CHECK_PROGS(YODL2MAN, yodl2man) AC_CHECK_PROGS(YODL2HTML, yodl2html) +if test -n "$YODL2MAN"; then + AC_MSG_CHECKING([yodl2man version >= 2.02]) + yodl_version=`$YODL2MAN --version 2>&1 | grep 'yodl version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.*[0-9]*\).*/\1/g'` + AX_COMPARE_VERSION([$yodl_version],[ge],[2.02], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no - $yodl_version found])]) +fi + +if test -n "$YODL2HTML"; then + AC_MSG_CHECKING([yodl2html version >= 2.02]) + yodl_version=`$YODL2HTML --version 2>&1 | grep 'yodl version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` + AX_COMPARE_VERSION([$yodl_version],[ge],[2.02], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no - $yodl_version found])]) +fi echo "" echo "Checking for installed target languages and other information in order to compile and run" echo "the examples and test-suite invoked by 'make check'." -echo "Note : None of the following packages are required for users to compile and install SWIG" +echo "Note : None of the following packages are required for users to compile and install SWIG from the distributed tarball" echo "" dnl Some test cases require Boost