/[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 720 by senkov, Sun Jul 24 18:22:56 2005 UTC revision 1454 by schoenebeck, Fri Oct 19 17:52:15 2007 UTC
# Line 4  AC_INIT(configure.in) Line 4  AC_INIT(configure.in)
4  # LinuxSampler's / liblinuxsampler's "official" release version:  # LinuxSampler's / liblinuxsampler's "official" release version:
5    
6  LINUXSAMPLER_RELEASE_MAJOR=0  LINUXSAMPLER_RELEASE_MAJOR=0
7  LINUXSAMPLER_RELEASE_MINOR=3  LINUXSAMPLER_RELEASE_MINOR=5
8  LINUXSAMPLER_RELEASE_BUILD=3  LINUXSAMPLER_RELEASE_BUILD=0
9    
10  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
11  # The following is the libtool / shared library version. This doesn't have to  # The following is the libtool / shared library version. This doesn't have to
# Line 24  LINUXSAMPLER_RELEASE_BUILD=3 Line 24  LINUXSAMPLER_RELEASE_BUILD=3
24  #  6. If any interfaces have been removed since the last public release, then set age  #  6. If any interfaces have been removed since the last public release, then set age
25  #     to 0.  #     to 0.
26    
27  LIBLINUXSAMPLER_LT_CURRENT=0  LIBLINUXSAMPLER_LT_CURRENT=1
28  LIBLINUXSAMPLER_LT_REVISION=0  LIBLINUXSAMPLER_LT_REVISION=0
29  LIBLINUXSAMPLER_LT_AGE=0  LIBLINUXSAMPLER_LT_AGE=0
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=2
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  AM_PROG_LIBTOOL  AM_PROG_LIBTOOL
42    
43  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
# Line 59  esac Line 68  esac
68  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.])
69    
70  # determine the right gcc switch for CPU specific optimizations  # determine the right gcc switch for CPU specific optimizations
71    # (only if the user did not provide one)
72  CXX_CPU_SWITCH=  CXX_CPU_SWITCH=
73  if test "$def_arch_x86" = 1; then  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then
74    CXX_CPU_SWITCH="-march=$target_cpu"    if test "$def_arch_x86" = 1; then
75  elif test "$target_cpu" = "powerpc"; then      CXX_CPU_SWITCH="-march=$target_cpu"
76    CXX_CPU_SWITCH="-arch=$target_cpu"    elif test "$target_cpu" = "ppc"; then
77        CXX_CPU_SWITCH="-arch=$target_cpu"
78      fi
79  fi  fi
80  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
81    
# Line 99  if test "$have_unix98" = "no"; then Line 111  if test "$have_unix98" = "no"; then
111      fi      fi
112  fi  fi
113    
114    # check for <features.h>
115    AC_CHECK_HEADERS(features.h)
116    
117    # test for POSIX thread library
118    m4_ifdef([m4_include(m4/pthread.m4)],,
119                 [sinclude([m4/pthread.m4])])
120    ACX_PTHREAD
121    LIBS="$PTHREAD_LIBS $LIBS"
122    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
123    CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
124    CC="$PTHREAD_CC"
125    
126    # check for a bug in NPTL-enabled glibc
127    # (see Gentoo bug report #194076)
128    AC_ARG_ENABLE(nptl-bug-check,
129      [  --disable-nptl-bug-check
130                              Disable check for a bug in certain NPTL-enabled
131                              glibc versions that caused crashs.],
132      [config_check_nptl_bug="$enableval"],
133      [config_check_nptl_bug="yes"]
134    )
135    if test "$config_check_nptl_bug" = "yes"; then
136        m4_ifdef([m4_include(m4/nptl_bug.m4)],,
137                 [sinclude([m4/nptl_bug.m4])])
138        ACX_NPTL_GLIBC_BUG([
139            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
140            echo "You seem to have a buggy PTHREAD library! LinuxSampler would"
141            echo "probably crash due to this. Please report us the system you are"
142            echo "using and/or file a bug report to the bug tracking system of"
143            echo "your distribution."
144            echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as"
145            echo "well, you can try to circumvent this problem for now by setting"
146            echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which"
147            echo "should cause this test to pass."
148            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
149            AC_MSG_ERROR([possibly NPTL glibc bug detected])
150        ])
151    else
152        echo "NPTL glibc bug check disabled"
153    fi
154    
155    
156    
157    ###########################################################################
158  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers
159  # (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)
160    
161  have_midi_input_driver="false"  have_midi_input_driver="false"
162  have_audio_output_driver="false"  have_audio_output_driver="false"
163    
164  AC_CHECK_HEADER(alsa/asoundlib.h,  # ALSA
165      AC_CHECK_LIB(asound, main,  AC_ARG_ENABLE(alsa-driver,
166                               have_alsa=1    [  --disable-alsa-driver
167                               ,                            Disable support for the Advanced Linux Sound
168                               have_alsa=0                            Architecture (ALSA).],
169                  )    [config_alsa_driver="$enableval"],
170                  ,    [config_alsa_driver="yes"]
171                  have_alsa=0  )
172  )  have_alsa=0
173  if test "$have_alsa" = "1"; then  if test "$config_alsa_driver" = "yes"; then
174      have_midi_input_driver="true"      AC_CHECK_HEADER(alsa/asoundlib.h,
175      have_audio_output_driver="true";          AC_CHECK_LIB(asound, main,
176                                     have_alsa=1
177                                     ,
178                                     have_alsa=0
179                        )
180                        ,
181                        have_alsa=0
182        )
183        if test "$have_alsa" = "1"; then
184            have_midi_input_driver="true"
185            have_audio_output_driver="true";
186        fi
187    
188        echo -n "checking Alsa version... "
189        AC_LANG_SAVE
190        AC_LANG_C
191        AC_TRY_RUN([
192            #include <alsa/asoundlib.h>
193            void main(void) {
194                /* ensure backward compatibility */
195                #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
196                #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
197                #endif
198                exit(SND_LIB_MAJOR);
199            }
200        ],
201        alsa_major=0,
202        alsa_major=$?,
203        alsa_major=0
204        )
205        AC_TRY_RUN([
206            #include <alsa/asoundlib.h>
207            void main(void) {
208                /* ensure backward compatibility */
209                #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
210                #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
211                #endif
212                exit(SND_LIB_MINOR);
213            }
214        ],
215        alsa_minor=0,
216        alsa_minor=$?,
217        alsa_minor=0
218        )
219        AC_TRY_RUN([
220            #include <alsa/asoundlib.h>
221            void main(void) {
222                /* ensure backward compatibility */
223                #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
224                #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
225                #endif
226                exit(SND_LIB_SUBMINOR);
227            }
228        ],
229        alsa_subminor=0,
230        alsa_subminor=$?,
231        alsa_subminor=0
232        )
233        AC_LANG_RESTORE
234        echo "$alsa_major.$alsa_minor.$alsa_subminor";
235        AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_major,[Define to the major version number of your Alsa installation.])
236        AC_DEFINE_UNQUOTED(ALSA_MINOR,$alsa_minor,[Define to the minor version number of your Alsa installation.])
237        AC_DEFINE_UNQUOTED(ALSA_SUBMINOR,$alsa_subminor,[Define to the subminor version number of your Alsa installation.])
238    else
239        echo "ALSA support disabled by configure script parameter"
240  fi  fi
241  AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")  AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")
242  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.])
243    
 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.])  
   
244  # JACK  # JACK
245  PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false)  AC_ARG_ENABLE(jack-driver,
246  AC_SUBST(JACK_LIBS)    [  --disable-jack-driver
247  AC_SUBST(JACK_CFLAGS)                            Disable support for the Jack Audio Connection Kit
248  if test $HAVE_JACK = false; then                            (JACK).],
249      HAVE_JACK=0;    [config_jack_driver="$enableval"],
250      [config_jack_driver="yes"]
251    )
252    have_jack=0
253    if test "$config_jack_driver" = "yes"; then
254        PKG_CHECK_MODULES(JACK, jack, have_jack=1, have_jack=0)
255        if test $have_jack = "1"; then
256            AC_SUBST(JACK_LIBS)
257            AC_SUBST(JACK_CFLAGS)
258            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)
259            have_audio_output_driver="true";
260        fi
261  else  else
262      HAVE_JACK=1      echo "JACK support disabled by configure script parameter"
     have_audio_output_driver="true";  
     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)  
263  fi  fi
264  AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
265  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.])
266    
267    # ARTS
268    AC_ARG_ENABLE(arts-driver,
269      [  --disable-arts-driver
270                              Disable support for the Analogue Realtime System
271                              (aRts).],
272      [config_arts_driver="$enableval"],
273      [config_arts_driver="yes"]
274    )
275    have_arts=0
276    if test "$config_arts_driver" = "yes"; then
277        m4_ifdef([m4_include(m4/arts.m4)],,
278                 [sinclude([m4/arts.m4])])
279        AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0)
280        if test "$have_arts" = "1"; then
281            have_audio_output_driver="true"
282        fi
283    else
284        echo "ARTS support disabled by configure script parameter"
285    fi
286    AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
287    AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])
288    
289  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
290  AC_CHECK_HEADER(MidiShare.h,  AC_ARG_ENABLE(midishare-driver,
291      AC_CHECK_LIB(MidiShare, MidiCountEvs,    [  --disable-midishare-driver
292                              have_midishare=1,                            Disable support for the MidiShare system.],
293                              have_midishare=0    [config_midishare_driver="$enableval"],
294                  )    [config_midishare_driver="yes"]
295                  ,  )
296                  have_midishare=0  have_midishare=0
297  )  if test "$config_midishare_driver" = "yes"; then
298  if test "$have_midishare" = "1"; then      AC_CHECK_HEADER(MidiShare.h,
299      have_midi_input_driver="true"          AC_CHECK_LIB(MidiShare, MidiCountEvs,
300                                    have_midishare=1,
301                                    have_midishare=0
302                        )
303                        ,
304                        have_midishare=0
305        )
306        if test "$have_midishare" = "1"; then
307            have_midi_input_driver="true"
308        fi
309    else
310        echo "MidiShare support disabled by configure script parameter"
311  fi  fi
312  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")
313  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.])
314    
315  # CoreMIDI (OS X)  # CoreMIDI (OS X)
316  AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h,  AC_ARG_ENABLE(coremidi-driver,
317                  have_coremidi=1,    [  --disable-coremidi-driver
318                  have_coremidi=0                            Disable support for the Apple CoreMIDI system.],
319  )    [config_coremidi_driver="$enableval"],
320  if test "$have_coremidi" = "1"; then    [config_coremidi_driver="yes"]
321      have_midi_input_driver="true"  )
322    have_coremidi=0
323    if test "$config_coremidi_driver" = "yes"; then
324        AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h,
325            have_coremidi=1,
326            have_coremidi=0
327        )
328        if test "$have_coremidi" = "1"; then
329            have_midi_input_driver="true"
330        fi
331    else
332        echo "CoreMIDI support disabled by configure script parameter"
333  fi  fi
334  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
335  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.])
336    
337    # have we found at least one MIDI input and one audio output driver ?
338    if test "$have_midi_input_driver" = "false"; then
339        echo "No supported MIDI input system found!"
340        echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
341        echo "ALSA, MIDIShare, CoreMIDI."
342        echo "If you think you have one of those available on your system, make sure you"
343        echo "also have the respective development (header) files installed."
344        exit -1;
345    fi
346    if test "$have_audio_output_driver" = "false"; then
347        echo "No supported audio output system found!"
348        echo "Sorry, LinuxSampler only supports ALSA, JACK and ARTS as audio output"
349        echo "driver at the moment!"
350        exit -1;
351    fi
352    
353    
354    
355    ###########################################################################
356    # Checks for various DLL libraries
357    
358  # Check presence of libgig  # Check presence of libgig
359  libgig_version="2.0.1"  libgig_version="3.2.0"
360  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)
361  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
362      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 224  fi Line 368  fi
368  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
369  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
370    
371  # SQLITE3  # Instruments DB feature (requires SQLite 3.3)
372  PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false)  AC_ARG_ENABLE(instruments-db,
373  AC_SUBST(SQLITE3_LIBS)    [  --disable-instruments-db
374  AC_SUBST(SQLITE3_CFLAGS)                            Disable compilation of the sampler's instruments
375  if test $HAVE_SQLITE3 = false; then                            database feature. You need to have SQLite 3.3
376      HAVE_SQLITE3=0;                            or younger installed for this feature.],
377      echo "no, support for instrument DB will be disabled!"    [config_instruments_db="$enableval"],
378      [config_instruments_db="yes"]
379    )
380    HAVE_SQLITE3=0;
381    if test "$config_instruments_db" = "yes"; then
382        # Check presence of sqlite3
383        sqlite_version="3.3"
384        PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false)
385        AC_SUBST(SQLITE3_LIBS)
386        AC_SUBST(SQLITE3_CFLAGS)
387        if test $HAVE_SQLITE3 = false; then
388            HAVE_SQLITE3=0
389            config_instruments_db="no"
390            echo "*** Required sqlite version not found!"
391            echo "*** You need to have sqlite version ${sqlite_version} or higher"
392            echo "*** for instruments database support to be enabled."
393            echo "*** Support for instruments DB will be disabled!"
394        else
395            HAVE_SQLITE3=1
396        fi
397  else  else
398      HAVE_SQLITE3=1      echo "Instruments DB feature disabled by configure script parameter"
     echo "yes"  
399  fi  fi
400  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)
401  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.])
402    
 if test "$have_midi_input_driver" = "false"; then  
     echo "No supported MIDI input system found!"  
     echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"  
     echo "ALSA, MIDIShare, CoreMIDI."  
     echo "If you think you have one of those available on your system, make sure you"  
     echo "also have the respective development (header) files installed."  
     exit -1;  
 fi  
 if test "$have_audio_output_driver" = "false"; then  
     echo "No supported audio output system found!"  
     echo "Sorry, LinuxSampler only supports ALSA and JACK as audio output driver at the moment!"  
     exit -1;  
 fi  
403    
404    
405  ###########################################################################  ###########################################################################
# Line 260  fi Line 409  fi
409    
410  AC_ARG_ENABLE(asm,  AC_ARG_ENABLE(asm,
411    [  --disable-asm    [  --disable-asm
412                            Disable hand-crafted assembly optimizations                            Enable hand-crafted assembly optimizations
413                            (default=on). LinuxSampler provides CPU specific                            (default=on). LinuxSampler provides CPU specific
414                            assembly optimizations for the most important                            assembly optimizations. This is currently limited
415                            synthesis algorithms. You usually don't want to                            to just enter a fast (denormal) FPU mode on x86
416                            disable that.],                            platforms. There are currently no synthesis core
417    [config_asm="no"],                            assembly optimizations anymore since LS 0.4.0],
418      [config_asm="$enableval"],
419    [config_asm="yes"]    [config_asm="yes"]
420  )  )
421  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
422    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.])
423  fi  fi
424    
425  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
426    [  --enable-dev-mode    [  --enable-dev-mode
427                            Enable development mode (default=no). In that mode                            Enable development mode (default=off). In that mode
428                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
429                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
430                            efficiency a bit],                            efficiency a bit],
431    [config_dev_mode="yes"],    [config_dev_mode="$enableval"],
432    [config_dev_mode="no"]    [config_dev_mode="no"]
433  )  )
434  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
# Line 306  AC_ARG_ENABLE(rt-exceptions, Line 456  AC_ARG_ENABLE(rt-exceptions,
456                            context as well. Otherwise if disabled                            context as well. Otherwise if disabled
457                            segmentation faults will be forced by the                            segmentation faults will be forced by the
458                            application on critical errors.],                            application on critical errors.],
459    [config_rt_exceptions="yes"],    [config_rt_exceptions="$enableval"],
460    [config_rt_exceptions="no"]    [config_rt_exceptions="no"]
461  )  )
462  if test "$config_rt_exceptions" = "yes"; then  if test "$config_rt_exceptions" = "yes"; then
# Line 436  AC_ARG_ENABLE(max-voices, Line 586  AC_ARG_ENABLE(max-voices,
586  )  )
587  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])
588    
589    AC_ARG_ENABLE(subfragment-size,
590      [  --enable-subfragment-size
591                              Every audio fragment will be splitted into
592                              subfragments. Where each subfragment renders
593                              audio with constant synthesis parameters. This is
594                              done for efficiency reasons. This parameter
595                              defines the default size of a subfragment in
596                              sample points. A large value means less CPU time
597                              whereas a low value means better audio quality
598                              (default=32).],
599      [config_subfragment_size="${enableval}"],
600      [config_subfragment_size="32"]
601    )
602    AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).])
603    
604    AC_ARG_ENABLE(global-attenuation-default,
605      [  --enable-global-attenuation-default
606                              To prevent clipping all samples will be lowered
607                              in amplitude by this given default factor (can
608                              be overridden at runtime).
609                              (default=0.35)],
610      [config_global_attenuation_default="${enableval}"],
611      [config_global_attenuation_default="0.35"]
612    )
613    AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION_DEFAULT, $config_global_attenuation_default, [Define default global volume attenuation (as floating point factor).])
614    
615  AC_ARG_ENABLE(voice-steal-algo,  AC_ARG_ENABLE(voice-steal-algo,
616    [  --enable-voice-steal-algo    [  --enable-voice-steal-algo
617                            Voice stealing algorithm to be used. Currently                            Voice stealing algorithm to be used. Currently
# Line 469  AC_ARG_ENABLE(sysex-buffer-size, Line 645  AC_ARG_ENABLE(sysex-buffer-size,
645  )  )
646  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.])
647    
 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.])  
   
648  AC_ARG_ENABLE(force-filter,  AC_ARG_ENABLE(force-filter,
649    [  --enable-force-filter    [  --enable-force-filter
650                            If enabled will force filter to be used even if                            If enabled will force filter to be used even if
651                            no usage was define in instrument patch files.                            no usage was define in instrument patch files.
652                            (default=no).],                            (default=no).],
653    [config_force_filter="yes"],    [config_force_filter="$enableval"],
654    [config_force_filter="no"]    [config_force_filter="no"]
655  )  )
656  if test "$config_force_filter" = "yes"; then  if test "$config_force_filter" = "yes"; then
# Line 576  AC_ARG_ENABLE(gs-checksum, Line 740  AC_ARG_ENABLE(gs-checksum,
740                            messages which do not provide a correct checksum                            messages which do not provide a correct checksum
741                            will be ignored. This is disabled by default as                            will be ignored. This is disabled by default as
742                            not all devices honor GS checksums.],                            not all devices honor GS checksums.],
743    [config_assert_gs_sysex_checksum="yes"],    [config_assert_gs_sysex_checksum="$enableval"],
744    [config_assert_gs_sysex_checksum="no"]    [config_assert_gs_sysex_checksum="no"]
745  )  )
746  if test "config_assert_gs_sysex_checksum" = "yes"; then  if test "config_assert_gs_sysex_checksum" = "yes"; then
747    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.])
748  fi  fi
749    
750    AC_ARG_ENABLE(portamento-time-min,
751      [  --enable-portamento-time-min
752                              Minimum Portamento time in seconds
753                              (default=0.1).],
754      [config_portamento_time_min="${enableval}"],
755      [config_portamento_time_min="0.1"]
756    )
757    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MIN, $config_portamento_time_min, [Define min. portamento time.])
758    
759    AC_ARG_ENABLE(portamento-time-max,
760      [  --enable-portamento-time-max
761                              Maximum Portamento time in seconds
762                              (default=32).],
763      [config_portamento_time_max="${enableval}"],
764      [config_portamento_time_max="32"]
765    )
766    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MAX, $config_portamento_time_max, [Define max. portamento time.])
767    
768    AC_ARG_ENABLE(portamento-time-default,
769      [  --enable-portamento-time-default
770                              Default Portamento time in seconds
771                              (default=1).],
772      [config_portamento_time_default="${enableval}"],
773      [config_portamento_time_default="1"]
774    )
775    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_DEFAULT, $config_portamento_time_default, [Define default portamento time.])
776    
777  AC_ARG_ENABLE(signed-triang-algo,  AC_ARG_ENABLE(signed-triang-algo,
778    [  --enable-signed-triang-algo    [  --enable-signed-triang-algo
779                            Signed triangular wave algorithm to be used (e.g. for LFOs).                            Signed triangular wave algorithm to be used (e.g. for LFOs).
# Line 595  AC_ARG_ENABLE(signed-triang-algo, Line 786  AC_ARG_ENABLE(signed-triang-algo,
786                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
787                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
788                                perform better than integer math as it avoids                                perform better than integer math as it avoids
789                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
790                              diharmonic:                              diharmonic:
791                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
792                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 630  AC_ARG_ENABLE(unsigned-triang-algo, Line 820  AC_ARG_ENABLE(unsigned-triang-algo,
820                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
821                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
822                                perform better than integer math as it avoids                                perform better than integer math as it avoids
823                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
824                              diharmonic:                              diharmonic:
825                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
826                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 662  AC_ARG_ENABLE(process-muted-channels, Line 851  AC_ARG_ENABLE(process-muted-channels,
851                            will not discard notes, triggered in mute mode,                            will not discard notes, triggered in mute mode,
852                            when the channel is unmuted. But also will reduce                            when the channel is unmuted. But also will reduce
853                            the efficiency.],                            the efficiency.],
854    [config_process_muted_channels="yes"],    [config_process_muted_channels="$enableval"],
855    [config_process_muted_channels="no"]    [config_process_muted_channels="no"]
856  )  )
857  if test "$config_process_muted_channels" = "yes"; then  if test "$config_process_muted_channels" = "yes"; then
858    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.])
859  fi  fi
860    
861    AC_ARG_ENABLE(process-all-notes-off,
862      [  --disable-process-all-notes-off
863                              Disable interpretation of All-Notes-Off MIDI
864                              messages (default=on). By default LS will release
865                              all voices whenever it receives an All-Notes-Off
866                              MIDI message. You can disable this behavior, so
867                              that LS simply ignores such messages.],
868      [config_process_all_notes_off="$enableval"],
869      [config_process_all_notes_off="yes"]
870    )
871    if test "$config_process_all_notes_off" = "yes"; then
872      AC_DEFINE_UNQUOTED(CONFIG_PROCESS_ALL_NOTES_OFF, 1, [Define to 1 if you want to enable processing of All-Notes-Off MIDI messages.])
873    fi
874    
875    AC_ARG_ENABLE(interpolate-volume,
876      [  --disable-interpolate-volume
877                              Disable interpolation of volume modulation
878                              (default=on). With this enabled, the volume changes
879                              generated by for example the envelope generator
880                              will be smoother, minimizing the risk for audio
881                              clicks. Disable it to reduce CPU usage.],
882      [config_interpolate_volume="$enableval"],
883      [config_interpolate_volume="yes"]
884    )
885    if test "$config_interpolate_volume" = "yes"; then
886      AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])
887    fi
888    
889    AC_ARG_ENABLE(plugin-dir,
890      [  --enable-plugin-dir
891                              Directory where the sampler shall look for potential plugins,
892                              that is 3rd party shared libraries that should be loaded by
893                              the sampler on startup. By default the sampler will search
894                              for plugins in the subdirectory "plugins" below its own
895                              library directory.
896                              (i.e. /usr/local/lib/linuxsampler/plugins)],
897      [config_plugin_dir="${enableval}"],
898      [config_plugin_dir="${libdir}/linuxsampler/plugins"]
899    )
900    AC_SUBST(config_plugin_dir)
901    
902    AC_ARG_ENABLE(default-instruments-db-location,
903      [  --enable-default-instruments-db-location
904                              Only when instruments DB feature is enabled: file name
905                              which shall be taken as default location of the
906                              instruments DB file. This location can still be
907                              overridden at runtime with a command line switch.
908                              (default: /var/lib/linuxsampler/instruments.db)],
909      [config_default_instruments_db_file="${enableval}"],
910      [config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db"]
911    )
912    AC_DEFINE_UNQUOTED(
913        CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION,
914        "$config_default_instruments_db_file",
915        [Only when instruments DB feature is enabled: default location of the DB file.]
916    )
917    AC_SUBST(config_default_instruments_db_file)
918    
919    
920  ###########################################################################  ###########################################################################
921  # Automatic Benchmarks (to detect the best algorithms for the system)  # Automatic Benchmarks (to detect the best algorithms for the system)
# Line 681  if test "$config_signed_triang_algo" = " Line 928  if test "$config_signed_triang_algo" = "
928      AC_TRY_RUN([      AC_TRY_RUN([
929              #define SIGNED 1              #define SIGNED 1
930              #define SILENT 1              #define SILENT 1
931              #include "benchmarks/triang.cpp"              #include "${srcdir}/benchmarks/triang.cpp"
932          ],          ],
933          triang_signed=0,          triang_signed=0,
934          triang_signed=$?,          triang_signed=$?,
# Line 703  if test "$config_signed_triang_algo" = " Line 950  if test "$config_signed_triang_algo" = "
950          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
951          exit -1;          exit -1;
952      fi      fi
953    else
954        case "$config_signed_triang_algo" in
955            intmath)
956                triang_signed=2 ;;
957            diharmonic)
958                triang_signed=3 ;;
959            intmathabs)
960                triang_signed=5 ;;
961        esac
962  fi  fi
963  AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, signed_triang_algo_${config_signed_triang_algo}, [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.])
964    
965  if test "$config_unsigned_triang_algo" = "benchmark"; then  if test "$config_unsigned_triang_algo" = "benchmark"; then
966      echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... "      echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... "
# Line 712  if test "$config_unsigned_triang_algo" = Line 968  if test "$config_unsigned_triang_algo" =
968      AC_TRY_RUN([      AC_TRY_RUN([
969              #define SIGNED 0              #define SIGNED 0
970              #define SILENT 1              #define SILENT 1
971              #include "benchmarks/triang.cpp"              #include "${srcdir}/benchmarks/triang.cpp"
972          ],          ],
973          triang_unsigned=0,          triang_unsigned=0,
974          triang_unsigned=$?,          triang_unsigned=$?,
# Line 725  if test "$config_unsigned_triang_algo" = Line 981  if test "$config_unsigned_triang_algo" =
981          config_unsigned_triang_algo="diharmonic"          config_unsigned_triang_algo="diharmonic"
982          echo "di harmonics"          echo "di harmonics"
983      elif test "$triang_unsigned" = "5"; then      elif test "$triang_unsigned" = "5"; then
984          config_signed_triang_algo="intmathabs"          config_unsigned_triang_algo="intmathabs"
985          echo "integer math using abs()"          echo "integer math using abs()"
986      else      else
987          echo "Benchmark of unsigned triangular wave algorithms failed!"          echo "Benchmark of unsigned triangular wave algorithms failed!"
# Line 734  if test "$config_unsigned_triang_algo" = Line 990  if test "$config_unsigned_triang_algo" =
990          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
991          exit -1;          exit -1;
992      fi      fi
993    else
994        case "$config_unsigned_triang_algo" in
995            intmath)
996                triang_unsigned=2 ;;
997            diharmonic)
998                triang_unsigned=3 ;;
999            intmathabs)
1000                triang_unsigned=5 ;;
1001        esac
1002  fi  fi
1003  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, unsigned_triang_algo_${config_unsigned_triang_algo}, [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.])
1004    
1005  AC_LANG_RESTORE  AC_LANG_RESTORE
1006    
# Line 765  AC_OUTPUT( \ Line 1030  AC_OUTPUT( \
1030      man/Makefile \      man/Makefile \
1031      man/linuxsampler.1 \      man/linuxsampler.1 \
1032      src/Makefile \      src/Makefile \
1033        src/db/Makefile \
1034      src/network/Makefile \      src/network/Makefile \
1035      src/engines/Makefile \      src/engines/Makefile \
1036      src/engines/gig/Makefile \      src/engines/gig/Makefile \
1037      src/engines/common/Makefile \      src/engines/common/Makefile \
1038      src/common/Makefile src/lib/Makefile \      src/common/Makefile \
     src/lib/fileloader/Makefile \  
     src/lib/fileloader/libgig/Makefile \  
1039      src/testcases/Makefile \      src/testcases/Makefile \
1040      src/drivers/Makefile \      src/drivers/Makefile \
1041      src/drivers/audio/Makefile \      src/drivers/audio/Makefile \
1042      src/drivers/midi/Makefile \      src/drivers/midi/Makefile \
1043        src/plugins/Makefile \
1044      linuxsampler.spec \      linuxsampler.spec \
1045      debian/Makefile \      debian/Makefile \
1046      Artwork/Makefile \      Artwork/Makefile \
1047      scripts/Makefile \      scripts/Makefile \
1048      osx/Makefile \      osx/Makefile \
1049      osx/LinuxSampler.xcode/Makefile \      osx/linuxsampler.xcodeproj/Makefile \
1050      Documentation/Makefile \      Documentation/Makefile \
1051      Documentation/Engines/Makefile \      Documentation/Engines/Makefile \
1052      Documentation/Engines/gig/Makefile \      Documentation/Engines/gig/Makefile \
# Line 789  AC_OUTPUT( \ Line 1054  AC_OUTPUT( \
1054      Doxyfile \      Doxyfile \
1055  )  )
1056    
1057    # resolve all nested variables in '${config_plugin_dir}'
1058    # (merely for providing a human readable summary below)
1059    while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do
1060            config_plugin_dir=`eval echo ${config_plugin_dir}`
1061    done
1062    
1063    
1064  ###########################################################################  ###########################################################################
1065  # Output All Configuration Options  # Output All Configuration Options
# Line 812  echo "# Maximum Stream Refill Size: ${co Line 1083  echo "# Maximum Stream Refill Size: ${co
1083  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
1084  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Maximum Disk Streams: ${config_max_streams}"
1085  echo "# Maximum Voices: ${config_max_voices}"  echo "# Maximum Voices: ${config_max_voices}"
1086    echo "# Default Subfragment Size: ${config_subfragment_size}"
1087    echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"
1088  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
1089  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"
1090  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"
1091  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"
1092  echo "# Filter Update Steps: ${config_filter_update_steps}"  echo "# Min. Portamento Time: ${config_portamento_time_min} s"
1093    echo "# Max. Portamento Time: ${config_portamento_time_max} s"
1094    echo "# Default Portamento Time: ${config_portamento_time_default} s"
1095  echo "# Force Filter Usage: ${config_force_filter}"  echo "# Force Filter Usage: ${config_force_filter}"
1096  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"
1097  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"
# Line 825  echo "# Override Filter Resonance Contro Line 1100  echo "# Override Filter Resonance Contro
1100  echo "# Override Filter Type: ${config_override_filter_type}"  echo "# Override Filter Type: ${config_override_filter_type}"
1101  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
1102  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
1103    echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1104    echo "# Interpolate Volume: ${config_interpolate_volume}"
1105    echo "# Instruments database support: ${config_instruments_db}"
1106    if test "$config_instruments_db" = "yes"; then
1107    echo "# Instruments DB default location: ${config_default_instruments_db_file}"
1108    fi
1109    echo "# Plugin Path: ${config_plugin_dir}"
1110  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1111  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
1112  echo "#####################################################################"  echo "#####################################################################"

Legend:
Removed from v.720  
changed lines
  Added in v.1454

  ViewVC Help
Powered by ViewVC