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

Diff of /linuxsampler/trunk/configure.ac

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

revision 840 by persson, Sun Feb 26 13:00:08 2006 UTC revision 1830 by schoenebeck, Sat Jan 31 11:31:41 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=3cvs  LINUXSAMPLER_RELEASE_BUILD=1.9cvs
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=3cvs Line 24  LINUXSAMPLER_RELEASE_BUILD=3cvs
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 62  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x8 Line 74  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x8
74  # (only if the user did not provide one)  # (only if the user did not provide one)
75  CXX_CPU_SWITCH=  CXX_CPU_SWITCH=
76  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then
77    if test "$def_arch_x86" = 1; then    if test "$def_arch_x86" = 1 -a "$target_cpu" != "x86_64"; then
78      CXX_CPU_SWITCH="-march=$target_cpu"      CXX_CPU_SWITCH="-march=$target_cpu"
79    elif test "$target_cpu" = "powerpc"; then    elif test "$target_cpu" = "ppc"; then
80      CXX_CPU_SWITCH="-arch=$target_cpu"      CXX_CPU_SWITCH="-arch=$target_cpu"
81    fi    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 92  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 105  fi Line 125  fi
125  # check for <features.h>  # check for <features.h>
126  AC_CHECK_HEADERS(features.h)  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    
 echo -n "checking Alsa version... "  
 AC_LANG_SAVE  
 AC_LANG_C  
 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.])  
   
260  # JACK  # JACK
261  PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false)  AC_ARG_ENABLE(jack-driver,
262  AC_SUBST(JACK_LIBS)    [  --disable-jack-driver
263  AC_SUBST(JACK_CFLAGS)                            Disable support for the Jack Audio Connection Kit
264  if test $HAVE_JACK = false; then                            (JACK).],
265      HAVE_JACK=0;    [config_jack_driver="$enableval"],
266  else    [config_jack_driver="yes"]
267      HAVE_JACK=1  )
268      have_audio_output_driver="true";  have_jack=0
269      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
270        PKG_CHECK_MODULES(JACK, jack, have_jack=1, have_jack=0)
271        if test $have_jack = "1"; then
272            AC_SUBST(JACK_LIBS)
273            AC_SUBST(JACK_CFLAGS)
274            linuxsampler_save_LIBS=$LIBS
275            LIBS="$JACK_LIBS $LIBS"
276            AC_CHECK_FUNCS(jack_client_name_size jack_client_open)
277            LIBS=$linuxsampler_save_LIBS
278            have_audio_output_driver="true";
279        fi
280    else
281        echo "JACK support disabled by configure script parameter"
282  fi  fi
283  AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
284  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.])
285    
286  # ARTS  # JACK MIDI
287    have_jack_midi=0
288  m4_ifdef([m4_include(m4/arts.m4)],,  if test $have_jack = "1"; then
289          [sinclude([m4/arts.m4])])      linuxsampler_save_CFLAGS=$CFLAGS
290        linuxsampler_save_LIBS=$LIBS
291        CFLAGS="$JACK_CFLAGS $CFLAGS"
292        LIBS="$JACK_LIBS $LIBS"
293        AC_CHECK_HEADER(jack/midiport.h, have_jack_midi=1, have_jack_midi=0)
294        if test $have_jack_midi = "1"; then
295            AC_CHECK_FUNCS(jack_midi_get_event_count)
296            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jack/midiport.h>]], [[
297                jack_midi_clear_buffer(0, 0);
298            ]])], [AC_DEFINE(JACK_MIDI_FUNCS_NEED_NFRAMES, 1,
299                      [Define to 1 if you have the old jack midi functions that need an nframes argument.])])
300            have_midi_input_driver="true"
301        fi
302        CFLAGS=$linuxsampler_save_CFLAGS
303        LIBS=$linuxsampler_save_LIBS
304    fi
305    AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")
306    AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,
307                       [Define to 1 if you have JACK with MIDI support installed.])
308    
309  AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0)  # ARTS
310  if test "$have_arts" = "1"; then  AC_ARG_ENABLE(arts-driver,
311      have_audio_output_driver="true"    [  --disable-arts-driver
312                              Disable support for the Analogue Realtime System
313                              (aRts).],
314      [config_arts_driver="$enableval"],
315      [config_arts_driver="yes"]
316    )
317    have_arts=0
318    if test "$config_arts_driver" = "yes"; then
319        m4_ifdef([m4_include(m4/arts.m4)],,
320                 [sinclude([m4/arts.m4])])
321        AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0)
322        if test "$have_arts" = "1"; then
323            have_audio_output_driver="true"
324        fi
325    else
326        echo "ARTS support disabled by configure script parameter"
327  fi  fi
328  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
329  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])
330    
331    # ASIO AUDIO (Win32)
332    AC_ARG_ENABLE(asiosdk-dir,
333      [  --enable-asiosdk-dir
334                              Directory where the ASIO SDK is located, this automatically
335                              enables the compilation of the ASIO audio output driver.],
336      [config_asiosdk_dir="${enableval}"],
337      [config_asiosdk_dir="."]
338    )
339    AC_SUBST(config_asiosdk_dir)
340    
341    AC_ARG_ENABLE(asio-driver,
342      [  --disable-asio-driver
343                              Disable support for the Windows ASIO driver.],
344      [config_asio_driver="$enableval"],
345      [config_asio_driver="yes"]
346    )
347    have_asio=0
348    ASIOSDK_BASEDIR=
349    if test "$config_asio_driver" = "yes"; then
350        asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h
351        echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...."
352        if test -e $asiosdk_headerfile ; then
353            echo yes
354            have_asio=1
355            ASIOSDK_BASEDIR="$config_asiosdk_dir"
356        else
357            echo no
358            have_asio=0
359        fi
360        if test "$have_asio" = "1"; then
361            have_audio_output_driver="true"
362        fi
363    else
364        echo "Windows ASIO support disabled by configure script parameter"
365    fi
366    AC_SUBST(ASIOSDK_BASEDIR)
367    AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")
368    AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.])
369    
370  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
371  AC_CHECK_HEADER(MidiShare.h,  AC_ARG_ENABLE(midishare-driver,
372      AC_CHECK_LIB(MidiShare, MidiCountEvs,    [  --disable-midishare-driver
373                              have_midishare=1,                            Disable support for the MidiShare system.],
374                              have_midishare=0    [config_midishare_driver="$enableval"],
375                  )    [config_midishare_driver="yes"]
376                  ,  )
377                  have_midishare=0  have_midishare=0
378  )  if test "$config_midishare_driver" = "yes"; then
379  if test "$have_midishare" = "1"; then      AC_CHECK_HEADER(MidiShare.h,
380      have_midi_input_driver="true"          AC_CHECK_LIB(MidiShare, MidiCountEvs,
381                                    have_midishare=1,
382                                    have_midishare=0
383                        )
384                        ,
385                        have_midishare=0
386        )
387        if test "$have_midishare" = "1"; then
388            have_midi_input_driver="true"
389        fi
390    else
391        echo "MidiShare support disabled by configure script parameter"
392  fi  fi
393  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")
394  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.])
395    
396  # CoreMIDI (OS X)  # CoreMIDI (OS X)
397  AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h,  AC_ARG_ENABLE(coremidi-driver,
398                  have_coremidi=1,    [  --disable-coremidi-driver
399                  have_coremidi=0                            Disable support for the Apple CoreMIDI system.],
400  )    [config_coremidi_driver="$enableval"],
401  if test "$have_coremidi" = "1"; then    [config_coremidi_driver="yes"]
402      have_midi_input_driver="true"  )
403    have_coremidi=0
404    if test "$config_coremidi_driver" = "yes"; then
405        AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h,
406            have_coremidi=1,
407            have_coremidi=0
408        )
409        if test "$have_coremidi" = "1"; then
410            have_midi_input_driver="true"
411        fi
412    else
413        echo "CoreMIDI support disabled by configure script parameter"
414  fi  fi
415  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
416  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.])
417    
418  # Check presence of libgig  # CoreAudio (OS X)
419  libgig_version="2.0.2"  AC_ARG_ENABLE(coreaudio-driver,
420  PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false)    [  --disable-coreaudio-driver
421  if test "$HAVE_GIG" = "false"; then                            Disable support for the Apple CoreAudio system.],
422      echo "Required libgig version not found!"    [config_coreaudio_driver="$enableval"],
423      echo "You need to have libgig version ${libgig_version} installed!"    [config_coreaudio_driver="yes"]
424      exit -1;  )
425    have_coreaudio=0
426    if test "$config_coreaudio_driver" = "yes"; then
427        AC_CHECK_HEADER(CoreAudio/CoreAudio.h,
428            have_coreaudio=1,
429            have_coreaudio=0
430        )
431        if test "$have_coreaudio" = "1"; then
432            have_audio_output_driver="true"
433        fi
434  else  else
435      echo "yes, found libgig $libgig_version"      echo "CoreAudio support disabled by configure script parameter"
436  fi  fi
437  AC_SUBST(GIG_CFLAGS)  AM_CONDITIONAL(HAVE_COREAUDIO, test $have_coreaudio = "1")
438  AC_SUBST(GIG_LIBS)  AC_DEFINE_UNQUOTED(HAVE_COREAUDIO,$have_coreaudio,[Define to 1 if you have CoreAudio installed.])
439    
440  # SQLITE3  # MME MIDI (Win32)
441  PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false)  AC_ARG_ENABLE(mmemidi-driver,
442  AC_SUBST(SQLITE3_LIBS)    [  --disable-mmemidi-driver
443  AC_SUBST(SQLITE3_CFLAGS)                            Disable support for the Windows MME MIDI system.],
444  if test $HAVE_SQLITE3 = false; then    [config_mmemidi_driver="$enableval"],
445      HAVE_SQLITE3=0;    [config_mmemidi_driver="yes"]
446      echo "no, support for instrument DB will be disabled!"  )
447    have_mmemidi=0
448    if test "$config_mmemidi_driver" = "yes"; then
449        AC_CHECK_HEADERS(mmsystem.h,
450            have_mmemidi=1,
451            have_mmemidi=0
452        )
453        if test "$have_mmemidi" = "1"; then
454            have_midi_input_driver="true"
455        fi
456  else  else
457      HAVE_SQLITE3=1      echo "MME MIDI support disabled by configure script parameter"
     echo "yes"  
458  fi  fi
459  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)  AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")
460  AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you have SQLITE3 installed.])  AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])
461    
462    
463    # DSSI
464    AC_CHECK_HEADERS(dssi.h,
465            have_dssi=1,
466            have_dssi=0)
467    AM_CONDITIONAL(HAVE_DSSI, test $have_dssi = "1")
468    
469    # LV2
470    PKG_CHECK_MODULES(LV2, lv2core, have_lv2=1, have_lv2=0)
471    if test $have_lv2 = "0"; then
472        AC_CHECK_HEADER(lv2.h, have_lv2=1, have_lv2=0)
473    fi
474    AM_CONDITIONAL(HAVE_LV2, test $have_lv2 = "1")
475    
476    # VST
477    AC_ARG_ENABLE(vstsdk-dir,
478      [  --enable-vstsdk-dir
479                              Directory where the VST SDK is located.
480                              This automatically enables the compilation
481                              of the VST plugin.],
482      [VSTSDK_DIR="${enableval}"],
483      [VSTSDK_DIR=]
484    )
485    AC_SUBST(VSTSDK_DIR)
486    AM_CONDITIONAL(HAVE_VST, test "x$VSTSDK_DIR" != "x")
487    
488    
489    # have we found at least one MIDI input and one audio output driver ?
490  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
491      echo "No supported MIDI input system found!"      echo "No supported MIDI input system found!"
492      echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"      echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
493      echo "ALSA, MIDIShare, CoreMIDI."      echo "ALSA, JACK, MIDIShare, CoreMIDI, MME."
494      echo "If you think you have one of those available on your system, make sure you"      echo "If you think you have one of those available on your system, make sure you"
495      echo "also have the respective development (header) files installed."      echo "also have the respective development (header) files installed."
496      exit -1;      exit -1;
497  fi  fi
498  if test "$have_audio_output_driver" = "false"; then  if test "$have_audio_output_driver" = "false"; then
499      echo "No supported audio output system found!"      echo "No supported audio output system found!"
500      echo "Sorry, LinuxSampler only supports ALSA and JACK as audio output driver at the moment!"      echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output"
501        echo "driver at the moment!"
502      exit -1;      exit -1;
503  fi  fi
504    
505    
506    
507    ###########################################################################
508    # Checks for various DLL libraries
509    
510    # Check presence of libgig
511    libgig_version="3.2.1"
512    PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false)
513    if test "$HAVE_GIG" = "false"; then
514        echo "Required libgig version not found!"
515        echo "You need to have libgig version ${libgig_version} installed!"
516        exit -1;
517    else
518        echo "yes, found libgig $libgig_version"
519    fi
520    AC_SUBST(GIG_CFLAGS)
521    AC_SUBST(GIG_LIBS)
522    
523    # Instruments DB feature (requires SQLite 3.3)
524    AC_ARG_ENABLE(instruments-db,
525      [  --disable-instruments-db
526                              Disable compilation of the sampler's instruments
527                              database feature. You need to have SQLite 3.3
528                              or younger installed for this feature.],
529      [config_instruments_db="$enableval"],
530      [config_instruments_db="yes"]
531    )
532    HAVE_SQLITE3=0;
533    if test "$config_instruments_db" = "yes"; then
534        # Check presence of sqlite3
535        sqlite_version="3.3"
536        PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false)
537        AC_SUBST(SQLITE3_LIBS)
538        AC_SUBST(SQLITE3_CFLAGS)
539        if test $HAVE_SQLITE3 = false; then
540            HAVE_SQLITE3=0
541            config_instruments_db="no"
542            echo "*** Required sqlite version not found!"
543            echo "*** You need to have sqlite version ${sqlite_version} or higher"
544            echo "*** for instruments database support to be enabled."
545            echo "*** Support for instruments DB will be disabled!"
546        else
547            HAVE_SQLITE3=1
548        fi
549    else
550        echo "Instruments DB feature disabled by configure script parameter"
551    fi
552    AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)
553    AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you want the instruments DB feature and have SQLITE3 installed.])
554    
555    
556    
557  ###########################################################################  ###########################################################################
558  # Handle Configuration Options  # Handle Configuration Options
559    
560  # TODO: should we use AC_ARG_VAR(variable, description) instead?  # TODO: should we use AC_ARG_VAR(variable, description) instead?
561    
562  AC_ARG_ENABLE(asm,  AC_ARG_ENABLE(asm,
563    [  --enable-asm    [  --disable-asm
564                            Enable hand-crafted assembly optimizations                            Enable hand-crafted assembly optimizations
565                            (default=off). LinuxSampler provides CPU specific                            (default=on). LinuxSampler provides CPU specific
566                            assembly optimizations for the most important                            assembly optimizations. This is currently limited
567                            synthesis algorithms. This is currently disabled                            to just enter a fast (denormal) FPU mode on x86
568                            by default since current asm code is broken.],                            platforms. There are currently no synthesis core
569    [config_asm="yes"],                            assembly optimizations anymore since LS 0.4.0],
570    [config_asm="no"]    [config_asm="$enableval"],
571      [config_asm="yes"]
572  )  )
573  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
574    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.])
575  fi  fi
576    
577  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
578    [  --disable-dev-mode    [  --enable-dev-mode
579                            Disable development mode (default=on). In that mode                            Enable development mode (default=off). In that mode
580                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
581                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
582                            efficiency a bit],                            efficiency a bit],
583    [config_dev_mode="no"],    [config_dev_mode="$enableval"],
584    [config_dev_mode="yes"]    [config_dev_mode="no"]
585  )  )
586  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
587    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 324  AC_ARG_ENABLE(rt-exceptions, Line 608  AC_ARG_ENABLE(rt-exceptions,
608                            context as well. Otherwise if disabled                            context as well. Otherwise if disabled
609                            segmentation faults will be forced by the                            segmentation faults will be forced by the
610                            application on critical errors.],                            application on critical errors.],
611    [config_rt_exceptions="yes"],    [config_rt_exceptions="$enableval"],
612    [config_rt_exceptions="no"]    [config_rt_exceptions="no"]
613  )  )
614  if test "$config_rt_exceptions" = "yes"; then  if test "$config_rt_exceptions" = "yes"; then
615    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.])
616  fi  fi
617    
618    AC_ARG_ENABLE(pthread-testcancel,
619      [  --enable-pthread-testcancel
620                              Enable pthread_testcancel() calls and avoid asynchronous
621                              cancel of pthreads (default=no).],
622      [config_pthread_testcancel="$enableval"],
623      [config_pthread_testcancel="no"]
624    )
625    if test "$config_pthread_testcancel" = "yes"; then
626      AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])
627    fi
628    
629  AC_ARG_ENABLE(preload-samples,  AC_ARG_ENABLE(preload-samples,
630    [  --enable-preload-samples    [  --enable-preload-samples
631                            Due to seeking and latency issues with hard drives                            Due to seeking and latency issues with hard drives
# Line 436  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_ Line 731  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_
731    
732  AC_ARG_ENABLE(max-streams,  AC_ARG_ENABLE(max-streams,
733    [  --enable-max-streams    [  --enable-max-streams
734                            Maximum amount of disk streams (default=90). This                            Initial maximum amount of disk streams
735                            value should always be higher than the maximum                            (default=90). This value can be changed at
736                            amount of voices.],                            runtime. It should always be higher than the
737                              maximum amount of voices.],
738    [config_max_streams="${enableval}"],    [config_max_streams="${enableval}"],
739    [config_max_streams="90"]    [config_max_streams="90"]
740  )  )
741  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.])
742    
743  AC_ARG_ENABLE(max-voices,  AC_ARG_ENABLE(max-voices,
744    [  --enable-max-voices    [  --enable-max-voices
745                            Maximum amount of voices (default=64). This value                            Initial maximum amount of voices (default=64).
746                            should always be lower than the maximum amount of                            This value can be changed at runtime. It should
747                            disk streams.],                            always be lower than the maximum amount of disk
748                              streams.],
749    [config_max_voices="${enableval}"],    [config_max_voices="${enableval}"],
750    [config_max_voices="64"]    [config_max_voices="64"]
751  )  )
752  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.])
753    
754  AC_ARG_ENABLE(subfragment-size,  AC_ARG_ENABLE(subfragment-size,
755    [  --enable-subfragment-size    [  --enable-subfragment-size
# Line 469  AC_ARG_ENABLE(subfragment-size, Line 766  AC_ARG_ENABLE(subfragment-size,
766  )  )
767  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).])
768    
769  AC_ARG_ENABLE(global-attenuation,  AC_ARG_ENABLE(global-attenuation-default,
770    [  --enable-global-attenuation    [  --enable-global-attenuation-default
771                            To prevent clipping all samples will be lowered                            To prevent clipping all samples will be lowered
772                            in amplitude by this given factor.                            in amplitude by this given default factor (can
773                              be overridden at runtime).
774                            (default=0.35)],                            (default=0.35)],
775    [config_global_attenuation="${enableval}"],    [config_global_attenuation_default="${enableval}"],
776    [config_global_attenuation="0.35"]    [config_global_attenuation_default="0.35"]
777  )  )
778  AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION, $config_global_attenuation, [Define global volume attenuation (as floating point factor).])  AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION_DEFAULT, $config_global_attenuation_default, [Define default global volume attenuation (as floating point factor).])
779    
780  AC_ARG_ENABLE(voice-steal-algo,  AC_ARG_ENABLE(voice-steal-algo,
781    [  --enable-voice-steal-algo    [  --enable-voice-steal-algo
# Line 517  AC_ARG_ENABLE(force-filter, Line 815  AC_ARG_ENABLE(force-filter,
815                            If enabled will force filter to be used even if                            If enabled will force filter to be used even if
816                            no usage was define in instrument patch files.                            no usage was define in instrument patch files.
817                            (default=no).],                            (default=no).],
818    [config_force_filter="yes"],    [config_force_filter="$enableval"],
819    [config_force_filter="no"]    [config_force_filter="no"]
820  )  )
821  if test "$config_force_filter" = "yes"; then  if test "$config_force_filter" = "yes"; then
# Line 607  AC_ARG_ENABLE(gs-checksum, Line 905  AC_ARG_ENABLE(gs-checksum,
905                            messages which do not provide a correct checksum                            messages which do not provide a correct checksum
906                            will be ignored. This is disabled by default as                            will be ignored. This is disabled by default as
907                            not all devices honor GS checksums.],                            not all devices honor GS checksums.],
908    [config_assert_gs_sysex_checksum="yes"],    [config_assert_gs_sysex_checksum="$enableval"],
909    [config_assert_gs_sysex_checksum="no"]    [config_assert_gs_sysex_checksum="no"]
910  )  )
911  if test "config_assert_gs_sysex_checksum" = "yes"; then  if test "config_assert_gs_sysex_checksum" = "yes"; then
# Line 653  AC_ARG_ENABLE(signed-triang-algo, Line 951  AC_ARG_ENABLE(signed-triang-algo,
951                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
952                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
953                                perform better than integer math as it avoids                                perform better than integer math as it avoids
954                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
955                              diharmonic:                              diharmonic:
956                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
957                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 688  AC_ARG_ENABLE(unsigned-triang-algo, Line 985  AC_ARG_ENABLE(unsigned-triang-algo,
985                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
986                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
987                                perform better than integer math as it avoids                                perform better than integer math as it avoids
988                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
989                              diharmonic:                              diharmonic:
990                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
991                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 720  AC_ARG_ENABLE(process-muted-channels, Line 1016  AC_ARG_ENABLE(process-muted-channels,
1016                            will not discard notes, triggered in mute mode,                            will not discard notes, triggered in mute mode,
1017                            when the channel is unmuted. But also will reduce                            when the channel is unmuted. But also will reduce
1018                            the efficiency.],                            the efficiency.],
1019    [config_process_muted_channels="yes"],    [config_process_muted_channels="$enableval"],
1020    [config_process_muted_channels="no"]    [config_process_muted_channels="no"]
1021  )  )
1022  if test "$config_process_muted_channels" = "yes"; then  if test "$config_process_muted_channels" = "yes"; then
1023    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.])
1024  fi  fi
1025    
1026    AC_ARG_ENABLE(process-all-notes-off,
1027      [  --disable-process-all-notes-off
1028                              Disable interpretation of All-Notes-Off MIDI
1029                              messages (default=on). By default LS will release
1030                              all voices whenever it receives an All-Notes-Off
1031                              MIDI message. You can disable this behavior, so
1032                              that LS simply ignores such messages.],
1033      [config_process_all_notes_off="$enableval"],
1034      [config_process_all_notes_off="yes"]
1035    )
1036    if test "$config_process_all_notes_off" = "yes"; then
1037      AC_DEFINE_UNQUOTED(CONFIG_PROCESS_ALL_NOTES_OFF, 1, [Define to 1 if you want to enable processing of All-Notes-Off MIDI messages.])
1038    fi
1039    
1040  AC_ARG_ENABLE(interpolate-volume,  AC_ARG_ENABLE(interpolate-volume,
1041    [  --disable-interpolate-volume    [  --disable-interpolate-volume
1042                            Disable interpolation of volume modulation                            Disable interpolation of volume modulation
# Line 734  AC_ARG_ENABLE(interpolate-volume, Line 1044  AC_ARG_ENABLE(interpolate-volume,
1044                            generated by for example the envelope generator                            generated by for example the envelope generator
1045                            will be smoother, minimizing the risk for audio                            will be smoother, minimizing the risk for audio
1046                            clicks. Disable it to reduce CPU usage.],                            clicks. Disable it to reduce CPU usage.],
1047    [config_interpolate_volume="no"],    [config_interpolate_volume="$enableval"],
1048    [config_interpolate_volume="yes"]    [config_interpolate_volume="yes"]
1049  )  )
1050  if test "$config_interpolate_volume" = "yes"; then  if test "$config_interpolate_volume" = "yes"; then
1051    AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])    AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])
1052  fi  fi
1053    
1054    AC_ARG_ENABLE(master-volume-sysex-by-port,
1055      [  --enable-master-volume-sysex-by-port
1056                              Whether global volume sysex message should be
1057                              applied globally to the whole sampler or only to
1058                              the sampler channels connected to the same MIDI
1059                              input port on which the sysex message arrived on.
1060                              By default global volume sysex messages apply
1061                              globally to the whole sampler, since many MIDI
1062                              devices behave that way.],
1063      [config_master_volume_sysex_by_port="$enableval"],
1064      [config_master_volume_sysex_by_port="no"]
1065    )
1066    if test "$config_master_volume_sysex_by_port" = "yes"; then
1067      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.])
1068    fi
1069    
1070    AC_ARG_ENABLE(plugin-dir,
1071      [  --enable-plugin-dir
1072                              Directory where the sampler shall look for potential plugins,
1073                              that is 3rd party shared libraries that should be loaded by
1074                              the sampler on startup. By default the sampler will search
1075                              for plugins in the subdirectory "plugins" below its own
1076                              library directory.
1077                              (i.e. /usr/local/lib/linuxsampler/plugins)],
1078      [config_plugin_dir="${enableval}"],
1079      [config_plugin_dir="${libdir}/linuxsampler/plugins"]
1080    )
1081    AC_SUBST(config_plugin_dir)
1082    
1083    AC_ARG_ENABLE(default-instruments-db-location,
1084      [  --enable-default-instruments-db-location
1085                              Only when instruments DB feature is enabled: file name
1086                              which shall be taken as default location of the
1087                              instruments DB file. This location can still be
1088                              overridden at runtime with a command line switch.
1089                              (default: /var/lib/linuxsampler/instruments.db)],
1090      [config_default_instruments_db_file="${enableval}"],
1091      [config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db"]
1092    )
1093    AC_DEFINE_UNQUOTED(
1094        CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION,
1095        "$config_default_instruments_db_file",
1096        [Only when instruments DB feature is enabled: default location of the DB file.]
1097    )
1098    AC_SUBST(config_default_instruments_db_file)
1099    
1100    
1101  ###########################################################################  ###########################################################################
1102  # Automatic Benchmarks (to detect the best algorithms for the system)  # Automatic Benchmarks (to detect the best algorithms for the system)
# Line 775  if test "$config_signed_triang_algo" = " Line 1131  if test "$config_signed_triang_algo" = "
1131          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
1132          exit -1;          exit -1;
1133      fi      fi
1134    else
1135        case "$config_signed_triang_algo" in
1136            intmath)
1137                triang_signed=2 ;;
1138            diharmonic)
1139                triang_signed=3 ;;
1140            intmathabs)
1141                triang_signed=5 ;;
1142        esac
1143  fi  fi
1144  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.])
1145    
# Line 806  if test "$config_unsigned_triang_algo" = Line 1171  if test "$config_unsigned_triang_algo" =
1171          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
1172          exit -1;          exit -1;
1173      fi      fi
1174    else
1175        case "$config_unsigned_triang_algo" in
1176            intmath)
1177                triang_unsigned=2 ;;
1178            diharmonic)
1179                triang_unsigned=3 ;;
1180            intmathabs)
1181                triang_unsigned=5 ;;
1182        esac
1183  fi  fi
1184  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.])
1185    
# Line 819  AM_CONFIG_HEADER(config.h) Line 1193  AM_CONFIG_HEADER(config.h)
1193  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")
1194    
1195  AC_LANG_CPLUSPLUS  AC_LANG_CPLUSPLUS
 AC_PROG_CXX  
1196    
1197  # some gcc 4.0 versions need -msse for SSE register allocations  # some gcc 4.0 versions need -msse for SSE register allocations
1198  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
# Line 837  AC_OUTPUT( \ Line 1210  AC_OUTPUT( \
1210      man/Makefile \      man/Makefile \
1211      man/linuxsampler.1 \      man/linuxsampler.1 \
1212      src/Makefile \      src/Makefile \
1213        src/db/Makefile \
1214      src/network/Makefile \      src/network/Makefile \
1215      src/engines/Makefile \      src/engines/Makefile \
1216      src/engines/gig/Makefile \      src/engines/gig/Makefile \
1217      src/engines/common/Makefile \      src/engines/common/Makefile \
1218      src/common/Makefile src/lib/Makefile \      src/effects/Makefile \
1219      src/lib/fileloader/Makefile \      src/common/Makefile \
     src/lib/fileloader/libgig/Makefile \  
1220      src/testcases/Makefile \      src/testcases/Makefile \
1221      src/drivers/Makefile \      src/drivers/Makefile \
1222      src/drivers/audio/Makefile \      src/drivers/audio/Makefile \
1223      src/drivers/midi/Makefile \      src/drivers/midi/Makefile \
1224        src/plugins/Makefile \
1225        src/hostplugins/Makefile \
1226        src/hostplugins/dssi/Makefile \
1227        src/hostplugins/lv2/Makefile \
1228        src/hostplugins/vst/Makefile \
1229      linuxsampler.spec \      linuxsampler.spec \
1230      debian/Makefile \      debian/Makefile \
1231      Artwork/Makefile \      Artwork/Makefile \
1232      scripts/Makefile \      scripts/Makefile \
1233      osx/Makefile \      osx/Makefile \
1234      osx/LinuxSampler.xcode/Makefile \      osx/linuxsampler.xcodeproj/Makefile \
1235      Documentation/Makefile \      Documentation/Makefile \
1236      Documentation/Engines/Makefile \      Documentation/Engines/Makefile \
1237      Documentation/Engines/gig/Makefile \      Documentation/Engines/gig/Makefile \
# Line 861  AC_OUTPUT( \ Line 1239  AC_OUTPUT( \
1239      Doxyfile \      Doxyfile \
1240  )  )
1241    
1242    # resolve all nested variables in '${config_plugin_dir}'
1243    # (merely for providing a human readable summary below)
1244    while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do
1245            config_plugin_dir=`eval echo ${config_plugin_dir}`
1246    done
1247    
1248    
1249  ###########################################################################  ###########################################################################
1250  # Output All Configuration Options  # Output All Configuration Options
# Line 882  echo "# Streams to be refilled per Disk Line 1266  echo "# Streams to be refilled per Disk
1266  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"
1267  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"
1268  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
1269  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Default Maximum Disk Streams: ${config_max_streams}"
1270  echo "# Maximum Voices: ${config_max_voices}"  echo "# Default Maximum Voices: ${config_max_voices}"
1271  echo "# Default Subfragment Size: ${config_subfragment_size}"  echo "# Default Subfragment Size: ${config_subfragment_size}"
1272  echo "# Global Volume Attenuation: ${config_global_attenuation}"  echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"
1273  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
1274  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"
1275  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"
# Line 901  echo "# Override Filter Resonance Contro Line 1285  echo "# Override Filter Resonance Contro
1285  echo "# Override Filter Type: ${config_override_filter_type}"  echo "# Override Filter Type: ${config_override_filter_type}"
1286  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
1287  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
1288    echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1289    echo "# Apply global volume SysEx by MIDI port: ${config_master_volume_sysex_by_port}"
1290  echo "# Interpolate Volume: ${config_interpolate_volume}"  echo "# Interpolate Volume: ${config_interpolate_volume}"
1291    echo "# Instruments database support: ${config_instruments_db}"
1292    if test "$config_instruments_db" = "yes"; then
1293    echo "# Instruments DB default location: ${config_default_instruments_db_file}"
1294    fi
1295    echo "# Plugin Path: ${config_plugin_dir}"
1296  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1297  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
1298  echo "#####################################################################"  echo "#####################################################################"

Legend:
Removed from v.840  
changed lines
  Added in v.1830

  ViewVC Help
Powered by ViewVC