Some versions of Solaris 2.5.1 need to link with both -lpthread and -lthread. Rev: src/configure.in:1.384