]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Correction for qwt-5.0.1 and qt-4.2.3 products.
authornds <nds@opencascade.com>
Fri, 8 Jun 2007 05:14:17 +0000 (05:14 +0000)
committernds <nds@opencascade.com>
Fri, 8 Jun 2007 05:14:17 +0000 (05:14 +0000)
adm_local/unix/config_files/check_qwt.m4

index d9bc23fbf59a314d74d59bc2299dd2ee7bc5509b..151cf55746957166b3aa216795492e57b3525513 100644 (file)
@@ -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")
   ])