blob: a100b7cb83b9813bd35dd4505c0db7296f090b14 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001Upstream-Status:Inappropriate [embedded specific]
2
3fix the below error:
4configure: error: cannot run test program while cross compiling
5
6Signed-off-by: Chunrong Guo <B40290@freescale.com>
7
8--- a/m4/sf.m4old 2015-10-28 10:21:20.270557986 +0800
9+++ a/m4/sf.m4 2015-10-28 10:23:22.726551974 +0800
10@@ -135,20 +135,7 @@
11 echo
12 exit 1
13 fi
14- AC_CACHE_CHECK([for libpcap version >= $1], [daq_cv_libpcap_version_1x], [
15- AC_RUN_IFELSE(
16- [AC_LANG_PROGRAM(
17- [[
18- #include <pcap.h>
19- #include <string.h>
20- extern char pcap_version[];
21- ]],
22- [[
23- if (strcmp(pcap_version, $1) < 0)
24- return 1;
25- ]])],
26- [daq_cv_libpcap_version_1x="yes"],
27- [daq_cv_libpcap_version_1x="no"])])
28+ AC_CACHE_CHECK([for libpcap version >= $1], [daq_cv_libpcap_version_1x])
29 if test "x$daq_cv_libpcap_version_1x" = "xno"; then
30 echo
31 echo " ERROR! Libpcap library version >= $1 not found."