]> git.ipfire.org Git - thirdparty/util-linux.git/commit
meson: Disable targets requiring pam when it is missing
authorJordan Williams <jordan@jwillikers.com>
Mon, 8 Apr 2024 15:12:17 +0000 (10:12 -0500)
committerJordan Williams <jordan@jwillikers.com>
Mon, 8 Apr 2024 15:56:23 +0000 (10:56 -0500)
commit9e3c5d1b5351333129a967dbf3b5ac4a78190772
tree1b35adbfe7305dc7c9742c09d0739d75758f91d5
parent07aacb371470b5561f13b95e399e5ff77e417b8f
meson: Disable targets requiring pam when it is missing

Several executables require the pam library.
The current behavior in Meson only requires this library when these
executables are explicitly enabled.
Unfortunately, by default, Meson will not throw an error when the
required pam library is missing while still trying to build these
executables.
To fix this, make the pam library a disabler which automatically
disables these executables if it is not found.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
meson.build