$NetBSD: patch-ab,v 1.12 2007/09/15 07:35:38 adam Exp $ --- configure.in.orig 2007-06-09 23:30:00.000000000 +0200 +++ configure.in @@ -432,6 +432,15 @@ case "${target}:${CC}" in echo "* This appears to be ${DEFINEOS} (release not checked)" ;; + *-*-netbsd*:* ) + DEFINEOS="NETBSD" + echo "* This appears to be ${DEFINEOS}" + ;; + *-*-openbsd*:* ) + DEFINEOS="OPENBSD" + echo "* This appears to be ${DEFINEOS}" + ;; + * ) echo "* ${target} is an unknown/unsupported OS" echo "*" @@ -577,8 +586,8 @@ dnl> user defined directory passed as op dnl> if test ".${PCAP_ROOT}" != .; then if test -d $PCAP_ROOT && - test -r $PCAP_ROOT/libpcap.a && - test -r $PCAP_ROOT/pcap.h; then + test -r $PCAP_ROOT/lib/libpcap.a && + test -r $PCAP_ROOT/include/pcap.h; then PCAP_ROOT=`cd ${PCAP_ROOT} && pwd` CORELIBS="${CORELIBS} -L$PCAP_ROOT -lpcap" INCS="${INCS} -I$PCAP_ROOT"