blob: fb773e63884cc1569695c1a9a5892b275fcb8ed6 [file] [log] [blame]
Andrew Geisslereafcbb82020-06-05 17:59:17 -05001From a1134a31d417cc05a1fdb094f613a00a7a5e7ac5 Mon Sep 17 00:00:00 2001
2From: Chong Lu <Chong.Lu@windriver.com>
3Date: Thu, 28 May 2020 09:46:34 -0500
4Subject: [PATCH] net-snmp: add knob whether nlist.h are checked
Patrick Williamsb48b7b42016-08-17 15:04:38 -05005
6Previously, it still was checked when there was no nlish.h in sysroots directory.
7Add knob to decide whether nlist.h are checked or not.
8
9Upstream-status: Pending
10
11Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
12---
Andrew Geisslereafcbb82020-06-05 17:59:17 -050013 configure.d/config_os_headers | 2 ++
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014 1 file changed, 2 insertions(+)
15
16diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers
Andrew Geisslereafcbb82020-06-05 17:59:17 -050017index 2fdb5a35d6..af997461d5 100644
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018--- a/configure.d/config_os_headers
19+++ b/configure.d/config_os_headers
Andrew Geisslereafcbb82020-06-05 17:59:17 -050020@@ -32,6 +32,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021 [sys/un.h ])
22
23 # Library and Agent:
24+if test "x$with_elf" != "xno"; then
25 AC_CHECK_HEADERS([nlist.h],,,[
26 AC_INCLUDES_DEFAULT
27 [
Andrew Geisslereafcbb82020-06-05 17:59:17 -050028@@ -39,6 +40,7 @@ AC_INCLUDES_DEFAULT
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029 #define LIBBSD_DISABLE_DEPRECATED 1
30 #endif
31 ]])
32+fi
33
34 # Library:
35 AC_CHECK_HEADERS([fcntl.h io.h kstat.h ] dnl
36--
Andrew Geisslereafcbb82020-06-05 17:59:17 -0500372.26.2
Patrick Williamsb48b7b42016-08-17 15:04:38 -050038