From 3db717db6d05aee16b00cdbdd1184af2063a54aa Mon Sep 17 00:00:00 2001 From: Ken Steele Date: Mon, 20 May 2013 15:16:47 -0400 Subject: [PATCH] Update configure.ac to detect Tile architecture. Detect if the architecture supports the Tilera mPipe packet processing hardware. It it does, add the requried libraries and define HAVE_MPIPE. --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index a0075512be..775c16f834 100644 --- a/configure.ac +++ b/configure.ac @@ -384,6 +384,16 @@ AC_INIT(configure.ac) # libraries + AC_MSG_CHECKING([for Mpipe]) + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include ]])], + [ + AC_MSG_RESULT([yes]) + AC_DEFINE([HAVE_MPIPE],[1],[mPIPE support is available]) + LDFLAGS="$LDFLAGS -lgxio -ltmc" + ], + [AC_MSG_RESULT([no])]) + #libpcre AC_ARG_WITH(libpcre_includes, [ --with-libpcre-includes=DIR libpcre include directory],