--- qsampler/trunk/configure.ac 2006/09/24 12:47:51 920 +++ qsampler/trunk/configure.ac 2007/01/15 19:11:59 1036 @@ -1,5 +1,5 @@ # Process this file with autoconf to produce a configure script. -AC_INIT(Qsampler, 0.1.3.1, rncbc@rncbc.org, qsampler) +AC_INIT(Qsampler, 0.1.3.25, rncbc@rncbc.org, qsampler) AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui.h) AC_CONFIG_HEADERS(config.h) AC_CONFIG_FILES(Makefile qsampler.pro qsampler.spec) @@ -193,6 +193,42 @@ AC_DEFINE(CONFIG_MUTE_SOLO, 1, [Define if mute/solo is available.]) fi +AC_CHECK_LIB(lscp, lscp_map_midi_instrument, [ac_midi_instrument="yes"], [ac_midi_instrument="no"]) +if test "x$ac_midi_instrument" = "xyes"; then + AC_DEFINE(CONFIG_MIDI_INSTRUMENT, 1, [Define if MIDI instrument mapping is available.]) +fi + +AC_CHECK_LIB(lscp, lscp_create_fxsend, [ac_fxsend="yes"], [ac_fxsend="no"]) +if test "x$ac_fxsend" = "xyes"; then + AC_DEFINE(CONFIG_FXSEND, 1, [Define if FX sends is available.]) + AC_CACHE_CHECK([for FX send level in lscp_fxsend_info_t], + ac_fxsend_level, [ + AC_TRY_COMPILE([#include "lscp/client.h"], [ + lscp_fxsend_info_t info; + info.level = 0.0f; + ], ac_fxsend_level="yes", ac_fxsend_level="no") + ]) + if test "x$ac_fxsend_level" = "xyes"; then + AC_DEFINE(CONFIG_FXSEND_LEVEL, 1, [Define if FX send level is available.]) + fi +fi + +AC_CACHE_CHECK([for audio_routing array type], + ac_audio_routing, [ + AC_TRY_COMPILE([#include "lscp/client.h"], [ + lscp_channel_info_t info; + char ch = info.audio_routing[0][0]; + ], ac_audio_routing="no", ac_audio_routing="yes") +]) +if test "x$ac_audio_routing" = "xyes"; then + AC_DEFINE(CONFIG_AUDIO_ROUTING, 1, [Define if audio_routing is an integer array.]) +fi + +AC_CHECK_LIB(lscp, lscp_set_volume, [ac_volume="yes"], [ac_volume="no"]) +if test "x$ac_volume" = "xyes"; then + AC_DEFINE(CONFIG_VOLUME, 1, [Define if global volume is available.]) +fi + # Check for optional libraries. if test "x$ac_libgig" = "xyes"; then AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"]) @@ -202,6 +238,12 @@ fi fi +# Check for round math function. +AC_CHECK_LIB(m, lroundf, [ac_round="yes"], [ac_round="no"]) +if test "x$ac_round" = "xyes"; then + AC_DEFINE(CONFIG_ROUND, 1, [Define if round is available.]) +fi + AC_SUBST(ac_libs) AC_SUBST(ac_incpath)