/[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 1777 by persson, Mon Sep 15 16:58:10 2008 UTC revision 1876 by schoenebeck, Fri Mar 27 12:16:12 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.7cvs  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 62  PKG_PROG_PKG_CONFIG Line 62  PKG_PROG_PKG_CONFIG
62  AC_MSG_CHECKING([whether x86 architecture])  AC_MSG_CHECKING([whether x86 architecture])
63  def_arch_x86=0  def_arch_x86=0
64  case $target_cpu in  case $target_cpu in
65    "i386" | "i486" | "i586" | "i686" | "i786")    "i386" | "i486" | "i586" | "i686" | "i786" | "x86_64")
66      echo "yes"      echo "yes"
67      def_arch_x86=1;;      def_arch_x86=1;;
68    *)    *)
# Line 74  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x8 Line 74  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x8
74  # (only if the user did not provide one)  # (only if the user did not provide one)
75  CXX_CPU_SWITCH=  CXX_CPU_SWITCH=
76  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then
77    if test "$def_arch_x86" = 1; then    if test "$def_arch_x86" = 1 -a "$target_cpu" != "x86_64"; then
78      CXX_CPU_SWITCH="-march=$target_cpu"      CXX_CPU_SWITCH="-march=$target_cpu"
79    elif test "$target_cpu" = "ppc"; then    elif test "$target_cpu" = "ppc"; then
80      CXX_CPU_SWITCH="-arch=$target_cpu"      CXX_CPU_SWITCH="-arch=$target_cpu"
# Line 256  else Line 256  else
256  fi  fi
257  AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")  AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")
258  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.])
259    config_have_alsa="no"
260    if test $have_alsa = "1"; then
261        config_have_alsa="yes"
262    fi
263    
264  # JACK  # JACK
265  AC_ARG_ENABLE(jack-driver,  AC_ARG_ENABLE(jack-driver,
# Line 282  else Line 286  else
286  fi  fi
287  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
288  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.])
289    config_have_jack="no"
290    if test $have_jack = "1"; then
291        config_have_jack="yes"
292    fi
293    
294  # JACK MIDI  # JACK MIDI
295  have_jack_midi=0  have_jack_midi=0
# Line 305  fi Line 313  fi
313  AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")  AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")
314  AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,  AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,
315                     [Define to 1 if you have JACK with MIDI support installed.])                     [Define to 1 if you have JACK with MIDI support installed.])
316    config_have_jack_midi="no"
317    if test $have_jack_midi = "1"; then
318        config_have_jack_midi="yes"
319    fi
320    
321  # ARTS  # ARTS
322  AC_ARG_ENABLE(arts-driver,  AC_ARG_ENABLE(arts-driver,
# Line 327  else Line 339  else
339  fi  fi
340  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
341  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.])
342    config_have_arts="no"
343    if test $have_arts = "1"; then
344        config_have_arts="yes"
345    fi
346    
347  # ASIO AUDIO (Win32)  # ASIO AUDIO (Win32)
348  AC_ARG_ENABLE(asiosdk-dir,  AC_ARG_ENABLE(asiosdk-dir,
# Line 366  fi Line 382  fi
382  AC_SUBST(ASIOSDK_BASEDIR)  AC_SUBST(ASIOSDK_BASEDIR)
383  AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")  AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")
384  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.])
385    config_have_asio="no"
386    if test $have_asio = "1"; then
387        config_have_asio="yes"
388    fi
389    
390  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
391  AC_ARG_ENABLE(midishare-driver,  AC_ARG_ENABLE(midishare-driver,
# Line 392  else Line 412  else
412  fi  fi
413  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")
414  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.])
415    config_have_midishare="no"
416    if test $have_midishare = "1"; then
417        config_have_midishare="yes"
418    fi
419    
420  # CoreMIDI (OS X)  # CoreMIDI (OS X)
421  AC_ARG_ENABLE(coremidi-driver,  AC_ARG_ENABLE(coremidi-driver,
# Line 414  else Line 438  else
438  fi  fi
439  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
440  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.])
441    config_have_coremidi="no"
442    if test $have_coremidi = "1"; then
443        config_have_coremidi="yes"
444    fi
445    
446    # CoreAudio (OS X)
447    AC_ARG_ENABLE(coreaudio-driver,
448      [  --disable-coreaudio-driver
449                              Disable support for the Apple CoreAudio system.],
450      [config_coreaudio_driver="$enableval"],
451      [config_coreaudio_driver="yes"]
452    )
453    have_coreaudio=0
454    if test "$config_coreaudio_driver" = "yes"; then
455        AC_CHECK_HEADER(CoreAudio/CoreAudio.h,
456            have_coreaudio=1,
457            have_coreaudio=0
458        )
459        if test "$have_coreaudio" = "1"; then
460            have_audio_output_driver="true"
461        fi
462    else
463        echo "CoreAudio support disabled by configure script parameter"
464    fi
465    AM_CONDITIONAL(HAVE_COREAUDIO, test $have_coreaudio = "1")
466    AC_DEFINE_UNQUOTED(HAVE_COREAUDIO,$have_coreaudio,[Define to 1 if you have CoreAudio installed.])
467    config_have_coreaudio="no"
468    if test $have_coreaudio = "1"; then
469        config_have_coreaudio="yes"
470    fi
471    
472  # MME MIDI (Win32)  # MME MIDI (Win32)
473  AC_ARG_ENABLE(mmemidi-driver,  AC_ARG_ENABLE(mmemidi-driver,
# Line 436  else Line 490  else
490  fi  fi
491  AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")  AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")
492  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.])
493    config_have_mme="no"
494    if test $have_mmemidi = "1"; then
495        config_have_mme="yes"
496    fi
497    
498  # DSSI  # DSSI
499  AC_CHECK_HEADERS(dssi.h,  AC_CHECK_HEADERS(dssi.h,
500          have_dssi=1,          config_have_dssi="yes",
501          have_dssi=0)          config_have_dssi="no")
502  AM_CONDITIONAL(HAVE_DSSI, test $have_dssi = "1")  AM_CONDITIONAL(HAVE_DSSI, test $config_have_dssi = "yes")
503    
504  # LV2  # LV2
505  PKG_CHECK_MODULES(LV2, lv2core, have_lv2=1, have_lv2=0)  PKG_CHECK_MODULES(LV2, lv2core, config_have_lv2="yes", config_have_lv2="no")
506  if test $have_lv2 = "0"; then  if test $config_have_lv2 = "no"; then
507      AC_CHECK_HEADER(lv2.h, have_lv2=1, have_lv2=0)      AC_CHECK_HEADER(lv2.h, config_have_lv2="yes", config_have_lv2="no")
508  fi  fi
509  AM_CONDITIONAL(HAVE_LV2, test $have_lv2 = "1")  AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes")
510    
511  # VST  # VST
512  AC_ARG_ENABLE(vstsdk-dir,  AC_ARG_ENABLE(vstsdk-dir,
# Line 462  AC_ARG_ENABLE(vstsdk-dir, Line 519  AC_ARG_ENABLE(vstsdk-dir,
519  )  )
520  AC_SUBST(VSTSDK_DIR)  AC_SUBST(VSTSDK_DIR)
521  AM_CONDITIONAL(HAVE_VST, test "x$VSTSDK_DIR" != "x")  AM_CONDITIONAL(HAVE_VST, test "x$VSTSDK_DIR" != "x")
522    config_have_vst="no"
523    if test "x$VSTSDK_DIR" != "x"; then
524        config_have_vst="yes"
525    fi
526    
527    # AU
528    AC_CHECK_HEADERS(AudioUnit/AudioUnit.h,
529            config_have_au="yes",
530            config_have_au="no")
531    AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes")
532    AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "")
533    
534    
535  # 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 ?
# Line 709  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_ Line 777  AC_DEFINE_UNQUOTED(CONFIG_STREAM_BUFFER_
777    
778  AC_ARG_ENABLE(max-streams,  AC_ARG_ENABLE(max-streams,
779    [  --enable-max-streams    [  --enable-max-streams
780                            Maximum amount of disk streams (default=90). This                            Initial maximum amount of disk streams
781                            value should always be higher than the maximum                            (default=90). This value can be changed at
782                            amount of voices.],                            runtime. It should always be higher than the
783                              maximum amount of voices.],
784    [config_max_streams="${enableval}"],    [config_max_streams="${enableval}"],
785    [config_max_streams="90"]    [config_max_streams="90"]
786  )  )
787  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.])
788    
789  AC_ARG_ENABLE(max-voices,  AC_ARG_ENABLE(max-voices,
790    [  --enable-max-voices    [  --enable-max-voices
791                            Maximum amount of voices (default=64). This value                            Initial maximum amount of voices (default=64).
792                            should always be lower than the maximum amount of                            This value can be changed at runtime. It should
793                            disk streams.],                            always be lower than the maximum amount of disk
794                              streams.],
795    [config_max_voices="${enableval}"],    [config_max_voices="${enableval}"],
796    [config_max_voices="64"]    [config_max_voices="64"]
797  )  )
798  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.])
799    
800  AC_ARG_ENABLE(subfragment-size,  AC_ARG_ENABLE(subfragment-size,
801    [  --enable-subfragment-size    [  --enable-subfragment-size
# Line 1202  AC_OUTPUT( \ Line 1272  AC_OUTPUT( \
1272      src/hostplugins/dssi/Makefile \      src/hostplugins/dssi/Makefile \
1273      src/hostplugins/lv2/Makefile \      src/hostplugins/lv2/Makefile \
1274      src/hostplugins/vst/Makefile \      src/hostplugins/vst/Makefile \
1275        src/hostplugins/au/Makefile \
1276      linuxsampler.spec \      linuxsampler.spec \
1277      debian/Makefile \      debian/Makefile \
1278      Artwork/Makefile \      Artwork/Makefile \
# Line 1229  echo "" Line 1300  echo ""
1300  echo "#####################################################################"  echo "#####################################################################"
1301  echo "# LinuxSampler Configuration                                        #"  echo "# LinuxSampler Configuration                                        #"
1302  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1303    echo "# Release Version: ${LINUXSAMPLER_RELEASE_MAJOR}.${LINUXSAMPLER_RELEASE_MINOR}.${LINUXSAMPLER_RELEASE_BUILD}"
1304    echo "# LSCP Version: ${LSCP_RELEASE_MAJOR}.${LSCP_RELEASE_MINOR}"
1305    echo "#-------------------------------------------------------------------"
1306  echo "# Assembly Optimizations: ${config_asm}"  echo "# Assembly Optimizations: ${config_asm}"
1307  echo "# Development Mode: ${config_dev_mode}"  echo "# Development Mode: ${config_dev_mode}"
1308  echo "# Debug Level: ${config_debug_level}"  echo "# Debug Level: ${config_debug_level}"
# Line 1242  echo "# Streams to be refilled per Disk Line 1316  echo "# Streams to be refilled per Disk
1316  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"  echo "# Minimum Stream Refill Size: ${config_stream_min_refill}"
1317  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"  echo "# Maximum Stream Refill Size: ${config_stream_max_refill}"
1318  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
1319  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Default Maximum Disk Streams: ${config_max_streams}"
1320  echo "# Maximum Voices: ${config_max_voices}"  echo "# Default Maximum Voices: ${config_max_voices}"
1321  echo "# Default Subfragment Size: ${config_subfragment_size}"  echo "# Default Subfragment Size: ${config_subfragment_size}"
1322  echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"  echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"
1323  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
# Line 1269  if test "$config_instruments_db" = "yes" Line 1343  if test "$config_instruments_db" = "yes"
1343  echo "# Instruments DB default location: ${config_default_instruments_db_file}"  echo "# Instruments DB default location: ${config_default_instruments_db_file}"
1344  fi  fi
1345  echo "# Plugin Path: ${config_plugin_dir}"  echo "# Plugin Path: ${config_plugin_dir}"
1346    echo "#-------------------------------------------------------------------"
1347    echo "# MIDI Input Drivers:"
1348    echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack_midi}, CoreMIDI: ${config_have_coremidi}, MME: ${config_have_mme}, MidiShare: ${config_have_midishare}"
1349    echo "#-------------------------------------------------------------------"
1350    echo "# Audio Output Drivers:"
1351    echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack}, ARTS: ${config_have_arts}, CoreAudio: ${config_have_coreaudio}, ASIO: ${config_have_asio}"
1352    echo "#-------------------------------------------------------------------"
1353    echo "# Building sampler as plugin for following host standards:"
1354    echo "# DSSI: ${config_have_dssi}, LV2: ${config_have_lv2}, VST: ${config_have_vst}, AU: ${config_have_au}"
1355  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1356  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
1357  echo "#####################################################################"  echo "#####################################################################"

Legend:
Removed from v.1777  
changed lines
  Added in v.1876

  ViewVC Help
Powered by ViewVC