aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-pthread-check.m4
diff options
context:
space:
mode:
Diffstat (limited to 'macros/gnome-pthread-check.m4')
-rw-r--r--macros/gnome-pthread-check.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/macros/gnome-pthread-check.m4 b/macros/gnome-pthread-check.m4
index a4eb3b4890..5a1afee014 100644
--- a/macros/gnome-pthread-check.m4
+++ b/macros/gnome-pthread-check.m4
@@ -7,7 +7,9 @@ AC_DEFUN([GNOME_PTHREAD_CHECK],[
AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
[AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
[AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
- [AC_CHECK_FUNC(pthread_create)]
+ [AC_CHECK_LIB(pthread, __pthread_attr_init_system, PTHREAD_LIB="-lpthread",
+ [AC_CHECK_FUNC(pthread_create)]
+ )]
)]
)]
)