Browse files

Check for /usr/bin/swig2.0 too.

SWIG 2 is named that way on Debian-based systems...
  • Loading branch information...
1 parent 6ed5040 commit d082c472e5318eee8b651d709fbcca86464e4c97 Alexey Sokolov committed with psychon Nov 3, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 m4/ac_pkg_swig.m4
6 m4/ac_pkg_swig.m4
@@ -1,5 +1,7 @@
dnl @synopsis AC_PROG_SWIG([major.minor.micro])
+dnl NOTICE: for new code, use instead.
dnl This macro searches for a SWIG installation on your system. If
dnl found you should call SWIG via $(SWIG). You can use the optional
dnl first argument to check if the version of the available SWIG is
@@ -26,10 +28,12 @@ dnl @version 2004-09-20
dnl Modified by Alexey Sokolov <> on 2011-05-06
dnl @license GPLWithACException
+dnl NOTICE: for new code, use instead.
- AC_PATH_PROG([SWIG],[swig])
+ AC_PATH_PROGS([SWIG],[swig swig2.0])
if test -z "$SWIG" ; then
dnl AC_MSG_WARN([cannot find 'swig' program. You should look at])
SWIG_ERROR='SWIG is not installed. You should look at'

0 comments on commit d082c47

Please sign in to comment.