]>
Commit | Line | Data |
---|---|---|
1 | --- configure.in | |
2 | +++ configure.in | |
3 | @@ -178,7 +178,10 @@ | |
4 | dnl XXX This could be done for cross-compiling, but for now it's not. | |
5 | dnl | |
6 | if test -z "$with_pcap" && test "$cross_compiling" = yes; then | |
7 | - AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...) | |
8 | + case $host in | |
9 | + *-linux*) with_pcap="linux";; | |
10 | + *) AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...);; | |
11 | + esac | |
12 | fi | |
13 | AC_ARG_WITH(pcap, [ --with-pcap=TYPE use packet capture TYPE]) | |
14 | AC_MSG_CHECKING(packet capture type) | |
15 | @@ -347,8 +350,10 @@ | |
16 | linux) | |
17 | AC_MSG_CHECKING(Linux kernel version) | |
18 | if test "$cross_compiling" = yes; then | |
19 | + dnl we could check linux/version.h here, but who runs | |
20 | + dnl versions of linux older than 2.0.x anymore to bother ? | |
21 | AC_CACHE_VAL(ac_cv_linux_vers, | |
22 | - ac_cv_linux_vers=unknown) | |
23 | + ac_cv_linux_vers=2) | |
24 | else | |
25 | AC_CACHE_VAL(ac_cv_linux_vers, | |
26 | ac_cv_linux_vers=`uname -r 2>&1 | \ |