AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_PATH_PYTHON([3],, [:])
-AM_MAINTAINER_MODE
+
+AC_PROG_CC
+AM_PROG_LEX
+AC_PROG_YACC
# Checks for functions, headers, structures, etc.
+AC_HEADER_STDC
AC_CHECK_HEADERS([termios.h])
AC_CHECK_MEMBERS([struct sysinfo.totalram],[],[],[AC_INCLUDES_DEFAULT
#include <sys/sysinfo.h>
XORG_MACROS_VERSION(1.16)
XORG_DEFAULT_OPTIONS
+# warning flags for the assembler. We can't quite use CWARNFLAGS for it yet as
+# it generates waaaay too many warnings.
+ASSEMBLER_WARN_CFLAGS=""
+if test "x$GCC" = "xyes"; then
+ ASSEMBLER_WARN_CFLAGS="-Wall -Wstrict-prototypes \
+ -Wmissing-prototypes -Wmissing-declarations \
+ -Wnested-externs -fno-strict-aliasing"
+fi
+AC_SUBST(ASSEMBLER_WARN_CFLAGS)
+
PKG_CHECK_MODULES(DRM, [libdrm_intel >= 2.4.38 libdrm])
PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
# for testdisplay
-PKG_CHECK_MODULES(CAIRO, cairo)
+PKG_CHECK_MODULES(CAIRO, [cairo >= 1.12.0])
PKG_CHECK_MODULES(LIBUDEV, [libudev], [udev=yes], [udev=no])
if test x"$udev" = xyes; then
AC_DEFINE(HAVE_UDEV,1,[Enable udev-based monitor hotplug detection])
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
# -----------------------------------------------------------------------------
AC_ARG_ENABLE(dumper,
AS_HELP_STRING([--disable-dumper],
[Disable the python based register dumper (default: enabled)]),
- DUMPER=$enableval], [DUMPER=yes])
+ [DUMPER=$enableval], [DUMPER=yes])
if test "x$DUMPER" == xyes; then
AC_DEFINE(HAVE_DUMPER, 1, [Have dumper support])
# SWIG configuration
fi
AM_CONDITIONAL(BUILD_SHADER_DEBUGGER, [test "x$BUILD_SHADER_DEBUGGER" != xno])
+AS_IF([test "x$BUILD_SHADER_DEBUGGER" != xno],
+ [enable_debugger=yes], [enable_debugger=no])
+
# -----------------------------------------------------------------------------
# To build multithread code, gcc uses -pthread, Solaris Studio cc uses -mt
tools/quick_dump/Makefile
debugger/Makefile
debugger/system_routine/Makefile
+ assembler/Makefile
+ assembler/doc/Makefile
+ assembler/test/Makefile
+ assembler/intel-gen4asm.pc
])
AC_OUTPUT
+# Print a summary of the compilation
+echo ""
+echo "Intel GPU tools"
+
+echo ""
+echo " • Tests:"
+echo " Build tests : ${BUILD_TESTS}"
+echo " Compile prime tests: ${NOUVEAU}"
+echo ""
+echo " • Tools:"
+echo " Assembler : ${enable_assembler}"
+echo " Debugger : ${enable_debugger}"
+echo " Python dumper : ${DUMPER}"
+echo ""
+
# vim: set ft=config ts=8 sw=8 tw=0 noet :