/[svn]/linuxsampler/trunk/configure.in
ViewVC logotype

Annotation of /linuxsampler/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 609 - (hide annotations) (download)
Sat Jun 4 17:49:12 2005 UTC (14 years, 3 months ago) by schoenebeck
File size: 23844 byte(s)
* updated autotools build files for conditional compilation of CoreMIDI
  (OS X) and MidiShare (Linux, OS X, Windows) drivers

1 schoenebeck 9 AC_INIT(configure.in)
2 schoenebeck 12 AC_C_BIGENDIAN
3 schoenebeck 9 AC_CANONICAL_SYSTEM
4    
5 schoenebeck 80 AC_SUBST(target)
6     AC_SUBST(target_alias)
7     AC_SUBST(target_cpu)
8     AC_SUBST(target_os)
9     AC_SUBST(target_vendor)
10 schoenebeck 18
11 schoenebeck 275
12 schoenebeck 554 ###########################################################################
13     # General Checks
14 schoenebeck 275
15 schoenebeck 510 AC_MSG_CHECKING([whether x86 architecture])
16 schoenebeck 9 def_arch_x86=0
17     case $target_cpu in
18     "i386" | "i486" | "i586" | "i686" | "i786")
19     echo "yes"
20     def_arch_x86=1;;
21     *)
22     echo "no";;
23     esac
24     AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x86,[Define to 1 if you build for x86 architecture.])
25    
26 schoenebeck 510 # determine the right gcc switch for CPU specific optimizations
27     CXX_CPU_SWITCH=
28     if test "$def_arch_x86" = 1; then
29     CXX_CPU_SWITCH="-march=$target_cpu"
30     elif test "$target_cpu" = "powerpc"; then
31     CXX_CPU_SWITCH="-arch=$target_cpu"
32     fi
33     AC_SUBST([CXX_CPU_SWITCH])
34    
35 schoenebeck 288 AC_MSG_CHECKING([whether UNIX98 compatible])
36     AC_LANG_SAVE
37     AC_LANG_C
38     AC_TRY_RUN([
39     #ifndef _GNU_SOURCE
40     #define _GNU_SOURCE 1
41     #endif
42     #include <features.h>
43     void main(void) {
44     #if _XOPEN_SOURCE >= 500
45     exit(0); /* UNIX98 compatible */
46     #else
47     exit(-1); /* not UNIX98 compatible */
48     #endif
49     }
50     ],
51     have_unix98="yes",
52     have_unix98="no",
53     have_unix98="no"
54     )
55     AC_LANG_RESTORE
56     AC_MSG_RESULT([$have_unix98])
57     if test "$have_unix98" = "no"; then
58     if test "x$HAVE_UNIX98" = "x"; then
59     echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"
60     echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run
61     echo "./configure with environment variable HAVE_UNIX98=1 in case you think you
62     echo "have a UNIX98 compatible system."
63     exit -1;
64     fi
65     fi
66    
67     # Checks for available audio and MIDI systems / drivers
68     # (we throw an error if there's not at least one system for audio output and MIDI input available)
69     have_midi_input_driver="false"
70     have_audio_output_driver="false"
71    
72 schoenebeck 18 AC_CHECK_HEADER(alsa/asoundlib.h,
73     AC_CHECK_LIB(asound, main,
74 schoenebeck 291 have_alsa=1
75 schoenebeck 18 ,
76 schoenebeck 291 have_alsa=0
77 schoenebeck 18 )
78     ,
79 schoenebeck 291 have_alsa=0
80 schoenebeck 18 )
81 schoenebeck 291 if test "$have_alsa" = "1"; then
82 schoenebeck 288 have_midi_input_driver="true"
83     have_audio_output_driver="true";
84 schoenebeck 18 fi
85 schoenebeck 291 AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")
86 schoenebeck 288 AC_DEFINE_UNQUOTED(HAVE_ALSA,$have_alsa,[Define to 1 if you have ALSA installed.])
87 schoenebeck 18
88     echo -n "checking Alsa version... "
89     AC_LANG_SAVE
90     AC_LANG_C
91     AC_TRY_RUN([
92     #include <alsa/asoundlib.h>
93     void main(void) {
94     /* ensure backward compatibility */
95     #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
96     #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
97     #endif
98     exit(SND_LIB_MAJOR);
99     }
100     ],
101     alsa_major=0,
102     alsa_major=$?,
103     alsa_major=0
104     )
105     AC_TRY_RUN([
106     #include <alsa/asoundlib.h>
107     void main(void) {
108     /* ensure backward compatibility */
109     #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
110     #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
111     #endif
112     exit(SND_LIB_MINOR);
113     }
114     ],
115     alsa_minor=0,
116     alsa_minor=$?,
117     alsa_minor=0
118     )
119     AC_TRY_RUN([
120     #include <alsa/asoundlib.h>
121     void main(void) {
122     /* ensure backward compatibility */
123     #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
124     #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
125     #endif
126     exit(SND_LIB_SUBMINOR);
127     }
128     ],
129     alsa_subminor=0,
130     alsa_subminor=$?,
131     alsa_subminor=0
132     )
133     AC_LANG_RESTORE
134     echo "$alsa_major.$alsa_minor.$alsa_subminor";
135     AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_major,[Define to the major version number of your Alsa installation.])
136     AC_DEFINE_UNQUOTED(ALSA_MINOR,$alsa_minor,[Define to the minor version number of your Alsa installation.])
137     AC_DEFINE_UNQUOTED(ALSA_SUBMINOR,$alsa_subminor,[Define to the subminor version number of your Alsa installation.])
138    
139 schoenebeck 31 # JACK
140     PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false)
141     AC_SUBST(JACK_LIBS)
142     AC_SUBST(JACK_CFLAGS)
143 schoenebeck 33 if test $HAVE_JACK = false; then
144     HAVE_JACK=0;
145     else
146 schoenebeck 288 HAVE_JACK=1
147     have_audio_output_driver="true";
148 persson 379 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)
149 schoenebeck 33 fi
150 schoenebeck 288 AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)
151 schoenebeck 31 AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.])
152    
153 schoenebeck 609 # MidiShare (Linux, OS X, Windows)
154     AC_CHECK_HEADER(MidiShare.h,
155     AC_CHECK_LIB(MidiShare, MidiCountEvs,
156     have_midishare=1,
157     have_midishare=0
158     )
159     ,
160     have_midishare=0
161     )
162     if test "$have_midishare" = "1"; then
163     have_midi_input_driver="true"
164     fi
165     AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")
166     AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_midishare,[Define to 1 if you have MidiShare installed.])
167    
168     # CoreMIDI (OS X)
169     AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h,
170     have_coremidi=1,
171     have_coremidi=0
172     )
173     if test "$have_coremidi" = "1"; then
174     have_midi_input_driver="true"
175     fi
176     AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
177     AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.])
178    
179 schoenebeck 504 # Check presence of libgig
180 schoenebeck 536 libgig_version="2.0.0"
181 schoenebeck 504 PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false)
182     if test "$HAVE_GIG" = "false"; then
183     echo "Required libgig version not found!"
184     echo "You need to have libgig version ${libgig_version} installed!"
185     exit -1;
186     fi
187     AC_SUBST(GIG_CFLAGS)
188     AC_SUBST(GIG_LIBS)
189    
190 senkov 397 # SQLITE3
191     PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false)
192     AC_SUBST(SQLITE3_LIBS)
193     AC_SUBST(SQLITE3_CFLAGS)
194     if test $HAVE_SQLITE3 = false; then
195     HAVE_SQLITE3=0;
196     else
197     HAVE_SQLITE3=1
198     fi
199     AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)
200     AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you have SQLITE3 installed.])
201 schoenebeck 31
202 schoenebeck 291 if test "$have_midi_input_driver" = "false"; then
203 schoenebeck 288 echo "No supported MIDI input system found!"
204 schoenebeck 609 echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
205     echo "ALSA, MIDIShare, CoreMIDI."
206     echo "If you think you have one of those available on your system, make sure you"
207     echo "also have the respective development (header) files installed."
208 schoenebeck 288 exit -1;
209     fi
210 schoenebeck 291 if test "$have_audio_output_driver" = "false"; then
211 schoenebeck 288 echo "No supported audio output system found!"
212     echo "Sorry, LinuxSampler only supports ALSA and JACK as audio output driver at the moment!"
213     exit -1;
214     fi
215    
216    
217 schoenebeck 554 ###########################################################################
218     # Handle Configuration Options
219    
220     # TODO: should we use AC_ARG_VAR(variable, description) instead?
221    
222     AC_ARG_ENABLE(dev-mode,
223     [ --enable-dev-mode
224     Enable development mode (default=no). In that mode
225     we do some extra sanity checks here and there.
226     This helps to spot possible problems, but reduces
227     efficiency a bit],
228     [config_dev_mode="yes"],
229     [config_dev_mode="no"]
230     )
231     if test "$config_dev_mode" = "yes"; then
232     AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.])
233     fi
234    
235     AC_ARG_ENABLE(debug-level,
236     [ --enable-debug-level
237     Specify verbosity of console messages (default=1).
238     The higher the value, the higher will be verbosity.
239     A value of 0 means no console output at all.
240     There's not really an upper limit but the usual
241     level of all messages is currently somewhere less
242     than 10.],
243     [config_debug_level="${enableval}"],
244     [config_debug_level="1"]
245     )
246     AC_DEFINE_UNQUOTED(CONFIG_DEBUG_LEVEL, $config_debug_level, [Define console verbosity.])
247    
248     AC_ARG_ENABLE(rt-exceptions,
249     [ --enable-rt-exceptions
250     Enable exceptions in the realtime thread
251     (default=no). If this is enabled, exceptions will
252     be thrown on critical errors in the realtime
253     context as well. Otherwise if disabled
254     segmentation faults will be forced by the
255     application on critical errors.],
256     [config_rt_exceptions="yes"],
257     [config_rt_exceptions="no"]
258     )
259     if test "$config_rt_exceptions" = "yes"; then
260     AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.])
261     fi
262    
263     AC_ARG_ENABLE(preload-samples,
264     [ --enable-preload-samples
265     Due to seeking and latency issues with hard drives
266     we have to cache a small part of samples' head in
267     RAM (default=32768). The higher this value the
268     more memory will be occupied for each sample, but
269     the safer this will be in regards of possible
270     droputs. A 'good' value depends on the running
271     system and usage dependant factors.],
272     [config_preload_samples="${enableval}"],
273     [config_preload_samples="32768"]
274     )
275     AC_DEFINE_UNQUOTED(CONFIG_PRELOAD_SAMPLES, $config_preload_samples, [Define amount of sample points to be cached in RAM.])
276    
277     AC_ARG_ENABLE(max-pitch,
278     [ --enable-max-pitch
279     Specify the maximum allowed pitch value in octaves
280     (default=4). To lower memory usage you might want
281     set a smaller value.],
282     [config_max_pitch="${enableval}"],
283     [config_max_pitch="4"]
284     )
285     AC_DEFINE_UNQUOTED(CONFIG_MAX_PITCH, $config_max_pitch, [Define max. allowed pitch.])
286    
287     AC_ARG_ENABLE(max-events,
288     [ --enable-max-events
289     Specify the maximum allowed amount of events to be
290     processed per fragment (default=1024).],
291     [config_max_events="${enableval}"],
292     [config_max_events="1024"]
293     )
294     AC_DEFINE_UNQUOTED(CONFIG_MAX_EVENTS_PER_FRAGMENT, $config_max_events, [Define max. allowed events per fragment.])
295    
296     AC_ARG_ENABLE(eg-bottom,
297     [ --enable-eg-bottom
298     Bottom limit of envelope generators
299     (default=0.001). Certain kinds of curve types like
300     exponential curves converge against 0 but never
301     reach 0. So we have to define a certain low value
302     after which we should consider all smaller values
303     to be 'almost zero'. The smaller this value, the
304     longer will voices survive in EG's release stage
305     and thus waste voices. If this value is too high
306     will cause click sounds though.],
307     [config_eg_bottom="${enableval}"],
308     [config_eg_bottom="0.001"]
309     )
310     AC_DEFINE_UNQUOTED(CONFIG_EG_BOTTOM, $config_eg_bottom, [Define bottom limit of envelopes.])
311    
312     AC_ARG_ENABLE(eg-min-release-time,
313     [ --enable-eg-min-release-time
314     Specify the lowest allowed release time in seconds
315     (default=0.0025). This value will also be used to
316     ramp down voices on voice stealing. This value
317     should always be less than the period time of the
318     used audio driver, as in case of voice stealing
319     the killed voice needs to be completely ramped
320     down in the same fragment.],
321     [config_eg_min_release_time="${enableval}"],
322     [config_eg_min_release_time="0.0025"]
323     )
324     AC_DEFINE_UNQUOTED(CONFIG_EG_MIN_RELEASE_TIME, $config_eg_min_release_time, [Define min. release time.])
325    
326     AC_ARG_ENABLE(refill-streams,
327     [ --enable-refill-streams
328     Number of streams that should be refilled in each
329     disk thread cycle (default=4).],
330     [config_refill_streams="${enableval}"],
331     [config_refill_streams="4"]
332     )
333     AC_DEFINE_UNQUOTED(CONFIG_REFILL_STREAMS_PER_RUN, $config_refill_streams, [Define amount of streams to be refilled per cycle.])
334    
335     AC_ARG_ENABLE(stream-min-refill,
336     [ --enable-stream-min-refill
337     Minimum refill size for disk streams (default=1024).
338     The disk thread will go to sleep for a while if no
339     stream had to be refilled more than this value in
340     a disk thread cycle.],
341     [config_stream_min_refill="${enableval}"],
342     [config_stream_min_refill="1024"]
343     )
344     AC_DEFINE_UNQUOTED(CONFIG_STREAM_MIN_REFILL_SIZE, $config_stream_min_refill, [Define min. stream refill size.])
345    
346     AC_ARG_ENABLE(stream-max-refill,
347     [ --enable-stream-max-refill
348     Maximum refill size for disk streams
349     (default=65536). The disk thread will refill
350     each stream only by a size of this value per
351     disk thread cycle.],
352     [config_stream_max_refill="${enableval}"],
353     [config_stream_max_refill="65536"]
354     )
355     AC_DEFINE_UNQUOTED(CONFIG_STREAM_MAX_REFILL_SIZE, $config_stream_max_refill, [Define max. stream refill size.])
356    
357     AC_ARG_ENABLE(stream-size,
358     [ --enable-stream-size
359     Size of each stream's ring buffer in sample points
360     (default=262144).],
361     [config_stream_size="${enableval}"],
362     [config_stream_size="262144"]
363     )
364     AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_SIZE, $config_stream_size, [Define each stream's ring buffer size.])
365    
366     AC_ARG_ENABLE(max-streams,
367     [ --enable-max-streams
368     Maximum amount of disk streams (default=90). This
369     value should always be higher than the maximum
370     amount of voices.],
371     [config_max_streams="${enableval}"],
372     [config_max_streams="90"]
373     )
374     AC_DEFINE_UNQUOTED(CONFIG_MAX_STREAMS, $config_max_streams, [Define max. streams.])
375    
376     AC_ARG_ENABLE(max-voices,
377     [ --enable-max-voices
378     Maximum amount of voices (default=64). This value
379     should always be lower than the maximum amount of
380     disk streams.],
381     [config_max_voices="${enableval}"],
382     [config_max_voices="64"]
383     )
384     AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])
385    
386     AC_ARG_ENABLE(voice-steal-algo,
387     [ --enable-voice-steal-algo
388     Voice stealing algorithm to be used. Currently
389     available options:
390     none:
391     Disable voice stealing completely.
392 schoenebeck 563 oldestvoiceonkey (default):
393 schoenebeck 554 Try to kill a voice on the same key first,
394     if no success, proceed with the oldest key.
395 schoenebeck 563 oldestkey:
396 schoenebeck 554 Try to kill a voice from the oldest active
397     key.],
398     [ if test ! "(" "${enableval}" = "none" \
399     -o "${enableval}" = "oldestvoiceonkey" \
400     -o "${enableval}" = "oldestkey" ")" ; then
401     AC_MSG_ERROR([Unknown voice stealing algorithm for parameter --enable-voice-steal-algo])
402     else
403     config_voice_steal_algo="${enableval}"
404 schoenebeck 579 fi
405 schoenebeck 554 ],
406 schoenebeck 563 [config_voice_steal_algo="oldestvoiceonkey"]
407 schoenebeck 554 )
408     AC_DEFINE_UNQUOTED(CONFIG_VOICE_STEAL_ALGO, voice_steal_algo_${config_voice_steal_algo}, [Define voice stealing algorithm to be used.])
409    
410     AC_ARG_ENABLE(sysex-buffer-size,
411     [ --enable-sysex-buffer-size
412     System Exclusive Message buffer size in kB
413     (default=2048).],
414     [config_sysex_buffer_size="${enableval}"],
415     [config_sysex_buffer_size="2048"]
416     )
417     AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.])
418    
419     AC_ARG_ENABLE(filter-update-steps,
420     [ --enable-filter-update-steps
421     Amount of sample points after which filter
422     parameters (cutoff, resonance) are going to be
423     updated (default=64). Higher value means less CPU
424     load, but also worse parameter resolution, this
425     value will be aligned to a power of two.],
426     [config_filter_update_steps="${enableval}"],
427     [config_filter_update_steps="64"]
428     )
429     AC_DEFINE_UNQUOTED(CONFIG_FILTER_UPDATE_STEPS, $config_filter_update_steps, [Define amount of steps to refresh filter coefficients.])
430    
431     AC_ARG_ENABLE(force-filter,
432     [ --enable-force-filter
433     If enabled will force filter to be used even if
434     no usage was define in instrument patch files.
435     (default=no).],
436     [config_force_filter="yes"],
437     [config_force_filter="no"]
438     )
439     if test "$config_force_filter" = "yes"; then
440     AC_DEFINE_UNQUOTED(CONFIG_FORCE_FILTER, 1, [Define to 1 to force filter usage.])
441     fi
442    
443     AC_ARG_ENABLE(filter-cutoff-min,
444     [ --enable-filter-cutoff-min
445     Minimum filter cutoff frequency in Hz
446     (default=100.0).],
447     [config_filter_cutoff_min="${enableval}"],
448     [config_filter_cutoff_min="100.0"]
449     )
450     AC_DEFINE_UNQUOTED(CONFIG_FILTER_CUTOFF_MIN, ${config_filter_cutoff_min}f, [Define min. filter cutoff frequency.])
451    
452     AC_ARG_ENABLE(filter-cutoff-max,
453     [ --enable-filter-cutoff-max
454     Maximum filter cutoff frequency in Hz
455     (default=10000.0).],
456     [config_filter_cutoff_max="${enableval}"],
457     [config_filter_cutoff_max="10000.0"]
458     )
459     AC_DEFINE_UNQUOTED(CONFIG_FILTER_CUTOFF_MAX, ${config_filter_cutoff_max}f, [Define max. filter cutoff frequency.])
460    
461     AC_ARG_ENABLE(override-cutoff-ctrl,
462     [ --enable-override-cutoff-ctrl
463     Override filter cutoff MIDI controller (default=no).
464     Note: you have to define the MIDI controller number
465     here, it's not a boolean parameter type! If this
466     option is used, controller number given by
467     instrument patch will be ignored and instead this
468     supplied value will be used.],
469     [config_override_cutoff_ctrl="${enableval}"],
470     [config_override_cutoff_ctrl="no"]
471     )
472     if test ! "$config_override_cutoff_ctrl" = "no"; then
473     AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_CUTOFF_CTRL, $config_override_cutoff_ctrl, [Define to a MIDI controller number to override cutoff control.])
474     fi
475    
476     AC_ARG_ENABLE(override-resonance-ctrl,
477     [ --enable-override-resonance-ctrl
478     Override filter resonance MIDI controller
479     (default=no). Note: you have to define the MIDI
480     controller number here, it's not a boolean
481     parameter type! If this option is used, controller
482     number given by instrument patch will be ignored
483     and instead this supplied value will be used.],
484     [config_override_resonance_ctrl="${enableval}"],
485     [config_override_resonance_ctrl="no"]
486     )
487     if test ! "$config_override_resonance_ctrl" = "no"; then
488     AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_RESONANCE_CTRL, $config_override_resonance_ctrl, [Define to a MIDI controller number to override resonance control.])
489     fi
490    
491     AC_ARG_ENABLE(override-filter-type,
492     [ --enable-override-filter-type
493     Override filter type (default=no). Options:
494     hp: for highpass
495     bp: for bandpass
496     br: for bandreject
497     lp: for lowpass
498     lpt: for lowpass turbo],
499     [ if test "${enableval}" = "hp" ; then
500     config_override_filter_type="::gig::vcf_type_highpass"
501     elif test "${enableval}" = "bp" ; then
502     config_override_filter_type="::gig::vcf_type_bandpass"
503     elif test "${enableval}" = "br" ; then
504     config_override_filter_type="::gig::vcf_type_bandreject"
505     elif test "${enableval}" = "lp" ; then
506     config_override_filter_type="::gig::vcf_type_lowpass"
507     elif test "${enableval}" = "lpt" ; then
508     config_override_filter_type="::gig::vcf_type_lowpassturbo"
509     elif test ! "${enableval}" = "no"; then
510     AC_MSG_ERROR([Unknown filter type for parameter --enable-override-filter-type])
511 schoenebeck 579 fi
512 schoenebeck 554 ],
513     [config_override_filter_type="no"]
514     )
515     if test ! "$config_override_filter_type" = "no"; then
516     AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_FILTER_TYPE, $config_override_filter_type, [Define to a filter type to always force that filter type.])
517     fi
518    
519 schoenebeck 563 AC_ARG_ENABLE(gs-checksum,
520     [ --enable-gs-checksum
521     Enable Roland General Synth SysEx checksum check
522     (default=no). If this is enabled, all GS SysEx
523     messages which do not provide a correct checksum
524     will be ignored. This is disabled by default as
525     not all devices honor GS checksums.],
526     [config_assert_gs_sysex_checksum="yes"],
527     [config_assert_gs_sysex_checksum="no"]
528     )
529     if test "config_assert_gs_sysex_checksum" = "yes"; then
530     AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.])
531     fi
532    
533    
534 schoenebeck 554 ###########################################################################
535     # Create Build Files
536    
537 schoenebeck 9 AM_CONFIG_HEADER(config.h)
538 capela 527 AM_INIT_AUTOMAKE(linuxsampler, 0.3.1)
539 schoenebeck 9
540     AC_LANG_CPLUSPLUS
541     AC_PROG_CXX
542 persson 497
543     # autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like
544     # this, the dlfcn.h check in am_prog_libtool may fail.
545     AC_CHECK_HEADER(stdlib.h)
546    
547 schoenebeck 9 AM_PROG_LIBTOOL
548    
549 schoenebeck 579 AC_OUTPUT(Makefile man/Makefile man/linuxsampler.1 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)
550 schoenebeck 554
551    
552     ###########################################################################
553     # Output All Configuration Options
554    
555     echo ""
556     echo "#####################################################################"
557     echo "# LinuxSampler Configuration #"
558     echo "#-------------------------------------------------------------------#"
559     echo "# Development Mode: ${config_dev_mode}"
560     echo "# Debug Level: ${config_debug_level}"
561     echo "# Use Exceptions in RT Context: ${config_rt_exceptions}"
562     echo "# Preload Samples: ${config_preload_samples}"
563     echo "# Maximum Pitch: ${config_max_pitch} (octaves)"
564     echo "# Maximum Events: ${config_max_events}"
565     echo "# Envelope Bottom Level: ${config_eg_bottom} (linear)"
566     echo "# Envelope Minimum Release Time: ${config_eg_min_release_time} s"
567     echo "# Streams to be refilled per Disk Thread Cycle: ${config_refill_streams}"
568     echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"
569     echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"
570     echo "# Stream Size: ${config_stream_size}"
571     echo "# Maximum Disk Streams: ${config_max_streams}"
572     echo "# Maximum Voices: ${config_max_voices}"
573 schoenebeck 563 echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
574 schoenebeck 554 echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"
575     echo "# Filter Update Steps: ${config_filter_update_steps}"
576     echo "# Force Filter Usage: ${config_force_filter}"
577     echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"
578     echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"
579     echo "# Override Filter Cutoff Controller: ${config_override_cutoff_ctrl}"
580     echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}"
581     echo "# Override Filter Type: ${config_override_filter_type}"
582 schoenebeck 563 echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
583 schoenebeck 554 echo "#-------------------------------------------------------------------#"
584     echo "# Read './configure --help' or file 'configure.in' for details. #"
585     echo "#####################################################################"
586     echo ""
587     echo "Good. Now type 'make' to compile, followed by 'make install' as root."
588     echo ""

  ViewVC Help
Powered by ViewVC