On 12-Apr-1999, Danny Backx <[EMAIL PROTECTED]> wrote:
> 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.
Writing macros to check version numbers is also less reliable.
If someone miscompiles or hacks around with lesstif and turns
the Xme functions off, it may still return the wrong version
number.
Checking whether something works is always better than checking
a version number and making assumptions.
--
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