Permalink
Browse files

scilab: in configure, use pkg-config + disable scilab if headers not …

…found
  • Loading branch information...
1 parent 821118d commit 7cc6a58afb9f333c0ec93a1d12cfa0a0e175143d @smarchetto smarchetto committed Jun 26, 2014
Showing with 4 additions and 3 deletions.
  1. +4 −3 configure.ac
View
@@ -1028,20 +1028,21 @@ else
if test "$SCILABINCDIR" != ""; then
dirs="$SCILABINCDIR"
else
- dirs="/usr/local/include /usr/include /opt/local/include"
+ dirs=`pkg-config scilab --cflags-only-I | sed -e 's/-I//g'`
fi
for i in $dirs; do
- if test -r $i/scilab/api_scilab.h; then
+ if test -r $i/api_scilab.h; then
SCILABINCLUDE="$i"
break;
fi
- if test -r $i/scilab/scilab/api_scilab.h; then
+ if test -r $i/scilab/api_scilab.h; then
SCILABINCLUDE="$i/scilab"
break;
fi
done
if test "$SCILABINCLUDE" = "" ; then
AC_MSG_RESULT(not found)
+ SCILAB=
else
AC_MSG_RESULT($SCILABINCLUDE)
fi

0 comments on commit 7cc6a58

Please sign in to comment.