Browse Source

Reset opencl flags if not detected to prevent build failure without opencl.

Con Kolivas 14 years ago
parent
commit
da764e5441
1 changed files with 3 additions and 0 deletions
  1. 3 0
      configure.ac

+ 3 - 0
configure.ac

@@ -126,6 +126,9 @@ if test "x$opencl" != xno; then
 	found_opencl=0])
 	LIBS=$SAVED_LIBS
 	CFLAGS=$SAVED_CFLAGS
+else
+	OPENCL_FLAGS=""
+	OPENCL_LIBS=""
 fi
 
 AC_CHECK_LIB(pthread, pthread_create, ,