Changeset 19148


Ignore:
Timestamp:
02/24/15 09:22:26 (10 years ago)
Author:
Mathieu Morlighem
Message:

NEW: allow python to be in other locations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/issm_options.m4

    r19146 r19148  
    531531        dnl python specifics
    532532        if test "x$HAVE_PYTHON" = "xyes"; then
    533                 AC_MSG_CHECKING(for python version)
     533                AC_MSG_CHECKING([for python version])
    534534                dnl Query Python for its version number.  Getting [:3] seems to be the
    535535                dnl best way to do this; it's what "site.py" does in the standard library.
     
    546546                fi
    547547
    548                 PYTHONINCL=-I$PYTHON_ROOT/include
     548                AC_MSG_CHECKING([for python header file Python.h])
     549                dnl Python.h mighty be in different locations:
     550                if test -f "$PYTHON_ROOT/include/Python.h"; then
     551                        PYTHONINCL=-I$PYTHON_ROOT/include
     552                else if test -f "$PYTHON_ROOT/include/python2.7/Python.h"; then
     553                        PYTHONINCL=-I$PYTHON_ROOT/include/python2.7
     554                else
     555                        AC_MSG_ERROR([Python.h not found, locate this file and contact ISSM developers]);
     556                fi
     557                fi
     558                AC_MSG_RESULT(found)
     559
    549560                PYTHONLIB="-L$PYTHON_ROOT/lib -lpython$PYTHON_VERSION"
    550561                PYTHONEXT=.so
Note: See TracChangeset for help on using the changeset viewer.