From a98308acf3821e7413dc9f7bd03e06a482b11022 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 14 Sep 2015 20:08:19 +0200 Subject: [PATCH 1/1] build: Include flac afh only if libogg is available. In configure.ac we have AC_DEFUN([NEED_FLAC_OBJECTS], [{ test "$HAVE_OGG" = 'yes' -a "$HAVE_FLAC" = 'yes' }]) In particular, we do not include the flac audio format handler on systems where libflac is installed but libogg is not. In afh_common.c, however, we only check for HAVE_FLAC. This results in a build failure on those systems. Fix this by modifying the check in afh_common.c to match the check in configure.ac. --- afh_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afh_common.c b/afh_common.c index 08bcde90..eb0813df 100644 --- a/afh_common.c +++ b/afh_common.c @@ -64,7 +64,7 @@ static struct audio_format_handler afl[] = { }, { .name = "flac", -#ifdef HAVE_FLAC +#if defined(HAVE_OGG) && defined(HAVE_FLAC) .init = flac_afh_init, #endif }, -- 2.39.2