pthread: add to system <pthread.h> instead of replacing it all, for MacOS
[gnulib.git] / modules / pthread
1 Description:
2 Implement a trivial subset of the pthreads library.
3
4 Files:
5 lib/pthread.in.h
6 m4/pthread.m4
7
8 Depends-on:
9 sched
10 time
11
12 configure.ac:
13 gl_PTHREAD_CHECK
14
15 Makefile.am:
16 BUILT_SOURCES += $(PTHREAD_H)
17
18 # We need the following in order to create <pthread.h> when the system
19 # doesn't have one that works with the given compiler.
20 pthread.h: pthread.in.h
21         $(AM_V_GEN)rm -f $@-t $@ && \
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23           sed -e 's|@''HAVE_PTHREAD_H''@|$(HAVE_PTHREAD_H)|g' \
24               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
25               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
26               -e 's|@''NEXT_PTHREAD_H''@|$(NEXT_PTHREAD_H)|g' \
27               -e 's|@''HAVE_PTHREAD_T''@|$(HAVE_PTHREAD_T)|g' \
28               -e 's|@''HAVE_PTHREAD_SPINLOCK_T''@|$(HAVE_PTHREAD_SPINLOCK_T)|g' \
29               < $(srcdir)/pthread.in.h; \
30         } > $@-t && \
31         mv $@-t $@
32 MOSTLYCLEANFILES += pthread.h pthread.h-t
33
34 Include:
35 <pthread.h>
36
37 Link:
38 $(LIB_PTHREAD)
39
40 License:
41 LGPLv2+
42
43 Maintainer:
44 Glen Lenker and Paul Eggert