NEWS.stable: log cherry-pick [3180807]->[768eb31] doc/lgpl-2.1.texi
[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 unistd
13 extensions
14 include_next
15 arg-nonnull
16 gettext-h       [test $GNULIB_UNISTD_H_GETOPT = 1]
17
18 configure.ac:
19 gl_FUNC_GETOPT_POSIX
20
21 Makefile.am:
22 BUILT_SOURCES += $(GETOPT_H)
23
24 # We need the following in order to create <getopt.h> when the system
25 # doesn't have one that works with the given compiler.
26 getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
27         $(AM_V_GEN)rm -f $@-t $@ && \
28         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
29           sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
30               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
31               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
32               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
33               -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
34               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
35               < $(srcdir)/getopt.in.h; \
36         } > $@-t && \
37         mv -f $@-t $@
38 MOSTLYCLEANFILES += getopt.h getopt.h-t
39
40 Include:
41 <unistd.h>
42
43 License:
44 LGPLv2+
45
46 Maintainer:
47 all, glibc