Changeset 23706
- Timestamp:
- 02/11/19 04:09:28 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/m4/issm_options.m4
r23611 r23706 580 580 [PYTHON_ROOT=$withval],[PYTHON_ROOT="no"]) 581 581 582 AC_ARG_WITH([python-version], 583 AS_HELP_STRING([--with-python-version=DIR], [python forced version.]), 584 [PYTHON_VERSION=$withval],[PYTHON_VERSION="no"]) 585 582 586 dnl Check whether python is enabled 583 587 AC_MSG_CHECKING([for python]) … … 596 600 dnl python specifics 597 601 if test "x$HAVE_PYTHON" = "xyes"; then 598 AC_MSG_CHECKING([for python version]) 599 dnl Query Python for its version number. Getting [:3] seems to be the 600 dnl best way to do this; it's what "site.py" does in the standard library. 601 PYTHON_VERSION=$($PYTHON_ROOT/bin/python -c "import sys; print sys.version[[:3]]") 602 AC_MSG_RESULT($PYTHON_VERSION) 603 602 if test "x$PYTHON_VERSION" = "xno" ; then 603 AC_MSG_CHECKING([for python version]) 604 dnl Query Python for its version number. Getting [:3] seems to be the 605 dnl best way to do this; it's what "site.py" does in the standard library. 606 PYTHON_VERSION=$($PYTHON_ROOT/bin/python -c "import sys; print sys.version[[:3]]") 607 AC_MSG_RESULT($PYTHON_VERSION) 608 else 609 AC_MSG_RESULT([enforced python version is ]$PYTHON_VERSION) 610 fi 604 611 dnl recover major 605 612 PYTHON_MAJOR=${PYTHON_VERSION%.*} … … 622 629 fi 623 630 AC_MSG_RESULT(found) 624 625 PYTHONLIB="-L$PYTHON_ROOT/lib -lpython$PYTHON_VERSION" 631 if test "x$PYTHON_MAJOR" = "x3"; then 632 PYTHONLIB="-L$PYTHON_ROOT/lib -lpython$PYTHON_VERSION""m" 633 else 634 PYTHONLIB="-L$PYTHON_ROOT/lib -lpython$PYTHON_VERSION" 635 fi 626 636 PYTHONEXT=.so 627 637 case "${host_os}" in … … 1434 1444 fi 1435 1445 HAVE_SCALAPACK=yes 1446 #SCALAPACKLIB=-L"$SCALAPACK_ROOT/ -lscalapack-openmpi" 1436 1447 SCALAPACKLIB=-L"$SCALAPACK_ROOT/ -lscalapack" 1437 1448 else if test "x$SCALAPACKLIB" != "xno"; then … … 1476 1487 ;; 1477 1488 *linux*) 1478 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT/lib -lflapack -lfblas " 1489 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT/lib -lflapack -lfblas 1490 #BLASLAPACKLIB=-L"$BLASLAPACK_ROOT/lib -llapack -lblas " 1479 1491 ;; 1480 1492 *darwin*) … … 2132 2144 AC_MSG_RESULT($HAVE_KRIGING) 2133 2145 dnl }}} 2134 2135 dnl Analyses 2146 2147 dnl Analyses 2136 2148 AX_ANALYSES_SELECTION 2137 2149
Note:
See TracChangeset
for help on using the changeset viewer.