/[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 1750 by schoenebeck, Thu Jul 10 15:00:38 2008 UTC revision 1895 by persson, Sun May 3 12:15:40 2009 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=5  LINUXSAMPLER_RELEASE_MINOR=5
8  LINUXSAMPLER_RELEASE_BUILD=1.6cvs  LINUXSAMPLER_RELEASE_BUILD=1.12cvs
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 39  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, $ Line 39  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, $
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  AC_PROG_CXX
42    AC_LIBTOOL_WIN32_DLL
43  AM_PROG_LIBTOOL  AM_PROG_LIBTOOL
44    
45  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
46  AC_SUBST(SHARED_VERSION_INFO)  AC_SUBST(SHARED_VERSION_INFO)
47    
48  AC_C_BIGENDIAN  AC_C_BIGENDIAN
49  AC_CANONICAL_SYSTEM  AC_CANONICAL_HOST
   
 AC_SUBST(target)  
 AC_SUBST(target_alias)  
 AC_SUBST(target_cpu)  
 AC_SUBST(target_os)  
 AC_SUBST(target_vendor)  
50    
51  PKG_PROG_PKG_CONFIG  PKG_PROG_PKG_CONFIG
52    
# Line 60  PKG_PROG_PKG_CONFIG Line 55  PKG_PROG_PKG_CONFIG
55    
56  AC_MSG_CHECKING([whether x86 architecture])  AC_MSG_CHECKING([whether x86 architecture])
57  def_arch_x86=0  def_arch_x86=0
58  case $target_cpu in  case $host_cpu in
59    "i386" | "i486" | "i586" | "i686" | "i786")    "i386" | "i486" | "i586" | "i686" | "i786" | "x86_64")
60      echo "yes"      echo "yes"
61      def_arch_x86=1;;      def_arch_x86=1;;
62    *)    *)
# Line 73  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x8 Line 68  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x8
68  # (only if the user did not provide one)  # (only if the user did not provide one)
69  CXX_CPU_SWITCH=  CXX_CPU_SWITCH=
70  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then
71    if test "$def_arch_x86" = 1; then    if test "$def_arch_x86" = 1 -a "$host_cpu" != "x86_64"; then
72      CXX_CPU_SWITCH="-march=$target_cpu"      CXX_CPU_SWITCH="-march=$host_cpu"
73    elif test "$target_cpu" = "ppc"; then    elif test "$target_cpu" = "ppc"; then
74      CXX_CPU_SWITCH="-arch=$target_cpu"      CXX_CPU_SWITCH="-arch=$host_cpu"
75    fi    fi
76  fi  fi
77  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
# Line 85  AC_SUBST([CXX_CPU_SWITCH]) Line 80  AC_SUBST([CXX_CPU_SWITCH])
80  AC_CHECK_HEADERS(  AC_CHECK_HEADERS(
81      mmsystem.h,      mmsystem.h,
82      have_windows=1,      have_windows=1,
83      have_windows=0      have_windows=0,
84        [#include <windef.h>]
85  )  )
86  AM_CONDITIONAL(HAVE_WINDOWS, test $have_windows = "1")  AM_CONDITIONAL(HAVE_WINDOWS, test $have_windows = "1")
87    
# Line 255  else Line 251  else
251  fi  fi
252  AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")  AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")
253  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.])
254    config_have_alsa="no"
255    if test $have_alsa = "1"; then
256        config_have_alsa="yes"
257    fi
258    
259  # JACK  # JACK
260  AC_ARG_ENABLE(jack-driver,  AC_ARG_ENABLE(jack-driver,
# Line 281  else Line 281  else
281  fi  fi
282  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
283  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.])
284    config_have_jack="no"
285    if test $have_jack = "1"; then
286        config_have_jack="yes"
287    fi
288    
289  # JACK MIDI  # JACK MIDI
290  have_jack_midi=0  have_jack_midi=0
# Line 304  fi Line 308  fi
308  AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")  AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")
309  AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,  AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,
310                     [Define to 1 if you have JACK with MIDI support installed.])                     [Define to 1 if you have JACK with MIDI support installed.])
311    config_have_jack_midi="no"
312    if test $have_jack_midi = "1"; then
313        config_have_jack_midi="yes"
314    fi
315    
316  # ARTS  # ARTS
317  AC_ARG_ENABLE(arts-driver,  AC_ARG_ENABLE(arts-driver,
# Line 326  else Line 334  else
334  fi  fi
335  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
336  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.])
337    config_have_arts="no"
338    if test $have_arts = "1"; then
339        config_have_arts="yes"
340    fi
341    
342  # ASIO AUDIO (Win32)  # ASIO AUDIO (Win32)
343  AC_ARG_ENABLE(asiosdk-dir,  AC_ARG_ENABLE(asiosdk-dir,
# Line 365  fi Line 377  fi
377  AC_SUBST(ASIOSDK_BASEDIR)  AC_SUBST(ASIOSDK_BASEDIR)
378  AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")  AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")
379  AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.])  AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.])
380    config_have_asio="no"
381    if test $have_asio = "1"; then
382        config_have_asio="yes"
383    fi
384    
385  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
386  AC_ARG_ENABLE(midishare-driver,  AC_ARG_ENABLE(midishare-driver,
# Line 391  else Line 407  else
407  fi  fi
408  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")
409  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.])
410    config_have_midishare="no"
411    if test $have_midishare = "1"; then
412        config_have_midishare="yes"
413    fi
414    
415  # CoreMIDI (OS X)  # CoreMIDI (OS X)
416  AC_ARG_ENABLE(coremidi-driver,  AC_ARG_ENABLE(coremidi-driver,
# Line 413  else Line 433  else
433  fi  fi
434  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
435  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.])
436    config_have_coremidi="no"
437    if test $have_coremidi = "1"; then
438        config_have_coremidi="yes"
439    fi
440    
441    # CoreAudio (OS X)
442    AC_ARG_ENABLE(coreaudio-driver,
443      [  --disable-coreaudio-driver
444                              Disable support for the Apple CoreAudio system.],
445      [config_coreaudio_driver="$enableval"],
446      [config_coreaudio_driver="yes"]
447    )
448    have_coreaudio=0
449    if test "$config_coreaudio_driver" = "yes"; then
450        AC_CHECK_HEADER(CoreAudio/CoreAudio.h,
451            have_coreaudio=1,
452            have_coreaudio=0
453        )
454        if test "$have_coreaudio" = "1"; then
455            have_audio_output_driver="true"
456        fi
457    else
458        echo "CoreAudio support disabled by configure script parameter"
459    fi
460    AM_CONDITIONAL(HAVE_COREAUDIO, test $have_coreaudio = "1")
461    AC_DEFINE_UNQUOTED(HAVE_COREAUDIO,$have_coreaudio,[Define to 1 if you have CoreAudio installed.])
462    config_have_coreaudio="no"
463    if test $have_coreaudio = "1"; then
464        config_have_coreaudio="yes"
465    fi
466    
467  # MME MIDI (Win32)  # MME MIDI (Win32)
468  AC_ARG_ENABLE(mmemidi-driver,  AC_ARG_ENABLE(mmemidi-driver,
# Line 435  else Line 485  else
485  fi  fi
486  AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")  AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")
487  AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])  AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])
488    config_have_mme="no"
489    if test $have_mmemidi = "1"; then
490        config_have_mme="yes"
491    fi
492    
493    # DSSI
494    AC_CHECK_HEADERS(dssi.h,
495            config_have_dssi="yes",
496            config_have_dssi="no")
497    AM_CONDITIONAL(HAVE_DSSI, test $config_have_dssi = "yes")
498    
499    # LV2
500    PKG_CHECK_MODULES(LV2, lv2core, config_have_lv2="yes", config_have_lv2="no")
501    if test $config_have_lv2 = "no"; then
502        AC_CHECK_HEADER(lv2.h, config_have_lv2="yes", config_have_lv2="no")
503    fi
504    AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes")
505    
506    # VST
507    AC_ARG_ENABLE(vstsdk-dir,
508      [  --enable-vstsdk-dir
509                              Directory where the VST SDK is located.
510                              This automatically enables the compilation
511                              of the VST plugin.],
512      [VSTSDK_DIR="${enableval}"],
513      [VSTSDK_DIR=]
514    )
515    AC_SUBST(VSTSDK_DIR)
516    AM_CONDITIONAL(HAVE_VST, test "x$VSTSDK_DIR" != "x")
517    config_have_vst="no"
518    if test "x$VSTSDK_DIR" != "x"; then
519        config_have_vst="yes"
520    fi
521    
522    # AU
523    AC_CHECK_HEADERS(AudioUnit/AudioUnit.h,
524            config_have_au="yes",
525            config_have_au="no")
526    AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes")
527    AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "")
528    
529    
530  # have we found at least one MIDI input and one audio output driver ?  # have we found at least one MIDI input and one audio output driver ?
531  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
# Line 681  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_ Line 772  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_
772    
773  AC_ARG_ENABLE(max-streams,  AC_ARG_ENABLE(max-streams,
774    [  --enable-max-streams    [  --enable-max-streams
775                            Maximum amount of disk streams (default=90). This                            Initial maximum amount of disk streams
776                            value should always be higher than the maximum                            (default=90). This value can be changed at
777                            amount of voices.],                            runtime. It should always be higher than the
778                              maximum amount of voices.],
779    [config_max_streams="${enableval}"],    [config_max_streams="${enableval}"],
780    [config_max_streams="90"]    [config_max_streams="90"]
781  )  )
782  AC_DEFINE_UNQUOTED(CONFIG_MAX_STREAMS, $config_max_streams, [Define max. streams.])  AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_MAX_STREAMS, $config_max_streams, [Define initial max. streams.])
783    
784  AC_ARG_ENABLE(max-voices,  AC_ARG_ENABLE(max-voices,
785    [  --enable-max-voices    [  --enable-max-voices
786                            Maximum amount of voices (default=64). This value                            Initial maximum amount of voices (default=64).
787                            should always be lower than the maximum amount of                            This value can be changed at runtime. It should
788                            disk streams.],                            always be lower than the maximum amount of disk
789                              streams.],
790    [config_max_voices="${enableval}"],    [config_max_voices="${enableval}"],
791    [config_max_voices="64"]    [config_max_voices="64"]
792  )  )
793  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])  AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_MAX_VOICES, $config_max_voices, [Define initial max. voices.])
794    
795  AC_ARG_ENABLE(subfragment-size,  AC_ARG_ENABLE(subfragment-size,
796    [  --enable-subfragment-size    [  --enable-subfragment-size
# Line 999  if test "$config_interpolate_volume" = " Line 1092  if test "$config_interpolate_volume" = "
1092    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.])
1093  fi  fi
1094    
1095    AC_ARG_ENABLE(master-volume-sysex-by-port,
1096      [  --enable-master-volume-sysex-by-port
1097                              Whether global volume sysex message should be
1098                              applied globally to the whole sampler or only to
1099                              the sampler channels connected to the same MIDI
1100                              input port on which the sysex message arrived on.
1101                              By default global volume sysex messages apply
1102                              globally to the whole sampler, since many MIDI
1103                              devices behave that way.],
1104      [config_master_volume_sysex_by_port="$enableval"],
1105      [config_master_volume_sysex_by_port="no"]
1106    )
1107    if test "$config_master_volume_sysex_by_port" = "yes"; then
1108      AC_DEFINE_UNQUOTED(CONFIG_MASTER_VOLUME_SYSEX_BY_PORT, 1, [Define to 1 if you want global volume sysex message only be applied to the respective MIDI port.])
1109    fi
1110    
1111  AC_ARG_ENABLE(plugin-dir,  AC_ARG_ENABLE(plugin-dir,
1112    [  --enable-plugin-dir    [  --enable-plugin-dir
1113                            Directory where the sampler shall look for potential plugins,                            Directory where the sampler shall look for potential plugins,
# Line 1154  AC_OUTPUT( \ Line 1263  AC_OUTPUT( \
1263      src/drivers/audio/Makefile \      src/drivers/audio/Makefile \
1264      src/drivers/midi/Makefile \      src/drivers/midi/Makefile \
1265      src/plugins/Makefile \      src/plugins/Makefile \
1266        src/hostplugins/Makefile \
1267        src/hostplugins/dssi/Makefile \
1268        src/hostplugins/lv2/Makefile \
1269        src/hostplugins/vst/Makefile \
1270        src/hostplugins/au/Makefile \
1271      linuxsampler.spec \      linuxsampler.spec \
1272      debian/Makefile \      debian/Makefile \
1273      Artwork/Makefile \      Artwork/Makefile \
# Line 1181  echo "" Line 1295  echo ""
1295  echo "#####################################################################"  echo "#####################################################################"
1296  echo "# LinuxSampler Configuration                                        #"  echo "# LinuxSampler Configuration                                        #"
1297  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1298    echo "# Release Version: ${LINUXSAMPLER_RELEASE_MAJOR}.${LINUXSAMPLER_RELEASE_MINOR}.${LINUXSAMPLER_RELEASE_BUILD}"
1299    echo "# LSCP Version: ${LSCP_RELEASE_MAJOR}.${LSCP_RELEASE_MINOR}"
1300    echo "#-------------------------------------------------------------------"
1301  echo "# Assembly Optimizations: ${config_asm}"  echo "# Assembly Optimizations: ${config_asm}"
1302  echo "# Development Mode: ${config_dev_mode}"  echo "# Development Mode: ${config_dev_mode}"
1303  echo "# Debug Level: ${config_debug_level}"  echo "# Debug Level: ${config_debug_level}"
# Line 1194  echo "# Streams to be refilled per Disk Line 1311  echo "# Streams to be refilled per Disk
1311  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"
1312  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"
1313  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
1314  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Default Maximum Disk Streams: ${config_max_streams}"
1315  echo "# Maximum Voices: ${config_max_voices}"  echo "# Default Maximum Voices: ${config_max_voices}"
1316  echo "# Default Subfragment Size: ${config_subfragment_size}"  echo "# Default Subfragment Size: ${config_subfragment_size}"
1317  echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"  echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"
1318  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
# Line 1214  echo "# Override Filter Type: ${config_o Line 1331  echo "# Override Filter Type: ${config_o
1331  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
1332  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
1333  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1334    echo "# Apply global volume SysEx by MIDI port: ${config_master_volume_sysex_by_port}"
1335  echo "# Interpolate Volume: ${config_interpolate_volume}"  echo "# Interpolate Volume: ${config_interpolate_volume}"
1336  echo "# Instruments database support: ${config_instruments_db}"  echo "# Instruments database support: ${config_instruments_db}"
1337  if test "$config_instruments_db" = "yes"; then  if test "$config_instruments_db" = "yes"; then
1338  echo "# Instruments DB default location: ${config_default_instruments_db_file}"  echo "# Instruments DB default location: ${config_default_instruments_db_file}"
1339  fi  fi
1340  echo "# Plugin Path: ${config_plugin_dir}"  echo "# Plugin Path: ${config_plugin_dir}"
1341    echo "#-------------------------------------------------------------------"
1342    echo "# MIDI Input Drivers:"
1343    echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack_midi}, CoreMIDI: ${config_have_coremidi}, MME: ${config_have_mme}, MidiShare: ${config_have_midishare}"
1344    echo "#-------------------------------------------------------------------"
1345    echo "# Audio Output Drivers:"
1346    echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack}, ARTS: ${config_have_arts}, CoreAudio: ${config_have_coreaudio}, ASIO: ${config_have_asio}"
1347    echo "#-------------------------------------------------------------------"
1348    echo "# Building sampler as plugin for following host standards:"
1349    echo "# DSSI: ${config_have_dssi}, LV2: ${config_have_lv2}, VST: ${config_have_vst}, AU: ${config_have_au}"
1350  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1351  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
1352  echo "#####################################################################"  echo "#####################################################################"

Legend:
Removed from v.1750  
changed lines
  Added in v.1895

  ViewVC Help
Powered by ViewVC