Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r0fc91db1 r49ce636  
    2424#Trasforming cc1 will break compilation
    2525M4CFA_PROGRAM_NAME
     26
     27#==============================================================================
     28# New AST toggling support
     29AH_TEMPLATE([CFA_USE_NEW_AST],[Sets whether or not to use the new-ast, this is adefault value and can be overrided by --old-ast and --new-ast])
     30DEFAULT_NEW_AST="True"
     31AC_ARG_ENABLE(new-ast,
     32        [  --enable-new-ast     whether or not to use new ast as the default AST algorithm],
     33        [case "${enableval}" in
     34                yes) newast=true ; DEFAULT_NEW_AST="True"  ;;
     35                no)  newast=false; DEFAULT_NEW_AST="False" ;;
     36                *) AC_MSG_ERROR([bad value ${enableval} for --enable-new-ast]) ;;
     37        esac],[newast=true])
     38AC_DEFINE_UNQUOTED([CFA_USE_NEW_AST], $newast)
     39AC_SUBST(DEFAULT_NEW_AST)
    2640
    2741#==============================================================================
     
    125139                \'--enable-gprofiler=*) ;;
    126140                \'--disable-gprofiler) ;;
     141
     142                # skip the target hosts
     143                \'--enable-new-ast=*) ;;
     144                \'--disable-new-ast) ;;
    127145
    128146                # skip this, it only causes problems
Note: See TracChangeset for help on using the changeset viewer.