Avoid unnecessary compilation units, through conditional dependencies.
[gnulib.git] / modules / argz
1 Description:
2 Argv style string arrays in a single null delimited char*.
3
4 Files:
5 lib/argz.in.h
6 lib/argz.c
7 m4/argz.m4
8
9 Depends-on:
10 memmove         [test -n "$ARGZ_H"]
11 mempcpy         [test -n "$ARGZ_H"]
12 stpcpy          [test -n "$ARGZ_H"]
13 strndup         [test -n "$ARGZ_H"]
14 strnlen         [test -n "$ARGZ_H"]
15 strstr          [test -n "$ARGZ_H"]
16
17 configure.ac:
18 gl_FUNC_ARGZ
19
20 Makefile.am:
21 BUILT_SOURCES += $(ARGZ_H)
22
23 # We need the following in order to create <argz.h> when the system
24 # doesn't have one that works with the given compiler.
25 if GL_GENERATE_ARGZ_H
26 argz.h: argz.in.h $(top_builddir)/config.status
27         $(AM_V_GEN)rm -f $@-t $@ && \
28         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
29           cat $(srcdir)/argz.in.h; \
30         } > $@-t && \
31         mv -f $@-t $@
32 else
33 argz.h: $(top_builddir)/config.status
34         rm -f $@
35 endif
36 MOSTLYCLEANFILES += argz.h argz.h-t
37
38 Include:
39 <argz.h>
40
41 License:
42 LGPLv2+
43
44 Maintainer:
45 all