blob: 74b0c12e0566700e2da89373c6a29321f751f458 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001net-snmp: add knob whether nlist.h are checked
2
3Previously, it still was checked when there was no nlish.h in sysroots directory.
4Add knob to decide whether nlist.h are checked or not.
5
6Upstream-status: Pending
7
8Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
9---
10 configure.d/config_os_headers | 2 ++
11 1 file changed, 2 insertions(+)
12
13diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers
14index d903f58..a05d30e 100644
15--- a/configure.d/config_os_headers
16+++ b/configure.d/config_os_headers
17@@ -31,6 +31,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl
18 [sys/un.h ])
19
20 # Library and Agent:
21+if test "x$with_elf" != "xno"; then
22 AC_CHECK_HEADERS([nlist.h],,,[
23 AC_INCLUDES_DEFAULT
24 [
25@@ -38,6 +39,7 @@ AC_INCLUDES_DEFAULT
26 #define LIBBSD_DISABLE_DEPRECATED 1
27 #endif
28 ]])
29+fi
30
31 # Library:
32 AC_CHECK_HEADERS([fcntl.h io.h kstat.h ] dnl
33--
341.7.9.5
35