/[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 738 by schoenebeck, Tue Aug 16 17:14:25 2005 UTC revision 1876 by schoenebeck, Fri Mar 27 12:16:12 2009 UTC
# Line 4  AC_INIT(configure.in) Line 4  AC_INIT(configure.in)
4  # LinuxSampler's / liblinuxsampler's "official" release version:  # LinuxSampler's / liblinuxsampler's "official" release version:
5    
6  LINUXSAMPLER_RELEASE_MAJOR=0  LINUXSAMPLER_RELEASE_MAJOR=0
7  LINUXSAMPLER_RELEASE_MINOR=3  LINUXSAMPLER_RELEASE_MINOR=5
8  LINUXSAMPLER_RELEASE_BUILD=3  LINUXSAMPLER_RELEASE_BUILD=1.12cvs
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
# Line 24  LINUXSAMPLER_RELEASE_BUILD=3 Line 24  LINUXSAMPLER_RELEASE_BUILD=3
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=0  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:
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  AM_PROG_LIBTOOL
44    
45  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
# Line 43  AC_SUBST(target_cpu) Line 54  AC_SUBST(target_cpu)
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  # General Checks
# Line 50  AC_SUBST(target_vendor) Line 62  AC_SUBST(target_vendor)
62  AC_MSG_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    *)    *)
# Line 59  esac Line 71  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  # determine the right gcc switch for CPU specific optimizations
74    # (only if the user did not provide one)
75  CXX_CPU_SWITCH=  CXX_CPU_SWITCH=
76  if test "$def_arch_x86" = 1; then  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then
77    CXX_CPU_SWITCH="-march=$target_cpu"    if test "$def_arch_x86" = 1 -a "$target_cpu" != "x86_64"; then
78  elif test "$target_cpu" = "powerpc"; then      CXX_CPU_SWITCH="-march=$target_cpu"
79    CXX_CPU_SWITCH="-arch=$target_cpu"    elif test "$target_cpu" = "ppc"; then
80        CXX_CPU_SWITCH="-arch=$target_cpu"
81      fi
82  fi  fi
83  AC_SUBST([CXX_CPU_SWITCH])  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
95  AC_LANG_C  AC_LANG_C
# Line 89  have_unix98="no" Line 112  have_unix98="no"
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
# Line 99  if test "$have_unix98" = "no"; then Line 122  if test "$have_unix98" = "no"; then
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    config_have_alsa="no"
260  echo -n "checking Alsa version... "  if test $have_alsa = "1"; then
261  AC_LANG_SAVE      config_have_alsa="yes"
262  AC_LANG_C  fi
 AC_TRY_RUN([  
 #include <alsa/asoundlib.h>  
 void main(void) {  
 /* ensure backward compatibility */  
 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)  
 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR  
 #endif  
 exit(SND_LIB_MAJOR);  
 }  
 ],  
 alsa_major=0,  
 alsa_major=$?,  
 alsa_major=0  
 )  
 AC_TRY_RUN([  
 #include <alsa/asoundlib.h>  
 void main(void) {  
 /* ensure backward compatibility */  
 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)  
 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR  
 #endif  
 exit(SND_LIB_MINOR);  
 }  
 ],  
 alsa_minor=0,  
 alsa_minor=$?,  
 alsa_minor=0  
 )  
 AC_TRY_RUN([  
 #include <alsa/asoundlib.h>  
 void main(void) {  
 /* ensure backward compatibility */  
 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)  
 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR  
 #endif  
 exit(SND_LIB_SUBMINOR);  
 }  
 ],  
 alsa_subminor=0,  
 alsa_subminor=$?,  
 alsa_subminor=0  
 )  
 AC_LANG_RESTORE  
 echo "$alsa_major.$alsa_minor.$alsa_subminor";  
 AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_major,[Define to the major version number of your Alsa installation.])  
 AC_DEFINE_UNQUOTED(ALSA_MINOR,$alsa_minor,[Define to the minor version number of your Alsa installation.])  
 AC_DEFINE_UNQUOTED(ALSA_SUBMINOR,$alsa_subminor,[Define to the subminor version number of your Alsa installation.])  
263    
264  # JACK  # JACK
265  PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false)  AC_ARG_ENABLE(jack-driver,
266  AC_SUBST(JACK_LIBS)    [  --disable-jack-driver
267  AC_SUBST(JACK_CFLAGS)                            Disable support for the Jack Audio Connection Kit
268  if test $HAVE_JACK = false; then                            (JACK).],
269      HAVE_JACK=0;    [config_jack_driver="$enableval"],
270  else    [config_jack_driver="yes"]
271      HAVE_JACK=1  )
272      have_audio_output_driver="true";  have_jack=0
273      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)  if test "$config_jack_driver" = "yes"; then
274        PKG_CHECK_MODULES(JACK, jack, have_jack=1, have_jack=0)
275        if test $have_jack = "1"; then
276            AC_SUBST(JACK_LIBS)
277            AC_SUBST(JACK_CFLAGS)
278            linuxsampler_save_LIBS=$LIBS
279            LIBS="$JACK_LIBS $LIBS"
280            AC_CHECK_FUNCS(jack_client_name_size jack_client_open)
281            LIBS=$linuxsampler_save_LIBS
282            have_audio_output_driver="true";
283        fi
284    else
285        echo "JACK support disabled by configure script parameter"
286    fi
287    AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
288    AC_DEFINE_UNQUOTED(HAVE_JACK,$have_jack,[Define to 1 if you have JACK installed.])
289    config_have_jack="no"
290    if test $have_jack = "1"; then
291        config_have_jack="yes"
292    fi
293    
294    # JACK MIDI
295    have_jack_midi=0
296    if test $have_jack = "1"; then
297        linuxsampler_save_CFLAGS=$CFLAGS
298        linuxsampler_save_LIBS=$LIBS
299        CFLAGS="$JACK_CFLAGS $CFLAGS"
300        LIBS="$JACK_LIBS $LIBS"
301        AC_CHECK_HEADER(jack/midiport.h, have_jack_midi=1, have_jack_midi=0)
302        if test $have_jack_midi = "1"; then
303            AC_CHECK_FUNCS(jack_midi_get_event_count)
304            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jack/midiport.h>]], [[
305                jack_midi_clear_buffer(0, 0);
306            ]])], [AC_DEFINE(JACK_MIDI_FUNCS_NEED_NFRAMES, 1,
307                      [Define to 1 if you have the old jack midi functions that need an nframes argument.])])
308            have_midi_input_driver="true"
309        fi
310        CFLAGS=$linuxsampler_save_CFLAGS
311        LIBS=$linuxsampler_save_LIBS
312    fi
313    AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")
314    AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,
315                       [Define to 1 if you have JACK with MIDI support installed.])
316    config_have_jack_midi="no"
317    if test $have_jack_midi = "1"; then
318        config_have_jack_midi="yes"
319    fi
320    
321    # ARTS
322    AC_ARG_ENABLE(arts-driver,
323      [  --disable-arts-driver
324                              Disable support for the Analogue Realtime System
325                              (aRts).],
326      [config_arts_driver="$enableval"],
327      [config_arts_driver="yes"]
328    )
329    have_arts=0
330    if test "$config_arts_driver" = "yes"; then
331        m4_ifdef([m4_include(m4/arts.m4)],,
332                 [sinclude([m4/arts.m4])])
333        AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0)
334        if test "$have_arts" = "1"; then
335            have_audio_output_driver="true"
336        fi
337    else
338        echo "ARTS support disabled by configure script parameter"
339    fi
340    AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
341    AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])
342    config_have_arts="no"
343    if test $have_arts = "1"; then
344        config_have_arts="yes"
345    fi
346    
347    # ASIO AUDIO (Win32)
348    AC_ARG_ENABLE(asiosdk-dir,
349      [  --enable-asiosdk-dir
350                              Directory where the ASIO SDK is located, this automatically
351                              enables the compilation of the ASIO audio output driver.],
352      [config_asiosdk_dir="${enableval}"],
353      [config_asiosdk_dir="."]
354    )
355    AC_SUBST(config_asiosdk_dir)
356    
357    AC_ARG_ENABLE(asio-driver,
358      [  --disable-asio-driver
359                              Disable support for the Windows ASIO driver.],
360      [config_asio_driver="$enableval"],
361      [config_asio_driver="yes"]
362    )
363    have_asio=0
364    ASIOSDK_BASEDIR=
365    if test "$config_asio_driver" = "yes"; then
366        asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h
367        echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...."
368        if test -e $asiosdk_headerfile ; then
369            echo yes
370            have_asio=1
371            ASIOSDK_BASEDIR="$config_asiosdk_dir"
372        else
373            echo no
374            have_asio=0
375        fi
376        if test "$have_asio" = "1"; then
377            have_audio_output_driver="true"
378        fi
379    else
380        echo "Windows ASIO support disabled by configure script parameter"
381    fi
382    AC_SUBST(ASIOSDK_BASEDIR)
383    AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")
384    AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.])
385    config_have_asio="no"
386    if test $have_asio = "1"; then
387        config_have_asio="yes"
388  fi  fi
 AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)  
 AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.])  
389    
390  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
391  AC_CHECK_HEADER(MidiShare.h,  AC_ARG_ENABLE(midishare-driver,
392      AC_CHECK_LIB(MidiShare, MidiCountEvs,    [  --disable-midishare-driver
393                              have_midishare=1,                            Disable support for the MidiShare system.],
394                              have_midishare=0    [config_midishare_driver="$enableval"],
395                  )    [config_midishare_driver="yes"]
396                  ,  )
397                  have_midishare=0  have_midishare=0
398  )  if test "$config_midishare_driver" = "yes"; then
399  if test "$have_midishare" = "1"; then      AC_CHECK_HEADER(MidiShare.h,
400      have_midi_input_driver="true"          AC_CHECK_LIB(MidiShare, MidiCountEvs,
401                                    have_midishare=1,
402                                    have_midishare=0
403                        )
404                        ,
405                        have_midishare=0
406        )
407        if test "$have_midishare" = "1"; then
408            have_midi_input_driver="true"
409        fi
410    else
411        echo "MidiShare support disabled by configure script parameter"
412  fi  fi
413  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")
414  AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_midishare,[Define to 1 if you have MidiShare installed.])  AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_midishare,[Define to 1 if you have MidiShare installed.])
415    config_have_midishare="no"
416    if test $have_midishare = "1"; then
417        config_have_midishare="yes"
418    fi
419    
420  # CoreMIDI (OS X)  # CoreMIDI (OS X)
421  AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h,  AC_ARG_ENABLE(coremidi-driver,
422                  have_coremidi=1,    [  --disable-coremidi-driver
423                  have_coremidi=0                            Disable support for the Apple CoreMIDI system.],
424  )    [config_coremidi_driver="$enableval"],
425  if test "$have_coremidi" = "1"; then    [config_coremidi_driver="yes"]
426      have_midi_input_driver="true"  )
427    have_coremidi=0
428    if test "$config_coremidi_driver" = "yes"; then
429        AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h,
430            have_coremidi=1,
431            have_coremidi=0
432        )
433        if test "$have_coremidi" = "1"; then
434            have_midi_input_driver="true"
435        fi
436    else
437        echo "CoreMIDI support disabled by configure script parameter"
438  fi  fi
439  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
440  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.])
441    config_have_coremidi="no"
442    if test $have_coremidi = "1"; then
443        config_have_coremidi="yes"
444    fi
445    
446    # CoreAudio (OS X)
447    AC_ARG_ENABLE(coreaudio-driver,
448      [  --disable-coreaudio-driver
449                              Disable support for the Apple CoreAudio system.],
450      [config_coreaudio_driver="$enableval"],
451      [config_coreaudio_driver="yes"]
452    )
453    have_coreaudio=0
454    if test "$config_coreaudio_driver" = "yes"; then
455        AC_CHECK_HEADER(CoreAudio/CoreAudio.h,
456            have_coreaudio=1,
457            have_coreaudio=0
458        )
459        if test "$have_coreaudio" = "1"; then
460            have_audio_output_driver="true"
461        fi
462    else
463        echo "CoreAudio support disabled by configure script parameter"
464    fi
465    AM_CONDITIONAL(HAVE_COREAUDIO, test $have_coreaudio = "1")
466    AC_DEFINE_UNQUOTED(HAVE_COREAUDIO,$have_coreaudio,[Define to 1 if you have CoreAudio installed.])
467    config_have_coreaudio="no"
468    if test $have_coreaudio = "1"; then
469        config_have_coreaudio="yes"
470    fi
471    
472    # MME MIDI (Win32)
473    AC_ARG_ENABLE(mmemidi-driver,
474      [  --disable-mmemidi-driver
475                              Disable support for the Windows MME MIDI system.],
476      [config_mmemidi_driver="$enableval"],
477      [config_mmemidi_driver="yes"]
478    )
479    have_mmemidi=0
480    if test "$config_mmemidi_driver" = "yes"; then
481        AC_CHECK_HEADERS(mmsystem.h,
482            have_mmemidi=1,
483            have_mmemidi=0
484        )
485        if test "$have_mmemidi" = "1"; then
486            have_midi_input_driver="true"
487        fi
488    else
489        echo "MME MIDI support disabled by configure script parameter"
490    fi
491    AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")
492    AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])
493    config_have_mme="no"
494    if test $have_mmemidi = "1"; then
495        config_have_mme="yes"
496    fi
497    
498    # DSSI
499    AC_CHECK_HEADERS(dssi.h,
500            config_have_dssi="yes",
501            config_have_dssi="no")
502    AM_CONDITIONAL(HAVE_DSSI, test $config_have_dssi = "yes")
503    
504    # LV2
505    PKG_CHECK_MODULES(LV2, lv2core, config_have_lv2="yes", config_have_lv2="no")
506    if test $config_have_lv2 = "no"; then
507        AC_CHECK_HEADER(lv2.h, config_have_lv2="yes", config_have_lv2="no")
508    fi
509    AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes")
510    
511    # VST
512    AC_ARG_ENABLE(vstsdk-dir,
513      [  --enable-vstsdk-dir
514                              Directory where the VST SDK is located.
515                              This automatically enables the compilation
516                              of the VST plugin.],
517      [VSTSDK_DIR="${enableval}"],
518      [VSTSDK_DIR=]
519    )
520    AC_SUBST(VSTSDK_DIR)
521    AM_CONDITIONAL(HAVE_VST, test "x$VSTSDK_DIR" != "x")
522    config_have_vst="no"
523    if test "x$VSTSDK_DIR" != "x"; then
524        config_have_vst="yes"
525    fi
526    
527    # AU
528    AC_CHECK_HEADERS(AudioUnit/AudioUnit.h,
529            config_have_au="yes",
530            config_have_au="no")
531    AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes")
532    AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "")
533    
534    
535    # have we found at least one MIDI input and one audio output driver ?
536    if test "$have_midi_input_driver" = "false"; then
537        echo "No supported MIDI input system found!"
538        echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
539        echo "ALSA, JACK, MIDIShare, CoreMIDI, MME."
540        echo "If you think you have one of those available on your system, make sure you"
541        echo "also have the respective development (header) files installed."
542        exit -1;
543    fi
544    if test "$have_audio_output_driver" = "false"; then
545        echo "No supported audio output system found!"
546        echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output"
547        echo "driver at the moment!"
548        exit -1;
549    fi
550    
551    
552    
553    ###########################################################################
554    # Checks for various DLL libraries
555    
556  # Check presence of libgig  # Check presence of libgig
557  libgig_version="2.0.2"  libgig_version="3.2.1"
558  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)
559  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
560      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 224  fi Line 566  fi
566  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
567  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
568    
569  # SQLITE3  # Instruments DB feature (requires SQLite 3.3)
570  PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false)  AC_ARG_ENABLE(instruments-db,
571  AC_SUBST(SQLITE3_LIBS)    [  --disable-instruments-db
572  AC_SUBST(SQLITE3_CFLAGS)                            Disable compilation of the sampler's instruments
573  if test $HAVE_SQLITE3 = false; then                            database feature. You need to have SQLite 3.3
574      HAVE_SQLITE3=0;                            or younger installed for this feature.],
575      echo "no, support for instrument DB will be disabled!"    [config_instruments_db="$enableval"],
576      [config_instruments_db="yes"]
577    )
578    HAVE_SQLITE3=0;
579    if test "$config_instruments_db" = "yes"; then
580        # Check presence of sqlite3
581        sqlite_version="3.3"
582        PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false)
583        AC_SUBST(SQLITE3_LIBS)
584        AC_SUBST(SQLITE3_CFLAGS)
585        if test $HAVE_SQLITE3 = false; then
586            HAVE_SQLITE3=0
587            config_instruments_db="no"
588            echo "*** Required sqlite version not found!"
589            echo "*** You need to have sqlite version ${sqlite_version} or higher"
590            echo "*** for instruments database support to be enabled."
591            echo "*** Support for instruments DB will be disabled!"
592        else
593            HAVE_SQLITE3=1
594        fi
595  else  else
596      HAVE_SQLITE3=1      echo "Instruments DB feature disabled by configure script parameter"
     echo "yes"  
597  fi  fi
598  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)
599  AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you have SQLITE3 installed.])  AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you want the instruments DB feature and have SQLITE3 installed.])
600    
 if test "$have_midi_input_driver" = "false"; then  
     echo "No supported MIDI input system found!"  
     echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"  
     echo "ALSA, MIDIShare, CoreMIDI."  
     echo "If you think you have one of those available on your system, make sure you"  
     echo "also have the respective development (header) files installed."  
     exit -1;  
 fi  
 if test "$have_audio_output_driver" = "false"; then  
     echo "No supported audio output system found!"  
     echo "Sorry, LinuxSampler only supports ALSA and JACK as audio output driver at the moment!"  
     exit -1;  
 fi  
601    
602    
603  ###########################################################################  ###########################################################################
# Line 259  fi Line 606  fi
606  # TODO: should we use AC_ARG_VAR(variable, description) instead?  # TODO: should we use AC_ARG_VAR(variable, description) instead?
607    
608  AC_ARG_ENABLE(asm,  AC_ARG_ENABLE(asm,
609    [  --enable-asm    [  --disable-asm
610                            Enable hand-crafted assembly optimizations                            Enable hand-crafted assembly optimizations
611                            (default=off). LinuxSampler provides CPU specific                            (default=on). LinuxSampler provides CPU specific
612                            assembly optimizations for the most important                            assembly optimizations. This is currently limited
613                            synthesis algorithms. This is currently disabled                            to just enter a fast (denormal) FPU mode on x86
614                            by default since current asm code is broken.],                            platforms. There are currently no synthesis core
615    [config_asm="yes"],                            assembly optimizations anymore since LS 0.4.0],
616    [config_asm="no"]    [config_asm="$enableval"],
617      [config_asm="yes"]
618  )  )
619  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
620    AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable hand-crafted asm optimizations.])    AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable asm optimizations.])
621  fi  fi
622    
623  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
624    [  --disable-dev-mode    [  --enable-dev-mode
625                            Disable development mode (default=on). In that mode                            Enable development mode (default=off). In that mode
626                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
627                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
628                            efficiency a bit],                            efficiency a bit],
629    [config_dev_mode="no"],    [config_dev_mode="$enableval"],
630    [config_dev_mode="yes"]    [config_dev_mode="no"]
631  )  )
632  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
633    AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.])    AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.])
# Line 306  AC_ARG_ENABLE(rt-exceptions, Line 654  AC_ARG_ENABLE(rt-exceptions,
654                            context as well. Otherwise if disabled                            context as well. Otherwise if disabled
655                            segmentation faults will be forced by the                            segmentation faults will be forced by the
656                            application on critical errors.],                            application on critical errors.],
657    [config_rt_exceptions="yes"],    [config_rt_exceptions="$enableval"],
658    [config_rt_exceptions="no"]    [config_rt_exceptions="no"]
659  )  )
660  if test "$config_rt_exceptions" = "yes"; then  if test "$config_rt_exceptions" = "yes"; then
661    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.])
662  fi  fi
663    
664    AC_ARG_ENABLE(pthread-testcancel,
665      [  --enable-pthread-testcancel
666                              Enable pthread_testcancel() calls and avoid asynchronous
667                              cancel of pthreads (default=no).],
668      [config_pthread_testcancel="$enableval"],
669      [config_pthread_testcancel="no"]
670    )
671    if test "$config_pthread_testcancel" = "yes"; then
672      AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])
673    fi
674    
675  AC_ARG_ENABLE(preload-samples,  AC_ARG_ENABLE(preload-samples,
676    [  --enable-preload-samples    [  --enable-preload-samples
677                            Due to seeking and latency issues with hard drives                            Due to seeking and latency issues with hard drives
# Line 418  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_ Line 777  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_
777    
778  AC_ARG_ENABLE(max-streams,  AC_ARG_ENABLE(max-streams,
779    [  --enable-max-streams    [  --enable-max-streams
780                            Maximum amount of disk streams (default=90). This                            Initial maximum amount of disk streams
781                            value should always be higher than the maximum                            (default=90). This value can be changed at
782                            amount of voices.],                            runtime. It should always be higher than the
783                              maximum amount of voices.],
784    [config_max_streams="${enableval}"],    [config_max_streams="${enableval}"],
785    [config_max_streams="90"]    [config_max_streams="90"]
786  )  )
787  AC_DEFINE_UNQUOTED(CONFIG_MAX_STREAMS, $config_max_streams, [Define max. streams.])  AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_MAX_STREAMS, $config_max_streams, [Define initial max. streams.])
788    
789  AC_ARG_ENABLE(max-voices,  AC_ARG_ENABLE(max-voices,
790    [  --enable-max-voices    [  --enable-max-voices
791                            Maximum amount of voices (default=64). This value                            Initial maximum amount of voices (default=64).
792                            should always be lower than the maximum amount of                            This value can be changed at runtime. It should
793                            disk streams.],                            always be lower than the maximum amount of disk
794                              streams.],
795    [config_max_voices="${enableval}"],    [config_max_voices="${enableval}"],
796    [config_max_voices="64"]    [config_max_voices="64"]
797  )  )
798  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])  AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_MAX_VOICES, $config_max_voices, [Define initial max. voices.])
799    
800  AC_ARG_ENABLE(subfragment-size,  AC_ARG_ENABLE(subfragment-size,
801    [  --enable-subfragment-size    [  --enable-subfragment-size
# Line 451  AC_ARG_ENABLE(subfragment-size, Line 812  AC_ARG_ENABLE(subfragment-size,
812  )  )
813  AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).])  AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).])
814    
815    AC_ARG_ENABLE(global-attenuation-default,
816      [  --enable-global-attenuation-default
817                              To prevent clipping all samples will be lowered
818                              in amplitude by this given default factor (can
819                              be overridden at runtime).
820                              (default=0.35)],
821      [config_global_attenuation_default="${enableval}"],
822      [config_global_attenuation_default="0.35"]
823    )
824    AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION_DEFAULT, $config_global_attenuation_default, [Define default global volume attenuation (as floating point factor).])
825    
826  AC_ARG_ENABLE(voice-steal-algo,  AC_ARG_ENABLE(voice-steal-algo,
827    [  --enable-voice-steal-algo    [  --enable-voice-steal-algo
828                            Voice stealing algorithm to be used. Currently                            Voice stealing algorithm to be used. Currently
# Line 489  AC_ARG_ENABLE(force-filter, Line 861  AC_ARG_ENABLE(force-filter,
861                            If enabled will force filter to be used even if                            If enabled will force filter to be used even if
862                            no usage was define in instrument patch files.                            no usage was define in instrument patch files.
863                            (default=no).],                            (default=no).],
864    [config_force_filter="yes"],    [config_force_filter="$enableval"],
865    [config_force_filter="no"]    [config_force_filter="no"]
866  )  )
867  if test "$config_force_filter" = "yes"; then  if test "$config_force_filter" = "yes"; then
# Line 579  AC_ARG_ENABLE(gs-checksum, Line 951  AC_ARG_ENABLE(gs-checksum,
951                            messages which do not provide a correct checksum                            messages which do not provide a correct checksum
952                            will be ignored. This is disabled by default as                            will be ignored. This is disabled by default as
953                            not all devices honor GS checksums.],                            not all devices honor GS checksums.],
954    [config_assert_gs_sysex_checksum="yes"],    [config_assert_gs_sysex_checksum="$enableval"],
955    [config_assert_gs_sysex_checksum="no"]    [config_assert_gs_sysex_checksum="no"]
956  )  )
957  if test "config_assert_gs_sysex_checksum" = "yes"; then  if test "config_assert_gs_sysex_checksum" = "yes"; then
958    AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.])    AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.])
959  fi  fi
960    
961    AC_ARG_ENABLE(portamento-time-min,
962      [  --enable-portamento-time-min
963                              Minimum Portamento time in seconds
964                              (default=0.1).],
965      [config_portamento_time_min="${enableval}"],
966      [config_portamento_time_min="0.1"]
967    )
968    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MIN, $config_portamento_time_min, [Define min. portamento time.])
969    
970    AC_ARG_ENABLE(portamento-time-max,
971      [  --enable-portamento-time-max
972                              Maximum Portamento time in seconds
973                              (default=32).],
974      [config_portamento_time_max="${enableval}"],
975      [config_portamento_time_max="32"]
976    )
977    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MAX, $config_portamento_time_max, [Define max. portamento time.])
978    
979    AC_ARG_ENABLE(portamento-time-default,
980      [  --enable-portamento-time-default
981                              Default Portamento time in seconds
982                              (default=1).],
983      [config_portamento_time_default="${enableval}"],
984      [config_portamento_time_default="1"]
985    )
986    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_DEFAULT, $config_portamento_time_default, [Define default portamento time.])
987    
988  AC_ARG_ENABLE(signed-triang-algo,  AC_ARG_ENABLE(signed-triang-algo,
989    [  --enable-signed-triang-algo    [  --enable-signed-triang-algo
990                            Signed triangular wave algorithm to be used (e.g. for LFOs).                            Signed triangular wave algorithm to be used (e.g. for LFOs).
# Line 598  AC_ARG_ENABLE(signed-triang-algo, Line 997  AC_ARG_ENABLE(signed-triang-algo,
997                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
998                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
999                                perform better than integer math as it avoids                                perform better than integer math as it avoids
1000                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
1001                              diharmonic:                              diharmonic:
1002                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
1003                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 633  AC_ARG_ENABLE(unsigned-triang-algo, Line 1031  AC_ARG_ENABLE(unsigned-triang-algo,
1031                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
1032                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
1033                                perform better than integer math as it avoids                                perform better than integer math as it avoids
1034                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
1035                              diharmonic:                              diharmonic:
1036                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
1037                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 665  AC_ARG_ENABLE(process-muted-channels, Line 1062  AC_ARG_ENABLE(process-muted-channels,
1062                            will not discard notes, triggered in mute mode,                            will not discard notes, triggered in mute mode,
1063                            when the channel is unmuted. But also will reduce                            when the channel is unmuted. But also will reduce
1064                            the efficiency.],                            the efficiency.],
1065    [config_process_muted_channels="yes"],    [config_process_muted_channels="$enableval"],
1066    [config_process_muted_channels="no"]    [config_process_muted_channels="no"]
1067  )  )
1068  if test "$config_process_muted_channels" = "yes"; then  if test "$config_process_muted_channels" = "yes"; then
1069    AC_DEFINE_UNQUOTED(CONFIG_PROCESS_MUTED_CHANNELS, 1, [Define to 1 if you want to enable processing of muted channels.])    AC_DEFINE_UNQUOTED(CONFIG_PROCESS_MUTED_CHANNELS, 1, [Define to 1 if you want to enable processing of muted channels.])
1070  fi  fi
1071    
1072    AC_ARG_ENABLE(process-all-notes-off,
1073      [  --disable-process-all-notes-off
1074                              Disable interpretation of All-Notes-Off MIDI
1075                              messages (default=on). By default LS will release
1076                              all voices whenever it receives an All-Notes-Off
1077                              MIDI message. You can disable this behavior, so
1078                              that LS simply ignores such messages.],
1079      [config_process_all_notes_off="$enableval"],
1080      [config_process_all_notes_off="yes"]
1081    )
1082    if test "$config_process_all_notes_off" = "yes"; then
1083      AC_DEFINE_UNQUOTED(CONFIG_PROCESS_ALL_NOTES_OFF, 1, [Define to 1 if you want to enable processing of All-Notes-Off MIDI messages.])
1084    fi
1085    
1086    AC_ARG_ENABLE(interpolate-volume,
1087      [  --disable-interpolate-volume
1088                              Disable interpolation of volume modulation
1089                              (default=on). With this enabled, the volume changes
1090                              generated by for example the envelope generator
1091                              will be smoother, minimizing the risk for audio
1092                              clicks. Disable it to reduce CPU usage.],
1093      [config_interpolate_volume="$enableval"],
1094      [config_interpolate_volume="yes"]
1095    )
1096    if test "$config_interpolate_volume" = "yes"; then
1097      AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])
1098    fi
1099    
1100    AC_ARG_ENABLE(master-volume-sysex-by-port,
1101      [  --enable-master-volume-sysex-by-port
1102                              Whether global volume sysex message should be
1103                              applied globally to the whole sampler or only to
1104                              the sampler channels connected to the same MIDI
1105                              input port on which the sysex message arrived on.
1106                              By default global volume sysex messages apply
1107                              globally to the whole sampler, since many MIDI
1108                              devices behave that way.],
1109      [config_master_volume_sysex_by_port="$enableval"],
1110      [config_master_volume_sysex_by_port="no"]
1111    )
1112    if test "$config_master_volume_sysex_by_port" = "yes"; then
1113      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.])
1114    fi
1115    
1116    AC_ARG_ENABLE(plugin-dir,
1117      [  --enable-plugin-dir
1118                              Directory where the sampler shall look for potential plugins,
1119                              that is 3rd party shared libraries that should be loaded by
1120                              the sampler on startup. By default the sampler will search
1121                              for plugins in the subdirectory "plugins" below its own
1122                              library directory.
1123                              (i.e. /usr/local/lib/linuxsampler/plugins)],
1124      [config_plugin_dir="${enableval}"],
1125      [config_plugin_dir="${libdir}/linuxsampler/plugins"]
1126    )
1127    AC_SUBST(config_plugin_dir)
1128    
1129    AC_ARG_ENABLE(default-instruments-db-location,
1130      [  --enable-default-instruments-db-location
1131                              Only when instruments DB feature is enabled: file name
1132                              which shall be taken as default location of the
1133                              instruments DB file. This location can still be
1134                              overridden at runtime with a command line switch.
1135                              (default: /var/lib/linuxsampler/instruments.db)],
1136      [config_default_instruments_db_file="${enableval}"],
1137      [config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db"]
1138    )
1139    AC_DEFINE_UNQUOTED(
1140        CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION,
1141        "$config_default_instruments_db_file",
1142        [Only when instruments DB feature is enabled: default location of the DB file.]
1143    )
1144    AC_SUBST(config_default_instruments_db_file)
1145    
1146    
1147  ###########################################################################  ###########################################################################
1148  # Automatic Benchmarks (to detect the best algorithms for the system)  # Automatic Benchmarks (to detect the best algorithms for the system)
# Line 706  if test "$config_signed_triang_algo" = " Line 1177  if test "$config_signed_triang_algo" = "
1177          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
1178          exit -1;          exit -1;
1179      fi      fi
1180    else
1181        case "$config_signed_triang_algo" in
1182            intmath)
1183                triang_signed=2 ;;
1184            diharmonic)
1185                triang_signed=3 ;;
1186            intmathabs)
1187                triang_signed=5 ;;
1188        esac
1189  fi  fi
1190  AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.])  AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.])
1191    
# Line 737  if test "$config_unsigned_triang_algo" = Line 1217  if test "$config_unsigned_triang_algo" =
1217          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
1218          exit -1;          exit -1;
1219      fi      fi
1220    else
1221        case "$config_unsigned_triang_algo" in
1222            intmath)
1223                triang_unsigned=2 ;;
1224            diharmonic)
1225                triang_unsigned=3 ;;
1226            intmathabs)
1227                triang_unsigned=5 ;;
1228        esac
1229  fi  fi
1230  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.])  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.])
1231    
# Line 750  AM_CONFIG_HEADER(config.h) Line 1239  AM_CONFIG_HEADER(config.h)
1239  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD")  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD")
1240    
1241  AC_LANG_CPLUSPLUS  AC_LANG_CPLUSPLUS
 AC_PROG_CXX  
1242    
1243  # some gcc 4.0 versions need -msse for SSE register allocations  # some gcc 4.0 versions need -msse for SSE register allocations
1244  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
# Line 768  AC_OUTPUT( \ Line 1256  AC_OUTPUT( \
1256      man/Makefile \      man/Makefile \
1257      man/linuxsampler.1 \      man/linuxsampler.1 \
1258      src/Makefile \      src/Makefile \
1259        src/db/Makefile \
1260      src/network/Makefile \      src/network/Makefile \
1261      src/engines/Makefile \      src/engines/Makefile \
1262      src/engines/gig/Makefile \      src/engines/gig/Makefile \
1263      src/engines/common/Makefile \      src/engines/common/Makefile \
1264      src/common/Makefile src/lib/Makefile \      src/effects/Makefile \
1265      src/lib/fileloader/Makefile \      src/common/Makefile \
     src/lib/fileloader/libgig/Makefile \  
1266      src/testcases/Makefile \      src/testcases/Makefile \
1267      src/drivers/Makefile \      src/drivers/Makefile \
1268      src/drivers/audio/Makefile \      src/drivers/audio/Makefile \
1269      src/drivers/midi/Makefile \      src/drivers/midi/Makefile \
1270        src/plugins/Makefile \
1271        src/hostplugins/Makefile \
1272        src/hostplugins/dssi/Makefile \
1273        src/hostplugins/lv2/Makefile \
1274        src/hostplugins/vst/Makefile \
1275        src/hostplugins/au/Makefile \
1276      linuxsampler.spec \      linuxsampler.spec \
1277      debian/Makefile \      debian/Makefile \
1278      Artwork/Makefile \      Artwork/Makefile \
1279      scripts/Makefile \      scripts/Makefile \
1280      osx/Makefile \      osx/Makefile \
1281      osx/LinuxSampler.xcode/Makefile \      osx/linuxsampler.xcodeproj/Makefile \
1282      Documentation/Makefile \      Documentation/Makefile \
1283      Documentation/Engines/Makefile \      Documentation/Engines/Makefile \
1284      Documentation/Engines/gig/Makefile \      Documentation/Engines/gig/Makefile \
# Line 792  AC_OUTPUT( \ Line 1286  AC_OUTPUT( \
1286      Doxyfile \      Doxyfile \
1287  )  )
1288    
1289    # resolve all nested variables in '${config_plugin_dir}'
1290    # (merely for providing a human readable summary below)
1291    while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do
1292            config_plugin_dir=`eval echo ${config_plugin_dir}`
1293    done
1294    
1295    
1296  ###########################################################################  ###########################################################################
1297  # Output All Configuration Options  # Output All Configuration Options
# Line 800  echo "" Line 1300  echo ""
1300  echo "#####################################################################"  echo "#####################################################################"
1301  echo "# LinuxSampler Configuration                                        #"  echo "# LinuxSampler Configuration                                        #"
1302  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1303    echo "# Release Version: ${LINUXSAMPLER_RELEASE_MAJOR}.${LINUXSAMPLER_RELEASE_MINOR}.${LINUXSAMPLER_RELEASE_BUILD}"
1304    echo "# LSCP Version: ${LSCP_RELEASE_MAJOR}.${LSCP_RELEASE_MINOR}"
1305    echo "#-------------------------------------------------------------------"
1306  echo "# Assembly Optimizations: ${config_asm}"  echo "# Assembly Optimizations: ${config_asm}"
1307  echo "# Development Mode: ${config_dev_mode}"  echo "# Development Mode: ${config_dev_mode}"
1308  echo "# Debug Level: ${config_debug_level}"  echo "# Debug Level: ${config_debug_level}"
# Line 813  echo "# Streams to be refilled per Disk Line 1316  echo "# Streams to be refilled per Disk
1316  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"
1317  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"
1318  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
1319  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Default Maximum Disk Streams: ${config_max_streams}"
1320  echo "# Maximum Voices: ${config_max_voices}"  echo "# Default Maximum Voices: ${config_max_voices}"
1321  echo "# Default Subfragment Size: ${config_subfragment_size}"  echo "# Default Subfragment Size: ${config_subfragment_size}"
1322    echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"
1323  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
1324  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"
1325  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"
1326  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"
1327    echo "# Min. Portamento Time: ${config_portamento_time_min} s"
1328    echo "# Max. Portamento Time: ${config_portamento_time_max} s"
1329    echo "# Default Portamento Time: ${config_portamento_time_default} s"
1330  echo "# Force Filter Usage: ${config_force_filter}"  echo "# Force Filter Usage: ${config_force_filter}"
1331  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"
1332  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"
# Line 828  echo "# Override Filter Resonance Contro Line 1335  echo "# Override Filter Resonance Contro
1335  echo "# Override Filter Type: ${config_override_filter_type}"  echo "# Override Filter Type: ${config_override_filter_type}"
1336  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
1337  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
1338    echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1339    echo "# Apply global volume SysEx by MIDI port: ${config_master_volume_sysex_by_port}"
1340    echo "# Interpolate Volume: ${config_interpolate_volume}"
1341    echo "# Instruments database support: ${config_instruments_db}"
1342    if test "$config_instruments_db" = "yes"; then
1343    echo "# Instruments DB default location: ${config_default_instruments_db_file}"
1344    fi
1345    echo "# Plugin Path: ${config_plugin_dir}"
1346    echo "#-------------------------------------------------------------------"
1347    echo "# MIDI Input Drivers:"
1348    echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack_midi}, CoreMIDI: ${config_have_coremidi}, MME: ${config_have_mme}, MidiShare: ${config_have_midishare}"
1349    echo "#-------------------------------------------------------------------"
1350    echo "# Audio Output Drivers:"
1351    echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack}, ARTS: ${config_have_arts}, CoreAudio: ${config_have_coreaudio}, ASIO: ${config_have_asio}"
1352    echo "#-------------------------------------------------------------------"
1353    echo "# Building sampler as plugin for following host standards:"
1354    echo "# DSSI: ${config_have_dssi}, LV2: ${config_have_lv2}, VST: ${config_have_vst}, AU: ${config_have_au}"
1355  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1356  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
1357  echo "#####################################################################"  echo "#####################################################################"

Legend:
Removed from v.738  
changed lines
  Added in v.1876

  ViewVC Help
Powered by ViewVC