]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Patches from Paul for Debian
authormpv <mpv@opencascade.com>
Tue, 14 Jun 2005 06:28:49 +0000 (06:28 +0000)
committermpv <mpv@opencascade.com>
Tue, 14 Jun 2005 06:28:49 +0000 (06:28 +0000)
17 files changed:
salome_adm/unix/config_files/check_hdf5.m4
salome_adm/unix/config_files/check_lam.m4
salome_adm/unix/config_files/check_lsf.m4
salome_adm/unix/config_files/check_med2.m4
salome_adm/unix/config_files/check_mico.m4
salome_adm/unix/config_files/check_mpi.m4
salome_adm/unix/config_files/check_mpich.m4
salome_adm/unix/config_files/check_omniorb.m4
salome_adm/unix/config_files/check_opengl.m4
salome_adm/unix/config_files/check_openpbs.m4
salome_adm/unix/config_files/check_pyqt.m4
salome_adm/unix/config_files/check_qt.m4
salome_adm/unix/config_files/check_qwt.m4
salome_adm/unix/config_files/check_sip.m4
salome_adm/unix/config_files/check_vtk.m4
src/PatchQt/qfiledialogP.cxx
src/SALOME_PYQT/Makefile.in

index b3658afc1e622c4c897f27816dcb8404b6754f27..b20db13ac474e0ce1918f5e64413c51e6117c7d4 100644 (file)
@@ -48,7 +48,12 @@ then
    AC_MSG_WARN(undefined HDF5HOME variable which specify hdf5 installation directory)
 else
    LOCAL_INCLUDES="-I$HDF5HOME/include"
-   LOCAL_LIBS="-L$HDF5HOME/lib"
+   if test "x$HDF5HOME" = "x/usr"
+   then
+      LOCAL_LIBS=""
+   else
+      LOCAL_LIBS="-L$HDF5HOME/lib"
+   fi
 fi
 
 dnl hdf5 headers
index 9a303a054a1b9d4a7d8dbf51c23943bc15aca306..994a2b0a538d5ca0e2f4b9cd643a6fe59acfb321 100644 (file)
@@ -41,7 +41,12 @@ if test "$WITHLAM" = yes; then
 
   if test "$LAM_HOME"; then
     MPI_INCLUDES="-I$LAM_HOME/include"
-    MPI_LIBS="-L$LAM_HOME/lib"
+    if test "x$LAM_HOME" = "x/usr"
+    then
+      MPI_LIBS=""
+    else
+      MPI_LIBS="-L$LAM_HOME/lib"
+    fi
   fi
 
   CPPFLAGS_old="$CPPFLAGS"
index 5fb9e0b100f4bd8125cd22b8706a76ffad3cdbc7..4e448bafad92b71deccfcdf2d686377e260399a2 100755 (executable)
@@ -43,7 +43,12 @@ AC_DEFUN([CHECK_LSF],
  
    dnl LIB directory
 
-   LSF_LDFLAGS="-L${LSF_LIBDIR}"
+   if test "x${LSF_LIBDIR}" = "x/usr/lib"
+   then
+     LSF_LDFLAGS=""
+   else
+     LSF_LDFLAGS="-L${LSF_LIBDIR}"
+   fi
    LSF_LIBS=""
    saved_LDFLAGS=${LDFLAGS}
    saved_LIBS=${LIBS}
index 3b8fd9f8d815934b00d90089d17fccc2f5eb8fef..07d100bfa1a4edb51e562df0b1d1afefef0c1eb7 100644 (file)
@@ -53,7 +53,12 @@ then
    AC_MSG_WARN(undefined MED2HOME variable which specify med2 installation directory)
 else
    LOCAL_INCLUDES="$HDF5_INCLUDES -I$MED2HOME/include"
-   LOCAL_LIBS="-L$MED2HOME/lib -lmed $HDF5_LIBS"
+   if test "x$MED2HOME" = "x/usr"
+   then
+     LOCAL_LIBS="-lmed $HDF5_LIBS"
+   else
+     LOCAL_LIBS="-L$MED2HOME/lib -lmed $HDF5_LIBS"
+   fi
 fi
 
 dnl check med2 header
index b839d1e5c868810bc6b545d689f78b6963d21069..5d97e2aa185fd5471a4b8adab40e9d1e22b92a2f 100644 (file)
@@ -84,7 +84,12 @@ fi
 
 if test "x$mico_ok" = "xyes" 
 then
-  MICO_LDFLAGS="-L$MICO_LIB"
+  if test "x$MICO_LIB" = "x/usr/lib"
+  then
+    MICO_LDFLAGS=""
+  else
+    MICO_LDFLAGS="-L$MICO_LIB"
+  fi
 
   LIBS_old=$LIBS
   MICO_LIBS="$MICO_LDFLAGS -lmico$MICO_VERSION -ldl"
index d746ac0554d93a2d3ecc9f6574c7d6264c0f433a..e8255a2e482ea4bd414468c9661f3354006cd8ac 100644 (file)
@@ -41,7 +41,12 @@ if test "$WITHMPI" = yes; then
   if test "x$withval" != "xyes"; then
     MPI_HOME=$withval
     MPI_INCLUDES="-I$MPI_HOME/include"
-    MPI_LIBS="-L$MPI_HOME/lib"
+    if test "x$MPI_HOME" = "x/usr"
+    then
+      MPI_LIBS=""
+    else
+      MPI_LIBS="-L$MPI_HOME/lib"
+    fi
   fi
 
   CPPFLAGS_old="$CPPFLAGS"
index de0e6d50a9d5b6b85c62a924806e7d6d7ab10508..c5971aa35220357ed5215b58a4305fec9f7d40f3 100644 (file)
@@ -41,7 +41,12 @@ if test "$WITHMPICH" = yes; then
 
   if test "$MPICH_HOME"; then
     MPI_INCLUDES="-I$MPICH_HOME/include"
-    MPI_LIBS="-L$MPICH_HOME/lib"
+    if test "x$MPICH_HOME" = "x/usr"
+    then
+      MPI_LIBS=""
+    else
+      MPI_LIBS="-L$MPICH_HOME/lib"
+    fi
   fi
 
   CPPFLAGS_old="$CPPFLAGS"
index f3d5abcdb62d902211015d7a4bdc6ef2c1a10514..1f63365bf30438d3bf8ed8057466d08d16f84114 100644 (file)
@@ -99,7 +99,12 @@ dnl omniORB_ok=yes
 
 if test "x$omniORB_ok" = "xyes" 
 then
-  OMNIORB_LDFLAGS="-L$OMNIORB_LIB"
+  if test "x$OMNIORB_LIB" = "x/usr/lib"
+  then
+    OMNIORB_LDFLAGS=""
+  else
+    OMNIORB_LDFLAGS="-L$OMNIORB_LIB"
+  fi
 
   LIBS_old=$LIBS
   LIBS="$LIBS $OMNIORB_LDFLAGS -lomnithread"
index ad1ccbd1eb044e154d898b9216eda416814d91ea..dd43d25a03a6b873d0ddee362a62704078b2bb61 100644 (file)
@@ -49,7 +49,12 @@ if test "x$local_opengl" = "xyes" ; then
    if test -f "${opengl_dir}/include/GL/gl.h" ; then
       OpenGL_ok=yes
       OGL_INCLUDES="-I${opengl_dir}/include"
-      OGL_LIBS="-L${opengl_dir}/lib"
+      if test "x${opengl_dir}" = "x/usr"
+      then
+        OGL_LIBS=""
+      else
+        OGL_LIBS="-L${opengl_dir}/lib"
+      fi
       AC_MSG_RESULT(select OpenGL distribution in ${opengl_dir})
    else
       AC_MSG_RESULT(no gl.h header file in ${opengl_dir}/include/GL)
@@ -91,13 +96,23 @@ then
   for i in $dirs; do
     if test -r "$i/libGL.so"; then
 dnl      AC_MSG_RESULT(in $i)
-      OGL_LIBS="-L$i"
+      if test "x$i" = "x/usr/lib"
+      then
+        OGL_LIBS=""
+      else
+        OGL_LIBS="-L$i"
+      fi
       break
     fi
 # under IRIX ?
     if test -r "$i/libGL.sl"; then
 dnl      AC_MSG_RESULT(in $i)
-      OGL_LIBS="-L$i"
+      if test "x$i" = "x/usr/lib"
+      then
+        OGL_LIBS=""
+      else
+        OGL_LIBS="-L$i"
+      fi
       break
     fi
   done
index 9598285c9548c3e09f6d30f16637cd53b8b97a60..220528574cab3fc786af9016af0eaebfce967204 100644 (file)
@@ -30,7 +30,12 @@ AC_DEFUN([CHECK_OPENPBS],
    CPPFLAGS=${saved_CPPFLAGS}
    AC_SUBST(OPENPBS_INCLUDES)
  
-   OPENPBS_LIBDIR="-L${OPENPBS}/lib"
+   if test "x${OPENPBS}" = "x/usr"
+   then
+     OPENPBS_LIBDIR=""
+   else
+     OPENPBS_LIBDIR="-L${OPENPBS}/lib"
+   fi
    OPENPBS_LIBS="-lpbs"
    saved_LDFLAGS=${LDFLAGS}
    saved_LIBS=${LIBS}
index f16a4df7eb3558da097ea1f456e65763bba2d3c1..573ebc44f41e0090a368eeb6084e39c7a74773a4 100644 (file)
@@ -84,11 +84,21 @@ if test "x${PYQTDIR}" != "x"; then
   dnl try {PYQTDIR}
   AC_CHECK_FILE(${PYQTDIR}/libqtcmodule.so,pyqt_lib_ok=yes,pyqt_lib_ok=no)
   if test "x$pyqt_lib_ok" == "xyes"; then
-    PYQT_LIBS="-L${PYQTDIR} -lqtcmodule"
+    if test "x${PYQTDIR}" = "x/usr/lib"
+    then
+      PYQT_LIBS="-lqtcmodule"
+    else
+      PYQT_LIBS="-L${PYQTDIR} -lqtcmodule"
+    fi
   else 
     AC_CHECK_FILE(${PYQTDIR}/qt.so,pyqt_lib_ok=yes,pyqt_lib_ok=no)
     if test "x$pyqt_lib_ok" == "xyes"; then
-      PYQT_LIBS="-L${PYQTDIR}"
+      if test "x${PYQTDIR}" = "x/usr/lib"
+      then
+        PYQT_LIBS=""
+      else
+        PYQT_LIBS="-L${PYQTDIR}"
+      fi
     fi
   fi
   if test "x$pyqt_lib_ok" == "xno"; then
@@ -126,11 +136,21 @@ if test "x$pyqt_lib_ok" == "xno"; then
     if test -d ${SIPDIR} ; then
       AC_CHECK_FILE(${SIPDIR}/libqtcmodule.so,pyqt_lib_ok=yes,pyqt_lib_ok=no)
       if test "x$pyqt_lib_ok" == "xyes"; then
-        PYQT_LIBS="-L${SIPDIR} -lqtcmodule"
+        if test "x${SIPDIR}" = "x/usr/lib"
+        then
+          PYQT_LIBS="-lqtcmodule"
+        else
+          PYQT_LIBS="-L${SIPDIR} -lqtcmodule"
+        fi
       else 
         AC_CHECK_FILE(${SIPDIR}/qt.so,pyqt_lib_ok=yes,pyqt_lib_ok=no)
         if test "x$pyqt_lib_ok" == "xyes"; then
-          PYQT_LIBS="-L${SIPDIR}"
+          if test "x${SIPDIR}" = "x/usr/lib"
+          then
+            PYQT_LIBS=""
+          else
+            PYQT_LIBS="-L${SIPDIR}"
+          fi
         fi
       fi
     fi
index 1e4d90ad6938aff616f40f4e3beda814af03cd99..3faa1e990dd1076a526628175ecb53028d9c20e0 100644 (file)
@@ -39,7 +39,10 @@ then
    qt_ok=no
 else
    AC_MSG_RESULT(QTDIR is $QTDIR)
-   QT_VERS=`grep "QT_VERSION_STR" ${QTDIR}/include/qglobal.h | sed -e 's%^#define QT_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'`
+   qt_inc_ok=no
+   QTINC=""
+   AC_CHECK_FILE(${QTDIR}/include/qt3/qglobal.h,QTINC="/qt3",QTINC="")
+   QT_VERS=`grep "QT_VERSION_STR" ${QTDIR}/include${QTINC}/qglobal.h | sed -e 's%^#define QT_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'`
    AC_MSG_RESULT(Qt version is $QT_VERS)
    QT_VERS="Qt_"`echo $QT_VERS | sed -e 's%\"%%g' -e 's%\.%_%g'`
 fi
@@ -86,7 +89,7 @@ QT_ROOT=$QTDIR
 if  test "x$qt_ok" = "xyes"
 then
   CPPFLAGS_old=$CPPFLAGS
-  CPPFLAGS="$CPPFLAGS -I$QTDIR/include"
+  CPPFLAGS="$CPPFLAGS -I$QTDIR/include${QTINC}"
 
   AC_LANG_CPLUSPLUS
   AC_CHECK_HEADER(qaction.h,qt_ok=yes ,qt_ok=no)
@@ -101,8 +104,8 @@ then
     AC_MSG_RESULT(QTDIR environment variable may be wrong)
   else
     AC_MSG_RESULT(yes)
-    QT_INCLUDES="-I${QT_ROOT}/include -DQT_THREAD_SUPPORT"
-    QT_MT_INCLUDES="-I${QT_ROOT}/include -DQT_THREAD_SUPPORT"
+    QT_INCLUDES="-I${QT_ROOT}/include${QTINC} -DQT_THREAD_SUPPORT"
+    QT_MT_INCLUDES="-I${QT_ROOT}/include${QTINC} -DQT_THREAD_SUPPORT"
   fi
 fi
 
@@ -110,10 +113,15 @@ if  test "x$qt_ok" = "xyes"
 then
   AC_MSG_CHECKING(linking qt library)
   LIBS_old=$LIBS
-  LIBS="$LIBS -L$QTDIR/lib -lqt-mt $OGL_LIBS"
+  if test "x$QTDIR" = "x/usr"
+  then
+    LIBS="$LIBS -lqt-mt $OGL_LIBS"
+  else
+    LIBS="$LIBS -L$QTDIR/lib -lqt-mt $OGL_LIBS"
+  fi
 
   CXXFLAGS_old=$CXXFLAGS
-  CXXFLAGS="$CXXFLAGS -I$QTDIR/include"
+  CXXFLAGS="$CXXFLAGS $QT_INCLUDES"
 
   AC_CACHE_VAL(salome_cv_lib_qt,[
     AC_TRY_LINK(
@@ -132,8 +140,14 @@ then
     AC_MSG_RESULT(QTDIR environment variable may be wrong)
   else
     AC_MSG_RESULT(yes)
-       QT_LIBS="-L$QTDIR/lib -lqt-mt"
-    QT_MT_LIBS="-L$QTDIR/lib -lqt-mt"
+    if test "x$QTDIR" = "x/usr"
+    then
+         QT_LIBS=" -lqt-mt"
+      QT_MT_LIBS=" -lqt-mt"
+    else
+         QT_LIBS="-L$QTDIR/lib -lqt-mt"
+      QT_MT_LIBS="-L$QTDIR/lib -lqt-mt"
+    fi
   fi
 
   LIBS=$LIBS_old
index c50835666bea0eebdf0ddd85cec43123360394b3..9cdc0a9d3de6e822c3ed433149258d01d51b8868 100644 (file)
@@ -64,7 +64,7 @@ else
    AC_LANG_CPLUSPLUS
    CPPFLAGS_old=$CPPFLAGS
    CPPFLAGS="$CPPFLAGS -I$QWT_INCLUDES"
-   CPPFLAGS="$CPPFLAGS -I$QTDIR/include"
+   CPPFLAGS="$CPPFLAGS $QT_INCLUDES"
 
    AC_CHECK_HEADER(qwt.h,qwt_ok=yes,qwt_ok=no) 
 
@@ -81,10 +81,21 @@ if  test "x$qwt_ok" = "xyes"
 then
   AC_MSG_CHECKING(linking qwt library)
   LIBS_old=$LIBS
-  LIBS="$LIBS -L$QTDIR/lib -lqt-mt -L$QWTHOME/lib -lqwt"
+  if test "x$QTDIR" = "x/usr"
+  then
+    LIBS="$LIBS -lqt-mt"
+  else
+    LIBS="$LIBS -L$QTDIR/lib -lqt-mt"
+  fi
+  if test "x$QWTHOME" = "x/usr/lib"
+  then
+    LIBS="$LIBS -lqwt"
+  else
+    LIBS="$LIBS -L$QWTHOME/lib -lqwt"
+  fi
 
   CXXFLAGS_old=$CXXFLAGS
-  CXXFLAGS="$CXXFLAGS -I$QTDIR/include -I$QWT_INCLUDES"
+  CXXFLAGS="$CXXFLAGS $QT_INCLUDES -I$QWT_INCLUDES"
 
   AC_CACHE_VAL(salome_cv_lib_qwt,[
     AC_TRY_LINK(
@@ -106,7 +117,12 @@ then
     AC_MSG_RESULT(QWTHOME environment variable may be wrong)
   else
     QWT_INCLUDES="-I$QWT_INCLUDES"
-    QWT_LIBS="-L$QWTHOME/lib -lqwt"
+    if test "x$QWTHOME" = "x/usr/lib"
+    then
+      QWT_LIBS=" -lqwt"
+    else
+      QWT_LIBS="-L$QWTHOME/lib -lqwt"
+    fi
 
     AC_SUBST(QWT_INCLUDES)
     AC_SUBST(QWT_LIBS)
index 3fe220f56bb807b5d6661639950b305c8f79d003..dde9bc31f2d398e4d69f0b802ebd6a74c261614c 100644 (file)
@@ -89,11 +89,21 @@ else
         dnl look for (lib)sip.so in ${SIPDIR}
         AC_CHECK_FILE(${SIPDIR}/libsip.so,sip_lib_ok=yes,sip_lib_ok=no)
        if test "x$sip_lib_ok" == "xyes" ; then
-           SIP_LIBS="-L${SIPDIR} -lsip"
+            if test "x${SIPDIR}" = "x/usr/lib"
+            then
+              SIP_LIBS="-lsip"
+            else
+              SIP_LIBS="-L${SIPDIR} -lsip"
+            fi
        else
            AC_CHECK_FILE(${SIPDIR}/sip.so,sip_lib_ok=yes,sip_lib_ok=no)
            if test "x$sip_lib_ok" == "xyes" ; then
-               SIP_LIBS="-L${SIPDIR}"
+              if test "x${SIPDIR}" = "x/usr/lib"
+              then
+                SIP_LIBS=""
+              else
+                SIP_LIBS="-L${SIPDIR}"
+              fi
            fi
        fi
 
index 4b4b1454fab0c07c93f3cdcb6d164863b686e03a..3f46f41baf661db443a36c97099f5d71650bee0b 100644 (file)
@@ -55,6 +55,11 @@ else
    LXLIB=""
 fi
 
+if test "x$x_libraries" = "x/usr/lib"
+then
+   LXLIB=""
+fi
+
 LOCAL_INCLUDES="$OGL_INCLUDES"
 LOCAL_LIBS="-lvtkCommon -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkIO -lvtkRendering -lvtkHybrid $OGL_LIBS $LXLIB -lX11 -lXt"
 TRY_LINK_LIBS="-lvtkCommon $OGL_LIBS $LXLIB -lX11 -lXt"
index e6aa9dbbaa968b8e980e9b20d52e87e2c4080783..5a71ec597355c853c48a0c89961951f98b167578 100644 (file)
@@ -41,8 +41,6 @@
 **
 **********************************************************************/
 
-#include "qplatformdefs.h"
-
 // Solaris redefines connect -> __xnet_connect with _XOPEN_SOURCE_EXTENDED.
 #if defined(connect)
 #undef connect
@@ -52,6 +50,7 @@
 
 #if (QT_VERSION < 0x030303)
 
+#include <qplatformdefs.h>
 #include "qfiledialogP_moc.cxx"
 
 #ifndef QT_NO_FILEDIALOG
index 31f04063d6cd51c3dd43740653bf616a1c005a15..5daa9a94707fa5a2bbe4ac76ada2b717870d8992 100644 (file)
@@ -19,6 +19,9 @@ VPATH=.:@srcdir@:@top_srcdir@/idl
 ifeq ($(QT_VERS),Qt_3_3_3)
 QT_VERS = Qt_3_3_0
 endif
+ifeq ($(QT_VERS),Qt_3_3_4)
+QT_VERS = Qt_3_3_0
+endif
 
 # Sip flags
 SIP_FLAGS = -t WS_X11 -t $(QT_VERS) -s ".cc" -c . -I $(PYQT_SIPS)