closein: correct comments
[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 snippet/arg-nonnull
16 gettext-h       [test $REPLACE_GETOPT = 1]
17
18 configure.ac:
19 gl_FUNC_GETOPT_POSIX
20 if test $REPLACE_GETOPT = 1; then
21   AC_LIBOBJ([getopt])
22   AC_LIBOBJ([getopt1])
23   gl_PREREQ_GETOPT
24 fi
25
26 Makefile.am:
27 BUILT_SOURCES += $(GETOPT_H)
28
29 # We need the following in order to create <getopt.h> when the system
30 # doesn't have one that works with the given compiler.
31 getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
32         $(AM_V_GEN)rm -f $@-t $@ && \
33         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
34           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
35               -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
36               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
37               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
38               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
39               -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
40               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
41               < $(srcdir)/getopt.in.h; \
42         } > $@-t && \
43         mv -f $@-t $@
44 MOSTLYCLEANFILES += getopt.h getopt.h-t
45
46 Include:
47 <unistd.h>
48
49 License:
50 LGPLv2+
51
52 Maintainer:
53 all, glibc