You shouldn't have to check LessTif vs. Motif.

You certainly don't want your code to rely on
the LESSTIF_VERSION etc. macros.

Whether you use something like AC_CHECK_LIB for
one of the Xme functions, or you write your own macro
to check whether XmVERSION is 2 or higher,
should give the same result.

AC_CHECK_LIB is easier to use than writing your own
macro. Hint hint.

Note that I'm still a LessTif core developer. If you
have problems with LessTif, please send mail to
[EMAIL PROTECTED] . We'll help.

  Danny

Tyson Dowd wrote:
> On 12-Apr-1999, Alexandru Harsanyi <[EMAIL PROTECTED]> wrote:
> > #define LESSTIF_VERSION 0
> > #define LESSTIF_REVISION 87
> >
> > #define LesstifVersion (LESSTIF_VERSION * 1000 + LESSTIF_REVISION)
> > #define LesstifVERSION_STRING "GNU LessTif 0.87 0"
> >
> > /* since we're replacing Motif 1.2... */
> > #define XmVERSION 1
> > #define XmREVISION 2
> > #define XmVersion (XmVERSION * 1000 + XmREVISION)
> > #define XmVERSION_STRING LesstifVERSION_STRING
> > #define XmUPDATE_LEVEL 0
> > ---------------------------------------------------------------
> >
> > I believe one can use the LESSTIF_VERSION(/REVISION) to check for the
> > version of lesstif, and XmVERSION(/REVISION) to check for Motif1.2/2.0
> > compatibility.
> 
> Note that this isn't (IMHO) the best way to do things.
> 
> The autoconf approach is to generally check for features, not
> to check for version numbers and assume that version numbers
> correspond with particular features.
> 
> If you check for version numbers you end up with maintenance problems.
> Someone has to keep track of which versions have which features.
> This gets difficult in the long run.
> 
> Probably better to generate a small program that uses _Xme* or whatever,
> and see whether it works (links) or not -- then you don't have to worry
> about all possible versions.
> 
> --
> The quantum sort:
>         while (!sorted) { do_nothing(); }
> Tyson Dowd   <[EMAIL PROTECTED]>   http://tyse.net/
> ----- %< -------------------------------------------- >% ------
> The GnuCash / X-Accountant Mailing List
> To unsubscribe, send mail to [EMAIL PROTECTED] and
> put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body

-- 
Danny Backx ([EMAIL PROTECTED] [EMAIL PROTECTED]) (Work:
[EMAIL PROTECTED])
Home page :     http://users.skynet.be/danny.backx
Projects:       LessTif (http://www.lesstif.org)
                Oleo    (http://www.gnu.org/software/oleo/oleo.html)
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body

Reply via email to