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

Diff of /linuxsampler/trunk/configure.ac

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

revision 1049 by schoenebeck, Wed Feb 28 06:53:42 2007 UTC revision 1742 by schoenebeck, Wed May 28 04:00:48 2008 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=4  LINUXSAMPLER_RELEASE_MINOR=5
8  LINUXSAMPLER_RELEASE_BUILD=0.4cvs  LINUXSAMPLER_RELEASE_BUILD=1.5cvs
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=0.4cvs Line 24  LINUXSAMPLER_RELEASE_BUILD=0.4cvs
24  #  6. If any interfaces have been removed since the last public release, then set age  #  6. If any interfaces have been removed since the last public release, then set age
25  #     to 0.  #     to 0.
26    
27  LIBLINUXSAMPLER_LT_CURRENT=0  LIBLINUXSAMPLER_LT_CURRENT=2
28  LIBLINUXSAMPLER_LT_REVISION=0  LIBLINUXSAMPLER_LT_REVISION=0
29  LIBLINUXSAMPLER_LT_AGE=0  LIBLINUXSAMPLER_LT_AGE=1
30  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE"  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE"
31    
32  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
33  # the LSCP specification version this LinuSampler release complies with:  # the LSCP specification version this LinuSampler release complies with:
34    
35  LSCP_RELEASE_MAJOR=1  LSCP_RELEASE_MAJOR=1
36  LSCP_RELEASE_MINOR=2  LSCP_RELEASE_MINOR=4
37    
38  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.])  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.])  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  AM_PROG_LIBTOOL
43    
44  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
# Line 52  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 79  if ! echo "X $CXXFLAGS " | grep -q -- " Line 81  if ! echo "X $CXXFLAGS " | grep -q -- "
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 101  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 114  fi Line 124  fi
124  # check for <features.h>  # check for <features.h>
125  AC_CHECK_HEADERS(features.h)  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    # FIXME: this is actually a dependency of libgig, not of LS directly, why
166    # isn't it hidden by libgig?
167    AC_CHECK_HEADERS(uuid/uuid.h)
168    AC_SEARCH_LIBS(uuid_generate, uuid)
169    
170    
171    
172  ###########################################################################  ###########################################################################
173  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers
# Line 127  AC_ARG_ENABLE(alsa-driver, Line 181  AC_ARG_ENABLE(alsa-driver,
181    [  --disable-alsa-driver    [  --disable-alsa-driver
182                            Disable support for the Advanced Linux Sound                            Disable support for the Advanced Linux Sound
183                            Architecture (ALSA).],                            Architecture (ALSA).],
184    [config_alsa_driver="no"],    [config_alsa_driver="$enableval"],
185    [config_alsa_driver="yes"]    [config_alsa_driver="yes"]
186  )  )
187  have_alsa=0  have_alsa=0
# Line 207  AC_ARG_ENABLE(jack-driver, Line 261  AC_ARG_ENABLE(jack-driver,
261    [  --disable-jack-driver    [  --disable-jack-driver
262                            Disable support for the Jack Audio Connection Kit                            Disable support for the Jack Audio Connection Kit
263                            (JACK).],                            (JACK).],
264    [config_jack_driver="no"],    [config_jack_driver="$enableval"],
265    [config_jack_driver="yes"]    [config_jack_driver="yes"]
266  )  )
267  have_jack=0  have_jack=0
# Line 225  fi Line 279  fi
279  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
280  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.])
281    
282    # JACK MIDI
283    have_jack_midi=0
284    if test $have_jack = "1"; then
285        linuxsampler_save_CFLAGS=$CFLAGS
286        linuxsampler_save_LIBS=$LIBS
287        CFLAGS="$JACK_CFLAGS $CFLAGS"
288        LIBS="$JACK_LIBS $LIBS"
289        AC_CHECK_HEADER(jack/midiport.h, have_jack_midi=1, have_jack_midi=0)
290        if test $have_jack_midi = "1"; then
291            AC_CHECK_FUNCS(jack_midi_get_event_count)
292            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jack/midiport.h>]], [[
293                jack_midi_clear_buffer(0, 0);
294            ]])], [AC_DEFINE(JACK_MIDI_FUNCS_NEED_NFRAMES, 1,
295                      [Define to 1 if you have the old jack midi functions that need an nframes argument.])])
296            have_midi_input_driver="true"
297        fi
298        CFLAGS=$linuxsampler_save_CFLAGS
299        LIBS=$linuxsampler_save_LIBS
300    fi
301    AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")
302    AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,
303                       [Define to 1 if you have JACK with MIDI support installed.])
304    
305  # ARTS  # ARTS
306  AC_ARG_ENABLE(arts-driver,  AC_ARG_ENABLE(arts-driver,
307    [  --disable-arts-driver    [  --disable-arts-driver
308                            Disable support for the Analogue Realtime System                            Disable support for the Analogue Realtime System
309                            (aRts).],                            (aRts).],
310    [config_arts_driver="no"],    [config_arts_driver="$enableval"],
311    [config_arts_driver="yes"]    [config_arts_driver="yes"]
312  )  )
313  have_arts=0  have_arts=0
# Line 247  fi Line 324  fi
324  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
325  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])
326    
327    # ASIO AUDIO (Win32)
328    AC_ARG_ENABLE(asiosdk-dir,
329      [  --enable-asiosdk-dir
330                              Directory where the ASIO SDK is located, this automatically
331                              enables the compilation of the ASIO audio output driver.],
332      [config_asiosdk_dir="${enableval}"],
333      [config_asiosdk_dir="."]
334    )
335    AC_SUBST(config_asiosdk_dir)
336    
337    AC_ARG_ENABLE(asio-driver,
338      [  --disable-asio-driver
339                              Disable support for the Windows ASIO driver.],
340      [config_asio_driver="$enableval"],
341      [config_asio_driver="yes"]
342    )
343    have_asio=0
344    ASIOSDK_BASEDIR=
345    if test "$config_asio_driver" = "yes"; then
346        asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h
347        echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...."
348        if test -e $asiosdk_headerfile ; then
349            echo yes
350            have_asio=1
351            ASIOSDK_BASEDIR="$config_asiosdk_dir"
352        else
353            echo no
354            have_asio=0
355        fi
356        if test "$have_asio" = "1"; then
357            have_audio_output_driver="true"
358        fi
359    else
360        echo "Windows ASIO support disabled by configure script parameter"
361    fi
362    AC_SUBST(ASIOSDK_BASEDIR)
363    AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")
364    AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.])
365    
366  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
367  AC_ARG_ENABLE(midishare-driver,  AC_ARG_ENABLE(midishare-driver,
368    [  --disable-midishare-driver    [  --disable-midishare-driver
369                            Disable support for the MidiShare system.],                            Disable support for the MidiShare system.],
370    [config_midishare_driver="no"],    [config_midishare_driver="$enableval"],
371    [config_midishare_driver="yes"]    [config_midishare_driver="yes"]
372  )  )
373  have_midishare=0  have_midishare=0
# Line 277  AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_ Line 393  AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_
393  AC_ARG_ENABLE(coremidi-driver,  AC_ARG_ENABLE(coremidi-driver,
394    [  --disable-coremidi-driver    [  --disable-coremidi-driver
395                            Disable support for the Apple CoreMIDI system.],                            Disable support for the Apple CoreMIDI system.],
396    [config_coremidi_driver="no"],    [config_coremidi_driver="$enableval"],
397    [config_coremidi_driver="yes"]    [config_coremidi_driver="yes"]
398  )  )
399  have_coremidi=0  have_coremidi=0
# Line 295  fi Line 411  fi
411  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
412  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.])
413    
414    # MME MIDI (Win32)
415    AC_ARG_ENABLE(mmemidi-driver,
416      [  --disable-mmemidi-driver
417                              Disable support for the Windows MME MIDI system.],
418      [config_mmemidi_driver="$enableval"],
419      [config_mmemidi_driver="yes"]
420    )
421    have_mmemidi=0
422    if test "$config_mmemidi_driver" = "yes"; then
423        AC_CHECK_HEADERS(mmsystem.h,
424            have_mmemidi=1,
425            have_mmemidi=0
426        )
427        if test "$have_mmemidi" = "1"; then
428            have_midi_input_driver="true"
429        fi
430    else
431        echo "MME MIDI support disabled by configure script parameter"
432    fi
433    AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")
434    AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])
435    
436    # have we found at least one MIDI input and one audio output driver ?
437    if test "$have_midi_input_driver" = "false"; then
438        echo "No supported MIDI input system found!"
439        echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
440        echo "ALSA, JACK, MIDIShare, CoreMIDI, MME."
441        echo "If you think you have one of those available on your system, make sure you"
442        echo "also have the respective development (header) files installed."
443        exit -1;
444    fi
445    if test "$have_audio_output_driver" = "false"; then
446        echo "No supported audio output system found!"
447        echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output"
448        echo "driver at the moment!"
449        exit -1;
450    fi
451    
452    
453    
454    ###########################################################################
455    # Checks for various DLL libraries
456    
457  # Check presence of libgig  # Check presence of libgig
458  libgig_version="3.1.0"  libgig_version="3.2.1"
459  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)
460  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
461      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 308  fi Line 467  fi
467  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
468  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
469    
470  # SQLITE3  # Instruments DB feature (requires SQLite 3.3)
471  PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false)  AC_ARG_ENABLE(instruments-db,
472  AC_SUBST(SQLITE3_LIBS)    [  --disable-instruments-db
473  AC_SUBST(SQLITE3_CFLAGS)                            Disable compilation of the sampler's instruments
474  if test $HAVE_SQLITE3 = false; then                            database feature. You need to have SQLite 3.3
475      HAVE_SQLITE3=0;                            or younger installed for this feature.],
476      echo "no, support for instrument DB will be disabled!"    [config_instruments_db="$enableval"],
477      [config_instruments_db="yes"]
478    )
479    HAVE_SQLITE3=0;
480    if test "$config_instruments_db" = "yes"; then
481        # Check presence of sqlite3
482        sqlite_version="3.3"
483        PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false)
484        AC_SUBST(SQLITE3_LIBS)
485        AC_SUBST(SQLITE3_CFLAGS)
486        if test $HAVE_SQLITE3 = false; then
487            HAVE_SQLITE3=0
488            config_instruments_db="no"
489            echo "*** Required sqlite version not found!"
490            echo "*** You need to have sqlite version ${sqlite_version} or higher"
491            echo "*** for instruments database support to be enabled."
492            echo "*** Support for instruments DB will be disabled!"
493        else
494            HAVE_SQLITE3=1
495        fi
496  else  else
497      HAVE_SQLITE3=1      echo "Instruments DB feature disabled by configure script parameter"
     echo "yes"  
498  fi  fi
499  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)
500  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.])
501    
 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  
502    
503    
504  ###########################################################################  ###########################################################################
# Line 343  fi Line 507  fi
507  # TODO: should we use AC_ARG_VAR(variable, description) instead?  # TODO: should we use AC_ARG_VAR(variable, description) instead?
508    
509  AC_ARG_ENABLE(asm,  AC_ARG_ENABLE(asm,
510    [  --enable-asm    [  --disable-asm
511                            Enable hand-crafted assembly optimizations                            Enable hand-crafted assembly optimizations
512                            (default=off). LinuxSampler provides CPU specific                            (default=on). LinuxSampler provides CPU specific
513                            assembly optimizations for the most important                            assembly optimizations. This is currently limited
514                            synthesis algorithms. This is currently disabled                            to just enter a fast (denormal) FPU mode on x86
515                            by default since current asm code is broken.],                            platforms. There are currently no synthesis core
516    [config_asm="yes"],                            assembly optimizations anymore since LS 0.4.0],
517    [config_asm="no"]    [config_asm="$enableval"],
518      [config_asm="yes"]
519  )  )
520  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
521    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.])
522  fi  fi
523    
524  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
525    [  --disable-dev-mode    [  --enable-dev-mode
526                            Disable development mode (default=on). In that mode                            Enable development mode (default=off). In that mode
527                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
528                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
529                            efficiency a bit],                            efficiency a bit],
530    [config_dev_mode="no"],    [config_dev_mode="$enableval"],
531    [config_dev_mode="yes"]    [config_dev_mode="no"]
532  )  )
533  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
534    AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.])    AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.])
# Line 390  AC_ARG_ENABLE(rt-exceptions, Line 555  AC_ARG_ENABLE(rt-exceptions,
555                            context as well. Otherwise if disabled                            context as well. Otherwise if disabled
556                            segmentation faults will be forced by the                            segmentation faults will be forced by the
557                            application on critical errors.],                            application on critical errors.],
558    [config_rt_exceptions="yes"],    [config_rt_exceptions="$enableval"],
559    [config_rt_exceptions="no"]    [config_rt_exceptions="no"]
560  )  )
561  if test "$config_rt_exceptions" = "yes"; then  if test "$config_rt_exceptions" = "yes"; then
562    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.])
563  fi  fi
564    
565    AC_ARG_ENABLE(pthread-testcancel,
566      [  --enable-pthread-testcancel
567                              Enable pthread_testcancel() calls and avoid asynchronous
568                              cancel of pthreads (default=no).],
569      [config_pthread_testcancel="$enableval"],
570      [config_pthread_testcancel="no"]
571    )
572    if test "$config_pthread_testcancel" = "yes"; then
573      AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])
574    fi
575    
576  AC_ARG_ENABLE(preload-samples,  AC_ARG_ENABLE(preload-samples,
577    [  --enable-preload-samples    [  --enable-preload-samples
578                            Due to seeking and latency issues with hard drives                            Due to seeking and latency issues with hard drives
# Line 584  AC_ARG_ENABLE(force-filter, Line 760  AC_ARG_ENABLE(force-filter,
760                            If enabled will force filter to be used even if                            If enabled will force filter to be used even if
761                            no usage was define in instrument patch files.                            no usage was define in instrument patch files.
762                            (default=no).],                            (default=no).],
763    [config_force_filter="yes"],    [config_force_filter="$enableval"],
764    [config_force_filter="no"]    [config_force_filter="no"]
765  )  )
766  if test "$config_force_filter" = "yes"; then  if test "$config_force_filter" = "yes"; then
# Line 674  AC_ARG_ENABLE(gs-checksum, Line 850  AC_ARG_ENABLE(gs-checksum,
850                            messages which do not provide a correct checksum                            messages which do not provide a correct checksum
851                            will be ignored. This is disabled by default as                            will be ignored. This is disabled by default as
852                            not all devices honor GS checksums.],                            not all devices honor GS checksums.],
853    [config_assert_gs_sysex_checksum="yes"],    [config_assert_gs_sysex_checksum="$enableval"],
854    [config_assert_gs_sysex_checksum="no"]    [config_assert_gs_sysex_checksum="no"]
855  )  )
856  if test "config_assert_gs_sysex_checksum" = "yes"; then  if test "config_assert_gs_sysex_checksum" = "yes"; then
# Line 720  AC_ARG_ENABLE(signed-triang-algo, Line 896  AC_ARG_ENABLE(signed-triang-algo,
896                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
897                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
898                                perform better than integer math as it avoids                                perform better than integer math as it avoids
899                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
900                              diharmonic:                              diharmonic:
901                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
902                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 755  AC_ARG_ENABLE(unsigned-triang-algo, Line 930  AC_ARG_ENABLE(unsigned-triang-algo,
930                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
931                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
932                                perform better than integer math as it avoids                                perform better than integer math as it avoids
933                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
934                              diharmonic:                              diharmonic:
935                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
936                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 787  AC_ARG_ENABLE(process-muted-channels, Line 961  AC_ARG_ENABLE(process-muted-channels,
961                            will not discard notes, triggered in mute mode,                            will not discard notes, triggered in mute mode,
962                            when the channel is unmuted. But also will reduce                            when the channel is unmuted. But also will reduce
963                            the efficiency.],                            the efficiency.],
964    [config_process_muted_channels="yes"],    [config_process_muted_channels="$enableval"],
965    [config_process_muted_channels="no"]    [config_process_muted_channels="no"]
966  )  )
967  if test "$config_process_muted_channels" = "yes"; then  if test "$config_process_muted_channels" = "yes"; then
# Line 801  AC_ARG_ENABLE(process-all-notes-off, Line 975  AC_ARG_ENABLE(process-all-notes-off,
975                            all voices whenever it receives an All-Notes-Off                            all voices whenever it receives an All-Notes-Off
976                            MIDI message. You can disable this behavior, so                            MIDI message. You can disable this behavior, so
977                            that LS simply ignores such messages.],                            that LS simply ignores such messages.],
978    [config_process_all_notes_off="no"],    [config_process_all_notes_off="$enableval"],
979    [config_process_all_notes_off="yes"]    [config_process_all_notes_off="yes"]
980  )  )
981  if test "$config_process_all_notes_off" = "yes"; then  if test "$config_process_all_notes_off" = "yes"; then
# Line 815  AC_ARG_ENABLE(interpolate-volume, Line 989  AC_ARG_ENABLE(interpolate-volume,
989                            generated by for example the envelope generator                            generated by for example the envelope generator
990                            will be smoother, minimizing the risk for audio                            will be smoother, minimizing the risk for audio
991                            clicks. Disable it to reduce CPU usage.],                            clicks. Disable it to reduce CPU usage.],
992    [config_interpolate_volume="no"],    [config_interpolate_volume="$enableval"],
993    [config_interpolate_volume="yes"]    [config_interpolate_volume="yes"]
994  )  )
995  if test "$config_interpolate_volume" = "yes"; then  if test "$config_interpolate_volume" = "yes"; then
996    AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])    AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])
997  fi  fi
998    
999    AC_ARG_ENABLE(plugin-dir,
1000      [  --enable-plugin-dir
1001                              Directory where the sampler shall look for potential plugins,
1002                              that is 3rd party shared libraries that should be loaded by
1003                              the sampler on startup. By default the sampler will search
1004                              for plugins in the subdirectory "plugins" below its own
1005                              library directory.
1006                              (i.e. /usr/local/lib/linuxsampler/plugins)],
1007      [config_plugin_dir="${enableval}"],
1008      [config_plugin_dir="${libdir}/linuxsampler/plugins"]
1009    )
1010    AC_SUBST(config_plugin_dir)
1011    
1012    AC_ARG_ENABLE(default-instruments-db-location,
1013      [  --enable-default-instruments-db-location
1014                              Only when instruments DB feature is enabled: file name
1015                              which shall be taken as default location of the
1016                              instruments DB file. This location can still be
1017                              overridden at runtime with a command line switch.
1018                              (default: /var/lib/linuxsampler/instruments.db)],
1019      [config_default_instruments_db_file="${enableval}"],
1020      [config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db"]
1021    )
1022    AC_DEFINE_UNQUOTED(
1023        CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION,
1024        "$config_default_instruments_db_file",
1025        [Only when instruments DB feature is enabled: default location of the DB file.]
1026    )
1027    AC_SUBST(config_default_instruments_db_file)
1028    
1029    
1030  ###########################################################################  ###########################################################################
1031  # Automatic Benchmarks (to detect the best algorithms for the system)  # Automatic Benchmarks (to detect the best algorithms for the system)
# Line 856  if test "$config_signed_triang_algo" = " Line 1060  if test "$config_signed_triang_algo" = "
1060          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
1061          exit -1;          exit -1;
1062      fi      fi
1063    else
1064        case "$config_signed_triang_algo" in
1065            intmath)
1066                triang_signed=2 ;;
1067            diharmonic)
1068                triang_signed=3 ;;
1069            intmathabs)
1070                triang_signed=5 ;;
1071        esac
1072  fi  fi
1073  AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.])  AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.])
1074    
# Line 887  if test "$config_unsigned_triang_algo" = Line 1100  if test "$config_unsigned_triang_algo" =
1100          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
1101          exit -1;          exit -1;
1102      fi      fi
1103    else
1104        case "$config_unsigned_triang_algo" in
1105            intmath)
1106                triang_unsigned=2 ;;
1107            diharmonic)
1108                triang_unsigned=3 ;;
1109            intmathabs)
1110                triang_unsigned=5 ;;
1111        esac
1112  fi  fi
1113  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.])  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.])
1114    
# Line 900  AM_CONFIG_HEADER(config.h) Line 1122  AM_CONFIG_HEADER(config.h)
1122  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD")  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD")
1123    
1124  AC_LANG_CPLUSPLUS  AC_LANG_CPLUSPLUS
 AC_PROG_CXX  
1125    
1126  # some gcc 4.0 versions need -msse for SSE register allocations  # some gcc 4.0 versions need -msse for SSE register allocations
1127  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
# Line 918  AC_OUTPUT( \ Line 1139  AC_OUTPUT( \
1139      man/Makefile \      man/Makefile \
1140      man/linuxsampler.1 \      man/linuxsampler.1 \
1141      src/Makefile \      src/Makefile \
1142        src/db/Makefile \
1143      src/network/Makefile \      src/network/Makefile \
1144      src/engines/Makefile \      src/engines/Makefile \
1145      src/engines/gig/Makefile \      src/engines/gig/Makefile \
1146      src/engines/common/Makefile \      src/engines/common/Makefile \
1147      src/common/Makefile src/lib/Makefile \      src/effects/Makefile \
1148      src/lib/fileloader/Makefile \      src/common/Makefile \
     src/lib/fileloader/libgig/Makefile \  
1149      src/testcases/Makefile \      src/testcases/Makefile \
1150      src/drivers/Makefile \      src/drivers/Makefile \
1151      src/drivers/audio/Makefile \      src/drivers/audio/Makefile \
1152      src/drivers/midi/Makefile \      src/drivers/midi/Makefile \
1153        src/plugins/Makefile \
1154      linuxsampler.spec \      linuxsampler.spec \
1155      debian/Makefile \      debian/Makefile \
1156      Artwork/Makefile \      Artwork/Makefile \
1157      scripts/Makefile \      scripts/Makefile \
1158      osx/Makefile \      osx/Makefile \
1159      osx/LinuxSampler.xcode/Makefile \      osx/linuxsampler.xcodeproj/Makefile \
1160      Documentation/Makefile \      Documentation/Makefile \
1161      Documentation/Engines/Makefile \      Documentation/Engines/Makefile \
1162      Documentation/Engines/gig/Makefile \      Documentation/Engines/gig/Makefile \
# Line 942  AC_OUTPUT( \ Line 1164  AC_OUTPUT( \
1164      Doxyfile \      Doxyfile \
1165  )  )
1166    
1167    # resolve all nested variables in '${config_plugin_dir}'
1168    # (merely for providing a human readable summary below)
1169    while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do
1170            config_plugin_dir=`eval echo ${config_plugin_dir}`
1171    done
1172    
1173    
1174  ###########################################################################  ###########################################################################
1175  # Output All Configuration Options  # Output All Configuration Options
# Line 984  echo "# Assert GS SysEx Checksum: ${conf Line 1212  echo "# Assert GS SysEx Checksum: ${conf
1212  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
1213  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1214  echo "# Interpolate Volume: ${config_interpolate_volume}"  echo "# Interpolate Volume: ${config_interpolate_volume}"
1215    echo "# Instruments database support: ${config_instruments_db}"
1216    if test "$config_instruments_db" = "yes"; then
1217    echo "# Instruments DB default location: ${config_default_instruments_db_file}"
1218    fi
1219    echo "# Plugin Path: ${config_plugin_dir}"
1220  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1221  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
1222  echo "#####################################################################"  echo "#####################################################################"

Legend:
Removed from v.1049  
changed lines
  Added in v.1742

  ViewVC Help
Powered by ViewVC