]> git.ipfire.org Git - thirdparty/util-linux.git/commit
build-sys: use PKG_CHECK_VAR()
authorKarel Zak <kzak@redhat.com>
Tue, 14 Jun 2022 13:47:05 +0000 (15:47 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Jun 2022 13:47:05 +0000 (15:47 +0200)
commitf6d3f34a8593adee7ba3dfa933fb5fb2c9ea7ff3
treea71e30d40b5562cf5bcd7b75a6a98556a6433f6b
parent0f854295f37bf06003a3bacd4e2765edfca19548
build-sys: use PKG_CHECK_VAR()

Do not call 'PKG_CONFIG --exists' and '$PKG_CONFIG --variable' if
there is a much more robust PKG_CHECK_VAR() macro.

It's also not necessary to check for the dirs if all the feature
(systemd or bashcompletiondir) is disabled.

Reported-by: Rolf Eike Beer <eb@emlix.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac