/[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 554 by schoenebeck, Thu May 19 19:25:14 2005 UTC revision 685 by persson, Tue Jul 5 19:30:37 2005 UTC
# Line 150  fi Line 150  fi
150  AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)  AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)
151  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.])
152    
153    # MidiShare (Linux, OS X, Windows)
154    AC_CHECK_HEADER(MidiShare.h,
155        AC_CHECK_LIB(MidiShare, MidiCountEvs,
156                                have_midishare=1,
157                                have_midishare=0
158                    )
159                    ,
160                    have_midishare=0
161    )
162    if test "$have_midishare" = "1"; then
163        have_midi_input_driver="true"
164    fi
165    AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")
166    AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_midishare,[Define to 1 if you have MidiShare installed.])
167    
168    # CoreMIDI (OS X)
169    AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h,
170                    have_coremidi=1,
171                    have_coremidi=0
172    )
173    if test "$have_coremidi" = "1"; then
174        have_midi_input_driver="true"
175    fi
176    AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
177    AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.])
178    
179  # Check presence of libgig  # Check presence of libgig
180  libgig_version="2.0.0"  libgig_version="2.0.1"
181  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)
182  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
183      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 175  AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQ Line 201  AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQ
201    
202  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
203      echo "No supported MIDI input system found!"      echo "No supported MIDI input system found!"
204      echo "Sorry, LinuxSampler only supports ALSA as MIDI input driver at the moment!"      echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
205        echo "ALSA, MIDIShare, CoreMIDI."
206        echo "If you think you have one of those available on your system, make sure you"
207        echo "also have the respective development (header) files installed."
208      exit -1;      exit -1;
209  fi  fi
210  if test "$have_audio_output_driver" = "false"; then  if test "$have_audio_output_driver" = "false"; then
# Line 190  fi Line 219  fi
219    
220  # TODO: should we use AC_ARG_VAR(variable, description) instead?  # TODO: should we use AC_ARG_VAR(variable, description) instead?
221    
222    AC_ARG_ENABLE(asm,
223      [  --disable-asm
224                              Disable hand-crafted assembly optimizations
225                              (default=on). LinuxSampler provides CPU specific
226                              assembly optimizations for the most important
227                              synthesis algorithms. You usually don't want to
228                              disable that.],
229      [config_asm="no"],
230      [config_asm="yes"]
231    )
232    if test "$config_asm" = "yes"; then
233      AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable hand-crafted asm optimizations.])
234    fi
235    
236  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
237    [  --enable-dev-mode    [  --enable-dev-mode
238                            Enable development mode (default=no). In that mode                            Enable development mode (default=no). In that mode
# Line 360  AC_ARG_ENABLE(voice-steal-algo, Line 403  AC_ARG_ENABLE(voice-steal-algo,
403                            available options:                            available options:
404                              none:                              none:
405                                Disable voice stealing completely.                                Disable voice stealing completely.
406                              oldestvoiceonkey:                              oldestvoiceonkey (default):
407                                Try to kill a voice on the same key first,                                Try to kill a voice on the same key first,
408                                if no success, proceed with the oldest key.                                if no success, proceed with the oldest key.
409                              oldestkey (default):                              oldestkey:
410                                Try to kill a voice from the oldest active                                Try to kill a voice from the oldest active
411                                key.],                                key.],
412    [ if test ! "(" "${enableval}" = "none" \    [ if test ! "(" "${enableval}" = "none" \
# Line 372  AC_ARG_ENABLE(voice-steal-algo, Line 415  AC_ARG_ENABLE(voice-steal-algo,
415        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])
416      else      else
417        config_voice_steal_algo="${enableval}"        config_voice_steal_algo="${enableval}"
418      fi        fi
419    ],    ],
420    [config_voice_steal_algo="oldestkey"]    [config_voice_steal_algo="oldestvoiceonkey"]
421  )  )
422  AC_DEFINE_UNQUOTED(CONFIG_VOICE_STEAL_ALGO, voice_steal_algo_${config_voice_steal_algo}, [Define voice stealing algorithm to be used.])  AC_DEFINE_UNQUOTED(CONFIG_VOICE_STEAL_ALGO, voice_steal_algo_${config_voice_steal_algo}, [Define voice stealing algorithm to be used.])
423    
# Line 479  AC_ARG_ENABLE(override-filter-type, Line 522  AC_ARG_ENABLE(override-filter-type,
522         config_override_filter_type="::gig::vcf_type_lowpassturbo"         config_override_filter_type="::gig::vcf_type_lowpassturbo"
523      elif test ! "${enableval}" = "no"; then      elif test ! "${enableval}" = "no"; then
524         AC_MSG_ERROR([Unknown filter type for parameter --enable-override-filter-type])         AC_MSG_ERROR([Unknown filter type for parameter --enable-override-filter-type])
525      fi        fi
526    ],    ],
527    [config_override_filter_type="no"]    [config_override_filter_type="no"]
528  )  )
# Line 487  if test ! "$config_override_filter_type" Line 530  if test ! "$config_override_filter_type"
530    AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_FILTER_TYPE, $config_override_filter_type, [Define to a filter type to always force that filter type.])    AC_DEFINE_UNQUOTED(CONFIG_OVERRIDE_FILTER_TYPE, $config_override_filter_type, [Define to a filter type to always force that filter type.])
531  fi  fi
532    
533    AC_ARG_ENABLE(gs-checksum,
534      [  --enable-gs-checksum
535                              Enable Roland General Synth SysEx checksum check
536                              (default=no). If this is enabled, all GS SysEx
537                              messages which do not provide a correct checksum
538                              will be ignored. This is disabled by default as
539                              not all devices honor GS checksums.],
540      [config_assert_gs_sysex_checksum="yes"],
541      [config_assert_gs_sysex_checksum="no"]
542    )
543    if test "config_assert_gs_sysex_checksum" = "yes"; then
544      AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.])
545    fi
546    
547    
548  ###########################################################################  ###########################################################################
549  # Create Build Files  # Create Build Files
550    
551  AM_CONFIG_HEADER(config.h)  AM_CONFIG_HEADER(config.h)
552  AM_INIT_AUTOMAKE(linuxsampler, 0.3.1)  AM_INIT_AUTOMAKE(linuxsampler, 0.3.2)
553    
554  AC_LANG_CPLUSPLUS  AC_LANG_CPLUSPLUS
555  AC_PROG_CXX  AC_PROG_CXX
556    
557    # some gcc 4.0 versions need -msse for SSE register allocations
558    if test "$config_asm" = "yes"; then
559      if test "$def_arch_x86" = 1; then
560        CXXFLAGS="$CXXFLAGS -msse"
561      fi
562    fi
563    
564  # 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
565  # this, the dlfcn.h check in am_prog_libtool may fail.  # this, the dlfcn.h check in am_prog_libtool may fail.
566  AC_CHECK_HEADER(stdlib.h)  AC_CHECK_HEADER(stdlib.h)
567    
568  AM_PROG_LIBTOOL  AM_PROG_LIBTOOL
569    
570  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)  AC_OUTPUT( \
571        Makefile \
572        man/Makefile \
573        man/linuxsampler.1 \
574        src/Makefile \
575        src/network/Makefile \
576        src/engines/Makefile \
577        src/engines/gig/Makefile \
578        src/engines/common/Makefile \
579        src/common/Makefile src/lib/Makefile \
580        src/lib/fileloader/Makefile \
581        src/lib/fileloader/libgig/Makefile \
582        src/testcases/Makefile \
583        src/drivers/Makefile \
584        src/drivers/audio/Makefile \
585        src/drivers/midi/Makefile \
586        linuxsampler.spec \
587        debian/Makefile \
588        Artwork/Makefile \
589        scripts/Makefile \
590        osx/Makefile \
591        osx/LinuxSampler.xcode/Makefile \
592        Documentation/Makefile \
593        Documentation/Engines/Makefile \
594        Documentation/Engines/gig/Makefile \
595    )
596    
597    
598  ###########################################################################  ###########################################################################
# Line 512  echo "" Line 602  echo ""
602  echo "#####################################################################"  echo "#####################################################################"
603  echo "# LinuxSampler Configuration                                        #"  echo "# LinuxSampler Configuration                                        #"
604  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
605    echo "# Assembly Optimizations: ${config_asm}"
606  echo "# Development Mode: ${config_dev_mode}"  echo "# Development Mode: ${config_dev_mode}"
607  echo "# Debug Level: ${config_debug_level}"  echo "# Debug Level: ${config_debug_level}"
608  echo "# Use Exceptions in RT Context: ${config_rt_exceptions}"  echo "# Use Exceptions in RT Context: ${config_rt_exceptions}"
# Line 526  echo "# Maximum Stream Refill Size: ${co Line 617  echo "# Maximum Stream Refill Size: ${co
617  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
618  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Maximum Disk Streams: ${config_max_streams}"
619  echo "# Maximum Voices: ${config_max_voices}"  echo "# Maximum Voices: ${config_max_voices}"
620    echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
621  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"
622  echo "# Filter Update Steps: ${config_filter_update_steps}"  echo "# Filter Update Steps: ${config_filter_update_steps}"
623  echo "# Force Filter Usage: ${config_force_filter}"  echo "# Force Filter Usage: ${config_force_filter}"
# Line 534  echo "# Filter Cutoff Maximum: ${config_ Line 626  echo "# Filter Cutoff Maximum: ${config_
626  echo "# Override Filter Cutoff Controller: ${config_override_cutoff_ctrl}"  echo "# Override Filter Cutoff Controller: ${config_override_cutoff_ctrl}"
627  echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}"  echo "# Override Filter Resonance Controller: ${config_override_resonance_ctrl}"
628  echo "# Override Filter Type: ${config_override_filter_type}"  echo "# Override Filter Type: ${config_override_filter_type}"
629    echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
630  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
631  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
632  echo "#####################################################################"  echo "#####################################################################"

Legend:
Removed from v.554  
changed lines
  Added in v.685

  ViewVC Help
Powered by ViewVC