mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-25 10:20:18 -06:00
2b3a4ff53f
Add and use gnome autoconf macros. Fix lots of new compiler warnings. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2842 57a11ea4-9604-0410-9ed3-97b8803252fd
17 lines
405 B
Plaintext
17 lines
405 B
Plaintext
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])
|
|
])
|