Mercurial > hg > octave-nkf
diff configure.ac @ 19661:8fe2780c1491
update configure.ac to build and configure sndfile audio file utilities
* configure.ac: use pkg-config to create build variables for sndfile
* module-files: build sndfile audio utilities with sndfile build options
author | Vytautas Jančauskas <unaudio@gmail.com> |
---|---|
date | Tue, 10 Sep 2013 15:45:48 +0300 |
parents | c1e51a59f61e |
children | febd874d363d |
line wrap: on
line diff
--- a/configure.ac +++ b/configure.ac @@ -934,6 +934,19 @@ LIBS="$save_LIBS" CPPFLAGS="$save_CPPFLAGS" +### Check for sndfile + +SNDFILE_CPPFLAGS=`$PKG_CONFIG --cflags-only-I sndfile` +SNDFILE_LDFLAGS=`$PKG_CONFIG --libs-only-L sndfile` +SNDFILE_LIBS=`$PKG_CONFIG --libs-only-l sndfile` + +CPPFLAGS="$MAGICK_CPPFLAGS $CPPFLAGS" +LIBS="$MAGICK_LDFLAGS $MAGICK_LIBS $LIBS" + +AC_SUBST(MAGICK_CPPFLAGS) +AC_SUBST(MAGICK_LDFLAGS) +AC_SUBST(MAGICK_LIBS) + ### Check for either of Graphics/ImageMagick++ libraries AC_ARG_WITH([magick], @@ -2866,6 +2879,9 @@ Qt libraries: $QT_LIBS READLINE libraries: $READLINE_LIBS REGEX libraries: $REGEX_LIBS + Sndfile CPPFLAGS: $SNDFILE_CPPFLAGS + Sndfile LDFLAGS: $SNDFILE_LDFLAGS + Sndfile libraries: $SNDFILE_LIBS TERM libraries: $TERM_LIBS UMFPACK CPPFLAGS: $UMFPACK_CPPFLAGS UMFPACK LDFLAGS: $UMFPACK_LDFLAGS