Patch #730170: Check for sem_init in -lpthread. Fixes #727051.
diff --git a/configure.in b/configure.in
index f495617..6686f2b 100644
--- a/configure.in
+++ b/configure.in
@@ -1248,8 +1248,9 @@
 # checks for libraries
 AC_CHECK_LIB(dl, dlopen)	# Dynamic linking for SunOS/Solaris and SYSV
 AC_CHECK_LIB(dld, shl_load)	# Dynamic linking for HP-UX
-AC_SEARCH_LIBS(sem_init, rt posix4)	# 'Real Time' functions on Solaris,
-			    		# posix4 on Solaris 2.6
+AC_SEARCH_LIBS(sem_init, pthread rt posix4) # 'Real Time' functions on Solaris
+					    # posix4 on Solaris 2.6
+					    # pthread (first!) on Linux
 
 # checks for system dependent C++ extensions support
 case "$ac_sys_system" in