correctly detect presence of fluidsynth, I think

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1010 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-05-22 02:03:01 +00:00
parent 0611909af2
commit 452a35c1c5
4 changed files with 55 additions and 4 deletions

View File

@@ -396,6 +396,24 @@ AC_LANG_POP(C++)
AM_CONDITIONAL(SINGERBOT_SUPPORT, test ! -z "$FESTIVAL_SUPPORT" )
# Check for fluidsynth
AC_ARG_WITH(fluidsynth,
AS_HELP_STRING([--without-fluidsynth], [disable support for Soundfont plugins]), ,
[ with_fluidsynth=yes ])
AH_TEMPLATE(HAVE_FLUIDSYNTH_H, [Define to 1 if you have the <fluidsynth.h> header file.])
if test "x$with_fluidsynth" = "xyes" ; then
FLUIDSYNTH_SUPPORT="true"
AC_CHECK_HEADER([fluidsynth.h], HAVE_FLUIDSYNTH_H="true", FLUIDSYNTH_SUPPORT="")
AC_CHECK_LIB([fluidsynth], [new_fluid_synth], HAVE_FLUIDSYNTH="true", FLUIDSYNTH_SUPPORT="")
fi
if test ! -z "$FLUIDSYNTH_SUPPORT" ; then
AC_DEFINE(HAVE_FLUIDSYNTH_H)
AC_SUBST(fluidsynth_includes, [/usr/include])
AC_SUBST(fluidsynth_lib, [/usr/lib])
fi
AM_CONDITIONAL(FLUIDSYNTH_SUPPORT, test ! -z "$FLUIDSYNTH_SUPPORT")
# libsndfile-stuff
AC_ARG_WITH(libsf,
AS_HELP_STRING([--without-libsf],
@@ -907,6 +925,28 @@ else
fi
if test -z "$FLUIDSYNTH_SUPPORT" ; then
if test "x$with_fluidsynth" = "xyes" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have Fluidsynth development files."
echo " = The SoundFont2 Player plugin will be ignored."
echo " = Consider installing fluidsynth for the full power of LMMS."
echo " ="
echo " = To remove this warning, please pass"
echo " = "
echo " = --without-fluidsynth"
echo " ="
with_warnings="true"
fi
else
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* SoundFont2 Player plugin"
fi
if test ! -z "$WINECXX" ; then
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* LMMS VST Support Layer (LVSL) for built-in VST-plugin usage"
else