On Thursday 20 May 2004 09:31, Stefano Barbato wrote: > On Thursday 20 May 2004 00:25, Peter wrote: > > Stefano Barbato wrote: > > > is there a way to detect at runtime if the sqlite library has been > > > compiled with the THREADSAFE=1 flag or not? > > > > No, or not that I know of. It would be nice for ver 3 to have a simple > > function which returns a structure of the database library capabilities. > > The obvious ones which come to mind: ThreadSafe, MaxRowSize, Encoding, > > Version. > > Reason for the latter two is cos not all dev environments (Delphi) > > support "extern" data in a dll.
I found that if the lib has not been stripped one can know (at least on linux) if it has been compiled with THREADSAFE=1 with: objdump -t ${sqlite_base}/lib/libsqlite.so | grep pthread_mutex_lock if test $? -ne 0; then echo "not threadsafe or stripped lib" else echo "ok" fi bye, s --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]