Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: MacOS X ./configure
Home

[Freeciv-Dev] Re: MacOS X ./configure

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Brian Olson <locke@xxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: MacOS X ./configure
From: Greg Wooledge <greg@xxxxxxxxxxxx>
Date: Fri, 30 Nov 2001 06:32:43 -0500

Brian Olson (locke@xxxxxxx) wrote:

> But, any thoughts on the difficulty of getting autoconf/configure to 
> detect a presence/absence of stderr output on a command like
> $CC -no-cpp-precomp -E - < /dev/null
> ?

The naive way would be something like this:

  $CC -no-cpp-precomp -E - < /dev/null > /dev/null 2> config.stderr
  if test -s config.stderr; then
    echo $ac_n "Uh oh: $ac_c" 1>&6
    cat config.stderr 1>&6
  else
    echo "Cool." 1>&6
  fi

But I'm very very far from being an autoconf guru.

-- 
Greg Wooledge                  |   "Truth belongs to everybody."
greg@xxxxxxxxxxxx              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |

Attachment: pgpjgvdEcNg4E.pgp
Description: PGP signature


[Prev in Thread] Current Thread [Next in Thread]