In message <[EMAIL PROTECTED]> (on 30 September 2004 22:22:55 +0100), [EMAIL PROTECTED] (Dave Mitchell) wrote: >On Thu, Sep 30, 2004 at 04:39:32PM -0400, Ed Allen Smith wrote: >> Possible. The only cppstdin I find on an IRIX 6.5.20m system is one that >> appears to be from a Perl install (at least from its file date as compared >> to the /usr/share/src/perl-5.8.0/cppstdin file, and that the two files are >> identical). So an earlier install (possibly something from SGI installing an >> older version of Perl, especially since we're talking about an IRIX 6.5.#_f_ >> system (feature release instead of maintenance release - feature == less >> stable)) could have put in one that doesn't work. (I can't read the attached >> version of config.sh, so I can't tell by it.) > >Your config.sh has
Not mine, but the original poster's, but don't worry about it. > cppstdin='cc -64 -E' Huh. That ought to cause a ANSI C preprocess, unless there's a -cckr flag in there someplace or the SGI_CC environment variable is cckr; the first does not appear to be the case and the latter of which is unlikely... but there may be a wrapper _needed_ - see below. >and the relevant test in ./Configure is > > $cat >cpp_stuff.c <<'EOCP' > #define RCAT(a,b)a/**/b > #define ACAT(a,b)a ## b > RCAT(Rei,ser) > ACAT(Cir,cus) > EOCP > $cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1 > if $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then > echo "Oh! Smells like ANSI's been here." >&4 > echo "We can catify or stringify, separately or together!" > cpp_stuff=42 On an IRIX 6.5.20m machine, cpp_stuff.out for cc -64 -E cpp_stuff.c is: #line 1 "cpp_stuff.c" Rei ser Circus However, there appears to be a problem with doing it via stdin: cc -64 -E < cpp_stuff.c > cpp_stuff.out cc ERROR: no source or object file given cc -64 -E - < cpp_stuff.c > cpp_stuff.out cc ERROR parsing -: unknown flag cc ERROR: no source or object file given So a wrapper is necessary. Here, config.sh includes: cppminus='' cppstdin='cppstdin' -Allen -- Allen Smith http://cesario.rutgers.edu/easmith/ February 1, 2003 Space Shuttle Columbia Ad Astra Per Aspera To The Stars Through Asperity
