configure.in
changeset 463 47c9366cede1
parent 461 6f66102b0f72
child 464 9a6369a63488
equal deleted inserted replaced
462:028b317d01d2 463:47c9366cede1
   319 AC_HELP_STRING([--enable-music-ogg-shared], [dynamically load Ogg Vorbis support [[default=yes]]]),
   319 AC_HELP_STRING([--enable-music-ogg-shared], [dynamically load Ogg Vorbis support [[default=yes]]]),
   320               [], [enable_music_ogg_shared=yes])
   320               [], [enable_music_ogg_shared=yes])
   321 if test x$enable_music_ogg = xyes; then
   321 if test x$enable_music_ogg = xyes; then
   322     if test x$enable_music_ogg_tremor = xyes; then
   322     if test x$enable_music_ogg_tremor = xyes; then
   323         AC_CHECK_HEADER([tremor/ivorbisfile.h], [have_tremor_hdr=yes])
   323         AC_CHECK_HEADER([tremor/ivorbisfile.h], [have_tremor_hdr=yes])
   324         AC_CHECK_LIB([vorbisidec], [ov_open_callbacks], [have_tremor_lib=yes])
   324         AC_CHECK_LIB([vorbisidec], [ov_open_callbacks], [have_tremor_lib=yes], [have_tremor_lib=no], [-lvorbis -logg -lm])
   325         if test x$have_tremor_hdr = xyes -a x$have_tremor_lib = xyes; then
   325         if test x$have_tremor_hdr = xyes -a x$have_tremor_lib = xyes; then
   326             case "$host" in
   326             case "$host" in
   327                 *-*-darwin*)
   327                 *-*-darwin*)
   328                     ogg_lib=[`find_lib libvorbisidec.dylib`]
   328                     ogg_lib=[`find_lib libvorbisidec.dylib`]
   329                     if test x$ogg_lib = x; then
   329                     if test x$ogg_lib = x; then
   355             AC_MSG_WARN([*** Unable to find Ogg Vorbis Tremor library (http://www.xiph.org/)])
   355             AC_MSG_WARN([*** Unable to find Ogg Vorbis Tremor library (http://www.xiph.org/)])
   356             AC_MSG_WARN([Ogg Vorbis support disabled])
   356             AC_MSG_WARN([Ogg Vorbis support disabled])
   357         fi
   357         fi
   358     else
   358     else
   359         AC_CHECK_HEADER([vorbis/vorbisfile.h], [have_ogg_hdr=yes])
   359         AC_CHECK_HEADER([vorbis/vorbisfile.h], [have_ogg_hdr=yes])
   360         AC_CHECK_LIB([vorbisfile], [ov_open_callbacks], [have_ogg_lib=yes])
   360         AC_CHECK_LIB([vorbisfile], [ov_open_callbacks], [have_ogg_lib=yes], [have_ogg_lib=no], [-lvorbis -logg -lm])
   361         if test x$have_ogg_hdr = xyes -a x$have_ogg_lib = xyes; then
   361         if test x$have_ogg_hdr = xyes -a x$have_ogg_lib = xyes; then
   362             case "$host" in
   362             case "$host" in
   363                 *-*-darwin*)
   363                 *-*-darwin*)
   364                     ogg_lib=[`find_lib libvorbisfile.dylib`]
   364                     ogg_lib=[`find_lib libvorbisfile.dylib`]
   365                     ;;
   365                     ;;