Changeset 15529


Ignore:
Timestamp:
07/22/13 08:27:56 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added check in case PETSC_ARCH is not provided

File:
1 edited

Legend:

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

    r15384 r15529  
    624624
    625625         PETSCINCL=" -I$PETSC_ROOT/include"
    626          dnl Add other location (maybe not needed anymore)
    627          if test -d "$PETSC_ROOT/$PETSC_ARCH/include"; then
     626         dnl Add other location (not needed anymore since at least PETSc 3.0)
     627         if test "x$PETSC_ARCH" != "x" && test -d "$PETSC_ROOT/$PETSC_ARCH/include"; then
    628628          PETSCINCL+=" $PETSC_ROOT/$PETSC_ARCH/include"
    629629         fi
    630          if test -d "$PETSC_ROOT/include/$PETSC_ARCH"; then
     630         if test "x$PETSC_ARCH" != "x" && test -d "$PETSC_ROOT/include/$PETSC_ARCH"; then
    631631          PETSCINCL+=" $PETSC_ROOT/include/$PETSC_ARCH"
    632632         fi
Note: See TracChangeset for help on using the changeset viewer.