$NetBSD: patch-ae,v 1.5 2013/03/03 04:52:39 joerg 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
@@ -28261,14 +28261,8 @@ int
 main ()
 {
 
-            int main(int argc, char **argv)
-            {
                pthread_create(NULL, NULL, NULL, NULL);
                return 0;
-            }
-
-  ;
-  return 0;
 }
 _ACEOF
 rm -f conftest.$ac_objext conftest$ac_exeext
@@ -31721,11 +31715,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
