From 7417e9a171736b5279881cd4381fb58c617a23d9 Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 28 Nov 2011 08:33:39 +0100 Subject: mesa git update 28 nov 2011 --- mesalib/configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'mesalib/configure.ac') diff --git a/mesalib/configure.ac b/mesalib/configure.ac index 8885a6d74..febb9f680 100644 --- a/mesalib/configure.ac +++ b/mesalib/configure.ac @@ -1468,9 +1468,21 @@ fi dnl dnl XA configuration dnl +if test "x$enable_xa" = xyes; then +AC_PROG_AWK +AC_PROG_GREP +AC_CHECK_PROG(NM, nm, "nm") +if test "x$AWK" = x || test "x$GREP" = x || test "x$NM" = x; then +AC_MSG_WARN([Missing one of nm, grep or awk. Disabling xa.]) +enable_xa=no +fi +fi if test "x$enable_xa" = xyes; then GALLIUM_STATE_TRACKERS_DIRS="xa $GALLIUM_STATE_TRACKERS_DIRS" HAVE_ST_XA=yes + AC_SUBST(AWK) + AC_SUBST(GREP) + AC_SUBST(NM) fi dnl -- cgit v1.2.3