Fixed undefined references in namehint.c when not all components are
selected via configure options.
if test "$build_rawmidi" = "yes"; then
AC_DEFINE([BUILD_RAWMIDI], "1", [Build raw MIDI component])
fi
+if test "$build_hwdep" = "yes"; then
+ AC_DEFINE([BUILD_HWDEP], "1", [Build hwdep component])
+fi
if test "$build_seq" = "yes"; then
AC_DEFINE([BUILD_SEQ], "1", [Build sequencer component])
fi
if (list->device < 0)
return 0;
switch (list->iface) {
+#ifdef BUILD_HWDEP
case SND_CTL_ELEM_IFACE_HWDEP:
{
snd_hwdep_info_t *info;
*res = strdup(snd_hwdep_info_get_name(info));
return 0;
}
+#endif
+#ifdef BUILD_PCM
case SND_CTL_ELEM_IFACE_PCM:
{
snd_pcm_info_t *info;
*res = strdup(snd_pcm_info_get_name(info));
return 0;
}
+#endif
+#ifdef BUILD_RAWMIDI
case SND_CTL_ELEM_IFACE_RAWMIDI:
{
snd_rawmidi_info_t *info;
*res = strdup(snd_rawmidi_info_get_name(info));
return 0;
}
+#endif
default:
return 0;
}