Patches configure scripts to fix dependencies on libdnet in order to be
compatible with the debian distributed libraries.

Updated 12JAN10, thanks to Javier Fernández-Sanguino Peña <jfs@computer.org>.

Author: Chris Taylor <ctaylor@debian.org>

--- a/daemonlogger.c
+++ b/daemonlogger.c
@@ -103,7 +103,7 @@
 #include <dirent.h>
 #include <syslog.h>
 #include <pcap.h>
-#include <dnet.h>
+#include <dumbnet.h>
 #include <grp.h>
 #include <pwd.h>
 #include <ctype.h>
--- a/configure.in
+++ b/configure.in
@@ -134,17 +134,18 @@ if test "$GCC" = yes ; then
     CFLAGS="$CFLAGS -g -O0 -Wall"
 fi
 
-LDFLAGS="${LDFLAGS} `dnet-config --libs`"
-CFLAGS="${CFLAGS} `dnet-config --cflags`"
+LDFLAGS="${LDFLAGS} `dumbnet-config --libs`"
+CFLAGS="${CFLAGS} `dumbnet-config --cflags`"
 LDNET=""
-AC_CHECK_LIB(dnet, intf_open,, LDNET="no")
+AC_CHECK_LIB(dumbnet, intf_open,, LDNET="no")
 echo "LDFLAGS set to $LDFLAGS"
 echo "CFLAGS set to $CFLAGS"
 
 if test "$LDNET" = "no"; then
    echo
-   echo "   ERROR!  Libdnet library/headers not found, go get it from"
+   echo "   ERROR!  Libdumbnet library/headers not found, go get it from"
    echo "   http://libdnet.sourceforge.net"
+   echo "   (in Debian systems, install the libdumbnet-dev package)"
    exit
 fi
 
