Fix building with built-in flac

Not having HAVE_FLAC caused CHD support to be missing, etc.
This updates the logic to match how zlib is handled.
This commit is contained in:
Brian Koropoff 2018-01-07 10:48:09 -08:00
parent 9b52164b00
commit 4ad0a1214e

View File

@ -273,11 +273,13 @@ fi
if [ "$HAVE_FLAC" = 'no' ]; then
HAVE_BUILTINFLAC=no
elif [ "$HAVE_BUILTINFLAC" = 'yes' ]; then
HAVE_FLAC=yes
else
check_pkgconf FLAC flac
check_val '' FLAC '-lFLAC'
fi
check_pkgconf FLAC flac
check_val '' FLAC '-lFLAC'
check_pkgconf LIBUSB libusb-1.0 1.0.13
check_val '' LIBUSB -lusb-1.0 libusb-1.0