diff --git a/stepmania/autoconf/m4/audio.m4 b/stepmania/autoconf/m4/audio.m4 index c804f32f00..14aaebed47 100644 --- a/stepmania/autoconf/m4/audio.m4 +++ b/stepmania/autoconf/m4/audio.m4 @@ -7,16 +7,14 @@ AC_ARG_WITH(integer-vorbis, AC_HELP_STRING([--with-integer-vorbis], [Integer vor have_vorbis=no if test "$with_vorbis" = "yes" -a "$with_int_vorbis" = "no"; then - oldlibs="$LIBS" AC_CHECK_LIB(ogg, ogg_stream_init, have_libogg=yes, have_libogg=no) - AC_CHECK_LIB(vorbis, vorbis_comment_add, have_libvorbis=yes, have_libvorbis=no, -logg) - AC_CHECK_LIB(vorbisfile, ov_open, have_libvorbisfile=yes, have_libvorbisfile=no, -logg -lvorbis) + AC_CHECK_LIB(vorbis, vorbis_comment_add, have_libvorbis=yes, have_libvorbis=no, [-logg]) + AC_CHECK_LIB(vorbisfile, ov_open, have_libvorbisfile=yes, have_libvorbisfile=no, [-lvorbis -logg]) if test "$have_libvorbis" = "yes" -a "$have_libogg" = "yes" -a "$have_libvorbisfile" = "yes"; then have_vorbis=yes - AUDIO_LIBS="$AUDIO_LIBS -lvorbis -logg -lvorbisfile" + AUDIO_LIBS="$AUDIO_LIBS -lvorbisfile -lvorbis -logg" else echo Not all vorbis libraries found. - LIBS="$oldlibs" fi fi