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