configure checks for the presense of pthread.h before adjusting CFLAGS to include PTHREAD_CFLAGS. This patch just moves the check down so CFLAGS are set usefully.
Kris Jurka