diff --git a/build-aux/ax_pthread.m4 b/build-aux/ax_pthread.m4
index d383ad5..115dfe1 100644
--- a/build-aux/ax_pthread.m4
+++ b/build-aux/ax_pthread.m4
@@ -123,7 +123,7 @@ fi
 # which indicates that we try without any flags at all, and "pthread-config"
 # which is a program returning the flags for the Pth emulation library.
 
-ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
+ax_pthread_flags="pthread pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
 
 # The ordering *is* (sometimes) important.  Some notes on the
 # individual items follow:
