]> git.tuebingen.mpg.de Git - paraslash.git/commit
build: Include flac afh only if libogg is available.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 14 Sep 2015 18:08:19 +0000 (20:08 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 15 Sep 2015 02:51:00 +0000 (04:51 +0200)
commita98308acf3821e7413dc9f7bd03e06a482b11022
treed1d1a185ce38b215cc9d2bb09f35263fdc6e82b9
parentc74ba0f43d51d561e94ebe6ae171d65e3a9b42d1
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