getopt: fix inclusion guards for cygwin
[gnulib.git] / modules / getopt-posix
1 Description:
2 getopt() function: process command line arguments.
3
4 Files:
5 lib/getopt.in.h
6 lib/getopt.c
7 lib/getopt1.c
8 lib/getopt_int.h
9 m4/getopt.m4
10
11 Depends-on:
12 gettext-h
13 unistd
14 extensions
15 include_next
16
17 configure.ac:
18 gl_FUNC_GETOPT_POSIX
19
20 Makefile.am:
21 BUILT_SOURCES += $(GETOPT_H)
22
23 # We need the following in order to create <getopt.h> when the system
24 # doesn't have one that works with the given compiler.
25 getopt.h: getopt.in.h
26         $(AM_V_GEN)rm -f $@-t $@ && \
27         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
28           sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
29               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
30               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
31               -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
32               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
33               < $(srcdir)/getopt.in.h; \
34         } > $@-t && \
35         mv -f $@-t $@
36 MOSTLYCLEANFILES += getopt.h getopt.h-t
37
38 Include:
39 <unistd.h>
40
41 License:
42 LGPL
43
44 Maintainer:
45 all, glibc