Fix conditional pkg check

Correctly skip checks for libsamplerate and libpng when
--disable-fldigi is used
pull/2/head
Stelios Bounanos 2009-11-19 05:23:15 +00:00
rodzic c226978a10
commit b06339d244
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -208,14 +208,18 @@ AC_FLDIGI_OSS
# Set ac_cv_png to yes/no (not used)
# Define USE_PNG in config.h (as above)
# Substitute PNG_CFLAGS and PNG_LIBS in Makefile
AC_FLDIGI_PKG_CHECK([png], [libpng >= 1.2.8], [$ac_cv_want_fldigi], [no])
if test "x$ac_cv_want_fldigi" = "xyes"; then
AC_FLDIGI_PKG_CHECK([png], [libpng >= 1.2.8], [no], [no])
fi
### libsamplerate
# Required if $ac_cv_want_fldigi is "yes"
# Set ac_cv_samplerate to yes/no (not used)
# Define USE_SAMPLERATE in config.h (as above)
# Substitute SAMPLERATE_CFLAGS and SAMPLERATE_LIBS in Makefile
AC_FLDIGI_PKG_CHECK([samplerate], [samplerate >= 0.1.1], [$ac_cv_want_fldigi], [no])
if test "x$ac_cv_want_fldigi" = "xyes"; then
AC_FLDIGI_PKG_CHECK([samplerate], [samplerate >= 0.1.1], [no], [no])
fi
### libsndfile
# Set ac_cv_sndfile to yes/no