From 214774ceeb8058988e0659a2fe1b881535428d65 Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Mon, 19 Sep 2005 18:41:41 +0000 Subject: [PATCH] Fix for detection of motif in the default library path git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 9dec117684..82dd3cb4d0 100644 --- a/configure.in +++ b/configure.in @@ -3101,6 +3101,8 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config dnl path -- try to compile a test program to check for this save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" + save_LIBS="$LIBS" + LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" AC_TRY_LINK( [ @@ -3115,12 +3117,13 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config COMPILED_X_PROGRAM=1 ], [ - AC_MSG_RESULT(no) - AC_MSG_ERROR(please set LDFLAGS to contain the location of libXm) - ] - ) + AC_MSG_RESULT(no) + AC_MSG_ERROR(please set LDFLAGS to contain the location of libXm) + ] + ) CFLAGS=$save_CFLAGS + LIBS="$save_LIBS" fi AC_MSG_CHECKING([if we need -lXp and/or -lSM -lICE]) -- 2.45.2