diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-14 12:48:46 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-14 12:48:46 +0200 |
commit | 09596027f260ff0de0e9932b88b90e0d06c71b6f (patch) | |
tree | afbbfabaea64581bb316a9987555c27d04bcb37f /m4 | |
parent | e8bbebe5b5cc672aa28e5b4fb91e3624415d0e00 (diff) | |
download | gnulib-09596027f260ff0de0e9932b88b90e0d06c71b6f.tar.gz |
sys_shm: New module.
* lib/sys_shm.in.h: New file.
* m4/sys_shm_h.m4: New file.
* modules/sys_shm: New file.
* doc/posix-headers/sys_shm.texi: Mention the new module.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/sys_shm_h.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/m4/sys_shm_h.m4 b/m4/sys_shm_h.m4 new file mode 100644 index 0000000000..8804ad2ce8 --- /dev/null +++ b/m4/sys_shm_h.m4 @@ -0,0 +1,20 @@ +# sys_shm_h.m4 serial 1 +dnl Copyright (C) 2023 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Written by Bruno Haible. + +AC_DEFUN_ONCE([gl_SYS_SHM_H], +[ + AC_CHECK_HEADERS_ONCE([sys/shm.h]) + dnl For now, we provide a <sys/shm.h> wrapper only if the system already has + dnl a <sys/shm.h>. + if test $ac_cv_header_sys_shm_h = yes; then + GL_GENERATE_SYS_SHM_H=true + gl_CHECK_NEXT_HEADERS([sys/shm.h]) + else + GL_GENERATE_SYS_SHM_H=false + fi +]) |