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