dnldnl Allow the user to enable or disable the use of a function. If thednl option is not specified, the function is auto-detected.AC_DEFUN([MPD_OPTIONAL_FUNC], [ AC_ARG_ENABLE([$1], AS_HELP_STRING([--enable-$1],
dnl MPD_OPTIONAL_FUNC_NODEF(name, func)dnldnl Allow the user to enable or disable the use of a function.dnl Works similar to MPD_OPTIONAL_FUNC, however MPD_OPTIONAL_FUNC_NODEFdnl does not invoke AC_DEFINE when function is enabled. Shell variablednl enable_$name is set to "yes" instead.AC_DEFUN([MPD_OPTIONAL_FUNC_NODEF], [ AC_ARG_ENABLE([$1], AS_HELP_STRING([--enable-$1], [use the function "$1" (default: auto)]),, [AC_CHECK_FUNC([$2], [enable_$1=yes],)])])