diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-07 12:34:12 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-07 22:09:01 +0200 |
| commit | 35668367ce557f78b44331369635274f5ca755ce (patch) | |
| tree | 762030608a89c7e5126312bc6972a2ae38d439fd /wscript | |
| parent | ae2a1fef196c16e561cf480393e4c90dc597ffbe (diff) | |
Use macOS' own sqlite3 library (#3087).
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -669,8 +669,16 @@ def configure(conf): mandatory=False) - # sqlite3 - conf.check_cfg(package="sqlite3", args='--cflags --libs', uselib_store='SQLITE3', mandatory=True) + # sqlite3: most platforms have a .pc file (but macOS not) + if conf.check_cfg(package="sqlite3", args='--cflags --libs', uselib_store='SQLITE3', mandatory=False) is None: + conf.check_cxx(fragment=""" + #include <sqlite3.h> + int main() { return sqlite3_libversion_number(); } + """, + msg="Checking for sqlite3", + lib=['sqlite3'], + uselib_store='SQLITE3') + conf.check_cxx(fragment=""" #include <sqlite3.h> int main() { sqlite3_prepare_v3(nullptr, "", -1, 0, nullptr, nullptr); } |
