]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix system Python detection with autotools on Ubuntu 13.04
authorbarate <barate>
Mon, 9 Sep 2013 08:15:44 +0000 (08:15 +0000)
committerbarate <barate>
Mon, 9 Sep 2013 08:15:44 +0000 (08:15 +0000)
salome_adm/unix/config_files/python.m4

index c79262f4f1fc807477d0ec5f017edc3176ebe9b1..6274d6ac9f8eb0e951183c46027c6b6798e7514b 100644 (file)
@@ -64,6 +64,10 @@ AC_DEFUN([CHECK_PYTHON],
   AC_SUBST(PYTHON_VERSION)
 
   PY_MAKEFILE=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/Makefile
+  if test ! -f "$PY_MAKEFILE"; then
+    # For Ubuntu >= 13.04
+    PY_MAKEFILE=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config-${build_cpu}-${build_os}/Makefile
+  fi
   if test ! -f "$PY_MAKEFILE"; then
     if test "${build_cpu::6}" = "x86_64" ; then
       PY_MAKEFILE=${PYTHON_PREFIX}/lib64/python$PYTHON_VERSION/config/Makefile