Andrew Geissler | eafcbb8 | 2020-06-05 17:59:17 -0500 | [diff] [blame^] | 1 | From a1134a31d417cc05a1fdb094f613a00a7a5e7ac5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Chong Lu <Chong.Lu@windriver.com> |
| 3 | Date: Thu, 28 May 2020 09:46:34 -0500 |
| 4 | Subject: [PATCH] net-snmp: add knob whether nlist.h are checked |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 5 | |
| 6 | Previously, it still was checked when there was no nlish.h in sysroots directory. |
| 7 | Add knob to decide whether nlist.h are checked or not. |
| 8 | |
| 9 | Upstream-status: Pending |
| 10 | |
| 11 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> |
| 12 | --- |
Andrew Geissler | eafcbb8 | 2020-06-05 17:59:17 -0500 | [diff] [blame^] | 13 | configure.d/config_os_headers | 2 ++ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | 1 file changed, 2 insertions(+) |
| 15 | |
| 16 | diff --git a/configure.d/config_os_headers b/configure.d/config_os_headers |
Andrew Geissler | eafcbb8 | 2020-06-05 17:59:17 -0500 | [diff] [blame^] | 17 | index 2fdb5a35d6..af997461d5 100644 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | --- a/configure.d/config_os_headers |
| 19 | +++ b/configure.d/config_os_headers |
Andrew Geissler | eafcbb8 | 2020-06-05 17:59:17 -0500 | [diff] [blame^] | 20 | @@ -32,6 +32,7 @@ AC_CHECK_HEADERS([getopt.h pthread.h regex.h ] dnl |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 21 | [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 Geissler | eafcbb8 | 2020-06-05 17:59:17 -0500 | [diff] [blame^] | 28 | @@ -39,6 +40,7 @@ AC_INCLUDES_DEFAULT |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | #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 Geissler | eafcbb8 | 2020-06-05 17:59:17 -0500 | [diff] [blame^] | 37 | 2.26.2 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 38 | |