Changeset 26927


Ignore:
Timestamp:
03/11/22 01:17:32 (3 years ago)
Author:
bdef
Message:

BUG: removing default choice for libpython and throwing error if not found

File:
1 edited

Legend:

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

    r26885 r26927  
    205205        AC_MSG_RESULT([${IS_MAC}])
    206206
    207         dnl If macOS, check if system copy of libc has fmemopen (if it is not 
     207        dnl If macOS, check if system copy of libc has fmemopen (if it is not
    208208        dnl macOS, we do not check, but still must set SYSTEM_HAS_FMEMOPEN)
    209209        AC_MSG_CHECKING([if system copy of libc has fmemopen])
     
    604604                AC_MSG_CHECKING(for Dakota version)
    605605                dnl TODO:
    606                 dnl - Check if this method applies to all other versions of Dakota (it 
    607                 dnl   should as long as the Dakota binaries have been compiled). If so, 
     606                dnl - Check if this method applies to all other versions of Dakota (it
     607                dnl   should as long as the Dakota binaries have been compiled). If so,
    608608                dnl   we can remove the other methods of getting the version.
    609                 dnl - Modify src/wrappers/IssmConfig/IssmConfig.cpp so that strlen is 
    610                 dnl   not called with _DAKOTA_VERSION_ as an argument so that we can 
     609                dnl - Modify src/wrappers/IssmConfig/IssmConfig.cpp so that strlen is
     610                dnl   not called with _DAKOTA_VERSION_ as an argument so that we can
    611611                dnl   do,
    612612                dnl
     
    818818                fi
    819819                AC_MSG_RESULT([found])
     820
     821                AC_MSG_CHECKING([for Python libraries libpython])
    820822                if ls ${PYTHON_ROOT}/lib/x86_64-linux-gnu/libpython${PYTHON_VERSION}m.* 1> /dev/null 2>&1; then
    821823                        PYTHONLIB="-L${PYTHON_ROOT}/lib/x86_64-linux-gnu -lpython${PYTHON_VERSION}m"
     
    824826                elif ls ${PYTHON_ROOT}/lib/libpython${PYTHON_VERSION}m.* 1> /dev/null 2>&1; then
    825827                        PYTHONLIB="-L${PYTHON_ROOT}/lib -lpython${PYTHON_VERSION}m"
     828                elif ls ${PYTHON_ROOT}/lib64/libpython${PYTHON_VERSION}m.* 1> /dev/null 2>&1; then
     829                        PYTHONLIB="-L${PYTHON_ROOT}/lib64 -lpython${PYTHON_VERSION}m"
    826830                else
    827                         PYTHONLIB="-L${PYTHON_ROOT}/lib -lpython${PYTHON_VERSION}"
    828                 fi
     831                        AC_MSG_ERROR([libpython not found! Please locate this file and contact ISSM developers via forum or email.]);
     832                fi
     833                AC_MSG_RESULT([found])
     834
    829835                PYTHONEXT=.so
    830836                case "${host_os}" in
     
    25962602                AC_MSG_RESULT([${GMSH_VERSION_MAJOR}])
    25972603                AC_DEFINE_UNQUOTED([_GMSH_VERSION_MAJOR_], ${GMSH_VERSION_MAJOR}, [Gmsh major version])
    2598         fi     
     2604        fi
    25992605        dnl }}}
    26002606        dnl Capabilities
Note: See TracChangeset for help on using the changeset viewer.