Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r49ce636 r158b026  
    33
    44AC_PREREQ([2.68])
    5 AC_INIT([cfa-cc],[1.0.0],[cforall@plg.uwaterloo.ca])
     5AC_INIT([cfa-cc],[1.0.0.0],[cforall@plg.uwaterloo.ca])
    66AC_CONFIG_AUX_DIR([automake])
    77AC_CONFIG_MACRO_DIRS([automake])
     8#AC_CONFIG_SRCDIR([src/main.cc])
    89AC_CONFIG_HEADERS([config.h:src/config.h.in])
    910AM_SILENT_RULES([yes])
    1011
    11 m4_include([tools/build/cfa.m4])
     12m4_include([automake/cfa.m4])
    1213
    1314# don't use the default CFLAGS as they unconditonnaly add -O2
    1415: ${CFLAGS=""}
    15 : ${CXXFLAGS=""}
    1616
    1717AM_INIT_AUTOMAKE([subdir-objects])
     
    2424#Trasforming cc1 will break compilation
    2525M4CFA_PROGRAM_NAME
    26 
    27 #==============================================================================
    28 # New AST toggling support
    29 AH_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])
    30 DEFAULT_NEW_AST="True"
    31 AC_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])
    38 AC_DEFINE_UNQUOTED([CFA_USE_NEW_AST], $newast)
    39 AC_SUBST(DEFAULT_NEW_AST)
    4026
    4127#==============================================================================
     
    7864        enable_distcc=$enableval, enable_distcc=no)
    7965
    80 AC_ARG_WITH(bwlimit,
    81         [  --with-bwlimit=RATE     RATE the maximum rate at which rsync will be limited when using distributed builds],
    82         [], [])
    83 
    8466AM_CONDITIONAL([ENABLE_DISTCC], [test x$enable_distcc = xyes])
    8567HAS_DISTCC="False"
     
    10385# Create variables for commonly used targets
    10486
    105 TOP_SRCDIR="$(readlink -e $ac_abs_confdir/)/"
    106 TOP_BUILDDIR="$(readlink -e $ac_pwd/)/"
     87TOP_SRCDIR="$(readlink -m $ac_confdir/)/"
     88TOP_BUILDDIR="$(readlink -m $ac_pwd/)/"
    10789
    10890AC_DEFINE_UNQUOTED(TOP_SRCDIR, "$TOP_SRCDIR", [Top src directory])
     
    139121                \'--enable-gprofiler=*) ;;
    140122                \'--disable-gprofiler) ;;
    141 
    142                 # skip the target hosts
    143                 \'--enable-new-ast=*) ;;
    144                 \'--disable-new-ast) ;;
    145 
    146                 # skip this, it only causes problems
    147                 \'--srcdir=*) ;;
    148123
    149124                # append all other arguments to the sub configure arguments
     
    211186
    212187        LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}"
    213         LIBCFA_1TARGET_DIR="${lib_dir}"
    214188        LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile"
    215189
     
    223197
    224198AC_SUBST(LIBCFA_TARGET_DIRS)
    225 AC_SUBST(LIBCFA_1TARGET_DIR)
    226199AC_SUBST(LIBCFA_TARGET_MAKEFILES)
    227200
     
    289262        driver/Makefile
    290263        src/Makefile
    291         libcfa/Makefile:libcfa/Makefile.dist.in
     264        benchmark/Makefile
    292265        tests/Makefile
     266        longrun_tests/Makefile
     267        tools/Makefile
     268        tools/prettyprinter/Makefile
    293269        ])
    294 
    295 # Some of our makefile don't need to be distributed
    296 AM_CONDITIONAL([CFORALL_DISTRIBUTE], [test -e $TOP_SRCDIR/autogen.sh])
    297 AM_COND_IF([CFORALL_DISTRIBUTE], [
    298         AC_CONFIG_FILES([
    299                 longrun_tests/Makefile
    300                 benchmark/Makefile
    301                 benchmark/io/http/Makefile
    302                 tools/Makefile
    303                 tools/prettyprinter/Makefile
    304         ])
    305 
    306         AC_OUTPUT(benchmark/Cargo.toml)
    307 ])
    308270
    309271AC_CONFIG_LINKS([tests/test.py:tests/test.py])
Note: See TracChangeset for help on using the changeset viewer.