2 getopt() function: process command line arguments.
16 gettext-h [test $REPLACE_GETOPT = 1]
20 if test $REPLACE_GETOPT = 1; then
27 BUILT_SOURCES += $(GETOPT_H)
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; \
44 MOSTLYCLEANFILES += getopt.h getopt.h-t