Skip to content

Commit

Permalink
Let Mac OS X handle dynamic loading of Ogg Vorbis and SMPEG at runtime.
Browse files Browse the repository at this point in the history
  Fixes Bugzilla #277.
  • Loading branch information
icculus committed Feb 13, 2007
1 parent cde5216 commit 2afae7c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions configure.in
Expand Up @@ -233,8 +233,12 @@ if test x$enable_music_ogg = xyes; then
AC_HELP_STRING([--enable-music-ogg-shared], [dynamically load Ogg Vorbis support [[default=yes]]]),
[], [enable_music_ogg_shared=yes])
case "$host" in
*-*-darwin*) # FIXME when Mac OS X ships with Ogg Vorbis
ogg_lib=''
*-*-darwin*)
for path in /usr/lib /usr/local/lib; do
if test x$ogg_lib = x; then
ogg_lib=[`ls -- $path/libvorbisfile.[0-9].dylib 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
fi
done
;;
*-*-cygwin* | *-*-mingw32*)
ogg_lib='vorbisfile.dll'
Expand Down Expand Up @@ -269,7 +273,11 @@ AC_HELP_STRING([--enable-music-mp3-shared], [dynamically load MP3 support [[defa
[], [enable_music_mp3_shared=yes])
case "$host" in
*-*-darwin*)
smpeg_lib=''
for path in /usr/lib /usr/local/lib; do
if test x$smpeg_lib = x; then
smpeg_lib=[`ls -- $path/libsmpeg*.[0-9].dylib 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
fi
done
;;
*-*-cygwin* | *-*-mingw32*)
smpeg_lib='smpeg.dll'
Expand Down

0 comments on commit 2afae7c

Please sign in to comment.