]> git.ipfire.org Git - thirdparty/util-linux.git/commit
autotools: cleanup lastlog2 stuff
authorKarel Zak <kzak@redhat.com>
Mon, 29 Jan 2024 20:04:23 +0000 (21:04 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 29 Jan 2024 20:39:53 +0000 (21:39 +0100)
commitdd3bbc9c108f155b5a372b85a470ee86f7f7937c
treeaae01323cdf1f39988fc965bd23fe67406922911
parent2cd89de14549d2b2c079a4f8b73f75500d229fee
autotools: cleanup lastlog2 stuff

* use pkg-config (PKG_CHECK_MODULES) rather than check for sqlite3.h
  only
* define $SQLITE3_LIBS

* use UL_ macros in configure.ac for liblastlog2 and pam_lastlog2

* add --disable-pam-lastlog2

* check for PAM to define BUILD_PAM_LASTLOG2

* install lastlog2.h to $(includedir)/liblastlog2/lastlog2.h

* fix liblastlog2_la_LDFLAG

* add Requires.private to lastlog2.pc.in

* use $(SQLITE3_LIBS) rather than hardcoded -lsqlite3

Fixes: https://github.com/util-linux/util-linux/issues/2734
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
liblastlog2/lastlog2.pc.in
liblastlog2/src/Makemodule.am
pam_lastlog2/Makemodule.am