]> code.ossystems Code Review - openembedded-core.git/blob
7d5c087c9d50e41f8ab95a5096a2b1f152036675
[openembedded-core.git] /
1 From 684e45b34a33186bb17bcee0b01814c549a60bf6 Mon Sep 17 00:00:00 2001
2 From: Kai Kang <kai.kang@windriver.com>
3 Date: Wed, 6 Mar 2019 09:36:11 -0500
4 Subject: [PATCH] inetutils: Import version 1.9.4
5
6 Only check security/pam_appl.h which is provided by package libpam when pam is
7 enabled.
8
9 Upstream-Status: Pending
10
11 Signed-off-by: Kai Kang <kai.kang@windriver.com>
12
13 ---
14  configure.ac | 15 ++++++++++++++-
15  1 file changed, 14 insertions(+), 1 deletion(-)
16
17 diff --git a/configure.ac b/configure.ac
18 index 86136fb..b220319 100644
19 --- a/configure.ac
20 +++ b/configure.ac
21 @@ -183,6 +183,19 @@ AC_SUBST(LIBUTIL)
22  
23  # See if we have libpam.a.  Investigate PAM versus Linux-PAM.
24  if test "$with_pam" = yes ; then
25 +  AC_CHECK_HEADERS([security/pam_appl.h], [], [], [
26 +#include <sys/types.h>
27 +#ifdef HAVE_NETINET_IN_SYSTM_H
28 +# include <netinet/in_systm.h>
29 +#endif
30 +#include <netinet/in.h>
31 +#ifdef HAVE_NETINET_IP_H
32 +# include <netinet/ip.h>
33 +#endif
34 +#ifdef HAVE_SYS_PARAM_H
35 +# include <sys/param.h>
36 +#endif
37 +])
38    AC_CHECK_LIB(dl, dlopen, LIBDL=-ldl)
39    AC_CHECK_LIB(pam, pam_authenticate, LIBPAM=-lpam)
40    if test "$ac_cv_lib_pam_pam_authenticate" = yes ; then
41 @@ -620,7 +633,7 @@ AC_HEADER_DIRENT
42  AC_CHECK_HEADERS([arpa/nameser.h arpa/tftp.h errno.h fcntl.h features.h \
43                   glob.h memory.h netinet/ether.h netinet/in_systm.h \
44                   netinet/ip.h netinet/ip_icmp.h netinet/ip_var.h \
45 -                 security/pam_appl.h shadow.h \
46 +                 shadow.h \
47                   stdarg.h stdlib.h string.h stropts.h sys/tty.h \
48                   sys/utsname.h sys/ptyvar.h sys/msgbuf.h sys/filio.h \
49                   sys/ioctl_compat.h sys/cdefs.h sys/stream.h sys/mkdev.h \