comparison configure.in @ 495:d0d381a6f2bb stable-1.0

Look for modplug headers in both include path and include path + "libmodplug". (thanks to Tyler for this one).
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 12 Oct 2005 22:13:34 +0000
parents 636796aed4e2
children b4e9fb8ef9f6
comparison
equal deleted inserted replaced
493:38b656ccd029 495:d0d381a6f2bb
212 dnl Check for libmodplug 212 dnl Check for libmodplug
213 AC_ARG_ENABLE(modplug, 213 AC_ARG_ENABLE(modplug,
214 [ --enable-modplug enable MOD decoding via modplug [default=yes]], 214 [ --enable-modplug enable MOD decoding via modplug [default=yes]],
215 , enable_modplug=yes) 215 , enable_modplug=yes)
216 if test x$enable_modplug = xyes; then 216 if test x$enable_modplug = xyes; then
217 have_modplug_hdr=no
217 AC_CHECK_HEADER(modplug.h, have_modplug_hdr=yes) 218 AC_CHECK_HEADER(modplug.h, have_modplug_hdr=yes)
219 if test x$have_modplug_hdr = xno; then
220 AC_CHECK_HEADER(libmodplug/modplug.h, have_modplug_hdr=yes)
221 if test x$have_modplug_hdr = xyes; then
222 have_modplug_hdr=yes
223 AC_DEFINE(SOUND_MODPLUG_IN_OWN_PATH)
224 fi
225 fi
226
218 AC_CHECK_LIB(modplug, ModPlug_Load, have_modplug_lib=yes) 227 AC_CHECK_LIB(modplug, ModPlug_Load, have_modplug_lib=yes)
219 if test x$have_modplug_hdr = xyes -a x$have_modplug_lib = xyes; then 228 if test x$have_modplug_hdr = xyes -a x$have_modplug_lib = xyes; then
220 LIBS="$LIBS -lmodplug" 229 LIBS="$LIBS -lmodplug"
221 AC_DEFINE(SOUND_SUPPORTS_MODPLUG) 230 AC_DEFINE(SOUND_SUPPORTS_MODPLUG)
222 fi 231 fi