view m4/gnome-pthread-check.m4 @ 12965:b3b53fd38dee

[gaim-migrate @ 15318] (19:55:27) CIA-13: rlaager * gaim/COPYRIGHT: Somehow Bartosz Oler wasn't listed in the COPYRIGHT file. (19:56:01) Kevin Stange (SimGuy): should probably check the copyright file for other SoC people too (19:56:52) Kevin Stange (SimGuy): since they started committing their own code during the summer, they might well not have added themselves and then everyone assumed they were already there later (19:58:10) rlaager: SimGuy: Good call. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 20 Jan 2006 02:02:18 +0000
parents 68b230f8da5f
children
line wrap: on
line source

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(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])
])