/[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 1560 by schoenebeck, Thu Dec 6 17:19:16 2007 UTC revision 1652 by persson, Sun Jan 27 16:14:56 2008 UTC
# Line 52  AC_SUBST(target_cpu) Line 52  AC_SUBST(target_cpu)
52  AC_SUBST(target_os)  AC_SUBST(target_os)
53  AC_SUBST(target_vendor)  AC_SUBST(target_vendor)
54    
55    PKG_PROG_PKG_CONFIG
56    
57  ###########################################################################  ###########################################################################
58  # General Checks  # General Checks
# Line 272  fi Line 273  fi
273  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
274  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.])
275    
276    # JACK MIDI
277    have_jack_midi=0
278    if test $have_jack = "1"; then
279        linuxsampler_save_CFLAGS=$CFLAGS
280        linuxsampler_save_LIBS=$LIBS
281        CFLAGS="$JACK_CFLAGS $CFLAGS"
282        LIBS="$JACK_LIBS $LIBS"
283        AC_CHECK_HEADER(jack/midiport.h, have_jack_midi=1, have_jack_midi=0)
284        if test $have_jack_midi = "1"; then
285            AC_CHECK_FUNCS(jack_midi_get_event_count)
286            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jack/midiport.h>]], [[
287                jack_midi_clear_buffer(0, 0);
288            ]])], [AC_DEFINE(JACK_MIDI_FUNCS_NEED_NFRAMES, 1,
289                      [Define to 1 if you have the old jack midi functions that need an nframes argument.])])
290            have_midi_input_driver="true"
291        fi
292        CFLAGS=$linuxsampler_save_CFLAGS
293        LIBS=$linuxsampler_save_LIBS
294    fi
295    AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")
296    AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,
297                       [Define to 1 if you have JACK with MIDI support installed.])
298    
299  # ARTS  # ARTS
300  AC_ARG_ENABLE(arts-driver,  AC_ARG_ENABLE(arts-driver,
301    [  --disable-arts-driver    [  --disable-arts-driver
# Line 407  AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_m Line 431  AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_m
431  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
432      echo "No supported MIDI input system found!"      echo "No supported MIDI input system found!"
433      echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"      echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
434      echo "ALSA, MIDIShare, CoreMIDI."      echo "ALSA, JACK, MIDIShare, CoreMIDI, MME."
435      echo "If you think you have one of those available on your system, make sure you"      echo "If you think you have one of those available on your system, make sure you"
436      echo "also have the respective development (header) files installed."      echo "also have the respective development (header) files installed."
437      exit -1;      exit -1;
438  fi  fi
439  if test "$have_audio_output_driver" = "false"; then  if test "$have_audio_output_driver" = "false"; then
440      echo "No supported audio output system found!"      echo "No supported audio output system found!"
441      echo "Sorry, LinuxSampler only supports ALSA, JACK and ARTS as audio output"      echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output"
442      echo "driver at the moment!"      echo "driver at the moment!"
443      exit -1;      exit -1;
444  fi  fi
# Line 532  if test "$config_rt_exceptions" = "yes"; Line 556  if test "$config_rt_exceptions" = "yes";
556    AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.])    AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.])
557  fi  fi
558    
559    AC_ARG_ENABLE(pthread-testcancel,
560      [  --enable-pthread-testcancel
561                              Enable pthread_testcancel() calls and avoid asynchronous
562                              cancel of pthreads (default=no).],
563      [config_pthread_testcancel="$enableval"],
564      [config_pthread_testcancel="no"]
565    )
566    if test "$config_pthread_testcancel" = "yes"; then
567      AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])
568    fi
569    
570  AC_ARG_ENABLE(preload-samples,  AC_ARG_ENABLE(preload-samples,
571    [  --enable-preload-samples    [  --enable-preload-samples
572                            Due to seeking and latency issues with hard drives                            Due to seeking and latency issues with hard drives

Legend:
Removed from v.1560  
changed lines
  Added in v.1652

  ViewVC Help
Powered by ViewVC