1 dnl @synopsis OCTAVE_MKOCTFILE_VERSION
3 dnl Find the version of mkoctfile.
4 dnl @version 1.0 Aug 23 2007
5 dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
7 dnl Permission to use, copy, modify, distribute, and sell this file for any
8 dnl purpose is hereby granted without fee, provided that the above copyright
9 dnl and this permission notice appear in all copies. No representations are
10 dnl made about the suitability of this software for any purpose. It is
11 dnl provided "as is" without express or implied warranty.
14 AC_DEFUN([OCTAVE_MKOCTFILE_VERSION],
18 AC_ARG_WITH(mkoctfile,
19 AC_HELP_STRING([--with-mkoctfile], [choose the mkoctfile version]),
20 [ with_mkoctfile=$withval ])
22 test -z "$with_mkoctfile" && with_mkoctfile=mkoctfile
24 AC_CHECK_PROG(HAVE_MKOCTFILE,$with_mkoctfile,yes,no)
26 if test "x$ac_cv_prog_HAVE_MKOCTFILE" = "xyes" ; then
27 MKOCTFILE=$with_mkoctfile
29 AC_MSG_CHECKING([for version of $MKOCTFILE])
30 MKOCTFILE_VERSION=`$with_mkoctfile --version 2>&1 | sed 's/mkoctfile, version //g'`
31 AC_MSG_RESULT($MKOCTFILE_VERSION)
35 AC_SUBST(MKOCTFILE_VERSION)
37 ])# OCTAVE_MKOCTFILE_VERSION