Unified · Split
| @@ -132,10 +132,14 @@ 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 | |||
| 135 | AC_ARG_ENABLE(sndfile, | 136 | AC_ARG_ENABLE(sndfile, |
| 136 | AC_HELP_STRING([--disable-sndfile], [disable support for sndfile (default=autodetect)]), | 137 | AC_HELP_STRING([--disable-sndfile], [disable support for sndfile (default=autodetect)]), |
| 137 | [ enable_sndfile=$enableval ], [ enable_sndfile=yes ]) | 138 | [ enable_sndfile=$enableval ], [ enable_sndfile=yes ]) |
| 138 | 139 | ||
| 140 | # Check for pkg-config outside the if statement. | ||
| 141 | PKG_PROG_PKG_CONFIG | ||
| 142 | |||
| 139 | if test "x$enable_sndfile" = "xyes"; then | 143 | if test "x$enable_sndfile" = "xyes"; then |
| 140 | PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.6, ac_cv_sndfile=1, ac_cv_sndfile=0) | 144 | PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.6, ac_cv_sndfile=1, ac_cv_sndfile=0) |
| 141 | else | 145 | else |