5 |
|
|
6 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
7 |
LINUXSAMPLER_RELEASE_MINOR=5 |
LINUXSAMPLER_RELEASE_MINOR=5 |
8 |
LINUXSAMPLER_RELEASE_BUILD=1 |
LINUXSAMPLER_RELEASE_BUILD=1.8cvs |
9 |
|
|
10 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
11 |
# The following is the libtool / shared library version. This doesn't have to |
# The following is the libtool / shared library version. This doesn't have to |
33 |
# the LSCP specification version this LinuSampler release complies with: |
# the LSCP specification version this LinuSampler release complies with: |
34 |
|
|
35 |
LSCP_RELEASE_MAJOR=1 |
LSCP_RELEASE_MAJOR=1 |
36 |
LSCP_RELEASE_MINOR=3 |
LSCP_RELEASE_MINOR=4 |
37 |
|
|
38 |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.]) |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.]) |
39 |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.]) |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.]) |
40 |
|
|
41 |
|
AC_PROG_CXX |
42 |
|
AC_LIBTOOL_WIN32_DLL |
43 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
44 |
|
|
45 |
AC_SUBST(SHLIB_VERSION_ARG) |
AC_SUBST(SHLIB_VERSION_ARG) |
62 |
AC_MSG_CHECKING([whether x86 architecture]) |
AC_MSG_CHECKING([whether x86 architecture]) |
63 |
def_arch_x86=0 |
def_arch_x86=0 |
64 |
case $target_cpu in |
case $target_cpu in |
65 |
"i386" | "i486" | "i586" | "i686" | "i786") |
"i386" | "i486" | "i586" | "i686" | "i786" | "x86_64") |
66 |
echo "yes" |
echo "yes" |
67 |
def_arch_x86=1;; |
def_arch_x86=1;; |
68 |
*) |
*) |
74 |
# (only if the user did not provide one) |
# (only if the user did not provide one) |
75 |
CXX_CPU_SWITCH= |
CXX_CPU_SWITCH= |
76 |
if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then |
if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then |
77 |
if test "$def_arch_x86" = 1; then |
if test "$def_arch_x86" = 1 -a "$target_cpu" != "x86_64"; then |
78 |
CXX_CPU_SWITCH="-march=$target_cpu" |
CXX_CPU_SWITCH="-march=$target_cpu" |
79 |
elif test "$target_cpu" = "ppc"; then |
elif test "$target_cpu" = "ppc"; then |
80 |
CXX_CPU_SWITCH="-arch=$target_cpu" |
CXX_CPU_SWITCH="-arch=$target_cpu" |
163 |
echo "NPTL glibc bug check disabled" |
echo "NPTL glibc bug check disabled" |
164 |
fi |
fi |
165 |
|
|
166 |
|
# FIXME: this is actually a dependency of libgig, not of LS directly, why |
167 |
|
# isn't it hidden by libgig? |
168 |
|
AC_CHECK_HEADERS(uuid/uuid.h) |
169 |
|
AC_SEARCH_LIBS(uuid_generate, uuid) |
170 |
|
|
171 |
|
|
172 |
|
|
173 |
########################################################################### |
########################################################################### |
271 |
if test $have_jack = "1"; then |
if test $have_jack = "1"; then |
272 |
AC_SUBST(JACK_LIBS) |
AC_SUBST(JACK_LIBS) |
273 |
AC_SUBST(JACK_CFLAGS) |
AC_SUBST(JACK_CFLAGS) |
274 |
AC_CHECK_LIB(jack, jack_client_name_size, [AC_DEFINE(HAVE_JACK_CLIENT_NAME_SIZE, 1, [Define to 1 if you have the `jack_client_name_size' function.])], , $JACK_LIBS) |
linuxsampler_save_LIBS=$LIBS |
275 |
|
LIBS="$JACK_LIBS $LIBS" |
276 |
|
AC_CHECK_FUNCS(jack_client_name_size jack_client_open) |
277 |
|
LIBS=$linuxsampler_save_LIBS |
278 |
have_audio_output_driver="true"; |
have_audio_output_driver="true"; |
279 |
fi |
fi |
280 |
else |
else |
283 |
AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1") |
AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1") |
284 |
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.]) |
285 |
|
|
286 |
|
# JACK MIDI |
287 |
|
have_jack_midi=0 |
288 |
|
if test $have_jack = "1"; then |
289 |
|
linuxsampler_save_CFLAGS=$CFLAGS |
290 |
|
linuxsampler_save_LIBS=$LIBS |
291 |
|
CFLAGS="$JACK_CFLAGS $CFLAGS" |
292 |
|
LIBS="$JACK_LIBS $LIBS" |
293 |
|
AC_CHECK_HEADER(jack/midiport.h, have_jack_midi=1, have_jack_midi=0) |
294 |
|
if test $have_jack_midi = "1"; then |
295 |
|
AC_CHECK_FUNCS(jack_midi_get_event_count) |
296 |
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jack/midiport.h>]], [[ |
297 |
|
jack_midi_clear_buffer(0, 0); |
298 |
|
]])], [AC_DEFINE(JACK_MIDI_FUNCS_NEED_NFRAMES, 1, |
299 |
|
[Define to 1 if you have the old jack midi functions that need an nframes argument.])]) |
300 |
|
have_midi_input_driver="true" |
301 |
|
fi |
302 |
|
CFLAGS=$linuxsampler_save_CFLAGS |
303 |
|
LIBS=$linuxsampler_save_LIBS |
304 |
|
fi |
305 |
|
AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1") |
306 |
|
AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi, |
307 |
|
[Define to 1 if you have JACK with MIDI support installed.]) |
308 |
|
|
309 |
# ARTS |
# ARTS |
310 |
AC_ARG_ENABLE(arts-driver, |
AC_ARG_ENABLE(arts-driver, |
311 |
[ --disable-arts-driver |
[ --disable-arts-driver |
437 |
AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1") |
AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1") |
438 |
AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.]) |
AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.]) |
439 |
|
|
440 |
|
|
441 |
|
# DSSI |
442 |
|
AC_CHECK_HEADERS(dssi.h, |
443 |
|
have_dssi=1, |
444 |
|
have_dssi=0) |
445 |
|
AM_CONDITIONAL(HAVE_DSSI, test $have_dssi = "1") |
446 |
|
|
447 |
|
# LV2 |
448 |
|
PKG_CHECK_MODULES(LV2, lv2core, have_lv2=1, have_lv2=0) |
449 |
|
if test $have_lv2 = "0"; then |
450 |
|
AC_CHECK_HEADER(lv2.h, have_lv2=1, have_lv2=0) |
451 |
|
fi |
452 |
|
AM_CONDITIONAL(HAVE_LV2, test $have_lv2 = "1") |
453 |
|
|
454 |
|
# VST |
455 |
|
AC_ARG_ENABLE(vstsdk-dir, |
456 |
|
[ --enable-vstsdk-dir |
457 |
|
Directory where the VST SDK is located. |
458 |
|
This automatically enables the compilation |
459 |
|
of the VST plugin.], |
460 |
|
[VSTSDK_DIR="${enableval}"], |
461 |
|
[VSTSDK_DIR=] |
462 |
|
) |
463 |
|
AC_SUBST(VSTSDK_DIR) |
464 |
|
AM_CONDITIONAL(HAVE_VST, test "x$VSTSDK_DIR" != "x") |
465 |
|
|
466 |
|
|
467 |
# have we found at least one MIDI input and one audio output driver ? |
# have we found at least one MIDI input and one audio output driver ? |
468 |
if test "$have_midi_input_driver" = "false"; then |
if test "$have_midi_input_driver" = "false"; then |
469 |
echo "No supported MIDI input system found!" |
echo "No supported MIDI input system found!" |
470 |
echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:" |
echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:" |
471 |
echo "ALSA, MIDIShare, CoreMIDI." |
echo "ALSA, JACK, MIDIShare, CoreMIDI, MME." |
472 |
echo "If you think you have one of those available on your system, make sure you" |
echo "If you think you have one of those available on your system, make sure you" |
473 |
echo "also have the respective development (header) files installed." |
echo "also have the respective development (header) files installed." |
474 |
exit -1; |
exit -1; |
475 |
fi |
fi |
476 |
if test "$have_audio_output_driver" = "false"; then |
if test "$have_audio_output_driver" = "false"; then |
477 |
echo "No supported audio output system found!" |
echo "No supported audio output system found!" |
478 |
echo "Sorry, LinuxSampler only supports ALSA, JACK and ARTS as audio output" |
echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output" |
479 |
echo "driver at the moment!" |
echo "driver at the moment!" |
480 |
exit -1; |
exit -1; |
481 |
fi |
fi |
593 |
AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.]) |
AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.]) |
594 |
fi |
fi |
595 |
|
|
596 |
|
AC_ARG_ENABLE(pthread-testcancel, |
597 |
|
[ --enable-pthread-testcancel |
598 |
|
Enable pthread_testcancel() calls and avoid asynchronous |
599 |
|
cancel of pthreads (default=no).], |
600 |
|
[config_pthread_testcancel="$enableval"], |
601 |
|
[config_pthread_testcancel="no"] |
602 |
|
) |
603 |
|
if test "$config_pthread_testcancel" = "yes"; then |
604 |
|
AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.]) |
605 |
|
fi |
606 |
|
|
607 |
AC_ARG_ENABLE(preload-samples, |
AC_ARG_ENABLE(preload-samples, |
608 |
[ --enable-preload-samples |
[ --enable-preload-samples |
609 |
Due to seeking and latency issues with hard drives |
Due to seeking and latency issues with hard drives |
709 |
|
|
710 |
AC_ARG_ENABLE(max-streams, |
AC_ARG_ENABLE(max-streams, |
711 |
[ --enable-max-streams |
[ --enable-max-streams |
712 |
Maximum amount of disk streams (default=90). This |
Initial maximum amount of disk streams |
713 |
value should always be higher than the maximum |
(default=90). This value can be changed at |
714 |
amount of voices.], |
runtime. It should always be higher than the |
715 |
|
maximum amount of voices.], |
716 |
[config_max_streams="${enableval}"], |
[config_max_streams="${enableval}"], |
717 |
[config_max_streams="90"] |
[config_max_streams="90"] |
718 |
) |
) |
719 |
AC_DEFINE_UNQUOTED(CONFIG_MAX_STREAMS, $config_max_streams, [Define max. streams.]) |
AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_MAX_STREAMS, $config_max_streams, [Define initial max. streams.]) |
720 |
|
|
721 |
AC_ARG_ENABLE(max-voices, |
AC_ARG_ENABLE(max-voices, |
722 |
[ --enable-max-voices |
[ --enable-max-voices |
723 |
Maximum amount of voices (default=64). This value |
Initial maximum amount of voices (default=64). |
724 |
should always be lower than the maximum amount of |
This value can be changed at runtime. It should |
725 |
disk streams.], |
always be lower than the maximum amount of disk |
726 |
|
streams.], |
727 |
[config_max_voices="${enableval}"], |
[config_max_voices="${enableval}"], |
728 |
[config_max_voices="64"] |
[config_max_voices="64"] |
729 |
) |
) |
730 |
AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.]) |
AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_MAX_VOICES, $config_max_voices, [Define initial max. voices.]) |
731 |
|
|
732 |
AC_ARG_ENABLE(subfragment-size, |
AC_ARG_ENABLE(subfragment-size, |
733 |
[ --enable-subfragment-size |
[ --enable-subfragment-size |
1029 |
AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.]) |
AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.]) |
1030 |
fi |
fi |
1031 |
|
|
1032 |
|
AC_ARG_ENABLE(master-volume-sysex-by-port, |
1033 |
|
[ --enable-master-volume-sysex-by-port |
1034 |
|
Whether global volume sysex message should be |
1035 |
|
applied globally to the whole sampler or only to |
1036 |
|
the sampler channels connected to the same MIDI |
1037 |
|
input port on which the sysex message arrived on. |
1038 |
|
By default global volume sysex messages apply |
1039 |
|
globally to the whole sampler, since many MIDI |
1040 |
|
devices behave that way.], |
1041 |
|
[config_master_volume_sysex_by_port="$enableval"], |
1042 |
|
[config_master_volume_sysex_by_port="no"] |
1043 |
|
) |
1044 |
|
if test "$config_master_volume_sysex_by_port" = "yes"; then |
1045 |
|
AC_DEFINE_UNQUOTED(CONFIG_MASTER_VOLUME_SYSEX_BY_PORT, 1, [Define to 1 if you want global volume sysex message only be applied to the respective MIDI port.]) |
1046 |
|
fi |
1047 |
|
|
1048 |
AC_ARG_ENABLE(plugin-dir, |
AC_ARG_ENABLE(plugin-dir, |
1049 |
[ --enable-plugin-dir |
[ --enable-plugin-dir |
1050 |
Directory where the sampler shall look for potential plugins, |
Directory where the sampler shall look for potential plugins, |
1171 |
AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD") |
AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD") |
1172 |
|
|
1173 |
AC_LANG_CPLUSPLUS |
AC_LANG_CPLUSPLUS |
|
AC_PROG_CXX |
|
1174 |
|
|
1175 |
# some gcc 4.0 versions need -msse for SSE register allocations |
# some gcc 4.0 versions need -msse for SSE register allocations |
1176 |
if test "$config_asm" = "yes"; then |
if test "$config_asm" = "yes"; then |
1193 |
src/engines/Makefile \ |
src/engines/Makefile \ |
1194 |
src/engines/gig/Makefile \ |
src/engines/gig/Makefile \ |
1195 |
src/engines/common/Makefile \ |
src/engines/common/Makefile \ |
1196 |
|
src/effects/Makefile \ |
1197 |
src/common/Makefile \ |
src/common/Makefile \ |
1198 |
src/testcases/Makefile \ |
src/testcases/Makefile \ |
1199 |
src/drivers/Makefile \ |
src/drivers/Makefile \ |
1200 |
src/drivers/audio/Makefile \ |
src/drivers/audio/Makefile \ |
1201 |
src/drivers/midi/Makefile \ |
src/drivers/midi/Makefile \ |
1202 |
src/plugins/Makefile \ |
src/plugins/Makefile \ |
1203 |
|
src/hostplugins/Makefile \ |
1204 |
|
src/hostplugins/dssi/Makefile \ |
1205 |
|
src/hostplugins/lv2/Makefile \ |
1206 |
|
src/hostplugins/vst/Makefile \ |
1207 |
linuxsampler.spec \ |
linuxsampler.spec \ |
1208 |
debian/Makefile \ |
debian/Makefile \ |
1209 |
Artwork/Makefile \ |
Artwork/Makefile \ |
1244 |
echo "# Minimum Stream Refill Size: ${config_stream_min_refill}" |
echo "# Minimum Stream Refill Size: ${config_stream_min_refill}" |
1245 |
echo "# Maximum Stream Refill Size: ${config_stream_max_refill}" |
echo "# Maximum Stream Refill Size: ${config_stream_max_refill}" |
1246 |
echo "# Stream Size: ${config_stream_size}" |
echo "# Stream Size: ${config_stream_size}" |
1247 |
echo "# Maximum Disk Streams: ${config_max_streams}" |
echo "# Default Maximum Disk Streams: ${config_max_streams}" |
1248 |
echo "# Maximum Voices: ${config_max_voices}" |
echo "# Default Maximum Voices: ${config_max_voices}" |
1249 |
echo "# Default Subfragment Size: ${config_subfragment_size}" |
echo "# Default Subfragment Size: ${config_subfragment_size}" |
1250 |
echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}" |
echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}" |
1251 |
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
1264 |
echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}" |
echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}" |
1265 |
echo "# Process Muted Channels: ${config_process_muted_channels}" |
echo "# Process Muted Channels: ${config_process_muted_channels}" |
1266 |
echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" |
echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" |
1267 |
|
echo "# Apply global volume SysEx by MIDI port: ${config_master_volume_sysex_by_port}" |
1268 |
echo "# Interpolate Volume: ${config_interpolate_volume}" |
echo "# Interpolate Volume: ${config_interpolate_volume}" |
1269 |
echo "# Instruments database support: ${config_instruments_db}" |
echo "# Instruments database support: ${config_instruments_db}" |
1270 |
if test "$config_instruments_db" = "yes"; then |
if test "$config_instruments_db" = "yes"; then |