On Fri, 16 Feb 2007, Andrew Beekhof wrote:

> On 2/16/07, David Lee <[EMAIL PROTECTED]> wrote:
> > [...]
> > So I'm assuming that our "include/crm/crm.h" is now using a feature only
> > found in (presumably) v3.x and above.
> >
> > If someone can confirm this, and if we decide to leave it this way (which
> > I suppose would be fair enough), then it might be nice if "configure"
> > could do an early check on the version of gcc that it finds, and then
> > stops if the version number is too early.
>
> i'd vote to check for >=3.0 (or whatever version allows that #define to work)
>
> its faster and avoids a lot of va_args messiness

Just realised... (doh! why didn't I think of this as I thought about
it...)

The test shouldn't be for ">= v3.0" etc.  Rather it should be for whether
this functionality is supported in the compiler being used.  We put a tiny
program inline in "configure" with such a "#define" and a corresponding
invocation, and see whether or not it compiles.

That would be much more in the autoconf spirit.  (I wonder whether one
might even already exist?)

-- 

:  David Lee                                I.T. Service          :
:  Senior Systems Programmer                Computer Centre       :
:  UNIX Team Leader                         Durham University     :
:                                           South Road            :
:  http://www.dur.ac.uk/t.d.lee/            Durham DH1 3LE        :
:  Phone: +44 191 334 2752                  U.K.                  :
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to