1 # Copyright (C) 2007 Nedko Arnaudov <nedko@arnaudov.name>
2 # This file is distributed under the same terms as the Autoconf macro files.
4 AC_DEFUN([AC_JACK_MIDI_NFRAMES_CHECK], [
5 AC_MSG_CHECKING([whether JACK MIDI functions need nframes parameter])
7 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
9 #include <jack/midiport.h>
11 jack_midi_event_get(0, 0, 0, 0);
12 ]])], [jackmidi_nframes='yes'], [jackmidi_nframes='no'])
13 AC_MSG_RESULT([$jackmidi_nframes])