mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-10 20:36:21 +03:00
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #18077
24 lines
585 B
Plaintext
24 lines
585 B
Plaintext
dnl # SPDX-License-Identifier: CDDL-1.0
|
|
AC_DEFUN([ZFS_AC_CONFIG_USER_DRACUT], [
|
|
AC_MSG_CHECKING(for dracut directory)
|
|
AC_ARG_WITH([dracutdir],
|
|
AS_HELP_STRING([--with-dracutdir=DIR],
|
|
[install dracut helpers @<:@default=check@:>@]),
|
|
[dracutdir=$withval],
|
|
[dracutdir=check])
|
|
|
|
AS_IF([test "x$dracutdir" = xcheck], [
|
|
path1=/usr/share/dracut
|
|
path2=/usr/lib/dracut
|
|
default=$path2
|
|
|
|
AS_IF([test -d "$path1"], [dracutdir="$path1"], [
|
|
AS_IF([test -d "$path2"], [dracutdir="$path2"],
|
|
[dracutdir="$default"])
|
|
])
|
|
])
|
|
|
|
AC_SUBST(dracutdir)
|
|
AC_MSG_RESULT([$dracutdir])
|
|
])
|