1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

openmp-init: New module.

* modules/openmp-init: New file.
* modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
the changes from 2019-04-09.
This commit is contained in:
Bruno Haible
2019-04-13 11:03:25 +02:00
parent c2b2754fd3
commit ced06e0793
3 changed files with 54 additions and 25 deletions

47
modules/openmp-init Normal file
View File

@@ -0,0 +1,47 @@
Description:
Initialization of OpenMP support.
Files:
lib/omp.in.h
lib/omp-init.c
m4/omp_h.m4
Depends-on:
include_next
c-ctype
setenv
configure.ac:
gl_OMP_H
Makefile.am:
BUILT_SOURCES += omp.h
# We need the following in order to create <omp.h> when the system
# doesn't have one that works with the given compiler.
omp.h: omp.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
$(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|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_OMP_H''@|$(NEXT_OMP_H)|g' \
< $(srcdir)/omp.in.h; \
} > $@-t && \
mv $@-t $@
MOSTLYCLEANFILES += omp.h omp.h-t
lib_SOURCES += omp-init.c
Include:
#ifdef _OPENMP
# include <omp.h>
#endif
License:
LGPL
Maintainer:
all