AC_DEFUN([AC_PROG_SCILAB],[ AC_REQUIRE([AC_EXEEXT])dnl AC_PATH_PROG(SCILAB, scilab$EXEEXT, nocommand) if test "$SCILAB" = nocommand; then AC_MSG_ERROR([scilab not found in $PATH]) else SCILAB=`readlink -f "$SCILAB"` SCILAB_INC=`dirname "$SCILAB"` SCILAB_INC=`dirname "$SCILAB_INC"` SCILAB_INC="$SCILAB_INC/routines" AC_DEFINE([HAVE_SCILAB], [], [Define if scilab is present]) AC_SUBST(SCILAB) AC_SUBST(SCILAB_INC) fi;dnl ])