5 |
|
|
6 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
LINUXSAMPLER_RELEASE_MAJOR=0 |
7 |
LINUXSAMPLER_RELEASE_MINOR=5 |
LINUXSAMPLER_RELEASE_MINOR=5 |
8 |
LINUXSAMPLER_RELEASE_BUILD=0 |
LINUXSAMPLER_RELEASE_BUILD=1 |
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=1 |
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=3 |
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 |
295 |
AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1") |
AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1") |
296 |
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.]) |
297 |
|
|
298 |
|
# ASIO AUDIO (Win32) |
299 |
|
AC_ARG_ENABLE(asiosdk-dir, |
300 |
|
[ --enable-asiosdk-dir |
301 |
|
Directory where the ASIO SDK is located, this automatically |
302 |
|
enables the compilation of the ASIO audio output driver.], |
303 |
|
[config_asiosdk_dir="${enableval}"], |
304 |
|
[config_asiosdk_dir="."] |
305 |
|
) |
306 |
|
AC_SUBST(config_asiosdk_dir) |
307 |
|
|
308 |
|
AC_ARG_ENABLE(asio-driver, |
309 |
|
[ --disable-asio-driver |
310 |
|
Disable support for the Windows ASIO driver.], |
311 |
|
[config_asio_driver="$enableval"], |
312 |
|
[config_asio_driver="yes"] |
313 |
|
) |
314 |
|
have_asio=0 |
315 |
|
ASIOSDK_BASEDIR= |
316 |
|
if test "$config_asio_driver" = "yes"; then |
317 |
|
asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h |
318 |
|
echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...." |
319 |
|
if test -e $asiosdk_headerfile ; then |
320 |
|
echo yes |
321 |
|
have_asio=1 |
322 |
|
ASIOSDK_BASEDIR="$config_asiosdk_dir" |
323 |
|
else |
324 |
|
echo no |
325 |
|
have_asio=0 |
326 |
|
fi |
327 |
|
if test "$have_asio" = "1"; then |
328 |
|
have_audio_output_driver="true" |
329 |
|
fi |
330 |
|
else |
331 |
|
echo "Windows ASIO support disabled by configure script parameter" |
332 |
|
fi |
333 |
|
AC_SUBST(ASIOSDK_BASEDIR) |
334 |
|
AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1") |
335 |
|
AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.]) |
336 |
|
|
337 |
# MidiShare (Linux, OS X, Windows) |
# MidiShare (Linux, OS X, Windows) |
338 |
AC_ARG_ENABLE(midishare-driver, |
AC_ARG_ENABLE(midishare-driver, |
339 |
[ --disable-midishare-driver |
[ --disable-midishare-driver |
382 |
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
383 |
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.]) |
384 |
|
|
385 |
|
# MME MIDI (Win32) |
386 |
|
AC_ARG_ENABLE(mmemidi-driver, |
387 |
|
[ --disable-mmemidi-driver |
388 |
|
Disable support for the Windows MME MIDI system.], |
389 |
|
[config_mmemidi_driver="$enableval"], |
390 |
|
[config_mmemidi_driver="yes"] |
391 |
|
) |
392 |
|
have_mmemidi=0 |
393 |
|
if test "$config_mmemidi_driver" = "yes"; then |
394 |
|
AC_CHECK_HEADERS(mmsystem.h, |
395 |
|
have_mmemidi=1, |
396 |
|
have_mmemidi=0 |
397 |
|
) |
398 |
|
if test "$have_mmemidi" = "1"; then |
399 |
|
have_midi_input_driver="true" |
400 |
|
fi |
401 |
|
else |
402 |
|
echo "MME MIDI support disabled by configure script parameter" |
403 |
|
fi |
404 |
|
AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1") |
405 |
|
AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.]) |
406 |
|
|
407 |
# have we found at least one MIDI input and one audio output driver ? |
# have we found at least one MIDI input and one audio output driver ? |
408 |
if test "$have_midi_input_driver" = "false"; then |
if test "$have_midi_input_driver" = "false"; then |
409 |
echo "No supported MIDI input system found!" |
echo "No supported MIDI input system found!" |
426 |
# Checks for various DLL libraries |
# Checks for various DLL libraries |
427 |
|
|
428 |
# Check presence of libgig |
# Check presence of libgig |
429 |
libgig_version="3.2.0" |
libgig_version="3.2.1" |
430 |
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) |
431 |
if test "$HAVE_GIG" = "false"; then |
if test "$HAVE_GIG" = "false"; then |
432 |
echo "Required libgig version not found!" |
echo "Required libgig version not found!" |
533 |
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.]) |
534 |
fi |
fi |
535 |
|
|
536 |
|
AC_ARG_ENABLE(pthread-testcancel, |
537 |
|
[ --enable-pthread-testcancel |
538 |
|
Enable pthread_testcancel() calls and avoid asynchronous |
539 |
|
cancel of pthreads (default=no).], |
540 |
|
[config_pthread_testcancel="$enableval"], |
541 |
|
[config_pthread_testcancel="no"] |
542 |
|
) |
543 |
|
if test "$config_pthread_testcancel" = "yes"; then |
544 |
|
AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.]) |
545 |
|
fi |
546 |
|
|
547 |
AC_ARG_ENABLE(preload-samples, |
AC_ARG_ENABLE(preload-samples, |
548 |
[ --enable-preload-samples |
[ --enable-preload-samples |
549 |
Due to seeking and latency issues with hard drives |
Due to seeking and latency issues with hard drives |
995 |
"$config_default_instruments_db_file", |
"$config_default_instruments_db_file", |
996 |
[Only when instruments DB feature is enabled: default location of the DB file.] |
[Only when instruments DB feature is enabled: default location of the DB file.] |
997 |
) |
) |
998 |
|
AC_SUBST(config_default_instruments_db_file) |
999 |
|
|
1000 |
|
|
1001 |
########################################################################### |
########################################################################### |