[mythtv] configure --enable-proc-opt

Janne Grunau janne-mythtv at grunau.be
Thu Sep 27 23:57:46 UTC 2007


On Thursday 27 September 2007 20:24:51 Daniel Kristjansson wrote:
> On Thu, 2007-09-27 at 03:02 +0200, Janne Grunau wrote:
> > On Thursday 27 September 2007 01:31:13 Daniel Kristjansson wrote:
> > > distros use anyway. Also gcc has had support for these CPU
> > > types for a few years now,
> >
> > We could use the add_cflag function for the ARCHFLAGS which only
> > adds its parameters if the compiler support it. ffmpeg's configure
> > does it this way.
> > We should at least emit a warning if the compiler doesn't support
> > that flag but compilation wouldn't fail.
>
> That makes sense. Is there any way to implement fall-back using that
> functionality? i.e. try "--march=prescott" or "--march=pentium-m" and
> if that isn't supported fall-back to "--march=pentium4" and finally
> if that isn't supported fall-back to "--march=pentium2"...

Something ugly as add_cflag "--march=prescott" || add_cflag "--march=pentium-m" ...
would work but I'll see if there is a more elegant way.

Janne


More information about the mythtv-dev mailing list