Lines 9-11
Link Here
|
9 |
|
9 |
|
10 |
if test -n "$ac_tool_prefix"; then |
10 |
if test -n "$ac_tool_prefix"; then |
11 |
# Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. |
11 |
# Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. |
|
|
12 |
@@ -8193,9 +8193,11 @@ done |
13 |
|
14 |
|
15 |
# On Linux, netlink.h requires asm/types.h |
16 |
-for ac_header in linux/netlink.h |
17 |
+# On FreeBSD, netlink.h is located in netlink/netlink.h |
18 |
+for ac_header in linux/netlink.h netlink/netlink.h |
19 |
do : |
20 |
- ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " |
21 |
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
22 |
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
23 |
#ifdef HAVE_ASM_TYPES_H |
24 |
#include <asm/types.h> |
25 |
#endif |
26 |
@@ -8204,9 +8206,9 @@ do : |
27 |
#endif |
28 |
|
29 |
" |
30 |
-if test "x$ac_cv_header_linux_netlink_h" = xyes; then : |
31 |
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
32 |
cat >>confdefs.h <<_ACEOF |
33 |
-#define HAVE_LINUX_NETLINK_H 1 |
34 |
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
35 |
_ACEOF |
36 |
|
37 |
fi |