mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
30 lines
919 B
Plaintext
30 lines
919 B
Plaintext
|
AC_DEFUN([ZFS_AC_CONFIG_USER_SYSTEMD], [
|
||
|
AC_ARG_ENABLE(systemd,
|
||
|
AC_HELP_STRING([--enable-systemd],
|
||
|
[install systemd unit/preset files [[default: yes]]]),
|
||
|
[],enable_systemd=yes)
|
||
|
|
||
|
AC_ARG_WITH(systemdunitdir,
|
||
|
AC_HELP_STRING([--with-systemdunitdir=DIR],
|
||
|
[install systemd unit files in dir [[/usr/lib/systemd/system]]]),
|
||
|
systemdunitdir=$withval,systemdunitdir=/usr/lib/systemd/system)
|
||
|
|
||
|
AC_ARG_WITH(systemdpresetdir,
|
||
|
AC_HELP_STRING([--with-systemdpresetdir=DIR],
|
||
|
[install systemd preset files in dir [[/usr/lib/systemd/system-preset]]]),
|
||
|
systemdpresetdir=$withval,systemdpresetdir=/usr/lib/systemd/system-preset)
|
||
|
|
||
|
AS_IF([test "x$enable_systemd" = xyes],
|
||
|
[
|
||
|
ZFS_INIT_SYSTEMD=systemd
|
||
|
ZFS_MODULE_LOAD=modules-load.d
|
||
|
modulesloaddir=/usr/lib/modules-load.d
|
||
|
])
|
||
|
|
||
|
AC_SUBST(ZFS_INIT_SYSTEMD)
|
||
|
AC_SUBST(ZFS_MODULE_LOAD)
|
||
|
AC_SUBST(systemdunitdir)
|
||
|
AC_SUBST(systemdpresetdir)
|
||
|
AC_SUBST(modulesloaddir)
|
||
|
])
|