Changeset 589


Ignore:
Timestamp:
05/26/09 10:56:26 (16 years ago)
Author:
Eric.Larour
Message:

Added no-matlab dakota compilation

File:
1 edited

Legend:

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

    r1 r589  
    135135        fi
    136136        AC_MSG_RESULT(ok)
    137        
     137
     138        dnl Dakota directory
     139        AC_ARG_WITH([dakota-dir],
     140                          AS_HELP_STRING([--with-dakota-dir = DIR], [dakota root directory. necessary for serial build]),
     141                         [DAKOTA_ROOT=$withval],[DAKOTA_ROOT=""])
     142        AC_MSG_CHECKING(for Dakota )
     143       
     144        if test -d "$DAKOTA_ROOT"; then
     145
     146                dnl defaults
     147                HAVE_DAKOTA=yes
     148                DAKOTAINCL=-I$DAKOTA_ROOT/include
     149                DAKOTALIB="-L$DAKOTA_ROOT/lib -ldakota -lteuchos -lpecos -lfftw3 -llhs  -levidence -lsurfpack -lconmin -lddace -lfsudace    -ljega -lcport -lopt -lpsuade -lnewmat    -lncsuopt -lgsl -lquadrature -lcoliny -lcolin -lpebbl     -lutilib -l3po -lnappspack -lappspack -lconveyor -lshared -lcdd -lamplsolver "
     150
     151
     152                AC_DEFINE([_HAVE_DAKOTA_],[1],[with Dakota in ISSM src])
     153                AC_SUBST([DAKOTAINCL])
     154                AC_SUBST([DAKOTALIB])
     155
     156        else
     157                HAVE_DAKOTA=no
     158        fi
     159        AC_MSG_RESULT($HAVE_DAKOTA)
     160
    138161               
    139162        dnl Metis directory
     
    192215                       
    193216                        AC_DEFINE([_HAVE_MPI_],[1],[with Mpi in ISSM src])
     217                        AC_DEFINE([HAVE_MPI],[1],[with Mpi in ISSM src])
    194218                        AC_SUBST([MPIINCL])
    195219                        AC_SUBST([MPILIB])
     
    310334                HAVE_BLASLAPACK=yes
    311335                BLASLAPACKINCL=""
    312                 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lmkl_lapack -lmkl -lguide"
    313 
    314                 AC_DEFINE([_HAVE_BLASLAPACK_],[1],[with Scalapack in ISSM src])
     336                dnl BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lmkl_lapack -lmkl -lguide"
     337                BLASLAPACKLIB=-L"$BLASLAPACK_ROOT -lfblas -lflapack"
     338
     339                AC_DEFINE([_HAVE_BLASLAPACK_],[1],[with blas lapack in ISSM src])
    315340                AC_SUBST([BLASLAPACKLIB])
    316341                AC_SUBST([BLASLAPACKINCL])
Note: See TracChangeset for help on using the changeset viewer.