configure.ac: Try to link against libogg and lm if necessary.
authorAndre Noll <maan@systemlinux.org>
Mon, 27 Feb 2012 12:44:26 +0000 (13:44 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 27 Feb 2012 12:44:26 +0000 (13:44 +0100)
This seems to be necessary on FreeBSD, and does hopefully not hurt
on other systems.

configure.ac

index 89242d9..b5898ac 100644 (file)
@@ -748,7 +748,7 @@ if test -n "$with_flac_libs"; then
        LDFLAGS="$LDFLAGS $flac_libs"
 fi
 AC_CHECK_HEADER(FLAC/stream_decoder.h, [], have_flac=no)
-AC_CHECK_LIB([FLAC], [FLAC__stream_decoder_init_file], [], have_flac=no)
+AC_CHECK_LIB([FLAC], [FLAC__stream_decoder_init_file], [], have_flac=no, -logg -lm)
 if test "$have_flac" = "yes"; then
        AC_DEFINE(HAVE_FLAC, 1, define to 1 if you want to build the flacdec filter)
        all_errlist_objs="$all_errlist_objs flacdec_filter flac_afh"