1 |
AC_INIT(configure.in) |
AC_INIT(configure.in) |
2 |
|
|
3 |
|
#------------------------------------------------------------------------------------ |
4 |
|
# LinuxSampler's / liblinuxsampler's "official" release version: |
5 |
|
|
6 |
|
LINUXSAMPLER_RELEASE_MAJOR=0 |
7 |
|
LINUXSAMPLER_RELEASE_MINOR=3 |
8 |
|
LINUXSAMPLER_RELEASE_BUILD=3cvs |
9 |
|
|
10 |
|
#------------------------------------------------------------------------------------ |
11 |
|
# The following is the libtool / shared library version. This doesn't have to |
12 |
|
# do anything with the release version. It MUST conform to the following rules: |
13 |
|
# |
14 |
|
# 1. Start with version information of `0:0:0' for each libtool library. |
15 |
|
# 2. Update the version information only immediately before a public release of |
16 |
|
# your software. More frequent updates are unnecessary, and only guarantee |
17 |
|
# that the current interface number gets larger faster. |
18 |
|
# 3. If the library source code has changed at all since the last update, then |
19 |
|
# increment revision (`c:r:a' becomes `c:r+1:a'). |
20 |
|
# 4. If any interfaces have been added, removed, or changed since the last update, |
21 |
|
# increment current, and set revision to 0. |
22 |
|
# 5. If any interfaces have been added since the last public release, then increment |
23 |
|
# age. |
24 |
|
# 6. If any interfaces have been removed since the last public release, then set age |
25 |
|
# to 0. |
26 |
|
|
27 |
|
LIBLINUXSAMPLER_LT_CURRENT=0 |
28 |
|
LIBLINUXSAMPLER_LT_REVISION=0 |
29 |
|
LIBLINUXSAMPLER_LT_AGE=0 |
30 |
|
SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE" |
31 |
|
|
32 |
|
AM_PROG_LIBTOOL |
33 |
|
|
34 |
|
AC_SUBST(SHLIB_VERSION_ARG) |
35 |
|
AC_SUBST(SHARED_VERSION_INFO) |
36 |
|
|
37 |
AC_C_BIGENDIAN |
AC_C_BIGENDIAN |
38 |
AC_CANONICAL_SYSTEM |
AC_CANONICAL_SYSTEM |
39 |
|
|
59 |
AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x86,[Define to 1 if you build for x86 architecture.]) |
AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x86,[Define to 1 if you build for x86 architecture.]) |
60 |
|
|
61 |
# determine the right gcc switch for CPU specific optimizations |
# determine the right gcc switch for CPU specific optimizations |
62 |
|
# (only if the user did not provide one) |
63 |
CXX_CPU_SWITCH= |
CXX_CPU_SWITCH= |
64 |
if test "$def_arch_x86" = 1; then |
if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then |
65 |
CXX_CPU_SWITCH="-march=$target_cpu" |
if test "$def_arch_x86" = 1; then |
66 |
elif test "$target_cpu" = "powerpc"; then |
CXX_CPU_SWITCH="-march=$target_cpu" |
67 |
CXX_CPU_SWITCH="-arch=$target_cpu" |
elif test "$target_cpu" = "powerpc"; then |
68 |
|
CXX_CPU_SWITCH="-arch=$target_cpu" |
69 |
|
fi |
70 |
fi |
fi |
71 |
AC_SUBST([CXX_CPU_SWITCH]) |
AC_SUBST([CXX_CPU_SWITCH]) |
72 |
|
|
102 |
fi |
fi |
103 |
fi |
fi |
104 |
|
|
105 |
|
# check for <features.h> |
106 |
|
AC_CHECK_HEADERS(features.h) |
107 |
|
|
108 |
# Checks for available audio and MIDI systems / drivers |
# Checks for available audio and MIDI systems / drivers |
109 |
# (we throw an error if there's not at least one system for audio output and MIDI input available) |
# (we throw an error if there's not at least one system for audio output and MIDI input available) |
110 |
have_midi_input_driver="false" |
have_midi_input_driver="false" |
191 |
AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) |
AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) |
192 |
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.]) |
193 |
|
|
194 |
|
# ARTS |
195 |
|
|
196 |
|
m4_ifdef([m4_include(m4/arts.m4)],, |
197 |
|
[sinclude([m4/arts.m4])]) |
198 |
|
|
199 |
|
AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0) |
200 |
|
if test "$have_arts" = "1"; then |
201 |
|
have_audio_output_driver="true" |
202 |
|
fi |
203 |
|
AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1") |
204 |
|
AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.]) |
205 |
|
|
206 |
# MidiShare (Linux, OS X, Windows) |
# MidiShare (Linux, OS X, Windows) |
207 |
AC_CHECK_HEADER(MidiShare.h, |
AC_CHECK_HEADER(MidiShare.h, |
208 |
AC_CHECK_LIB(MidiShare, MidiCountEvs, |
AC_CHECK_LIB(MidiShare, MidiCountEvs, |
230 |
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.]) |
231 |
|
|
232 |
# Check presence of libgig |
# Check presence of libgig |
233 |
libgig_version="2.0.1" |
libgig_version="2.0.2" |
234 |
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) |
235 |
if test "$HAVE_GIG" = "false"; then |
if test "$HAVE_GIG" = "false"; then |
236 |
echo "Required libgig version not found!" |
echo "Required libgig version not found!" |
237 |
echo "You need to have libgig version ${libgig_version} installed!" |
echo "You need to have libgig version ${libgig_version} installed!" |
238 |
exit -1; |
exit -1; |
239 |
|
else |
240 |
|
echo "yes, found libgig $libgig_version" |
241 |
fi |
fi |
242 |
AC_SUBST(GIG_CFLAGS) |
AC_SUBST(GIG_CFLAGS) |
243 |
AC_SUBST(GIG_LIBS) |
AC_SUBST(GIG_LIBS) |
248 |
AC_SUBST(SQLITE3_CFLAGS) |
AC_SUBST(SQLITE3_CFLAGS) |
249 |
if test $HAVE_SQLITE3 = false; then |
if test $HAVE_SQLITE3 = false; then |
250 |
HAVE_SQLITE3=0; |
HAVE_SQLITE3=0; |
251 |
|
echo "no, support for instrument DB will be disabled!" |
252 |
else |
else |
253 |
HAVE_SQLITE3=1 |
HAVE_SQLITE3=1 |
254 |
|
echo "yes" |
255 |
fi |
fi |
256 |
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
257 |
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 have SQLITE3 installed.]) |
277 |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
278 |
|
|
279 |
AC_ARG_ENABLE(asm, |
AC_ARG_ENABLE(asm, |
280 |
[ --disable-asm |
[ --enable-asm |
281 |
Disable hand-crafted assembly optimizations |
Enable hand-crafted assembly optimizations |
282 |
(default=on). LinuxSampler provides CPU specific |
(default=off). LinuxSampler provides CPU specific |
283 |
assembly optimizations for the most important |
assembly optimizations for the most important |
284 |
synthesis algorithms. You usually don't want to |
synthesis algorithms. This is currently disabled |
285 |
disable that.], |
by default since current asm code is broken.], |
286 |
[config_asm="no"], |
[config_asm="yes"], |
287 |
[config_asm="yes"] |
[config_asm="no"] |
288 |
) |
) |
289 |
if test "$config_asm" = "yes"; then |
if test "$config_asm" = "yes"; then |
290 |
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 hand-crafted asm optimizations.]) |
291 |
fi |
fi |
292 |
|
|
293 |
AC_ARG_ENABLE(dev-mode, |
AC_ARG_ENABLE(dev-mode, |
294 |
[ --enable-dev-mode |
[ --disable-dev-mode |
295 |
Enable development mode (default=no). In that mode |
Disable development mode (default=on). In that mode |
296 |
we do some extra sanity checks here and there. |
we do some extra sanity checks here and there. |
297 |
This helps to spot possible problems, but reduces |
This helps to spot possible problems, but reduces |
298 |
efficiency a bit], |
efficiency a bit], |
299 |
[config_dev_mode="yes"], |
[config_dev_mode="no"], |
300 |
[config_dev_mode="no"] |
[config_dev_mode="yes"] |
301 |
) |
) |
302 |
if test "$config_dev_mode" = "yes"; then |
if test "$config_dev_mode" = "yes"; then |
303 |
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.]) |
454 |
) |
) |
455 |
AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.]) |
AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.]) |
456 |
|
|
457 |
|
AC_ARG_ENABLE(subfragment-size, |
458 |
|
[ --enable-subfragment-size |
459 |
|
Every audio fragment will be splitted into |
460 |
|
subfragments. Where each subfragment renders |
461 |
|
audio with constant synthesis parameters. This is |
462 |
|
done for efficiency reasons. This parameter |
463 |
|
defines the default size of a subfragment in |
464 |
|
sample points. A large value means less CPU time |
465 |
|
whereas a low value means better audio quality |
466 |
|
(default=32).], |
467 |
|
[config_subfragment_size="${enableval}"], |
468 |
|
[config_subfragment_size="32"] |
469 |
|
) |
470 |
|
AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).]) |
471 |
|
|
472 |
|
AC_ARG_ENABLE(global-attenuation, |
473 |
|
[ --enable-global-attenuation |
474 |
|
To prevent clipping all samples will be lowered |
475 |
|
in amplitude by this given factor. |
476 |
|
(default=0.35)], |
477 |
|
[config_global_attenuation="${enableval}"], |
478 |
|
[config_global_attenuation="0.35"] |
479 |
|
) |
480 |
|
AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION, $config_global_attenuation, [Define global volume attenuation (as floating point factor).]) |
481 |
|
|
482 |
AC_ARG_ENABLE(voice-steal-algo, |
AC_ARG_ENABLE(voice-steal-algo, |
483 |
[ --enable-voice-steal-algo |
[ --enable-voice-steal-algo |
484 |
Voice stealing algorithm to be used. Currently |
Voice stealing algorithm to be used. Currently |
512 |
) |
) |
513 |
AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.]) |
AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.]) |
514 |
|
|
|
AC_ARG_ENABLE(filter-update-steps, |
|
|
[ --enable-filter-update-steps |
|
|
Amount of sample points after which filter |
|
|
parameters (cutoff, resonance) are going to be |
|
|
updated (default=64). Higher value means less CPU |
|
|
load, but also worse parameter resolution, this |
|
|
value will be aligned to a power of two.], |
|
|
[config_filter_update_steps="${enableval}"], |
|
|
[config_filter_update_steps="64"] |
|
|
) |
|
|
AC_DEFINE_UNQUOTED(CONFIG_FILTER_UPDATE_STEPS, $config_filter_update_steps, [Define amount of steps to refresh filter coefficients.]) |
|
|
|
|
515 |
AC_ARG_ENABLE(force-filter, |
AC_ARG_ENABLE(force-filter, |
516 |
[ --enable-force-filter |
[ --enable-force-filter |
517 |
If enabled will force filter to be used even if |
If enabled will force filter to be used even if |
614 |
AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.]) |
AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.]) |
615 |
fi |
fi |
616 |
|
|
617 |
|
AC_ARG_ENABLE(portamento-time-min, |
618 |
|
[ --enable-portamento-time-min |
619 |
|
Minimum Portamento time in seconds |
620 |
|
(default=0.1).], |
621 |
|
[config_portamento_time_min="${enableval}"], |
622 |
|
[config_portamento_time_min="0.1"] |
623 |
|
) |
624 |
|
AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MIN, $config_portamento_time_min, [Define min. portamento time.]) |
625 |
|
|
626 |
|
AC_ARG_ENABLE(portamento-time-max, |
627 |
|
[ --enable-portamento-time-max |
628 |
|
Maximum Portamento time in seconds |
629 |
|
(default=32).], |
630 |
|
[config_portamento_time_max="${enableval}"], |
631 |
|
[config_portamento_time_max="32"] |
632 |
|
) |
633 |
|
AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MAX, $config_portamento_time_max, [Define max. portamento time.]) |
634 |
|
|
635 |
|
AC_ARG_ENABLE(portamento-time-default, |
636 |
|
[ --enable-portamento-time-default |
637 |
|
Default Portamento time in seconds |
638 |
|
(default=1).], |
639 |
|
[config_portamento_time_default="${enableval}"], |
640 |
|
[config_portamento_time_default="1"] |
641 |
|
) |
642 |
|
AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_DEFAULT, $config_portamento_time_default, [Define default portamento time.]) |
643 |
|
|
644 |
|
AC_ARG_ENABLE(signed-triang-algo, |
645 |
|
[ --enable-signed-triang-algo |
646 |
|
Signed triangular wave algorithm to be used (e.g. for LFOs). |
647 |
|
Currently available options: |
648 |
|
intmath: |
649 |
|
Uses integer math without any branch will then be |
650 |
|
converted to floating point value for each sample point. |
651 |
|
This int->float conversion might hurt on some systems. |
652 |
|
intmathabs: |
653 |
|
Similar to intmath but uses abs() function. |
654 |
|
Depending on compiler and platrofm this could |
655 |
|
perform better than integer math as it avoids |
656 |
|
an extra integer multiply instruction. |
657 |
|
|
658 |
|
diharmonic: |
659 |
|
The triangular wave will be approximated by adding two |
660 |
|
sinusoidials. This solution might especially hurt on |
661 |
|
systems with weak floating point unit. |
662 |
|
benchmark (default): |
663 |
|
This is not an algorithm. Use this option if the |
664 |
|
appropriate algorithm should be automatically |
665 |
|
chosen by the configure script by performing a |
666 |
|
benchmark between the algorithms mentioned above. |
667 |
|
This will NOT work for cross compilation!], |
668 |
|
[ if test ! "(" "${enableval}" = "intmath" \ |
669 |
|
-o "${enableval}" = "intmathabs" \ |
670 |
|
-o "${enableval}" = "diharmonic" ")" ; then |
671 |
|
AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-signed-triang-algo]) |
672 |
|
else |
673 |
|
config_signed_triang_algo="${enableval}" |
674 |
|
fi |
675 |
|
], |
676 |
|
[config_signed_triang_algo="benchmark"] |
677 |
|
) |
678 |
|
|
679 |
|
AC_ARG_ENABLE(unsigned-triang-algo, |
680 |
|
[ --enable-unsigned-triang-algo |
681 |
|
Unsigned triangular wave algorithm to be used (e.g. for LFOs). |
682 |
|
Currently available options: |
683 |
|
intmath: |
684 |
|
Uses integer math without any branch will then be |
685 |
|
converted to floating point value for each sample point. |
686 |
|
This int->float conversion might hurt on some systems. |
687 |
|
intmathabs: |
688 |
|
Similar to intmath but uses abs() function. |
689 |
|
Depending on compiler and platrofm this could |
690 |
|
perform better than integer math as it avoids |
691 |
|
an extra integer multiply instruction. |
692 |
|
|
693 |
|
diharmonic: |
694 |
|
The triangular wave will be approximated by adding two |
695 |
|
sinusoidials. This solution might especially hurt on |
696 |
|
systems with weak floating point unit. |
697 |
|
benchmark (default): |
698 |
|
This is not an algorithm. Use this option if the |
699 |
|
appropriate algorithm should be automatically |
700 |
|
chosen by the configure script by performing a |
701 |
|
benchmark between the algorithms mentioned above. |
702 |
|
This will NOT work for cross compilation!], |
703 |
|
[ if test ! "(" "${enableval}" = "intmath" \ |
704 |
|
-o "${enableval}" = "intmathabs" \ |
705 |
|
-o "${enableval}" = "diharmonic" ")" ; then |
706 |
|
AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-unsigned-triang-algo]) |
707 |
|
else |
708 |
|
config_unsigned_triang_algo="${enableval}" |
709 |
|
fi |
710 |
|
], |
711 |
|
[config_unsigned_triang_algo="benchmark"] |
712 |
|
) |
713 |
|
|
714 |
|
AC_ARG_ENABLE(process-muted-channels, |
715 |
|
[ --enable-process-muted-channels |
716 |
|
Enable processing of muted channels (default=no). |
717 |
|
In that mode all MIDI events in the muted channels |
718 |
|
will be processed. This will provide information |
719 |
|
about the active voices in the muted channels and |
720 |
|
will not discard notes, triggered in mute mode, |
721 |
|
when the channel is unmuted. But also will reduce |
722 |
|
the efficiency.], |
723 |
|
[config_process_muted_channels="yes"], |
724 |
|
[config_process_muted_channels="no"] |
725 |
|
) |
726 |
|
if test "$config_process_muted_channels" = "yes"; then |
727 |
|
AC_DEFINE_UNQUOTED(CONFIG_PROCESS_MUTED_CHANNELS, 1, [Define to 1 if you want to enable processing of muted channels.]) |
728 |
|
fi |
729 |
|
|
730 |
|
AC_ARG_ENABLE(interpolate-volume, |
731 |
|
[ --disable-interpolate-volume |
732 |
|
Disable interpolation of volume modulation |
733 |
|
(default=on). With this enabled, the volume changes |
734 |
|
generated by for example the envelope generator |
735 |
|
will be smoother, minimizing the risk for audio |
736 |
|
clicks. Disable it to reduce CPU usage.], |
737 |
|
[config_interpolate_volume="no"], |
738 |
|
[config_interpolate_volume="yes"] |
739 |
|
) |
740 |
|
if test "$config_interpolate_volume" = "yes"; then |
741 |
|
AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.]) |
742 |
|
fi |
743 |
|
|
744 |
|
|
745 |
|
########################################################################### |
746 |
|
# Automatic Benchmarks (to detect the best algorithms for the system) |
747 |
|
|
748 |
|
AC_LANG_SAVE |
749 |
|
|
750 |
|
if test "$config_signed_triang_algo" = "benchmark"; then |
751 |
|
echo -n "benchmarking for the best (signed) triangular oscillator algorithm... " |
752 |
|
AC_LANG_CPLUSPLUS |
753 |
|
AC_TRY_RUN([ |
754 |
|
#define SIGNED 1 |
755 |
|
#define SILENT 1 |
756 |
|
#include "${srcdir}/benchmarks/triang.cpp" |
757 |
|
], |
758 |
|
triang_signed=0, |
759 |
|
triang_signed=$?, |
760 |
|
triang_signed=0 |
761 |
|
) |
762 |
|
if test "$triang_signed" = "2"; then |
763 |
|
config_signed_triang_algo="intmath" |
764 |
|
echo "integer math" |
765 |
|
elif test "$triang_signed" = "3"; then |
766 |
|
config_signed_triang_algo="diharmonic" |
767 |
|
echo "di harmonics" |
768 |
|
elif test "$triang_signed" = "5"; then |
769 |
|
config_signed_triang_algo="intmathabs" |
770 |
|
echo "integer math using abs()" |
771 |
|
else |
772 |
|
echo "Benchmark of signed triangular wave algorithms failed!" |
773 |
|
echo "Maybe you are doing cross compilation? In that case you have to select" |
774 |
|
echo "an algorithm manually with './configure --enable-signed-triang-algo=...'" |
775 |
|
echo "Call './configure --help' for further information or read configure.in." |
776 |
|
exit -1; |
777 |
|
fi |
778 |
|
fi |
779 |
|
AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.]) |
780 |
|
|
781 |
|
if test "$config_unsigned_triang_algo" = "benchmark"; then |
782 |
|
echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... " |
783 |
|
AC_LANG_CPLUSPLUS |
784 |
|
AC_TRY_RUN([ |
785 |
|
#define SIGNED 0 |
786 |
|
#define SILENT 1 |
787 |
|
#include "${srcdir}/benchmarks/triang.cpp" |
788 |
|
], |
789 |
|
triang_unsigned=0, |
790 |
|
triang_unsigned=$?, |
791 |
|
triang_unsigned=0 |
792 |
|
) |
793 |
|
if test "$triang_unsigned" = "2"; then |
794 |
|
config_unsigned_triang_algo="intmath" |
795 |
|
echo "integer math" |
796 |
|
elif test "$triang_unsigned" = "3"; then |
797 |
|
config_unsigned_triang_algo="diharmonic" |
798 |
|
echo "di harmonics" |
799 |
|
elif test "$triang_unsigned" = "5"; then |
800 |
|
config_unsigned_triang_algo="intmathabs" |
801 |
|
echo "integer math using abs()" |
802 |
|
else |
803 |
|
echo "Benchmark of unsigned triangular wave algorithms failed!" |
804 |
|
echo "Maybe you are doing cross compilation? In that case you have to select" |
805 |
|
echo "an algorithm manually with './configure --enable-unsigned-triang-algo=...'" |
806 |
|
echo "Call './configure --help' for further information or read configure.in." |
807 |
|
exit -1; |
808 |
|
fi |
809 |
|
fi |
810 |
|
AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.]) |
811 |
|
|
812 |
|
AC_LANG_RESTORE |
813 |
|
|
814 |
|
|
815 |
########################################################################### |
########################################################################### |
816 |
# Create Build Files |
# Create Build Files |
817 |
|
|
818 |
AM_CONFIG_HEADER(config.h) |
AM_CONFIG_HEADER(config.h) |
819 |
AM_INIT_AUTOMAKE(linuxsampler, 0.3.3) |
AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD") |
820 |
|
|
821 |
AC_LANG_CPLUSPLUS |
AC_LANG_CPLUSPLUS |
822 |
AC_PROG_CXX |
AC_PROG_CXX |
832 |
# this, the dlfcn.h check in am_prog_libtool may fail. |
# this, the dlfcn.h check in am_prog_libtool may fail. |
833 |
AC_CHECK_HEADER(stdlib.h) |
AC_CHECK_HEADER(stdlib.h) |
834 |
|
|
|
AM_PROG_LIBTOOL |
|
|
|
|
835 |
AC_OUTPUT( \ |
AC_OUTPUT( \ |
836 |
Makefile \ |
Makefile \ |
837 |
man/Makefile \ |
man/Makefile \ |
857 |
Documentation/Makefile \ |
Documentation/Makefile \ |
858 |
Documentation/Engines/Makefile \ |
Documentation/Engines/Makefile \ |
859 |
Documentation/Engines/gig/Makefile \ |
Documentation/Engines/gig/Makefile \ |
860 |
|
linuxsampler.pc \ |
861 |
|
Doxyfile \ |
862 |
) |
) |
863 |
|
|
864 |
|
|
884 |
echo "# Stream Size: ${config_stream_size}" |
echo "# Stream Size: ${config_stream_size}" |
885 |
echo "# Maximum Disk Streams: ${config_max_streams}" |
echo "# Maximum Disk Streams: ${config_max_streams}" |
886 |
echo "# Maximum Voices: ${config_max_voices}" |
echo "# Maximum Voices: ${config_max_voices}" |
887 |
|
echo "# Default Subfragment Size: ${config_subfragment_size}" |
888 |
|
echo "# Global Volume Attenuation: ${config_global_attenuation}" |
889 |
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
890 |
|
echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}" |
891 |
|
echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}" |
892 |
echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte" |
echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte" |
893 |
echo "# Filter Update Steps: ${config_filter_update_steps}" |
echo "# Min. Portamento Time: ${config_portamento_time_min} s" |
894 |
|
echo "# Max. Portamento Time: ${config_portamento_time_max} s" |
895 |
|
echo "# Default Portamento Time: ${config_portamento_time_default} s" |
896 |
echo "# Force Filter Usage: ${config_force_filter}" |
echo "# Force Filter Usage: ${config_force_filter}" |
897 |
echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz" |
echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz" |
898 |
echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz" |
echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz" |
900 |
echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}" |
echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}" |
901 |
echo "# Override Filter Type: ${config_override_filter_type}" |
echo "# Override Filter Type: ${config_override_filter_type}" |
902 |
echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}" |
echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}" |
903 |
|
echo "# Process Muted Channels: ${config_process_muted_channels}" |
904 |
|
echo "# Interpolate Volume: ${config_interpolate_volume}" |
905 |
echo "#-------------------------------------------------------------------#" |
echo "#-------------------------------------------------------------------#" |
906 |
echo "# Read './configure --help' or file 'configure.in' for details. #" |
echo "# Read './configure --help' or file 'configure.in' for details. #" |
907 |
echo "#####################################################################" |
echo "#####################################################################" |