summaryrefslogtreecommitdiff
path: root/m4/pthread.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-11-20 22:25:06 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-11-29 23:38:50 -0800
commit1615c2e6bca01fbc7355043d2218c7c1dce453f5 (patch)
tree4cb527593758430c28da0916020778e479779c63 /m4/pthread.m4
parent62dbbbd1dd25b29720a66a2a2a9c6cec0f7bac10 (diff)
downloadgnulib-1615c2e6bca01fbc7355043d2218c7c1dce453f5.tar.gz
pthread: better 'inline'
* lib/pthread.c: New file. * lib/pthread.in.h (_GL_PTHREAD_INLINE): New macro. Replace all uses of 'static inline' with it. Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/pthread.m4 (gl_PTHREAD_CHECK): Add AC_LIBOBJ([pthread]). Do not require AC_C_INLINE. * modules/pthread (Files): Add lib/pthread.c. (Depends-on): Add extern-inline.
Diffstat (limited to 'm4/pthread.m4')
-rw-r--r--m4/pthread.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/pthread.m4 b/m4/pthread.m4
index 70c185ce1f..38b2c78218 100644
--- a/m4/pthread.m4
+++ b/m4/pthread.m4
@@ -1,4 +1,4 @@
-# pthread.m4 serial 5
+# pthread.m4 serial 7
dnl Copyright (C) 2009-2012 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -30,6 +30,7 @@ AC_DEFUN([gl_PTHREAD_CHECK],
test $ac_cv_type_pthread_t != yes ||
test $ac_cv_type_pthread_spinlock_t != yes; then
PTHREAD_H='pthread.h'
+ AC_LIBOBJ([pthread])
else
PTHREAD_H=
fi
@@ -72,7 +73,6 @@ AC_DEFUN([gl_PTHREAD_CHECK],
fi
AC_SUBST([LIB_PTHREAD])
- AC_REQUIRE([AC_C_INLINE])
AC_REQUIRE([AC_C_RESTRICT])
])