4 dnl XXX This could be done for cross-compiling, but for now it's not.
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=...)
9 + *-linux*) with_pcap="linux";;
10 + *) AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...);;
13 AC_ARG_WITH(pcap, [ --with-pcap=TYPE use packet capture TYPE])
14 AC_MSG_CHECKING(packet capture type)
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)
25 AC_CACHE_VAL(ac_cv_linux_vers,
26 ac_cv_linux_vers=`uname -r 2>&1 | \