Chris@40: dnl @synopsis OCTAVE_MKOCTFILE_VERSION Chris@40: dnl Chris@40: dnl Find the version of mkoctfile. Chris@40: dnl @version 1.0 Aug 23 2007 Chris@40: dnl @author Erik de Castro Lopo Chris@40: dnl Chris@40: dnl Permission to use, copy, modify, distribute, and sell this file for any Chris@40: dnl purpose is hereby granted without fee, provided that the above copyright Chris@40: dnl and this permission notice appear in all copies. No representations are Chris@40: dnl made about the suitability of this software for any purpose. It is Chris@40: dnl provided "as is" without express or implied warranty. Chris@40: dnl Chris@40: Chris@40: AC_DEFUN([OCTAVE_MKOCTFILE_VERSION], Chris@40: [ Chris@40: Chris@40: Chris@40: AC_ARG_WITH(mkoctfile, Chris@40: AC_HELP_STRING([--with-mkoctfile], [choose the mkoctfile version]), Chris@40: [ with_mkoctfile=$withval ]) Chris@40: Chris@40: test -z "$with_mkoctfile" && with_mkoctfile=mkoctfile Chris@40: Chris@40: AC_CHECK_PROG(HAVE_MKOCTFILE,$with_mkoctfile,yes,no) Chris@40: Chris@40: if test "x$ac_cv_prog_HAVE_MKOCTFILE" = "xyes" ; then Chris@40: MKOCTFILE=$with_mkoctfile Chris@40: Chris@40: AC_MSG_CHECKING([for version of $MKOCTFILE]) Chris@40: MKOCTFILE_VERSION=`$with_mkoctfile --version 2>&1 | sed 's/mkoctfile, version //g'` Chris@40: AC_MSG_RESULT($MKOCTFILE_VERSION) Chris@40: fi Chris@40: Chris@40: AC_SUBST(MKOCTFILE) Chris@40: AC_SUBST(MKOCTFILE_VERSION) Chris@40: Chris@40: ])# OCTAVE_MKOCTFILE_VERSION Chris@40: