1 AC_DEFUN([ZFS_AC_CONFIG_USER_DRACUT], [
2 AC_MSG_CHECKING(for dracut directory)
3 AC_ARG_WITH([dracutdir],
4 AS_HELP_STRING([--with-dracutdir=DIR],
5 [install dracut helpers @<:@default=check@:>@]),
9 AS_IF([test "x$dracutdir" = xcheck], [
10 path1=/usr/share/dracut
14 AS_IF([test -d "$path1"], [dracutdir="$path1"], [
15 AS_IF([test -d "$path2"], [dracutdir="$path2"],
16 [dracutdir="$default"])
21 AC_MSG_RESULT([$dracutdir])