4 |
# LinuxSampler's / liblinuxsampler's "official" release version: |
# LinuxSampler's / liblinuxsampler's "official" release version: |
5 |
|
|
6 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
7 |
LINUXSAMPLER_RELEASE_MINOR=4 |
LINUXSAMPLER_RELEASE_MINOR=5 |
8 |
LINUXSAMPLER_RELEASE_BUILD=0.1cvs |
LINUXSAMPLER_RELEASE_BUILD=1.4cvs |
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 |
24 |
# 6. If any interfaces have been removed since the last public release, then set age |
# 6. If any interfaces have been removed since the last public release, then set age |
25 |
# to 0. |
# to 0. |
26 |
|
|
27 |
LIBLINUXSAMPLER_LT_CURRENT=0 |
LIBLINUXSAMPLER_LT_CURRENT=2 |
28 |
LIBLINUXSAMPLER_LT_REVISION=0 |
LIBLINUXSAMPLER_LT_REVISION=0 |
29 |
LIBLINUXSAMPLER_LT_AGE=0 |
LIBLINUXSAMPLER_LT_AGE=1 |
30 |
SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE" |
SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE" |
31 |
|
|
32 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
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=2 |
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.]) |
52 |
AC_SUBST(target_os) |
AC_SUBST(target_os) |
53 |
AC_SUBST(target_vendor) |
AC_SUBST(target_vendor) |
54 |
|
|
55 |
|
PKG_PROG_PKG_CONFIG |
56 |
|
|
57 |
########################################################################### |
########################################################################### |
58 |
# General Checks |
# General Checks |
80 |
fi |
fi |
81 |
AC_SUBST([CXX_CPU_SWITCH]) |
AC_SUBST([CXX_CPU_SWITCH]) |
82 |
|
|
83 |
|
# check if we're on MS Windows |
84 |
|
AC_CHECK_HEADERS( |
85 |
|
mmsystem.h, |
86 |
|
have_windows=1, |
87 |
|
have_windows=0 |
88 |
|
) |
89 |
|
AM_CONDITIONAL(HAVE_WINDOWS, test $have_windows = "1") |
90 |
|
|
91 |
AC_MSG_CHECKING([whether UNIX98 compatible]) |
AC_MSG_CHECKING([whether UNIX98 compatible]) |
92 |
AC_LANG_SAVE |
AC_LANG_SAVE |
93 |
AC_LANG_C |
AC_LANG_C |
110 |
) |
) |
111 |
AC_LANG_RESTORE |
AC_LANG_RESTORE |
112 |
AC_MSG_RESULT([$have_unix98]) |
AC_MSG_RESULT([$have_unix98]) |
113 |
if test "$have_unix98" = "no"; then |
if test "$have_unix98" = "no" -a "have_windows" = "0"; then |
114 |
if test "x$HAVE_UNIX98" = "x"; then |
if test "x$HAVE_UNIX98" = "x"; then |
115 |
echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for" |
echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for" |
116 |
echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run |
echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run |
123 |
# check for <features.h> |
# check for <features.h> |
124 |
AC_CHECK_HEADERS(features.h) |
AC_CHECK_HEADERS(features.h) |
125 |
|
|
126 |
|
# test for POSIX thread library |
127 |
|
m4_ifdef([m4_include(m4/pthread.m4)],, |
128 |
|
[sinclude([m4/pthread.m4])]) |
129 |
|
ACX_PTHREAD |
130 |
|
LIBS="$PTHREAD_LIBS $LIBS" |
131 |
|
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
132 |
|
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" |
133 |
|
CC="$PTHREAD_CC" |
134 |
|
|
135 |
|
# check for a bug in NPTL-enabled glibc |
136 |
|
# (see Gentoo bug report #194076) |
137 |
|
AC_ARG_ENABLE(nptl-bug-check, |
138 |
|
[ --disable-nptl-bug-check |
139 |
|
Disable check for a bug in certain NPTL-enabled |
140 |
|
glibc versions that caused crashs.], |
141 |
|
[config_check_nptl_bug="$enableval"], |
142 |
|
[config_check_nptl_bug="yes"] |
143 |
|
) |
144 |
|
if test "$config_check_nptl_bug" = "yes"; then |
145 |
|
m4_ifdef([m4_include(m4/nptl_bug.m4)],, |
146 |
|
[sinclude([m4/nptl_bug.m4])]) |
147 |
|
ACX_NPTL_GLIBC_BUG([ |
148 |
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
149 |
|
echo "You seem to have a buggy PTHREAD library! LinuxSampler would" |
150 |
|
echo "probably crash due to this. Please report us the system you are" |
151 |
|
echo "using and/or file a bug report to the bug tracking system of" |
152 |
|
echo "your distribution." |
153 |
|
echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as" |
154 |
|
echo "well, you can try to circumvent this problem for now by setting" |
155 |
|
echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which" |
156 |
|
echo "should cause this test to pass." |
157 |
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
158 |
|
AC_MSG_ERROR([possibly NPTL glibc bug detected]) |
159 |
|
]) |
160 |
|
else |
161 |
|
echo "NPTL glibc bug check disabled" |
162 |
|
fi |
163 |
|
|
164 |
|
|
165 |
|
|
166 |
########################################################################### |
########################################################################### |
167 |
# Checks for available audio and MIDI systems / drivers |
# Checks for available audio and MIDI systems / drivers |
175 |
[ --disable-alsa-driver |
[ --disable-alsa-driver |
176 |
Disable support for the Advanced Linux Sound |
Disable support for the Advanced Linux Sound |
177 |
Architecture (ALSA).], |
Architecture (ALSA).], |
178 |
[config_alsa_driver="no"], |
[config_alsa_driver="$enableval"], |
179 |
[config_alsa_driver="yes"] |
[config_alsa_driver="yes"] |
180 |
) |
) |
181 |
have_alsa=0 |
have_alsa=0 |
255 |
[ --disable-jack-driver |
[ --disable-jack-driver |
256 |
Disable support for the Jack Audio Connection Kit |
Disable support for the Jack Audio Connection Kit |
257 |
(JACK).], |
(JACK).], |
258 |
[config_jack_driver="no"], |
[config_jack_driver="$enableval"], |
259 |
[config_jack_driver="yes"] |
[config_jack_driver="yes"] |
260 |
) |
) |
261 |
have_jack=0 |
have_jack=0 |
273 |
AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1") |
AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1") |
274 |
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.]) |
275 |
|
|
276 |
|
# JACK MIDI |
277 |
|
have_jack_midi=0 |
278 |
|
if test $have_jack = "1"; then |
279 |
|
linuxsampler_save_CFLAGS=$CFLAGS |
280 |
|
linuxsampler_save_LIBS=$LIBS |
281 |
|
CFLAGS="$JACK_CFLAGS $CFLAGS" |
282 |
|
LIBS="$JACK_LIBS $LIBS" |
283 |
|
AC_CHECK_HEADER(jack/midiport.h, have_jack_midi=1, have_jack_midi=0) |
284 |
|
if test $have_jack_midi = "1"; then |
285 |
|
AC_CHECK_FUNCS(jack_midi_get_event_count) |
286 |
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jack/midiport.h>]], [[ |
287 |
|
jack_midi_clear_buffer(0, 0); |
288 |
|
]])], [AC_DEFINE(JACK_MIDI_FUNCS_NEED_NFRAMES, 1, |
289 |
|
[Define to 1 if you have the old jack midi functions that need an nframes argument.])]) |
290 |
|
have_midi_input_driver="true" |
291 |
|
fi |
292 |
|
CFLAGS=$linuxsampler_save_CFLAGS |
293 |
|
LIBS=$linuxsampler_save_LIBS |
294 |
|
fi |
295 |
|
AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1") |
296 |
|
AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi, |
297 |
|
[Define to 1 if you have JACK with MIDI support installed.]) |
298 |
|
|
299 |
# ARTS |
# ARTS |
300 |
AC_ARG_ENABLE(arts-driver, |
AC_ARG_ENABLE(arts-driver, |
301 |
[ --disable-arts-driver |
[ --disable-arts-driver |
302 |
Disable support for the Analogue Realtime System |
Disable support for the Analogue Realtime System |
303 |
(aRts).], |
(aRts).], |
304 |
[config_arts_driver="no"], |
[config_arts_driver="$enableval"], |
305 |
[config_arts_driver="yes"] |
[config_arts_driver="yes"] |
306 |
) |
) |
307 |
have_arts=0 |
have_arts=0 |
318 |
AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1") |
AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1") |
319 |
AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.]) |
AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.]) |
320 |
|
|
321 |
|
# ASIO AUDIO (Win32) |
322 |
|
AC_ARG_ENABLE(asiosdk-dir, |
323 |
|
[ --enable-asiosdk-dir |
324 |
|
Directory where the ASIO SDK is located, this automatically |
325 |
|
enables the compilation of the ASIO audio output driver.], |
326 |
|
[config_asiosdk_dir="${enableval}"], |
327 |
|
[config_asiosdk_dir="."] |
328 |
|
) |
329 |
|
AC_SUBST(config_asiosdk_dir) |
330 |
|
|
331 |
|
AC_ARG_ENABLE(asio-driver, |
332 |
|
[ --disable-asio-driver |
333 |
|
Disable support for the Windows ASIO driver.], |
334 |
|
[config_asio_driver="$enableval"], |
335 |
|
[config_asio_driver="yes"] |
336 |
|
) |
337 |
|
have_asio=0 |
338 |
|
ASIOSDK_BASEDIR= |
339 |
|
if test "$config_asio_driver" = "yes"; then |
340 |
|
asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h |
341 |
|
echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...." |
342 |
|
if test -e $asiosdk_headerfile ; then |
343 |
|
echo yes |
344 |
|
have_asio=1 |
345 |
|
ASIOSDK_BASEDIR="$config_asiosdk_dir" |
346 |
|
else |
347 |
|
echo no |
348 |
|
have_asio=0 |
349 |
|
fi |
350 |
|
if test "$have_asio" = "1"; then |
351 |
|
have_audio_output_driver="true" |
352 |
|
fi |
353 |
|
else |
354 |
|
echo "Windows ASIO support disabled by configure script parameter" |
355 |
|
fi |
356 |
|
AC_SUBST(ASIOSDK_BASEDIR) |
357 |
|
AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1") |
358 |
|
AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.]) |
359 |
|
|
360 |
# MidiShare (Linux, OS X, Windows) |
# MidiShare (Linux, OS X, Windows) |
361 |
AC_ARG_ENABLE(midishare-driver, |
AC_ARG_ENABLE(midishare-driver, |
362 |
[ --disable-midishare-driver |
[ --disable-midishare-driver |
363 |
Disable support for the MidiShare system.], |
Disable support for the MidiShare system.], |
364 |
[config_midishare_driver="no"], |
[config_midishare_driver="$enableval"], |
365 |
[config_midishare_driver="yes"] |
[config_midishare_driver="yes"] |
366 |
) |
) |
367 |
have_midishare=0 |
have_midishare=0 |
387 |
AC_ARG_ENABLE(coremidi-driver, |
AC_ARG_ENABLE(coremidi-driver, |
388 |
[ --disable-coremidi-driver |
[ --disable-coremidi-driver |
389 |
Disable support for the Apple CoreMIDI system.], |
Disable support for the Apple CoreMIDI system.], |
390 |
[config_coremidi_driver="no"], |
[config_coremidi_driver="$enableval"], |
391 |
[config_coremidi_driver="yes"] |
[config_coremidi_driver="yes"] |
392 |
) |
) |
393 |
have_coremidi=0 |
have_coremidi=0 |
405 |
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
406 |
AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.]) |
AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.]) |
407 |
|
|
408 |
|
# MME MIDI (Win32) |
409 |
|
AC_ARG_ENABLE(mmemidi-driver, |
410 |
|
[ --disable-mmemidi-driver |
411 |
|
Disable support for the Windows MME MIDI system.], |
412 |
|
[config_mmemidi_driver="$enableval"], |
413 |
|
[config_mmemidi_driver="yes"] |
414 |
|
) |
415 |
|
have_mmemidi=0 |
416 |
|
if test "$config_mmemidi_driver" = "yes"; then |
417 |
|
AC_CHECK_HEADERS(mmsystem.h, |
418 |
|
have_mmemidi=1, |
419 |
|
have_mmemidi=0 |
420 |
|
) |
421 |
|
if test "$have_mmemidi" = "1"; then |
422 |
|
have_midi_input_driver="true" |
423 |
|
fi |
424 |
|
else |
425 |
|
echo "MME MIDI support disabled by configure script parameter" |
426 |
|
fi |
427 |
|
AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1") |
428 |
|
AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.]) |
429 |
|
|
430 |
|
# have we found at least one MIDI input and one audio output driver ? |
431 |
|
if test "$have_midi_input_driver" = "false"; then |
432 |
|
echo "No supported MIDI input system found!" |
433 |
|
echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:" |
434 |
|
echo "ALSA, JACK, MIDIShare, CoreMIDI, MME." |
435 |
|
echo "If you think you have one of those available on your system, make sure you" |
436 |
|
echo "also have the respective development (header) files installed." |
437 |
|
exit -1; |
438 |
|
fi |
439 |
|
if test "$have_audio_output_driver" = "false"; then |
440 |
|
echo "No supported audio output system found!" |
441 |
|
echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output" |
442 |
|
echo "driver at the moment!" |
443 |
|
exit -1; |
444 |
|
fi |
445 |
|
|
446 |
|
|
447 |
|
|
448 |
|
########################################################################### |
449 |
|
# Checks for various DLL libraries |
450 |
|
|
451 |
# Check presence of libgig |
# Check presence of libgig |
452 |
libgig_version="3.1.0" |
libgig_version="3.2.1" |
453 |
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) |
454 |
if test "$HAVE_GIG" = "false"; then |
if test "$HAVE_GIG" = "false"; then |
455 |
echo "Required libgig version not found!" |
echo "Required libgig version not found!" |
461 |
AC_SUBST(GIG_CFLAGS) |
AC_SUBST(GIG_CFLAGS) |
462 |
AC_SUBST(GIG_LIBS) |
AC_SUBST(GIG_LIBS) |
463 |
|
|
464 |
# SQLITE3 |
# Instruments DB feature (requires SQLite 3.3) |
465 |
PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false) |
AC_ARG_ENABLE(instruments-db, |
466 |
AC_SUBST(SQLITE3_LIBS) |
[ --disable-instruments-db |
467 |
AC_SUBST(SQLITE3_CFLAGS) |
Disable compilation of the sampler's instruments |
468 |
if test $HAVE_SQLITE3 = false; then |
database feature. You need to have SQLite 3.3 |
469 |
HAVE_SQLITE3=0; |
or younger installed for this feature.], |
470 |
echo "no, support for instrument DB will be disabled!" |
[config_instruments_db="$enableval"], |
471 |
|
[config_instruments_db="yes"] |
472 |
|
) |
473 |
|
HAVE_SQLITE3=0; |
474 |
|
if test "$config_instruments_db" = "yes"; then |
475 |
|
# Check presence of sqlite3 |
476 |
|
sqlite_version="3.3" |
477 |
|
PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false) |
478 |
|
AC_SUBST(SQLITE3_LIBS) |
479 |
|
AC_SUBST(SQLITE3_CFLAGS) |
480 |
|
if test $HAVE_SQLITE3 = false; then |
481 |
|
HAVE_SQLITE3=0 |
482 |
|
config_instruments_db="no" |
483 |
|
echo "*** Required sqlite version not found!" |
484 |
|
echo "*** You need to have sqlite version ${sqlite_version} or higher" |
485 |
|
echo "*** for instruments database support to be enabled." |
486 |
|
echo "*** Support for instruments DB will be disabled!" |
487 |
|
else |
488 |
|
HAVE_SQLITE3=1 |
489 |
|
fi |
490 |
else |
else |
491 |
HAVE_SQLITE3=1 |
echo "Instruments DB feature disabled by configure script parameter" |
|
echo "yes" |
|
492 |
fi |
fi |
493 |
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
494 |
AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you have SQLITE3 installed.]) |
AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you want the instruments DB feature and have SQLITE3 installed.]) |
495 |
|
|
|
if test "$have_midi_input_driver" = "false"; then |
|
|
echo "No supported MIDI input system found!" |
|
|
echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:" |
|
|
echo "ALSA, MIDIShare, CoreMIDI." |
|
|
echo "If you think you have one of those available on your system, make sure you" |
|
|
echo "also have the respective development (header) files installed." |
|
|
exit -1; |
|
|
fi |
|
|
if test "$have_audio_output_driver" = "false"; then |
|
|
echo "No supported audio output system found!" |
|
|
echo "Sorry, LinuxSampler only supports ALSA and JACK as audio output driver at the moment!" |
|
|
exit -1; |
|
|
fi |
|
496 |
|
|
497 |
|
|
498 |
########################################################################### |
########################################################################### |
501 |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
502 |
|
|
503 |
AC_ARG_ENABLE(asm, |
AC_ARG_ENABLE(asm, |
504 |
[ --enable-asm |
[ --disable-asm |
505 |
Enable hand-crafted assembly optimizations |
Enable hand-crafted assembly optimizations |
506 |
(default=off). LinuxSampler provides CPU specific |
(default=on). LinuxSampler provides CPU specific |
507 |
assembly optimizations for the most important |
assembly optimizations. This is currently limited |
508 |
synthesis algorithms. This is currently disabled |
to just enter a fast (denormal) FPU mode on x86 |
509 |
by default since current asm code is broken.], |
platforms. There are currently no synthesis core |
510 |
[config_asm="yes"], |
assembly optimizations anymore since LS 0.4.0], |
511 |
[config_asm="no"] |
[config_asm="$enableval"], |
512 |
|
[config_asm="yes"] |
513 |
) |
) |
514 |
if test "$config_asm" = "yes"; then |
if test "$config_asm" = "yes"; then |
515 |
AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable hand-crafted asm optimizations.]) |
AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable asm optimizations.]) |
516 |
fi |
fi |
517 |
|
|
518 |
AC_ARG_ENABLE(dev-mode, |
AC_ARG_ENABLE(dev-mode, |
519 |
[ --disable-dev-mode |
[ --enable-dev-mode |
520 |
Disable development mode (default=on). In that mode |
Enable development mode (default=off). In that mode |
521 |
we do some extra sanity checks here and there. |
we do some extra sanity checks here and there. |
522 |
This helps to spot possible problems, but reduces |
This helps to spot possible problems, but reduces |
523 |
efficiency a bit], |
efficiency a bit], |
524 |
[config_dev_mode="no"], |
[config_dev_mode="$enableval"], |
525 |
[config_dev_mode="yes"] |
[config_dev_mode="no"] |
526 |
) |
) |
527 |
if test "$config_dev_mode" = "yes"; then |
if test "$config_dev_mode" = "yes"; then |
528 |
AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.]) |
AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.]) |
549 |
context as well. Otherwise if disabled |
context as well. Otherwise if disabled |
550 |
segmentation faults will be forced by the |
segmentation faults will be forced by the |
551 |
application on critical errors.], |
application on critical errors.], |
552 |
[config_rt_exceptions="yes"], |
[config_rt_exceptions="$enableval"], |
553 |
[config_rt_exceptions="no"] |
[config_rt_exceptions="no"] |
554 |
) |
) |
555 |
if test "$config_rt_exceptions" = "yes"; then |
if test "$config_rt_exceptions" = "yes"; then |
556 |
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.]) |
557 |
fi |
fi |
558 |
|
|
559 |
|
AC_ARG_ENABLE(pthread-testcancel, |
560 |
|
[ --enable-pthread-testcancel |
561 |
|
Enable pthread_testcancel() calls and avoid asynchronous |
562 |
|
cancel of pthreads (default=no).], |
563 |
|
[config_pthread_testcancel="$enableval"], |
564 |
|
[config_pthread_testcancel="no"] |
565 |
|
) |
566 |
|
if test "$config_pthread_testcancel" = "yes"; then |
567 |
|
AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.]) |
568 |
|
fi |
569 |
|
|
570 |
AC_ARG_ENABLE(preload-samples, |
AC_ARG_ENABLE(preload-samples, |
571 |
[ --enable-preload-samples |
[ --enable-preload-samples |
572 |
Due to seeking and latency issues with hard drives |
Due to seeking and latency issues with hard drives |
705 |
) |
) |
706 |
AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).]) |
AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).]) |
707 |
|
|
708 |
AC_ARG_ENABLE(global-attenuation, |
AC_ARG_ENABLE(global-attenuation-default, |
709 |
[ --enable-global-attenuation |
[ --enable-global-attenuation-default |
710 |
To prevent clipping all samples will be lowered |
To prevent clipping all samples will be lowered |
711 |
in amplitude by this given factor. |
in amplitude by this given default factor (can |
712 |
|
be overridden at runtime). |
713 |
(default=0.35)], |
(default=0.35)], |
714 |
[config_global_attenuation="${enableval}"], |
[config_global_attenuation_default="${enableval}"], |
715 |
[config_global_attenuation="0.35"] |
[config_global_attenuation_default="0.35"] |
716 |
) |
) |
717 |
AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION, $config_global_attenuation, [Define global volume attenuation (as floating point factor).]) |
AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION_DEFAULT, $config_global_attenuation_default, [Define default global volume attenuation (as floating point factor).]) |
718 |
|
|
719 |
AC_ARG_ENABLE(voice-steal-algo, |
AC_ARG_ENABLE(voice-steal-algo, |
720 |
[ --enable-voice-steal-algo |
[ --enable-voice-steal-algo |
754 |
If enabled will force filter to be used even if |
If enabled will force filter to be used even if |
755 |
no usage was define in instrument patch files. |
no usage was define in instrument patch files. |
756 |
(default=no).], |
(default=no).], |
757 |
[config_force_filter="yes"], |
[config_force_filter="$enableval"], |
758 |
[config_force_filter="no"] |
[config_force_filter="no"] |
759 |
) |
) |
760 |
if test "$config_force_filter" = "yes"; then |
if test "$config_force_filter" = "yes"; then |
844 |
messages which do not provide a correct checksum |
messages which do not provide a correct checksum |
845 |
will be ignored. This is disabled by default as |
will be ignored. This is disabled by default as |
846 |
not all devices honor GS checksums.], |
not all devices honor GS checksums.], |
847 |
[config_assert_gs_sysex_checksum="yes"], |
[config_assert_gs_sysex_checksum="$enableval"], |
848 |
[config_assert_gs_sysex_checksum="no"] |
[config_assert_gs_sysex_checksum="no"] |
849 |
) |
) |
850 |
if test "config_assert_gs_sysex_checksum" = "yes"; then |
if test "config_assert_gs_sysex_checksum" = "yes"; then |
890 |
Similar to intmath but uses abs() function. |
Similar to intmath but uses abs() function. |
891 |
Depending on compiler and platrofm this could |
Depending on compiler and platrofm this could |
892 |
perform better than integer math as it avoids |
perform better than integer math as it avoids |
893 |
an extra integer multiply instruction. |
an extra integer multiply instruction. |
|
|
|
894 |
diharmonic: |
diharmonic: |
895 |
The triangular wave will be approximated by adding two |
The triangular wave will be approximated by adding two |
896 |
sinusoidials. This solution might especially hurt on |
sinusoidials. This solution might especially hurt on |
924 |
Similar to intmath but uses abs() function. |
Similar to intmath but uses abs() function. |
925 |
Depending on compiler and platrofm this could |
Depending on compiler and platrofm this could |
926 |
perform better than integer math as it avoids |
perform better than integer math as it avoids |
927 |
an extra integer multiply instruction. |
an extra integer multiply instruction. |
|
|
|
928 |
diharmonic: |
diharmonic: |
929 |
The triangular wave will be approximated by adding two |
The triangular wave will be approximated by adding two |
930 |
sinusoidials. This solution might especially hurt on |
sinusoidials. This solution might especially hurt on |
955 |
will not discard notes, triggered in mute mode, |
will not discard notes, triggered in mute mode, |
956 |
when the channel is unmuted. But also will reduce |
when the channel is unmuted. But also will reduce |
957 |
the efficiency.], |
the efficiency.], |
958 |
[config_process_muted_channels="yes"], |
[config_process_muted_channels="$enableval"], |
959 |
[config_process_muted_channels="no"] |
[config_process_muted_channels="no"] |
960 |
) |
) |
961 |
if test "$config_process_muted_channels" = "yes"; then |
if test "$config_process_muted_channels" = "yes"; then |
969 |
all voices whenever it receives an All-Notes-Off |
all voices whenever it receives an All-Notes-Off |
970 |
MIDI message. You can disable this behavior, so |
MIDI message. You can disable this behavior, so |
971 |
that LS simply ignores such messages.], |
that LS simply ignores such messages.], |
972 |
[config_process_all_notes_off="no"], |
[config_process_all_notes_off="$enableval"], |
973 |
[config_process_all_notes_off="yes"] |
[config_process_all_notes_off="yes"] |
974 |
) |
) |
975 |
if test "$config_process_all_notes_off" = "yes"; then |
if test "$config_process_all_notes_off" = "yes"; then |
983 |
generated by for example the envelope generator |
generated by for example the envelope generator |
984 |
will be smoother, minimizing the risk for audio |
will be smoother, minimizing the risk for audio |
985 |
clicks. Disable it to reduce CPU usage.], |
clicks. Disable it to reduce CPU usage.], |
986 |
[config_interpolate_volume="no"], |
[config_interpolate_volume="$enableval"], |
987 |
[config_interpolate_volume="yes"] |
[config_interpolate_volume="yes"] |
988 |
) |
) |
989 |
if test "$config_interpolate_volume" = "yes"; then |
if test "$config_interpolate_volume" = "yes"; then |
990 |
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.]) |
991 |
fi |
fi |
992 |
|
|
993 |
|
AC_ARG_ENABLE(plugin-dir, |
994 |
|
[ --enable-plugin-dir |
995 |
|
Directory where the sampler shall look for potential plugins, |
996 |
|
that is 3rd party shared libraries that should be loaded by |
997 |
|
the sampler on startup. By default the sampler will search |
998 |
|
for plugins in the subdirectory "plugins" below its own |
999 |
|
library directory. |
1000 |
|
(i.e. /usr/local/lib/linuxsampler/plugins)], |
1001 |
|
[config_plugin_dir="${enableval}"], |
1002 |
|
[config_plugin_dir="${libdir}/linuxsampler/plugins"] |
1003 |
|
) |
1004 |
|
AC_SUBST(config_plugin_dir) |
1005 |
|
|
1006 |
|
AC_ARG_ENABLE(default-instruments-db-location, |
1007 |
|
[ --enable-default-instruments-db-location |
1008 |
|
Only when instruments DB feature is enabled: file name |
1009 |
|
which shall be taken as default location of the |
1010 |
|
instruments DB file. This location can still be |
1011 |
|
overridden at runtime with a command line switch. |
1012 |
|
(default: /var/lib/linuxsampler/instruments.db)], |
1013 |
|
[config_default_instruments_db_file="${enableval}"], |
1014 |
|
[config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db"] |
1015 |
|
) |
1016 |
|
AC_DEFINE_UNQUOTED( |
1017 |
|
CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION, |
1018 |
|
"$config_default_instruments_db_file", |
1019 |
|
[Only when instruments DB feature is enabled: default location of the DB file.] |
1020 |
|
) |
1021 |
|
AC_SUBST(config_default_instruments_db_file) |
1022 |
|
|
1023 |
|
|
1024 |
########################################################################### |
########################################################################### |
1025 |
# Automatic Benchmarks (to detect the best algorithms for the system) |
# Automatic Benchmarks (to detect the best algorithms for the system) |
1054 |
echo "Call './configure --help' for further information or read configure.in." |
echo "Call './configure --help' for further information or read configure.in." |
1055 |
exit -1; |
exit -1; |
1056 |
fi |
fi |
1057 |
|
else |
1058 |
|
case "$config_signed_triang_algo" in |
1059 |
|
intmath) |
1060 |
|
triang_signed=2 ;; |
1061 |
|
diharmonic) |
1062 |
|
triang_signed=3 ;; |
1063 |
|
intmathabs) |
1064 |
|
triang_signed=5 ;; |
1065 |
|
esac |
1066 |
fi |
fi |
1067 |
AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.]) |
AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.]) |
1068 |
|
|
1094 |
echo "Call './configure --help' for further information or read configure.in." |
echo "Call './configure --help' for further information or read configure.in." |
1095 |
exit -1; |
exit -1; |
1096 |
fi |
fi |
1097 |
|
else |
1098 |
|
case "$config_unsigned_triang_algo" in |
1099 |
|
intmath) |
1100 |
|
triang_unsigned=2 ;; |
1101 |
|
diharmonic) |
1102 |
|
triang_unsigned=3 ;; |
1103 |
|
intmathabs) |
1104 |
|
triang_unsigned=5 ;; |
1105 |
|
esac |
1106 |
fi |
fi |
1107 |
AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.]) |
AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.]) |
1108 |
|
|
1134 |
man/Makefile \ |
man/Makefile \ |
1135 |
man/linuxsampler.1 \ |
man/linuxsampler.1 \ |
1136 |
src/Makefile \ |
src/Makefile \ |
1137 |
|
src/db/Makefile \ |
1138 |
src/network/Makefile \ |
src/network/Makefile \ |
1139 |
src/engines/Makefile \ |
src/engines/Makefile \ |
1140 |
src/engines/gig/Makefile \ |
src/engines/gig/Makefile \ |
1141 |
src/engines/common/Makefile \ |
src/engines/common/Makefile \ |
1142 |
src/common/Makefile src/lib/Makefile \ |
src/common/Makefile \ |
|
src/lib/fileloader/Makefile \ |
|
|
src/lib/fileloader/libgig/Makefile \ |
|
1143 |
src/testcases/Makefile \ |
src/testcases/Makefile \ |
1144 |
src/drivers/Makefile \ |
src/drivers/Makefile \ |
1145 |
src/drivers/audio/Makefile \ |
src/drivers/audio/Makefile \ |
1146 |
src/drivers/midi/Makefile \ |
src/drivers/midi/Makefile \ |
1147 |
|
src/plugins/Makefile \ |
1148 |
linuxsampler.spec \ |
linuxsampler.spec \ |
1149 |
debian/Makefile \ |
debian/Makefile \ |
1150 |
Artwork/Makefile \ |
Artwork/Makefile \ |
1151 |
scripts/Makefile \ |
scripts/Makefile \ |
1152 |
osx/Makefile \ |
osx/Makefile \ |
1153 |
osx/LinuxSampler.xcode/Makefile \ |
osx/linuxsampler.xcodeproj/Makefile \ |
1154 |
Documentation/Makefile \ |
Documentation/Makefile \ |
1155 |
Documentation/Engines/Makefile \ |
Documentation/Engines/Makefile \ |
1156 |
Documentation/Engines/gig/Makefile \ |
Documentation/Engines/gig/Makefile \ |
1158 |
Doxyfile \ |
Doxyfile \ |
1159 |
) |
) |
1160 |
|
|
1161 |
|
# resolve all nested variables in '${config_plugin_dir}' |
1162 |
|
# (merely for providing a human readable summary below) |
1163 |
|
while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do |
1164 |
|
config_plugin_dir=`eval echo ${config_plugin_dir}` |
1165 |
|
done |
1166 |
|
|
1167 |
|
|
1168 |
########################################################################### |
########################################################################### |
1169 |
# Output All Configuration Options |
# Output All Configuration Options |
1188 |
echo "# Maximum Disk Streams: ${config_max_streams}" |
echo "# Maximum Disk Streams: ${config_max_streams}" |
1189 |
echo "# Maximum Voices: ${config_max_voices}" |
echo "# Maximum Voices: ${config_max_voices}" |
1190 |
echo "# Default Subfragment Size: ${config_subfragment_size}" |
echo "# Default Subfragment Size: ${config_subfragment_size}" |
1191 |
echo "# Global Volume Attenuation: ${config_global_attenuation}" |
echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}" |
1192 |
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
1193 |
echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}" |
echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}" |
1194 |
echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}" |
echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}" |
1206 |
echo "# Process Muted Channels: ${config_process_muted_channels}" |
echo "# Process Muted Channels: ${config_process_muted_channels}" |
1207 |
echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" |
echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" |
1208 |
echo "# Interpolate Volume: ${config_interpolate_volume}" |
echo "# Interpolate Volume: ${config_interpolate_volume}" |
1209 |
|
echo "# Instruments database support: ${config_instruments_db}" |
1210 |
|
if test "$config_instruments_db" = "yes"; then |
1211 |
|
echo "# Instruments DB default location: ${config_default_instruments_db_file}" |
1212 |
|
fi |
1213 |
|
echo "# Plugin Path: ${config_plugin_dir}" |
1214 |
echo "#-------------------------------------------------------------------#" |
echo "#-------------------------------------------------------------------#" |
1215 |
echo "# Read './configure --help' or file 'configure.in' for details. #" |
echo "# Read './configure --help' or file 'configure.in' for details. #" |
1216 |
echo "#####################################################################" |
echo "#####################################################################" |