summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-03-19 07:43:11 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-03-19 07:43:11 +0000
commit89130ece97c18a439d3fbb19699392b23a1a164c (patch)
tree2072f3e42c5c89a08839abbdd084a2382768d7bc /cpukit
parent791d3cdcf73cf6721e91c1d5e0837c679944ce19 (diff)
downloadrtems-89130ece97c18a439d3fbb19699392b23a1a164c.tar.bz2
Generate zconf.h from zconf.h.in.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/zlib/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/zlib/Makefile.am b/cpukit/zlib/Makefile.am
index 4efda6b828..271f276cc4 100644
--- a/cpukit/zlib/Makefile.am
+++ b/cpukit/zlib/Makefile.am
@@ -24,5 +24,13 @@ libz_a_SOURCES += zutil.c zutil.h
include_HEADERS = zlib.h zconf.h
+zconf.h: $(srcdir)/zconf.h.in
+ sed \
+ -e 's,#ifdef Z_PREFIX.* may be ,#if 1 /* was ,' \
+ -e 's,#ifdef HAVE_UNISTD_H.* may be ,#if 1 /* was ,' \
+ < $(srcdir)/zconf.h.in > zconf.h
+CLEANFILES = zconf.h
+EXTRA_DIST = zconf.h.in
+
include $(srcdir)/preinstall.am
include $(top_srcdir)/automake/local.am