mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
don't include config.g in src/hugehelp.c unless HAVE_CONFIG_H is defined
This commit is contained in:
parent
3ded81188b
commit
f50678eda7
3
CHANGES
3
CHANGES
@ -7,6 +7,9 @@
|
|||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
Daniel(29 January 2004)
|
Daniel(29 January 2004)
|
||||||
|
- Stadler Stephan pointed out that src/hugehelp.c included config.h without
|
||||||
|
checking the define if its present...
|
||||||
|
|
||||||
- Ken Hirsch provided patches to make curl build fine on the MPE/iX operating
|
- Ken Hirsch provided patches to make curl build fine on the MPE/iX operating
|
||||||
system.
|
system.
|
||||||
|
|
||||||
|
@ -51,18 +51,21 @@ EXTRA_DIST = mkhelp.pl curlmsg.msg makefile.dj \
|
|||||||
MANPAGE=$(top_srcdir)/docs/curl.1
|
MANPAGE=$(top_srcdir)/docs/curl.1
|
||||||
README=$(top_srcdir)/docs/MANUAL
|
README=$(top_srcdir)/docs/MANUAL
|
||||||
MKHELP=$(top_srcdir)/src/mkhelp.pl
|
MKHELP=$(top_srcdir)/src/mkhelp.pl
|
||||||
|
HUGE=hugehelp.c
|
||||||
|
|
||||||
if HAVE_LIBZ
|
if HAVE_LIBZ
|
||||||
# This generates the hugehelp.c file in both uncompressed and compressed formats
|
# This generates the hugehelp.c file in both uncompressed and compressed formats
|
||||||
hugehelp.c: $(README) $(MANPAGE) mkhelp.pl
|
$(HUGE): $(README) $(MANPAGE) mkhelp.pl
|
||||||
echo '#include "config.h"' > hugehelp.c
|
echo '#ifdef HAVE_CONFIG_H' > $(HUGE)
|
||||||
echo '#ifndef HAVE_LIBZ' >> hugehelp.c
|
echo '#include "config.h"' >> $(HUGE)
|
||||||
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> hugehelp.c
|
echo '#endif' >> $(HUGE)
|
||||||
echo '#else' >> hugehelp.c
|
echo '#ifndef HAVE_LIBZ' >> $(HUGE)
|
||||||
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) -c $(README) >> hugehelp.c
|
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
|
||||||
echo '#endif /* HAVE_LIBZ */' >> hugehelp.c
|
echo '#else' >> $(HUGE)
|
||||||
|
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) -c $(README) >> $(HUGE)
|
||||||
|
echo '#endif /* HAVE_LIBZ */' >> $(HUGE)
|
||||||
else
|
else
|
||||||
# This generates the hugehelp.c file uncompressed only
|
# This generates the hugehelp.c file uncompressed only
|
||||||
hugehelp.c: $(README) $(MANPAGE) mkhelp.pl
|
$(HUGE): $(README) $(MANPAGE) mkhelp.pl
|
||||||
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) > hugehelp.c
|
$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) > $(HUGE)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user