| 1 |
#!/do/not/tclsh |
| 2 |
# ^^^ help out editors which guess this file's content type. |
| 3 |
# |
| 4 |
# This is the main autosetup-compatible configure script for the |
| 5 |
# "autoconf" bundle of the SQLite project. |
| 6 |
use sqlite-config |
| 7 |
sqlite-configure autoconf { |
| 8 |
sqlite-handle-debug |
| 9 |
sqlite-check-common-bins ;# must come before [sqlite-handle-wasi-sdk] |
| 10 |
sqlite-handle-wasi-sdk ;# must run relatively early, as it changes the environment |
| 11 |
sqlite-check-common-system-deps |
| 12 |
proj-define-for-opt static-shell ENABLE_STATIC_SHELL \ |
| 13 |
"Link library statically into the CLI shell?" |
| 14 |
proj-define-for-opt static-cli-shell STATIC_CLI_SHELL "Statically link CLI shell?" |
| 15 |
if {![opt-bool static-shell] && [opt-bool static-cli-shell]} { |
| 16 |
proj-fatal "--disable-static-shell and --static-cli-shell are mutualy exclusive" |
| 17 |
} |
| 18 |
if {![opt-bool shared] && ![opt-bool static-shell]} { |
| 19 |
proj-opt-set shared 1 |
| 20 |
proj-indented-notice { |
| 21 |
NOTICE: ignoring --disable-shared because --disable-static-shell |
| 22 |
was specified. |
| 23 |
} |
| 24 |
} |
| 25 |
} |