configure.in
changeset 0 4ce2db4db959
child 1 4ef9250a6471
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/configure.in	Thu Oct 21 18:02:08 1999 +0000
     1.3 @@ -0,0 +1,105 @@
     1.4 +dnl Process this file with autoconf to produce a configure script.
     1.5 +AC_INIT(README)
     1.6 +
     1.7 +dnl Set various version strings - taken gratefully from the GTk sources
     1.8 +
     1.9 +# Making releases:
    1.10 +#   MICRO_VERSION += 1;
    1.11 +#   INTERFACE_AGE += 1;
    1.12 +#   BINARY_AGE += 1;
    1.13 +# if any functions have been added, set INTERFACE_AGE to 0.
    1.14 +# if backwards compatibility has been broken,
    1.15 +# set BINARY_AGE and INTERFACE_AGE to 0.
    1.16 +
    1.17 +MAJOR_VERSION=1
    1.18 +MINOR_VERSION=0
    1.19 +MICRO_VERSION=0
    1.20 +INTERFACE_AGE=0
    1.21 +BINARY_AGE=0
    1.22 +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
    1.23 +
    1.24 +AC_SUBST(MAJOR_VERSION)
    1.25 +AC_SUBST(MINOR_VERSION)
    1.26 +AC_SUBST(MICRO_VERSION)
    1.27 +AC_SUBST(INTERFACE_AGE)
    1.28 +AC_SUBST(BINARY_AGE)
    1.29 +AC_SUBST(VERSION)
    1.30 +
    1.31 +# libtool versioning
    1.32 +LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
    1.33 +LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
    1.34 +LT_REVISION=$INTERFACE_AGE
    1.35 +LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
    1.36 +
    1.37 +AC_SUBST(LT_RELEASE)
    1.38 +AC_SUBST(LT_CURRENT)
    1.39 +AC_SUBST(LT_REVISION)
    1.40 +AC_SUBST(LT_AGE)
    1.41 +
    1.42 +dnl Setup for automake
    1.43 +AM_INIT_AUTOMAKE(mixer, $VERSION)
    1.44 +
    1.45 +dnl Check for tools
    1.46 +
    1.47 +AC_PROG_MAKE_SET
    1.48 +AC_PROG_CC
    1.49 +AM_PROG_LIBTOOL
    1.50 +AC_PROG_INSTALL
    1.51 +
    1.52 +dnl Check for SDL 0.11.2
    1.53 +AM_PATH_SDL(0.11.2)
    1.54 +CFLAGS="$CFLAGS $SDL_CFLAGS"
    1.55 +LIBS="$LIBS $SDL_LIBS"
    1.56 +
    1.57 +dnl Check command-line options
    1.58 +AC_ARG_ENABLE(music-cmd,
    1.59 +[  --enable-music-cmd      support an external music player [default=yes]],
    1.60 +              , enable_music_cmd=yes)
    1.61 +if test x$enable_music_cmd = xyes; then
    1.62 +    CFLAGS="$CFLAGS -DCMD_MUSIC"
    1.63 +fi
    1.64 +AC_ARG_ENABLE(music-wave,
    1.65 +[  --enable-music-wave     enable streaming WAVE music [default=yes]],
    1.66 +              , enable_music_wave=yes)
    1.67 +if test x$enable_music_wave = xyes; then
    1.68 +    CFLAGS="$CFLAGS -DWAV_MUSIC"
    1.69 +fi
    1.70 +AC_ARG_ENABLE(music-midi,
    1.71 +[  --enable-music-midi     enable MIDI music via timidity [default=yes]],
    1.72 +              , enable_music_midi=yes)
    1.73 +if test x$enable_music_midi = xyes; then
    1.74 +    CFLAGS="$CFLAGS -DMID_MUSIC -I\$(top_srcdir)/timidity"
    1.75 +    #MUSIC_SUBDIRS="$MUSIC_SUBDIRS timidity"
    1.76 +fi
    1.77 +AC_ARG_ENABLE(music-mod,
    1.78 +[  --enable-music-mod      enable MOD music via mikmod [default=yes]],
    1.79 +              , enable_music_mod=yes)
    1.80 +if test x$enable_music_mod = xyes; then
    1.81 +    CFLAGS="$CFLAGS -DMOD_MUSIC -I\$(top_srcdir)/mikmod"
    1.82 +    #MUSIC_SUBDIRS="$MUSIC_SUBDIRS mikmod"
    1.83 +fi
    1.84 +AC_ARG_ENABLE(music-mp3,
    1.85 +[  --enable-music-mp3      enable MP3 music via smpeg [default=yes]],
    1.86 +              , enable_music_mp3=yes)
    1.87 +if test x$enable_music_mp3 = xyes; then
    1.88 +    AC_MSG_CHECKING(for SMPEG headers and libraries)
    1.89 +    have_smpeg=no
    1.90 +    AC_TRY_COMPILE([
    1.91 +     #include <smpeg/smpeg.h>
    1.92 +    ],[
    1.93 +    ],[
    1.94 +    have_smpeg=yes
    1.95 +    ])
    1.96 +    AC_MSG_RESULT($have_smpeg)
    1.97 +    if test x$have_smpeg = xyes; then
    1.98 +        CFLAGS="$CFLAGS -DMP3_MUSIC"
    1.99 +        LIBS="$LIBS -lsmpeg"
   1.100 +    fi
   1.101 +fi
   1.102 +
   1.103 +# Finally create all the generated files
   1.104 +AC_OUTPUT([
   1.105 +Makefile
   1.106 +mikmod/Makefile
   1.107 +timidity/Makefile
   1.108 +])