From: nds Date: Fri, 8 Jun 2007 05:14:17 +0000 (+0000) Subject: Correction for qwt-5.0.1 and qt-4.2.3 products. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=73db86de4be2761c858b8ad1ae2ce5306d29f56a;p=modules%2Fgui.git Correction for qwt-5.0.1 and qt-4.2.3 products. --- diff --git a/adm_local/unix/config_files/check_qwt.m4 b/adm_local/unix/config_files/check_qwt.m4 index d9bc23fbf..151cf5574 100644 --- a/adm_local/unix/config_files/check_qwt.m4 +++ b/adm_local/unix/config_files/check_qwt.m4 @@ -84,16 +84,21 @@ else qwt_ok=yes fi +# +# test Qwt libraries +# if test "x$qwt_ok" = "xyes" then AC_MSG_CHECKING(linking qwt library) LIBS_old=$LIBS if test "x$QTDIR" = "x/usr" then - LIBS="$LIBS -lqt-mt" + QT_LIB_DIR="" else - LIBS="$LIBS -L$QTDIR/lib${LIB_LOCATION_SUFFIX} -lqt-mt" + QT_LIB_DIR="-L$QTDIR/lib${LIB_LOCATION_SUFFIX}" fi + LIBS="$LIBS $QT_LIB_DIR -lQtCore" + if test "x$QWTHOME" = "x/usr" then LIBS="$LIBS -lqwt" @@ -112,7 +117,6 @@ then char **s; QApplication a(n, s); QwtPlot* p; - a.setMainWidget(p); a.exec();, eval "salome_cv_lib_qwt=yes",eval "salome_cv_lib_qwt=no") ])