Mercurial > hg > octave-lojdl > gnulib-hg
view modules/pthread @ 14271:b4cc3c41ca79
libposix: Add _HEADERS primaries to posix modules.
Modify gnulib-tool to strip them from generated Makefile.am-s where
they are not needed. Also, replace M4 macro prefixes when requested.
Finally, omit calls to error() for libposix.
author | Bruce Korb <bkorb@gnu.org> |
---|---|
date | Sat, 05 Feb 2011 08:22:48 -0800 |
parents | a19ace3ba849 |
children | 8f6d3e05c7e2 |
line wrap: on
line source
Description: Implement a trivial subset of the pthreads library. Files: lib/pthread.in.h m4/pthread.m4 Depends-on: sched time configure.ac: gl_PTHREAD_CHECK Makefile.am: nodist_pkginclude_HEADERS += $(PTHREAD_H) EXTRA_HEADERS += pthread.h BUILT_SOURCES += $(PTHREAD_H) # We need the following in order to create <pthread.h> when the system # doesn't have one that works with the given compiler. pthread.h: pthread.in.h $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''HAVE_PTHREAD_H''@|$(HAVE_PTHREAD_H)|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_PTHREAD_H''@|$(NEXT_PTHREAD_H)|g' \ -e 's|@''HAVE_PTHREAD_T''@|$(HAVE_PTHREAD_T)|g' \ -e 's|@''HAVE_PTHREAD_SPINLOCK_T''@|$(HAVE_PTHREAD_SPINLOCK_T)|g' \ < $(srcdir)/pthread.in.h; \ } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += pthread.h pthread.h-t Include: <pthread.h> Link: $(LIB_PTHREAD) License: LGPLv2+ Maintainer: Glen Lenker and Paul Eggert