diff mbox

[04/90] build: Only build the assembler if flex and bison are found

Message ID 1359991705-5254-5-git-send-email-damien.lespiau@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lespiau, Damien Feb. 4, 2013, 3:26 p.m. UTC
And start displaying a nice summary of what we are going to compile.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 Makefile.am  |    6 +++++-
 configure.ac |   15 +++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/Makefile.am b/Makefile.am
index a135531..60fc03e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -21,7 +21,11 @@ 
 
 ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
 
-SUBDIRS = lib man tools scripts tests benchmarks demos assembler
+SUBDIRS = lib man tools scripts tests benchmarks demos
+
+if BUILD_ASSEMBLER
+SUBDIRS += assembler
+endif
 
 if BUILD_SHADER_DEBUGGER
 SUBDIRS += debugger
diff --git a/configure.ac b/configure.ac
index fb3450b..ff7e779 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,6 +93,12 @@  if test x"$udev" = xyes; then
 fi
 PKG_CHECK_MODULES(GLIB, glib-2.0)
 
+# can we build the assembler?
+AS_IF([test x"$LEX" != "x:" -a x"$YACC" != xyacc],
+      [enable_assembler=yes],
+      [enable_assembler=no])
+AM_CONDITIONAL(BUILD_ASSEMBLER, [test "x$enable_assembler" = xyes])
+
 # -----------------------------------------------------------------------------
 #			Configuration options
 # -----------------------------------------------------------------------------
@@ -155,3 +161,12 @@  AC_CONFIG_FILES([
 	assembler/intel-gen4asm.pc
 ])
 AC_OUTPUT
+
+# Print a summary of the compilation
+echo ""
+echo "Intel GPU tools"
+
+echo ""
+echo " • Tools:"
+echo "       Assembler: ${enable_assembler}"
+echo ""