Changeset 15574


Ignore:
Timestamp:
07/24/13 10:12:59 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added check on petscversion.h

File:
1 edited

Legend:

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

    r15529 r15574  
    593593        if test -d "$PETSC_ROOT"; then
    594594                AC_MSG_CHECKING(for petsc version)
     595           if ! test -f "$PETSC_ROOT/include/petscversion.h"; then
     596                        AC_MSG_ERROR([PETSc not instaled corretly: file ($PETSC_ROOT/include/petscversion.h) does not exist]);
     597                fi
    595598                PETSC_MAJOR=`cat $PETSC_ROOT/include/petscversion.h | grep "#define PETSC_VERSION_MAJOR" | sed 's/#define PETSC_VERSION_MAJOR//' | sed 's/ //g'`
    596599                PETSC_MINOR=`cat $PETSC_ROOT/include/petscversion.h | grep "#define PETSC_VERSION_MINOR" | sed 's/#define PETSC_VERSION_MINOR//' | sed 's/ //g'`
Note: See TracChangeset for help on using the changeset viewer.