comparison configure.in @ 209:e63b9393f6ce

Added ModPlug support.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 10 Jan 2002 01:18:54 +0000
parents 56bc776f0563
children 07d0939d40e7
comparison
equal deleted inserted replaced
208:32376317eedb 209:e63b9393f6ce
178 AM_PATH_LIBMIKMOD 178 AM_PATH_LIBMIKMOD
179 if test "x$no_libmikmod" = "x" ; then 179 if test "x$no_libmikmod" = "x" ; then
180 CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS" 180 CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS"
181 LIBS="$LIBS $LIBMIKMOD_LIBS" 181 LIBS="$LIBS $LIBMIKMOD_LIBS"
182 LDADD="$LDADD $LIBMIKMOD_LDADD" 182 LDADD="$LDADD $LIBMIKMOD_LDADD"
183 AC_DEFINE(SOUND_SUPPORTS_MOD) 183 AC_DEFINE(SOUND_SUPPORTS_MIKMOD)
184 fi
185 fi
186
187 dnl Check for libmodplug
188 AC_ARG_ENABLE(modplug,
189 [ --enable-modplug enable MOD decoding via modplug [default=yes]],
190 , enable_modplug=yes)
191 if test x$enable_modplug = xyes; then
192 AC_CHECK_HEADER(modplug.h, have_modplug_hdr=yes)
193 AC_CHECK_LIB(modplug, ModPlug_Load, have_modplug_lib=yes)
194 if test x$have_modplug_hdr = xyes -a x$have_modplug_lib = xyes; then
195 LIBS="$LIBS -lmodplug"
196 AC_DEFINE(SOUND_SUPPORTS_MODPLUG)
184 fi 197 fi
185 fi 198 fi
186 199
187 dnl Check for vorbis 200 dnl Check for vorbis
188 AC_ARG_ENABLE(vorbis, 201 AC_ARG_ENABLE(vorbis,