Extended configure.in to allow a different include path for the Scilab headers. thx to Wolfgang Frisch

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Vincent Couvert 2012-04-10 19:47:11 +00:00
commit 9c948d78d5

View file

@ -971,6 +971,7 @@ SCILABDYNAMICLINKING=
AC_ARG_WITH(scilab, AS_HELP_STRING([--without-scilab], [Disable Scilab])
AS_HELP_STRING([--with-scilab=path], [Set location of Scilab executable]),[SCILABBIN="$withval"], [SCILABBIN=yes])
AC_ARG_WITH(scilabincl,[ --with-scilabincl=path Set location of Scilab include directory],[SCILABINCDIR="$withval"], [SCILABINCDIR="/usr/include"])
# First, check for "--without-scilab" or "--with-scilab=no".
if test x"${SCILABBIN}" = xno -o x"${with_alllang}" = xno ; then
@ -989,9 +990,8 @@ fi
AC_MSG_CHECKING(for Scilab header files)
if test -n "$SCILAB"; then
SCILABDIR="/usr/include"
if test "$SCILABDIR" != ""; then
dirs="$SCILABDIR"
if test "$SCILABINCDIR" != ""; then
dirs="$SCILABINCDIR"
SCILABEXT=""
for i in $dirs; do
if test -r $i/scilab/stack.h; then