From 5a53260a819e2873f58165e96852529719101c53 Mon Sep 17 00:00:00 2001
From: Chunrong Guo <B40290@freescale.com>
Date: Mon, 4 Nov 2013 10:39:56 +0800
Subject: [PATCH] snort: add recipe

Upstream-Status:Inappropriate [embedded specific]

fix the below error:
checking for dap address space id... configure:
configure: error: cannot run test program while cross compiling

Signed-off-by: Chunrong Guo <B40290@freescale.com>

---
 configure.in | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/configure.in b/configure.in
index 6fe5d68..e7636ce 100644
--- a/configure.in
+++ b/configure.in
@@ -698,23 +698,23 @@ if test "x$ac_cv_func_daq_dp_add_dc" = "xyes"; then
 
 fi
 
-AC_MSG_CHECKING([for daq address space ID])
-AC_RUN_IFELSE(
-[AC_LANG_PROGRAM(
-[[
-#include <daq.h>
-]],
-[[
-   DAQ_PktHdr_t hdr;
-   hdr.address_space_id = 0;
-]])],
-[have_daq_address_space_id="yes"],
-[have_daq_address_space_id="no"])
-AC_MSG_RESULT($have_daq_address_space_id)
-if test "x$have_daq_address_space_id" = "xyes"; then
-    AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1],
-        [DAQ version supports address space ID in header.])
-fi
+#AC_MSG_CHECKING([for daq address space ID])
+#AC_RUN_IFELSE(
+#[AC_LANG_PROGRAM(
+#[[
+##include <daq.h>
+#]],
+#[[
+#   DAQ_PktHdr_t hdr;
+#   hdr.address_space_id = 0;
+#]])],
+have_daq_address_space_id="yes"
+#[have_daq_address_space_id="no"])
+#AC_MSG_RESULT($have_daq_address_space_id)
+#if test "x$have_daq_address_space_id" = "xyes"; then
+#    AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1],
+#        [DAQ version supports address space ID in header.])
+#fi
 
 AC_MSG_CHECKING([for daq flow ID])
 AC_RUN_IFELSE(
