configure.in
changeset 206 1b18a75ee35b
parent 182 9e494f7db8d1
child 208 f505a60109ef
     1.1 --- a/configure.in	Tue Jan 21 01:49:22 2003 +0000
     1.2 +++ b/configure.in	Sun Jan 26 11:41:37 2003 +0000
     1.3 @@ -82,7 +82,6 @@
     1.4  	    AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
     1.5  )
     1.6  CFLAGS="$CFLAGS $SDL_CFLAGS"
     1.7 -LIBS="$LIBS $SDL_LIBS"
     1.8  
     1.9  dnl Flag for using SDL_RWops
    1.10  dnl Matt Campbell (matt@campbellhome.dhs.org)
    1.11 @@ -129,11 +128,11 @@
    1.12          case "$target" in
    1.13              *-*-cygwin* | *-*-mingw32*)
    1.14                  use_music_native_midi=yes
    1.15 -                LIBS="$LIBS -lwinmm"
    1.16 +                SYSTEM_LIBS="$SYSTEM_LIBS -lwinmm"
    1.17                  ;;
    1.18              *-*-darwin*)
    1.19                  use_music_native_midi=yes
    1.20 -                LIBS="$LIBS -framework QuickTime"
    1.21 +                SYSTEM_LIBS="$SYSTEM_LIBS -framework QuickTime"
    1.22                  ;;
    1.23          esac
    1.24          if test x$use_music_native_midi = xyes; then
    1.25 @@ -172,7 +171,7 @@
    1.26      AC_MSG_RESULT($have_vorbis)
    1.27      if test x$have_vorbis = xyes; then
    1.28          CFLAGS="$CFLAGS -DOGG_MUSIC"
    1.29 -        LIBS="$LIBS -lvorbisfile -lvorbis -logg"
    1.30 +        SYSTEM_LIBS="$SYSTEM_LIBS -lvorbisfile -lvorbis -logg"
    1.31      fi
    1.32  fi
    1.33  AC_ARG_ENABLE(music-mp3,
    1.34 @@ -183,7 +182,7 @@
    1.35      AM_PATH_SMPEG($SMPEG_VERSION, have_smpeg=yes, have_smpeg=no)
    1.36      if test x$have_smpeg = xyes; then
    1.37          CFLAGS="$CFLAGS -DMP3_MUSIC $SMPEG_CFLAGS"
    1.38 -        LIBS="$LIBS $SMPEG_LIBS"
    1.39 +        SYSTEM_LIBS="$SYSTEM_LIBS $SMPEG_LIBS"
    1.40      fi
    1.41  fi
    1.42  
    1.43 @@ -194,6 +193,9 @@
    1.44  AM_CONDITIONAL(USE_NATIVE_MIDI, test x$use_music_native_midi = xyes || test x$use_music_native_midi_gpl = xyes)
    1.45  AM_CONDITIONAL(USE_NATIVE_MIDI_GPL, test x$use_music_native_midi_gpl = xyes)
    1.46  
    1.47 +dnl Expand the libraries needed for static and dynamic linking
    1.48 +AC_SUBST(SYSTEM_LIBS)
    1.49 +
    1.50  # Finally create all the generated files
    1.51  AC_OUTPUT([
    1.52  Makefile