1 AC_DEFUN([ZFS_AC_CONFIG_USER_UDEV], [
2 AC_MSG_CHECKING(for udev directories)
4 AC_HELP_STRING([--with-udevdir=DIR],
5 [install udev helpers @<:@default=check@:>@]),
9 AS_IF([test "x$udevdir" = xcheck], [
14 AS_IF([test -d "$path1"], [udevdir="$path1"], [
15 AS_IF([test -d "$path2"], [udevdir="$path2"],
20 AC_ARG_WITH(udevruledir,
21 AC_HELP_STRING([--with-udevruledir=DIR],
22 [install udev rules [[UDEVDIR/rules.d]]]),
23 [udevruledir=$withval],
24 [udevruledir="${udevdir}/rules.d"])
28 AC_MSG_RESULT([$udevdir;$udevruledir])