Pike fails to find pthreads on OpenBSD
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3105
Reported by Anders Arnholm, n/a Anders@Arnholm.nu
When building pike 7.2.239 it fails to find the OpenBSD threads support. On openbsd therads are arcived bu adding -pthreds to the compiler but configure only test -lptheads.
See http://www.openbsd.org/cgi-bin/man.cgi?query=pthreads
configure:12396: checking for pthread_init
configure:12424: /home/balp/src/Pike-v7.2.239/build/openbsd-3.0-i386/smartlink g
cc -o conftest -g -O2 -pipe -I/usr/local/include -I/usr/X11R6/include -I/home/b
alp/src/Pike-v7.2.239/src -I/home/balp/src/Pike-v7.2.239/build/openbsd-3.0-i386
-R/usr/local/lib -L/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib conftest.c
-lm -lpthread 1>&5
ld: -lpthread: no match