blob: 49f1fdc3326a4a5574b6316ba148f726fdfea073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#----------------------------------------------------------------
# Look for SWIG
#----------------------------------------------------------------
AC_DEFUN([SW_PROG_SWIG],
[
AC_ARG_WITH(swigbin,[ --with-swigbin=path Set location of swig executable],[ SWIGBIN="$withval"], [SWIGBIN=])
AC_ARG_ENABLE(swig,[ --enable-swig=path Run swig to generate new source default=no],, enable_swig=no)
if test -z "$SWIGBIN"; then
AC_PATH_PROG(SWIG, swig)
else
AC_PATH_PROG(SWIG, swig, "not found", $SWIGBIN)
fi
runswig=true
if test x"$SWIG"="xnot found"; then
runswig=false
fi
if test x"$enable_swig"="xno"; then
runswig=false
fi
AM_CONDITIONAL(RUNSWIG, test x$runswig = xtrue)
#ac_cv_swigversion=``
])
|