From 73fb45bbd5f5316f2b67815a847dc71957d6c7c3 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 2 Jul 2013 12:14:19 -0700 Subject: [PATCH] Restore AC_DEFINE from old configure.in for ENABLE_OGG macro. --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index defb541a..cf69ecdb 100644 --- a/configure.ac +++ b/configure.ac @@ -93,6 +93,17 @@ AC_CHECK_HEADER(vorbis/vorbisenc.h,, [have_vorbisenc=no]) AC_CHECK_LIB([vorbisenc], [vorbis_encode_init], [VORBIS_LIBS="$VORBIS_LIBS -lvorbisenc"], [have_vorbisenc=no]) AM_CONDITIONAL([ENABLE_OGG], [test "x${have_vorbisenc}" = "xyes"]) +if test "x${have_vorbisenc}" = "xno" +then + AC_MSG_WARN([ + -------------------------------------------- + Unable to find libvorbisenc. + Sound will not be encoded with Ogg Vorbis. + --------------------------------------------]) +else + AC_DEFINE([ENABLE_OGG]) +fi + AC_SUBST(VORBIS_LIBS) #