diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-06-13 21:36:53 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-06-17 13:35:35 +0100 |
commit | 55bead4bb502b8fef9485f0e31055cc546e652bb (patch) | |
tree | efd12e244570004f56373b34039e11e5a04e59d9 /configure.ac | |
parent | 3a183e87421fdef3e8f7e7459d539ab28a6a2241 (diff) |
initial opencl configure pieces.
Change-Id: I5592fdab8f6029e371b3d70f3334b737a6262eac
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6b5168778233..c4529f607784 100644 --- a/configure.ac +++ b/configure.ac @@ -1754,6 +1754,16 @@ AC_ARG_WITH(windows-sdk, ], ,) +AC_ARG_WITH(opencl-sdk, + AS_HELP_STRING([--with-opencl-sdk], + [If you have the AMD HSA / opencl SDK installed (cf. + http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/ ) + Pass the absolute path to where that SDK is unpacked.]) + [ + Usage: --with-opencl-sdk=/opt/AMDAPP + ], +,) + AC_ARG_WITH(lang, AS_HELP_STRING([--with-lang], [Use this option to build LibreOffice with additional language support. @@ -9733,6 +9743,30 @@ fi AC_SUBST(SYSTEM_MESA_HEADERS) AC_SUBST(ENABLE_OPENGL) +dnl ================================================= +dnl Check whether the OpenCL libraries are available +dnl ================================================= + +OPENCL_LIBS= +OPENCL_CFLAGS= +ENABLE_OPENCL= +AC_MSG_CHECKING([opencl sdk]) +if test "z$with_opencl_sdk" = "z"; then + AC_MSG_RESULT([no]) +else + if test -d $with_opencl_sdk/include; then + ENABLE_OPENCL=TRUE + OPENCL_CFLAGS="-I $with_opencl_sdk/include" + OPENCL_LIBS="-L $with_opencl_sdk/lib/x86 -lOpenCL" + AC_MSG_RESULT([found at path $with_opencl_sdk]) + else + AC_MSG_ERROR([no headers found found at $with_opencl_sdk/include ]) + fi +fi +AC_SUBST(OPENCL_CFLAGS) +AC_SUBST(OPENCL_LIBS) +AC_SUBST(ENABLE_OPENCL) + # presenter minimizer extension? AC_MSG_CHECKING([whether to build the Presentation Minimizer extension]) if test "x$enable_ext_presenter_minimizer" != "xno" -a "x$enable_extension_integration" != "xno"; then |