diff options
author | Goran Mekić <meka@tilda.center> | 2017-12-30 15:55:53 +0100 |
---|---|---|
committer | Goran Mekić <meka@tilda.center> | 2017-12-30 15:55:53 +0100 |
commit | eb10ac5e8abd41c386d05e555406ec92a54f0164 (patch) | |
tree | 70cd659a85d49679debf49fe7da25ffa5908234a /configure.ac | |
parent | 992750a805d21de4ffcf7f4382fea8aa1f58c3b7 (diff) | |
parent | 74f18e24e100b487184e3dd7a57fe1609f645654 (diff) |
Merge branch 'feature/oss-midi'
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 5de59b9..f323db2 100644 --- a/configure.ac +++ b/configure.ac @@ -359,7 +359,44 @@ AS_IF( have_input_midifile=no] ) - INPUT_PLUGINS="midifile jackmidi dummy test" + dnl *** oss + case $host_os in + freebsd*) + enable_oss_midi_value=yes + ;; + *) + enable_oss_midi_value=no + ;; + esac + AC_ARG_ENABLE([input_oss], + AS_HELP_STRING( + [--disable-input-oss], + [Disable input oss plugin [enabled by default on FreeBSD, disabled otherwise]]),, + [enable_input_ossmidi=$enable_oss_midi_value] + ) + + AS_IF( + [test "x$enable_input_ossmidi" = "xyes"], + [AC_MSG_CHECKING(for OSS in) + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE([[ + #include <sys/soundcard.h> + #ifndef AFMT_S32_NE + # error no oss + #endif + ]])], + [ + have_input_ossmidi=yes + AC_MSG_RESULT(yes) + ], + [AC_MSG_FAILURE([no OSS headers found])] + )], + + [AC_MSG_RESULT([*** input ossmidi plugin disabled per user request ***]) + have_input_ossmidi=no] + ) + + INPUT_PLUGINS="midifile jackmidi dummy test ossmidi" AC_SUBST(INPUT_PLUGINS) dnl *** @@ -441,7 +478,7 @@ AS_IF( AS_IF( [test "x$enable_output_oss" = "xyes"], - [AC_MSG_CHECKING(for OSS) + [AC_MSG_CHECKING(for OSS out) AC_COMPILE_IFELSE( [AC_LANG_SOURCE([[ #include <sys/soundcard.h> @@ -481,6 +518,7 @@ AM_CONDITIONAL([ENABLE_CLI], [test "x$enable_cli" == "xyes"]) AM_CONDITIONAL([HAVE_INPUT_DUMMY], [test "x$have_input_dummy" = "xyes"]) AM_CONDITIONAL([HAVE_INPUT_TEST], [test "x$have_input_test" = "xyes"]) AM_CONDITIONAL([HAVE_INPUT_JACKMIDI], [test "x$have_input_jackmidi" = "xyes"]) +AM_CONDITIONAL([HAVE_INPUT_OSSMIDI], [test "x$have_input_ossmidi" = "xyes"]) AM_CONDITIONAL([HAVE_INPUT_MIDIFILE], [test "x$have_input_midifile" = "xyes"]) AM_CONDITIONAL([HAVE_OUTPUT_DUMMY], [test "x$have_output_dummy" = "xyes"]) AM_CONDITIONAL([HAVE_OUTPUT_ALSA], [test "x$have_output_alsa" = "xyes"]) |