/[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 1321 by schoenebeck, Tue Sep 4 01:12:49 2007 UTC revision 1375 by schoenebeck, Wed Oct 3 18:41:09 2007 UTC
# Line 127  AC_ARG_ENABLE(alsa-driver, Line 127  AC_ARG_ENABLE(alsa-driver,
127    [  --disable-alsa-driver    [  --disable-alsa-driver
128                            Disable support for the Advanced Linux Sound                            Disable support for the Advanced Linux Sound
129                            Architecture (ALSA).],                            Architecture (ALSA).],
130    [config_alsa_driver="no"],    [config_alsa_driver="$enableval"],
131    [config_alsa_driver="yes"]    [config_alsa_driver="yes"]
132  )  )
133  have_alsa=0  have_alsa=0
# Line 207  AC_ARG_ENABLE(jack-driver, Line 207  AC_ARG_ENABLE(jack-driver,
207    [  --disable-jack-driver    [  --disable-jack-driver
208                            Disable support for the Jack Audio Connection Kit                            Disable support for the Jack Audio Connection Kit
209                            (JACK).],                            (JACK).],
210    [config_jack_driver="no"],    [config_jack_driver="$enableval"],
211    [config_jack_driver="yes"]    [config_jack_driver="yes"]
212  )  )
213  have_jack=0  have_jack=0
# Line 230  AC_ARG_ENABLE(arts-driver, Line 230  AC_ARG_ENABLE(arts-driver,
230    [  --disable-arts-driver    [  --disable-arts-driver
231                            Disable support for the Analogue Realtime System                            Disable support for the Analogue Realtime System
232                            (aRts).],                            (aRts).],
233    [config_arts_driver="no"],    [config_arts_driver="$enableval"],
234    [config_arts_driver="yes"]    [config_arts_driver="yes"]
235  )  )
236  have_arts=0  have_arts=0
# Line 251  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts, Line 251  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,
251  AC_ARG_ENABLE(midishare-driver,  AC_ARG_ENABLE(midishare-driver,
252    [  --disable-midishare-driver    [  --disable-midishare-driver
253                            Disable support for the MidiShare system.],                            Disable support for the MidiShare system.],
254    [config_midishare_driver="no"],    [config_midishare_driver="$enableval"],
255    [config_midishare_driver="yes"]    [config_midishare_driver="yes"]
256  )  )
257  have_midishare=0  have_midishare=0
# Line 277  AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_ Line 277  AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_
277  AC_ARG_ENABLE(coremidi-driver,  AC_ARG_ENABLE(coremidi-driver,
278    [  --disable-coremidi-driver    [  --disable-coremidi-driver
279                            Disable support for the Apple CoreMIDI system.],                            Disable support for the Apple CoreMIDI system.],
280    [config_coremidi_driver="no"],    [config_coremidi_driver="$enableval"],
281    [config_coremidi_driver="yes"]    [config_coremidi_driver="yes"]
282  )  )
283  have_coremidi=0  have_coremidi=0
# Line 295  fi Line 295  fi
295  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
296  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.])
297    
298    # have we found at least one MIDI input and one audio output driver ?
299    if test "$have_midi_input_driver" = "false"; then
300        echo "No supported MIDI input system found!"
301        echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
302        echo "ALSA, MIDIShare, CoreMIDI."
303        echo "If you think you have one of those available on your system, make sure you"
304        echo "also have the respective development (header) files installed."
305        exit -1;
306    fi
307    if test "$have_audio_output_driver" = "false"; then
308        echo "No supported audio output system found!"
309        echo "Sorry, LinuxSampler only supports ALSA, JACK and ARTS as audio output"
310        echo "driver at the moment!"
311        exit -1;
312    fi
313    
314    
315    
316    ###########################################################################
317    # Checks for various DLL libraries
318    
319  # Check presence of libgig  # Check presence of libgig
320  libgig_version="3.1.1"  libgig_version="3.1.1"
321  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)
# Line 308  fi Line 329  fi
329  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
330  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
331    
332  # Check presence of sqlite3  # Instruments DB feature (requires SQLite 3.3)
333  sqlite_version="3.3"  AC_ARG_ENABLE(instruments-db,
334  PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false)    [  --disable-instruments-db
335  AC_SUBST(SQLITE3_LIBS)                            Disable compilation of the sampler's instruments
336  AC_SUBST(SQLITE3_CFLAGS)                            database feature. You need to have SQLite 3.3
337  if test $HAVE_SQLITE3 = false; then                            or younger installed for this feature.],
338      HAVE_SQLITE3=0;    [config_instruments_db="$enableval"],
339      instruments_db_support="no"    [config_instruments_db="yes"]
340      echo "*** Required sqlite version not found!"  )
341      echo "*** You need to have sqlite version ${sqlite_version} or higher"  HAVE_SQLITE3=0;
342      echo "*** for instruments database support to be enabled."  if test "$config_instruments_db" = "yes"; then
343      echo "*** Support for instruments DB will be disabled!"      # Check presence of sqlite3
344        sqlite_version="3.3"
345        PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false)
346        AC_SUBST(SQLITE3_LIBS)
347        AC_SUBST(SQLITE3_CFLAGS)
348        if test $HAVE_SQLITE3 = false; then
349            HAVE_SQLITE3=0
350            config_instruments_db="no"
351            echo "*** Required sqlite version not found!"
352            echo "*** You need to have sqlite version ${sqlite_version} or higher"
353            echo "*** for instruments database support to be enabled."
354            echo "*** Support for instruments DB will be disabled!"
355        else
356            HAVE_SQLITE3=1
357        fi
358  else  else
359      HAVE_SQLITE3=1      echo "Instruments DB feature disabled by configure script parameter"
     instruments_db_support="yes"  
360  fi  fi
361  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)
362  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.])
363    
 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  
364    
365    
366  ###########################################################################  ###########################################################################
# Line 355  AC_ARG_ENABLE(asm, Line 376  AC_ARG_ENABLE(asm,
376                            to just enter a fast (denormal) FPU mode on x86                            to just enter a fast (denormal) FPU mode on x86
377                            platforms. There are currently no synthesis core                            platforms. There are currently no synthesis core
378                            assembly optimizations anymore since LS 0.4.0],                            assembly optimizations anymore since LS 0.4.0],
379    [config_asm="no"],    [config_asm="$enableval"],
380    [config_asm="yes"]    [config_asm="yes"]
381  )  )
382  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
# Line 368  AC_ARG_ENABLE(dev-mode, Line 389  AC_ARG_ENABLE(dev-mode,
389                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
390                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
391                            efficiency a bit],                            efficiency a bit],
392    [config_dev_mode="no"],    [config_dev_mode="$enableval"],
393    [config_dev_mode="yes"]    [config_dev_mode="yes"]
394  )  )
395  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
# Line 396  AC_ARG_ENABLE(rt-exceptions, Line 417  AC_ARG_ENABLE(rt-exceptions,
417                            context as well. Otherwise if disabled                            context as well. Otherwise if disabled
418                            segmentation faults will be forced by the                            segmentation faults will be forced by the
419                            application on critical errors.],                            application on critical errors.],
420    [config_rt_exceptions="yes"],    [config_rt_exceptions="$enableval"],
421    [config_rt_exceptions="no"]    [config_rt_exceptions="no"]
422  )  )
423  if test "$config_rt_exceptions" = "yes"; then  if test "$config_rt_exceptions" = "yes"; then
# Line 590  AC_ARG_ENABLE(force-filter, Line 611  AC_ARG_ENABLE(force-filter,
611                            If enabled will force filter to be used even if                            If enabled will force filter to be used even if
612                            no usage was define in instrument patch files.                            no usage was define in instrument patch files.
613                            (default=no).],                            (default=no).],
614    [config_force_filter="yes"],    [config_force_filter="$enableval"],
615    [config_force_filter="no"]    [config_force_filter="no"]
616  )  )
617  if test "$config_force_filter" = "yes"; then  if test "$config_force_filter" = "yes"; then
# Line 680  AC_ARG_ENABLE(gs-checksum, Line 701  AC_ARG_ENABLE(gs-checksum,
701                            messages which do not provide a correct checksum                            messages which do not provide a correct checksum
702                            will be ignored. This is disabled by default as                            will be ignored. This is disabled by default as
703                            not all devices honor GS checksums.],                            not all devices honor GS checksums.],
704    [config_assert_gs_sysex_checksum="yes"],    [config_assert_gs_sysex_checksum="$enableval"],
705    [config_assert_gs_sysex_checksum="no"]    [config_assert_gs_sysex_checksum="no"]
706  )  )
707  if test "config_assert_gs_sysex_checksum" = "yes"; then  if test "config_assert_gs_sysex_checksum" = "yes"; then
# Line 726  AC_ARG_ENABLE(signed-triang-algo, Line 747  AC_ARG_ENABLE(signed-triang-algo,
747                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
748                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
749                                perform better than integer math as it avoids                                perform better than integer math as it avoids
750                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
751                              diharmonic:                              diharmonic:
752                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
753                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 761  AC_ARG_ENABLE(unsigned-triang-algo, Line 781  AC_ARG_ENABLE(unsigned-triang-algo,
781                                Similar to intmath but uses abs() function.                                Similar to intmath but uses abs() function.
782                                Depending on compiler and platrofm this could                                Depending on compiler and platrofm this could
783                                perform better than integer math as it avoids                                perform better than integer math as it avoids
784                                an extra integer multiply instruction.                                an extra integer multiply instruction.
   
785                              diharmonic:                              diharmonic:
786                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
787                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 793  AC_ARG_ENABLE(process-muted-channels, Line 812  AC_ARG_ENABLE(process-muted-channels,
812                            will not discard notes, triggered in mute mode,                            will not discard notes, triggered in mute mode,
813                            when the channel is unmuted. But also will reduce                            when the channel is unmuted. But also will reduce
814                            the efficiency.],                            the efficiency.],
815    [config_process_muted_channels="yes"],    [config_process_muted_channels="$enableval"],
816    [config_process_muted_channels="no"]    [config_process_muted_channels="no"]
817  )  )
818  if test "$config_process_muted_channels" = "yes"; then  if test "$config_process_muted_channels" = "yes"; then
# Line 807  AC_ARG_ENABLE(process-all-notes-off, Line 826  AC_ARG_ENABLE(process-all-notes-off,
826                            all voices whenever it receives an All-Notes-Off                            all voices whenever it receives an All-Notes-Off
827                            MIDI message. You can disable this behavior, so                            MIDI message. You can disable this behavior, so
828                            that LS simply ignores such messages.],                            that LS simply ignores such messages.],
829    [config_process_all_notes_off="no"],    [config_process_all_notes_off="$enableval"],
830    [config_process_all_notes_off="yes"]    [config_process_all_notes_off="yes"]
831  )  )
832  if test "$config_process_all_notes_off" = "yes"; then  if test "$config_process_all_notes_off" = "yes"; then
# Line 821  AC_ARG_ENABLE(interpolate-volume, Line 840  AC_ARG_ENABLE(interpolate-volume,
840                            generated by for example the envelope generator                            generated by for example the envelope generator
841                            will be smoother, minimizing the risk for audio                            will be smoother, minimizing the risk for audio
842                            clicks. Disable it to reduce CPU usage.],                            clicks. Disable it to reduce CPU usage.],
843    [config_interpolate_volume="no"],    [config_interpolate_volume="$enableval"],
844    [config_interpolate_volume="yes"]    [config_interpolate_volume="yes"]
845  )  )
846  if test "$config_interpolate_volume" = "yes"; then  if test "$config_interpolate_volume" = "yes"; then
# Line 841  AC_ARG_ENABLE(plugin-dir, Line 860  AC_ARG_ENABLE(plugin-dir,
860  )  )
861  AC_SUBST(config_plugin_dir)  AC_SUBST(config_plugin_dir)
862    
863    AC_ARG_ENABLE(default-instruments-db-location,
864      [  --enable-default-instruments-db-location
865                              Only when instruments DB feature is enabled: file name
866                              which shall be taken as default location of the
867                              instruments DB file. This location can still be
868                              overridden at runtime with a command line switch.
869                              (default: /var/lib/linuxsampler/instruments.db)],
870      [config_default_instruments_db_file="${enableval}"],
871      [config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db"]
872    )
873    AC_DEFINE_UNQUOTED(
874        CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION,
875        "$config_default_instruments_db_file",
876        [Only when instruments DB feature is enabled: default location of the DB file.]
877    )
878    
879    
880    
881  ###########################################################################  ###########################################################################
882  # Automatic Benchmarks (to detect the best algorithms for the system)  # Automatic Benchmarks (to detect the best algorithms for the system)
# Line 965  AC_OUTPUT( \ Line 1001  AC_OUTPUT( \
1001      src/drivers/Makefile \      src/drivers/Makefile \
1002      src/drivers/audio/Makefile \      src/drivers/audio/Makefile \
1003      src/drivers/midi/Makefile \      src/drivers/midi/Makefile \
1004        src/plugins/Makefile \
1005      linuxsampler.spec \      linuxsampler.spec \
1006      debian/Makefile \      debian/Makefile \
1007      Artwork/Makefile \      Artwork/Makefile \
# Line 1026  echo "# Assert GS SysEx Checksum: ${conf Line 1063  echo "# Assert GS SysEx Checksum: ${conf
1063  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
1064  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1065  echo "# Interpolate Volume: ${config_interpolate_volume}"  echo "# Interpolate Volume: ${config_interpolate_volume}"
1066  echo "# Instruments database support: ${instruments_db_support}"  echo "# Instruments database support: ${config_instruments_db}"
1067    if test "$config_instruments_db" = "yes"; then
1068    echo "# Instruments DB default location: ${config_default_instruments_db_file}"
1069    fi
1070  echo "# Plugin Path: ${config_plugin_dir}"  echo "# Plugin Path: ${config_plugin_dir}"
1071  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1072  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"

Legend:
Removed from v.1321  
changed lines
  Added in v.1375

  ViewVC Help
Powered by ViewVC