configure.in
changeset 411 cade1e3a4cb8
parent 406 b67f52365db0
child 419 e27fe0bfe470
equal deleted inserted replaced
410:5694b5d9b80a 411:cade1e3a4cb8
   189         return 0;
   189         return 0;
   190     }
   190     }
   191     printf("no\n*** libmikmod is older than %d.%d.%d, not using.\n",maj,min,rev);
   191     printf("no\n*** libmikmod is older than %d.%d.%d, not using.\n",maj,min,rev);
   192     return 1;
   192     return 1;
   193 }
   193 }
   194 ], EXTRA_CFLAGS="$EXTRA_CFLAGS -DLIBMIKMOD_MUSIC `$LIBMIKMOD_CONFIG --cflags`";EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$LIBMIKMOD_CONFIG --libs`", CFLAGS="$CFLAGS_SAVED";LIBS="$LIBS_SAVED",
   194 ], , , [echo $ac_n "cross compiling; assumed OK... $ac_c"])
   195 [echo $ac_n "cross compiling; assumed OK... $ac_c"])
   195     fi
   196     fi
   196     CFLAGS="$CFLAGS_SAVED"
       
   197     LIBS="$LIBS_SAVED"
   197 fi
   198 fi
   198 
   199 
   199 AC_ARG_ENABLE([music-mod],
   200 AC_ARG_ENABLE([music-mod],
   200 AC_HELP_STRING([--enable-music-mod], [enable MOD music via mikmod [[default=yes]]]),
   201 AC_HELP_STRING([--enable-music-mod], [enable MOD music via mikmod [[default=yes]]]),
   201               [], [enable_music_mod=$no_libmikmod])
   202               [], [enable_music_mod=yes])
   202 if test x$enable_music_mod = xyes -a x$enable_music_libmikmod = xno; then
   203 if test x$enable_music_mod = xyes; then
   203     EXTRA_CFLAGS="$EXTRA_CFLAGS -DMOD_MUSIC -I\$(srcdir)/mikmod"
   204     EXTRA_CFLAGS="$EXTRA_CFLAGS -DMOD_MUSIC"
   204     SOURCES="$SOURCES $srcdir/mikmod/*.c"
   205     SOURCES="$SOURCES $srcdir/music_mod.c"
       
   206 
       
   207     if test x$enable_music_libmikmod = xyes; then
       
   208         EXTRA_CFLAGS="$EXTRA_CFLAGS -DLIBMIKMOD_MUSIC `$LIBMIKMOD_CONFIG --cflags`"
       
   209         EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$LIBMIKMOD_CONFIG --libs`"
       
   210     else
       
   211         EXTRA_CFLAGS="$EXTRA_CFLAGS -I\$(srcdir)/mikmod"
       
   212         SOURCES="$SOURCES $srcdir/mikmod/*.c"
       
   213     fi
   205 fi
   214 fi
   206 AC_ARG_ENABLE([music-midi],
   215 AC_ARG_ENABLE([music-midi],
   207 AC_HELP_STRING([--enable-music-midi], [enable MIDI music via timidity [[default=yes]]]),
   216 AC_HELP_STRING([--enable-music-midi], [enable MIDI music via timidity [[default=yes]]]),
   208               [], [enable_music_midi=yes])
   217               [], [enable_music_midi=yes])
   209 if test x$enable_music_midi = xyes; then
   218 if test x$enable_music_midi = xyes; then