  This is a patch for the DJGPP port of GNU Marst 2.2.
  If you need to patch the original GNU distribution,
  apply it from the top srcdir (marst-2.2) running the
  command:
    patch -p1 < diffs


diff -acprNC5 marst-2.2.orig/Makefile.in marst-2.2.djgpp/Makefile.in
*** marst-2.2.orig/Makefile.in	Mon Jan 22 09:00:00 2001
--- marst-2.2.djgpp/Makefile.in	Fri Feb  2 05:11:50 2001
*************** exec_prefix = @exec_prefix@
*** 36,46 ****
  bindir = @bindir@
  libdir = @libdir@
  includedir = @includedir@
  oldincludedir = @oldincludedir@
  mandir = @mandir@
! infodir = @prefix@/info
  
  SHELL = /bin/sh
  srcdir = @srcdir@
  VPATH = @srcdir@
  
--- 36,46 ----
  bindir = @bindir@
  libdir = @libdir@
  includedir = @includedir@
  oldincludedir = @oldincludedir@
  mandir = @mandir@
! infodir = @infodir@
  
  SHELL = /bin/sh
  srcdir = @srcdir@
  VPATH = @srcdir@
  
*************** INSTALL_DATA = @INSTALL_DATA@
*** 51,65 ****
  ## End of system configuration section ##
  
  ## You normally do not need to modify anything below this point ##
  
  .SUFFIXES:
! .SUFFIXES: .c .o
  
  .c.o:
  	$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
  
  ALGLIB = abs.o alglib.o arctan.o cos.o entier.o epsilon.o exp.o \
  	fault.o iabs.o inchar.o inint.o inreal.o length.o ln.o \
  	maxint.o maxreal.o minreal.o outchar.o outint.o outreal.o \
  	outstr.o outterm.o print.o sign.o sin.o sqrt.o stop.o
  
--- 51,79 ----
  ## End of system configuration section ##
  
  ## You normally do not need to modify anything below this point ##
  
  .SUFFIXES:
! .SUFFIXES: .alg .c .o
  
  .c.o:
  	$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
  
+ .alg.c:
+ 	./marst $< -o $@ -w
+ 
+ ALGSRCS = abs.alg arctan.alg cos.alg entier.alg epsilon.alg exp.alg \
+ 	fault.alg iabs.alg inchar.alg inint.alg inreal.alg length.alg ln.alg \
+ 	maxint.alg maxreal.alg minreal.alg outchar.alg outint.alg outreal.alg \
+ 	outstr.alg outterm.alg sign.alg sin.alg sqrt.alg stop.alg 
+ 
+ GENSRCS = abs.c arctan.c cos.c entier.c epsilon.c exp.c \
+ 	fault.c iabs.c inchar.c inint.c inreal.c length.c \
+ 	ln.c maxint.c maxreal.c minreal.c outchar.c outint.c \
+ 	outreal.c outstr.c outterm.c sign.c sin.c sqrt.c \
+ 	stop.c 
+ 
  ALGLIB = abs.o alglib.o arctan.o cos.o entier.o epsilon.o exp.o \
  	fault.o iabs.o inchar.o inint.o inreal.o length.o ln.o \
  	maxint.o maxreal.o minreal.o outchar.o outint.o outreal.o \
  	outstr.o outterm.o print.o sign.o sin.o sqrt.o stop.o
  
*************** install: marst macvt libalgol.a installd
*** 78,89 ****
  	$(INSTALL_PROGRAM) marst $(DESTDIR)$(bindir)/marst
  	$(INSTALL_PROGRAM) macvt $(DESTDIR)$(bindir)/macvt
  	$(INSTALL_DATA) libalgol.a $(DESTDIR)$(libdir)/libalgol.a
  	-$(INSTALL_DATA) $(srcdir)/algol.h \
  		$(DESTDIR)$(includedir)/algol.h
- 	-$(INSTALL_DATA) $(srcdir)/algol.h \
- 		$(DESTDIR)$(oldincludedir)/algol.h
  	$(INSTALL_DATA) $(srcdir)/marst.1 \
  		$(DESTDIR)$(mandir)/man1/marst.1
  	$(INSTALL_DATA) $(srcdir)/macvt.1 \
  		$(DESTDIR)$(mandir)/man1/macvt.1
  	$(INSTALL_DATA) $(srcdir)/marst.info \
--- 92,101 ----
*************** install: marst macvt libalgol.a installd
*** 92,114 ****
  uninstall:
  	rm -f $(bindir)/marst
  	rm -f $(bindir)/macvt
  	rm -f $(libdir)/libalgol.a
  	-rm -f $(includedir)/algol.h
- 	-rm -f $(oldincludedir)/algol.h
  	rm -f $(mandir)/man1/marst.1
  	rm -f $(mandir)/man1/macvt.1
  	rm -f $(infodir)/marst.info
  
  install-strip:
  	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
  
  clean:
! 	rm -f marst macvt $(ALGLIB) libalgol.a gps.*
  
  distclean: clean
! 	rm -f Makefile config.log config.cache config.status
  
  mostlyclean: clean
  
  maintainer-clean:
  	@echo "This command is intended for maintainers to use;"
--- 104,125 ----
  uninstall:
  	rm -f $(bindir)/marst
  	rm -f $(bindir)/macvt
  	rm -f $(libdir)/libalgol.a
  	-rm -f $(includedir)/algol.h
  	rm -f $(mandir)/man1/marst.1
  	rm -f $(mandir)/man1/macvt.1
  	rm -f $(infodir)/marst.info
  
  install-strip:
  	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
  
  clean:
! 	rm -f marst marst.exe macvt macvt.exe $(ALGLIB) libalgol.a gps.*
  
  distclean: clean
! 	rm -f Makefile config.log config.cache config.status $(GENSRCS)
  
  mostlyclean: clean
  
  maintainer-clean:
  	@echo "This command is intended for maintainers to use;"
*************** maintainer-clean:
*** 118,140 ****
  
  TAGS:
  	@echo "Sorry, target `TAGS' is not implemented."
  
  info:
! 	makeinfo marst.texinfo
  
  dvi:
! 	texi2dvi --clean marst.texinfo
  
  ps: dvi
! 	dvi2ps marst.dvi > marst.ps
  
  pdf:
! 	texi2dvi --clean --pdf marst.texinfo
  
  html:
! 	texi2html -expandinfo -number -monolithic marst.texinfo
  
  doc: info ps pdf html
  
  dist:
  	@echo "Sorry, target `dist' is not implemented."
--- 129,151 ----
  
  TAGS:
  	@echo "Sorry, target `TAGS' is not implemented."
  
  info:
! 	makeinfo --no-split $(srcdir)/marst.texinfo -o $(srcdir)/marst.info
  
  dvi:
! 	texi2dvi --clean $(srcdir)/marst.texinfo
  
  ps: dvi
! 	dvips $(srcdir)/marst.dvi -o marst.ps
  
  pdf:
! 	texi2dvi --clean --pdf $(srcdir)/marst.texinfo
  
  html:
! 	makeinfo --html $(srcdir)/marst.texinfo
  
  doc: info ps pdf html
  
  dist:
  	@echo "Sorry, target `dist' is not implemented."
diff -acprNC5 marst-2.2.orig/marst.texinfo marst-2.2.djgpp/marst.texinfo
*** marst-2.2.orig/marst.texinfo	Mon Jan 22 09:00:00 2001
--- marst-2.2.djgpp/marst.texinfo	Thu Feb  1 23:08:18 2001
***************
*** 4,16 ****
  @settitle GNU MARST 2.1 User's Guide
  @c %**end of header
  
  @ifinfo
  @format
! START-INFO-DIR-ENTRY
  * marst: (marst).       GNU Algol-to-C Translator
! END-INFO-DIR-ENTRY
  @end format
  @end ifinfo
  
  @ifinfo
  This file is a part of GNU MARST package.
--- 4,17 ----
  @settitle GNU MARST 2.1 User's Guide
  @c %**end of header
  
  @ifinfo
  @format
! @dircategory Programming
! @direntry
  * marst: (marst).       GNU Algol-to-C Translator
! @end direntry
  @end format
  @end ifinfo
  
  @ifinfo
  This file is a part of GNU MARST package.
