diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/configure.in b/configure.in index f30d818..ee61ce4 100644 --- a/configure.in +++ b/configure.in @@ -411,6 +411,26 @@ else AC_SUBST(LIBJPG_LIBS) dnl --------------------------------------------------------------- + dnl Ogg Vorbis + dnl + AC_CHECK_HEADER(vorbis/vorbisfile.h, + [], + [AC_MSG_ERROR([vorbis/vorbisfile.h not found])] + ) + AC_CHECK_HEADER(vorbis/codec.h, + [], + [AC_MSG_ERROR([vorbis/codec.h not found])] + ) + + AC_CHECK_LIB(vorbisfile, ov_fopen, + HAVE_VORBISFILE=yes + AC_DEFINE_UNQUOTED(HAVE_VORBISFILE, 1, [Define this if you have libvorbisfile]), + AC_MSG_ERROR([libvorbisfile not found]) + ) + LIBVORBISFILE_LIBS="-lvorbisfile" + AC_SUBST(LIBVORBISFILE_LIBS) + + dnl --------------------------------------------------------------- dnl SDL dnl @@ -526,7 +546,8 @@ build client ....... $BUILD_CLIENT]) if test "x$BUILD_CLIENT" = xyes; then AC_MSG_RESULT([SDL ................ $LIBSDL_LIBS opengl ............. $GL_LIBS -openal ............. $AL_LIBS]) +openal ............. $AL_LIBS] +vorbisfile ......... $LIBVORBISFILE_LIBS) fi AC_MSG_RESULT([ |