/[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 726 by schoenebeck, Mon Jul 25 15:13:59 2005 UTC revision 840 by persson, Sun Feb 26 13:00:08 2006 UTC
# Line 5  AC_INIT(configure.in) Line 5  AC_INIT(configure.in)
5    
6  LINUXSAMPLER_RELEASE_MAJOR=0  LINUXSAMPLER_RELEASE_MAJOR=0
7  LINUXSAMPLER_RELEASE_MINOR=3  LINUXSAMPLER_RELEASE_MINOR=3
8  LINUXSAMPLER_RELEASE_BUILD=3  LINUXSAMPLER_RELEASE_BUILD=3cvs
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 59  esac Line 59  esac
59  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.])
60    
61  # determine the right gcc switch for CPU specific optimizations  # determine the right gcc switch for CPU specific optimizations
62    # (only if the user did not provide one)
63  CXX_CPU_SWITCH=  CXX_CPU_SWITCH=
64  if test "$def_arch_x86" = 1; then  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then
65    CXX_CPU_SWITCH="-march=$target_cpu"    if test "$def_arch_x86" = 1; then
66  elif test "$target_cpu" = "powerpc"; then      CXX_CPU_SWITCH="-march=$target_cpu"
67    CXX_CPU_SWITCH="-arch=$target_cpu"    elif test "$target_cpu" = "powerpc"; then
68        CXX_CPU_SWITCH="-arch=$target_cpu"
69      fi
70  fi  fi
71  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
72    
# Line 99  if test "$have_unix98" = "no"; then Line 102  if test "$have_unix98" = "no"; then
102      fi      fi
103  fi  fi
104    
105    # check for <features.h>
106    AC_CHECK_HEADERS(features.h)
107    
108  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers
109  # (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)
110  have_midi_input_driver="false"  have_midi_input_driver="false"
# Line 185  fi Line 191  fi
191  AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)  AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)
192  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.])
193    
194    # ARTS
195    
196    m4_ifdef([m4_include(m4/arts.m4)],,
197            [sinclude([m4/arts.m4])])
198    
199    AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0)
200    if test "$have_arts" = "1"; then
201        have_audio_output_driver="true"
202    fi
203    AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
204    AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])
205    
206  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
207  AC_CHECK_HEADER(MidiShare.h,  AC_CHECK_HEADER(MidiShare.h,
208      AC_CHECK_LIB(MidiShare, MidiCountEvs,      AC_CHECK_LIB(MidiShare, MidiCountEvs,
# Line 212  AM_CONDITIONAL(HAVE_COREMIDI, test $have Line 230  AM_CONDITIONAL(HAVE_COREMIDI, test $have
230  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.])
231    
232  # Check presence of libgig  # Check presence of libgig
233  libgig_version="2.0.1"  libgig_version="2.0.2"
234  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)
235  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
236      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 259  fi Line 277  fi
277  # TODO: should we use AC_ARG_VAR(variable, description) instead?  # TODO: should we use AC_ARG_VAR(variable, description) instead?
278    
279  AC_ARG_ENABLE(asm,  AC_ARG_ENABLE(asm,
280    [  --disable-asm    [  --enable-asm
281                            Disable hand-crafted assembly optimizations                            Enable hand-crafted assembly optimizations
282                            (default=on). LinuxSampler provides CPU specific                            (default=off). LinuxSampler provides CPU specific
283                            assembly optimizations for the most important                            assembly optimizations for the most important
284                            synthesis algorithms. You usually don't want to                            synthesis algorithms. This is currently disabled
285                            disable that.],                            by default since current asm code is broken.],
286    [config_asm="no"],    [config_asm="yes"],
287    [config_asm="yes"]    [config_asm="no"]
288  )  )
289  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
290    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 hand-crafted asm optimizations.])
291  fi  fi
292    
293  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
294    [  --enable-dev-mode    [  --disable-dev-mode
295                            Enable development mode (default=no). In that mode                            Disable development mode (default=on). In that mode
296                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
297                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
298                            efficiency a bit],                            efficiency a bit],
299    [config_dev_mode="yes"],    [config_dev_mode="no"],
300    [config_dev_mode="no"]    [config_dev_mode="yes"]
301  )  )
302  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
303    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 436  AC_ARG_ENABLE(max-voices, Line 454  AC_ARG_ENABLE(max-voices,
454  )  )
455  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])
456    
457    AC_ARG_ENABLE(subfragment-size,
458      [  --enable-subfragment-size
459                              Every audio fragment will be splitted into
460                              subfragments. Where each subfragment renders
461                              audio with constant synthesis parameters. This is
462                              done for efficiency reasons. This parameter
463                              defines the default size of a subfragment in
464                              sample points. A large value means less CPU time
465                              whereas a low value means better audio quality
466                              (default=32).],
467      [config_subfragment_size="${enableval}"],
468      [config_subfragment_size="32"]
469    )
470    AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).])
471    
472    AC_ARG_ENABLE(global-attenuation,
473      [  --enable-global-attenuation
474                              To prevent clipping all samples will be lowered
475                              in amplitude by this given factor.
476                              (default=0.35)],
477      [config_global_attenuation="${enableval}"],
478      [config_global_attenuation="0.35"]
479    )
480    AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION, $config_global_attenuation, [Define global volume attenuation (as floating point factor).])
481    
482  AC_ARG_ENABLE(voice-steal-algo,  AC_ARG_ENABLE(voice-steal-algo,
483    [  --enable-voice-steal-algo    [  --enable-voice-steal-algo
484                            Voice stealing algorithm to be used. Currently                            Voice stealing algorithm to be used. Currently
# Line 469  AC_ARG_ENABLE(sysex-buffer-size, Line 512  AC_ARG_ENABLE(sysex-buffer-size,
512  )  )
513  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.])
514    
 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.])  
   
515  AC_ARG_ENABLE(force-filter,  AC_ARG_ENABLE(force-filter,
516    [  --enable-force-filter    [  --enable-force-filter
517                            If enabled will force filter to be used even if                            If enabled will force filter to be used even if
# Line 583  if test "config_assert_gs_sysex_checksum Line 614  if test "config_assert_gs_sysex_checksum
614    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.])
615  fi  fi
616    
617    AC_ARG_ENABLE(portamento-time-min,
618      [  --enable-portamento-time-min
619                              Minimum Portamento time in seconds
620                              (default=0.1).],
621      [config_portamento_time_min="${enableval}"],
622      [config_portamento_time_min="0.1"]
623    )
624    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MIN, $config_portamento_time_min, [Define min. portamento time.])
625    
626    AC_ARG_ENABLE(portamento-time-max,
627      [  --enable-portamento-time-max
628                              Maximum Portamento time in seconds
629                              (default=32).],
630      [config_portamento_time_max="${enableval}"],
631      [config_portamento_time_max="32"]
632    )
633    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MAX, $config_portamento_time_max, [Define max. portamento time.])
634    
635    AC_ARG_ENABLE(portamento-time-default,
636      [  --enable-portamento-time-default
637                              Default Portamento time in seconds
638                              (default=1).],
639      [config_portamento_time_default="${enableval}"],
640      [config_portamento_time_default="1"]
641    )
642    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_DEFAULT, $config_portamento_time_default, [Define default portamento time.])
643    
644  AC_ARG_ENABLE(signed-triang-algo,  AC_ARG_ENABLE(signed-triang-algo,
645    [  --enable-signed-triang-algo    [  --enable-signed-triang-algo
646                            Signed triangular wave algorithm to be used (e.g. for LFOs).                            Signed triangular wave algorithm to be used (e.g. for LFOs).
# Line 669  if test "$config_process_muted_channels" Line 727  if test "$config_process_muted_channels"
727    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.])
728  fi  fi
729    
730    AC_ARG_ENABLE(interpolate-volume,
731      [  --disable-interpolate-volume
732                              Disable interpolation of volume modulation
733                              (default=on). With this enabled, the volume changes
734                              generated by for example the envelope generator
735                              will be smoother, minimizing the risk for audio
736                              clicks. Disable it to reduce CPU usage.],
737      [config_interpolate_volume="no"],
738      [config_interpolate_volume="yes"]
739    )
740    if test "$config_interpolate_volume" = "yes"; then
741      AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])
742    fi
743    
744    
745  ###########################################################################  ###########################################################################
746  # 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 753  if test "$config_signed_triang_algo" = "
753      AC_TRY_RUN([      AC_TRY_RUN([
754              #define SIGNED 1              #define SIGNED 1
755              #define SILENT 1              #define SILENT 1
756              #include "benchmarks/triang.cpp"              #include "${srcdir}/benchmarks/triang.cpp"
757          ],          ],
758          triang_signed=0,          triang_signed=0,
759          triang_signed=$?,          triang_signed=$?,
# Line 704  if test "$config_signed_triang_algo" = " Line 776  if test "$config_signed_triang_algo" = "
776          exit -1;          exit -1;
777      fi      fi
778  fi  fi
779  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.])
780    
781  if test "$config_unsigned_triang_algo" = "benchmark"; then  if test "$config_unsigned_triang_algo" = "benchmark"; then
782      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 784  if test "$config_unsigned_triang_algo" =
784      AC_TRY_RUN([      AC_TRY_RUN([
785              #define SIGNED 0              #define SIGNED 0
786              #define SILENT 1              #define SILENT 1
787              #include "benchmarks/triang.cpp"              #include "${srcdir}/benchmarks/triang.cpp"
788          ],          ],
789          triang_unsigned=0,          triang_unsigned=0,
790          triang_unsigned=$?,          triang_unsigned=$?,
# Line 735  if test "$config_unsigned_triang_algo" = Line 807  if test "$config_unsigned_triang_algo" =
807          exit -1;          exit -1;
808      fi      fi
809  fi  fi
810  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.])
811    
812  AC_LANG_RESTORE  AC_LANG_RESTORE
813    
# Line 812  echo "# Maximum Stream Refill Size: ${co Line 884  echo "# Maximum Stream Refill Size: ${co
884  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
885  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Maximum Disk Streams: ${config_max_streams}"
886  echo "# Maximum Voices: ${config_max_voices}"  echo "# Maximum Voices: ${config_max_voices}"
887    echo "# Default Subfragment Size: ${config_subfragment_size}"
888    echo "# Global Volume Attenuation: ${config_global_attenuation}"
889  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
890  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"
891  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"
892  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"
893  echo "# Filter Update Steps: ${config_filter_update_steps}"  echo "# Min. Portamento Time: ${config_portamento_time_min} s"
894    echo "# Max. Portamento Time: ${config_portamento_time_max} s"
895    echo "# Default Portamento Time: ${config_portamento_time_default} s"
896  echo "# Force Filter Usage: ${config_force_filter}"  echo "# Force Filter Usage: ${config_force_filter}"
897  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"
898  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 901  echo "# Override Filter Resonance Contro
901  echo "# Override Filter Type: ${config_override_filter_type}"  echo "# Override Filter Type: ${config_override_filter_type}"
902  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
903  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
904    echo "# Interpolate Volume: ${config_interpolate_volume}"
905  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
906  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
907  echo "#####################################################################"  echo "#####################################################################"

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

  ViewVC Help
Powered by ViewVC