summaryrefslogtreecommitdiff
path: root/macros/gnome-pthread-check.m4
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@src.gnome.org>1998-02-15 23:13:49 +0000
committerRaja R Harinath <harinath@src.gnome.org>1998-02-15 23:13:49 +0000
commitc6581c3264763cc83851856109a9b7754caf10a7 (patch)
tree69cca4e7db3d45c611e85263901e58bc42a5c55b /macros/gnome-pthread-check.m4
parent9e95633e90ebbb74ff2cffd315690d363cf83d1c (diff)
downloadshared-mime-info-c6581c3264763cc83851856109a9b7754caf10a7.tar.gz
Add `gnome-pthread-check.m4'. New file. Moved pthread check from
* Makefile.am (MACROS): Add `gnome-pthread-check.m4'. * gnome-pthread-check.m4: New file. Moved pthread check from gnome-x-checks.m4 to here. * gnome-objc-checks.m4: Use `gnome-pthread-check'. (OBJC_LIBS): New config var. * gnome-x-checks.m4: Add `AC_DEFINE(HAVE_LIBSM)' if `-lSM' is already part of `$x_libs'. Move pthread check to new file. - Hari svn path=/trunk/; revision=83
Diffstat (limited to 'macros/gnome-pthread-check.m4')
-rw-r--r--macros/gnome-pthread-check.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/macros/gnome-pthread-check.m4 b/macros/gnome-pthread-check.m4
new file mode 100644
index 00000000..d7fec3fb
--- /dev/null
+++ b/macros/gnome-pthread-check.m4
@@ -0,0 +1,7 @@
+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_SUBST(PTHREAD_LIB)
+ AC_PROVIDE([GNOME_PTHREAD_CHECK])
+])