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=3 |
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 |
|
|
185 |
AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) |
AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) |
186 |
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.]) |
187 |
|
|
188 |
|
# MidiShare (Linux, OS X, Windows) |
189 |
|
AC_CHECK_HEADER(MidiShare.h, |
190 |
|
AC_CHECK_LIB(MidiShare, MidiCountEvs, |
191 |
|
have_midishare=1, |
192 |
|
have_midishare=0 |
193 |
|
) |
194 |
|
, |
195 |
|
have_midishare=0 |
196 |
|
) |
197 |
|
if test "$have_midishare" = "1"; then |
198 |
|
have_midi_input_driver="true" |
199 |
|
fi |
200 |
|
AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1") |
201 |
|
AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_midishare,[Define to 1 if you have MidiShare installed.]) |
202 |
|
|
203 |
|
# CoreMIDI (OS X) |
204 |
|
AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h, |
205 |
|
have_coremidi=1, |
206 |
|
have_coremidi=0 |
207 |
|
) |
208 |
|
if test "$have_coremidi" = "1"; then |
209 |
|
have_midi_input_driver="true" |
210 |
|
fi |
211 |
|
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
212 |
|
AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.]) |
213 |
|
|
214 |
# Check presence of libgig |
# Check presence of libgig |
215 |
libgig_version="2.0.0" |
libgig_version="2.0.1" |
216 |
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) |
217 |
if test "$HAVE_GIG" = "false"; then |
if test "$HAVE_GIG" = "false"; then |
218 |
echo "Required libgig version not found!" |
echo "Required libgig version not found!" |
236 |
|
|
237 |
if test "$have_midi_input_driver" = "false"; then |
if test "$have_midi_input_driver" = "false"; then |
238 |
echo "No supported MIDI input system found!" |
echo "No supported MIDI input system found!" |
239 |
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:" |
240 |
|
echo "ALSA, MIDIShare, CoreMIDI." |
241 |
|
echo "If you think you have one of those available on your system, make sure you" |
242 |
|
echo "also have the respective development (header) files installed." |
243 |
exit -1; |
exit -1; |
244 |
fi |
fi |
245 |
if test "$have_audio_output_driver" = "false"; then |
if test "$have_audio_output_driver" = "false"; then |
254 |
|
|
255 |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
256 |
|
|
257 |
|
AC_ARG_ENABLE(asm, |
258 |
|
[ --disable-asm |
259 |
|
Disable hand-crafted assembly optimizations |
260 |
|
(default=on). LinuxSampler provides CPU specific |
261 |
|
assembly optimizations for the most important |
262 |
|
synthesis algorithms. You usually don't want to |
263 |
|
disable that.], |
264 |
|
[config_asm="no"], |
265 |
|
[config_asm="yes"] |
266 |
|
) |
267 |
|
if test "$config_asm" = "yes"; then |
268 |
|
AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable hand-crafted asm optimizations.]) |
269 |
|
fi |
270 |
|
|
271 |
AC_ARG_ENABLE(dev-mode, |
AC_ARG_ENABLE(dev-mode, |
272 |
[ --enable-dev-mode |
[ --enable-dev-mode |
273 |
Enable development mode (default=no). In that mode |
Enable development mode (default=no). In that mode |
450 |
AC_MSG_ERROR([Unknown voice stealing algorithm for parameter --enable-voice-steal-algo]) |
AC_MSG_ERROR([Unknown voice stealing algorithm for parameter --enable-voice-steal-algo]) |
451 |
else |
else |
452 |
config_voice_steal_algo="${enableval}" |
config_voice_steal_algo="${enableval}" |
453 |
fi |
fi |
454 |
], |
], |
455 |
[config_voice_steal_algo="oldestvoiceonkey"] |
[config_voice_steal_algo="oldestvoiceonkey"] |
456 |
) |
) |
557 |
config_override_filter_type="::gig::vcf_type_lowpassturbo" |
config_override_filter_type="::gig::vcf_type_lowpassturbo" |
558 |
elif test ! "${enableval}" = "no"; then |
elif test ! "${enableval}" = "no"; then |
559 |
AC_MSG_ERROR([Unknown filter type for parameter --enable-override-filter-type]) |
AC_MSG_ERROR([Unknown filter type for parameter --enable-override-filter-type]) |
560 |
fi |
fi |
561 |
], |
], |
562 |
[config_override_filter_type="no"] |
[config_override_filter_type="no"] |
563 |
) |
) |
584 |
# Create Build Files |
# Create Build Files |
585 |
|
|
586 |
AM_CONFIG_HEADER(config.h) |
AM_CONFIG_HEADER(config.h) |
587 |
AM_INIT_AUTOMAKE(linuxsampler, 0.3.1) |
AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD") |
588 |
|
|
589 |
AC_LANG_CPLUSPLUS |
AC_LANG_CPLUSPLUS |
590 |
AC_PROG_CXX |
AC_PROG_CXX |
591 |
|
|
592 |
|
# some gcc 4.0 versions need -msse for SSE register allocations |
593 |
|
if test "$config_asm" = "yes"; then |
594 |
|
if test "$def_arch_x86" = 1; then |
595 |
|
CXXFLAGS="$CXXFLAGS -msse" |
596 |
|
fi |
597 |
|
fi |
598 |
|
|
599 |
# autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like |
# autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like |
600 |
# this, the dlfcn.h check in am_prog_libtool may fail. |
# this, the dlfcn.h check in am_prog_libtool may fail. |
601 |
AC_CHECK_HEADER(stdlib.h) |
AC_CHECK_HEADER(stdlib.h) |
602 |
|
|
603 |
AM_PROG_LIBTOOL |
AC_OUTPUT( \ |
604 |
|
Makefile \ |
605 |
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) |
man/Makefile \ |
606 |
|
man/linuxsampler.1 \ |
607 |
|
src/Makefile \ |
608 |
|
src/network/Makefile \ |
609 |
|
src/engines/Makefile \ |
610 |
|
src/engines/gig/Makefile \ |
611 |
|
src/engines/common/Makefile \ |
612 |
|
src/common/Makefile src/lib/Makefile \ |
613 |
|
src/lib/fileloader/Makefile \ |
614 |
|
src/lib/fileloader/libgig/Makefile \ |
615 |
|
src/testcases/Makefile \ |
616 |
|
src/drivers/Makefile \ |
617 |
|
src/drivers/audio/Makefile \ |
618 |
|
src/drivers/midi/Makefile \ |
619 |
|
linuxsampler.spec \ |
620 |
|
debian/Makefile \ |
621 |
|
Artwork/Makefile \ |
622 |
|
scripts/Makefile \ |
623 |
|
osx/Makefile \ |
624 |
|
osx/LinuxSampler.xcode/Makefile \ |
625 |
|
Documentation/Makefile \ |
626 |
|
Documentation/Engines/Makefile \ |
627 |
|
Documentation/Engines/gig/Makefile \ |
628 |
|
linuxsampler.pc \ |
629 |
|
Doxyfile \ |
630 |
|
) |
631 |
|
|
632 |
|
|
633 |
########################################################################### |
########################################################################### |
637 |
echo "#####################################################################" |
echo "#####################################################################" |
638 |
echo "# LinuxSampler Configuration #" |
echo "# LinuxSampler Configuration #" |
639 |
echo "#-------------------------------------------------------------------#" |
echo "#-------------------------------------------------------------------#" |
640 |
|
echo "# Assembly Optimizations: ${config_asm}" |
641 |
echo "# Development Mode: ${config_dev_mode}" |
echo "# Development Mode: ${config_dev_mode}" |
642 |
echo "# Debug Level: ${config_debug_level}" |
echo "# Debug Level: ${config_debug_level}" |
643 |
echo "# Use Exceptions in RT Context: ${config_rt_exceptions}" |
echo "# Use Exceptions in RT Context: ${config_rt_exceptions}" |