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

Diff of /linuxsampler/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 124 by schoenebeck, Mon Jun 14 19:37:42 2004 UTC revision 617 by schoenebeck, Wed Jun 8 21:00:06 2005 UTC
# Line 8  AC_SUBST(target_cpu) Line 8  AC_SUBST(target_cpu)
8  AC_SUBST(target_os)  AC_SUBST(target_os)
9  AC_SUBST(target_vendor)  AC_SUBST(target_vendor)
10    
11  echo -n "checking whether x86 architecture... "  
12    ###########################################################################
13    # General Checks
14    
15    AC_MSG_CHECKING([whether x86 architecture])
16  def_arch_x86=0  def_arch_x86=0
17  case $target_cpu in  case $target_cpu in
18    "i386" | "i486" | "i586" | "i686" | "i786")    "i386" | "i486" | "i586" | "i686" | "i786")
# Line 19  case $target_cpu in Line 23  case $target_cpu in
23  esac  esac
24  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.])
25    
26    # 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    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  AC_CHECK_HEADER(alsa/asoundlib.h,  AC_CHECK_HEADER(alsa/asoundlib.h,
73      AC_CHECK_LIB(asound, main,      AC_CHECK_LIB(asound, main,
74                               have_alsa="true"                               have_alsa=1
75                               ,                               ,
76                               have_alsa="false"                               have_alsa=0
77                  )                  )
78                  ,                  ,
79                  have_alsa="false"                  have_alsa=0
80  )  )
81  if test "$have_alsa" = "false"; then  if test "$have_alsa" = "1"; then
82      echo "Alsa not installed!"      have_midi_input_driver="true"
83      echo "Sorry, LinuxSampler only supports Alsa sound drivers at the moment!"      have_audio_output_driver="true";
     exit -1;  
84  fi  fi
85    AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")
86    AC_DEFINE_UNQUOTED(HAVE_ALSA,$have_alsa,[Define to 1 if you have ALSA installed.])
87    
88  echo -n "checking Alsa version... "  echo -n "checking Alsa version... "
89  AC_LANG_SAVE  AC_LANG_SAVE
# Line 87  AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_majo Line 136  AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_majo
136  AC_DEFINE_UNQUOTED(ALSA_MINOR,$alsa_minor,[Define to the minor version number of your Alsa installation.])  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.])  AC_DEFINE_UNQUOTED(ALSA_SUBMINOR,$alsa_subminor,[Define to the subminor version number of your Alsa installation.])
138    
   
139  # JACK  # JACK
140  PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false)  PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false)
141  AC_SUBST(JACK_LIBS)  AC_SUBST(JACK_LIBS)
# Line 95  AC_SUBST(JACK_CFLAGS) Line 143  AC_SUBST(JACK_CFLAGS)
143  if test $HAVE_JACK = false; then  if test $HAVE_JACK = false; then
144      HAVE_JACK=0;      HAVE_JACK=0;
145  else  else
146      HAVE_JACK=1;      HAVE_JACK=1
147        have_audio_output_driver="true";
148        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  fi  fi
150    AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)
151  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.])
152    
153    # 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    # Check presence of libgig
180    libgig_version="2.0.0"
181    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    # 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    
202    if test "$have_midi_input_driver" = "false"; then
203        echo "No supported MIDI input system found!"
204        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        exit -1;
209    fi
210    if test "$have_audio_output_driver" = "false"; then
211        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    ###########################################################################
218    # Handle Configuration Options
219    
220    # TODO: should we use AC_ARG_VAR(variable, description) instead?
221    
222    AC_ARG_ENABLE(asm,
223      [  --disable-asm
224                              Disable hand-crafted assembly optimizations
225                              (default=on). LinuxSampler provides CPU specific
226                              assembly optimizations for the most important
227                              synthesis algorithms. You usually don't want to
228                              diable that.],
229      [config_asm="no"],
230      [config_asm="yes"]
231    )
232    if test "$config_asm" = "yes"; then
233      AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable hand-crafted asm optimizations.])
234    fi
235    
236    AC_ARG_ENABLE(dev-mode,
237      [  --enable-dev-mode
238                              Enable development mode (default=no). In that mode
239                              we do some extra sanity checks here and there.
240                              This helps to spot possible problems, but reduces
241                              efficiency a bit],
242      [config_dev_mode="yes"],
243      [config_dev_mode="no"]
244    )
245    if test "$config_dev_mode" = "yes"; then
246      AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.])
247    fi
248    
249    AC_ARG_ENABLE(debug-level,
250      [  --enable-debug-level
251                              Specify verbosity of console messages (default=1).
252                              The higher the value, the higher will be verbosity.
253                              A value of 0 means no console output at all.
254                              There's not really an upper limit but the usual
255                              level of all messages is currently somewhere less
256                              than 10.],
257      [config_debug_level="${enableval}"],
258      [config_debug_level="1"]
259    )
260    AC_DEFINE_UNQUOTED(CONFIG_DEBUG_LEVEL, $config_debug_level, [Define console verbosity.])
261    
262    AC_ARG_ENABLE(rt-exceptions,
263      [  --enable-rt-exceptions
264                              Enable exceptions in the realtime thread
265                              (default=no). If this is enabled, exceptions will
266                              be thrown on critical errors in the realtime
267                              context as well. Otherwise if disabled
268                              segmentation faults will be forced by the
269                              application on critical errors.],
270      [config_rt_exceptions="yes"],
271      [config_rt_exceptions="no"]
272    )
273    if test "$config_rt_exceptions" = "yes"; then
274      AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.])
275    fi
276    
277    AC_ARG_ENABLE(preload-samples,
278      [  --enable-preload-samples
279                              Due to seeking and latency issues with hard drives
280                              we have to cache a small part of samples' head in
281                              RAM (default=32768). The higher this value the
282                              more memory will be occupied for each sample, but
283                              the safer this will be in regards of possible
284                              droputs. A 'good' value depends on the running
285                              system and usage dependant factors.],
286      [config_preload_samples="${enableval}"],
287      [config_preload_samples="32768"]
288    )
289    AC_DEFINE_UNQUOTED(CONFIG_PRELOAD_SAMPLES, $config_preload_samples, [Define amount of sample points to be cached in RAM.])
290    
291    AC_ARG_ENABLE(max-pitch,
292      [  --enable-max-pitch
293                              Specify the maximum allowed pitch value in octaves
294                              (default=4). To lower memory usage you might want
295                              set a smaller value.],
296      [config_max_pitch="${enableval}"],
297      [config_max_pitch="4"]
298    )
299    AC_DEFINE_UNQUOTED(CONFIG_MAX_PITCH, $config_max_pitch, [Define max. allowed pitch.])
300    
301    AC_ARG_ENABLE(max-events,
302      [  --enable-max-events
303                              Specify the maximum allowed amount of events to be
304                              processed per fragment (default=1024).],
305      [config_max_events="${enableval}"],
306      [config_max_events="1024"]
307    )
308    AC_DEFINE_UNQUOTED(CONFIG_MAX_EVENTS_PER_FRAGMENT, $config_max_events, [Define max. allowed events per fragment.])
309    
310    AC_ARG_ENABLE(eg-bottom,
311      [  --enable-eg-bottom
312                              Bottom limit of envelope generators
313                              (default=0.001). Certain kinds of curve types like
314                              exponential curves converge against 0 but never
315                              reach 0. So we have to define a certain low value
316                              after which we should consider all smaller values
317                              to be 'almost zero'. The smaller this value, the
318                              longer will voices survive in EG's release stage
319                              and thus waste voices. If this value is too high
320                              will cause click sounds though.],
321      [config_eg_bottom="${enableval}"],
322      [config_eg_bottom="0.001"]
323    )
324    AC_DEFINE_UNQUOTED(CONFIG_EG_BOTTOM, $config_eg_bottom, [Define bottom limit of envelopes.])
325    
326    AC_ARG_ENABLE(eg-min-release-time,
327      [  --enable-eg-min-release-time
328                              Specify the lowest allowed release time in seconds
329                              (default=0.0025). This value will also be used to
330                              ramp down voices on voice stealing. This value
331                              should always be less than the period time of the
332                              used audio driver, as in case of voice stealing
333                              the killed voice needs to be completely ramped
334                              down in the same fragment.],
335      [config_eg_min_release_time="${enableval}"],
336      [config_eg_min_release_time="0.0025"]
337    )
338    AC_DEFINE_UNQUOTED(CONFIG_EG_MIN_RELEASE_TIME, $config_eg_min_release_time, [Define min. release time.])
339    
340    AC_ARG_ENABLE(refill-streams,
341      [  --enable-refill-streams
342                              Number of streams that should be refilled in each
343                              disk thread cycle (default=4).],
344      [config_refill_streams="${enableval}"],
345      [config_refill_streams="4"]
346    )
347    AC_DEFINE_UNQUOTED(CONFIG_REFILL_STREAMS_PER_RUN, $config_refill_streams, [Define amount of streams to be refilled per cycle.])
348    
349    AC_ARG_ENABLE(stream-min-refill,
350      [  --enable-stream-min-refill
351                              Minimum refill size for disk streams (default=1024).
352                              The disk thread will go to sleep for a while if no
353                              stream had to be refilled more than this value in
354                              a disk thread cycle.],
355      [config_stream_min_refill="${enableval}"],
356      [config_stream_min_refill="1024"]
357    )
358    AC_DEFINE_UNQUOTED(CONFIG_STREAM_MIN_REFILL_SIZE, $config_stream_min_refill, [Define min. stream refill size.])
359    
360    AC_ARG_ENABLE(stream-max-refill,
361      [  --enable-stream-max-refill
362                              Maximum refill size for disk streams
363                              (default=65536). The disk thread will refill
364                              each stream only by a size of this value per
365                              disk thread cycle.],
366      [config_stream_max_refill="${enableval}"],
367      [config_stream_max_refill="65536"]
368    )
369    AC_DEFINE_UNQUOTED(CONFIG_STREAM_MAX_REFILL_SIZE, $config_stream_max_refill, [Define max. stream refill size.])
370    
371    AC_ARG_ENABLE(stream-size,
372      [  --enable-stream-size
373                              Size of each stream's ring buffer in sample points
374                              (default=262144).],
375      [config_stream_size="${enableval}"],
376      [config_stream_size="262144"]
377    )
378    AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_SIZE, $config_stream_size, [Define each stream's ring buffer size.])
379    
380    AC_ARG_ENABLE(max-streams,
381      [  --enable-max-streams
382                              Maximum amount of disk streams (default=90). This
383                              value should always be higher than the maximum
384                              amount of voices.],
385      [config_max_streams="${enableval}"],
386      [config_max_streams="90"]
387    )
388    AC_DEFINE_UNQUOTED(CONFIG_MAX_STREAMS, $config_max_streams, [Define max. streams.])
389    
390    AC_ARG_ENABLE(max-voices,
391      [  --enable-max-voices
392                              Maximum amount of voices (default=64). This value
393                              should always be lower than the maximum amount of
394                              disk streams.],
395      [config_max_voices="${enableval}"],
396      [config_max_voices="64"]
397    )
398    AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])
399    
400    AC_ARG_ENABLE(voice-steal-algo,
401      [  --enable-voice-steal-algo
402                              Voice stealing algorithm to be used. Currently
403                              available options:
404                                none:
405                                  Disable voice stealing completely.
406                                oldestvoiceonkey (default):
407                                  Try to kill a voice on the same key first,
408                                  if no success, proceed with the oldest key.
409                                oldestkey:
410                                  Try to kill a voice from the oldest active
411                                  key.],
412      [ if test ! "(" "${enableval}" = "none" \
413                  -o "${enableval}" = "oldestvoiceonkey" \
414                  -o "${enableval}" = "oldestkey" ")" ; then
415          AC_MSG_ERROR([Unknown voice stealing algorithm for parameter --enable-voice-steal-algo])
416        else
417          config_voice_steal_algo="${enableval}"
418        fi
419      ],
420      [config_voice_steal_algo="oldestvoiceonkey"]
421    )
422    AC_DEFINE_UNQUOTED(CONFIG_VOICE_STEAL_ALGO, voice_steal_algo_${config_voice_steal_algo}, [Define voice stealing algorithm to be used.])
423    
424    AC_ARG_ENABLE(sysex-buffer-size,
425      [  --enable-sysex-buffer-size
426                              System Exclusive Message buffer size in kB
427                              (default=2048).],
428      [config_sysex_buffer_size="${enableval}"],
429      [config_sysex_buffer_size="2048"]
430    )
431    AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.])
432    
433    AC_ARG_ENABLE(filter-update-steps,
434      [  --enable-filter-update-steps
435                              Amount of sample points after which filter
436                              parameters (cutoff, resonance) are going to be
437                              updated (default=64). Higher value means less CPU
438                              load, but also worse parameter resolution, this
439                              value will be aligned to a power of two.],
440      [config_filter_update_steps="${enableval}"],
441      [config_filter_update_steps="64"]
442    )
443    AC_DEFINE_UNQUOTED(CONFIG_FILTER_UPDATE_STEPS, $config_filter_update_steps, [Define amount of steps to refresh filter coefficients.])
444    
445    AC_ARG_ENABLE(force-filter,
446      [  --enable-force-filter
447                              If enabled will force filter to be used even if
448                              no usage was define in instrument patch files.
449                              (default=no).],
450      [config_force_filter="yes"],
451      [config_force_filter="no"]
452    )
453    if test "$config_force_filter" = "yes"; then
454      AC_DEFINE_UNQUOTED(CONFIG_FORCE_FILTER, 1, [Define to 1 to force filter usage.])
455    fi
456    
457    AC_ARG_ENABLE(filter-cutoff-min,
458      [  --enable-filter-cutoff-min
459                              Minimum filter cutoff frequency in Hz
460                              (default=100.0).],
461      [config_filter_cutoff_min="${enableval}"],
462      [config_filter_cutoff_min="100.0"]
463    )
464    AC_DEFINE_UNQUOTED(CONFIG_FILTER_CUTOFF_MIN, ${config_filter_cutoff_min}f, [Define min. filter cutoff frequency.])
465    
466    AC_ARG_ENABLE(filter-cutoff-max,
467      [  --enable-filter-cutoff-max
468                              Maximum filter cutoff frequency in Hz
469                              (default=10000.0).],
470      [config_filter_cutoff_max="${enableval}"],
471      [config_filter_cutoff_max="10000.0"]
472    )
473    AC_DEFINE_UNQUOTED(CONFIG_FILTER_CUTOFF_MAX, ${config_filter_cutoff_max}f, [Define max. filter cutoff frequency.])
474    
475    AC_ARG_ENABLE(override-cutoff-ctrl,
476      [  --enable-override-cutoff-ctrl
477                              Override filter cutoff MIDI controller (default=no).
478                              Note: you have to define the MIDI controller number
479                              here, it's not a boolean parameter type! If this
480                              option is used, controller number given by
481                              instrument patch will be ignored and instead this
482                              supplied value will be used.],
483      [config_override_cutoff_ctrl="${enableval}"],
484      [config_override_cutoff_ctrl="no"]
485    )
486    if test ! "$config_override_cutoff_ctrl" = "no"; then
487      AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_CUTOFF_CTRL, $config_override_cutoff_ctrl, [Define to a MIDI controller number to override cutoff control.])
488    fi
489    
490    AC_ARG_ENABLE(override-resonance-ctrl,
491      [  --enable-override-resonance-ctrl
492                              Override filter resonance MIDI controller
493                              (default=no). Note: you have to define the MIDI
494                              controller number here, it's not a boolean
495                              parameter type! If this option is used, controller
496                              number given by instrument patch will be ignored
497                              and instead this supplied value will be used.],
498      [config_override_resonance_ctrl="${enableval}"],
499      [config_override_resonance_ctrl="no"]
500    )
501    if test ! "$config_override_resonance_ctrl" = "no"; then
502      AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_RESONANCE_CTRL, $config_override_resonance_ctrl, [Define to a MIDI controller number to override resonance control.])
503    fi
504    
505    AC_ARG_ENABLE(override-filter-type,
506      [  --enable-override-filter-type
507                              Override filter type (default=no). Options:
508                              hp: for highpass
509                              bp: for bandpass
510                              br: for bandreject
511                              lp: for lowpass
512                              lpt: for lowpass turbo],
513      [ if   test "${enableval}" = "hp" ; then
514           config_override_filter_type="::gig::vcf_type_highpass"
515        elif test "${enableval}" = "bp" ; then
516           config_override_filter_type="::gig::vcf_type_bandpass"
517        elif test "${enableval}" = "br" ; then
518           config_override_filter_type="::gig::vcf_type_bandreject"
519        elif test "${enableval}" = "lp" ; then
520           config_override_filter_type="::gig::vcf_type_lowpass"
521        elif test "${enableval}" = "lpt" ; then
522           config_override_filter_type="::gig::vcf_type_lowpassturbo"
523        elif test ! "${enableval}" = "no"; then
524           AC_MSG_ERROR([Unknown filter type for parameter --enable-override-filter-type])
525        fi
526      ],
527      [config_override_filter_type="no"]
528    )
529    if test ! "$config_override_filter_type" = "no"; then
530      AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_FILTER_TYPE, $config_override_filter_type, [Define to a filter type to always force that filter type.])
531    fi
532    
533    AC_ARG_ENABLE(gs-checksum,
534      [  --enable-gs-checksum
535                              Enable Roland General Synth SysEx checksum check
536                              (default=no). If this is enabled, all GS SysEx
537                              messages which do not provide a correct checksum
538                              will be ignored. This is disabled by default as
539                              not all devices honor GS checksums.],
540      [config_assert_gs_sysex_checksum="yes"],
541      [config_assert_gs_sysex_checksum="no"]
542    )
543    if test "config_assert_gs_sysex_checksum" = "yes"; then
544      AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.])
545    fi
546    
547    
548    ###########################################################################
549    # Create Build Files
550    
551  AM_CONFIG_HEADER(config.h)  AM_CONFIG_HEADER(config.h)
552  AM_INIT_AUTOMAKE(linuxsampler, 0.1)  AM_INIT_AUTOMAKE(linuxsampler, 0.3.1)
553    
554  AC_LANG_CPLUSPLUS  AC_LANG_CPLUSPLUS
555  AC_PROG_CXX  AC_PROG_CXX
556    
557    # autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like
558    # this, the dlfcn.h check in am_prog_libtool may fail.
559    AC_CHECK_HEADER(stdlib.h)
560    
561  AM_PROG_LIBTOOL  AM_PROG_LIBTOOL
562    
563  AC_OUTPUT(Makefile src/Makefile src/network/Makefile src/engines/Makefile src/engines/gig/Makefile src/engines/common/Makefile src/common/Makefile src/audiodriver/Makefile src/mididriver/Makefile src/lib/Makefile src/lib/fileloader/Makefile src/lib/fileloader/libgig/Makefile src/testcases/Makefile src/drivers/Makefile)  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)
564    
565    
566    ###########################################################################
567    # Output All Configuration Options
568    
569    echo ""
570    echo "#####################################################################"
571    echo "# LinuxSampler Configuration                                        #"
572    echo "#-------------------------------------------------------------------#"
573    echo "# Assembly Optimizations: ${config_asm}"
574    echo "# Development Mode: ${config_dev_mode}"
575    echo "# Debug Level: ${config_debug_level}"
576    echo "# Use Exceptions in RT Context: ${config_rt_exceptions}"
577    echo "# Preload Samples: ${config_preload_samples}"
578    echo "# Maximum Pitch: ${config_max_pitch} (octaves)"
579    echo "# Maximum Events: ${config_max_events}"
580    echo "# Envelope Bottom Level: ${config_eg_bottom} (linear)"
581    echo "# Envelope Minimum Release Time: ${config_eg_min_release_time} s"
582    echo "# Streams to be refilled per Disk Thread Cycle: ${config_refill_streams}"
583    echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"
584    echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"
585    echo "# Stream Size: ${config_stream_size}"
586    echo "# Maximum Disk Streams: ${config_max_streams}"
587    echo "# Maximum Voices: ${config_max_voices}"
588    echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
589    echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"
590    echo "# Filter Update Steps: ${config_filter_update_steps}"
591    echo "# Force Filter Usage: ${config_force_filter}"
592    echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"
593    echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"
594    echo "# Override Filter Cutoff Controller: ${config_override_cutoff_ctrl}"
595    echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}"
596    echo "# Override Filter Type: ${config_override_filter_type}"
597    echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
598    echo "#-------------------------------------------------------------------#"
599    echo "# Read './configure --help' or file 'configure.in' for details.     #"
600    echo "#####################################################################"
601    echo ""
602    echo "Good. Now type 'make' to compile, followed by 'make install' as root."
603    echo ""

Legend:
Removed from v.124  
changed lines
  Added in v.617

  ViewVC Help
Powered by ViewVC