]> git.alsa-project.org Git - alsa-lib.git/commitdiff
configure: Make sequencer dependent on rawmidi
authorTakashi Iwai <tiwai@suse.de>
Sun, 24 Nov 2024 08:32:29 +0000 (09:32 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 24 Nov 2024 08:32:29 +0000 (09:32 +0100)
The sequencer feature requires rawmidi implicitly, and it became more
obvious with UMP support.  Add the dependency check to configure
script.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
configure.ac

index 1cd22a5984d78539828085e503f131c482ac3dd6..69aeb978af0d0e90e7d6629d43d83f7d6fc1e786 100644 (file)
@@ -483,6 +483,12 @@ fi
 AC_SUBST(PYTHON_LIBS)
 AC_SUBST(PYTHON_INCLUDES)
 
+if test "$build_rawmidi" != "yes"; then
+  if test "$build_seq" = "yes"; then
+    AC_ERROR([Cannot enable sequencer without rawmidi])
+  fi
+fi
+
 AM_CONDITIONAL([BUILD_MIXER], [test x$build_mixer = xyes])
 AM_CONDITIONAL([BUILD_PCM], [test x$build_pcm = xyes])
 AM_CONDITIONAL([BUILD_RAWMIDI], [test x$build_rawmidi = xyes])