79 |
if test "x$ac_debug" = "xyes"; then |
if test "x$ac_debug" = "xyes"; then |
80 |
AC_DEFINE(CONFIG_DEBUG, 1, [Define if debugging is enabled.]) |
AC_DEFINE(CONFIG_DEBUG, 1, [Define if debugging is enabled.]) |
81 |
ac_stacktrace="yes" |
ac_stacktrace="yes" |
82 |
ac_debug="debug" |
ac_build_type="debug" |
83 |
else |
else |
84 |
ac_stacktrace="no" |
ac_stacktrace="no" |
85 |
ac_debug="release" |
ac_build_type="release" |
86 |
fi |
fi |
87 |
AC_SUBST(ac_debug) |
AC_SUBST(ac_build_type) |
88 |
|
|
89 |
|
|
90 |
# Enable libgig availability. |
# Enable libgig availability. |
393 |
AC_CACHE_CHECK([for instrument_name in lscp_channel_info_t], |
AC_CACHE_CHECK([for instrument_name in lscp_channel_info_t], |
394 |
ac_cv_instrument_name, [ |
ac_cv_instrument_name, [ |
395 |
AC_TRY_COMPILE([#include "lscp/client.h"], [ |
AC_TRY_COMPILE([#include "lscp/client.h"], [ |
396 |
lscp_channel_info_t info; |
lscp_channel_info_t info; |
397 |
info.instrument_name = 0; |
info.instrument_name = 0; |
398 |
], ac_cv_instrument_name="yes", ac_cv_instrument_name="no") |
], ac_cv_instrument_name="yes", ac_cv_instrument_name="no") |
399 |
]) |
]) |
400 |
ac_instrument_name=$ac_cv_instrument_name |
ac_instrument_name=$ac_cv_instrument_name |
405 |
AC_CACHE_CHECK([for mute/solo in lscp_channel_info_t], |
AC_CACHE_CHECK([for mute/solo in lscp_channel_info_t], |
406 |
ac_cv_mute_solo, [ |
ac_cv_mute_solo, [ |
407 |
AC_TRY_COMPILE([#include "lscp/client.h"], [ |
AC_TRY_COMPILE([#include "lscp/client.h"], [ |
408 |
lscp_channel_info_t info; |
lscp_channel_info_t info; |
409 |
info.mute = 0; |
info.mute = 0; |
410 |
info.solo = 0; |
info.solo = 0; |
411 |
], ac_cv_mute_solo="yes", ac_cv_mute_solo="no") |
], ac_cv_mute_solo="yes", ac_cv_mute_solo="no") |
412 |
]) |
]) |
413 |
ac_mute_solo=$ac_cv_mute_solo |
ac_mute_solo=$ac_cv_mute_solo |
423 |
|
|
424 |
AC_CHECK_LIB(lscp, lscp_map_midi_instrument, [ac_midi_instrument="yes"], [ac_midi_instrument="no"]) |
AC_CHECK_LIB(lscp, lscp_map_midi_instrument, [ac_midi_instrument="yes"], [ac_midi_instrument="no"]) |
425 |
if test "x$ac_midi_instrument" = "xyes"; then |
if test "x$ac_midi_instrument" = "xyes"; then |
426 |
AC_DEFINE(CONFIG_MIDI_INSTRUMENT, 1, [Define if MIDI instrument mapping is available.]) |
AC_DEFINE(CONFIG_MIDI_INSTRUMENT, 1, [Define if MIDI instrument mapping is available.]) |
427 |
fi |
fi |
428 |
|
|
429 |
AC_CHECK_LIB(lscp, lscp_create_fxsend, [ac_fxsend="yes"], [ac_fxsend="no"]) |
AC_CHECK_LIB(lscp, lscp_create_fxsend, [ac_fxsend="yes"], [ac_fxsend="no"]) |
432 |
AC_CACHE_CHECK([for FX send level in lscp_fxsend_info_t], |
AC_CACHE_CHECK([for FX send level in lscp_fxsend_info_t], |
433 |
ac_cv_fxsend_level, [ |
ac_cv_fxsend_level, [ |
434 |
AC_TRY_COMPILE([#include "lscp/client.h"], [ |
AC_TRY_COMPILE([#include "lscp/client.h"], [ |
435 |
lscp_fxsend_info_t info; |
lscp_fxsend_info_t info; |
436 |
info.level = 0.0f; |
info.level = 0.0f; |
437 |
], ac_cv_fxsend_level="yes", ac_cv_fxsend_level="no") |
], ac_cv_fxsend_level="yes", ac_cv_fxsend_level="no") |
438 |
]) |
]) |
439 |
ac_fxsend_level=$ac_cv_fxsend_level |
ac_fxsend_level=$ac_cv_fxsend_level |
440 |
if test "x$ac_fxsend_level" = "xyes"; then |
if test "x$ac_fxsend_level" = "xyes"; then |
441 |
AC_DEFINE(CONFIG_FXSEND_LEVEL, 1, [Define if FX send level is available.]) |
AC_DEFINE(CONFIG_FXSEND_LEVEL, 1, [Define if FX send level is available.]) |
442 |
fi |
fi |
443 |
AC_CHECK_LIB(lscp, lscp_set_fxsend_name, [ac_fxsend_rename="yes"], [ac_fxsend_rename="no"]) |
AC_CHECK_LIB(lscp, lscp_set_fxsend_name, [ac_fxsend_rename="yes"], [ac_fxsend_rename="no"]) |
444 |
if test "x$ac_fxsend_rename" = "xyes"; then |
if test "x$ac_fxsend_rename" = "xyes"; then |
445 |
AC_DEFINE(CONFIG_FXSEND_RENAME, 1, [Define if FX send rename is available.]) |
AC_DEFINE(CONFIG_FXSEND_RENAME, 1, [Define if FX send rename is available.]) |
446 |
fi |
fi |
447 |
fi |
fi |
448 |
|
|
449 |
AC_CACHE_CHECK([for audio_routing array type], |
AC_CACHE_CHECK([for audio_routing array type], |
450 |
ac_cv_audio_routing, [ |
ac_cv_audio_routing, [ |
451 |
AC_TRY_COMPILE([#include "lscp/client.h"], [ |
AC_TRY_COMPILE([#include "lscp/client.h"], [ |
452 |
lscp_channel_info_t info; |
lscp_channel_info_t info; |
453 |
char ch = info.audio_routing[0][0]; |
char ch = info.audio_routing[0][0]; |
454 |
], ac_cv_audio_routing="no", ac_cv_audio_routing="yes") |
], ac_cv_audio_routing="no", ac_cv_audio_routing="yes") |
455 |
]) |
]) |
456 |
ac_audio_routing=$ac_cv_audio_routing |
ac_audio_routing=$ac_cv_audio_routing |
460 |
|
|
461 |
AC_CHECK_LIB(lscp, lscp_set_volume, [ac_volume="yes"], [ac_volume="no"]) |
AC_CHECK_LIB(lscp, lscp_set_volume, [ac_volume="yes"], [ac_volume="no"]) |
462 |
if test "x$ac_volume" = "xyes"; then |
if test "x$ac_volume" = "xyes"; then |
463 |
AC_DEFINE(CONFIG_VOLUME, 1, [Define if global volume is available.]) |
AC_DEFINE(CONFIG_VOLUME, 1, [Define if global volume is available.]) |
464 |
fi |
fi |
465 |
|
|
466 |
AC_CHECK_LIB(lscp, lscp_edit_channel_instrument, [ac_edit_instrument="yes"], [ac_edit_instrument="no"]) |
AC_CHECK_LIB(lscp, lscp_edit_channel_instrument, [ac_edit_instrument="yes"], [ac_edit_instrument="no"]) |
467 |
if test "x$ac_edit_instrument" = "xyes"; then |
if test "x$ac_edit_instrument" = "xyes"; then |
468 |
AC_DEFINE(CONFIG_EDIT_INSTRUMENT, 1, [Define if instrument editing is available.]) |
AC_DEFINE(CONFIG_EDIT_INSTRUMENT, 1, [Define if instrument editing is available.]) |
469 |
fi |
fi |
470 |
|
|
471 |
AC_CACHE_CHECK([for CHANNEL_MIDI LSCP event support in liblscp], |
AC_CACHE_CHECK([for CHANNEL_MIDI LSCP event support in liblscp], |
472 |
ac_cv_channel_midi_event, [ |
ac_cv_channel_midi_event, [ |
473 |
AC_TRY_COMPILE([ |
AC_TRY_COMPILE([ |
474 |
#include "lscp/client.h" |
#include "lscp/client.h" |
475 |
#include "lscp/event.h" |
#include "lscp/event.h" |
476 |
], [ |
], [ |
477 |
lscp_event_t ev; |
lscp_event_t ev; |
478 |
ev = LSCP_EVENT_CHANNEL_MIDI; |
ev = LSCP_EVENT_CHANNEL_MIDI; |
479 |
], ac_cv_channel_midi_event="yes", ac_cv_channel_midi_event="no") |
], ac_cv_channel_midi_event="yes", ac_cv_channel_midi_event="no") |
480 |
]) |
]) |
481 |
ac_channel_midi_event=$ac_cv_channel_midi_event |
ac_channel_midi_event=$ac_cv_channel_midi_event |
486 |
AC_CACHE_CHECK([for DEVICE_MIDI LSCP event support in liblscp], |
AC_CACHE_CHECK([for DEVICE_MIDI LSCP event support in liblscp], |
487 |
ac_cv_device_midi_event, [ |
ac_cv_device_midi_event, [ |
488 |
AC_TRY_COMPILE([ |
AC_TRY_COMPILE([ |
489 |
#include "lscp/client.h" |
#include "lscp/client.h" |
490 |
#include "lscp/event.h" |
#include "lscp/event.h" |
491 |
], [ |
], [ |
492 |
lscp_event_t ev; |
lscp_event_t ev; |
493 |
ev = LSCP_EVENT_DEVICE_MIDI; |
ev = LSCP_EVENT_DEVICE_MIDI; |
494 |
], ac_cv_device_midi_event="yes", ac_cv_device_midi_event="no") |
], ac_cv_device_midi_event="yes", ac_cv_device_midi_event="no") |
495 |
]) |
]) |
496 |
ac_device_midi_event=$ac_cv_device_midi_event |
ac_device_midi_event=$ac_cv_device_midi_event |
500 |
|
|
501 |
AC_CHECK_LIB(lscp, lscp_get_voices, [ac_max_voices="yes"], [ac_max_voices="no"]) |
AC_CHECK_LIB(lscp, lscp_get_voices, [ac_max_voices="yes"], [ac_max_voices="no"]) |
502 |
if test "x$ac_max_voices" = "xyes"; then |
if test "x$ac_max_voices" = "xyes"; then |
503 |
AC_DEFINE(CONFIG_MAX_VOICES, 1, [Define if max. voices / streams is available.]) |
AC_DEFINE(CONFIG_MAX_VOICES, 1, [Define if max. voices / streams is available.]) |
504 |
fi |
fi |
505 |
|
|
506 |
AC_CHECK_LIB(lscp, lscp_client_connection_lost, [ac_lscp_conn_lost="yes"], [ac_lscp_conn_lost="no"]) |
AC_CHECK_LIB(lscp, lscp_client_connection_lost, [ac_lscp_conn_lost="yes"], [ac_lscp_conn_lost="no"]) |
507 |
if test "x$ac_lscp_conn_lost" = "xyes"; then |
if test "x$ac_lscp_conn_lost" = "xyes"; then |
508 |
AC_DEFINE(CONFIG_LSCP_CLIENT_CONNECTION_LOST, 1, [Define if liblscp function lscp_client_connection_lost() is available.]) |
AC_DEFINE(CONFIG_LSCP_CLIENT_CONNECTION_LOST, 1, [Define if liblscp function lscp_client_connection_lost() is available.]) |
509 |
fi |
fi |
510 |
|
|
511 |
# Check for optional libraries. |
# Check for optional libraries. |
586 |
echo |
echo |
587 |
echo " $PACKAGE_NAME $ac_build_version (Qt $ac_qt_version)" |
echo " $PACKAGE_NAME $ac_build_version (Qt $ac_qt_version)" |
588 |
echo |
echo |
589 |
echo " Build target . . . . . . . . . . . . . . . . . . .: $ac_debug" |
echo " Build target . . . . . . . . . . . . . . . . . . .: $ac_build_type" |
590 |
echo |
echo |
591 |
echo " LSCP instrument name support . . . . . . . . . . .: $ac_instrument_name" |
echo " LSCP instrument name support . . . . . . . . . . .: $ac_instrument_name" |
592 |
echo " LSCP mute/solo support . . . . . . . . . . . . . .: $ac_mute_solo" |
echo " LSCP mute/solo support . . . . . . . . . . . . . .: $ac_mute_solo" |