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=5 |
8 |
|
LINUXSAMPLER_RELEASE_BUILD=1.10cvs |
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=2 |
28 |
|
LIBLINUXSAMPLER_LT_REVISION=0 |
29 |
|
LIBLINUXSAMPLER_LT_AGE=1 |
30 |
|
SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE" |
31 |
|
|
32 |
|
#------------------------------------------------------------------------------------ |
33 |
|
# the LSCP specification version this LinuSampler release complies with: |
34 |
|
|
35 |
|
LSCP_RELEASE_MAJOR=1 |
36 |
|
LSCP_RELEASE_MINOR=4 |
37 |
|
|
38 |
|
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.]) |
40 |
|
|
41 |
|
AC_PROG_CXX |
42 |
|
AC_LIBTOOL_WIN32_DLL |
43 |
|
AM_PROG_LIBTOOL |
44 |
|
|
45 |
|
AC_SUBST(SHLIB_VERSION_ARG) |
46 |
|
AC_SUBST(SHARED_VERSION_INFO) |
47 |
|
|
48 |
AC_C_BIGENDIAN |
AC_C_BIGENDIAN |
49 |
AC_CANONICAL_SYSTEM |
AC_CANONICAL_SYSTEM |
50 |
|
|
54 |
AC_SUBST(target_os) |
AC_SUBST(target_os) |
55 |
AC_SUBST(target_vendor) |
AC_SUBST(target_vendor) |
56 |
|
|
57 |
|
PKG_PROG_PKG_CONFIG |
58 |
|
|
59 |
|
########################################################################### |
60 |
|
# General Checks |
61 |
|
|
62 |
echo -n "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 |
*) |
*) |
70 |
esac |
esac |
71 |
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.]) |
72 |
|
|
73 |
|
# determine the right gcc switch for CPU specific optimizations |
74 |
|
# (only if the user did not provide one) |
75 |
|
CXX_CPU_SWITCH= |
76 |
|
if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then |
77 |
|
if test "$def_arch_x86" = 1 -a "$target_cpu" != "x86_64"; then |
78 |
|
CXX_CPU_SWITCH="-march=$target_cpu" |
79 |
|
elif test "$target_cpu" = "ppc"; then |
80 |
|
CXX_CPU_SWITCH="-arch=$target_cpu" |
81 |
|
fi |
82 |
|
fi |
83 |
|
AC_SUBST([CXX_CPU_SWITCH]) |
84 |
|
|
85 |
|
# check if we're on MS Windows |
86 |
|
AC_CHECK_HEADERS( |
87 |
|
mmsystem.h, |
88 |
|
have_windows=1, |
89 |
|
have_windows=0 |
90 |
|
) |
91 |
|
AM_CONDITIONAL(HAVE_WINDOWS, test $have_windows = "1") |
92 |
|
|
93 |
AC_MSG_CHECKING([whether UNIX98 compatible]) |
AC_MSG_CHECKING([whether UNIX98 compatible]) |
94 |
AC_LANG_SAVE |
AC_LANG_SAVE |
112 |
) |
) |
113 |
AC_LANG_RESTORE |
AC_LANG_RESTORE |
114 |
AC_MSG_RESULT([$have_unix98]) |
AC_MSG_RESULT([$have_unix98]) |
115 |
if test "$have_unix98" = "no"; then |
if test "$have_unix98" = "no" -a "have_windows" = "0"; then |
116 |
if test "x$HAVE_UNIX98" = "x"; then |
if test "x$HAVE_UNIX98" = "x"; then |
117 |
echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for" |
echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for" |
118 |
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 |
122 |
fi |
fi |
123 |
fi |
fi |
124 |
|
|
125 |
|
# check for <features.h> |
126 |
|
AC_CHECK_HEADERS(features.h) |
127 |
|
|
128 |
|
# test for POSIX thread library |
129 |
|
m4_ifdef([m4_include(m4/pthread.m4)],, |
130 |
|
[sinclude([m4/pthread.m4])]) |
131 |
|
ACX_PTHREAD |
132 |
|
LIBS="$PTHREAD_LIBS $LIBS" |
133 |
|
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
134 |
|
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" |
135 |
|
CC="$PTHREAD_CC" |
136 |
|
|
137 |
|
# check for a bug in NPTL-enabled glibc |
138 |
|
# (see Gentoo bug report #194076) |
139 |
|
AC_ARG_ENABLE(nptl-bug-check, |
140 |
|
[ --disable-nptl-bug-check |
141 |
|
Disable check for a bug in certain NPTL-enabled |
142 |
|
glibc versions that caused crashs.], |
143 |
|
[config_check_nptl_bug="$enableval"], |
144 |
|
[config_check_nptl_bug="yes"] |
145 |
|
) |
146 |
|
if test "$config_check_nptl_bug" = "yes"; then |
147 |
|
m4_ifdef([m4_include(m4/nptl_bug.m4)],, |
148 |
|
[sinclude([m4/nptl_bug.m4])]) |
149 |
|
ACX_NPTL_GLIBC_BUG([ |
150 |
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
151 |
|
echo "You seem to have a buggy PTHREAD library! LinuxSampler would" |
152 |
|
echo "probably crash due to this. Please report us the system you are" |
153 |
|
echo "using and/or file a bug report to the bug tracking system of" |
154 |
|
echo "your distribution." |
155 |
|
echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as" |
156 |
|
echo "well, you can try to circumvent this problem for now by setting" |
157 |
|
echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which" |
158 |
|
echo "should cause this test to pass." |
159 |
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
160 |
|
AC_MSG_ERROR([possibly NPTL glibc bug detected]) |
161 |
|
]) |
162 |
|
else |
163 |
|
echo "NPTL glibc bug check disabled" |
164 |
|
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 |
|
########################################################################### |
174 |
# Checks for available audio and MIDI systems / drivers |
# Checks for available audio and MIDI systems / drivers |
175 |
# (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) |
176 |
|
|
177 |
have_midi_input_driver="false" |
have_midi_input_driver="false" |
178 |
have_audio_output_driver="false" |
have_audio_output_driver="false" |
179 |
|
|
180 |
AC_CHECK_HEADER(alsa/asoundlib.h, |
# ALSA |
181 |
AC_CHECK_LIB(asound, main, |
AC_ARG_ENABLE(alsa-driver, |
182 |
have_alsa=1 |
[ --disable-alsa-driver |
183 |
, |
Disable support for the Advanced Linux Sound |
184 |
have_alsa=0 |
Architecture (ALSA).], |
185 |
) |
[config_alsa_driver="$enableval"], |
186 |
, |
[config_alsa_driver="yes"] |
187 |
have_alsa=0 |
) |
188 |
) |
have_alsa=0 |
189 |
if test "$have_alsa" = "1"; then |
if test "$config_alsa_driver" = "yes"; then |
190 |
have_midi_input_driver="true" |
AC_CHECK_HEADER(alsa/asoundlib.h, |
191 |
have_audio_output_driver="true"; |
AC_CHECK_LIB(asound, main, |
192 |
|
have_alsa=1 |
193 |
|
, |
194 |
|
have_alsa=0 |
195 |
|
) |
196 |
|
, |
197 |
|
have_alsa=0 |
198 |
|
) |
199 |
|
if test "$have_alsa" = "1"; then |
200 |
|
have_midi_input_driver="true" |
201 |
|
have_audio_output_driver="true"; |
202 |
|
fi |
203 |
|
|
204 |
|
echo -n "checking Alsa version... " |
205 |
|
AC_LANG_SAVE |
206 |
|
AC_LANG_C |
207 |
|
AC_TRY_RUN([ |
208 |
|
#include <alsa/asoundlib.h> |
209 |
|
void main(void) { |
210 |
|
/* ensure backward compatibility */ |
211 |
|
#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) |
212 |
|
#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR |
213 |
|
#endif |
214 |
|
exit(SND_LIB_MAJOR); |
215 |
|
} |
216 |
|
], |
217 |
|
alsa_major=0, |
218 |
|
alsa_major=$?, |
219 |
|
alsa_major=0 |
220 |
|
) |
221 |
|
AC_TRY_RUN([ |
222 |
|
#include <alsa/asoundlib.h> |
223 |
|
void main(void) { |
224 |
|
/* ensure backward compatibility */ |
225 |
|
#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) |
226 |
|
#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR |
227 |
|
#endif |
228 |
|
exit(SND_LIB_MINOR); |
229 |
|
} |
230 |
|
], |
231 |
|
alsa_minor=0, |
232 |
|
alsa_minor=$?, |
233 |
|
alsa_minor=0 |
234 |
|
) |
235 |
|
AC_TRY_RUN([ |
236 |
|
#include <alsa/asoundlib.h> |
237 |
|
void main(void) { |
238 |
|
/* ensure backward compatibility */ |
239 |
|
#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) |
240 |
|
#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR |
241 |
|
#endif |
242 |
|
exit(SND_LIB_SUBMINOR); |
243 |
|
} |
244 |
|
], |
245 |
|
alsa_subminor=0, |
246 |
|
alsa_subminor=$?, |
247 |
|
alsa_subminor=0 |
248 |
|
) |
249 |
|
AC_LANG_RESTORE |
250 |
|
echo "$alsa_major.$alsa_minor.$alsa_subminor"; |
251 |
|
AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_major,[Define to the major version number of your Alsa installation.]) |
252 |
|
AC_DEFINE_UNQUOTED(ALSA_MINOR,$alsa_minor,[Define to the minor version number of your Alsa installation.]) |
253 |
|
AC_DEFINE_UNQUOTED(ALSA_SUBMINOR,$alsa_subminor,[Define to the subminor version number of your Alsa installation.]) |
254 |
|
else |
255 |
|
echo "ALSA support disabled by configure script parameter" |
256 |
fi |
fi |
257 |
AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1") |
AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1") |
258 |
AC_DEFINE_UNQUOTED(HAVE_ALSA,$have_alsa,[Define to 1 if you have ALSA installed.]) |
AC_DEFINE_UNQUOTED(HAVE_ALSA,$have_alsa,[Define to 1 if you have ALSA installed.]) |
259 |
|
|
260 |
|
# JACK |
261 |
|
AC_ARG_ENABLE(jack-driver, |
262 |
|
[ --disable-jack-driver |
263 |
|
Disable support for the Jack Audio Connection Kit |
264 |
|
(JACK).], |
265 |
|
[config_jack_driver="$enableval"], |
266 |
|
[config_jack_driver="yes"] |
267 |
|
) |
268 |
|
have_jack=0 |
269 |
|
if test "$config_jack_driver" = "yes"; then |
270 |
|
PKG_CHECK_MODULES(JACK, jack, have_jack=1, have_jack=0) |
271 |
|
if test $have_jack = "1"; then |
272 |
|
AC_SUBST(JACK_LIBS) |
273 |
|
AC_SUBST(JACK_CFLAGS) |
274 |
|
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"; |
279 |
|
fi |
280 |
|
else |
281 |
|
echo "JACK support disabled by configure script parameter" |
282 |
|
fi |
283 |
|
AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1") |
284 |
|
AC_DEFINE_UNQUOTED(HAVE_JACK,$have_jack,[Define to 1 if you have JACK installed.]) |
285 |
|
|
286 |
echo -n "checking Alsa version... " |
# JACK MIDI |
287 |
AC_LANG_SAVE |
have_jack_midi=0 |
288 |
AC_LANG_C |
if test $have_jack = "1"; then |
289 |
AC_TRY_RUN([ |
linuxsampler_save_CFLAGS=$CFLAGS |
290 |
#include <alsa/asoundlib.h> |
linuxsampler_save_LIBS=$LIBS |
291 |
void main(void) { |
CFLAGS="$JACK_CFLAGS $CFLAGS" |
292 |
/* ensure backward compatibility */ |
LIBS="$JACK_LIBS $LIBS" |
293 |
#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) |
AC_CHECK_HEADER(jack/midiport.h, have_jack_midi=1, have_jack_midi=0) |
294 |
#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR |
if test $have_jack_midi = "1"; then |
295 |
#endif |
AC_CHECK_FUNCS(jack_midi_get_event_count) |
296 |
exit(SND_LIB_MAJOR); |
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 |
alsa_major=0, |
[Define to 1 if you have the old jack midi functions that need an nframes argument.])]) |
300 |
alsa_major=$?, |
have_midi_input_driver="true" |
301 |
alsa_major=0 |
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 |
310 |
|
AC_ARG_ENABLE(arts-driver, |
311 |
|
[ --disable-arts-driver |
312 |
|
Disable support for the Analogue Realtime System |
313 |
|
(aRts).], |
314 |
|
[config_arts_driver="$enableval"], |
315 |
|
[config_arts_driver="yes"] |
316 |
) |
) |
317 |
AC_TRY_RUN([ |
have_arts=0 |
318 |
#include <alsa/asoundlib.h> |
if test "$config_arts_driver" = "yes"; then |
319 |
void main(void) { |
m4_ifdef([m4_include(m4/arts.m4)],, |
320 |
/* ensure backward compatibility */ |
[sinclude([m4/arts.m4])]) |
321 |
#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) |
AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0) |
322 |
#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR |
if test "$have_arts" = "1"; then |
323 |
#endif |
have_audio_output_driver="true" |
324 |
exit(SND_LIB_MINOR); |
fi |
325 |
} |
else |
326 |
], |
echo "ARTS support disabled by configure script parameter" |
327 |
alsa_minor=0, |
fi |
328 |
alsa_minor=$?, |
AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1") |
329 |
alsa_minor=0 |
AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.]) |
330 |
|
|
331 |
|
# ASIO AUDIO (Win32) |
332 |
|
AC_ARG_ENABLE(asiosdk-dir, |
333 |
|
[ --enable-asiosdk-dir |
334 |
|
Directory where the ASIO SDK is located, this automatically |
335 |
|
enables the compilation of the ASIO audio output driver.], |
336 |
|
[config_asiosdk_dir="${enableval}"], |
337 |
|
[config_asiosdk_dir="."] |
338 |
) |
) |
339 |
AC_TRY_RUN([ |
AC_SUBST(config_asiosdk_dir) |
340 |
#include <alsa/asoundlib.h> |
|
341 |
void main(void) { |
AC_ARG_ENABLE(asio-driver, |
342 |
/* ensure backward compatibility */ |
[ --disable-asio-driver |
343 |
#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) |
Disable support for the Windows ASIO driver.], |
344 |
#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR |
[config_asio_driver="$enableval"], |
345 |
#endif |
[config_asio_driver="yes"] |
|
exit(SND_LIB_SUBMINOR); |
|
|
} |
|
|
], |
|
|
alsa_subminor=0, |
|
|
alsa_subminor=$?, |
|
|
alsa_subminor=0 |
|
346 |
) |
) |
347 |
AC_LANG_RESTORE |
have_asio=0 |
348 |
echo "$alsa_major.$alsa_minor.$alsa_subminor"; |
ASIOSDK_BASEDIR= |
349 |
AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_major,[Define to the major version number of your Alsa installation.]) |
if test "$config_asio_driver" = "yes"; then |
350 |
AC_DEFINE_UNQUOTED(ALSA_MINOR,$alsa_minor,[Define to the minor version number of your Alsa installation.]) |
asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h |
351 |
AC_DEFINE_UNQUOTED(ALSA_SUBMINOR,$alsa_subminor,[Define to the subminor version number of your Alsa installation.]) |
echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...." |
352 |
|
if test -e $asiosdk_headerfile ; then |
353 |
|
echo yes |
354 |
|
have_asio=1 |
355 |
|
ASIOSDK_BASEDIR="$config_asiosdk_dir" |
356 |
|
else |
357 |
|
echo no |
358 |
|
have_asio=0 |
359 |
|
fi |
360 |
|
if test "$have_asio" = "1"; then |
361 |
|
have_audio_output_driver="true" |
362 |
|
fi |
363 |
|
else |
364 |
|
echo "Windows ASIO support disabled by configure script parameter" |
365 |
|
fi |
366 |
|
AC_SUBST(ASIOSDK_BASEDIR) |
367 |
|
AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1") |
368 |
|
AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.]) |
369 |
|
|
370 |
|
# MidiShare (Linux, OS X, Windows) |
371 |
|
AC_ARG_ENABLE(midishare-driver, |
372 |
|
[ --disable-midishare-driver |
373 |
|
Disable support for the MidiShare system.], |
374 |
|
[config_midishare_driver="$enableval"], |
375 |
|
[config_midishare_driver="yes"] |
376 |
|
) |
377 |
|
have_midishare=0 |
378 |
|
if test "$config_midishare_driver" = "yes"; then |
379 |
|
AC_CHECK_HEADER(MidiShare.h, |
380 |
|
AC_CHECK_LIB(MidiShare, MidiCountEvs, |
381 |
|
have_midishare=1, |
382 |
|
have_midishare=0 |
383 |
|
) |
384 |
|
, |
385 |
|
have_midishare=0 |
386 |
|
) |
387 |
|
if test "$have_midishare" = "1"; then |
388 |
|
have_midi_input_driver="true" |
389 |
|
fi |
390 |
|
else |
391 |
|
echo "MidiShare support disabled by configure script parameter" |
392 |
|
fi |
393 |
|
AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1") |
394 |
|
AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_midishare,[Define to 1 if you have MidiShare installed.]) |
395 |
|
|
396 |
# JACK |
# CoreMIDI (OS X) |
397 |
PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false) |
AC_ARG_ENABLE(coremidi-driver, |
398 |
AC_SUBST(JACK_LIBS) |
[ --disable-coremidi-driver |
399 |
AC_SUBST(JACK_CFLAGS) |
Disable support for the Apple CoreMIDI system.], |
400 |
if test $HAVE_JACK = false; then |
[config_coremidi_driver="$enableval"], |
401 |
HAVE_JACK=0; |
[config_coremidi_driver="yes"] |
402 |
else |
) |
403 |
HAVE_JACK=1 |
have_coremidi=0 |
404 |
have_audio_output_driver="true"; |
if test "$config_coremidi_driver" = "yes"; then |
405 |
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) |
AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h, |
406 |
fi |
have_coremidi=1, |
407 |
AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) |
have_coremidi=0 |
408 |
AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.]) |
) |
409 |
|
if test "$have_coremidi" = "1"; then |
410 |
# SQLITE3 |
have_midi_input_driver="true" |
411 |
PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false) |
fi |
|
AC_SUBST(SQLITE3_LIBS) |
|
|
AC_SUBST(SQLITE3_CFLAGS) |
|
|
if test $HAVE_SQLITE3 = false; then |
|
|
HAVE_SQLITE3=0; |
|
412 |
else |
else |
413 |
HAVE_SQLITE3=1 |
echo "CoreMIDI support disabled by configure script parameter" |
414 |
fi |
fi |
415 |
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
416 |
AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you have SQLITE3 installed.]) |
AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.]) |
417 |
|
|
418 |
|
# CoreAudio (OS X) |
419 |
|
AC_ARG_ENABLE(coreaudio-driver, |
420 |
|
[ --disable-coreaudio-driver |
421 |
|
Disable support for the Apple CoreAudio system.], |
422 |
|
[config_coreaudio_driver="$enableval"], |
423 |
|
[config_coreaudio_driver="yes"] |
424 |
|
) |
425 |
|
have_coreaudio=0 |
426 |
|
if test "$config_coreaudio_driver" = "yes"; then |
427 |
|
AC_CHECK_HEADER(CoreAudio/CoreAudio.h, |
428 |
|
have_coreaudio=1, |
429 |
|
have_coreaudio=0 |
430 |
|
) |
431 |
|
if test "$have_coreaudio" = "1"; then |
432 |
|
have_audio_output_driver="true" |
433 |
|
fi |
434 |
|
else |
435 |
|
echo "CoreAudio support disabled by configure script parameter" |
436 |
|
fi |
437 |
|
AM_CONDITIONAL(HAVE_COREAUDIO, test $have_coreaudio = "1") |
438 |
|
AC_DEFINE_UNQUOTED(HAVE_COREAUDIO,$have_coreaudio,[Define to 1 if you have CoreAudio installed.]) |
439 |
|
|
440 |
|
# MME MIDI (Win32) |
441 |
|
AC_ARG_ENABLE(mmemidi-driver, |
442 |
|
[ --disable-mmemidi-driver |
443 |
|
Disable support for the Windows MME MIDI system.], |
444 |
|
[config_mmemidi_driver="$enableval"], |
445 |
|
[config_mmemidi_driver="yes"] |
446 |
|
) |
447 |
|
have_mmemidi=0 |
448 |
|
if test "$config_mmemidi_driver" = "yes"; then |
449 |
|
AC_CHECK_HEADERS(mmsystem.h, |
450 |
|
have_mmemidi=1, |
451 |
|
have_mmemidi=0 |
452 |
|
) |
453 |
|
if test "$have_mmemidi" = "1"; then |
454 |
|
have_midi_input_driver="true" |
455 |
|
fi |
456 |
|
else |
457 |
|
echo "MME MIDI support disabled by configure script parameter" |
458 |
|
fi |
459 |
|
AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1") |
460 |
|
AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.]) |
461 |
|
|
462 |
|
|
463 |
|
# DSSI |
464 |
|
AC_CHECK_HEADERS(dssi.h, |
465 |
|
have_dssi=1, |
466 |
|
have_dssi=0) |
467 |
|
AM_CONDITIONAL(HAVE_DSSI, test $have_dssi = "1") |
468 |
|
|
469 |
|
# LV2 |
470 |
|
PKG_CHECK_MODULES(LV2, lv2core, have_lv2=1, have_lv2=0) |
471 |
|
if test $have_lv2 = "0"; then |
472 |
|
AC_CHECK_HEADER(lv2.h, have_lv2=1, have_lv2=0) |
473 |
|
fi |
474 |
|
AM_CONDITIONAL(HAVE_LV2, test $have_lv2 = "1") |
475 |
|
|
476 |
|
# VST |
477 |
|
AC_ARG_ENABLE(vstsdk-dir, |
478 |
|
[ --enable-vstsdk-dir |
479 |
|
Directory where the VST SDK is located. |
480 |
|
This automatically enables the compilation |
481 |
|
of the VST plugin.], |
482 |
|
[VSTSDK_DIR="${enableval}"], |
483 |
|
[VSTSDK_DIR=] |
484 |
|
) |
485 |
|
AC_SUBST(VSTSDK_DIR) |
486 |
|
AM_CONDITIONAL(HAVE_VST, test "x$VSTSDK_DIR" != "x") |
487 |
|
|
488 |
|
# AU |
489 |
|
AC_CHECK_HEADERS(AudioUnit/AudioUnit.h, |
490 |
|
have_au=1, |
491 |
|
have_au=0) |
492 |
|
AM_CONDITIONAL(HAVE_AU, test $have_au = "1") |
493 |
|
AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "") |
494 |
|
|
495 |
|
|
496 |
|
# have we found at least one MIDI input and one audio output driver ? |
497 |
if test "$have_midi_input_driver" = "false"; then |
if test "$have_midi_input_driver" = "false"; then |
498 |
echo "No supported MIDI input system found!" |
echo "No supported MIDI input system found!" |
499 |
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:" |
500 |
|
echo "ALSA, JACK, MIDIShare, CoreMIDI, MME." |
501 |
|
echo "If you think you have one of those available on your system, make sure you" |
502 |
|
echo "also have the respective development (header) files installed." |
503 |
exit -1; |
exit -1; |
504 |
fi |
fi |
505 |
if test "$have_audio_output_driver" = "false"; then |
if test "$have_audio_output_driver" = "false"; then |
506 |
echo "No supported audio output system found!" |
echo "No supported audio output system found!" |
507 |
echo "Sorry, LinuxSampler only supports ALSA and JACK as audio output driver at the moment!" |
echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output" |
508 |
|
echo "driver at the moment!" |
509 |
|
exit -1; |
510 |
|
fi |
511 |
|
|
512 |
|
|
513 |
|
|
514 |
|
########################################################################### |
515 |
|
# Checks for various DLL libraries |
516 |
|
|
517 |
|
# Check presence of libgig |
518 |
|
libgig_version="3.2.1" |
519 |
|
PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false) |
520 |
|
if test "$HAVE_GIG" = "false"; then |
521 |
|
echo "Required libgig version not found!" |
522 |
|
echo "You need to have libgig version ${libgig_version} installed!" |
523 |
exit -1; |
exit -1; |
524 |
|
else |
525 |
|
echo "yes, found libgig $libgig_version" |
526 |
|
fi |
527 |
|
AC_SUBST(GIG_CFLAGS) |
528 |
|
AC_SUBST(GIG_LIBS) |
529 |
|
|
530 |
|
# Instruments DB feature (requires SQLite 3.3) |
531 |
|
AC_ARG_ENABLE(instruments-db, |
532 |
|
[ --disable-instruments-db |
533 |
|
Disable compilation of the sampler's instruments |
534 |
|
database feature. You need to have SQLite 3.3 |
535 |
|
or younger installed for this feature.], |
536 |
|
[config_instruments_db="$enableval"], |
537 |
|
[config_instruments_db="yes"] |
538 |
|
) |
539 |
|
HAVE_SQLITE3=0; |
540 |
|
if test "$config_instruments_db" = "yes"; then |
541 |
|
# Check presence of sqlite3 |
542 |
|
sqlite_version="3.3" |
543 |
|
PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false) |
544 |
|
AC_SUBST(SQLITE3_LIBS) |
545 |
|
AC_SUBST(SQLITE3_CFLAGS) |
546 |
|
if test $HAVE_SQLITE3 = false; then |
547 |
|
HAVE_SQLITE3=0 |
548 |
|
config_instruments_db="no" |
549 |
|
echo "*** Required sqlite version not found!" |
550 |
|
echo "*** You need to have sqlite version ${sqlite_version} or higher" |
551 |
|
echo "*** for instruments database support to be enabled." |
552 |
|
echo "*** Support for instruments DB will be disabled!" |
553 |
|
else |
554 |
|
HAVE_SQLITE3=1 |
555 |
|
fi |
556 |
|
else |
557 |
|
echo "Instruments DB feature disabled by configure script parameter" |
558 |
|
fi |
559 |
|
AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1) |
560 |
|
AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you want the instruments DB feature and have SQLITE3 installed.]) |
561 |
|
|
562 |
|
|
563 |
|
|
564 |
|
########################################################################### |
565 |
|
# Handle Configuration Options |
566 |
|
|
567 |
|
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
568 |
|
|
569 |
|
AC_ARG_ENABLE(asm, |
570 |
|
[ --disable-asm |
571 |
|
Enable hand-crafted assembly optimizations |
572 |
|
(default=on). LinuxSampler provides CPU specific |
573 |
|
assembly optimizations. This is currently limited |
574 |
|
to just enter a fast (denormal) FPU mode on x86 |
575 |
|
platforms. There are currently no synthesis core |
576 |
|
assembly optimizations anymore since LS 0.4.0], |
577 |
|
[config_asm="$enableval"], |
578 |
|
[config_asm="yes"] |
579 |
|
) |
580 |
|
if test "$config_asm" = "yes"; then |
581 |
|
AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable asm optimizations.]) |
582 |
fi |
fi |
583 |
|
|
584 |
|
AC_ARG_ENABLE(dev-mode, |
585 |
|
[ --enable-dev-mode |
586 |
|
Enable development mode (default=off). In that mode |
587 |
|
we do some extra sanity checks here and there. |
588 |
|
This helps to spot possible problems, but reduces |
589 |
|
efficiency a bit], |
590 |
|
[config_dev_mode="$enableval"], |
591 |
|
[config_dev_mode="no"] |
592 |
|
) |
593 |
|
if test "$config_dev_mode" = "yes"; then |
594 |
|
AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.]) |
595 |
|
fi |
596 |
|
|
597 |
|
AC_ARG_ENABLE(debug-level, |
598 |
|
[ --enable-debug-level |
599 |
|
Specify verbosity of console messages (default=1). |
600 |
|
The higher the value, the higher will be verbosity. |
601 |
|
A value of 0 means no console output at all. |
602 |
|
There's not really an upper limit but the usual |
603 |
|
level of all messages is currently somewhere less |
604 |
|
than 10.], |
605 |
|
[config_debug_level="${enableval}"], |
606 |
|
[config_debug_level="1"] |
607 |
|
) |
608 |
|
AC_DEFINE_UNQUOTED(CONFIG_DEBUG_LEVEL, $config_debug_level, [Define console verbosity.]) |
609 |
|
|
610 |
|
AC_ARG_ENABLE(rt-exceptions, |
611 |
|
[ --enable-rt-exceptions |
612 |
|
Enable exceptions in the realtime thread |
613 |
|
(default=no). If this is enabled, exceptions will |
614 |
|
be thrown on critical errors in the realtime |
615 |
|
context as well. Otherwise if disabled |
616 |
|
segmentation faults will be forced by the |
617 |
|
application on critical errors.], |
618 |
|
[config_rt_exceptions="$enableval"], |
619 |
|
[config_rt_exceptions="no"] |
620 |
|
) |
621 |
|
if test "$config_rt_exceptions" = "yes"; then |
622 |
|
AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.]) |
623 |
|
fi |
624 |
|
|
625 |
|
AC_ARG_ENABLE(pthread-testcancel, |
626 |
|
[ --enable-pthread-testcancel |
627 |
|
Enable pthread_testcancel() calls and avoid asynchronous |
628 |
|
cancel of pthreads (default=no).], |
629 |
|
[config_pthread_testcancel="$enableval"], |
630 |
|
[config_pthread_testcancel="no"] |
631 |
|
) |
632 |
|
if test "$config_pthread_testcancel" = "yes"; then |
633 |
|
AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.]) |
634 |
|
fi |
635 |
|
|
636 |
|
AC_ARG_ENABLE(preload-samples, |
637 |
|
[ --enable-preload-samples |
638 |
|
Due to seeking and latency issues with hard drives |
639 |
|
we have to cache a small part of samples' head in |
640 |
|
RAM (default=32768). The higher this value the |
641 |
|
more memory will be occupied for each sample, but |
642 |
|
the safer this will be in regards of possible |
643 |
|
droputs. A 'good' value depends on the running |
644 |
|
system and usage dependant factors.], |
645 |
|
[config_preload_samples="${enableval}"], |
646 |
|
[config_preload_samples="32768"] |
647 |
|
) |
648 |
|
AC_DEFINE_UNQUOTED(CONFIG_PRELOAD_SAMPLES, $config_preload_samples, [Define amount of sample points to be cached in RAM.]) |
649 |
|
|
650 |
|
AC_ARG_ENABLE(max-pitch, |
651 |
|
[ --enable-max-pitch |
652 |
|
Specify the maximum allowed pitch value in octaves |
653 |
|
(default=4). To lower memory usage you might want |
654 |
|
set a smaller value.], |
655 |
|
[config_max_pitch="${enableval}"], |
656 |
|
[config_max_pitch="4"] |
657 |
|
) |
658 |
|
AC_DEFINE_UNQUOTED(CONFIG_MAX_PITCH, $config_max_pitch, [Define max. allowed pitch.]) |
659 |
|
|
660 |
|
AC_ARG_ENABLE(max-events, |
661 |
|
[ --enable-max-events |
662 |
|
Specify the maximum allowed amount of events to be |
663 |
|
processed per fragment (default=1024).], |
664 |
|
[config_max_events="${enableval}"], |
665 |
|
[config_max_events="1024"] |
666 |
|
) |
667 |
|
AC_DEFINE_UNQUOTED(CONFIG_MAX_EVENTS_PER_FRAGMENT, $config_max_events, [Define max. allowed events per fragment.]) |
668 |
|
|
669 |
|
AC_ARG_ENABLE(eg-bottom, |
670 |
|
[ --enable-eg-bottom |
671 |
|
Bottom limit of envelope generators |
672 |
|
(default=0.001). Certain kinds of curve types like |
673 |
|
exponential curves converge against 0 but never |
674 |
|
reach 0. So we have to define a certain low value |
675 |
|
after which we should consider all smaller values |
676 |
|
to be 'almost zero'. The smaller this value, the |
677 |
|
longer will voices survive in EG's release stage |
678 |
|
and thus waste voices. If this value is too high |
679 |
|
will cause click sounds though.], |
680 |
|
[config_eg_bottom="${enableval}"], |
681 |
|
[config_eg_bottom="0.001"] |
682 |
|
) |
683 |
|
AC_DEFINE_UNQUOTED(CONFIG_EG_BOTTOM, $config_eg_bottom, [Define bottom limit of envelopes.]) |
684 |
|
|
685 |
|
AC_ARG_ENABLE(eg-min-release-time, |
686 |
|
[ --enable-eg-min-release-time |
687 |
|
Specify the lowest allowed release time in seconds |
688 |
|
(default=0.0025). This value will also be used to |
689 |
|
ramp down voices on voice stealing. This value |
690 |
|
should always be less than the period time of the |
691 |
|
used audio driver, as in case of voice stealing |
692 |
|
the killed voice needs to be completely ramped |
693 |
|
down in the same fragment.], |
694 |
|
[config_eg_min_release_time="${enableval}"], |
695 |
|
[config_eg_min_release_time="0.0025"] |
696 |
|
) |
697 |
|
AC_DEFINE_UNQUOTED(CONFIG_EG_MIN_RELEASE_TIME, $config_eg_min_release_time, [Define min. release time.]) |
698 |
|
|
699 |
|
AC_ARG_ENABLE(refill-streams, |
700 |
|
[ --enable-refill-streams |
701 |
|
Number of streams that should be refilled in each |
702 |
|
disk thread cycle (default=4).], |
703 |
|
[config_refill_streams="${enableval}"], |
704 |
|
[config_refill_streams="4"] |
705 |
|
) |
706 |
|
AC_DEFINE_UNQUOTED(CONFIG_REFILL_STREAMS_PER_RUN, $config_refill_streams, [Define amount of streams to be refilled per cycle.]) |
707 |
|
|
708 |
|
AC_ARG_ENABLE(stream-min-refill, |
709 |
|
[ --enable-stream-min-refill |
710 |
|
Minimum refill size for disk streams (default=1024). |
711 |
|
The disk thread will go to sleep for a while if no |
712 |
|
stream had to be refilled more than this value in |
713 |
|
a disk thread cycle.], |
714 |
|
[config_stream_min_refill="${enableval}"], |
715 |
|
[config_stream_min_refill="1024"] |
716 |
|
) |
717 |
|
AC_DEFINE_UNQUOTED(CONFIG_STREAM_MIN_REFILL_SIZE, $config_stream_min_refill, [Define min. stream refill size.]) |
718 |
|
|
719 |
|
AC_ARG_ENABLE(stream-max-refill, |
720 |
|
[ --enable-stream-max-refill |
721 |
|
Maximum refill size for disk streams |
722 |
|
(default=65536). The disk thread will refill |
723 |
|
each stream only by a size of this value per |
724 |
|
disk thread cycle.], |
725 |
|
[config_stream_max_refill="${enableval}"], |
726 |
|
[config_stream_max_refill="65536"] |
727 |
|
) |
728 |
|
AC_DEFINE_UNQUOTED(CONFIG_STREAM_MAX_REFILL_SIZE, $config_stream_max_refill, [Define max. stream refill size.]) |
729 |
|
|
730 |
|
AC_ARG_ENABLE(stream-size, |
731 |
|
[ --enable-stream-size |
732 |
|
Size of each stream's ring buffer in sample points |
733 |
|
(default=262144).], |
734 |
|
[config_stream_size="${enableval}"], |
735 |
|
[config_stream_size="262144"] |
736 |
|
) |
737 |
|
AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_SIZE, $config_stream_size, [Define each stream's ring buffer size.]) |
738 |
|
|
739 |
|
AC_ARG_ENABLE(max-streams, |
740 |
|
[ --enable-max-streams |
741 |
|
Initial maximum amount of disk streams |
742 |
|
(default=90). This value can be changed at |
743 |
|
runtime. It should always be higher than the |
744 |
|
maximum amount of voices.], |
745 |
|
[config_max_streams="${enableval}"], |
746 |
|
[config_max_streams="90"] |
747 |
|
) |
748 |
|
AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_MAX_STREAMS, $config_max_streams, [Define initial max. streams.]) |
749 |
|
|
750 |
|
AC_ARG_ENABLE(max-voices, |
751 |
|
[ --enable-max-voices |
752 |
|
Initial maximum amount of voices (default=64). |
753 |
|
This value can be changed at runtime. It should |
754 |
|
always be lower than the maximum amount of disk |
755 |
|
streams.], |
756 |
|
[config_max_voices="${enableval}"], |
757 |
|
[config_max_voices="64"] |
758 |
|
) |
759 |
|
AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_MAX_VOICES, $config_max_voices, [Define initial max. voices.]) |
760 |
|
|
761 |
|
AC_ARG_ENABLE(subfragment-size, |
762 |
|
[ --enable-subfragment-size |
763 |
|
Every audio fragment will be splitted into |
764 |
|
subfragments. Where each subfragment renders |
765 |
|
audio with constant synthesis parameters. This is |
766 |
|
done for efficiency reasons. This parameter |
767 |
|
defines the default size of a subfragment in |
768 |
|
sample points. A large value means less CPU time |
769 |
|
whereas a low value means better audio quality |
770 |
|
(default=32).], |
771 |
|
[config_subfragment_size="${enableval}"], |
772 |
|
[config_subfragment_size="32"] |
773 |
|
) |
774 |
|
AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).]) |
775 |
|
|
776 |
|
AC_ARG_ENABLE(global-attenuation-default, |
777 |
|
[ --enable-global-attenuation-default |
778 |
|
To prevent clipping all samples will be lowered |
779 |
|
in amplitude by this given default factor (can |
780 |
|
be overridden at runtime). |
781 |
|
(default=0.35)], |
782 |
|
[config_global_attenuation_default="${enableval}"], |
783 |
|
[config_global_attenuation_default="0.35"] |
784 |
|
) |
785 |
|
AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION_DEFAULT, $config_global_attenuation_default, [Define default global volume attenuation (as floating point factor).]) |
786 |
|
|
787 |
|
AC_ARG_ENABLE(voice-steal-algo, |
788 |
|
[ --enable-voice-steal-algo |
789 |
|
Voice stealing algorithm to be used. Currently |
790 |
|
available options: |
791 |
|
none: |
792 |
|
Disable voice stealing completely. |
793 |
|
oldestvoiceonkey (default): |
794 |
|
Try to kill a voice on the same key first, |
795 |
|
if no success, proceed with the oldest key. |
796 |
|
oldestkey: |
797 |
|
Try to kill a voice from the oldest active |
798 |
|
key.], |
799 |
|
[ if test ! "(" "${enableval}" = "none" \ |
800 |
|
-o "${enableval}" = "oldestvoiceonkey" \ |
801 |
|
-o "${enableval}" = "oldestkey" ")" ; then |
802 |
|
AC_MSG_ERROR([Unknown voice stealing algorithm for parameter --enable-voice-steal-algo]) |
803 |
|
else |
804 |
|
config_voice_steal_algo="${enableval}" |
805 |
|
fi |
806 |
|
], |
807 |
|
[config_voice_steal_algo="oldestvoiceonkey"] |
808 |
|
) |
809 |
|
AC_DEFINE_UNQUOTED(CONFIG_VOICE_STEAL_ALGO, voice_steal_algo_${config_voice_steal_algo}, [Define voice stealing algorithm to be used.]) |
810 |
|
|
811 |
|
AC_ARG_ENABLE(sysex-buffer-size, |
812 |
|
[ --enable-sysex-buffer-size |
813 |
|
System Exclusive Message buffer size in kB |
814 |
|
(default=2048).], |
815 |
|
[config_sysex_buffer_size="${enableval}"], |
816 |
|
[config_sysex_buffer_size="2048"] |
817 |
|
) |
818 |
|
AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.]) |
819 |
|
|
820 |
|
AC_ARG_ENABLE(force-filter, |
821 |
|
[ --enable-force-filter |
822 |
|
If enabled will force filter to be used even if |
823 |
|
no usage was define in instrument patch files. |
824 |
|
(default=no).], |
825 |
|
[config_force_filter="$enableval"], |
826 |
|
[config_force_filter="no"] |
827 |
|
) |
828 |
|
if test "$config_force_filter" = "yes"; then |
829 |
|
AC_DEFINE_UNQUOTED(CONFIG_FORCE_FILTER, 1, [Define to 1 to force filter usage.]) |
830 |
|
fi |
831 |
|
|
832 |
|
AC_ARG_ENABLE(filter-cutoff-min, |
833 |
|
[ --enable-filter-cutoff-min |
834 |
|
Minimum filter cutoff frequency in Hz |
835 |
|
(default=100.0).], |
836 |
|
[config_filter_cutoff_min="${enableval}"], |
837 |
|
[config_filter_cutoff_min="100.0"] |
838 |
|
) |
839 |
|
AC_DEFINE_UNQUOTED(CONFIG_FILTER_CUTOFF_MIN, ${config_filter_cutoff_min}f, [Define min. filter cutoff frequency.]) |
840 |
|
|
841 |
|
AC_ARG_ENABLE(filter-cutoff-max, |
842 |
|
[ --enable-filter-cutoff-max |
843 |
|
Maximum filter cutoff frequency in Hz |
844 |
|
(default=10000.0).], |
845 |
|
[config_filter_cutoff_max="${enableval}"], |
846 |
|
[config_filter_cutoff_max="10000.0"] |
847 |
|
) |
848 |
|
AC_DEFINE_UNQUOTED(CONFIG_FILTER_CUTOFF_MAX, ${config_filter_cutoff_max}f, [Define max. filter cutoff frequency.]) |
849 |
|
|
850 |
|
AC_ARG_ENABLE(override-cutoff-ctrl, |
851 |
|
[ --enable-override-cutoff-ctrl |
852 |
|
Override filter cutoff MIDI controller (default=no). |
853 |
|
Note: you have to define the MIDI controller number |
854 |
|
here, it's not a boolean parameter type! If this |
855 |
|
option is used, controller number given by |
856 |
|
instrument patch will be ignored and instead this |
857 |
|
supplied value will be used.], |
858 |
|
[config_override_cutoff_ctrl="${enableval}"], |
859 |
|
[config_override_cutoff_ctrl="no"] |
860 |
|
) |
861 |
|
if test ! "$config_override_cutoff_ctrl" = "no"; then |
862 |
|
AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_CUTOFF_CTRL, $config_override_cutoff_ctrl, [Define to a MIDI controller number to override cutoff control.]) |
863 |
|
fi |
864 |
|
|
865 |
|
AC_ARG_ENABLE(override-resonance-ctrl, |
866 |
|
[ --enable-override-resonance-ctrl |
867 |
|
Override filter resonance MIDI controller |
868 |
|
(default=no). Note: you have to define the MIDI |
869 |
|
controller number here, it's not a boolean |
870 |
|
parameter type! If this option is used, controller |
871 |
|
number given by instrument patch will be ignored |
872 |
|
and instead this supplied value will be used.], |
873 |
|
[config_override_resonance_ctrl="${enableval}"], |
874 |
|
[config_override_resonance_ctrl="no"] |
875 |
|
) |
876 |
|
if test ! "$config_override_resonance_ctrl" = "no"; then |
877 |
|
AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_RESONANCE_CTRL, $config_override_resonance_ctrl, [Define to a MIDI controller number to override resonance control.]) |
878 |
|
fi |
879 |
|
|
880 |
|
AC_ARG_ENABLE(override-filter-type, |
881 |
|
[ --enable-override-filter-type |
882 |
|
Override filter type (default=no). Options: |
883 |
|
hp: for highpass |
884 |
|
bp: for bandpass |
885 |
|
br: for bandreject |
886 |
|
lp: for lowpass |
887 |
|
lpt: for lowpass turbo], |
888 |
|
[ if test "${enableval}" = "hp" ; then |
889 |
|
config_override_filter_type="::gig::vcf_type_highpass" |
890 |
|
elif test "${enableval}" = "bp" ; then |
891 |
|
config_override_filter_type="::gig::vcf_type_bandpass" |
892 |
|
elif test "${enableval}" = "br" ; then |
893 |
|
config_override_filter_type="::gig::vcf_type_bandreject" |
894 |
|
elif test "${enableval}" = "lp" ; then |
895 |
|
config_override_filter_type="::gig::vcf_type_lowpass" |
896 |
|
elif test "${enableval}" = "lpt" ; then |
897 |
|
config_override_filter_type="::gig::vcf_type_lowpassturbo" |
898 |
|
elif test ! "${enableval}" = "no"; then |
899 |
|
AC_MSG_ERROR([Unknown filter type for parameter --enable-override-filter-type]) |
900 |
|
fi |
901 |
|
], |
902 |
|
[config_override_filter_type="no"] |
903 |
|
) |
904 |
|
if test ! "$config_override_filter_type" = "no"; then |
905 |
|
AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_FILTER_TYPE, $config_override_filter_type, [Define to a filter type to always force that filter type.]) |
906 |
|
fi |
907 |
|
|
908 |
|
AC_ARG_ENABLE(gs-checksum, |
909 |
|
[ --enable-gs-checksum |
910 |
|
Enable Roland General Synth SysEx checksum check |
911 |
|
(default=no). If this is enabled, all GS SysEx |
912 |
|
messages which do not provide a correct checksum |
913 |
|
will be ignored. This is disabled by default as |
914 |
|
not all devices honor GS checksums.], |
915 |
|
[config_assert_gs_sysex_checksum="$enableval"], |
916 |
|
[config_assert_gs_sysex_checksum="no"] |
917 |
|
) |
918 |
|
if test "config_assert_gs_sysex_checksum" = "yes"; then |
919 |
|
AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.]) |
920 |
|
fi |
921 |
|
|
922 |
|
AC_ARG_ENABLE(portamento-time-min, |
923 |
|
[ --enable-portamento-time-min |
924 |
|
Minimum Portamento time in seconds |
925 |
|
(default=0.1).], |
926 |
|
[config_portamento_time_min="${enableval}"], |
927 |
|
[config_portamento_time_min="0.1"] |
928 |
|
) |
929 |
|
AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MIN, $config_portamento_time_min, [Define min. portamento time.]) |
930 |
|
|
931 |
|
AC_ARG_ENABLE(portamento-time-max, |
932 |
|
[ --enable-portamento-time-max |
933 |
|
Maximum Portamento time in seconds |
934 |
|
(default=32).], |
935 |
|
[config_portamento_time_max="${enableval}"], |
936 |
|
[config_portamento_time_max="32"] |
937 |
|
) |
938 |
|
AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MAX, $config_portamento_time_max, [Define max. portamento time.]) |
939 |
|
|
940 |
|
AC_ARG_ENABLE(portamento-time-default, |
941 |
|
[ --enable-portamento-time-default |
942 |
|
Default Portamento time in seconds |
943 |
|
(default=1).], |
944 |
|
[config_portamento_time_default="${enableval}"], |
945 |
|
[config_portamento_time_default="1"] |
946 |
|
) |
947 |
|
AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_DEFAULT, $config_portamento_time_default, [Define default portamento time.]) |
948 |
|
|
949 |
|
AC_ARG_ENABLE(signed-triang-algo, |
950 |
|
[ --enable-signed-triang-algo |
951 |
|
Signed triangular wave algorithm to be used (e.g. for LFOs). |
952 |
|
Currently available options: |
953 |
|
intmath: |
954 |
|
Uses integer math without any branch will then be |
955 |
|
converted to floating point value for each sample point. |
956 |
|
This int->float conversion might hurt on some systems. |
957 |
|
intmathabs: |
958 |
|
Similar to intmath but uses abs() function. |
959 |
|
Depending on compiler and platrofm this could |
960 |
|
perform better than integer math as it avoids |
961 |
|
an extra integer multiply instruction. |
962 |
|
diharmonic: |
963 |
|
The triangular wave will be approximated by adding two |
964 |
|
sinusoidials. This solution might especially hurt on |
965 |
|
systems with weak floating point unit. |
966 |
|
benchmark (default): |
967 |
|
This is not an algorithm. Use this option if the |
968 |
|
appropriate algorithm should be automatically |
969 |
|
chosen by the configure script by performing a |
970 |
|
benchmark between the algorithms mentioned above. |
971 |
|
This will NOT work for cross compilation!], |
972 |
|
[ if test ! "(" "${enableval}" = "intmath" \ |
973 |
|
-o "${enableval}" = "intmathabs" \ |
974 |
|
-o "${enableval}" = "diharmonic" ")" ; then |
975 |
|
AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-signed-triang-algo]) |
976 |
|
else |
977 |
|
config_signed_triang_algo="${enableval}" |
978 |
|
fi |
979 |
|
], |
980 |
|
[config_signed_triang_algo="benchmark"] |
981 |
|
) |
982 |
|
|
983 |
|
AC_ARG_ENABLE(unsigned-triang-algo, |
984 |
|
[ --enable-unsigned-triang-algo |
985 |
|
Unsigned triangular wave algorithm to be used (e.g. for LFOs). |
986 |
|
Currently available options: |
987 |
|
intmath: |
988 |
|
Uses integer math without any branch will then be |
989 |
|
converted to floating point value for each sample point. |
990 |
|
This int->float conversion might hurt on some systems. |
991 |
|
intmathabs: |
992 |
|
Similar to intmath but uses abs() function. |
993 |
|
Depending on compiler and platrofm this could |
994 |
|
perform better than integer math as it avoids |
995 |
|
an extra integer multiply instruction. |
996 |
|
diharmonic: |
997 |
|
The triangular wave will be approximated by adding two |
998 |
|
sinusoidials. This solution might especially hurt on |
999 |
|
systems with weak floating point unit. |
1000 |
|
benchmark (default): |
1001 |
|
This is not an algorithm. Use this option if the |
1002 |
|
appropriate algorithm should be automatically |
1003 |
|
chosen by the configure script by performing a |
1004 |
|
benchmark between the algorithms mentioned above. |
1005 |
|
This will NOT work for cross compilation!], |
1006 |
|
[ if test ! "(" "${enableval}" = "intmath" \ |
1007 |
|
-o "${enableval}" = "intmathabs" \ |
1008 |
|
-o "${enableval}" = "diharmonic" ")" ; then |
1009 |
|
AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-unsigned-triang-algo]) |
1010 |
|
else |
1011 |
|
config_unsigned_triang_algo="${enableval}" |
1012 |
|
fi |
1013 |
|
], |
1014 |
|
[config_unsigned_triang_algo="benchmark"] |
1015 |
|
) |
1016 |
|
|
1017 |
|
AC_ARG_ENABLE(process-muted-channels, |
1018 |
|
[ --enable-process-muted-channels |
1019 |
|
Enable processing of muted channels (default=no). |
1020 |
|
In that mode all MIDI events in the muted channels |
1021 |
|
will be processed. This will provide information |
1022 |
|
about the active voices in the muted channels and |
1023 |
|
will not discard notes, triggered in mute mode, |
1024 |
|
when the channel is unmuted. But also will reduce |
1025 |
|
the efficiency.], |
1026 |
|
[config_process_muted_channels="$enableval"], |
1027 |
|
[config_process_muted_channels="no"] |
1028 |
|
) |
1029 |
|
if test "$config_process_muted_channels" = "yes"; then |
1030 |
|
AC_DEFINE_UNQUOTED(CONFIG_PROCESS_MUTED_CHANNELS, 1, [Define to 1 if you want to enable processing of muted channels.]) |
1031 |
|
fi |
1032 |
|
|
1033 |
|
AC_ARG_ENABLE(process-all-notes-off, |
1034 |
|
[ --disable-process-all-notes-off |
1035 |
|
Disable interpretation of All-Notes-Off MIDI |
1036 |
|
messages (default=on). By default LS will release |
1037 |
|
all voices whenever it receives an All-Notes-Off |
1038 |
|
MIDI message. You can disable this behavior, so |
1039 |
|
that LS simply ignores such messages.], |
1040 |
|
[config_process_all_notes_off="$enableval"], |
1041 |
|
[config_process_all_notes_off="yes"] |
1042 |
|
) |
1043 |
|
if test "$config_process_all_notes_off" = "yes"; then |
1044 |
|
AC_DEFINE_UNQUOTED(CONFIG_PROCESS_ALL_NOTES_OFF, 1, [Define to 1 if you want to enable processing of All-Notes-Off MIDI messages.]) |
1045 |
|
fi |
1046 |
|
|
1047 |
|
AC_ARG_ENABLE(interpolate-volume, |
1048 |
|
[ --disable-interpolate-volume |
1049 |
|
Disable interpolation of volume modulation |
1050 |
|
(default=on). With this enabled, the volume changes |
1051 |
|
generated by for example the envelope generator |
1052 |
|
will be smoother, minimizing the risk for audio |
1053 |
|
clicks. Disable it to reduce CPU usage.], |
1054 |
|
[config_interpolate_volume="$enableval"], |
1055 |
|
[config_interpolate_volume="yes"] |
1056 |
|
) |
1057 |
|
if test "$config_interpolate_volume" = "yes"; then |
1058 |
|
AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.]) |
1059 |
|
fi |
1060 |
|
|
1061 |
|
AC_ARG_ENABLE(master-volume-sysex-by-port, |
1062 |
|
[ --enable-master-volume-sysex-by-port |
1063 |
|
Whether global volume sysex message should be |
1064 |
|
applied globally to the whole sampler or only to |
1065 |
|
the sampler channels connected to the same MIDI |
1066 |
|
input port on which the sysex message arrived on. |
1067 |
|
By default global volume sysex messages apply |
1068 |
|
globally to the whole sampler, since many MIDI |
1069 |
|
devices behave that way.], |
1070 |
|
[config_master_volume_sysex_by_port="$enableval"], |
1071 |
|
[config_master_volume_sysex_by_port="no"] |
1072 |
|
) |
1073 |
|
if test "$config_master_volume_sysex_by_port" = "yes"; then |
1074 |
|
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.]) |
1075 |
|
fi |
1076 |
|
|
1077 |
|
AC_ARG_ENABLE(plugin-dir, |
1078 |
|
[ --enable-plugin-dir |
1079 |
|
Directory where the sampler shall look for potential plugins, |
1080 |
|
that is 3rd party shared libraries that should be loaded by |
1081 |
|
the sampler on startup. By default the sampler will search |
1082 |
|
for plugins in the subdirectory "plugins" below its own |
1083 |
|
library directory. |
1084 |
|
(i.e. /usr/local/lib/linuxsampler/plugins)], |
1085 |
|
[config_plugin_dir="${enableval}"], |
1086 |
|
[config_plugin_dir="${libdir}/linuxsampler/plugins"] |
1087 |
|
) |
1088 |
|
AC_SUBST(config_plugin_dir) |
1089 |
|
|
1090 |
|
AC_ARG_ENABLE(default-instruments-db-location, |
1091 |
|
[ --enable-default-instruments-db-location |
1092 |
|
Only when instruments DB feature is enabled: file name |
1093 |
|
which shall be taken as default location of the |
1094 |
|
instruments DB file. This location can still be |
1095 |
|
overridden at runtime with a command line switch. |
1096 |
|
(default: /var/lib/linuxsampler/instruments.db)], |
1097 |
|
[config_default_instruments_db_file="${enableval}"], |
1098 |
|
[config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db"] |
1099 |
|
) |
1100 |
|
AC_DEFINE_UNQUOTED( |
1101 |
|
CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION, |
1102 |
|
"$config_default_instruments_db_file", |
1103 |
|
[Only when instruments DB feature is enabled: default location of the DB file.] |
1104 |
|
) |
1105 |
|
AC_SUBST(config_default_instruments_db_file) |
1106 |
|
|
1107 |
|
|
1108 |
|
########################################################################### |
1109 |
|
# Automatic Benchmarks (to detect the best algorithms for the system) |
1110 |
|
|
1111 |
|
AC_LANG_SAVE |
1112 |
|
|
1113 |
|
if test "$config_signed_triang_algo" = "benchmark"; then |
1114 |
|
echo -n "benchmarking for the best (signed) triangular oscillator algorithm... " |
1115 |
|
AC_LANG_CPLUSPLUS |
1116 |
|
AC_TRY_RUN([ |
1117 |
|
#define SIGNED 1 |
1118 |
|
#define SILENT 1 |
1119 |
|
#include "${srcdir}/benchmarks/triang.cpp" |
1120 |
|
], |
1121 |
|
triang_signed=0, |
1122 |
|
triang_signed=$?, |
1123 |
|
triang_signed=0 |
1124 |
|
) |
1125 |
|
if test "$triang_signed" = "2"; then |
1126 |
|
config_signed_triang_algo="intmath" |
1127 |
|
echo "integer math" |
1128 |
|
elif test "$triang_signed" = "3"; then |
1129 |
|
config_signed_triang_algo="diharmonic" |
1130 |
|
echo "di harmonics" |
1131 |
|
elif test "$triang_signed" = "5"; then |
1132 |
|
config_signed_triang_algo="intmathabs" |
1133 |
|
echo "integer math using abs()" |
1134 |
|
else |
1135 |
|
echo "Benchmark of signed triangular wave algorithms failed!" |
1136 |
|
echo "Maybe you are doing cross compilation? In that case you have to select" |
1137 |
|
echo "an algorithm manually with './configure --enable-signed-triang-algo=...'" |
1138 |
|
echo "Call './configure --help' for further information or read configure.in." |
1139 |
|
exit -1; |
1140 |
|
fi |
1141 |
|
else |
1142 |
|
case "$config_signed_triang_algo" in |
1143 |
|
intmath) |
1144 |
|
triang_signed=2 ;; |
1145 |
|
diharmonic) |
1146 |
|
triang_signed=3 ;; |
1147 |
|
intmathabs) |
1148 |
|
triang_signed=5 ;; |
1149 |
|
esac |
1150 |
|
fi |
1151 |
|
AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.]) |
1152 |
|
|
1153 |
|
if test "$config_unsigned_triang_algo" = "benchmark"; then |
1154 |
|
echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... " |
1155 |
|
AC_LANG_CPLUSPLUS |
1156 |
|
AC_TRY_RUN([ |
1157 |
|
#define SIGNED 0 |
1158 |
|
#define SILENT 1 |
1159 |
|
#include "${srcdir}/benchmarks/triang.cpp" |
1160 |
|
], |
1161 |
|
triang_unsigned=0, |
1162 |
|
triang_unsigned=$?, |
1163 |
|
triang_unsigned=0 |
1164 |
|
) |
1165 |
|
if test "$triang_unsigned" = "2"; then |
1166 |
|
config_unsigned_triang_algo="intmath" |
1167 |
|
echo "integer math" |
1168 |
|
elif test "$triang_unsigned" = "3"; then |
1169 |
|
config_unsigned_triang_algo="diharmonic" |
1170 |
|
echo "di harmonics" |
1171 |
|
elif test "$triang_unsigned" = "5"; then |
1172 |
|
config_unsigned_triang_algo="intmathabs" |
1173 |
|
echo "integer math using abs()" |
1174 |
|
else |
1175 |
|
echo "Benchmark of unsigned triangular wave algorithms failed!" |
1176 |
|
echo "Maybe you are doing cross compilation? In that case you have to select" |
1177 |
|
echo "an algorithm manually with './configure --enable-unsigned-triang-algo=...'" |
1178 |
|
echo "Call './configure --help' for further information or read configure.in." |
1179 |
|
exit -1; |
1180 |
|
fi |
1181 |
|
else |
1182 |
|
case "$config_unsigned_triang_algo" in |
1183 |
|
intmath) |
1184 |
|
triang_unsigned=2 ;; |
1185 |
|
diharmonic) |
1186 |
|
triang_unsigned=3 ;; |
1187 |
|
intmathabs) |
1188 |
|
triang_unsigned=5 ;; |
1189 |
|
esac |
1190 |
|
fi |
1191 |
|
AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.]) |
1192 |
|
|
1193 |
|
AC_LANG_RESTORE |
1194 |
|
|
1195 |
|
|
1196 |
|
########################################################################### |
1197 |
|
# Create Build Files |
1198 |
|
|
1199 |
AM_CONFIG_HEADER(config.h) |
AM_CONFIG_HEADER(config.h) |
1200 |
AM_INIT_AUTOMAKE(linuxsampler, 0.2) |
AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD") |
1201 |
|
|
1202 |
AC_LANG_CPLUSPLUS |
AC_LANG_CPLUSPLUS |
|
AC_PROG_CXX |
|
|
AM_PROG_LIBTOOL |
|
1203 |
|
|
1204 |
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) |
# some gcc 4.0 versions need -msse for SSE register allocations |
1205 |
|
if test "$config_asm" = "yes"; then |
1206 |
|
if test "$def_arch_x86" = 1; then |
1207 |
|
CXXFLAGS="$CXXFLAGS -msse" |
1208 |
|
fi |
1209 |
|
fi |
1210 |
|
|
1211 |
|
# autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like |
1212 |
|
# this, the dlfcn.h check in am_prog_libtool may fail. |
1213 |
|
AC_CHECK_HEADER(stdlib.h) |
1214 |
|
|
1215 |
|
AC_OUTPUT( \ |
1216 |
|
Makefile \ |
1217 |
|
man/Makefile \ |
1218 |
|
man/linuxsampler.1 \ |
1219 |
|
src/Makefile \ |
1220 |
|
src/db/Makefile \ |
1221 |
|
src/network/Makefile \ |
1222 |
|
src/engines/Makefile \ |
1223 |
|
src/engines/gig/Makefile \ |
1224 |
|
src/engines/common/Makefile \ |
1225 |
|
src/effects/Makefile \ |
1226 |
|
src/common/Makefile \ |
1227 |
|
src/testcases/Makefile \ |
1228 |
|
src/drivers/Makefile \ |
1229 |
|
src/drivers/audio/Makefile \ |
1230 |
|
src/drivers/midi/Makefile \ |
1231 |
|
src/plugins/Makefile \ |
1232 |
|
src/hostplugins/Makefile \ |
1233 |
|
src/hostplugins/dssi/Makefile \ |
1234 |
|
src/hostplugins/lv2/Makefile \ |
1235 |
|
src/hostplugins/vst/Makefile \ |
1236 |
|
src/hostplugins/au/Makefile \ |
1237 |
|
linuxsampler.spec \ |
1238 |
|
debian/Makefile \ |
1239 |
|
Artwork/Makefile \ |
1240 |
|
scripts/Makefile \ |
1241 |
|
osx/Makefile \ |
1242 |
|
osx/linuxsampler.xcodeproj/Makefile \ |
1243 |
|
Documentation/Makefile \ |
1244 |
|
Documentation/Engines/Makefile \ |
1245 |
|
Documentation/Engines/gig/Makefile \ |
1246 |
|
linuxsampler.pc \ |
1247 |
|
Doxyfile \ |
1248 |
|
) |
1249 |
|
|
1250 |
|
# resolve all nested variables in '${config_plugin_dir}' |
1251 |
|
# (merely for providing a human readable summary below) |
1252 |
|
while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do |
1253 |
|
config_plugin_dir=`eval echo ${config_plugin_dir}` |
1254 |
|
done |
1255 |
|
|
1256 |
|
|
1257 |
|
########################################################################### |
1258 |
|
# Output All Configuration Options |
1259 |
|
|
1260 |
|
echo "" |
1261 |
|
echo "#####################################################################" |
1262 |
|
echo "# LinuxSampler Configuration #" |
1263 |
|
echo "#-------------------------------------------------------------------#" |
1264 |
|
echo "# Assembly Optimizations: ${config_asm}" |
1265 |
|
echo "# Development Mode: ${config_dev_mode}" |
1266 |
|
echo "# Debug Level: ${config_debug_level}" |
1267 |
|
echo "# Use Exceptions in RT Context: ${config_rt_exceptions}" |
1268 |
|
echo "# Preload Samples: ${config_preload_samples}" |
1269 |
|
echo "# Maximum Pitch: ${config_max_pitch} (octaves)" |
1270 |
|
echo "# Maximum Events: ${config_max_events}" |
1271 |
|
echo "# Envelope Bottom Level: ${config_eg_bottom} (linear)" |
1272 |
|
echo "# Envelope Minimum Release Time: ${config_eg_min_release_time} s" |
1273 |
|
echo "# Streams to be refilled per Disk Thread Cycle: ${config_refill_streams}" |
1274 |
|
echo "# Minimum Stream Refill Size: ${config_stream_min_refill}" |
1275 |
|
echo "# Maximum Stream Refill Size: ${config_stream_max_refill}" |
1276 |
|
echo "# Stream Size: ${config_stream_size}" |
1277 |
|
echo "# Default Maximum Disk Streams: ${config_max_streams}" |
1278 |
|
echo "# Default Maximum Voices: ${config_max_voices}" |
1279 |
|
echo "# Default Subfragment Size: ${config_subfragment_size}" |
1280 |
|
echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}" |
1281 |
|
echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}" |
1282 |
|
echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}" |
1283 |
|
echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}" |
1284 |
|
echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte" |
1285 |
|
echo "# Min. Portamento Time: ${config_portamento_time_min} s" |
1286 |
|
echo "# Max. Portamento Time: ${config_portamento_time_max} s" |
1287 |
|
echo "# Default Portamento Time: ${config_portamento_time_default} s" |
1288 |
|
echo "# Force Filter Usage: ${config_force_filter}" |
1289 |
|
echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz" |
1290 |
|
echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz" |
1291 |
|
echo "# Override Filter Cutoff Controller: ${config_override_cutoff_ctrl}" |
1292 |
|
echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}" |
1293 |
|
echo "# Override Filter Type: ${config_override_filter_type}" |
1294 |
|
echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}" |
1295 |
|
echo "# Process Muted Channels: ${config_process_muted_channels}" |
1296 |
|
echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}" |
1297 |
|
echo "# Apply global volume SysEx by MIDI port: ${config_master_volume_sysex_by_port}" |
1298 |
|
echo "# Interpolate Volume: ${config_interpolate_volume}" |
1299 |
|
echo "# Instruments database support: ${config_instruments_db}" |
1300 |
|
if test "$config_instruments_db" = "yes"; then |
1301 |
|
echo "# Instruments DB default location: ${config_default_instruments_db_file}" |
1302 |
|
fi |
1303 |
|
echo "# Plugin Path: ${config_plugin_dir}" |
1304 |
|
echo "#-------------------------------------------------------------------#" |
1305 |
|
echo "# Read './configure --help' or file 'configure.in' for details. #" |
1306 |
|
echo "#####################################################################" |
1307 |
|
echo "" |
1308 |
|
echo "Good. Now type 'make' to compile, followed by 'make install' as root." |
1309 |
|
echo "" |