/[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 1454 by schoenebeck, Fri Oct 19 17:52:15 2007 UTC revision 1502 by senoner, Wed Nov 21 07:29:52 2007 UTC
# Line 79  if ! echo "X $CXXFLAGS " | grep -q -- " Line 79  if ! echo "X $CXXFLAGS " | grep -q -- "
79  fi  fi
80  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
81    
82    # check if we're on MS Windows
83    AC_CHECK_HEADERS(
84        mmsystem.h,
85        have_windows=1,
86        have_windows=0
87    )
88    AM_CONDITIONAL(HAVE_WINDOWS, test $have_windows = "1")
89    
90  AC_MSG_CHECKING([whether UNIX98 compatible])  AC_MSG_CHECKING([whether UNIX98 compatible])
91  AC_LANG_SAVE  AC_LANG_SAVE
92  AC_LANG_C  AC_LANG_C
# Line 101  have_unix98="no" Line 109  have_unix98="no"
109  )  )
110  AC_LANG_RESTORE  AC_LANG_RESTORE
111  AC_MSG_RESULT([$have_unix98])  AC_MSG_RESULT([$have_unix98])
112  if test "$have_unix98" = "no"; then  if test "$have_unix98" = "no" -a "have_windows" = "0"; then
113      if test "x$HAVE_UNIX98" = "x"; then      if test "x$HAVE_UNIX98" = "x"; then
114          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"
115          echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run          echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run
# Line 286  fi Line 294  fi
294  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
295  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.])
296    
297    # ASIO AUDIO (Win32)
298    AC_ARG_ENABLE(asiosdk-dir,
299      [  --enable-asiosdk-dir
300                              Directory where the ASIO SDK is located, this automatically
301                              enables the compilation of the ASIO audio output driver.],
302      [config_asiosdk_dir="${enableval}"],
303      [config_asiosdk_dir="."]
304    )
305    AC_SUBST(config_asiosdk_dir)
306    
307    AC_ARG_ENABLE(asio-driver,
308      [  --disable-asio-driver
309                              Disable support for the Windows ASIO driver.],
310      [config_asio_driver="$enableval"],
311      [config_asio_driver="yes"]
312    )
313    have_asio=0
314    ASIOSDK_BASEDIR=
315    if test "$config_asio_driver" = "yes"; then
316        asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h
317        echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...."
318        if test -e $asiosdk_headerfile ; then
319            echo yes
320            have_asio=1
321            ASIOSDK_BASEDIR="$config_asiosdk_dir"
322        else
323            echo no
324            have_asio=0
325        fi
326        if test "$have_asio" = "1"; then
327            have_audio_output_driver="true"
328        fi
329    else
330        echo "Windows ASIO support disabled by configure script parameter"
331    fi
332    AC_SUBST(ASIOSDK_BASEDIR)
333    AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")
334    AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.])
335    
336  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
337  AC_ARG_ENABLE(midishare-driver,  AC_ARG_ENABLE(midishare-driver,
338    [  --disable-midishare-driver    [  --disable-midishare-driver
# Line 334  fi Line 381  fi
381  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
382  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.])
383    
384    # MME MIDI (Win32)
385    AC_ARG_ENABLE(mmemidi-driver,
386      [  --disable-mmemidi-driver
387                              Disable support for the Windows MME MIDI system.],
388      [config_mmemidi_driver="$enableval"],
389      [config_mmemidi_driver="yes"]
390    )
391    have_mmemidi=0
392    if test "$config_mmemidi_driver" = "yes"; then
393        AC_CHECK_HEADERS(mmsystem.h,
394            have_mmemidi=1,
395            have_mmemidi=0
396        )
397        if test "$have_mmemidi" = "1"; then
398            have_midi_input_driver="true"
399        fi
400    else
401        echo "MME MIDI support disabled by configure script parameter"
402    fi
403    AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")
404    AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])
405    
406  # 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 ?
407  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
408      echo "No supported MIDI input system found!"      echo "No supported MIDI input system found!"

Legend:
Removed from v.1454  
changed lines
  Added in v.1502

  ViewVC Help
Powered by ViewVC