|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-07-18 09:37:31
Ulli,
the problem with this approach is that the Jam architecture does not allow
the running of shell commands at any point where this information can be
used. The info would have to be located in an environment variable at the
time Jam is invoked in order to be interpreted by any of the Jam code.
I have often wished for some way to call into the system during the rule
evaluation phase, so I could find out things like "which version of Python
is installed", etc., but this would be a fairly significant change to the
Jam architecture and would certainly invite abuse. Maybe the best thing
would be to invoke Jam from a script that does a few of these jobs and
passes the results in variables on the Jam command-line. On the other hand,
there's something to be said for being able to do the whole job with a
single tool. I wonder what David Turner thinks of this?
-Dave
----- Original Message -----
From: "Ullrich Koethe" <u.koethe_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, July 18, 2001 10:12 AM
Subject: Re: [boost] Re: Build Success on Boost.Python
> David Abrahams wrote:
> >
> > ----- Original Message -----
> > From: "Ullrich Koethe" <u.koethe_at_[hidden]>
> >
> > > David Abrahams wrote:
> > > >
> > > > >
> > > > > $BOOST_ROOT/libs/python/build/bin/Solaris2.8/...
> > > > > and
> > > > > $BOOST_ROOT/libs/python/build/bin/Linux.whatever/...
> > > >
> > > > Oh! Well, you can set ALL_LOCATE_TARGET differently for different
> > platforms
> > > > if you like. That sets the root of the target directory tree.
> > > >
> > >
> > > I'd rather have an automatic mechanism. Can ALL_LOCATE_TARGET be set
> > > automatically to, say, "Solaris2.6", "Solaris2.8" etc. ?
> >
> > How may we detect what it should be set to?
> >
>
> On UNIX, we have the 'uname' command that returns the necessary
> information (with some additional regex editing):
>
> # uname -sr
> SunOS 5.8
>
> Also, GNU tools usually come with a program "config.guess" which works
> on many platforms, so we might hijack some of their code:
>
> # config.guess
> sparc-sun-solaris2.8
>
> I don't know about Windows, but I'd guess that analogous functionality
> exists to distinguish between Windows flavours.
>
> Ulli
> --
> ________________________________________________________________
> | |
> | Ullrich Koethe Universität Hamburg / University of Hamburg |
> | FB Informatik / Dept. of Computer Science |
> | AB Kognitive Systeme / Cognitive Systems Group |
> | |
> | Phone: +49 (0)40 42883-2573 Vogt-Koelln-Str. 30 |
> | Fax: +49 (0)40 42883-2572 D - 22527 Hamburg |
> | Email: u.koethe_at_[hidden] Germany |
> | koethe_at_[hidden] |
> | WWW: http://kogs-www.informatik.uni-hamburg.de/~koethe/ |
> |________________________________________________________________|
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk