aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Bakeyev <mc@bat.ru>1999-01-24 09:03:26 +0800
committerTimur I. Bakeyev <timur@src.gnome.org>1999-01-24 09:03:26 +0800
commitc4c5a328a55596b429db2d46a6bc48a2fe4b8258 (patch)
tree2e8e25234ca4782ab67f231a2145259b40e04f2d
parent95a12547997d704878ad80f8c4eecabf956acd19 (diff)
downloadgsoc2013-evolution-c4c5a328a55596b429db2d46a6bc48a2fe4b8258.tar
gsoc2013-evolution-c4c5a328a55596b429db2d46a6bc48a2fe4b8258.tar.gz
gsoc2013-evolution-c4c5a328a55596b429db2d46a6bc48a2fe4b8258.tar.bz2
gsoc2013-evolution-c4c5a328a55596b429db2d46a6bc48a2fe4b8258.tar.lz
gsoc2013-evolution-c4c5a328a55596b429db2d46a6bc48a2fe4b8258.tar.xz
gsoc2013-evolution-c4c5a328a55596b429db2d46a6bc48a2fe4b8258.tar.zst
gsoc2013-evolution-c4c5a328a55596b429db2d46a6bc48a2fe4b8258.zip
Add recognition of 2 more libraries - pthreads and pthread-support build
Sun Jan 24 03:59:32 1999 Timur Bakeyev <mc@bat.ru> * gnome-pthread-check.m4: Add recognition of 2 more libraries - pthreads and pthread-support build in libc (as on BSDI). svn path=/trunk/; revision=619
-rw-r--r--macros/ChangeLog5
-rw-r--r--macros/gnome-pthread-check.m411
2 files changed, 15 insertions, 1 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index 546d0dd9f4..b65b628c29 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jan 24 03:59:32 1999 Timur Bakeyev <mc@bat.ru>
+
+ * gnome-pthread-check.m4: Add recognition of 2 more libraries -
+ pthreads and pthread-support build in libc (as on BSDI).
+
1999-01-23 Martin Baulig <martin@home-of-linux.org>
* gnome-libgtop-checks.m4 (GNOME_LIBGTOP_DOCU): New macro. This
diff --git a/macros/gnome-pthread-check.m4 b/macros/gnome-pthread-check.m4
index d7fec3fb41..a4eb3b4890 100644
--- a/macros/gnome-pthread-check.m4
+++ b/macros/gnome-pthread-check.m4
@@ -1,7 +1,16 @@
+dnl
+dnl And better, use gthreads instead...
+dnl
+
AC_DEFUN([GNOME_PTHREAD_CHECK],[
PTHREAD_LIB=""
AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
- [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r")])
+ [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_SUBST(PTHREAD_LIB)
AC_PROVIDE([GNOME_PTHREAD_CHECK])
])