Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!helps!bigtex!nueces!chari From: chari@nueces.UUCP (Christopher M. Whatley) Newsgroups: comp.sys.next Subject: Re: wall's patch program on NeXT Summary: You need to fix configure... Message-ID: <297@nueces.UUCP> Date: 26 Jul 89 00:09:04 GMT References: <55970@tut.cis.ohio-state.edu> Lines: 26 In article <55970@tut.cis.ohio-state.edu>, amra@cis.ohio-state.edu (Nasir K Amra) writes: > > I've tried to compile wall's patch program on a NeXT machine, > but whenever, I ran the Configure shell script it bombs out on trying > to figure out if cpp can run to accept standard input. > Have anyone managed to get the program running? You need to look through the Configure script and change the expected output from the 'testcpp'. Testcpp being... #define ABC abc #define XYZ xyz ABC+XYZ with the output from cpp being "abc +xyz" not "abc+xyz". I don't know why there is a space there but, it doesn't seem to affect the program. Also, since you haven't gotten this far yet, you need to uncomment the line in config.h (after you run Configure) that defines CHARSPRINTF. You need this to make patch work when you add the -bsd flag to CFLAGS in the Makefile. One of the things -bsd does is make sprintf return char * instead of int. Having includes the way they are on the NeXT usually fools config scripts when they look through your include files for their information. Chris