summaryrefslogtreecommitdiff
blob: be0a7e30dde33de5a238ca83b6ed82a64337cbcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Fix building with dlopen() not available.

--- /configure.ac
+++ /configure.ac
@@ -102,6 +102,9 @@
   [], [enable_dynamic_extensions=yes])
 if test x"$enable_dynamic_extensions" != "xno"; then
   AC_SEARCH_LIBS(dlopen, dl)
+  if test "${ac_cv_search_dlopen}" = "no"; then
+    BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_OMIT_LOAD_EXTENSION=1"
+  fi
 else
   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_OMIT_LOAD_EXTENSION=1"
 fi