Permalink
Browse files

add a check for swig2.0 binary

we need to check with another var SWIG20_EXE
because AC_PATH_PROG cache the result on his first parameter
  • Loading branch information...
1 parent ecd9c59 commit ced6980164184f67e9cc224ef61458c5a5facfb1 Fneufneu committed Oct 1, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 configure.in
View
@@ -1586,6 +1586,12 @@ fi
echo "Checking for SWIG installation"
AC_PATH_PROG(SWIG_EXE, swig, "none")
if test "$SWIG_EXE" = "none"; then
+ AC_CHECK_PROG(SWIG20_EXE, swig2.0, , "none")
+ if test "$SWIG20_EXE" != "none" ; then
+ SWIG_EXE=$SWIG20_EXE
+ fi
+fi
+if test "$SWIG_EXE" = "none"; then
AC_MSG_ERROR($missing_program)
fi
final_message="$final_message\n SWIG Available:\tYes"

0 comments on commit ced6980

Please sign in to comment.