Unified · Split
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-05-13 Erik de Castro Lopo <erikd AT mega-nerd DOT com> | ||
| 2 | |||
| 3 | * configure.ac | ||
| 4 | Make use of libsndfile optional. Patch from Samuli Suominen. | ||
| 5 | |||
| 1 | 2008-04-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com> | 6 | 2008-04-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com> |
| 2 | 7 | ||
| 3 | * Win32/libsamplerate-0.def | 8 | * Win32/libsamplerate-0.def |
| @@ -132,8 +132,15 @@ AC_DEFINE_UNQUOTED(CPU_CLIPS_NEGATIVE, ${ac_cv_c_clip_negative}, · 131 unmodified lines | |||
| 132 | 132 | ||
| 133 | #==================================================================================== | 133 | #==================================================================================== |
| 134 | # Check for libsndfile which is required for the test and example programs. | 134 | # Check for libsndfile which is required for the test and example programs. |
| 135 | AC_ARG_ENABLE(sndfile, | ||
| 136 | AC_HELP_STRING([--disable-sndfile], [disable support for sndfile (default=autodetect)]), | ||
| 137 | [ enable_sndfile=$enableval ], [ enable_sndfile=yes ]) | ||
| 135 | 138 | ||
| 136 | PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.6, ac_cv_sndfile=1, ac_cv_sndfile=0) | 139 | if test "x$enable_sndfile" = "xyes"; then |
| 140 | PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.6, ac_cv_sndfile=1, ac_cv_sndfile=0) | ||
| 141 | else | ||
| 142 | ac_cv_sndfile=0 | ||
| 143 | fi | ||
| 137 | 144 | ||
| 138 | AC_DEFINE_UNQUOTED([HAVE_SNDFILE],$ac_cv_sndfile,[Set to 1 if you have libsndfile.]) | 145 | AC_DEFINE_UNQUOTED([HAVE_SNDFILE],$ac_cv_sndfile,[Set to 1 if you have libsndfile.]) |
| 139 | 146 | ||