diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2013-10-11 14:49:11 +0200 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 14:49:11 +0200 |
| commit | 330e5ca540bee67d0648def2d303e9e1d366cb53 (patch) | |
| tree | de4c10fcd95454e401b944d84a6fe6250a2f959f /configure.ac | |
| parent | 8fec3d71d441efbada609d2139ddf8ff6aa7b914 (diff) | |
Version 1.0.13
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index c0b717c..c093532 100644 --- a/configure.ac +++ b/configure.ac @@ -40,10 +40,19 @@ AC_CANONICAL_HOST AC_MSG_CHECKING(for MIDI API) case $host in *-*-linux*) - AC_SUBST( api, [-D__LINUX_ALSASEQ__] ) - AC_CHECK_LIB(asound, snd_seq_open, , AC_MSG_ERROR(RtMidi in Linux requires the ALSA asound library!)) - # Checks for pthread library. - AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtMidi requires the pthread library!)) + AC_SUBST( api, [""] ) + AC_ARG_WITH(jack, [ --with-jack = choose JACK server support (linux only)], [ + AC_SUBST( api, [-D__LINUX_JACK__] ) + AC_MSG_RESULT(using JACK) + AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))], ) + + if [test "$api" == "";] then + AC_SUBST( api, [-D__LINUX_ALSASEQ__] ) + AC_CHECK_LIB(asound, snd_seq_open, , AC_MSG_ERROR(RtMidi in Linux requires the ALSA asound library!)) + # Checks for pthread library. + AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtMidi requires the pthread library!)) + fi + ;; *-sgi*) |
