$NetBSD: patch-ae,v 1.4 2011/12/22 22:11:41 marino Exp $

--- configure.orig	2005-05-27 15:11:45.000000000 +0000
+++ configure
@@ -2169,7 +2169,7 @@ fi
 
    OS="LINUX"
    ;;
-*freebsd*)
+*freebsd* | *dragonfly*)
    cat >>confdefs.h <<\_ACEOF
 #define OS_BSD 1
 _ACEOF
@@ -8346,7 +8346,7 @@ echo "${ECHO_T}no" >&6
   exit 1
 fi
 gentoo_lt_version="1.5.18"
-gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'`
+gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[[:space:]]*VERSION=||'`
 if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
   echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6
@@ -31721,11 +31721,11 @@ echo "$as_me: error: \"*** ettercap cann
         ac_ec_libnet=$withval
         echo "$as_me:$LINENO: result: $withval" >&5
 echo "${ECHO_T}$withval" >&6
-     elif test -f $withval/include/libnet.h; then
+     elif test -f @@LN_INC@@/libnet.h; then
         owd=`pwd`
         if cd $withval; then withval=`pwd`; cd $owd; fi
-        LNETINC="-I$withval/include"
-        LNETLIB="-L$withval/lib -L$withval/src -lnet"
+        LNETINC="-I@@LN_INC@@"
+        LNETLIB="-L@@LN_LIB@@ -L$withval/src -lnet"
         ac_ec_libnet=$withval
         echo "$as_me:$LINENO: result: $withval" >&5
 echo "${ECHO_T}$withval" >&6
