/[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 563 by schoenebeck, Sun May 22 20:43:32 2005 UTC revision 1741 by schoenebeck, Wed May 28 03:44:46 2008 UTC
# Line 1  Line 1 
1  AC_INIT(configure.in)  AC_INIT(configure.in)
2    
3    #------------------------------------------------------------------------------------
4    # LinuxSampler's / liblinuxsampler's "official" release version:
5    
6    LINUXSAMPLER_RELEASE_MAJOR=0
7    LINUXSAMPLER_RELEASE_MINOR=5
8    LINUXSAMPLER_RELEASE_BUILD=1.5cvs
9    
10    #------------------------------------------------------------------------------------
11    # The following is the libtool / shared library version. This doesn't have to
12    # do anything with the release version. It MUST conform to the following rules:
13    #
14    #  1. Start with version information of `0:0:0' for each libtool library.
15    #  2. Update the version information only immediately before a public release of
16    #     your software. More frequent updates are unnecessary, and only guarantee
17    #     that the current interface number gets larger faster.
18    #  3. If the library source code has changed at all since the last update, then
19    #     increment revision (`c:r:a' becomes `c:r+1:a').
20    #  4. If any interfaces have been added, removed, or changed since the last update,
21    #     increment current, and set revision to 0.
22    #  5. If any interfaces have been added since the last public release, then increment
23    #     age.
24    #  6. If any interfaces have been removed since the last public release, then set age
25    #     to 0.
26    
27    LIBLINUXSAMPLER_LT_CURRENT=2
28    LIBLINUXSAMPLER_LT_REVISION=0
29    LIBLINUXSAMPLER_LT_AGE=1
30    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    AM_PROG_LIBTOOL
43    
44    AC_SUBST(SHLIB_VERSION_ARG)
45    AC_SUBST(SHARED_VERSION_INFO)
46    
47  AC_C_BIGENDIAN  AC_C_BIGENDIAN
48  AC_CANONICAL_SYSTEM  AC_CANONICAL_SYSTEM
49    
# Line 8  AC_SUBST(target_cpu) Line 53  AC_SUBST(target_cpu)
53  AC_SUBST(target_os)  AC_SUBST(target_os)
54  AC_SUBST(target_vendor)  AC_SUBST(target_vendor)
55    
56    PKG_PROG_PKG_CONFIG
57    
58  ###########################################################################  ###########################################################################
59  # General Checks  # General Checks
# Line 24  esac Line 70  esac
70  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.])
71    
72  # determine the right gcc switch for CPU specific optimizations  # determine the right gcc switch for CPU specific optimizations
73    # (only if the user did not provide one)
74  CXX_CPU_SWITCH=  CXX_CPU_SWITCH=
75  if test "$def_arch_x86" = 1; then  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then
76    CXX_CPU_SWITCH="-march=$target_cpu"    if test "$def_arch_x86" = 1; then
77  elif test "$target_cpu" = "powerpc"; then      CXX_CPU_SWITCH="-march=$target_cpu"
78    CXX_CPU_SWITCH="-arch=$target_cpu"    elif test "$target_cpu" = "ppc"; then
79        CXX_CPU_SWITCH="-arch=$target_cpu"
80      fi
81  fi  fi
82  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
83    
84    # check if we're on MS Windows
85    AC_CHECK_HEADERS(
86        mmsystem.h,
87        have_windows=1,
88        have_windows=0
89    )
90    AM_CONDITIONAL(HAVE_WINDOWS, test $have_windows = "1")
91    
92  AC_MSG_CHECKING([whether UNIX98 compatible])  AC_MSG_CHECKING([whether UNIX98 compatible])
93  AC_LANG_SAVE  AC_LANG_SAVE
94  AC_LANG_C  AC_LANG_C
# Line 54  have_unix98="no" Line 111  have_unix98="no"
111  )  )
112  AC_LANG_RESTORE  AC_LANG_RESTORE
113  AC_MSG_RESULT([$have_unix98])  AC_MSG_RESULT([$have_unix98])
114  if test "$have_unix98" = "no"; then  if test "$have_unix98" = "no" -a "have_windows" = "0"; then
115      if test "x$HAVE_UNIX98" = "x"; then      if test "x$HAVE_UNIX98" = "x"; then
116          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"
117          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 64  if test "$have_unix98" = "no"; then Line 121  if test "$have_unix98" = "no"; then
121      fi      fi
122  fi  fi
123    
124    # check for <features.h>
125    AC_CHECK_HEADERS(features.h)
126    
127    # test for POSIX thread library
128    m4_ifdef([m4_include(m4/pthread.m4)],,
129                 [sinclude([m4/pthread.m4])])
130    ACX_PTHREAD
131    LIBS="$PTHREAD_LIBS $LIBS"
132    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
133    CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
134    CC="$PTHREAD_CC"
135    
136    # check for a bug in NPTL-enabled glibc
137    # (see Gentoo bug report #194076)
138    AC_ARG_ENABLE(nptl-bug-check,
139      [  --disable-nptl-bug-check
140                              Disable check for a bug in certain NPTL-enabled
141                              glibc versions that caused crashs.],
142      [config_check_nptl_bug="$enableval"],
143      [config_check_nptl_bug="yes"]
144    )
145    if test "$config_check_nptl_bug" = "yes"; then
146        m4_ifdef([m4_include(m4/nptl_bug.m4)],,
147                 [sinclude([m4/nptl_bug.m4])])
148        ACX_NPTL_GLIBC_BUG([
149            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
150            echo "You seem to have a buggy PTHREAD library! LinuxSampler would"
151            echo "probably crash due to this. Please report us the system you are"
152            echo "using and/or file a bug report to the bug tracking system of"
153            echo "your distribution."
154            echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as"
155            echo "well, you can try to circumvent this problem for now by setting"
156            echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which"
157            echo "should cause this test to pass."
158            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
159            AC_MSG_ERROR([possibly NPTL glibc bug detected])
160        ])
161    else
162        echo "NPTL glibc bug check disabled"
163    fi
164    
165    
166    
167    ###########################################################################
168  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers
169  # (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)
170    
171  have_midi_input_driver="false"  have_midi_input_driver="false"
172  have_audio_output_driver="false"  have_audio_output_driver="false"
173    
174  AC_CHECK_HEADER(alsa/asoundlib.h,  # ALSA
175      AC_CHECK_LIB(asound, main,  AC_ARG_ENABLE(alsa-driver,
176                               have_alsa=1    [  --disable-alsa-driver
177                               ,                            Disable support for the Advanced Linux Sound
178                               have_alsa=0                            Architecture (ALSA).],
179                  )    [config_alsa_driver="$enableval"],
180                  ,    [config_alsa_driver="yes"]
181                  have_alsa=0  )
182  )  have_alsa=0
183  if test "$have_alsa" = "1"; then  if test "$config_alsa_driver" = "yes"; then
184      have_midi_input_driver="true"      AC_CHECK_HEADER(alsa/asoundlib.h,
185      have_audio_output_driver="true";          AC_CHECK_LIB(asound, main,
186                                     have_alsa=1
187                                     ,
188                                     have_alsa=0
189                        )
190                        ,
191                        have_alsa=0
192        )
193        if test "$have_alsa" = "1"; then
194            have_midi_input_driver="true"
195            have_audio_output_driver="true";
196        fi
197    
198        echo -n "checking Alsa version... "
199        AC_LANG_SAVE
200        AC_LANG_C
201        AC_TRY_RUN([
202            #include <alsa/asoundlib.h>
203            void main(void) {
204                /* ensure backward compatibility */
205                #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
206                #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
207                #endif
208                exit(SND_LIB_MAJOR);
209            }
210        ],
211        alsa_major=0,
212        alsa_major=$?,
213        alsa_major=0
214        )
215        AC_TRY_RUN([
216            #include <alsa/asoundlib.h>
217            void main(void) {
218                /* ensure backward compatibility */
219                #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
220                #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
221                #endif
222                exit(SND_LIB_MINOR);
223            }
224        ],
225        alsa_minor=0,
226        alsa_minor=$?,
227        alsa_minor=0
228        )
229        AC_TRY_RUN([
230            #include <alsa/asoundlib.h>
231            void main(void) {
232                /* ensure backward compatibility */
233                #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
234                #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
235                #endif
236                exit(SND_LIB_SUBMINOR);
237            }
238        ],
239        alsa_subminor=0,
240        alsa_subminor=$?,
241        alsa_subminor=0
242        )
243        AC_LANG_RESTORE
244        echo "$alsa_major.$alsa_minor.$alsa_subminor";
245        AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_major,[Define to the major version number of your Alsa installation.])
246        AC_DEFINE_UNQUOTED(ALSA_MINOR,$alsa_minor,[Define to the minor version number of your Alsa installation.])
247        AC_DEFINE_UNQUOTED(ALSA_SUBMINOR,$alsa_subminor,[Define to the subminor version number of your Alsa installation.])
248    else
249        echo "ALSA support disabled by configure script parameter"
250  fi  fi
251  AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")  AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")
252  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.])
253    
 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.])  
   
254  # JACK  # JACK
255  PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false)  AC_ARG_ENABLE(jack-driver,
256  AC_SUBST(JACK_LIBS)    [  --disable-jack-driver
257  AC_SUBST(JACK_CFLAGS)                            Disable support for the Jack Audio Connection Kit
258  if test $HAVE_JACK = false; then                            (JACK).],
259      HAVE_JACK=0;    [config_jack_driver="$enableval"],
260  else    [config_jack_driver="yes"]
261      HAVE_JACK=1  )
262      have_audio_output_driver="true";  have_jack=0
263      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
264        PKG_CHECK_MODULES(JACK, jack, have_jack=1, have_jack=0)
265        if test $have_jack = "1"; then
266            AC_SUBST(JACK_LIBS)
267            AC_SUBST(JACK_CFLAGS)
268            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)
269            have_audio_output_driver="true";
270        fi
271    else
272        echo "JACK support disabled by configure script parameter"
273    fi
274    AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
275    AC_DEFINE_UNQUOTED(HAVE_JACK,$have_jack,[Define to 1 if you have JACK installed.])
276    
277    # JACK MIDI
278    have_jack_midi=0
279    if test $have_jack = "1"; then
280        linuxsampler_save_CFLAGS=$CFLAGS
281        linuxsampler_save_LIBS=$LIBS
282        CFLAGS="$JACK_CFLAGS $CFLAGS"
283        LIBS="$JACK_LIBS $LIBS"
284        AC_CHECK_HEADER(jack/midiport.h, have_jack_midi=1, have_jack_midi=0)
285        if test $have_jack_midi = "1"; then
286            AC_CHECK_FUNCS(jack_midi_get_event_count)
287            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jack/midiport.h>]], [[
288                jack_midi_clear_buffer(0, 0);
289            ]])], [AC_DEFINE(JACK_MIDI_FUNCS_NEED_NFRAMES, 1,
290                      [Define to 1 if you have the old jack midi functions that need an nframes argument.])])
291            have_midi_input_driver="true"
292        fi
293        CFLAGS=$linuxsampler_save_CFLAGS
294        LIBS=$linuxsampler_save_LIBS
295    fi
296    AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")
297    AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,
298                       [Define to 1 if you have JACK with MIDI support installed.])
299    
300    # ARTS
301    AC_ARG_ENABLE(arts-driver,
302      [  --disable-arts-driver
303                              Disable support for the Analogue Realtime System
304                              (aRts).],
305      [config_arts_driver="$enableval"],
306      [config_arts_driver="yes"]
307    )
308    have_arts=0
309    if test "$config_arts_driver" = "yes"; then
310        m4_ifdef([m4_include(m4/arts.m4)],,
311                 [sinclude([m4/arts.m4])])
312        AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0)
313        if test "$have_arts" = "1"; then
314            have_audio_output_driver="true"
315        fi
316    else
317        echo "ARTS support disabled by configure script parameter"
318    fi
319    AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
320    AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])
321    
322    # ASIO AUDIO (Win32)
323    AC_ARG_ENABLE(asiosdk-dir,
324      [  --enable-asiosdk-dir
325                              Directory where the ASIO SDK is located, this automatically
326                              enables the compilation of the ASIO audio output driver.],
327      [config_asiosdk_dir="${enableval}"],
328      [config_asiosdk_dir="."]
329    )
330    AC_SUBST(config_asiosdk_dir)
331    
332    AC_ARG_ENABLE(asio-driver,
333      [  --disable-asio-driver
334                              Disable support for the Windows ASIO driver.],
335      [config_asio_driver="$enableval"],
336      [config_asio_driver="yes"]
337    )
338    have_asio=0
339    ASIOSDK_BASEDIR=
340    if test "$config_asio_driver" = "yes"; then
341        asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h
342        echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...."
343        if test -e $asiosdk_headerfile ; then
344            echo yes
345            have_asio=1
346            ASIOSDK_BASEDIR="$config_asiosdk_dir"
347        else
348            echo no
349            have_asio=0
350        fi
351        if test "$have_asio" = "1"; then
352            have_audio_output_driver="true"
353        fi
354    else
355        echo "Windows ASIO support disabled by configure script parameter"
356    fi
357    AC_SUBST(ASIOSDK_BASEDIR)
358    AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")
359    AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.])
360    
361    # MidiShare (Linux, OS X, Windows)
362    AC_ARG_ENABLE(midishare-driver,
363      [  --disable-midishare-driver
364                              Disable support for the MidiShare system.],
365      [config_midishare_driver="$enableval"],
366      [config_midishare_driver="yes"]
367    )
368    have_midishare=0
369    if test "$config_midishare_driver" = "yes"; then
370        AC_CHECK_HEADER(MidiShare.h,
371            AC_CHECK_LIB(MidiShare, MidiCountEvs,
372                                    have_midishare=1,
373                                    have_midishare=0
374                        )
375                        ,
376                        have_midishare=0
377        )
378        if test "$have_midishare" = "1"; then
379            have_midi_input_driver="true"
380        fi
381    else
382        echo "MidiShare support disabled by configure script parameter"
383    fi
384    AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")
385    AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_midishare,[Define to 1 if you have MidiShare installed.])
386    
387    # CoreMIDI (OS X)
388    AC_ARG_ENABLE(coremidi-driver,
389      [  --disable-coremidi-driver
390                              Disable support for the Apple CoreMIDI system.],
391      [config_coremidi_driver="$enableval"],
392      [config_coremidi_driver="yes"]
393    )
394    have_coremidi=0
395    if test "$config_coremidi_driver" = "yes"; then
396        AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h,
397            have_coremidi=1,
398            have_coremidi=0
399        )
400        if test "$have_coremidi" = "1"; then
401            have_midi_input_driver="true"
402        fi
403    else
404        echo "CoreMIDI support disabled by configure script parameter"
405    fi
406    AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
407    AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.])
408    
409    # MME MIDI (Win32)
410    AC_ARG_ENABLE(mmemidi-driver,
411      [  --disable-mmemidi-driver
412                              Disable support for the Windows MME MIDI system.],
413      [config_mmemidi_driver="$enableval"],
414      [config_mmemidi_driver="yes"]
415    )
416    have_mmemidi=0
417    if test "$config_mmemidi_driver" = "yes"; then
418        AC_CHECK_HEADERS(mmsystem.h,
419            have_mmemidi=1,
420            have_mmemidi=0
421        )
422        if test "$have_mmemidi" = "1"; then
423            have_midi_input_driver="true"
424        fi
425    else
426        echo "MME MIDI support disabled by configure script parameter"
427    fi
428    AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")
429    AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])
430    
431    # have we found at least one MIDI input and one audio output driver ?
432    if test "$have_midi_input_driver" = "false"; then
433        echo "No supported MIDI input system found!"
434        echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
435        echo "ALSA, JACK, MIDIShare, CoreMIDI, MME."
436        echo "If you think you have one of those available on your system, make sure you"
437        echo "also have the respective development (header) files installed."
438        exit -1;
439    fi
440    if test "$have_audio_output_driver" = "false"; then
441        echo "No supported audio output system found!"
442        echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output"
443        echo "driver at the moment!"
444        exit -1;
445  fi  fi
446  AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)  
447  AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.])  
448    
449    ###########################################################################
450    # Checks for various DLL libraries
451    
452  # Check presence of libgig  # Check presence of libgig
453  libgig_version="2.0.0"  libgig_version="3.2.1"
454  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)
455  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
456      echo "Required libgig version not found!"      echo "Required libgig version not found!"
457      echo "You need to have libgig version ${libgig_version} installed!"      echo "You need to have libgig version ${libgig_version} installed!"
458      exit -1;      exit -1;
459    else
460        echo "yes, found libgig $libgig_version"
461  fi  fi
462  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
463  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
464    
465  # SQLITE3  # Instruments DB feature (requires SQLite 3.3)
466  PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false)  AC_ARG_ENABLE(instruments-db,
467  AC_SUBST(SQLITE3_LIBS)    [  --disable-instruments-db
468  AC_SUBST(SQLITE3_CFLAGS)                            Disable compilation of the sampler's instruments
469  if test $HAVE_SQLITE3 = false; then                            database feature. You need to have SQLite 3.3
470      HAVE_SQLITE3=0;                            or younger installed for this feature.],
471      [config_instruments_db="$enableval"],
472      [config_instruments_db="yes"]
473    )
474    HAVE_SQLITE3=0;
475    if test "$config_instruments_db" = "yes"; then
476        # Check presence of sqlite3
477        sqlite_version="3.3"
478        PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false)
479        AC_SUBST(SQLITE3_LIBS)
480        AC_SUBST(SQLITE3_CFLAGS)
481        if test $HAVE_SQLITE3 = false; then
482            HAVE_SQLITE3=0
483            config_instruments_db="no"
484            echo "*** Required sqlite version not found!"
485            echo "*** You need to have sqlite version ${sqlite_version} or higher"
486            echo "*** for instruments database support to be enabled."
487            echo "*** Support for instruments DB will be disabled!"
488        else
489            HAVE_SQLITE3=1
490        fi
491  else  else
492      HAVE_SQLITE3=1      echo "Instruments DB feature disabled by configure script parameter"
493  fi  fi
494  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)
495  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.])
496    
 if test "$have_midi_input_driver" = "false"; then  
     echo "No supported MIDI input system found!"  
     echo "Sorry, LinuxSampler only supports ALSA as MIDI input driver at the moment!"  
     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  
497    
498    
499  ###########################################################################  ###########################################################################
# Line 190  fi Line 501  fi
501    
502  # TODO: should we use AC_ARG_VAR(variable, description) instead?  # TODO: should we use AC_ARG_VAR(variable, description) instead?
503    
504    AC_ARG_ENABLE(asm,
505      [  --disable-asm
506                              Enable hand-crafted assembly optimizations
507                              (default=on). LinuxSampler provides CPU specific
508                              assembly optimizations. This is currently limited
509                              to just enter a fast (denormal) FPU mode on x86
510                              platforms. There are currently no synthesis core
511                              assembly optimizations anymore since LS 0.4.0],
512      [config_asm="$enableval"],
513      [config_asm="yes"]
514    )
515    if test "$config_asm" = "yes"; then
516      AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable asm optimizations.])
517    fi
518    
519  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
520    [  --enable-dev-mode    [  --enable-dev-mode
521                            Enable development mode (default=no). In that mode                            Enable development mode (default=off). In that mode
522                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
523                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
524                            efficiency a bit],                            efficiency a bit],
525    [config_dev_mode="yes"],    [config_dev_mode="$enableval"],
526    [config_dev_mode="no"]    [config_dev_mode="no"]
527  )  )
528  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
# Line 224  AC_ARG_ENABLE(rt-exceptions, Line 550  AC_ARG_ENABLE(rt-exceptions,
550                            context as well. Otherwise if disabled                            context as well. Otherwise if disabled
551                            segmentation faults will be forced by the                            segmentation faults will be forced by the
552                            application on critical errors.],                            application on critical errors.],
553    [config_rt_exceptions="yes"],    [config_rt_exceptions="$enableval"],
554    [config_rt_exceptions="no"]    [config_rt_exceptions="no"]
555  )  )
556  if test "$config_rt_exceptions" = "yes"; then  if test "$config_rt_exceptions" = "yes"; then
557    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.])
558  fi  fi
559    
560    AC_ARG_ENABLE(pthread-testcancel,
561      [  --enable-pthread-testcancel
562                              Enable pthread_testcancel() calls and avoid asynchronous
563                              cancel of pthreads (default=no).],
564      [config_pthread_testcancel="$enableval"],
565      [config_pthread_testcancel="no"]
566    )
567    if test "$config_pthread_testcancel" = "yes"; then
568      AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])
569    fi
570    
571  AC_ARG_ENABLE(preload-samples,  AC_ARG_ENABLE(preload-samples,
572    [  --enable-preload-samples    [  --enable-preload-samples
573                            Due to seeking and latency issues with hard drives                            Due to seeking and latency issues with hard drives
# Line 354  AC_ARG_ENABLE(max-voices, Line 691  AC_ARG_ENABLE(max-voices,
691  )  )
692  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])
693    
694    AC_ARG_ENABLE(subfragment-size,
695      [  --enable-subfragment-size
696                              Every audio fragment will be splitted into
697                              subfragments. Where each subfragment renders
698                              audio with constant synthesis parameters. This is
699                              done for efficiency reasons. This parameter
700                              defines the default size of a subfragment in
701                              sample points. A large value means less CPU time
702                              whereas a low value means better audio quality
703                              (default=32).],
704      [config_subfragment_size="${enableval}"],
705      [config_subfragment_size="32"]
706    )
707    AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).])
708    
709    AC_ARG_ENABLE(global-attenuation-default,
710      [  --enable-global-attenuation-default
711                              To prevent clipping all samples will be lowered
712                              in amplitude by this given default factor (can
713                              be overridden at runtime).
714                              (default=0.35)],
715      [config_global_attenuation_default="${enableval}"],
716      [config_global_attenuation_default="0.35"]
717    )
718    AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION_DEFAULT, $config_global_attenuation_default, [Define default global volume attenuation (as floating point factor).])
719    
720  AC_ARG_ENABLE(voice-steal-algo,  AC_ARG_ENABLE(voice-steal-algo,
721    [  --enable-voice-steal-algo    [  --enable-voice-steal-algo
722                            Voice stealing algorithm to be used. Currently                            Voice stealing algorithm to be used. Currently
# Line 372  AC_ARG_ENABLE(voice-steal-algo, Line 735  AC_ARG_ENABLE(voice-steal-algo,
735        AC_MSG_ERROR([Unknown voice stealing algorithm for parameter --enable-voice-steal-algo])        AC_MSG_ERROR([Unknown voice stealing algorithm for parameter --enable-voice-steal-algo])
736      else      else
737        config_voice_steal_algo="${enableval}"        config_voice_steal_algo="${enableval}"
738      fi        fi
739    ],    ],
740    [config_voice_steal_algo="oldestvoiceonkey"]    [config_voice_steal_algo="oldestvoiceonkey"]
741  )  )
# Line 387  AC_ARG_ENABLE(sysex-buffer-size, Line 750  AC_ARG_ENABLE(sysex-buffer-size,
750  )  )
751  AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.])  AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.])
752    
 AC_ARG_ENABLE(filter-update-steps,  
   [  --enable-filter-update-steps  
                           Amount of sample points after which filter  
                           parameters (cutoff, resonance) are going to be  
                           updated (default=64). Higher value means less CPU  
                           load, but also worse parameter resolution, this  
                           value will be aligned to a power of two.],  
   [config_filter_update_steps="${enableval}"],  
   [config_filter_update_steps="64"]  
 )  
 AC_DEFINE_UNQUOTED(CONFIG_FILTER_UPDATE_STEPS, $config_filter_update_steps, [Define amount of steps to refresh filter coefficients.])  
   
753  AC_ARG_ENABLE(force-filter,  AC_ARG_ENABLE(force-filter,
754    [  --enable-force-filter    [  --enable-force-filter
755                            If enabled will force filter to be used even if                            If enabled will force filter to be used even if
756                            no usage was define in instrument patch files.                            no usage was define in instrument patch files.
757                            (default=no).],                            (default=no).],
758    [config_force_filter="yes"],    [config_force_filter="$enableval"],
759    [config_force_filter="no"]    [config_force_filter="no"]
760  )  )
761  if test "$config_force_filter" = "yes"; then  if test "$config_force_filter" = "yes"; then
# Line 479  AC_ARG_ENABLE(override-filter-type, Line 830  AC_ARG_ENABLE(override-filter-type,
830         config_override_filter_type="::gig::vcf_type_lowpassturbo"         config_override_filter_type="::gig::vcf_type_lowpassturbo"
831      elif test ! "${enableval}" = "no"; then      elif test ! "${enableval}" = "no"; then
832         AC_MSG_ERROR([Unknown filter type for parameter --enable-override-filter-type])         AC_MSG_ERROR([Unknown filter type for parameter --enable-override-filter-type])
833      fi        fi
834    ],    ],
835    [config_override_filter_type="no"]    [config_override_filter_type="no"]
836  )  )
# Line 494  AC_ARG_ENABLE(gs-checksum, Line 845  AC_ARG_ENABLE(gs-checksum,
845                            messages which do not provide a correct checksum                            messages which do not provide a correct checksum
846                            will be ignored. This is disabled by default as                            will be ignored. This is disabled by default as
847                            not all devices honor GS checksums.],                            not all devices honor GS checksums.],
848    [config_assert_gs_sysex_checksum="yes"],    [config_assert_gs_sysex_checksum="$enableval"],
849    [config_assert_gs_sysex_checksum="no"]    [config_assert_gs_sysex_checksum="no"]
850  )  )
851  if test "config_assert_gs_sysex_checksum" = "yes"; then  if test "config_assert_gs_sysex_checksum" = "yes"; then
852    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.])
853  fi  fi
854    
855    AC_ARG_ENABLE(portamento-time-min,
856      [  --enable-portamento-time-min
857                              Minimum Portamento time in seconds
858                              (default=0.1).],
859      [config_portamento_time_min="${enableval}"],
860      [config_portamento_time_min="0.1"]
861    )
862    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MIN, $config_portamento_time_min, [Define min. portamento time.])
863    
864    AC_ARG_ENABLE(portamento-time-max,
865      [  --enable-portamento-time-max
866                              Maximum Portamento time in seconds
867                              (default=32).],
868      [config_portamento_time_max="${enableval}"],
869      [config_portamento_time_max="32"]
870    )
871    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MAX, $config_portamento_time_max, [Define max. portamento time.])
872    
873    AC_ARG_ENABLE(portamento-time-default,
874      [  --enable-portamento-time-default
875                              Default Portamento time in seconds
876                              (default=1).],
877      [config_portamento_time_default="${enableval}"],
878      [config_portamento_time_default="1"]
879    )
880    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_DEFAULT, $config_portamento_time_default, [Define default portamento time.])
881    
882    AC_ARG_ENABLE(signed-triang-algo,
883      [  --enable-signed-triang-algo
884                              Signed triangular wave algorithm to be used (e.g. for LFOs).
885                              Currently available options:
886                                intmath:
887                                  Uses integer math without any branch will then be
888                                  converted to floating point value for each sample point.
889                                  This int->float conversion might hurt on some systems.
890                                intmathabs:
891                                  Similar to intmath but uses abs() function.
892                                  Depending on compiler and platrofm this could
893                                  perform better than integer math as it avoids
894                                  an extra integer multiply instruction.
895                                diharmonic:
896                                  The triangular wave will be approximated by adding two
897                                  sinusoidials. This solution might especially hurt on
898                                  systems with weak floating point unit.
899                                benchmark (default):
900                                  This is not an algorithm. Use this option if the
901                                  appropriate algorithm should be automatically
902                                  chosen by the configure script by performing a
903                                  benchmark between the algorithms mentioned above.
904                                  This will NOT work for cross compilation!],
905      [ if test ! "(" "${enableval}" = "intmath" \
906                  -o "${enableval}" = "intmathabs" \
907                  -o "${enableval}" = "diharmonic" ")" ; then
908          AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-signed-triang-algo])
909        else
910          config_signed_triang_algo="${enableval}"
911        fi
912      ],
913      [config_signed_triang_algo="benchmark"]
914    )
915    
916    AC_ARG_ENABLE(unsigned-triang-algo,
917      [  --enable-unsigned-triang-algo
918                              Unsigned triangular wave algorithm to be used (e.g. for LFOs).
919                              Currently available options:
920                                intmath:
921                                  Uses integer math without any branch will then be
922                                  converted to floating point value for each sample point.
923                                  This int->float conversion might hurt on some systems.
924                                intmathabs:
925                                  Similar to intmath but uses abs() function.
926                                  Depending on compiler and platrofm this could
927                                  perform better than integer math as it avoids
928                                  an extra integer multiply instruction.
929                                diharmonic:
930                                  The triangular wave will be approximated by adding two
931                                  sinusoidials. This solution might especially hurt on
932                                  systems with weak floating point unit.
933                                benchmark (default):
934                                  This is not an algorithm. Use this option if the
935                                  appropriate algorithm should be automatically
936                                  chosen by the configure script by performing a
937                                  benchmark between the algorithms mentioned above.
938                                  This will NOT work for cross compilation!],
939      [ if test ! "(" "${enableval}" = "intmath" \
940                  -o "${enableval}" = "intmathabs" \
941                  -o "${enableval}" = "diharmonic" ")" ; then
942          AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-unsigned-triang-algo])
943        else
944          config_unsigned_triang_algo="${enableval}"
945        fi
946      ],
947      [config_unsigned_triang_algo="benchmark"]
948    )
949    
950    AC_ARG_ENABLE(process-muted-channels,
951      [  --enable-process-muted-channels
952                              Enable processing of muted channels (default=no).
953                              In that mode all MIDI events in the muted channels
954                              will be processed. This will provide information
955                              about the active voices in the muted channels and
956                              will not discard notes, triggered in mute mode,
957                              when the channel is unmuted. But also will reduce
958                              the efficiency.],
959      [config_process_muted_channels="$enableval"],
960      [config_process_muted_channels="no"]
961    )
962    if test "$config_process_muted_channels" = "yes"; then
963      AC_DEFINE_UNQUOTED(CONFIG_PROCESS_MUTED_CHANNELS, 1, [Define to 1 if you want to enable processing of muted channels.])
964    fi
965    
966    AC_ARG_ENABLE(process-all-notes-off,
967      [  --disable-process-all-notes-off
968                              Disable interpretation of All-Notes-Off MIDI
969                              messages (default=on). By default LS will release
970                              all voices whenever it receives an All-Notes-Off
971                              MIDI message. You can disable this behavior, so
972                              that LS simply ignores such messages.],
973      [config_process_all_notes_off="$enableval"],
974      [config_process_all_notes_off="yes"]
975    )
976    if test "$config_process_all_notes_off" = "yes"; then
977      AC_DEFINE_UNQUOTED(CONFIG_PROCESS_ALL_NOTES_OFF, 1, [Define to 1 if you want to enable processing of All-Notes-Off MIDI messages.])
978    fi
979    
980    AC_ARG_ENABLE(interpolate-volume,
981      [  --disable-interpolate-volume
982                              Disable interpolation of volume modulation
983                              (default=on). With this enabled, the volume changes
984                              generated by for example the envelope generator
985                              will be smoother, minimizing the risk for audio
986                              clicks. Disable it to reduce CPU usage.],
987      [config_interpolate_volume="$enableval"],
988      [config_interpolate_volume="yes"]
989    )
990    if test "$config_interpolate_volume" = "yes"; then
991      AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])
992    fi
993    
994    AC_ARG_ENABLE(plugin-dir,
995      [  --enable-plugin-dir
996                              Directory where the sampler shall look for potential plugins,
997                              that is 3rd party shared libraries that should be loaded by
998                              the sampler on startup. By default the sampler will search
999                              for plugins in the subdirectory "plugins" below its own
1000                              library directory.
1001                              (i.e. /usr/local/lib/linuxsampler/plugins)],
1002      [config_plugin_dir="${enableval}"],
1003      [config_plugin_dir="${libdir}/linuxsampler/plugins"]
1004    )
1005    AC_SUBST(config_plugin_dir)
1006    
1007    AC_ARG_ENABLE(default-instruments-db-location,
1008      [  --enable-default-instruments-db-location
1009                              Only when instruments DB feature is enabled: file name
1010                              which shall be taken as default location of the
1011                              instruments DB file. This location can still be
1012                              overridden at runtime with a command line switch.
1013                              (default: /var/lib/linuxsampler/instruments.db)],
1014      [config_default_instruments_db_file="${enableval}"],
1015      [config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db"]
1016    )
1017    AC_DEFINE_UNQUOTED(
1018        CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION,
1019        "$config_default_instruments_db_file",
1020        [Only when instruments DB feature is enabled: default location of the DB file.]
1021    )
1022    AC_SUBST(config_default_instruments_db_file)
1023    
1024    
1025    ###########################################################################
1026    # Automatic Benchmarks (to detect the best algorithms for the system)
1027    
1028    AC_LANG_SAVE
1029    
1030    if test "$config_signed_triang_algo" = "benchmark"; then
1031        echo -n "benchmarking for the best (signed) triangular oscillator algorithm... "
1032        AC_LANG_CPLUSPLUS
1033        AC_TRY_RUN([
1034                #define SIGNED 1
1035                #define SILENT 1
1036                #include "${srcdir}/benchmarks/triang.cpp"
1037            ],
1038            triang_signed=0,
1039            triang_signed=$?,
1040            triang_signed=0
1041        )
1042        if test "$triang_signed" = "2"; then
1043            config_signed_triang_algo="intmath"
1044            echo "integer math"
1045        elif test "$triang_signed" = "3"; then
1046            config_signed_triang_algo="diharmonic"
1047            echo "di harmonics"
1048        elif test "$triang_signed" = "5"; then
1049            config_signed_triang_algo="intmathabs"
1050            echo "integer math using abs()"
1051        else
1052            echo "Benchmark of signed triangular wave algorithms failed!"
1053            echo "Maybe you are doing cross compilation? In that case you have to select"
1054            echo "an algorithm manually with './configure --enable-signed-triang-algo=...'"
1055            echo "Call './configure --help' for further information or read configure.in."
1056            exit -1;
1057        fi
1058    else
1059        case "$config_signed_triang_algo" in
1060            intmath)
1061                triang_signed=2 ;;
1062            diharmonic)
1063                triang_signed=3 ;;
1064            intmathabs)
1065                triang_signed=5 ;;
1066        esac
1067    fi
1068    AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.])
1069    
1070    if test "$config_unsigned_triang_algo" = "benchmark"; then
1071        echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... "
1072        AC_LANG_CPLUSPLUS
1073        AC_TRY_RUN([
1074                #define SIGNED 0
1075                #define SILENT 1
1076                #include "${srcdir}/benchmarks/triang.cpp"
1077            ],
1078            triang_unsigned=0,
1079            triang_unsigned=$?,
1080            triang_unsigned=0
1081        )
1082        if test "$triang_unsigned" = "2"; then
1083            config_unsigned_triang_algo="intmath"
1084            echo "integer math"
1085        elif test "$triang_unsigned" = "3"; then
1086            config_unsigned_triang_algo="diharmonic"
1087            echo "di harmonics"
1088        elif test "$triang_unsigned" = "5"; then
1089            config_unsigned_triang_algo="intmathabs"
1090            echo "integer math using abs()"
1091        else
1092            echo "Benchmark of unsigned triangular wave algorithms failed!"
1093            echo "Maybe you are doing cross compilation? In that case you have to select"
1094            echo "an algorithm manually with './configure --enable-unsigned-triang-algo=...'"
1095            echo "Call './configure --help' for further information or read configure.in."
1096            exit -1;
1097        fi
1098    else
1099        case "$config_unsigned_triang_algo" in
1100            intmath)
1101                triang_unsigned=2 ;;
1102            diharmonic)
1103                triang_unsigned=3 ;;
1104            intmathabs)
1105                triang_unsigned=5 ;;
1106        esac
1107    fi
1108    AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.])
1109    
1110    AC_LANG_RESTORE
1111    
1112    
1113  ###########################################################################  ###########################################################################
1114  # Create Build Files  # Create Build Files
1115    
1116  AM_CONFIG_HEADER(config.h)  AM_CONFIG_HEADER(config.h)
1117  AM_INIT_AUTOMAKE(linuxsampler, 0.3.1)  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD")
1118    
1119  AC_LANG_CPLUSPLUS  AC_LANG_CPLUSPLUS
1120  AC_PROG_CXX  
1121    # some gcc 4.0 versions need -msse for SSE register allocations
1122    if test "$config_asm" = "yes"; then
1123      if test "$def_arch_x86" = 1; then
1124        CXXFLAGS="$CXXFLAGS -msse"
1125      fi
1126    fi
1127    
1128  # autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like  # autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like
1129  # this, the dlfcn.h check in am_prog_libtool may fail.  # this, the dlfcn.h check in am_prog_libtool may fail.
1130  AC_CHECK_HEADER(stdlib.h)  AC_CHECK_HEADER(stdlib.h)
1131    
1132  AM_PROG_LIBTOOL  AC_OUTPUT( \
1133        Makefile \
1134  AC_OUTPUT(Makefile src/Makefile src/network/Makefile src/engines/Makefile src/engines/gig/Makefile src/engines/common/Makefile src/common/Makefile src/lib/Makefile src/lib/fileloader/Makefile src/lib/fileloader/libgig/Makefile src/testcases/Makefile src/drivers/Makefile src/drivers/audio/Makefile src/drivers/midi/Makefile)      man/Makefile \
1135        man/linuxsampler.1 \
1136        src/Makefile \
1137        src/db/Makefile \
1138        src/network/Makefile \
1139        src/engines/Makefile \
1140        src/engines/gig/Makefile \
1141        src/engines/common/Makefile \
1142        src/effects/Makefile \
1143        src/common/Makefile \
1144        src/testcases/Makefile \
1145        src/drivers/Makefile \
1146        src/drivers/audio/Makefile \
1147        src/drivers/midi/Makefile \
1148        src/plugins/Makefile \
1149        linuxsampler.spec \
1150        debian/Makefile \
1151        Artwork/Makefile \
1152        scripts/Makefile \
1153        osx/Makefile \
1154        osx/linuxsampler.xcodeproj/Makefile \
1155        Documentation/Makefile \
1156        Documentation/Engines/Makefile \
1157        Documentation/Engines/gig/Makefile \
1158        linuxsampler.pc \
1159        Doxyfile \
1160    )
1161    
1162    # resolve all nested variables in '${config_plugin_dir}'
1163    # (merely for providing a human readable summary below)
1164    while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do
1165            config_plugin_dir=`eval echo ${config_plugin_dir}`
1166    done
1167    
1168    
1169  ###########################################################################  ###########################################################################
# Line 527  echo "" Line 1173  echo ""
1173  echo "#####################################################################"  echo "#####################################################################"
1174  echo "# LinuxSampler Configuration                                        #"  echo "# LinuxSampler Configuration                                        #"
1175  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1176    echo "# Assembly Optimizations: ${config_asm}"
1177  echo "# Development Mode: ${config_dev_mode}"  echo "# Development Mode: ${config_dev_mode}"
1178  echo "# Debug Level: ${config_debug_level}"  echo "# Debug Level: ${config_debug_level}"
1179  echo "# Use Exceptions in RT Context: ${config_rt_exceptions}"  echo "# Use Exceptions in RT Context: ${config_rt_exceptions}"
# Line 541  echo "# Maximum Stream Refill Size: ${co Line 1188  echo "# Maximum Stream Refill Size: ${co
1188  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
1189  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Maximum Disk Streams: ${config_max_streams}"
1190  echo "# Maximum Voices: ${config_max_voices}"  echo "# Maximum Voices: ${config_max_voices}"
1191    echo "# Default Subfragment Size: ${config_subfragment_size}"
1192    echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"
1193  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
1194    echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"
1195    echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"
1196  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"
1197  echo "# Filter Update Steps: ${config_filter_update_steps}"  echo "# Min. Portamento Time: ${config_portamento_time_min} s"
1198    echo "# Max. Portamento Time: ${config_portamento_time_max} s"
1199    echo "# Default Portamento Time: ${config_portamento_time_default} s"
1200  echo "# Force Filter Usage: ${config_force_filter}"  echo "# Force Filter Usage: ${config_force_filter}"
1201  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"
1202  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"
# Line 551  echo "# Override Filter Cutoff Controlle Line 1204  echo "# Override Filter Cutoff Controlle
1204  echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}"  echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}"
1205  echo "# Override Filter Type: ${config_override_filter_type}"  echo "# Override Filter Type: ${config_override_filter_type}"
1206  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
1207    echo "# Process Muted Channels: ${config_process_muted_channels}"
1208    echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1209    echo "# Interpolate Volume: ${config_interpolate_volume}"
1210    echo "# Instruments database support: ${config_instruments_db}"
1211    if test "$config_instruments_db" = "yes"; then
1212    echo "# Instruments DB default location: ${config_default_instruments_db_file}"
1213    fi
1214    echo "# Plugin Path: ${config_plugin_dir}"
1215  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1216  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
1217  echo "#####################################################################"  echo "#####################################################################"

Legend:
Removed from v.563  
changed lines
  Added in v.1741

  ViewVC Help
Powered by ViewVC