Mesa (master): configure.ac: Add option for libclc path

Tom Stellard tstellar at kemper.freedesktop.org
Fri Jun 1 16:24:53 UTC 2012


Module: Mesa
Branch: master
Commit: c79e7668b205492f6e3a7e5d599f6eb6a9bd1eb9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c79e7668b205492f6e3a7e5d599f6eb6a9bd1eb9

Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Mon Mar 12 13:53:20 2012 -0400

configure.ac: Add option for libclc path

---

 configs/autoconf.in |    3 +++
 configure.ac        |    8 ++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/configs/autoconf.in b/configs/autoconf.in
index 2a111c7..6be9777 100644
--- a/configs/autoconf.in
+++ b/configs/autoconf.in
@@ -191,6 +191,9 @@ VA_LIB_INSTALL_DIR=@VA_LIB_INSTALL_DIR@
 # Xorg driver install directory (for xorg state-tracker)
 XORG_DRIVER_INSTALL_DIR = @XORG_DRIVER_INSTALL_DIR@
 
+# Path to OpenCL C library libclc
+LIBCLC_PATH = @LIBCLC_PATH@
+
 # pkg-config substitutions
 GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
 GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
diff --git a/configure.ac b/configure.ac
index 06fc2de..7ddd5fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1620,6 +1620,14 @@ dnl
 dnl OpenCL configuration
 dnl
 
+AC_ARG_WITH([libclc-path],
+   [AS_HELP_STRING([--with-libclc-path],
+         [Path to libclc builtins library.  Example: --with-libclc-path=\$HOME/libclc/])],
+   [LIBCLC_PATH="$withval"],
+   [LIBCLC_PATH=""])
+
+AC_SUBST([LIBCLC_PATH])
+
 if test "x$enable_opencl" = xyes; then
     if test "x$with_gallium_drivers" = x; then
         AC_MSG_ERROR([cannot enable OpenCL without Gallium])




More information about the mesa-commit mailing list