File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,14 @@ def configure_extension
78
78
append_cflags ( "-DTAINTING_SUPPORT" )
79
79
end
80
80
81
- abort_could_not_find ( "sqlite3.h" ) unless find_header ( "sqlite3.h" )
81
+ if find_header ( "sqlite3.h" )
82
+ # noop
83
+ elsif find_header ( "#{ libname } /sqlite3.h" )
84
+ $defs. push "-DHAVE_LIB_FLDR"
85
+ else
86
+ abort_could_not_find ( "sqlite3.h" )
87
+ end
88
+
82
89
abort_could_not_find ( libname ) unless find_library ( libname , "sqlite3_libversion_number" , "sqlite3.h" )
83
90
84
91
# Functions defined in 1.9 but not 1.8
Original file line number Diff line number Diff line change 21
21
#define SQLITE3_UTF8_STR_NEW2 (_obj ) \
22
22
(rb_enc_associate_index(rb_str_new2(_obj), rb_utf8_encindex()))
23
23
24
-
24
+ #ifdef HAVE_LIB_FLDR /* only occurs with sqlcipher? */
25
+ #include <sqlcipher/sqlite3.h>
26
+ #else
25
27
#include <sqlite3.h>
28
+ #endif
26
29
27
30
#ifndef HAVE_TYPE_SQLITE3_INT64
28
31
typedef sqlite_int64 sqlite3_int64 ;
You can’t perform that action at this time.
0 commit comments