summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-08 17:32:25 +0000
committerDavid Robillard <d@drobilla.net>2007-04-08 17:32:25 +0000
commit224d4e5098a19c957966cebb10b605e64bbe4c12 (patch)
treebec75916b29dd4926380bfc44d3e815e909c491d /acinclude.m4
parentf649db6cde35b90daa9d2144c0db22405d6584f6 (diff)
downloadlilv-224d4e5098a19c957966cebb10b605e64bbe4c12.tar.gz
lilv-224d4e5098a19c957966cebb10b605e64bbe4c12.tar.bz2
lilv-224d4e5098a19c957966cebb10b605e64bbe4c12.zip
Jack MIDI API compatibility hacks.
git-svn-id: http://svn.drobilla.net/lad/slv2@420 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
new file mode 100644
index 0000000..22592fe
--- /dev/null
+++ b/acinclude.m4
@@ -0,0 +1,15 @@
+# Copyright (C) 2007 Nedko Arnaudov <nedko@arnaudov.name>
+# This file is distributed under the same terms as the Autoconf macro files.
+
+AC_DEFUN([AC_JACK_MIDI_NFRAMES_CHECK], [
+AC_MSG_CHECKING([whether JACK MIDI functions need nframes parameter])
+AC_LANG_PUSH(C)
+AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[
+#include <jack/jack.h>
+#include <jack/midiport.h>
+]], [[
+jack_midi_event_get(0, 0, 0, 0);
+]]), [jackmidi_nframes='yes'], [jackmidi_nframes='no'])
+AC_MSG_RESULT([$jackmidi_nframes])
+AC_LANG_POP()
+])