(I'm cross-posting this to pgsql-ports and mingw-users; I hope that's ok.)
Summary:
I'm trying to get posgresql-base-8.1.3 to build on my mingw/msys (1.0.11
system; uname -a below) using "thread safety."
Am I going to need something like
<http://sources.redhat.com/pthreads-win32/> to accomplish this task? Is
this *only* alternative; are there any options?
(I don't yet know about how I'm going to distribute this software, ie, how
the library relationships will work b/w pthreads-win32 and postgresql, but
I'll figure it out or report back here if I can't. Any tips/pointers are
welcome. I plan to follow LGPL to the letter if I do this.)
Details:
$ ./configure --enable-thread-safety --prefix=/cgrid/local/postgresql
--without-zlib
[...]
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
checking for pthread-config... no
checking for the pthreads library -lpthreadGC2... no
checking pthread.h usability... no
checking pthread.h presence... no
checking for pthread.h... no
configure: error: pthread.h not found, required for --enable-thread-safety
$ uname -a
MINGW32_NT-5.1 MATTS-LAPTOP 1.0.11(0.46/3/2) 2004-04-30 18:55 i686 unknown
I found:
http://sources.redhat.com/pthreads-win32/
as per:
http://sourceforge.net/mailarchive/message.php?msg_id=11243465
-Matt