...
diff --git a/configure.ac b/configure.ac
index b10db0e..6f006e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1686,7 +1686,7 @@
 with_ltdl='yes'
 have_ltdl='no'
 LTDL_LIBS=''
-if test "$build_modules" != 'no' || test "$enable_opencl" != 'no' ; then
+if test "$build_modules" != 'no' || test "X$ax_cv_check_cl_libcl" != Xno; then
   AC_MSG_RESULT([-------------------------------------------------------------])
   AC_MSG_CHECKING([for libltdl])
   AC_MSG_RESULT([])