Examples Makefile.
[Faustine.git] / interpretor / lib / src / libsndfile-1.0.25 / M4 / mkoctfile_version.m4
1 dnl @synopsis OCTAVE_MKOCTFILE_VERSION
2 dnl
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>
6 dnl
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.
12 dnl
13
14 AC_DEFUN([OCTAVE_MKOCTFILE_VERSION],
15 [
16
17
18 AC_ARG_WITH(mkoctfile,
19 AC_HELP_STRING([--with-mkoctfile], [choose the mkoctfile version]),
20 [ with_mkoctfile=$withval ])
21
22 test -z "$with_mkoctfile" && with_mkoctfile=mkoctfile
23
24 AC_CHECK_PROG(HAVE_MKOCTFILE,$with_mkoctfile,yes,no)
25
26 if 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
34 AC_SUBST(MKOCTFILE)
35 AC_SUBST(MKOCTFILE_VERSION)
36
37 ])# OCTAVE_MKOCTFILE_VERSION
38