mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 22:48:07 -07:00
Add a couple patches to fix a few options in
configure.ac. --without-pam no longer acts as if --with-pam was
given. Now uses pkg-config to get any special settings for
libmemcached rather than using fixed sub-directories
(${user_provided_path}/{include,lib,…}). Lastly, introduced AX_PTHREAD
to link in the appropriate threading library to fix bug 616302.
If libmemcached was built with USE=sasl which builds against
cyrus-sasl. cyrus-sasl builds against a threading library which
necessitates including the same threading in pgpool2 despite pgpool2
not being a threaded program.
pgpool2 is now able to build against LibreSSL as well as OpenSSL. The
ebuild now reflects this fact
Bug: https://bugs.gentoo.org/616302
Bug: https://bugs.gentoo.org/646888
Package-Manager: Portage-2.3.40, Repoman-2.3.9
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -330,11 +330,13 @@
|
|
|
|
-AC_ARG_WITH(pam,
|
|
- [ --with-pam build with PAM support],
|
|
- [AC_DEFINE([USE_PAM], 1, [Define to 1 to build with PAM support. (--with-pam)])])
|
|
-if test "$with_pam" = yes ; then
|
|
- AC_CHECK_LIB(pam, pam_start, [], [AC_MSG_ERROR([library 'pam' is required for PAM])])
|
|
- AC_CHECK_HEADERS(security/pam_appl.h, [],
|
|
- [AC_CHECK_HEADERS(pam/pam_appl.h, [],
|
|
- [AC_MSG_ERROR([header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM.])])])
|
|
-fi
|
|
+AC_ARG_WITH([pam], AS_HELP_STRING([--with-pam], [Build with PAM support]))
|
|
+
|
|
+AS_IF([test "x$with_pam" = "xyes"], [
|
|
+ AC_DEFINE([USE_PAM], 1, [Define to 1 to build with PAM support])
|
|
+ AC_CHECK_LIB(pam, pam_start, [], [AC_MSG_ERROR([library 'pam' is required for PAM])])
|
|
+ AC_CHECK_HEADERS(security/pam_appl.h,
|
|
+ [],
|
|
+ [AC_CHECK_HEADERS(pam/pam_appl.h, [],
|
|
+ [AC_MSG_ERROR([header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM.])])])
|
|
+
|
|
+])
|
|
|