瀏覽代碼

configure.ac: fix option --disable-socl

Nathalie Furmento 13 年之前
父節點
當前提交
a838e9829f
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      configure.ac

+ 5 - 1
configure.ac

@@ -1203,7 +1203,11 @@ if test "x$enable_socl" = "xyes" -a "$have_valid_opencl" = "no" ; then
 fi
 
 # now we enable SOCL if and only if a proper setup is available
-build_socl=$have_valid_opencl
+if test "x$enable_socl" = "xyes" -o "x$enable_socl" = "xmaybe" ; then
+   build_socl=$have_valid_opencl
+else
+   build_socl=no
+fi
 
 AC_MSG_RESULT($build_socl)
 AM_CONDITIONAL([BUILD_SOCL], [test "x$build_socl" = "xyes"])