Mercurial > octave-antonio
comparison m4/acinclude.m4 @ 20153:3b3579ad7e46 stable
Check for a modern version of sndfile in configure scripts (bug #44976).
* configure.ac: Call OCTAVE_CHECK_LIB_SNDFILE_OK after first determining that
sndfile library exists.
* m4/acinclude.m4 (OCTAVE_CHECK_LIB_SNDFILE_OK): New macro to check for a modern
version of lib sndfile with Ogg support.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 01 May 2015 21:39:09 -0700 |
parents | 81078b0e39e8 |
children |
comparison
equal
deleted
inserted
replaced
20152:8187a66039e4 | 20153:3b3579ad7e46 |
---|---|
1050 octave_cv_lib_qhull_ok=yes, | 1050 octave_cv_lib_qhull_ok=yes, |
1051 octave_cv_lib_qhull_ok=no, | 1051 octave_cv_lib_qhull_ok=no, |
1052 octave_cv_lib_qhull_ok=yes) | 1052 octave_cv_lib_qhull_ok=yes) |
1053 ]) | 1053 ]) |
1054 if test $octave_cv_lib_qhull_ok = yes; then | 1054 if test $octave_cv_lib_qhull_ok = yes; then |
1055 $1 | |
1056 : | |
1057 else | |
1058 $2 | |
1059 : | |
1060 fi | |
1061 ]) | |
1062 dnl | |
1063 dnl Check whether sndfile library is modern enough to include things like Ogg | |
1064 dnl | |
1065 AC_DEFUN([OCTAVE_CHECK_LIB_SNDFILE_OK], [ | |
1066 AC_CACHE_CHECK([whether sndfile library is modern enough], | |
1067 [octave_cv_lib_sndfile_ok], | |
1068 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | |
1069 #include <sndfile.h> | |
1070 ]], [[ | |
1071 int x = SF_FORMAT_OGG; | |
1072 ]])], | |
1073 octave_cv_lib_sndfile_ok=yes, | |
1074 octave_cv_lib_sndfile_ok=no) | |
1075 ]) | |
1076 if test $octave_cv_lib_sndfile_ok = yes; then | |
1055 $1 | 1077 $1 |
1056 : | 1078 : |
1057 else | 1079 else |
1058 $2 | 1080 $2 |
1059 : | 1081 : |