[Snort-devel] Patches for configure.in

nnposter at ...64... nnposter at ...64...
Wed Mar 12 16:47:11 EST 2003


After further evaluation I tend to agree that the second FAIL_MESSAGE needs a
better location indicator. How about this: The first FAIL_MESSAGE should use
$LIBNET_INC_DIR and the second FAIL_MESSAGE should use $libnet_dir from line
839. The first FAIL_MESSAGE should still use $LIBNET_INC_DIR as originally
proposed.

The modified patch follows:


@@ -844,16 +844,17 @@

     if test "$LIBNET_INC_DIR" != ""; then
       if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0.2a >/dev/null"; then
-        FAIL_MESSAGE("libnet 1.0.2a (libnet.h)", $i)
+        AC_MSG_RESULT(no)
+        echo
+        echo "   ERROR!  Snort with --flexresp will *only* work with libnet"
+        echo "   version 1.0.2a, go get it from"
+        echo "   http://www.packetfactory.net/projects/libnet/"
+        FAIL_MESSAGE("libnet 1.0.2a (libnet.h)", $LIBNET_INC_DIR)
       fi
       AC_MSG_RESULT(yes)
     else
       AC_MSG_RESULT(no)
-      echo
-      echo "   ERROR!  Snort with --flexresp will *only* work with libnet"
-      echo "   version 1.0.2a, go get it from"
-      echo "   http://www.packetfactory.net/projects/libnet/"
-      FAIL_MESSAGE("libnet 1.0.2a (libnet.h)", $i)
+      FAIL_MESSAGE("libnet 1.0.2a (libnet.h)", $libnet_dir)
     fi

     LNET=""




More information about the Snort-devel mailing list