]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
portage CCRT alpha/osf
authorsecher <secher>
Wed, 21 Jan 2004 08:55:15 +0000 (08:55 +0000)
committersecher <secher>
Wed, 21 Jan 2004 08:55:15 +0000 (08:55 +0000)
12 files changed:
configure.in.base
salome_adm/unix/config_files/ac_cxx_option.m4 [new file with mode: 0644]
salome_adm/unix/config_files/ac_cxx_template_depth.m4 [deleted file]
salome_adm/unix/config_files/ac_cxx_template_options.m4 [new file with mode: 0644]
salome_adm/unix/config_files/ac_cxx_warnings.m4
salome_adm/unix/config_files/ac_linker_options.m4
salome_adm/unix/config_files/check_cas.m4
salome_adm/unix/config_files/check_pthreads.m4
salome_adm/unix/config_files/check_pyqt.m4
salome_adm/unix/config_files/check_sip.m4
salome_adm/unix/make_commence.in
src/Makefile.in

index 872de60efa72af61217ce9447f0fc9827fa53458..f946353c74ba171f61ea1cf7246e355d0725e106 100644 (file)
@@ -14,7 +14,7 @@
 #
 # Created from configure.in.base
 #
-
+AS_SHELL_SANITIZES
 AC_INIT(src)
 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
 AC_CANONICAL_HOST
@@ -49,7 +49,7 @@ echo
 echo
 
 dnl Modification B. Secher portage sur osf
-AC_PATH_PROG(SHELL,sh,,)
+AC_CHECK_PROG(SHELL,sh,,)
 AC_SUBST(SHELL)
 
 if test -z "$AR"; then
@@ -105,7 +105,7 @@ dnl inutil car libtool
 dnl AC_PROG_CC
 AC_PROG_CXX
 AC_CXX_WARNINGS
-AC_CXX_TEMPLATE_DEPTH
+AC_CXX_TEMPLATE_OPTIONS
 AC_DEPEND_FLAG
 #AC_CC_WARNINGS([ansi])
 cc_ok=yes
@@ -370,7 +370,7 @@ dnl copy shells and utilities contained in the bin directory
 dnl excluding .in files (treated in AC-OUTPUT below) and CVS 
 dnl directory
 
-cd bin
+cd $ROOT_BUILDDIR/bin
 for i in $ROOT_SRCDIR/bin/*
 do
   local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
diff --git a/salome_adm/unix/config_files/ac_cxx_option.m4 b/salome_adm/unix/config_files/ac_cxx_option.m4
new file mode 100644 (file)
index 0000000..4c51d67
--- /dev/null
@@ -0,0 +1,45 @@
+dnl  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+dnl  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+dnl 
+dnl  This library is free software; you can redistribute it and/or 
+dnl  modify it under the terms of the GNU Lesser General Public 
+dnl  License as published by the Free Software Foundation; either 
+dnl  version 2.1 of the License. 
+dnl 
+dnl  This library is distributed in the hope that it will be useful, 
+dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+dnl  Lesser General Public License for more details. 
+dnl 
+dnl  You should have received a copy of the GNU Lesser General Public 
+dnl  License along with this library; if not, write to the Free Software 
+dnl  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+dnl 
+dnl  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+dnl
+dnl
+dnl
+dnl @synopsis AC_CXX_OPTION(-option,variable where we add option if ok,action if ok; action if not ok)
+dnl
+dnl Check options for C++ compiler
+dnl
+dnl @author Bernard Secher - 15/01/2004
+dnl
+AC_DEFUN([AX_CXX_OPTION], [
+  AC_MSG_CHECKING(CXXFLAGS for $CXX in $1)
+  cat > conftest.cxx <<EOF
+int main(int argc, char **argv) { return 0; }
+EOF
+  $CXX $1 conftest.cxx > conftest.log 2>&1
+  var=`echo $1 | sed -e "s, .*$,," | sed -e "s,^-,,"`
+  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
+    AC_MSG_RESULT(yes)
+    $2="${$2} $1"
+    eval $3
+  else
+    AC_MSG_RESULT(no)
+    eval $4
+  fi
+])
+
+
diff --git a/salome_adm/unix/config_files/ac_cxx_template_depth.m4 b/salome_adm/unix/config_files/ac_cxx_template_depth.m4
deleted file mode 100644 (file)
index 1753d6d..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-dnl  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-dnl  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
-dnl 
-dnl  This library is free software; you can redistribute it and/or 
-dnl  modify it under the terms of the GNU Lesser General Public 
-dnl  License as published by the Free Software Foundation; either 
-dnl  version 2.1 of the License. 
-dnl 
-dnl  This library is distributed in the hope that it will be useful, 
-dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-dnl  Lesser General Public License for more details. 
-dnl 
-dnl  You should have received a copy of the GNU Lesser General Public 
-dnl  License along with this library; if not, write to the Free Software 
-dnl  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-dnl 
-dnl  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
-dnl
-dnl
-dnl
-dnl @synopsis AC_CXX_WARNINGS
-dnl
-dnl Check warning flags for C++ compiler to control warning messages
-dnl
-dnl @author Bernard Secher (CEA) - 04/12/2003
-dnl
-AC_DEFUN([AC_CXX_TEMPLATE_DEPTH],[
-  AC_MSG_CHECKING(c++ compiler have template-depth flag)
-  cat > conftest.cxx <<EOF
-int main(int argc, char **argv) { return 0; }
-EOF
-  fTMPDPTH_FLAG=no
-  for ac_CXX_TMPDPTH_FLAG in -ftemplate-depth-42 "-pending_instantiations 42" ; do
-    if $CXX ${ac_CXX_TMPDPTH_FLAG} conftest.cxx > /dev/null 2>&1; then
-      CXXTMPDPTHFLAGS="${ac_CXX_TMPDPTH_FLAG}"
-      AC_MSG_RESULT(${ac_CXX_TMPDPTH_FLAG})
-      fTMPDPTH_FLAG=yes
-      break
-    fi
-  done
-  if test $fTMPDPTH_FLAG = no; then
-    AC_MSG_RESULT(no)
-  fi
-  AC_SUBST(CXXTMPDPTHFLAGS)
-])
diff --git a/salome_adm/unix/config_files/ac_cxx_template_options.m4 b/salome_adm/unix/config_files/ac_cxx_template_options.m4
new file mode 100644 (file)
index 0000000..9e256c0
--- /dev/null
@@ -0,0 +1,39 @@
+dnl  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+dnl  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+dnl 
+dnl  This library is free software; you can redistribute it and/or 
+dnl  modify it under the terms of the GNU Lesser General Public 
+dnl  License as published by the Free Software Foundation; either 
+dnl  version 2.1 of the License. 
+dnl 
+dnl  This library is distributed in the hope that it will be useful, 
+dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+dnl  Lesser General Public License for more details. 
+dnl 
+dnl  You should have received a copy of the GNU Lesser General Public 
+dnl  License along with this library; if not, write to the Free Software 
+dnl  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+dnl 
+dnl  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+dnl
+dnl
+dnl
+dnl @synopsis AC_CXX_TEMPLATE_OPTIONS
+dnl
+dnl Check template options for C++ compiler
+dnl
+dnl @author Bernard Secher (CEA) - 04/12/2003
+dnl
+AC_DEFUN([AC_CXX_TEMPLATE_OPTIONS],[
+dnl 
+  for opt in -ftemplate-depth-42 "-pending_instantiations 42" ; do
+    AX_CXX_OPTION($opt,CXXTMPDPTHFLAGS,flag=yes,flag=no)
+    if test "$flag" = "yes"; then
+      break
+    fi
+    AC_SUBST(CXXTMPDPTHFLAGS)
+  done
+dnl
+  AX_CXX_OPTION(-ptr $ROOT_BUILDDIR/cxx_repository,CXXFLAGS)
+])
index f37689c73a8fcd6a94106a826f27e59c5c56dd50..11934b1acc5412525baf31f2d60031ad05ef91ed 100644 (file)
@@ -26,34 +26,5 @@ dnl
 dnl @author Bernard Secher (CEA) - 04/12/2003
 dnl
 AC_DEFUN([AC_CXX_WARNINGS],[
-  AC_MSG_CHECKING(c++ compiler have no-deprecated flag)
-  cat > conftest.cxx <<EOF
-int main(int argc, char **argv) { return 0; }
-EOF
-  fNODEP_FLAG=no
-  for ac_CXX_NODEP_FLAG in -Wno-deprecated; do
-    if $CXX ${ac_CXX_NODEP_FLAG} conftest.cxx > /dev/null 2>&1; then
-      CXXFLAGS="$CXXFLAGS ${ac_CXX_NODEP_FLAG}"
-      AC_MSG_RESULT(${ac_CXX_NODEP_FLAG})
-      fNODEP_FLAG=yes
-      break
-    fi
-  done
-  if test $fNODEP_FLAG = no; then
-    AC_MSG_RESULT(no)
-  fi
-dnl
-  AC_MSG_CHECKING(c++ compiler have repository flag)
-  fREP_FLAG=no
-  for ac_CXX_REP_FLAG in "-ptr ${ROOT_BUILDDIR}/cxx_repository"; do
-    if $CXX ${ac_CXX_REP_FLAG} conftest.cxx > /dev/null 2>&1; then
-      CXXFLAGS="$CXXFLAGS ${ac_CXX_REP_FLAG}"
-      AC_MSG_RESULT(${ac_CXX_REP_FLAG})
-      fREP_FLAG=yes
-      break
-    fi
-  done
-  if test $fREP_FLAG = no; then
-    AC_MSG_RESULT(no)
-  fi
+  AX_CXX_OPTION(-Wno-deprecated,CXXFLAGS)
 ])
index 32a5d8e1456ea2cab6473d984beb612b627b6654..95a1b5b95b5ad9fc5362bca72bc2f189eaaa2286 100644 (file)
@@ -26,22 +26,12 @@ dnl
 dnl @author Bernard Secher (CEA) - 04/12/2003
 dnl
 AC_DEFUN([AC_LINKER_OPTIONS],[
-  AC_MSG_CHECKING(loader have export dynamic option)
-  cat > conftest.cxx <<EOF
-int main(int argc, char **argv) { return 0; }
-EOF
-  fEXPDYN_FLAG=no
-  for ac_LD_EXPDYN_FLAG in "-Xlinker -export-dynamic" -transitive_link; do
-    if $CXX ${ac_LD_EXPDYN_FLAG} conftest.cxx > /dev/null 2>&1; then
-      LDEXPDYNFLAGS="${ac_LD_EXPDYN_FLAG}"
-      AC_MSG_RESULT(${ac_LD_EXPDYN_FLAG})
-      fEXPDYN_FLAG=yes
+  for opt in "-Xlinker -export-dynamic" -transitive_link; do
+    AX_CXX_OPTION($opt,LDEXPDYNFLAGS,flag=yes,flag=no)
+    if test "$flag" = "yes"; then
       break
     fi
   done
-  if test $fEXPDYN_FLAG = no; then
-    AC_MSG_RESULT(no)
-  fi
   AC_SUBST(LDEXPDYNFLAGS)
 dnl 
   case $host_os in
index 1188558f73d5ce4a9337c1dc8f4f6417aca156ad..0ae6c36c274d7b7edb9579496c711e0562a28092 100644 (file)
@@ -101,22 +101,12 @@ fi
 if test "x$occ_ok" = "xyes"; then
 
 dnl test c++ compiler flag for unsigned character
-  AC_MSG_CHECKING(c++ compiler have unsigned character flag)
-  cat > conftest.cxx <<EOF
-int main(int argc, char **argv) { return 0; }
-EOF
-  fUCHAR_FLAG=no
-  for ac_CXX_UCHAR_FLAG in -funsigned-char -unsigned ; do
-    if $CXX ${ac_CXX_UCHAR_FLAG} conftest.cxx > /dev/null 2>&1; then
-      CXXFLAGS="$CXXFLAGS ${ac_CXX_UCHAR_FLAG}"
-      AC_MSG_RESULT(${ac_CXX_UCHAR_FLAG})
-      fUCHAR_FLAG=yes
+  for opt in -funsigned-char -unsigned ; do
+    AX_CXX_OPTION($opt,CXXFLAGS,flag=yes,flag=no)
+    if test "$flag" = "yes"; then
       break
     fi
   done
-  if test $fUCHAR_FLAG = no; then
-    AC_MSG_RESULT(no)
-  fi
   
 dnl cascade headers
 
@@ -159,7 +149,7 @@ else
 
   # E.A. compatibility version 4 and 5.x  
   CAS_OCAF="$CAS_LDPATH -lPTKernel -lTKCAF -lFWOSPlugin -lTKPShape -lTKPCAF -lTKStdSchema -lTKShapeSchema -lPAppStdPlugin"
-  if test $OCC_VERSION_MAJOR < 5 ; then
+  if test $OCC_VERSION_MAJOR -lt 5 ; then
     CAS_OCAF="$CAS_OCAF -lTKPAppStd"
   fi
   CAS_OCAF="$CAS_OCAF -lTKCDF"
@@ -169,7 +159,7 @@ else
 
   # E.A. compatibility version 4 and 5.x  
   CAS_DATAEXCHANGE="$CAS_LDPATH -lTKXSBase -lTKIGES -lTKSTEP -lTKShHealing"
-  if test $OCC_VERSION_MAJOR < 5 ; then
+  if test $OCC_VERSION_MAJOR -lt 5 ; then
     CAS_DATAEXCHANGE="$CAS_DATAEXCHANGE -lTKShHealingStd"
   fi
 
index 895ede57d8ea71d91e222e7c51a5e3136e3f5ac0..7c6b91eeb421f4774c6c9b849f13a5aa0ec3dc9b 100644 (file)
@@ -30,21 +30,9 @@ dnl@id $Id$
 dnl ----------------------------------------------------------------
 dnl CHECK_PTHREADS
 AC_DEFUN(CHECK_PTHREADS,[
-AC_MSG_CHECKING(flags for using pthreads)
-cat > conftest.cxx <<EOF
-int main(int argc, char **argv) { return 0; }
-EOF
-fPTH_FLAG=no
-for ac_CXX_PTH_FLAG in -pthread ; do
-  if $CXX ${ac_CXX_PTH_FLAG} conftest.cxx > /dev/null 2>&1; then
-    CPPFLAGS="$CPPFLAGS ${ac_CXX_PTH_FLAG}"
-    fPTH_FLAG=yes
-    AC_MSG_RESULT($ac_CXX_PTH_FLAG)
-    break
-  fi
-done
+AX_CXX_OPTION(-pthread,CPPFLAGS,flag=yes,flag=no)
 
-if test $fPTH_FLAG = no; then
+if test $flag = no; then
   AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl
   AC_CHECK_HEADER(pthread.h,AC_DEFINE(HAVE_PTHREAD_H))
   AC_CHECK_LIB(posix4,nanosleep, LIBS_PTHREADS="-lposix4",LIBS_PTHREADS="")
@@ -52,7 +40,7 @@ if test $fPTH_FLAG = no; then
                LIBS_PTHREADS="-lpthread $LIBS_PTHREADS",LIBS_PTHREADS="")
 fi
 
-if test $fPTH_FLAG = no && x$LIBS_PTHREADS = x; then
+if test $flag = no && x$LIBS_PTHREADS = x; then
   threads_ok=no
 else
   threads_ok=yes
index eb11bf251fcfe808b274257646e06e5b4b5e3b74..8977452d2dd136f2f25a1fdbf4d8a336396109df 100644 (file)
@@ -3,30 +3,6 @@ dnl Copyright (C) 2003  CEA/DEN, EDF R&D
 AC_DEFUN([CHECK_PYQT],[
 AC_REQUIRE([CHECK_PYTHON])dnl
 
-AC_CHECKING(for pyqt)
-
-pyqt_ok=no
-
-PYTHON_SITE_PACKPYQT=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
-AC_CHECK_FILES($PYTHON_SITE_PACKPYQT/qt.py $PYTHON_SITE_PACKPYQT/libqtcmodule.so,pyqt_ok=yes,pyqt_ok=no)
-if test "x$pyqt_ok" = xyes ; then
-   PYQT_INCLUDES="-I $PYTHON_SITE_PACKPYQT"
-   PYQT_LIBS="-L$PYTHON_SITE_PACKPYQT -lqtcmodule"
-fi
-
-if test "x$pyqt_ok" = xyes ; then
-   AC_CHECK_FILES(/usr/share/sip/qt/qtmod.sip,pyqt_ok=yes,pyqt_ok=no)
-   if test "x$pyqt_ok" = xyes ; then
-      PYQT_SIPS="/usr/share/sip/qt"
-   fi
-   AC_SUBST(PYQT_INCLUDES)
-   AC_SUBST(PYQT_LIBS)
-   AC_SUBST(PYQT_SIPS)
-else
-
-  pyqt_ok=yes
-  dnl were is pyqt ?
-
 AC_ARG_WITH(pyqt,
     [  --with-pyqt=DIR      root directory path to PyQt installation ],
     [PYQTDIR="$withval"
@@ -46,66 +22,62 @@ AC_ARG_WITH(pyuic,
       AC_MSG_RESULT("select $withval as pyqt executable")
     ])
 
+AC_CHECKING(for pyqt)
 
-if test -z $PYQTDIR; then
-   PYQTDIR="/usr/lib/python${PYTHON_VERSION}/site-packages"    
-else
-   if test -z $PYQT_SIPS; then
-      PYQT_SIPS="$PYQTDIR/sip" 
-   fi  
-   if test -z $PYUIC; then
-      AC_CHECK_FILE("$PYQTDIR/pyuic",pyqt_ok=yes,pyqt_ok=no)
-      if test "x$pyqt_ok" = xyes ; then        
-         PYUIC="$PYQTDIR/pyuic"
-      else
-         AC_PATH_PROG(PYUIC, pyuic)
-      fi       
-   fi  
+pyqt_ok=no
+
+if test "x$PYQTDIR" = x; then
+  PYQTDIR="/usr"
 fi
 
-if test -z $PYQT_SIPS; then
-   PYQT_SIPS="/usr/share/sip/qt"       
+if test "x$PYQT_SIPS" = x; then
+  PYQT_SIPS="/usr/share/sip/qt"
 fi
 
-if test -z $PYUIC; then
-   PYUIC="/usr/bin/pyuic"      
+if test -d $PYQTDIR/lib/python${PYTHON_VERSION}/site-packages; then
+  PYQTLIB=$PYQTDIR/lib/python${PYTHON_VERSION}/site-packages
+else
+  if test -d $PYQTDIR/lib; then
+    PYQTLIB=$PYQTDIR/lib
+  else
+    PYQTLIB=$PYQTDIR
+  fi
 fi
 
-AC_CHECK_FILES("$PYQTDIR/qt.py","$PYQTDIR/qt/qt.py",pyqt_ok=yes,pyqt_ok=no)
-if test "x$pyqt_ok" = xno ; then
-   AC_MSG_WARN(pyqt not found)
+if test -d $PYQTDIR/bin; then
+  PYQTBIN=$PYQTDIR/bin
 else
-   AC_CHECK_FILE("$PYQTDIR/libqtcmodule.so",pyqt_ok=yes,pyqt_ok=no)
-   if test "x$pyqt_ok" = xno ; then
-      AC_MSG_WARN(pyqt not found)
-   else
-      PYQT_ROOT=$PYQTDIR
-      PYQT_LIBS="-L$PYQTDIR -lqtcmodule"
-   fi
-   AC_CHECK_FILE("$PYQT_SIPS/copying.sip",pyqt_ok=yes,pyqt_ok=no)
-   if test "x$pyqt_ok" = xno ; then
-      AC_MSG_WARN(pyqt not found)
-   else
-      PYQT_INCLUDES="-I$PYQT_SIPS"
-   fi
-
-   AC_SUBST(PYQT_ROOT)
-   AC_SUBST(PYQT_INCLUDES)
-   AC_SUBST(PYQT_LIBS)
+  PYQTBIN=$PYQTDIR
+fi
+
+AC_CHECK_FILE("$PYQTBIN/pyuic",pyqt_ok=yes,pyqt_ok=no)
 
+if test "x$pyqt_ok" = xyes ; then
+  AC_CHECK_FILES("$PYQTLIB/qt.py",pyqt_ok=yes,pyqt_ok=no)
 fi
 
-PYQT_ROOT=$PYQTDIR
-PYQT_INCLUDES="-I$PYQT_SIPS"
-PYQT_LIBS="-L$PYQTDIR -lqtcmodule"
+if test "x$pyqt_ok" = xyes ; then
+  AC_CHECK_FILE("$PYQTLIB/libqtcmodule.so",pyqt_ok=yes,pyqt_ok=no)
+fi
 
-AC_SUBST(PYQT_ROOT)
-AC_SUBST(PYQT_INCLUDES)
-AC_SUBST(PYUIC)
-AC_SUBST(PYQT_SIPS)
-AC_SUBST(PYQT_LIBS)
+if test "x$pyqt_ok" = xyes ; then
+  AC_CHECK_FILES("$PYQT_SIPS/qtmod.sip",pyqt_ok=yes,pyqt_ok=no)
+fi
+if test "x$pyqt_ok" = xyes ; then
+  AC_CHECK_FILE("$PYQT_SIPS/copying.sip",pyqt_ok=yes,pyqt_ok=no)
+fi
 
+if test "x$pyqt_ok" = xyes ; then
+  PYQT_ROOT=$PYQTDIR
+  PYQT_INCLUDES="-I$PYQT_SIPS"
+  PYQT_LIBS="-L$PYQTLIB -lqtcmodule"
+  AC_SUBST(PYQT_ROOT)
+  AC_SUBST(PYQT_INCLUDES)
+  AC_SUBST(PYQT_LIBS)
+  AC_SUBST(PYQT_SIPS)
+  AC_SUBST(PYUIC)
 fi
+
 ])dnl
 dnl
 
index d66f84e6e2813bba7fdbd610e38d00f8020ecced..f5f1fc614542dda7a2faa7d894e0c678dd2e74e4 100644 (file)
@@ -28,10 +28,17 @@ else
            sip_vers=new ;;
          3.5*)
            sip_vers=new ;;
+         3.6*)
+           sip_vers=new ;;
+         3.7*)
+           sip_vers=new ;;
+         3.8*)
+           sip_vers=new ;;
+         3.9*)
+           sip_vers=new ;;
            *)
            sip_vers=no ;;
     esac
-
     sip_ok=no
 
     if test "x$sip_vers" = "xold"
@@ -44,11 +51,11 @@ else
 
     if test "x$sip_vers" = "xnew"
     then
-       if test -z ${SIPDIR}/include ; then
-          sip_ok=yes
+       sip_ok=yes
+       if test -d ${SIPDIR}/include/python${PYTHON_VERSION} ; then
           SIP_ROOT="$SIPDIR"
-          SIP_INCLUDES="${PYTHON_INCLUDES} -I${SIPDIR}/include"
-          SIP_LIBS="-L${SIPDIR}/lib -lsip"
+          SIP_INCLUDES="${PYTHON_INCLUDES} -I${SIPDIR}/include/python${PYTHON_VERSION}"
+          SIP_LIBS="-L${SIPDIR}/lib/python${PYTHON_VERSION}/site-packages -lsip"
        else
           SIP_ROOT="$SIPDIR"
           SIP_INCLUDES="-I${SIPDIR}"
index f0ab99393477360fc6cdaf40532782848cf86ce9..608947b34993247898eb1a2bb3b742ca42cba123 100644 (file)
@@ -78,6 +78,7 @@ SIP_LIBS = @SIP_LIBS@
 
 # PYQT
 PYQT_SIPS = @PYQT_SIPS@
+PYQT_INCLUDES = @PYQT_INCLUDES@
 PYQT_LIBS = @PYQT_LIBS@
 
 # openGL
index 110100d9e6661c79746c0f1840f95fee4bcf58e5..6bdf3f75d0334ba872baf8f001118fd6bd070620 100644 (file)
@@ -36,11 +36,8 @@ SUBDIRS = MSG2QM Logger Utils PatchQt NamingService Registry ModuleCatalog DataT
          RessourcesCatalog Notification NOTIFICATION_SWIG Container TestContainer LifeCycleCORBA \
           HDFPersist OBJECT TOOLSDS SALOMEDS SALOMEGUI Plot2d VTKViewer OCCViewer SUPERVGraph Session \
          SALOME_SWIG TOOLSGUI SALOME_PY RegistryDisplay ModuleGenerator \
-         Loader
+         SALOME_PYQT Loader
 
-ifeq (@pyqt_ok@,yes)
-  SUBDIRS+= SALOME_PYQT 
-endif
 ifeq (@WITHMPICH@,yes)
   SUBDIRS+= MPIContainer MPILifeCycleCORBA TestMPIContainer
 endif