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