1 From a770b7404b7611043701e56332eede3f19f4d7c5 Mon Sep 17 00:00:00 2001
2 From: Prajwal Mohan <prajwal.karur.mohan@intel.com>
3 Date: Wed, 10 Oct 2012 10:10:45 -0700
4 Subject: [PATCH 2/2] Adding changes to configure.ac
7 configure.ac | 24 +++++++++++++++++++++++-
8 1 files changed, 23 insertions(+), 1 deletions(-)
10 diff --git a/configure.ac b/configure.ac
11 index 9506827..97f62dc 100644
14 @@ -93,6 +93,19 @@ AC_ARG_ENABLE(exynos-experimental-api,
15 [Enable support for EXYNOS's experimental API (default: disabled)]),
16 [EXYNOS=$enableval], [EXYNOS=no])
19 + AS_HELP_STRING([--disable-slp],
20 + [Enable support for slp's API (default: auto)]),
21 + [SLP=$enableval], [SLP=auto])
23 +AC_ARG_VAR([bufmgr_dir], [Directory of slp-bufmgr])
25 +if test "x$bufmgr_dir" = xyes; then
26 + AC_DEFINE_UNQUOTED(BUFMGR_DIR, "$bufmgr_dir", [Directory for the modules of slp_bufmgr])
28 + AC_DEFINE(BUFMGR_DIR, "/usr/lib/bufmgr", [Directory for the modules of slp_bufmgr])
31 dnl ===========================================================================
32 dnl check compiler flags
33 AC_DEFUN([LIBDRM_CC_TRY_FLAG], [
34 @@ -214,7 +227,7 @@ if test "x$HAVE_LIBUDEV" = xyes; then
36 AM_CONDITIONAL(HAVE_LIBUDEV, [test "x$HAVE_LIBUDEV" = xyes])
38 -if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno" -o "x$OMAP" != "xno"; then
39 +if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno" -o "x$OMAP" != "xno" -o "x$SLP" != "xno"; then
40 # Check for atomic intrinsics
41 AC_CACHE_CHECK([for native atomic primitives], drm_cv_atomic_primitives,
43 @@ -286,6 +299,10 @@ if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno" -o "x$
47 +if test "x$SLP" != "xno"; then
48 + AC_DEFINE(HAVE_SLP, 1, [Have slp])
51 if test "x$INTEL" != "xno"; then
52 PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
54 @@ -297,6 +314,7 @@ if test "x$have_valgrind" = "xyes"; then
55 AC_DEFINE([HAVE_VALGRIND], 1, [Use valgrind intrinsics to suppress false warnings])
58 +AM_CONDITIONAL(HAVE_SLP, [test "x$SLP" != "xno"])
59 AM_CONDITIONAL(HAVE_INTEL, [test "x$INTEL" != "xno"])
60 AM_CONDITIONAL(HAVE_RADEON, [test "x$RADEON" != "xno"])
61 AM_CONDITIONAL(HAVE_NOUVEAU, [test "x$NOUVEAU" != "xno"])
62 @@ -315,6 +333,8 @@ AC_CONFIG_FILES([
71 @@ -346,4 +366,6 @@ echo " Radeon API $RADEON"
72 echo " Nouveau API $NOUVEAU"
73 echo " OMAP API $OMAP"
74 echo " EXYNOS API $EXYNOS"
76 +echo " SLP bufmgr_dir $bufmgr_dir"