1From 787269b337e70f073e194c3b361eaf4d5f2291ce 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
5
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---
13 configure.d/config_os_headers | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers
17index 584064e..c0688f8 100644
18--- a/configure.d/config_os_headers
19+++ b/configure.d/config_os_headers
20@@ -37,6 +37,7 @@ AC_CHECK_HEADERS([getopt.h   pthread.h  regex.h      ] dnl
21                  [sys/timeb.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 [
28@@ -44,6 +45,7 @@ AC_INCLUDES_DEFAULT
29 #define LIBBSD_DISABLE_DEPRECATED 1
30 #endif
31 ]])
32+fi
33
34 #  Library:
35 AC_CHECK_HEADERS([crt_externs.h                        ] dnl
36--
372.25.1
38
39