summaryrefslogtreecommitdiff
path: root/modules/sys_shm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sys_shm')
-rw-r--r--modules/sys_shm48
1 files changed, 48 insertions, 0 deletions
diff --git a/modules/sys_shm b/modules/sys_shm
new file mode 100644
index 0000000000..fd2a5fb196
--- /dev/null
+++ b/modules/sys_shm
@@ -0,0 +1,48 @@
+Description:
+<sys/shm.h> with extra checks.
+
+Files:
+lib/sys_shm.in.h
+m4/sys_shm_h.m4
+
+Depends-on:
+gen-header
+include_next
+
+configure.ac:
+gl_SYS_SHM_H
+gl_CONDITIONAL_HEADER([sys/shm.h])
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += $(SYS_SHM_H)
+
+# We need the following in order to create <sys/shm.h> when desired.
+if GL_GENERATE_SYS_SHM_H
+sys/shm.h: sys_shm.in.h $(top_builddir)/config.status
+ $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
+ $(AM_V_at)$(SED_HEADER_STDOUT) \
+ -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_SYS_SHM_H''@|$(NEXT_SYS_SHM_H)|g' \
+ $(srcdir)/sys_shm.in.h > $@-t
+ $(AM_V_at)mv $@-t $@
+else
+sys/shm.h: $(top_builddir)/config.status
+ rm -f $@
+endif
+MOSTLYCLEANFILES += sys/shm.h sys/shm.h-t
+MOSTLYCLEANDIRS += sys
+
+Include:
+#if HAVE_SYS_SHM_H
+<sys/shm.h>
+#endif
+
+License:
+LGPLv2+
+
+Maintainer:
+all