--- mysql-4.0.18/configure.in.orig 2004-03-04 13:53:36.000000000 -0800 +++ mysql-4.0.18/configure.in 2004-03-04 13:53:37.000000000 -0800 @@ -1191,7 +1191,10 @@ then # Look for LinuxThreads. AC_MSG_CHECKING("LinuxThreads") - res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l` + # res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l` + # All gentoo systems support this stuff, and this is an improper detection + # for LinuxThreads anyhow, always set the result to 1 + res=1 if test "$res" -gt 0 then AC_MSG_RESULT("Found")