On Fri, 12 Jan 2007, Curt, WE7U wrote: > Look for __LSB__ in messages_gui.c and you'll see where I did > exactly this fix for the LSB version. > > If we had a hook whereby we could tell whether we were compiled with > Lesstif or Motif, we could do the same thing for Lesstif and solve > this segfault problem in a more general way. If you have any ideas > along these lines, pass them along. I'm thinking we'll have to do a > query to the Xm library to get the version string and then grep for > lesstif from there, or else do some checking in > acinclude.m4/configure.ac then set a variable so that we can use > #ifdef's.
At this URL: <http://www.sxemacs.org/list-archives/html/sxemacs-patches/2006-05/msg00063.html> They do a check for "LESSTIF_VERSION": - if test "$have_motif" = "yes"; then - dnl autodetect lesstif - AC_MSG_CHECKING(for Lesstif) - AC_EGREP_CPP(yes, -[#include <Xm/Xm.h> -#ifdef LESSTIF_VERSION -yes -#endif -], have_lesstif=yes, have_lesstif=no) - AC_MSG_RESULT($have_lesstif) - fi Does this seem like a reasonable way to go about it? -- Curt, WE7U. APRS Client Comparisons: http://www.eskimo.com/~archer "Lotto: A tax on people who are bad at math." -- unknown "Windows: Microsoft's tax on computer illiterates." -- WE7U "The world DOES revolve around me: I picked the coordinate system!" _______________________________________________ Xastir mailing list [email protected] http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
