--- configure.orig 2009-11-18 17:40:48.000000000 +0100 +++ configure 2009-11-24 21:26:56.000000000 +0100 @@ -40383,12 +40383,12 @@ return 0; } _ACEOF -for ac_lib in '' thread; do +for ac_lib in '' -lpthread; do if test -z "$ac_lib"; then ac_res="none required" else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" + ac_res=$ac_lib + LIBS="$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link"