]> git.ozlabs.org Git - ppp.git/commit
Use pkg-config to detect PAM when possible (#479)
authorMike Gilbert <floppym@gentoo.org>
Fri, 26 Apr 2024 09:10:16 +0000 (05:10 -0400)
committerGitHub <noreply@github.com>
Fri, 26 Apr 2024 09:10:16 +0000 (19:10 +1000)
commit9c5701cb4078b1dc2f40da05a0ba715ec3984b62
tree15389fcc8a0e8802c81098f1cae20c3d8c0c73eb
parent100afafa365b974cc9761be51ad126e0d9121eed
Use pkg-config to detect PAM when possible (#479)

This fixes a link error on Gentoo Linux by not putting -L/usr/lib in the
link command on 64-bit systems. The correct path is -L/usr/lib64, and
this is the default path used by GCC and clang.

Users may override pkg-config by setting PAM_CFLAGS and PAM_LDFLAGS in
the environment before calling configure. This is standard behavior for
the PKG_CHECK_MODULES macro.

The legacy detection logic is maintained when a path is given as an
argument to --with-pam. Note that this logic is broken when libdir is
not "lib".

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
m4/ax_check_pam.m4