From b231830390a41bed4330952662990246ded0bf6a Mon Sep 17 00:00:00 2001
From: fbrosson <fbrosson@localhost>
Date: Fri, 1 Jul 2016 19:48:39 +0000
Subject: Haiku patch


diff --git a/configure.ac b/configure.ac
index b61655b..d40bd51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -194,7 +194,7 @@ AC_PROG_INSTALL
 
 AC_CHECK_HEADERS()
 
-THREAD_LIBS=-lpthread
+AC_CHECK_LIB(pthread,pthread_self,THREAD_LIBS=-lpthread)
 AC_SUBST(THREAD_LIBS)
 
 TARGET_SHIZZLE
-- 
2.9.0

