diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2016-04-01 15:28:09 +0200 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2016-04-01 15:28:09 +0200 |
commit | 549aef483c9f1852e1fbefabc4ebbbe72e00c243 (patch) | |
tree | 5d47083ddd386bd5e06e9e6e322e10e78d1ce20d /configure.ac | |
parent | 6b12a20c527cb6ced5b8911ea0f1dcdfc6e6f30c (diff) |
Use TI-RPC functions if we compile and link against libtirpc.
The old SunRPC functions don't work with IPv6.
* configure.ac: Set and restore CPPFLAGS
* modules/pam_unix/pam_unix_passwd.c: Replace getrpcport with
rpcb_getaddr if available.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 534194d4..20f6ba35 100644 --- a/configure.ac +++ b/configure.ac @@ -451,18 +451,21 @@ AC_ARG_ENABLE([nis], AS_IF([test "x$enable_nis" != "xno"], [ old_CFLAGS=$CFLAGS + old_CPPFLAGS=$CPPFLAGS old_LIBS=$LIBS dnl if there's libtirpc available, prefer that over the system dnl implementation. PKG_CHECK_MODULES([TIRPC], [libtirpc], [ CFLAGS="$CFLAGS $TIRPC_CFLAGS" + CPPFLAGS="$CPPFLAGS $TIRPC_CFLAGS" LIBS="$LIBS $TIRPC_LIBS" ], [:;]) PKG_CHECK_MODULES([NSL], [libnsl], [], [AC_CHECK_LIB([nsl],[yp_match],[NSL_LIBS="-lnsl"],[NSL_LIBS=""])]) CFLAGS="$CFLAGS $NSL_CFLAGS" + CPPFLAGS="$CPPFLAGS $NSL_CFLAGS" LIBS="$LIBS $NSL_LIBS" AC_CHECK_FUNCS([yp_get_default_domain yperr_string yp_master yp_bind yp_match yp_unbind]) @@ -475,6 +478,7 @@ AS_IF([test "x$enable_nis" != "xno"], [ ]) CFLAGS="$old_CFLAGS" + CPPFLAGS="$old_CPPFLAGS" LIBS="$old_LIBS" ]) |