+#
+# generate function prototypes `prototype.h'.
+#
+
+trap "rm -f prototypes.h.tmp prototypes.h.bak" 0 1 2 3 15
+
+CPROTO_FLAGS=
+CPPFLAGS='-DSTDC_HEADERS=1
+ -DHAVE_STRDUP=1
+ -DHAVE_MEMSET=1
+ -DHAVE_MEMMOVE=1
+ -DHAVE_STRCASECMP=1
+ -DHAVE_BASENAME=1
+ -DMULTIBYTE_FILENAME=1
+ -Dinterrupt=dummy__
+ -DNEED_INCREMENTAL_INDICATOR=1
+'
+# `interrupt' is the reserved word for cproto.
+
+SOURCES='append.c bitio.c crcio.c dhuf.c extract.c header.c
+ huf.c indicator.c larc.c lhadd.c lharc.c lhext.c
+ lhlist.c maketbl.c maketree.c patmatch.c
+ shuf.c slide.c util.c
+ pm2.c pm2tree.c pm2hist.c
+'
+
+test -f prototypes.h && mv -f prototypes.h prototypes.h.bak
+
+# below makes cproto regard `RETSIGTYPE' as the variable type.
+cat <<END >prototypes.h
+typedef void RETSIGTYPE;
+END