From 2e3d4a603fdab0e5771d6c2486375f029753a8a0 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Sun, 1 Sep 2002 20:02:12 +0000 Subject: [PATCH] Add a --disable-vorbis hack, for people with broken ogg vorbis installs (bleh, just fix it you silly people *grmbl*) --- configure.ac | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 80ceba577..dcb0ffd2e 100644 --- a/configure.ac +++ b/configure.ac @@ -410,13 +410,19 @@ case "$target_os" in ;; esac +AC_ARG_ENABLE(vorbis, +[ --disable-vorbis disable ogg vorbis support], +) + HAVE_VORBIS=no -AM_PATH_OGG(HAVE_OGG=yes, HAVE_OGG=no) -if test $HAVE_OGG = yes; then - AM_PATH_VORBIS(HAVE_VORBIS=yes, HAVE_VORBIS=no) - if test $HAVE_VORBIS = yes; then - AC_DEFINE(HAVE_VORBIS, 1, [define this if you have ogg/vorbis libs]) - fi +if test "x$enable_vorbis" != "xno"; then + AM_PATH_OGG(HAVE_OGG=yes, HAVE_OGG=no) + if test $HAVE_OGG = yes; then + AM_PATH_VORBIS(HAVE_VORBIS=yes, HAVE_VORBIS=no) + if test $HAVE_VORBIS = yes; then + AC_DEFINE(HAVE_VORBIS, 1, [define this if you have ogg/vorbis libs]) + fi + fi fi AC_ARG_ENABLE(zlib,