diff --git a/SWIG/configure.in b/SWIG/configure.in index a707d26c5..c4038f590 100644 --- a/SWIG/configure.in +++ b/SWIG/configure.in @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. dnl The macros which aren't shipped with the autotools are stored in the dnl Tools/config directory in .m4 files. -AC_INIT([swig],[1.3.29],[http://www.swig.org]) +AC_INIT([swig],[1.3.30],[http://www.swig.org]) AC_PREREQ(2.58) AC_CONFIG_SRCDIR([Source/Swig/swig.h]) AC_CONFIG_AUX_DIR([Tools/config]) @@ -1373,15 +1373,16 @@ fi AC_ARG_WITH(chickencsc,[ --with-chickencsc=path Set location of csc executable],[ CHICKEN_CSC="$withval"], [CHICKEN_CSC=]) if test -z "$CHICKEN_CSC"; then - AC_CHECK_PROGS(TEMP_CSC, csc) - # Both mono (C#) and chicken have an executable called csc, so check that this csc is really the chicken one - AC_MSG_CHECKING(if csc is the chicken compiler) - VER_OUTPUT=`$TEMP_CSC -version | grep chicken` - if test -n "$VER_OUTPUT"; then - CHICKEN_CSC="$TEMP_CSC" - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) + AC_CHECK_PROGS(CHICKEN_CSC, csc) + # Both the Microsoft C# compiler and chicken have an executable called csc, so check that this csc is really the chicken one + if test -n "$CHICKEN_CSC" ; then + AC_MSG_CHECKING(whether csc is the chicken compiler) + $CHICKEN_CSC -version 2>/dev/null | grep "chicken" > /dev/null || CHICKEN_CSC="" + if test -z "$CHICKEN_CSC"; then + AC_MSG_RESULT(no) + else + AC_MSG_RESULT(yes) + fi fi fi