Thank you Sife and Nick and sorry for the late answer.
I have tried both options. The --disable-tcl seems not to work for some strange reason.
Installing Tcl has worked (after restarting MINGW), but now I have a new problem. After make clean and make, I have used "make dll", which gives plenty of "undefined reference to" errors, such as:
.libs/sqlite3.o:sqlite3.c:(.text+0x2c41): undefined reference to `RAND_add'
.libs/sqlite3.o:sqlite3.c:(.text+0x2c84): undefined reference to `EVP_get_cipher
byname'
.libs/sqlite3.o:sqlite3.c:(.text+0x2ca9): undefined reference to `OPENSSL_add_al
l_algorithms_noconf'
.libs/sqlite3.o:sqlite3.c:(.text+0x2d25): undefined reference to `EVP_cleanup'
.libs/sqlite3.o:sqlite3.c:(.text+0x2d8d): undefined reference to `RAND_bytes'
.libs/sqlite3.o:sqlite3.c:(.text+0x2dc0): undefined reference to `HMAC_CTX_init'
.libs/sqlite3.o:sqlite3.c:(.text+0x2dc5): undefined reference to `EVP_sha1'
.libs/sqlite3.o:sqlite3.c:(.text+0x2ded): undefined reference to `HMAC_Init_ex'
.libs/sqlite3.o:sqlite3.c:(.text+0x2e09): undefined reference to `HMAC_Update'
.libs/sqlite3.o:sqlite3.c:(.text+0x2e25): undefined reference to `HMAC_Update'
.libs/sqlite3.o:sqlite3.c:(.text+0x2e44): undefined reference to `HMAC_Final'
.libs/sqlite3.o:sqlite3.c:(.text+0x2e52): undefined reference to `HMAC_CTX_clean
up'
.libs/sqlite3.o:sqlite3.c:(.text+0x2e94): undefined reference to `PKCS5_PBKDF2_H
MAC_SHA1'
.libs/sqlite3.o:sqlite3.c:(.text+0x2ed2): undefined reference to `EVP_CipherInit
'
.libs/sqlite3.o:sqlite3.c:(.text+0x2ee8): undefined reference to `EVP_CIPHER_CTX
_set_padding'
.libs/sqlite3.o:sqlite3.c:(.text+0x2f13): undefined reference to `EVP_CipherInit
'
.libs/sqlite3.o:sqlite3.c:(.text+0x2f40): undefined reference to `EVP_CipherUpda
te'
.libs/sqlite3.o:sqlite3.c:(.text+0x2f71): undefined reference to `EVP_CipherFina
l'
.libs/sqlite3.o:sqlite3.c:(.text+0x2f88): undefined reference to `EVP_CIPHER_CTX
_cleanup'
.libs/sqlite3.o:sqlite3.c:(.text+0x2fa6): undefined reference to `EVP_get_cipher
byname'
.libs/sqlite3.o:sqlite3.c:(.text+0x2fc5): undefined reference to `EVP_CIPHER_nid
'
.libs/sqlite3.o:sqlite3.c:(.text+0x2fcd): undefined reference to `OBJ_nid2sn'
.libs/sqlite3.o:sqlite3.c:(.text+0x2fe2): undefined reference to `EVP_CIPHER_key
_length'
.libs/sqlite3.o:sqlite3.c:(.text+0x2ff7): undefined reference to `EVP_CIPHER_iv_
length'
.libs/sqlite3.o:sqlite3.c:(.text+0x300c): undefined reference to `EVP_CIPHER_blo
ck_size'
.libs/sqlite3.o:sqlite3.c:(.text+0x3019): undefined reference to `EVP_sha1'
.libs/sqlite3.o:sqlite3.c:(.text+0x3021): undefined reference to `EVP_MD_size'
Thank you again.