summaryrefslogtreecommitdiff
path: root/modules/termios
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-09-17 02:02:23 +0200
committerBruno Haible <bruno@clisp.org>2010-09-17 02:07:24 +0200
commit6dcf524e1f4e344cc0256b3b7efb53babc452a62 (patch)
tree837b10e21ac6a63d37b6d979e2e25deb9def6d82 /modules/termios
parent9ea0943bfd68afa3412a139fa1a29d9b6c046916 (diff)
downloadgnulib-6dcf524e1f4e344cc0256b3b7efb53babc452a62.tar.gz
New module 'termios'.
* modules/termios: New file. * lib/termios.in.h: New file. * m4/termios_h.m4: New file. * doc/posix-headers/termios.texi: Mention the new module.
Diffstat (limited to 'modules/termios')
-rw-r--r--modules/termios37
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/termios b/modules/termios
new file mode 100644
index 0000000000..e2deddbd87
--- /dev/null
+++ b/modules/termios
@@ -0,0 +1,37 @@
+Description:
+A <termios.h> that works around platform issues.
+
+Files:
+lib/termios.in.h
+m4/termios_h.m4
+
+Depends-on:
+include_next
+
+configure.ac:
+gl_TERMIOS_H
+
+Makefile.am:
+BUILT_SOURCES += termios.h
+
+# We need the following in order to create <termios.h> when the system
+# version does not have all declarations.
+termios.h: termios.in.h
+ $(AM_V_GEN)rm -f $@-t $@ && \
+ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+ -e 's|@''NEXT_TERMIOS_H''@|$(NEXT_TERMIOS_H)|g' \
+ < $(srcdir)/termios.in.h; \
+ } > $@-t && \
+ mv $@-t $@
+MOSTLYCLEANFILES += termios.h termios.h-t
+
+Include:
+<termios.h>
+
+License:
+LGPL
+
+Maintainer:
+Bruno Haible