From 9c8e9fb600f29eb98f6c35767acc182e8e561e74 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sat, 30 Jul 2005 17:14:29 +0000 Subject: [PATCH] Add configure check for Lesstif, to be used by following patches. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 18 ++++++++++++++++++ setup.h.in | 3 +++ setup.h_vms | 3 +++ 3 files changed, 24 insertions(+) diff --git a/configure.in b/configure.in index d144244195..c9ebe70d7d 100644 --- a/configure.in +++ b/configure.in @@ -3139,6 +3139,24 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config AC_DEFINE(__WXMOTIF20__,0) AC_MSG_RESULT([not found]) ]) + + AC_MSG_CHECKING([whether Motif is Lesstif]) + AC_TRY_COMPILE([ + #include + ], + [ + #if !defined(LesstifVersion) || LesstifVersion <= 0 + #error "Not Lesstif" + #endif + ], + [ + AC_DEFINE(__WXLESSTIF__,1) + AC_MSG_RESULT([yes]) + ], + [ + AC_DEFINE(__WXLESSTIF__,0) + AC_MSG_RESULT([no]) + ]) CFLAGS=$save_CFLAGS GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" diff --git a/setup.h.in b/setup.h.in index 42403a4814..3a4ad72b98 100644 --- a/setup.h.in +++ b/setup.h.in @@ -75,6 +75,9 @@ /* Define this if your version of Motif is greater than 2.0 */ #undef __WXMOTIF20__ +/* Define this if you are using Lesstif */ +#undef __WXLESSTIF__ + /* * Define to 1 for Unix[-like] system */ diff --git a/setup.h_vms b/setup.h_vms index 7e1c5a7e8b..5dcec85ca2 100644 --- a/setup.h_vms +++ b/setup.h_vms @@ -72,6 +72,9 @@ /* Define this if your version of Motif is greater than 2.0 */ /* #undef __WXMOTIF20__ */ +/* Define this if you are using Lesstif */ +/* #undef __WXLESSTIF__ */ + #ifdef __WXGTK__ /* Define this if your version of GTK+ is greater than 1.2 */ #define __WXGTK12__ 1 -- 2.45.2