home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / util / gnu / groff_src.lha / groff-1.10src / AMIGA_README < prev    next >
Text File  |  1995-12-10  |  3KB  |  61 lines

  1. This directory contains a copy of the official source distribution of version
  2. 1.10 of the GNU roff text formatting package. Amiga-specific files and
  3. patches are in directory AMIGA_FILES.
  4.  
  5. To install:
  6. If you have autoconf, type:
  7.     autoconf
  8.     configure --prefix=/gnu
  9. (The --prefix option appears to be required, at least on my amiga).
  10.  
  11. If you don't have autoconf, or do not feel like waiting for configure to
  12. finish (it takes quite a while), copy AMIGA_FILES/Makefile to Makefile.
  13.  
  14. Either way, edit the top level Makefile (look at AMIGA_FILES/Makefile for
  15. examples):
  16.  
  17. * Adjust the CCFLAGS, CFLAGS, and LDFLAGS for your CPU and FPU (or lack
  18.   thereof).
  19. * If you specify -m68881, also specify -U__HAVE_68881__, to disable
  20.   the inclusion of <math-68881.h>. Groff expects "C" style math functions,
  21.   but when <math-68881.h> is included, they are defined as "C++" style
  22.   functions, resulting in confusion.
  23. * Make sure that you have added -Dfork=vfork in CFLAGS.
  24. * Look for a line beginning "g=". In previous versions of groff, programs like
  25.   troff, eqn, etc., having the same name as equivalent UNIX programs, were
  26.   installed with a "g" prefix, i.e., gtroff, geqn, etc. In this version, this
  27.   renaming is not done if the equivalent UNIX program, is not installed. If you
  28.   want the old behavior, change this line to: "g=g". I already did this in the
  29.   provided Makefile, as it helps prevent confusion from having both troff
  30.   (1.10) and gtroff (1.09) if you forget to clean up.
  31.  
  32. At this point, we are not quite ready to compile, but if you have a version
  33. of gcc later than 2.7.0, which is the one I used, I would suggest trying
  34. anyway. Type:
  35.     make
  36.  
  37. If you get errors about various string functions being defined
  38. differently in <string.h> and <std/cstring.h>, apply the patches in
  39. AMIGA_FILES/cstring.diff to GNU:lib/g++-include/std/cstring.h.
  40.  
  41. If you get errors about ambiguous use of the memchr() function, apply the
  42. patches in AMIGA_FILES/diffs, to patch libgroff/string.cc, libbib/linear.cc,
  43. and refer/ref.cc, which add a cast to (void *) to the first argument of
  44. memchr().
  45.  
  46. Both errors should appear fairly early (libgroff is the first directory to
  47. be compiled), so you shouldn't have long to wait to find if you need any of
  48. the patches.
  49.  
  50. Once you get libgroff to compile, go for a long walk.
  51.  
  52. When you come back, type "make install" to install everything.
  53. If you want, copy AMIGA_FILES/tmac.*a4 to gnu:share/groff/tmac.
  54.  
  55. For various hints (including what these two files are), please read
  56. README_AMIGA_BIN, the readme file from the binary distribution.
  57. -- 
  58.     Kriton    (UUCP:     pythia!theseas!kriton!kyrimis)
  59.               (INTERNET: kyrimis@theseas.softlab.ece.ntua.gr)
  60.               (WWW:      http://www.hpcl.cti.gr/~kyrimis
  61.