File: user-dracut.m4

package info (click to toggle)
zfs-linux 2.1.11-1%2Bdeb12u1
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm
  • size: 77,344 kB
  • sloc: ansic: 376,447; sh: 59,625; python: 7,872; asm: 6,476; makefile: 5,812; perl: 770; sed: 41; awk: 5
file content (22 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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])
])