150 |
AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) |
AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) |
151 |
AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.]) |
AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.]) |
152 |
|
|
153 |
|
# MidiShare (Linux, OS X, Windows) |
154 |
|
AC_CHECK_HEADER(MidiShare.h, |
155 |
|
AC_CHECK_LIB(MidiShare, MidiCountEvs, |
156 |
|
have_midishare=1, |
157 |
|
have_midishare=0 |
158 |
|
) |
159 |
|
, |
160 |
|
have_midishare=0 |
161 |
|
) |
162 |
|
if test "$have_midishare" = "1"; then |
163 |
|
have_midi_input_driver="true" |
164 |
|
fi |
165 |
|
AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1") |
166 |
|
AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_midishare,[Define to 1 if you have MidiShare installed.]) |
167 |
|
|
168 |
|
# CoreMIDI (OS X) |
169 |
|
AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h, |
170 |
|
have_coremidi=1, |
171 |
|
have_coremidi=0 |
172 |
|
) |
173 |
|
if test "$have_coremidi" = "1"; then |
174 |
|
have_midi_input_driver="true" |
175 |
|
fi |
176 |
|
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
177 |
|
AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.]) |
178 |
|
|
179 |
# Check presence of libgig |
# Check presence of libgig |
180 |
libgig_version="2.0.0" |
libgig_version="2.0.0" |
181 |
PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false) |
PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false) |
201 |
|
|
202 |
if test "$have_midi_input_driver" = "false"; then |
if test "$have_midi_input_driver" = "false"; then |
203 |
echo "No supported MIDI input system found!" |
echo "No supported MIDI input system found!" |
204 |
echo "Sorry, LinuxSampler only supports ALSA as MIDI input driver at the moment!" |
echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:" |
205 |
|
echo "ALSA, MIDIShare, CoreMIDI." |
206 |
|
echo "If you think you have one of those available on your system, make sure you" |
207 |
|
echo "also have the respective development (header) files installed." |
208 |
exit -1; |
exit -1; |
209 |
fi |
fi |
210 |
if test "$have_audio_output_driver" = "false"; then |
if test "$have_audio_output_driver" = "false"; then |
389 |
available options: |
available options: |
390 |
none: |
none: |
391 |
Disable voice stealing completely. |
Disable voice stealing completely. |
392 |
oldestvoiceonkey: |
oldestvoiceonkey (default): |
393 |
Try to kill a voice on the same key first, |
Try to kill a voice on the same key first, |
394 |
if no success, proceed with the oldest key. |
if no success, proceed with the oldest key. |
395 |
oldestkey (default): |
oldestkey: |
396 |
Try to kill a voice from the oldest active |
Try to kill a voice from the oldest active |
397 |
key.], |
key.], |
398 |
[ if test ! "(" "${enableval}" = "none" \ |
[ if test ! "(" "${enableval}" = "none" \ |
401 |
AC_MSG_ERROR([Unknown voice stealing algorithm for parameter --enable-voice-steal-algo]) |
AC_MSG_ERROR([Unknown voice stealing algorithm for parameter --enable-voice-steal-algo]) |
402 |
else |
else |
403 |
config_voice_steal_algo="${enableval}" |
config_voice_steal_algo="${enableval}" |
404 |
fi |
fi |
405 |
], |
], |
406 |
[config_voice_steal_algo="oldestkey"] |
[config_voice_steal_algo="oldestvoiceonkey"] |
407 |
) |
) |
408 |
AC_DEFINE_UNQUOTED(CONFIG_VOICE_STEAL_ALGO, voice_steal_algo_${config_voice_steal_algo}, [Define voice stealing algorithm to be used.]) |
AC_DEFINE_UNQUOTED(CONFIG_VOICE_STEAL_ALGO, voice_steal_algo_${config_voice_steal_algo}, [Define voice stealing algorithm to be used.]) |
409 |
|
|
508 |
config_override_filter_type="::gig::vcf_type_lowpassturbo" |
config_override_filter_type="::gig::vcf_type_lowpassturbo" |
509 |
elif test ! "${enableval}" = "no"; then |
elif test ! "${enableval}" = "no"; then |
510 |
AC_MSG_ERROR([Unknown filter type for parameter --enable-override-filter-type]) |
AC_MSG_ERROR([Unknown filter type for parameter --enable-override-filter-type]) |
511 |
fi |
fi |
512 |
], |
], |
513 |
[config_override_filter_type="no"] |
[config_override_filter_type="no"] |
514 |
) |
) |
516 |
AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_FILTER_TYPE, $config_override_filter_type, [Define to a filter type to always force that filter type.]) |
AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_FILTER_TYPE, $config_override_filter_type, [Define to a filter type to always force that filter type.]) |
517 |
fi |
fi |
518 |
|
|
519 |
|
AC_ARG_ENABLE(gs-checksum, |
520 |
|
[ --enable-gs-checksum |
521 |
|
Enable Roland General Synth SysEx checksum check |
522 |
|
(default=no). If this is enabled, all GS SysEx |
523 |
|
messages which do not provide a correct checksum |
524 |
|
will be ignored. This is disabled by default as |
525 |
|
not all devices honor GS checksums.], |
526 |
|
[config_assert_gs_sysex_checksum="yes"], |
527 |
|
[config_assert_gs_sysex_checksum="no"] |
528 |
|
) |
529 |
|
if test "config_assert_gs_sysex_checksum" = "yes"; then |
530 |
|
AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.]) |
531 |
|
fi |
532 |
|
|
533 |
|
|
534 |
########################################################################### |
########################################################################### |
535 |
# Create Build Files |
# Create Build Files |
536 |
|
|
546 |
|
|
547 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
548 |
|
|
549 |
AC_OUTPUT(Makefile src/Makefile src/network/Makefile src/engines/Makefile src/engines/gig/Makefile src/engines/common/Makefile src/common/Makefile src/lib/Makefile src/lib/fileloader/Makefile src/lib/fileloader/libgig/Makefile src/testcases/Makefile src/drivers/Makefile src/drivers/audio/Makefile src/drivers/midi/Makefile) |
AC_OUTPUT(Makefile man/Makefile man/linuxsampler.1 src/Makefile src/network/Makefile src/engines/Makefile src/engines/gig/Makefile src/engines/common/Makefile src/common/Makefile src/lib/Makefile src/lib/fileloader/Makefile src/lib/fileloader/libgig/Makefile src/testcases/Makefile src/drivers/Makefile src/drivers/audio/Makefile src/drivers/midi/Makefile) |
550 |
|
|
551 |
|
|
552 |
########################################################################### |
########################################################################### |
570 |
echo "# Stream Size: ${config_stream_size}" |
echo "# Stream Size: ${config_stream_size}" |
571 |
echo "# Maximum Disk Streams: ${config_max_streams}" |
echo "# Maximum Disk Streams: ${config_max_streams}" |
572 |
echo "# Maximum Voices: ${config_max_voices}" |
echo "# Maximum Voices: ${config_max_voices}" |
573 |
|
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
574 |
echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte" |
echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte" |
575 |
echo "# Filter Update Steps: ${config_filter_update_steps}" |
echo "# Filter Update Steps: ${config_filter_update_steps}" |
576 |
echo "# Force Filter Usage: ${config_force_filter}" |
echo "# Force Filter Usage: ${config_force_filter}" |
579 |
echo "# Override Filter Cutoff Controller: ${config_override_cutoff_ctrl}" |
echo "# Override Filter Cutoff Controller: ${config_override_cutoff_ctrl}" |
580 |
echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}" |
echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}" |
581 |
echo "# Override Filter Type: ${config_override_filter_type}" |
echo "# Override Filter Type: ${config_override_filter_type}" |
582 |
|
echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}" |
583 |
echo "#-------------------------------------------------------------------#" |
echo "#-------------------------------------------------------------------#" |
584 |
echo "# Read './configure --help' or file 'configure.in' for details. #" |
echo "# Read './configure --help' or file 'configure.in' for details. #" |
585 |
echo "#####################################################################" |
echo "#####################################################################" |