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.
pull/360/merge
Ken Steele 12 years ago committed by Victor Julien
parent 9d677ea006
commit 3db717db6d

@ -384,6 +384,16 @@ AC_INIT(configure.ac)
# libraries # libraries
AC_MSG_CHECKING([for Mpipe])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <gxio/mpipe.h>]])],
[
AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_MPIPE],[1],[mPIPE support is available])
LDFLAGS="$LDFLAGS -lgxio -ltmc"
],
[AC_MSG_RESULT([no])])
#libpcre #libpcre
AC_ARG_WITH(libpcre_includes, AC_ARG_WITH(libpcre_includes,
[ --with-libpcre-includes=DIR libpcre include directory], [ --with-libpcre-includes=DIR libpcre include directory],

Loading…
Cancel
Save