Changeset 15989


Ignore:
Timestamp:
08/28/13 08:35:35 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: do not use AC_CHECK_FILE, fails in cross-compile. Replaced by test -f

File:
1 edited

Legend:

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

    r15955 r15989  
    111111                  AC_MSG_ERROR([matlab directory provided ($MATLAB_ROOT) does not exist]);
    112112                fi
     113                if ! test -f "$MATLAB_ROOT/extern/include/mex.h"; then
     114                        AC_MSG_ERROR([Couldn't find mex.h... check your installation of matlab])
     115           fi
    113116        fi
    114117        AC_MSG_RESULT($HAVE_MATLAB)
     
    120123                AC_DEFINE([_HAVE_MATLAB_],[1],[with matlab in ISSM src])
    121124                MATLABINCL="-I$MATLAB_ROOT/extern/include/"
    122                 AC_CHECK_FILE($MATLAB_ROOT/extern/include/mex.h,[],[AC_MSG_ERROR([Couldn't find mex.h... check your installation of matlab])])
    123125               
    124126                dnl 4. get MEXLIB MEXLINK and MEXEXT (experimental) except for windows
     
    163165                        AC_MSG_ERROR([triangle directory provided ($TRIANGLE_ROOT) does not exist]);
    164166                fi
     167                if ! test -f "$TRIANGLE_ROOT/triangle.h" ; then
     168                        AC_MSG_ERROR([Couldn't find triangle.h... check your installation of triangle])
     169                fi
    165170        fi
    166171        AC_MSG_RESULT($HAVE_TRIANGLE)
     
    170175        if test "x$HAVE_TRIANGLE" = "xyes"; then
    171176                TRIANGLEINCL=-I$TRIANGLE_ROOT/
    172                 dnl AC_CHECK_FILE($TRIANGLE_ROOT/triangle.h,[],[AC_MSG_ERROR([Couldn't find triangle.h... check your installation of triangle])]) This check
    173                 dnl blows up in cross-compile form.  Need to check for it in shell mode.
    174177                case "${host_os}" in
    175178                                *cygwin*)
Note: See TracChangeset for help on using the changeset viewer.