Rearrange test for libvorbis.

This commit is contained in:
Michael Jumper 2012-11-22 18:55:11 -08:00
parent 9e9ecca022
commit 0459299569

View File

@ -55,9 +55,9 @@ AC_CHECK_LIB([pthread], [pthread_mutex_init],, AC_MSG_ERROR("libpthread is requi
# Check for libvorbisenc
have_vorbisenc=no
AC_CHECK_HEADER(vorbis/vorbisenc.h,
AC_CHECK_LIB([vorbisenc], [vorbis_encode_init], [have_vorbisenc=yes]))
have_vorbisenc=yes
AC_CHECK_HEADER(vorbis/vorbisenc.h,, [have_vorbisenc=no])
AC_CHECK_LIB([vorbisenc], [vorbis_encode_init],, [have_vorbisenc=no])
AM_CONDITIONAL([ENABLE_OGG], [test "x${have_vorbisenc}" = "xyes"])
if test "x${have_vorbisenc}" = "xno"