configure.in
author Sam Lantinga <slouken@libsdl.org>
Fri, 02 Oct 2009 12:30:42 +0000
changeset 405 bfb16c4e42e0
parent 402 2bfcf7edcb6f
child 406 b67f52365db0
permissions -rw-r--r--
Mike Frysinger 2007-12-29 18:12:10 PST

this patch makes it so find_lib() does not look in /usr/local/lib and /usr/lib
when cross-compiling as that can easily cause troubles
     1 dnl Process this file with autoconf to produce a configure script.
     2 AC_INIT(README)
     3 
     4 dnl Set various version strings - taken gratefully from the GTk sources
     5 
     6 # Making releases:
     7 #   MICRO_VERSION += 1;
     8 #   INTERFACE_AGE += 1;
     9 #   BINARY_AGE += 1;
    10 # if any functions have been added, set INTERFACE_AGE to 0.
    11 # if backwards compatibility has been broken,
    12 # set BINARY_AGE and INTERFACE_AGE to 0.
    13 #
    14 MAJOR_VERSION=1
    15 MINOR_VERSION=2
    16 MICRO_VERSION=8
    17 INTERFACE_AGE=6
    18 BINARY_AGE=8
    19 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
    20 
    21 AC_SUBST(MAJOR_VERSION)
    22 AC_SUBST(MINOR_VERSION)
    23 AC_SUBST(MICRO_VERSION)
    24 AC_SUBST(INTERFACE_AGE)
    25 AC_SUBST(BINARY_AGE)
    26 AC_SUBST(VERSION)
    27 
    28 # libtool versioning
    29 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
    30 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
    31 LT_REVISION=$INTERFACE_AGE
    32 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
    33 
    34 AC_SUBST(LT_RELEASE)
    35 AC_SUBST(LT_CURRENT)
    36 AC_SUBST(LT_REVISION)
    37 AC_SUBST(LT_AGE)
    38 
    39 dnl Detect the canonical build and host environments
    40 AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
    41 AC_CANONICAL_HOST
    42 
    43 dnl Set up the compiler and linker flags
    44 case "$host" in
    45     *-*-cygwin*)
    46         # We build SDL on cygwin without the UNIX emulation layer
    47         BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin"
    48         BASE_LDFLAGS="-mno-cygwin"
    49         ;;
    50     *)
    51         BASE_CFLAGS="-D_GNU_SOURCE=1"
    52         BASE_LDFLAGS=""
    53         ;;
    54 esac
    55 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
    56 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
    57 BUILD_LDFLAGS="$LDFLAGS"
    58 EXTRA_LDFLAGS="$BASE_LDFLAGS"
    59 ## These are common directories to find software packages
    60 #for path in /usr/freeware /usr/pkg /usr/local; do
    61 #    if test -d $path/include; then
    62 #        EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
    63 #    fi
    64 #    if test -d $path/lib; then
    65 #        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
    66 #    fi
    67 #done
    68 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
    69 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
    70 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
    71 
    72 dnl Check for tools
    73 AC_LIBTOOL_WIN32_DLL
    74 AC_PROG_LIBTOOL
    75 AC_PROG_CC
    76 AC_PROG_INSTALL
    77 AC_PROG_MAKE_SET
    78 if test -z "$host_alias"; then
    79     hostaliaswindres=
    80 else
    81     hostaliaswindres="$host_alias-windres"
    82 fi
    83 AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
    84 
    85 dnl Check for compiler characteristics
    86 AC_C_CONST
    87 
    88 case "$host" in
    89     *-*-cygwin* | *-*-mingw32*)
    90         SOURCES="$srcdir/version.rc"
    91         EXE=".exe"
    92         if test "$build" != "$host"; then # cross-compiling
    93             # Default cross-compile location
    94             ac_default_prefix=/usr/local/cross-tools/i386-mingw32
    95         else
    96             # Look for the location of the tools and install there
    97             if test "$BUILD_PREFIX" != ""; then
    98                 ac_default_prefix=$BUILD_PREFIX
    99             fi
   100         fi
   101         ;;
   102     *)
   103         SOURCES=""
   104         EXE=""
   105         ;;
   106 esac
   107 
   108 # Standard C sources
   109 SOURCES="$SOURCES \
   110 $srcdir/effect_position.c \
   111 $srcdir/effect_stereoreverse.c \
   112 $srcdir/effects_internal.c \
   113 $srcdir/load_aiff.c \
   114 $srcdir/load_voc.c \
   115 $srcdir/mixer.c \
   116 $srcdir/music.c"
   117 
   118 find_lib()
   119 {
   120     gcc_bin_path=[`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`]
   121     gcc_lib_path=[`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`]
   122     env_lib_path=[`echo $LIBS $LDFLAGS | sed 's/-L[ ]*//g'`]
   123     if test "$cross_compiling" = yes; then
   124         host_lib_path=""
   125     else
   126         host_lib_path="/usr/lib /usr/local/lib"
   127     fi
   128     for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
   129         lib=[`ls -- $path/$1 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
   130         if test x$lib != x; then
   131             echo $lib
   132             return
   133         fi
   134     done
   135 }
   136 
   137 dnl Check for SDL
   138 SDL_VERSION=1.2.10
   139 AM_PATH_SDL($SDL_VERSION,
   140             :,
   141             AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
   142 )
   143 EXTRA_CFLAGS="$EXTRA_CFLAGS $SDL_CFLAGS"
   144 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SDL_LIBS"
   145 
   146 dnl Check command-line options
   147 
   148 AC_ARG_ENABLE([music-cmd],
   149 AC_HELP_STRING([--enable-music-cmd], [support an external music player [[default=yes]]]),
   150               [], [enable_music_cmd=yes])
   151 if test x$enable_music_cmd = xyes; then
   152     SOURCES="$SOURCES $srcdir/music_cmd.c"
   153     EXTRA_CFLAGS="$EXTRA_CFLAGS -DCMD_MUSIC"
   154 fi
   155 AC_ARG_ENABLE([music-wave],
   156 AC_HELP_STRING([--enable-music-wave], [enable streaming WAVE music [[default=yes]]]),
   157               [], [enable_music_wave=yes])
   158 if test x$enable_music_wave = xyes; then
   159     SOURCES="$SOURCES $srcdir/wavestream.c"
   160     EXTRA_CFLAGS="$EXTRA_CFLAGS -DWAV_MUSIC"
   161 fi
   162 no_libmikmod=yes
   163 libmikmod_maj=3
   164 libmikmod_min=1
   165 libmikmod_rev=10
   166 libmikmod_ver="$libmikmod_maj.$libmikmod_min.$libmikmod_rev"
   167 AC_ARG_ENABLE([music-libmikmod],
   168 AC_HELP_STRING([--enable-music-libmikmod], [enable MOD music via external libmikmod [[default=no]]]),
   169               [], [enable_music_libmikmod=no])
   170 if test x$enable_music_libmikmod = xyes; then
   171     AC_PATH_PROG(LIBMIKMOD_CONFIG, libmikmod-config, no, [$PATH])
   172     if test "$LIBMIKMOD_CONFIG" != "no" ; then
   173         no_libmikmod=no
   174         CFLAGS_SAVED="$CFLAGS"
   175         LIBS_SAVED="$LIBS"
   176         CFLAGS="$CFLAGS -DLIBMIKMOD_MUSIC `$LIBMIKMOD_CONFIG --cflags`"
   177         LIBS="$LIBS `$LIBMIKMOD_CONFIG --libs`"
   178         AC_MSG_CHECKING([for libmikmod - version >= $libmikmod_ver])
   179         AC_TRY_RUN([
   180 #include "mikmod.h"
   181 #include "stdio.h"
   182 
   183 int main(int argc, char **argv)
   184 {
   185     long maj=$libmikmod_maj,min=$libmikmod_min,rev=$libmikmod_rev,ver=MikMod_GetVersion();
   186     /*printf("(%d.%d.%d) ",ver>>16,(ver>>8)&0xff,ver&0xff);*/
   187     if(ver>=((maj<<16)|(min<<8)|(rev))) {
   188         printf("yes\n");
   189         return 0;
   190     }
   191     printf("no\n*** libmikmod is older than %d.%d.%d, not using.\n",maj,min,rev);
   192     return 1;
   193 }
   194 ], EXTRA_CFLAGS="$EXTRA_CFLAGS -DLIBMIKMOD_MUSIC `$LIBMIKMOD_CONFIG --cflags`";EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$LIBMIKMOD_CONFIG --libs`", CFLAGS="$CFLAGS_SAVED";LIBS="$LIBS_SAVED",
   195 [echo $ac_n "cross compiling; assumed OK... $ac_c"])
   196     fi
   197 fi
   198 
   199 AC_ARG_ENABLE([music-mod],
   200 AC_HELP_STRING([--enable-music-mod], [enable MOD music via mikmod [[default=yes]]]),
   201               [], [enable_music_mod=$no_libmikmod])
   202 if test x$enable_music_mod = xyes -a x$enable_music_libmikmod = xno; then
   203     EXTRA_CFLAGS="$EXTRA_CFLAGS -DMOD_MUSIC -I\$(srcdir)/mikmod"
   204     SOURCES="$SOURCES $srcdir/mikmod/*.c"
   205 fi
   206 AC_ARG_ENABLE([music-midi],
   207 AC_HELP_STRING([--enable-music-midi], [enable MIDI music via timidity [[default=yes]]]),
   208               [], [enable_music_midi=yes])
   209 if test x$enable_music_midi = xyes; then
   210     EXTRA_CFLAGS="$EXTRA_CFLAGS -DMID_MUSIC"
   211     AC_ARG_ENABLE([music-timidity-midi],
   212 AC_HELP_STRING([--enable-music-timidity-midi], [enable timidity MIDI output [[default=yes]]]),
   213                   [], [enable_music_timidity_midi=yes])
   214     if test x$enable_music_timidity_midi = xyes; then
   215         EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_TIMIDITY_MIDI -I\$(srcdir)/timidity"
   216         SOURCES="$SOURCES $srcdir/timidity/*.c"
   217     fi
   218     AC_ARG_ENABLE([music-native-midi],
   219 AC_HELP_STRING([--enable-music-native-midi], [enable native MIDI music output [[default=yes]]]),
   220                   [], [enable_music_native_midi=yes])
   221     if test x$enable_music_native_midi = xyes; then
   222         use_music_native_midi=no
   223         case "$host" in
   224             *-*-cygwin* | *-*-mingw32*)
   225                 use_music_native_midi=yes
   226                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lwinmm"
   227                 ;;
   228             *-*-darwin*)
   229                 # This doesn't work on Mac OS X 10.5+
   230                 # Max Horn (the original author) recommends disabling it for now.
   231                 #use_music_native_midi=yes
   232                 #EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuickTime -Wl,-framework,CoreServices"
   233                 ;;
   234         esac
   235         if test x$use_music_native_midi = xyes; then
   236             EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_NATIVE_MIDI -I\$(srcdir)/native_midi"
   237             SOURCES="$SOURCES $srcdir/native_midi/*.c"
   238         fi
   239     fi
   240     AC_ARG_ENABLE([music-native-midi-gpl],
   241 AC_HELP_STRING([--enable-music-native-midi-gpl], [enable native MIDI on UNIX using GPL code [[default=no]]]),
   242                   [], [enable_music_native_midi_gpl=no])
   243     if test x$enable_music_native_midi_gpl = xyes; then
   244         use_music_native_midi_gpl=no
   245         case "$host" in
   246             *-*-linux* | *-*-freebsd*)
   247                 use_music_native_midi_gpl=yes
   248                 ;;
   249         esac
   250         if test x$use_music_native_midi_gpl = xyes; then
   251             EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_NATIVE_MIDI -I\$(srcdir)/native_midi"
   252             SOURCES="$SOURCES $srcdir/native_midi_gpl/*.c"
   253         fi
   254     fi
   255 fi
   256 AC_ARG_ENABLE([music-ogg],
   257 AC_HELP_STRING([--enable-music-ogg], [enable Ogg Vorbis music [[default=yes]]]),
   258               [], [enable_music_ogg=yes])
   259 AC_ARG_ENABLE(music-ogg-tremor,
   260 [  --enable-music-ogg-tremor   enable OGG music via libtremor [[default=no]]],
   261               [], enable_music_ogg_tremor=no)
   262 AC_ARG_ENABLE([music-ogg-shared],
   263 AC_HELP_STRING([--enable-music-ogg-shared], [dynamically load Ogg Vorbis support [[default=yes]]]),
   264               [], [enable_music_ogg_shared=yes])
   265 if test x$enable_music_ogg = xyes; then
   266     if test x$enable_music_ogg_tremor = xyes; then
   267         AC_CHECK_HEADER([tremor/ivorbisfile.h], [have_tremor_hdr=yes])
   268         AC_CHECK_LIB([vorbisidec], [ov_open_callbacks], [have_tremor_lib=yes])
   269         if test x$have_tremor_hdr = xyes -a x$have_tremor_lib = xyes; then
   270             case "$host" in
   271                 *-*-darwin*)
   272                     ogg_lib=[`find_lib libvorbisidec*.dylib`]
   273                     if test x$ogg_lib = x; then
   274                         ogg_lib=[`find_lib libvorbisidec.[0-9]`]
   275                     fi
   276                     if test x$ogg_lib = x; then
   277                         ogg_lib=[`find_lib libvorbisidec.[0-9]*`]
   278                     fi
   279                     ;;
   280                 *-*-cygwin* | *-*-mingw32*)
   281                     ogg_lib=[`find_lib "vorbisidec*.dll"`]
   282                     ;;
   283                 *)
   284                     ogg_lib=[`find_lib "libvorbisidec.so.[0-9]"`]
   285                     if test x$ogg_lib = x; then
   286                         ogg_lib=[`find_lib "libvorbisidec.so.[0-9]*"`]
   287                     fi
   288                     ;;
   289             esac
   290             SOURCES="$SOURCES $srcdir/*_ogg.c"
   291             EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_MUSIC -DOGG_USE_TREMOR"
   292             if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then
   293                 echo "-- dynamic libvorbisidec -> $ogg_lib"
   294                 EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\\\"$ogg_lib\\\""
   295             else
   296                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisidec"
   297             fi
   298         fi
   299     else
   300         AC_CHECK_HEADER([vorbis/vorbisfile.h], [have_ogg_hdr=yes])
   301         AC_CHECK_LIB([vorbisfile], [ov_open_callbacks], [have_ogg_lib=yes])
   302         if test x$have_ogg_hdr = xyes -a x$have_ogg_lib = xyes; then
   303             case "$host" in
   304                 *-*-darwin*)
   305                     ogg_lib=[`find_lib libvorbisfile*.dylib`]
   306                     ;;
   307                 *-*-cygwin* | *-*-mingw32*)
   308                     ogg_lib=[`find_lib "libvorbisfile*.dll"`]
   309                     ;;
   310                 *)
   311                     ogg_lib=[`find_lib "libvorbisfile.so.[0-9]"`]
   312                     if test x$ogg_lib = x; then
   313                         ogg_lib=[`find_lib "libvorbisfile.so.[0-9]*"`]
   314                     fi
   315                     ;;
   316             esac
   317             SOURCES="$SOURCES $srcdir/*_ogg.c"
   318             EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_MUSIC"
   319             if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then
   320                 echo "-- dynamic libvorbisfile -> $ogg_lib"
   321                 EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\\\"$ogg_lib\\\""
   322             else
   323                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisfile -lvorbis -logg"
   324             fi
   325         fi
   326     fi
   327 fi
   328 libflac_ver=8
   329 AC_ARG_ENABLE([music-flac],
   330 AC_HELP_STRING([--enable-music-flac], [enable FLAC music [[default=yes]]]),
   331               [], [enable_music_flac=yes])
   332 AC_ARG_ENABLE([music-flac-shared],
   333 AC_HELP_STRING([--enable-music-flac-shared],
   334               [dynamically load FLAC support [[default=yes]]]),
   335               [], [enable_music_flac_shared=yes])
   336 if test x$enable_music_flac = xyes; then
   337 	AC_CHECK_HEADER([FLAC/export.h], [have_flac_export=yes])
   338 	if test x$have_flac_export = xyes; then
   339 		LIBS_SAVED="$LIBS"
   340 		LIBS="-lFLAC"
   341 	    AC_MSG_CHECKING([for libflac so-name version >= $libflac_ver])
   342 	    AC_TRY_RUN([
   343 #include "FLAC/export.h"
   344 #include "stdio.h"
   345 int main( int argc, char *argv[] ) {
   346 #if defined(FLAC_API_VERSION_CURRENT) && (FLAC_API_VERSION_CURRENT >= $libflac_ver)
   347 	return 0;
   348 #else
   349 	return 1;
   350 #endif
   351 }
   352 ], have_flac_ver=yes, have_flac_ver=no)
   353 		LIBS="$LIBS_SAVED"
   354 		AC_MSG_RESULT($have_flac_ver)
   355 		if test x$have_flac_ver = xno; then
   356 			echo "*** FLAC support has been disabled."
   357 		else
   358 			AC_CHECK_HEADER([FLAC/stream_decoder.h], [have_flac_hdr=yes])
   359 			AC_CHECK_LIB([FLAC], [FLAC__stream_decoder_new], [have_flac_lib=yes])
   360 			if test x$have_flac_hdr = xyes -a x$have_flac_lib = xyes; then	
   361 			    case "$host" in
   362 			        *-*-darwin*)
   363 			            flac_lib=[`find_lib FLAC*.dylib`]
   364 			            ;;
   365 			        *-*-cygwin* | *-*-mingw32*)
   366 			            flac_lib=[`find_lib "libFLAC*.dll"`]
   367 			            ;;
   368 			        *)
   369 			            flac_lib=[`find_lib "libFLAC.so.[0-9]"`]
   370 			            if test x$flac_lib = x; then
   371 			                flac_lib=[`find_lib "libFLAC.so.[0-9]*"`]
   372 			            fi
   373 			            ;;
   374 			    esac
   375 			    SOURCES="$SOURCES $srcdir/*_flac.c"
   376 			    EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLAC_MUSIC"
   377 			    if test x$enable_music_flac_shared = xyes && test x$flac_lib != x; then
   378 			        echo "-- dynamic libFLAC -> $flac_lib"
   379 			        EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLAC_DYNAMIC=\\\"$flac_lib\\\""
   380 			    else
   381 			        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lFLAC"
   382 			    fi
   383 			fi
   384 		fi
   385 	fi
   386 fi
   387 AC_ARG_ENABLE(music-mp3,
   388 [  --enable-music-mp3      enable MP3 music via smpeg [[default=yes]]],
   389               , enable_music_mp3=yes)
   390 if test x$enable_music_mp3 = xyes; then
   391     SMPEG_VERSION=0.4.3
   392     AM_PATH_SMPEG($SMPEG_VERSION, have_smpeg=yes, have_smpeg=no)
   393     if test x$have_smpeg = xyes; then
   394         AC_ARG_ENABLE([music-mp3-shared],
   395 AC_HELP_STRING([--enable-music-mp3-shared], [dynamically load MP3 support [[default=yes]]]),
   396                       [], [enable_music_mp3_shared=yes])
   397         case "$host" in
   398             *-*-darwin*)
   399                 smpeg_lib=[`find_lib libsmpeg*.dylib`]
   400                 ;;
   401             *-*-cygwin* | *-*-mingw32*)
   402                 smpeg_lib=[`find_lib "smpeg*.dll"`]
   403                 ;;
   404             *)
   405                 smpeg_lib=[`find_lib "libsmpeg*.so.[0-9]"`]
   406                 if test x$smpeg_lib = x; then
   407                     smpeg_lib=[`find_lib "libsmpeg*.so.[0-9]*"`]
   408                 fi
   409                 ;;
   410         esac
   411         SOURCES="$SOURCES $srcdir/*_mp3.c"
   412         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MUSIC $SMPEG_CFLAGS"
   413         if test x$enable_music_mp3_shared = xyes && test x$smpeg_lib != x; then
   414             echo "-- dynamic libsmpeg -> $smpeg_lib"
   415             EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_DYNAMIC=\\\"$smpeg_lib\\\""
   416         else
   417             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SMPEG_LIBS"
   418         fi
   419     fi
   420 fi
   421 AC_ARG_ENABLE(music-mp3-mad-gpl,
   422 AC_HELP_STRING([--enable-music-mp3-mad-gpl], [enable MP3 music via libmad GPL code [[default=no]]]),
   423                   [], [enable_music_mp3_mad_gpl=no])
   424 if test x$enable_music_mp3_mad_gpl = xyes; then
   425     AC_MSG_CHECKING(for libmad headers)
   426     have_libmad=no
   427     AC_TRY_COMPILE([
   428      #include "mad.h"
   429     ],[
   430     ],[
   431     have_libmad=yes
   432     ])
   433     AC_MSG_RESULT($have_libmad)
   434     if test x$have_libmad = xyes; then
   435         SOURCES="$SOURCES $srcdir/music_mad.c"
   436         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MAD_MUSIC"
   437         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmad"
   438     fi
   439 fi
   440 
   441 OBJECTS=`echo $SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
   442 OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
   443 
   444 dnl Expand the sources and objects needed to build the library
   445 AC_SUBST(ac_aux_dir)
   446 AC_SUBST(SOURCES)
   447 AC_SUBST(OBJECTS)
   448 AC_SUBST(BUILD_CFLAGS)
   449 AC_SUBST(EXTRA_CFLAGS)
   450 AC_SUBST(BUILD_LDFLAGS)
   451 AC_SUBST(EXTRA_LDFLAGS)
   452 AC_SUBST(EXE)
   453 AC_SUBST(WINDRES)
   454 AC_SUBST(SDL_VERSION)
   455 AC_SUBST(SDL_CFLAGS)
   456 AC_SUBST(SDL_LIBS)
   457 
   458 AC_OUTPUT([
   459     Makefile SDL_mixer.spec SDL_mixer.qpg SDL_mixer.pc
   460 ], [
   461     : >build-deps
   462     if test x"$MAKE" = x; then MAKE=make; fi; $MAKE depend
   463 ])