]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix some tiny bug with 64 bits and :
authoradam <adam>
Thu, 14 Oct 2010 10:38:46 +0000 (10:38 +0000)
committeradam <adam>
Thu, 14 Oct 2010 10:38:46 +0000 (10:38 +0000)
python 2.6
native products

adm_local/unix/config_files/check_pyqt.m4
adm_local/unix/config_files/check_qwt.m4
adm_local/unix/config_files/check_sip.m4

index c23dac6d5acd09d1753bf7d1b092e393c27ffa21..3b2111d6b8ad28d1c204bf9d6a7535bfa396e014 100644 (file)
@@ -151,6 +151,9 @@ if test "x$pyqt_ok" == "xyes" ; then
     TEST_LIB_DIRS="${TEST_LIB_DIRS} /usr/lib${LIB_LOCATION_SUFFIX}/python${PYTHON_VERSION}/site-packages/PyQt4"
     TEST_LIB_DIRS="${TEST_LIB_DIRS} /usr/lib${LIB_LOCATION_SUFFIX}/python${PYTHON_VERSION}/dist-packages/PyQt4"
     TEST_LIB_DIRS="${TEST_LIB_DIRS} /usr/lib${LIB_LOCATION_SUFFIX}/pymodules/python${PYTHON_VERSION}/PyQt4"
+    if test "${build_cpu::6}" = "x86_64" ; then
+      TEST_LIB_DIRS="${TEST_LIB_DIRS} /usr/lib64/python2.6/site-packages/PyQt4"
+    fi
     TEST_SIPS_DIRS="${TEST_SIPS_DIRS} /usr/share/sip"
     TEST_SIPS_DIRS="${TEST_SIPS_DIRS} /usr/share/sip/PyQt4"
 
index e007e76f9af90cbb4a342fe064b3ed174003de5f..d834777d82c3ed13d96705ea23896a1d8a8145a0 100644 (file)
@@ -67,6 +67,25 @@ if test -z $QWTHOME; then
         fi
      done
   fi
+  if test "x$exist_ok" = "xno"; then
+     if test "${build_cpu::6}" = "x86_64" ; then
+       for d in /usr /usr/local ; do
+          for extension in qwt-qt4 qwt; do
+             AC_CHECK_FILE(${d}/lib64/lib${extension}.so,exist_ok=yes,exist_ok=no)
+             if test "x$exist_ok" = "xyes"; then
+                QWTHOME=$d
+                AC_MSG_RESULT(lib${extension}.so detected in $d/lib)
+                libqwt_name=${extension}
+                dnl  break, libqwt-qt4.so is choosen before libqwt.so since it is surely the Qt4 version.
+                break
+             fi
+          done
+          if test "x$exist_ok" = "xyes"; then
+             break
+          fi
+       done
+    fi
+  fi
   if test "x$exist_ok" = "xno"; then
      for d in `echo $LD_LIBRARY_PATH | sed -e "s/:/ /g"` ; do
         if test -f $d/libqwt.so ; then
index 9fa0d1b9413c2e10cc36d18daa0dd77999bac251..0234ec580a8aca9b4d916dedc89774a9f1f4ce29 100644 (file)
@@ -74,6 +74,9 @@ if test "x$sip_ok" = "xyes" ; then
     TEST_LIB_DIRS="${TEST_LIB_DIRS} /usr/lib${LIB_LOCATION_SUFFIX} /usr/lib${LIB_LOCATION_SUFFIX}/python${PYTHON_VERSION}/site-packages"
     TEST_LIB_DIRS="${TEST_LIB_DIRS} /usr/lib${LIB_LOCATION_SUFFIX}/python${PYTHON_VERSION}/dist-packages/PyQt4"
     TEST_LIB_DIRS="${TEST_LIB_DIRS} /usr/lib${LIB_LOCATION_SUFFIX}/pymodules/python${PYTHON_VERSION}"
+    if test "${build_cpu::6}" = "x86_64" ; then
+      TEST_LIB_DIRS="${TEST_LIB_DIRS} /usr/lib64/python${PYTHON_VERSION}/site-packages"
+    fi
     dnl Search sip.h file
     sip_ok=no
     for d in ${TEST_INC_DIRS} ; do