Changeset 17776


Ignore:
Timestamp:
04/18/14 14:36:29 (11 years ago)
Author:
Mathieu Morlighem
Message:

NEW: automated analyses.m4 from EnumDefinitions

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

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

    r17775 r17776  
     1
     2dnl   WARNING: DO NOT MODIFY THIS FILE
     3dnl            this file has been automatically generated by Synchronize.sh
     4dnl            Please read README for more information
     5
    16# AX_ANALYSES_SELECTION
    27# -----------------
    38# Check for analyses compilation
    49AC_DEFUN([AX_ANALYSES_SELECTION],
    5                         [
    6         dnl with-AdjointBalancethickness{{{
    7         AC_ARG_WITH([AdjointBalancethickness],
    8                 AS_HELP_STRING([--with-AdjointBalancethickness = YES], [compile with AdjointBalancethickness capabilities (default is yes)]),
    9                 [ADJOINTBALANCETHICKNESS=$withval],[ADJOINTBALANCETHICKNESS=yes])
    10         AC_MSG_CHECKING(for AdjointBalancethickness capability compilation)
    11 
    12         HAVE_ADJOINTBALANCETHICKNESS=no
    13         if test "x$ADJOINTBALANCETHICKNESS" = "xyes"; then
    14                 HAVE_ADJOINTBALANCETHICKNESS=yes
    15                 AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS_],[1],[with AdjointBalancethickness capability])
    16         fi
    17         AM_CONDITIONAL([ADJOINTBALANCETHICKNESS], [test x$HAVE_ADJOINTBALANCETHICKNESS = xyes])
    18         AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS)
    19         dnl }}}
    20         dnl with-AdjointHoriz{{{
    21         AC_ARG_WITH([AdjointHoriz],
    22                 AS_HELP_STRING([--with-AdjointHoriz = YES], [compile with AdjointHoriz capabilities (default is yes)]),
    23                 [ADJOINTHORIZ=$withval],[ADJOINTHORIZ=yes])
    24         AC_MSG_CHECKING(for AdjointHoriz capability compilation)
    25 
    26         HAVE_ADJOINTHORIZ=no
    27         if test "x$ADJOINTHORIZ" = "xyes"; then
    28                 HAVE_ADJOINTHORIZ=yes
    29                 AC_DEFINE([_HAVE_ADJOINTHORIZ_],[1],[with AdjointHoriz capability])
    30         fi
    31         AM_CONDITIONAL([ADJOINTHORIZ], [test x$HAVE_ADJOINTHORIZ = xyes])
    32         AC_MSG_RESULT($HAVE_ADJOINTHORIZ)
    33         dnl }}}
    34         dnl with-Balancethickness{{{
    35         AC_ARG_WITH([Balancethickness],
    36                 AS_HELP_STRING([--with-Balancethickness = YES], [compile with Balancethickness capabilities (default is yes)]),
    37                 [BALANCETHICKNESS=$withval],[BALANCETHICKNESS=yes])
    38         AC_MSG_CHECKING(for Balancethickness capability compilation)
    39 
    40         HAVE_BALANCETHICKNESS=no
    41         if test "x$BALANCETHICKNESS" = "xyes"; then
    42                 HAVE_BALANCETHICKNESS=yes
    43                 AC_DEFINE([_HAVE_BALANCETHICKNESS_],[1],[with Balancethickness capability])
    44         fi
    45         AM_CONDITIONAL([BALANCETHICKNESS], [test x$HAVE_BALANCETHICKNESS = xyes])
    46         AC_MSG_RESULT($HAVE_BALANCETHICKNESS)
    47         dnl }}}
    48         dnl with-BalancethicknessSoft{{{
    49         AC_ARG_WITH([BalancethicknessSoft],
    50                 AS_HELP_STRING([--with-BalancethicknessSoft = YES], [compile with BalancethicknessSoft capabilities (default is yes)]),
    51                 [BALANCETHICKNESSSOFT=$withval],[BALANCETHICKNESSSOFT=yes])
    52         AC_MSG_CHECKING(for BalancethicknessSoft capability compilation)
    53 
    54         HAVE_BALANCETHICKNESSSOFT=no
    55         if test "x$BALANCETHICKNESSSOFT" = "xyes"; then
    56                 HAVE_BALANCETHICKNESSSOFT=yes
    57                 AC_DEFINE([_HAVE_BALANCETHICKNESSSOFT_],[1],[with BalancethicknessSoft capability])
    58         fi
    59         AM_CONDITIONAL([BALANCETHICKNESSSOFT], [test x$HAVE_BALANCETHICKNESSSOFT = xyes])
    60         AC_MSG_RESULT($HAVE_BALANCETHICKNESSSOFT)
    61         dnl }}}
    62         dnl with-Balancevelocity{{{
    63         AC_ARG_WITH([Balancevelocity],
    64                 AS_HELP_STRING([--with-Balancevelocity = YES], [compile with Balancevelocity capabilities (default is yes)]),
    65                 [BALANCEVELOCITY=$withval],[BALANCEVELOCITY=yes])
    66         AC_MSG_CHECKING(for Balancevelocity capability compilation)
    67 
    68         HAVE_BALANCEVELOCITY=no
    69         if test "x$BALANCEVELOCITY" = "xyes"; then
    70                 HAVE_BALANCEVELOCITY=yes
    71                 AC_DEFINE([_HAVE_BALANCEVELOCITY_],[1],[with Balancevelocity capability])
    72         fi
    73         AM_CONDITIONAL([BALANCEVELOCITY], [test x$HAVE_BALANCEVELOCITY = xyes])
    74         AC_MSG_RESULT($HAVE_BALANCEVELOCITY)
    75         dnl }}}
    76         dnl with-L2ProjectionEPL{{{
    77         AC_ARG_WITH([L2ProjectionEPL],
    78                 AS_HELP_STRING([--with-L2ProjectionEPL = YES], [compile with L2ProjectionEPL capabilities (default is yes)]),
    79                 [L2PROJECTIONEPL=$withval],[L2PROJECTIONEPL=yes])
    80         AC_MSG_CHECKING(for L2ProjectionEPL capability compilation)
    81 
    82         HAVE_L2PROJECTIONEPL=no
    83         if test "x$L2PROJECTIONEPL" = "xyes"; then
    84                 HAVE_L2PROJECTIONEPL=yes
    85                 AC_DEFINE([_HAVE_L2PROJECTIONEPL_],[1],[with L2ProjectionEPL capability])
    86         fi
    87         AM_CONDITIONAL([L2PROJECTIONEPL], [test x$HAVE_L2PROJECTIONEPL = xyes])
    88         AC_MSG_RESULT($HAVE_L2PROJECTIONEPL)
    89         dnl }}}
    90         dnl with-L2ProjectionBase{{{
    91         AC_ARG_WITH([L2ProjectionBase],
    92                 AS_HELP_STRING([--with-L2ProjectionBase = YES], [compile with L2ProjectionBase capabilities (default is yes)]),
    93                 [L2PROJECTIONBASE=$withval],[L2PROJECTIONBASE=yes])
    94         AC_MSG_CHECKING(for L2ProjectionBase capability compilation)
    95 
    96         HAVE_L2PROJECTIONBASE=no
    97         if test "x$L2PROJECTIONBASE" = "xyes"; then
    98                 HAVE_L2PROJECTIONBASE=yes
    99                 AC_DEFINE([_HAVE_L2PROJECTIONBASE_],[1],[with L2ProjectionBase capability])
    100         fi
    101         AM_CONDITIONAL([L2PROJECTIONBASE], [test x$HAVE_L2PROJECTIONBASE = xyes])
    102         AC_MSG_RESULT($HAVE_L2PROJECTIONBASE)
    103         dnl }}}
    104         dnl with-DamageEvolution{{{
    105         AC_ARG_WITH([DamageEvolution],
    106                 AS_HELP_STRING([--with-DamageEvolution = YES], [compile with DamageEvolution capabilities (default is yes)]),
    107                 [DAMAGEEVOLUTION=$withval],[DAMAGEEVOLUTION=yes])
    108         AC_MSG_CHECKING(for DamageEvolution capability compilation)
    109 
    110         HAVE_DAMAGEEVOLUTION=no
    111         if test "x$DAMAGEEVOLUTION" = "xyes"; then
    112                 HAVE_DAMAGEEVOLUTION=yes
    113                 AC_DEFINE([_HAVE_DAMAGEEVOLUTION_],[1],[with DamageEvolution capability])
    114         fi
    115         AM_CONDITIONAL([DAMAGEEVOLUTION], [test x$HAVE_DAMAGEEVOLUTION = xyes])
    116         AC_MSG_RESULT($HAVE_DAMAGEEVOLUTION)
    117         dnl }}}
    118         dnl with-DepthAverage{{{
    119         AC_ARG_WITH([DepthAverage],
    120                 AS_HELP_STRING([--with-DepthAverage = YES], [compile with DepthAverage capabilities (default is yes)]),
    121                 [DEPTHAVERAGE=$withval],[DEPTHAVERAGE=yes])
    122         AC_MSG_CHECKING(for DepthAverage capability compilation)
    123 
    124         HAVE_DEPTHAVERAGE=no
    125         if test "x$DEPTHAVERAGE" = "xyes"; then
    126                 HAVE_DEPTHAVERAGE=yes
    127                 AC_DEFINE([_HAVE_DEPTHAVERAGE_],[1],[with DepthAverage capability])
    128         fi
    129         AM_CONDITIONAL([DEPTHAVERAGE], [test x$HAVE_DEPTHAVERAGE = xyes])
    130         AC_MSG_RESULT($HAVE_DEPTHAVERAGE)
    131         dnl }}}
    132         dnl with-stressbalance{{{
    133         AC_ARG_WITH([stressbalance],
    134                 AS_HELP_STRING([--with-stressbalance = YES], [compile with stressbalance capabilities (default is yes)]),
    135                 [STRESSBALANCE=$withval],[STRESSBALANCE=yes])
    136         AC_MSG_CHECKING(for stressbalance capability compilation)
    137 
    138         HAVE_STRESSBALANCE=no
    139         if test "x$STRESSBALANCE" = "xyes"; then
    140                 HAVE_STRESSBALANCE=yes
    141                 AC_DEFINE([_HAVE_STRESSBALANCE_],[1],[with stressbalance capability])
    142         fi
    143         AM_CONDITIONAL([STRESSBALANCE], [test x$HAVE_STRESSBALANCE = xyes])
    144         AC_MSG_RESULT($HAVE_STRESSBALANCE)
    145         dnl }}}
    146         dnl with-stressbalanceSIA{{{
    147                 AC_ARG_WITH([stressbalanceSIA],
    148                                         AS_HELP_STRING([--with-stressbalanceSIA = YES], [compile with stressbalanceSIA capabilities (default is yes)]),
    149                                         [STRESSBALANCESIA=$withval],[STRESSBALANCESIA=yes])
    150                   AC_MSG_CHECKING(for stressbalanceSIA capability compilation)
    151 
    152                   HAVE_STRESSBALANCESIA=no
    153                   if test "x$STRESSBALANCESIA" = "xyes"; then
    154                         HAVE_STRESSBALANCESIA=yes
    155                           AC_DEFINE([_HAVE_STRESSBALANCESIA_],[1],[with stressbalanceSIA capability])
    156                           fi
    157                           AM_CONDITIONAL([STRESSBALANCESIA], [test x$HAVE_STRESSBALANCESIA = xyes])
    158                           AC_MSG_RESULT($HAVE_STRESSBALANCESIA)
    159                           dnl }}}
    160         dnl with-StressbalanceVertical{{{
    161         AC_ARG_WITH([StressbalanceVertical],
    162                 AS_HELP_STRING([--with-StressbalanceVertical = YES], [compile with StressbalanceVertical capabilities (default is yes)]),
    163                 [STRESSBALANCEVERTICAL=$withval],[STRESSBALANCEVERTICAL=yes])
    164         AC_MSG_CHECKING(for StressbalanceVertical capability compilation)
    165 
    166         HAVE_STRESSBALANCEVERTICAL=no
    167         if test "x$STRESSBALANCEVERTICAL" = "xyes"; then
    168                 HAVE_STRESSBALANCEVERTICAL=yes
    169                 AC_DEFINE([_HAVE_STRESSBALANCEVERTICAL_],[1],[with StressbalanceVertical capability])
    170         fi
    171         AM_CONDITIONAL([STRESSBALANCEVERTICAL], [test x$HAVE_STRESSBALANCEVERTICAL = xyes])
    172         AC_MSG_RESULT($HAVE_STRESSBALANCEVERTICAL)
    173         dnl }}}
    174         dnl with-Enthalpy{{{
    175         AC_ARG_WITH([Enthalpy],
    176                 AS_HELP_STRING([--with-Enthalpy = YES], [compile with Enthalpy capabilities (default is yes)]),
    177                 [ENTHALPY=$withval],[ENTHALPY=yes])
    178         AC_MSG_CHECKING(for Enthalpy capability compilation)
    179 
    180         HAVE_ENTHALPY=no
    181         if test "x$ENTHALPY" = "xyes"; then
    182                 HAVE_ENTHALPY=yes
    183                 AC_DEFINE([_HAVE_ENTHALPY_],[1],[with Enthalpy capability])
    184         fi
    185         AM_CONDITIONAL([ENTHALPY], [test x$HAVE_ENTHALPY = xyes])
    186         AC_MSG_RESULT($HAVE_ENTHALPY)
    187         dnl }}}
    188         dnl with-HydrologyShreve{{{
    189         AC_ARG_WITH([HydrologyShreve],
    190                 AS_HELP_STRING([--with-HydrologyShreve = YES], [compile with HydrologyShreve capabilities (default is yes)]),
    191                 [HYDROLOGYSHREVE=$withval],[HYDROLOGYSHREVE=yes])
    192         AC_MSG_CHECKING(for HydrologyShreve capability compilation)
    193 
    194         HAVE_HYDROLOGYSHREVE=no
    195         if test "x$HYDROLOGYSHREVE" = "xyes"; then
    196                 HAVE_HYDROLOGYSHREVE=yes
    197                 AC_DEFINE([_HAVE_HYDROLOGYSHREVE_],[1],[with HydrologyShreve capability])
    198         fi
    199         AM_CONDITIONAL([HYDROLOGYSHREVE], [test x$HAVE_HYDROLOGYSHREVE = xyes])
    200         AC_MSG_RESULT($HAVE_HYDROLOGYSHREVE)
    201         dnl }}}
    202         dnl with-HydrologyDCInefficient{{{
    203         AC_ARG_WITH([HydrologyDCInefficient],
    204                 AS_HELP_STRING([--with-HydrologyDCInefficient = YES], [compile with HydrologyDCInefficient capabilities (default is yes)]),
    205                 [HYDROLOGYDCINEFFICIENT=$withval],[HYDROLOGYDCINEFFICIENT=yes])
    206         AC_MSG_CHECKING(for HydrologyDCInefficient capability compilation)
    207 
    208         HAVE_HYDROLOGYDCINEFFICIENT=no
    209         if test "x$HYDROLOGYDCINEFFICIENT" = "xyes"; then
    210                 HAVE_HYDROLOGYDCINEFFICIENT=yes
    211                 AC_DEFINE([_HAVE_HYDROLOGYDCINEFFICIENT_],[1],[with HydrologyDCInefficient capability])
    212         fi
    213         AM_CONDITIONAL([HYDROLOGYDCINEFFICIENT], [test x$HAVE_HYDROLOGYDCINEFFICIENT = xyes])
    214         AC_MSG_RESULT($HAVE_HYDROLOGYDCINEFFICIENT)
    215         dnl }}}
    216         dnl with-HydrologyDCEfficient{{{
    217         AC_ARG_WITH([HydrologyDCEfficient],
    218                 AS_HELP_STRING([--with-HydrologyDCEfficient = YES], [compile with HydrologyDCEfficient capabilities (default is yes)]),
    219                 [HYDROLOGYDCEFFICIENT=$withval],[HYDROLOGYDCEFFICIENT=yes])
    220         AC_MSG_CHECKING(for HydrologyDCEfficient capability compilation)
    221 
    222         HAVE_HYDROLOGYDCEFFICIENT=no
    223         if test "x$HYDROLOGYDCEFFICIENT" = "xyes"; then
    224                 HAVE_HYDROLOGYDCEFFICIENT=yes
    225                 AC_DEFINE([_HAVE_HYDROLOGYDCEFFICIENT_],[1],[with HydrologyDCEfficient capability])
    226         fi
    227         AM_CONDITIONAL([HYDROLOGYDCEFFICIENT], [test x$HAVE_HYDROLOGYDCEFFICIENT = xyes])
    228         AC_MSG_RESULT($HAVE_HYDROLOGYDCEFFICIENT)
    229         dnl }}}
    230         dnl with-Melting{{{
    231         AC_ARG_WITH([Melting],
    232                 AS_HELP_STRING([--with-Melting = YES], [compile with Melting capabilities (default is yes)]),
    233                 [MELTING=$withval],[MELTING=yes])
    234         AC_MSG_CHECKING(for Melting capability compilation)
    235 
    236         HAVE_MELTING=no
    237         if test "x$MELTING" = "xyes"; then
    238                 HAVE_MELTING=yes
    239                 AC_DEFINE([_HAVE_MELTING_],[1],[with Melting capability])
    240         fi
    241         AM_CONDITIONAL([MELTING], [test x$HAVE_MELTING = xyes])
    242         AC_MSG_RESULT($HAVE_MELTING)
    243         dnl }}}
    244         dnl with-Masstransport{{{
    245         AC_ARG_WITH([Masstransport],
    246                 AS_HELP_STRING([--with-Masstransport = YES], [compile with Masstransport capabilities (default is yes)]),
    247                 [MASSTRANSPORT=$withval],[MASSTRANSPORT=yes])
    248         AC_MSG_CHECKING(for Masstransport capability compilation)
    249 
    250         HAVE_MASSTRANSPORT=no
    251         if test "x$MASSTRANSPORT" = "xyes"; then
    252                 HAVE_MASSTRANSPORT=yes
    253                 AC_DEFINE([_HAVE_MASSTRANSPORT_],[1],[with Masstransport capability])
    254         fi
    255         AM_CONDITIONAL([MASSTRANSPORT], [test x$HAVE_MASSTRANSPORT = xyes])
    256         AC_MSG_RESULT($HAVE_MASSTRANSPORT)
    257         dnl }}}
    258         dnl with-FreeSurfaceBase{{{
    259         AC_ARG_WITH([FreeSurfaceBase],
    260                 AS_HELP_STRING([--with-FreeSurfaceBase = YES], [compile with FreeSurfaceBase capabilities (default is yes)]),
    261                 [FREESURFACEBASE=$withval],[FREESURFACEBASE=yes])
    262         AC_MSG_CHECKING(for FreeSurfaceBase capability compilation)
    263 
    264         HAVE_FREESURFACEBASE=no
    265         if test "x$FREESURFACEBASE" = "xyes"; then
    266                 HAVE_FREESURFACEBASE=yes
    267                 AC_DEFINE([_HAVE_FREESURFACEBASE_],[1],[with FreeSurfaceBase capability])
    268         fi
    269         AM_CONDITIONAL([FREESURFACEBASE], [test x$HAVE_FREESURFACEBASE = xyes])
    270         AC_MSG_RESULT($HAVE_FREESURFACEBASE)
    271         dnl }}}
    272         dnl with-FreeSurfaceTop{{{
    273                 AC_ARG_WITH([FreeSurfaceTop],
    274                                         AS_HELP_STRING([--with-FreeSurfaceTop = YES], [compile with FreeSurfaceTop capabilities (default is yes)]),
    275                                         [FREESURFACETOP=$withval],[FREESURFACETOP=yes])
    276                   AC_MSG_CHECKING(for FreeSurfaceTop capability compilation)
    277 
    278                   HAVE_FREESURFACETOP=no
    279                   if test "x$FREESURFACETOP" = "xyes"; then
    280                         HAVE_FREESURFACETOP=yes
    281                           AC_DEFINE([_HAVE_FREESURFACETOP_],[1],[with FreeSurfaceTop capability])
    282                           fi
    283                           AM_CONDITIONAL([FREESURFACETOP], [test x$HAVE_FREESURFACETOP = xyes])
    284                           AC_MSG_RESULT($HAVE_FREESURFACETOP)
    285                           dnl }}}
    286         dnl with-ExtrudeFromBase{{{
    287         AC_ARG_WITH([ExtrudeFromBase],
    288                 AS_HELP_STRING([--with-ExtrudeFromBase = YES], [compile with ExtrudeFromBase capabilities (default is yes)]),
    289                 [EXTRUDEFROMBASE=$withval],[EXTRUDEFROMBASE=yes])
    290         AC_MSG_CHECKING(for ExtrudeFromBase capability compilation)
    291 
    292         HAVE_EXTRUDEFROMBASE=no
    293         if test "x$EXTRUDEFROMBASE" = "xyes"; then
    294                 HAVE_EXTRUDEFROMBASE=yes
    295                 AC_DEFINE([_HAVE_EXTRUDEFROMBASE_],[1],[with ExtrudeFromBase capability])
    296         fi
    297         AM_CONDITIONAL([EXTRUDEFROMBASE], [test x$HAVE_EXTRUDEFROMBASE = xyes])
    298         AC_MSG_RESULT($HAVE_EXTRUDEFROMBASE)
    299         dnl }}}
    300         dnl with-ExtrudeFromTop{{{
    301                 AC_ARG_WITH([ExtrudeFromTop],
    302                                         AS_HELP_STRING([--with-ExtrudeFromTop = YES], [compile with ExtrudeFromTop capabilities (default is yes)]),
    303                                         [EXTRUDEFROMTOP=$withval],[EXTRUDEFROMTOP=yes])
    304                   AC_MSG_CHECKING(for ExtrudeFromTop capability compilation)
    305 
    306                   HAVE_EXTRUDEFROMTOP=no
    307                   if test "x$EXTRUDEFROMTOP" = "xyes"; then
    308                         HAVE_EXTRUDEFROMTOP=yes
    309                           AC_DEFINE([_HAVE_EXTRUDEFROMTOP_],[1],[with ExtrudeFromTop capability])
    310                           fi
    311                           AM_CONDITIONAL([EXTRUDEFROMTOP], [test x$HAVE_EXTRUDEFROMTOP = xyes])
    312                           AC_MSG_RESULT($HAVE_EXTRUDEFROMTOP)
    313                           dnl }}}
    314         dnl with-Thermal{{{
    315         AC_ARG_WITH([Thermal],
    316                 AS_HELP_STRING([--with-Thermal = YES], [compile with Thermal capabilities (default is yes)]),
    317                 [THERMAL=$withval],[THERMAL=yes])
    318         AC_MSG_CHECKING(for Thermal capability compilation)
    319 
    320         HAVE_THERMAL=no
    321         if test "x$THERMAL" = "xyes"; then
    322                 HAVE_THERMAL=yes
    323                 AC_DEFINE([_HAVE_THERMAL_],[1],[with Thermal capability])
    324         fi
    325         AM_CONDITIONAL([THERMAL], [test x$HAVE_THERMAL = xyes])
    326         AC_MSG_RESULT($HAVE_THERMAL)
    327         dnl }}}
    328         dnl with-SmoothedSurfaceSlopeX{{{
    329         AC_ARG_WITH([SmoothedSurfaceSlopeX],
    330                 AS_HELP_STRING([--with-SmoothedSurfaceSlopeX = YES], [compile with SmoothedSurfaceSlopeX capabilities (default is yes)]),
    331                 [SMOOTHEDSURFACESLOPEX=$withval],[SMOOTHEDSURFACESLOPEX=yes])
    332         AC_MSG_CHECKING(for SmoothedSurfaceSlopeX capability compilation)
    333 
    334         HAVE_SMOOTHEDSURFACESLOPEX=no
    335         if test "x$SMOOTHEDSURFACESLOPEX" = "xyes"; then
    336                 HAVE_SMOOTHEDSURFACESLOPEX=yes
    337                 AC_DEFINE([_HAVE_SMOOTHEDSURFACESLOPEX_],[1],[with SmoothedSurfaceSlopeX capability])
    338         fi
    339         AM_CONDITIONAL([SMOOTHEDSURFACESLOPEX], [test x$HAVE_SMOOTHEDSURFACESLOPEX = xyes])
    340         AC_MSG_RESULT($HAVE_SMOOTHEDSURFACESLOPEX)
    341         dnl }}}
    342         dnl with-SmoothedSurfaceSlopeY{{{
    343         AC_ARG_WITH([SmoothedSurfaceSlopeY],
    344                 AS_HELP_STRING([--with-SmoothedSurfaceSlopeY = YES], [compile with SmoothedSurfaceSlopeY capabilities (default is yes)]),
    345                 [SMOOTHEDSURFACESLOPEY=$withval],[SMOOTHEDSURFACESLOPEY=yes])
    346         AC_MSG_CHECKING(for SmoothedSurfaceSlopeY capability compilation)
    347 
    348         HAVE_SMOOTHEDSURFACESLOPEY=no
    349         if test "x$SMOOTHEDSURFACESLOPEY" = "xyes"; then
    350                 HAVE_SMOOTHEDSURFACESLOPEY=yes
    351                 AC_DEFINE([_HAVE_SMOOTHEDSURFACESLOPEY_],[1],[with SmoothedSurfaceSlopeY capability])
    352         fi
    353         AM_CONDITIONAL([SMOOTHEDSURFACESLOPEY], [test x$HAVE_SMOOTHEDSURFACESLOPEY = xyes])
    354         AC_MSG_RESULT($HAVE_SMOOTHEDSURFACESLOPEY)
    355         dnl }}}
    356         dnl with-Meshdeformation{{{
    357         AC_ARG_WITH([Meshdeformation],
    358                 AS_HELP_STRING([--with-Meshdeformation = YES], [compile with Meshdeformation capabilities (default is yes)]),
    359                 [MESHDEFORMATION=$withval],[MESHDEFORMATION=yes])
    360         AC_MSG_CHECKING(for Meshdeformation capability compilation)
    361 
    362         HAVE_MESHDEFORMATION=no
    363         if test "x$MESHDEFORMATION" = "xyes"; then
    364                 HAVE_MESHDEFORMATION=yes
    365                 AC_DEFINE([_HAVE_MESHDEFORMATION_],[1],[with Meshdeformation capability])
    366         fi
    367         AM_CONDITIONAL([MESHDEFORMATION], [test x$HAVE_MESHDEFORMATION = xyes])
    368         AC_MSG_RESULT($HAVE_MESHDEFORMATION)
    369         dnl }}}
    370         dnl with-Levelset{{{
    371         AC_ARG_WITH([Levelset],
    372                 AS_HELP_STRING([--with-Levelset = YES], [compile with Levelset capabilities (default is yes)]),
    373                 [LEVELSET=$withval],[LEVELSET=yes])
    374         AC_MSG_CHECKING(for Levelset capability compilation)
    375 
    376         HAVE_LEVELSET=no
    377         if test "x$LEVELSET" = "xyes"; then
    378                 HAVE_LEVELSET=yes
    379                 AC_DEFINE([_HAVE_LEVELSET_],[1],[with Levelset capability])
    380         fi
    381         AM_CONDITIONAL([LEVELSET], [test x$HAVE_LEVELSET = xyes])
    382         AC_MSG_RESULT($HAVE_LEVELSET)
    383         dnl }}}
    384         dnl with-Extrapolation{{{
    385         AC_ARG_WITH([Extrapolation],
    386                 AS_HELP_STRING([--with-Extrapolation = YES], [compile with Extrapolation capabilities (default is yes)]),
    387                 [EXTRAPOLATION=$withval],[EXTRAPOLATION=yes])
    388         AC_MSG_CHECKING(for Extrapolation capability compilation)
    389 
    390         HAVE_EXTRAPOLATION=no
    391         if test "x$EXTRAPOLATION" = "xyes"; then
    392                 HAVE_EXTRAPOLATION=yes
    393                 AC_DEFINE([_HAVE_EXTRAPOLATION_],[1],[with Extrapolation capability])
    394         fi
    395         AM_CONDITIONAL([EXTRAPOLATION], [test x$HAVE_EXTRAPOLATION = xyes])
    396         AC_MSG_RESULT($HAVE_EXTRAPOLATION)
    397         dnl }}}
    398         dnl with-LsfReinitialization{{{
    399         AC_ARG_WITH([LsfReinitialization],
    400                 AS_HELP_STRING([--with-LsfReinitialization = YES], [compile with LsfReinitialization capabilities (default is yes)]),
    401                 [LSFREINITIALIZATION=$withval],[LSFREINITIALIZATION=yes])
    402         AC_MSG_CHECKING(for LsfReinitialization capability compilation)
    403 
    404         HAVE_LSFREINITIALIZATION=no
    405         if test "x$LSFREINITIALIZATION" = "xyes"; then
    406                 HAVE_LSFREINITIALIZATION=yes
    407                 AC_DEFINE([_HAVE_LSFREINITIALIZATION_],[1],[with LsfReinitialization capability])
    408         fi
    409         AM_CONDITIONAL([LSFREINITIALIZATION], [test x$HAVE_LSFREINITIALIZATION = xyes])
    410         AC_MSG_RESULT($HAVE_LSFREINITIALIZATION)
    411         dnl }}}
    412 
     10[
     11
     12dnl with-AdjointBalancethickness{{{
     13AC_ARG_WITH([AdjointBalancethickness],
     14        AS_HELP_STRING([--with-AdjointBalancethickness = YES], [compile with AdjointBalancethickness capabilities (default is yes)]),
     15        [ADJOINTBALANCETHICKNESS=$withval],[ADJOINTBALANCETHICKNESS=yes])
     16AC_MSG_CHECKING(for AdjointBalancethickness capability compilation)
     17
     18HAVE_ADJOINTBALANCETHICKNESS=no
     19if test "x$ADJOINTBALANCETHICKNESS" = "xyes"; then
     20        HAVE_ADJOINTBALANCETHICKNESS=yes
     21        AC_DEFINE([_HAVE_ADJOINTBALANCETHICKNESS_],[1],[with AdjointBalancethicknesscapability])
     22fi
     23AM_CONDITIONAL([ADJOINTBALANCETHICKNESS], [test x$HAVE_ADJOINTBALANCETHICKNESS = xyes])
     24AC_MSG_RESULT($HAVE_ADJOINTBALANCETHICKNESS)
     25dnl }}}
     26dnl with-AdjointHoriz{{{
     27AC_ARG_WITH([AdjointHoriz],
     28        AS_HELP_STRING([--with-AdjointHoriz = YES], [compile with AdjointHoriz capabilities (default is yes)]),
     29        [ADJOINTHORIZ=$withval],[ADJOINTHORIZ=yes])
     30AC_MSG_CHECKING(for AdjointHoriz capability compilation)
     31
     32HAVE_ADJOINTHORIZ=no
     33if test "x$ADJOINTHORIZ" = "xyes"; then
     34        HAVE_ADJOINTHORIZ=yes
     35        AC_DEFINE([_HAVE_ADJOINTHORIZ_],[1],[with AdjointHorizcapability])
     36fi
     37AM_CONDITIONAL([ADJOINTHORIZ], [test x$HAVE_ADJOINTHORIZ = xyes])
     38AC_MSG_RESULT($HAVE_ADJOINTHORIZ)
     39dnl }}}
     40dnl with-Balancethickness{{{
     41AC_ARG_WITH([Balancethickness],
     42        AS_HELP_STRING([--with-Balancethickness = YES], [compile with Balancethickness capabilities (default is yes)]),
     43        [BALANCETHICKNESS=$withval],[BALANCETHICKNESS=yes])
     44AC_MSG_CHECKING(for Balancethickness capability compilation)
     45
     46HAVE_BALANCETHICKNESS=no
     47if test "x$BALANCETHICKNESS" = "xyes"; then
     48        HAVE_BALANCETHICKNESS=yes
     49        AC_DEFINE([_HAVE_BALANCETHICKNESS_],[1],[with Balancethicknesscapability])
     50fi
     51AM_CONDITIONAL([BALANCETHICKNESS], [test x$HAVE_BALANCETHICKNESS = xyes])
     52AC_MSG_RESULT($HAVE_BALANCETHICKNESS)
     53dnl }}}
     54dnl with-BalancethicknessSoft{{{
     55AC_ARG_WITH([BalancethicknessSoft],
     56        AS_HELP_STRING([--with-BalancethicknessSoft = YES], [compile with BalancethicknessSoft capabilities (default is yes)]),
     57        [BALANCETHICKNESSSOFT=$withval],[BALANCETHICKNESSSOFT=yes])
     58AC_MSG_CHECKING(for BalancethicknessSoft capability compilation)
     59
     60HAVE_BALANCETHICKNESSSOFT=no
     61if test "x$BALANCETHICKNESSSOFT" = "xyes"; then
     62        HAVE_BALANCETHICKNESSSOFT=yes
     63        AC_DEFINE([_HAVE_BALANCETHICKNESSSOFT_],[1],[with BalancethicknessSoftcapability])
     64fi
     65AM_CONDITIONAL([BALANCETHICKNESSSOFT], [test x$HAVE_BALANCETHICKNESSSOFT = xyes])
     66AC_MSG_RESULT($HAVE_BALANCETHICKNESSSOFT)
     67dnl }}}
     68dnl with-Balancevelocity{{{
     69AC_ARG_WITH([Balancevelocity],
     70        AS_HELP_STRING([--with-Balancevelocity = YES], [compile with Balancevelocity capabilities (default is yes)]),
     71        [BALANCEVELOCITY=$withval],[BALANCEVELOCITY=yes])
     72AC_MSG_CHECKING(for Balancevelocity capability compilation)
     73
     74HAVE_BALANCEVELOCITY=no
     75if test "x$BALANCEVELOCITY" = "xyes"; then
     76        HAVE_BALANCEVELOCITY=yes
     77        AC_DEFINE([_HAVE_BALANCEVELOCITY_],[1],[with Balancevelocitycapability])
     78fi
     79AM_CONDITIONAL([BALANCEVELOCITY], [test x$HAVE_BALANCEVELOCITY = xyes])
     80AC_MSG_RESULT($HAVE_BALANCEVELOCITY)
     81dnl }}}
     82dnl with-L2ProjectionEPL{{{
     83AC_ARG_WITH([L2ProjectionEPL],
     84        AS_HELP_STRING([--with-L2ProjectionEPL = YES], [compile with L2ProjectionEPL capabilities (default is yes)]),
     85        [L2PROJECTIONEPL=$withval],[L2PROJECTIONEPL=yes])
     86AC_MSG_CHECKING(for L2ProjectionEPL capability compilation)
     87
     88HAVE_L2PROJECTIONEPL=no
     89if test "x$L2PROJECTIONEPL" = "xyes"; then
     90        HAVE_L2PROJECTIONEPL=yes
     91        AC_DEFINE([_HAVE_L2PROJECTIONEPL_],[1],[with L2ProjectionEPLcapability])
     92fi
     93AM_CONDITIONAL([L2PROJECTIONEPL], [test x$HAVE_L2PROJECTIONEPL = xyes])
     94AC_MSG_RESULT($HAVE_L2PROJECTIONEPL)
     95dnl }}}
     96dnl with-L2ProjectionBase{{{
     97AC_ARG_WITH([L2ProjectionBase],
     98        AS_HELP_STRING([--with-L2ProjectionBase = YES], [compile with L2ProjectionBase capabilities (default is yes)]),
     99        [L2PROJECTIONBASE=$withval],[L2PROJECTIONBASE=yes])
     100AC_MSG_CHECKING(for L2ProjectionBase capability compilation)
     101
     102HAVE_L2PROJECTIONBASE=no
     103if test "x$L2PROJECTIONBASE" = "xyes"; then
     104        HAVE_L2PROJECTIONBASE=yes
     105        AC_DEFINE([_HAVE_L2PROJECTIONBASE_],[1],[with L2ProjectionBasecapability])
     106fi
     107AM_CONDITIONAL([L2PROJECTIONBASE], [test x$HAVE_L2PROJECTIONBASE = xyes])
     108AC_MSG_RESULT($HAVE_L2PROJECTIONBASE)
     109dnl }}}
     110dnl with-DamageEvolution{{{
     111AC_ARG_WITH([DamageEvolution],
     112        AS_HELP_STRING([--with-DamageEvolution = YES], [compile with DamageEvolution capabilities (default is yes)]),
     113        [DAMAGEEVOLUTION=$withval],[DAMAGEEVOLUTION=yes])
     114AC_MSG_CHECKING(for DamageEvolution capability compilation)
     115
     116HAVE_DAMAGEEVOLUTION=no
     117if test "x$DAMAGEEVOLUTION" = "xyes"; then
     118        HAVE_DAMAGEEVOLUTION=yes
     119        AC_DEFINE([_HAVE_DAMAGEEVOLUTION_],[1],[with DamageEvolutioncapability])
     120fi
     121AM_CONDITIONAL([DAMAGEEVOLUTION], [test x$HAVE_DAMAGEEVOLUTION = xyes])
     122AC_MSG_RESULT($HAVE_DAMAGEEVOLUTION)
     123dnl }}}
     124dnl with-Stressbalance{{{
     125AC_ARG_WITH([Stressbalance],
     126        AS_HELP_STRING([--with-Stressbalance = YES], [compile with Stressbalance capabilities (default is yes)]),
     127        [STRESSBALANCE=$withval],[STRESSBALANCE=yes])
     128AC_MSG_CHECKING(for Stressbalance capability compilation)
     129
     130HAVE_STRESSBALANCE=no
     131if test "x$STRESSBALANCE" = "xyes"; then
     132        HAVE_STRESSBALANCE=yes
     133        AC_DEFINE([_HAVE_STRESSBALANCE_],[1],[with Stressbalancecapability])
     134fi
     135AM_CONDITIONAL([STRESSBALANCE], [test x$HAVE_STRESSBALANCE = xyes])
     136AC_MSG_RESULT($HAVE_STRESSBALANCE)
     137dnl }}}
     138dnl with-StressbalanceSIA{{{
     139AC_ARG_WITH([StressbalanceSIA],
     140        AS_HELP_STRING([--with-StressbalanceSIA = YES], [compile with StressbalanceSIA capabilities (default is yes)]),
     141        [STRESSBALANCESIA=$withval],[STRESSBALANCESIA=yes])
     142AC_MSG_CHECKING(for StressbalanceSIA capability compilation)
     143
     144HAVE_STRESSBALANCESIA=no
     145if test "x$STRESSBALANCESIA" = "xyes"; then
     146        HAVE_STRESSBALANCESIA=yes
     147        AC_DEFINE([_HAVE_STRESSBALANCESIA_],[1],[with StressbalanceSIAcapability])
     148fi
     149AM_CONDITIONAL([STRESSBALANCESIA], [test x$HAVE_STRESSBALANCESIA = xyes])
     150AC_MSG_RESULT($HAVE_STRESSBALANCESIA)
     151dnl }}}
     152dnl with-StressbalanceVertical{{{
     153AC_ARG_WITH([StressbalanceVertical],
     154        AS_HELP_STRING([--with-StressbalanceVertical = YES], [compile with StressbalanceVertical capabilities (default is yes)]),
     155        [STRESSBALANCEVERTICAL=$withval],[STRESSBALANCEVERTICAL=yes])
     156AC_MSG_CHECKING(for StressbalanceVertical capability compilation)
     157
     158HAVE_STRESSBALANCEVERTICAL=no
     159if test "x$STRESSBALANCEVERTICAL" = "xyes"; then
     160        HAVE_STRESSBALANCEVERTICAL=yes
     161        AC_DEFINE([_HAVE_STRESSBALANCEVERTICAL_],[1],[with StressbalanceVerticalcapability])
     162fi
     163AM_CONDITIONAL([STRESSBALANCEVERTICAL], [test x$HAVE_STRESSBALANCEVERTICAL = xyes])
     164AC_MSG_RESULT($HAVE_STRESSBALANCEVERTICAL)
     165dnl }}}
     166dnl with-Enthalpy{{{
     167AC_ARG_WITH([Enthalpy],
     168        AS_HELP_STRING([--with-Enthalpy = YES], [compile with Enthalpy capabilities (default is yes)]),
     169        [ENTHALPY=$withval],[ENTHALPY=yes])
     170AC_MSG_CHECKING(for Enthalpy capability compilation)
     171
     172HAVE_ENTHALPY=no
     173if test "x$ENTHALPY" = "xyes"; then
     174        HAVE_ENTHALPY=yes
     175        AC_DEFINE([_HAVE_ENTHALPY_],[1],[with Enthalpycapability])
     176fi
     177AM_CONDITIONAL([ENTHALPY], [test x$HAVE_ENTHALPY = xyes])
     178AC_MSG_RESULT($HAVE_ENTHALPY)
     179dnl }}}
     180dnl with-HydrologyShreve{{{
     181AC_ARG_WITH([HydrologyShreve],
     182        AS_HELP_STRING([--with-HydrologyShreve = YES], [compile with HydrologyShreve capabilities (default is yes)]),
     183        [HYDROLOGYSHREVE=$withval],[HYDROLOGYSHREVE=yes])
     184AC_MSG_CHECKING(for HydrologyShreve capability compilation)
     185
     186HAVE_HYDROLOGYSHREVE=no
     187if test "x$HYDROLOGYSHREVE" = "xyes"; then
     188        HAVE_HYDROLOGYSHREVE=yes
     189        AC_DEFINE([_HAVE_HYDROLOGYSHREVE_],[1],[with HydrologyShrevecapability])
     190fi
     191AM_CONDITIONAL([HYDROLOGYSHREVE], [test x$HAVE_HYDROLOGYSHREVE = xyes])
     192AC_MSG_RESULT($HAVE_HYDROLOGYSHREVE)
     193dnl }}}
     194dnl with-HydrologyDCInefficient{{{
     195AC_ARG_WITH([HydrologyDCInefficient],
     196        AS_HELP_STRING([--with-HydrologyDCInefficient = YES], [compile with HydrologyDCInefficient capabilities (default is yes)]),
     197        [HYDROLOGYDCINEFFICIENT=$withval],[HYDROLOGYDCINEFFICIENT=yes])
     198AC_MSG_CHECKING(for HydrologyDCInefficient capability compilation)
     199
     200HAVE_HYDROLOGYDCINEFFICIENT=no
     201if test "x$HYDROLOGYDCINEFFICIENT" = "xyes"; then
     202        HAVE_HYDROLOGYDCINEFFICIENT=yes
     203        AC_DEFINE([_HAVE_HYDROLOGYDCINEFFICIENT_],[1],[with HydrologyDCInefficientcapability])
     204fi
     205AM_CONDITIONAL([HYDROLOGYDCINEFFICIENT], [test x$HAVE_HYDROLOGYDCINEFFICIENT = xyes])
     206AC_MSG_RESULT($HAVE_HYDROLOGYDCINEFFICIENT)
     207dnl }}}
     208dnl with-HydrologyDCEfficient{{{
     209AC_ARG_WITH([HydrologyDCEfficient],
     210        AS_HELP_STRING([--with-HydrologyDCEfficient = YES], [compile with HydrologyDCEfficient capabilities (default is yes)]),
     211        [HYDROLOGYDCEFFICIENT=$withval],[HYDROLOGYDCEFFICIENT=yes])
     212AC_MSG_CHECKING(for HydrologyDCEfficient capability compilation)
     213
     214HAVE_HYDROLOGYDCEFFICIENT=no
     215if test "x$HYDROLOGYDCEFFICIENT" = "xyes"; then
     216        HAVE_HYDROLOGYDCEFFICIENT=yes
     217        AC_DEFINE([_HAVE_HYDROLOGYDCEFFICIENT_],[1],[with HydrologyDCEfficientcapability])
     218fi
     219AM_CONDITIONAL([HYDROLOGYDCEFFICIENT], [test x$HAVE_HYDROLOGYDCEFFICIENT = xyes])
     220AC_MSG_RESULT($HAVE_HYDROLOGYDCEFFICIENT)
     221dnl }}}
     222dnl with-Melting{{{
     223AC_ARG_WITH([Melting],
     224        AS_HELP_STRING([--with-Melting = YES], [compile with Melting capabilities (default is yes)]),
     225        [MELTING=$withval],[MELTING=yes])
     226AC_MSG_CHECKING(for Melting capability compilation)
     227
     228HAVE_MELTING=no
     229if test "x$MELTING" = "xyes"; then
     230        HAVE_MELTING=yes
     231        AC_DEFINE([_HAVE_MELTING_],[1],[with Meltingcapability])
     232fi
     233AM_CONDITIONAL([MELTING], [test x$HAVE_MELTING = xyes])
     234AC_MSG_RESULT($HAVE_MELTING)
     235dnl }}}
     236dnl with-Masstransport{{{
     237AC_ARG_WITH([Masstransport],
     238        AS_HELP_STRING([--with-Masstransport = YES], [compile with Masstransport capabilities (default is yes)]),
     239        [MASSTRANSPORT=$withval],[MASSTRANSPORT=yes])
     240AC_MSG_CHECKING(for Masstransport capability compilation)
     241
     242HAVE_MASSTRANSPORT=no
     243if test "x$MASSTRANSPORT" = "xyes"; then
     244        HAVE_MASSTRANSPORT=yes
     245        AC_DEFINE([_HAVE_MASSTRANSPORT_],[1],[with Masstransportcapability])
     246fi
     247AM_CONDITIONAL([MASSTRANSPORT], [test x$HAVE_MASSTRANSPORT = xyes])
     248AC_MSG_RESULT($HAVE_MASSTRANSPORT)
     249dnl }}}
     250dnl with-FreeSurfaceBase{{{
     251AC_ARG_WITH([FreeSurfaceBase],
     252        AS_HELP_STRING([--with-FreeSurfaceBase = YES], [compile with FreeSurfaceBase capabilities (default is yes)]),
     253        [FREESURFACEBASE=$withval],[FREESURFACEBASE=yes])
     254AC_MSG_CHECKING(for FreeSurfaceBase capability compilation)
     255
     256HAVE_FREESURFACEBASE=no
     257if test "x$FREESURFACEBASE" = "xyes"; then
     258        HAVE_FREESURFACEBASE=yes
     259        AC_DEFINE([_HAVE_FREESURFACEBASE_],[1],[with FreeSurfaceBasecapability])
     260fi
     261AM_CONDITIONAL([FREESURFACEBASE], [test x$HAVE_FREESURFACEBASE = xyes])
     262AC_MSG_RESULT($HAVE_FREESURFACEBASE)
     263dnl }}}
     264dnl with-FreeSurfaceTop{{{
     265AC_ARG_WITH([FreeSurfaceTop],
     266        AS_HELP_STRING([--with-FreeSurfaceTop = YES], [compile with FreeSurfaceTop capabilities (default is yes)]),
     267        [FREESURFACETOP=$withval],[FREESURFACETOP=yes])
     268AC_MSG_CHECKING(for FreeSurfaceTop capability compilation)
     269
     270HAVE_FREESURFACETOP=no
     271if test "x$FREESURFACETOP" = "xyes"; then
     272        HAVE_FREESURFACETOP=yes
     273        AC_DEFINE([_HAVE_FREESURFACETOP_],[1],[with FreeSurfaceTopcapability])
     274fi
     275AM_CONDITIONAL([FREESURFACETOP], [test x$HAVE_FREESURFACETOP = xyes])
     276AC_MSG_RESULT($HAVE_FREESURFACETOP)
     277dnl }}}
     278dnl with-ExtrudeFromBase{{{
     279AC_ARG_WITH([ExtrudeFromBase],
     280        AS_HELP_STRING([--with-ExtrudeFromBase = YES], [compile with ExtrudeFromBase capabilities (default is yes)]),
     281        [EXTRUDEFROMBASE=$withval],[EXTRUDEFROMBASE=yes])
     282AC_MSG_CHECKING(for ExtrudeFromBase capability compilation)
     283
     284HAVE_EXTRUDEFROMBASE=no
     285if test "x$EXTRUDEFROMBASE" = "xyes"; then
     286        HAVE_EXTRUDEFROMBASE=yes
     287        AC_DEFINE([_HAVE_EXTRUDEFROMBASE_],[1],[with ExtrudeFromBasecapability])
     288fi
     289AM_CONDITIONAL([EXTRUDEFROMBASE], [test x$HAVE_EXTRUDEFROMBASE = xyes])
     290AC_MSG_RESULT($HAVE_EXTRUDEFROMBASE)
     291dnl }}}
     292dnl with-ExtrudeFromTop{{{
     293AC_ARG_WITH([ExtrudeFromTop],
     294        AS_HELP_STRING([--with-ExtrudeFromTop = YES], [compile with ExtrudeFromTop capabilities (default is yes)]),
     295        [EXTRUDEFROMTOP=$withval],[EXTRUDEFROMTOP=yes])
     296AC_MSG_CHECKING(for ExtrudeFromTop capability compilation)
     297
     298HAVE_EXTRUDEFROMTOP=no
     299if test "x$EXTRUDEFROMTOP" = "xyes"; then
     300        HAVE_EXTRUDEFROMTOP=yes
     301        AC_DEFINE([_HAVE_EXTRUDEFROMTOP_],[1],[with ExtrudeFromTopcapability])
     302fi
     303AM_CONDITIONAL([EXTRUDEFROMTOP], [test x$HAVE_EXTRUDEFROMTOP = xyes])
     304AC_MSG_RESULT($HAVE_EXTRUDEFROMTOP)
     305dnl }}}
     306dnl with-DepthAverage{{{
     307AC_ARG_WITH([DepthAverage],
     308        AS_HELP_STRING([--with-DepthAverage = YES], [compile with DepthAverage capabilities (default is yes)]),
     309        [DEPTHAVERAGE=$withval],[DEPTHAVERAGE=yes])
     310AC_MSG_CHECKING(for DepthAverage capability compilation)
     311
     312HAVE_DEPTHAVERAGE=no
     313if test "x$DEPTHAVERAGE" = "xyes"; then
     314        HAVE_DEPTHAVERAGE=yes
     315        AC_DEFINE([_HAVE_DEPTHAVERAGE_],[1],[with DepthAveragecapability])
     316fi
     317AM_CONDITIONAL([DEPTHAVERAGE], [test x$HAVE_DEPTHAVERAGE = xyes])
     318AC_MSG_RESULT($HAVE_DEPTHAVERAGE)
     319dnl }}}
     320dnl with-SmoothedSurfaceSlopeX{{{
     321AC_ARG_WITH([SmoothedSurfaceSlopeX],
     322        AS_HELP_STRING([--with-SmoothedSurfaceSlopeX = YES], [compile with SmoothedSurfaceSlopeX capabilities (default is yes)]),
     323        [SMOOTHEDSURFACESLOPEX=$withval],[SMOOTHEDSURFACESLOPEX=yes])
     324AC_MSG_CHECKING(for SmoothedSurfaceSlopeX capability compilation)
     325
     326HAVE_SMOOTHEDSURFACESLOPEX=no
     327if test "x$SMOOTHEDSURFACESLOPEX" = "xyes"; then
     328        HAVE_SMOOTHEDSURFACESLOPEX=yes
     329        AC_DEFINE([_HAVE_SMOOTHEDSURFACESLOPEX_],[1],[with SmoothedSurfaceSlopeXcapability])
     330fi
     331AM_CONDITIONAL([SMOOTHEDSURFACESLOPEX], [test x$HAVE_SMOOTHEDSURFACESLOPEX = xyes])
     332AC_MSG_RESULT($HAVE_SMOOTHEDSURFACESLOPEX)
     333dnl }}}
     334dnl with-SmoothedSurfaceSlopeY{{{
     335AC_ARG_WITH([SmoothedSurfaceSlopeY],
     336        AS_HELP_STRING([--with-SmoothedSurfaceSlopeY = YES], [compile with SmoothedSurfaceSlopeY capabilities (default is yes)]),
     337        [SMOOTHEDSURFACESLOPEY=$withval],[SMOOTHEDSURFACESLOPEY=yes])
     338AC_MSG_CHECKING(for SmoothedSurfaceSlopeY capability compilation)
     339
     340HAVE_SMOOTHEDSURFACESLOPEY=no
     341if test "x$SMOOTHEDSURFACESLOPEY" = "xyes"; then
     342        HAVE_SMOOTHEDSURFACESLOPEY=yes
     343        AC_DEFINE([_HAVE_SMOOTHEDSURFACESLOPEY_],[1],[with SmoothedSurfaceSlopeYcapability])
     344fi
     345AM_CONDITIONAL([SMOOTHEDSURFACESLOPEY], [test x$HAVE_SMOOTHEDSURFACESLOPEY = xyes])
     346AC_MSG_RESULT($HAVE_SMOOTHEDSURFACESLOPEY)
     347dnl }}}
     348dnl with-Thermal{{{
     349AC_ARG_WITH([Thermal],
     350        AS_HELP_STRING([--with-Thermal = YES], [compile with Thermal capabilities (default is yes)]),
     351        [THERMAL=$withval],[THERMAL=yes])
     352AC_MSG_CHECKING(for Thermal capability compilation)
     353
     354HAVE_THERMAL=no
     355if test "x$THERMAL" = "xyes"; then
     356        HAVE_THERMAL=yes
     357        AC_DEFINE([_HAVE_THERMAL_],[1],[with Thermalcapability])
     358fi
     359AM_CONDITIONAL([THERMAL], [test x$HAVE_THERMAL = xyes])
     360AC_MSG_RESULT($HAVE_THERMAL)
     361dnl }}}
     362dnl with-Gia{{{
     363AC_ARG_WITH([Gia],
     364        AS_HELP_STRING([--with-Gia = YES], [compile with Gia capabilities (default is yes)]),
     365        [GIA=$withval],[GIA=yes])
     366AC_MSG_CHECKING(for Gia capability compilation)
     367
     368HAVE_GIA=no
     369if test "x$GIA" = "xyes"; then
     370        HAVE_GIA=yes
     371        AC_DEFINE([_HAVE_GIA_],[1],[with Giacapability])
     372fi
     373AM_CONDITIONAL([GIA], [test x$HAVE_GIA = xyes])
     374AC_MSG_RESULT($HAVE_GIA)
     375dnl }}}
     376dnl with-Meshdeformation{{{
     377AC_ARG_WITH([Meshdeformation],
     378        AS_HELP_STRING([--with-Meshdeformation = YES], [compile with Meshdeformation capabilities (default is yes)]),
     379        [MESHDEFORMATION=$withval],[MESHDEFORMATION=yes])
     380AC_MSG_CHECKING(for Meshdeformation capability compilation)
     381
     382HAVE_MESHDEFORMATION=no
     383if test "x$MESHDEFORMATION" = "xyes"; then
     384        HAVE_MESHDEFORMATION=yes
     385        AC_DEFINE([_HAVE_MESHDEFORMATION_],[1],[with Meshdeformationcapability])
     386fi
     387AM_CONDITIONAL([MESHDEFORMATION], [test x$HAVE_MESHDEFORMATION = xyes])
     388AC_MSG_RESULT($HAVE_MESHDEFORMATION)
     389dnl }}}
     390dnl with-Levelset{{{
     391AC_ARG_WITH([Levelset],
     392        AS_HELP_STRING([--with-Levelset = YES], [compile with Levelset capabilities (default is yes)]),
     393        [LEVELSET=$withval],[LEVELSET=yes])
     394AC_MSG_CHECKING(for Levelset capability compilation)
     395
     396HAVE_LEVELSET=no
     397if test "x$LEVELSET" = "xyes"; then
     398        HAVE_LEVELSET=yes
     399        AC_DEFINE([_HAVE_LEVELSET_],[1],[with Levelsetcapability])
     400fi
     401AM_CONDITIONAL([LEVELSET], [test x$HAVE_LEVELSET = xyes])
     402AC_MSG_RESULT($HAVE_LEVELSET)
     403dnl }}}
     404dnl with-Extrapolation{{{
     405AC_ARG_WITH([Extrapolation],
     406        AS_HELP_STRING([--with-Extrapolation = YES], [compile with Extrapolation capabilities (default is yes)]),
     407        [EXTRAPOLATION=$withval],[EXTRAPOLATION=yes])
     408AC_MSG_CHECKING(for Extrapolation capability compilation)
     409
     410HAVE_EXTRAPOLATION=no
     411if test "x$EXTRAPOLATION" = "xyes"; then
     412        HAVE_EXTRAPOLATION=yes
     413        AC_DEFINE([_HAVE_EXTRAPOLATION_],[1],[with Extrapolationcapability])
     414fi
     415AM_CONDITIONAL([EXTRAPOLATION], [test x$HAVE_EXTRAPOLATION = xyes])
     416AC_MSG_RESULT($HAVE_EXTRAPOLATION)
     417dnl }}}
     418dnl with-LsfReinitialization{{{
     419AC_ARG_WITH([LsfReinitialization],
     420        AS_HELP_STRING([--with-LsfReinitialization = YES], [compile with LsfReinitialization capabilities (default is yes)]),
     421        [LSFREINITIALIZATION=$withval],[LSFREINITIALIZATION=yes])
     422AC_MSG_CHECKING(for LsfReinitialization capability compilation)
     423
     424HAVE_LSFREINITIALIZATION=no
     425if test "x$LSFREINITIALIZATION" = "xyes"; then
     426        HAVE_LSFREINITIALIZATION=yes
     427        AC_DEFINE([_HAVE_LSFREINITIALIZATION_],[1],[with LsfReinitializationcapability])
     428fi
     429AM_CONDITIONAL([LSFREINITIALIZATION], [test x$HAVE_LSFREINITIALIZATION = xyes])
     430AC_MSG_RESULT($HAVE_LSFREINITIALIZATION)
     431dnl }}}
    413432
    414433])
  • issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh

    r17236 r17776  
    1414NUMENUMS=$(wc -l temp | awk '{printf("%s",$1);}');
    1515
     16#Deal with Analyses
     17#Build EnumToAnalysis.cpp {{{
     18#Header
     19cat <<END > $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
     20/*
     21* \file EnumToAnalysis.cpp
     22* \brief: output class depending on enum
     23*
     24*   WARNING: DO NOT MODIFY THIS FILE
     25*            this file has been automatically generated by Synchronize.sh
     26*            Please read README for more information
     27*/
     28
     29#include "./analyses.h"
     30#include "../shared/shared.h"
     31
     32Analysis* EnumToAnalysis(int analysis_enum){
     33
     34        switch(analysis_enum){
     35END
     36#core
     37cat temp | grep [a-zA-Z]Analysis | \
     38        grep -v DefaultAnalysis | grep -v FlaimAnalysis | grep -v SurfaceSlopeAnalysis | grep -v BedSlopeAnalysis | \
     39        awk '{print "\t\t#ifdef _HAVE_"toupper(substr($1,1,length($1)-12))"_\n\t\t" "case " $1" : return new " substr($1,1,length($1)-4) "();\n\t\t#endif"}' \
     40                >> $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
     41
     42#Footer
     43cat <<END >> $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
     44                default : _error_("enum provided not supported ("<<EnumToStringx(analysis_enum)<<")");
     45        }
     46}
     47END
     48#}}}
     49#Build analyses.m4{{{
     50#Header
     51cat <<END > $ISSM_DIR/m4/analyses.m4
     52
     53dnl   WARNING: DO NOT MODIFY THIS FILE
     54dnl            this file has been automatically generated by Synchronize.sh
     55dnl            Please read README for more information
     56
     57# AX_ANALYSES_SELECTION
     58# -----------------
     59# Check for analyses compilation
     60AC_DEFUN([AX_ANALYSES_SELECTION],
     61[
     62
     63END
     64#core
     65cat temp | grep [a-zA-Z]Analysis | \
     66        grep -v DefaultAnalysis | grep -v FlaimAnalysis | grep -v SurfaceSlopeAnalysis | grep -v BedSlopeAnalysis | \
     67        sed -e "s/AnalysisEnum//g" | \
     68        awk '{print "dnl with-" $1"{{{\n\
     69AC_ARG_WITH([" $1"],\n\
     70\tAS_HELP_STRING([--with-" $1" = YES], [compile with " $1" capabilities (default is yes)]),\n\
     71\t[" toupper($1)"=$withval],[" toupper($1)"=yes])\n\
     72AC_MSG_CHECKING(for " $1" capability compilation)\n\n\
     73HAVE_"  toupper($1)"=no \n\
     74if test \"x$"  toupper($1)"\" = \"xyes\"; then\n\
     75        HAVE_"  toupper($1)"=yes\n\
     76        AC_DEFINE([_HAVE_"  toupper($1)"_],[1],[with " $1"capability])\n\
     77fi\n\
     78AM_CONDITIONAL([" toupper($1)"], [test x$HAVE_" toupper($1)" = xyes])\n\
     79AC_MSG_RESULT($HAVE_" toupper($1)")\n\
     80dnl }}}"}' \
     81        >> $ISSM_DIR/m4/analyses.m4
     82
     83#Footer
     84cat <<END >> $ISSM_DIR/m4/analyses.m4
     85
     86])
     87END
     88#}}}
     89
     90#Enum to String conversions
    1691#Build EnumToStringx.cpp {{{
    1792#Header
     
    104179END
    105180#}}}
    106 #Build EnumToAnalysis.cpp {{{
    107 #Header
    108 cat <<END > $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
    109 /*
    110 * \file EnumToAnalysis.cpp
    111 * \brief: output class depending on enum
    112 *
    113 *   WARNING: DO NOT MODIFY THIS FILE
    114 *            this file has been automatically generated by Synchronize.sh
    115 *            Please read README for more information
    116 */
    117 
    118 #include "./analyses.h"
    119 #include "../shared/shared.h"
    120 
    121 Analysis* EnumToAnalysis(int analysis_enum){
    122 
    123         switch(analysis_enum){
    124 END
    125 #core
    126 cat temp | grep [a-zA-Z]Analysis | \
    127         grep -v DefaultAnalysis | grep -v FlaimAnalysis | grep -v SurfaceSlopeAnalysis | grep -v BedSlopeAnalysis | \
    128         awk '{print "\t\t#ifdef _HAVE_"toupper(substr($1,1,length($1)-12))"_\n\t\t" "case " $1" : return new " substr($1,1,length($1)-4) "();\n\t\t#endif"}' \
    129                 >> $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
    130 
    131 #Footer
    132 cat <<END >> $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp
    133                 default : _error_("enum provided not supported ("<<EnumToStringx(analysis_enum)<<")");
    134         }
    135 }
    136 END
    137 #}}}
     181
     182#Deal with Python Enums
    138183#Build EnumDefinitions.py{{{
    139184cat <<END > $ISSM_DIR/src/m/enum/EnumDefinitions.py
     
    153198#}}}
    154199
    155 # go through the lines of temp
     200#Deal with Matlab Enums`
    156201ENUM=0;
    157202
Note: See TracChangeset for help on using the changeset viewer.