Changes in configure.ac [49ce636:158b026]
- File:
-
- 1 edited
-
configure.ac (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r49ce636 r158b026 3 3 4 4 AC_PREREQ([2.68]) 5 AC_INIT([cfa-cc],[1.0.0 ],[cforall@plg.uwaterloo.ca])5 AC_INIT([cfa-cc],[1.0.0.0],[cforall@plg.uwaterloo.ca]) 6 6 AC_CONFIG_AUX_DIR([automake]) 7 7 AC_CONFIG_MACRO_DIRS([automake]) 8 #AC_CONFIG_SRCDIR([src/main.cc]) 8 9 AC_CONFIG_HEADERS([config.h:src/config.h.in]) 9 10 AM_SILENT_RULES([yes]) 10 11 11 m4_include([ tools/build/cfa.m4])12 m4_include([automake/cfa.m4]) 12 13 13 14 # don't use the default CFLAGS as they unconditonnaly add -O2 14 15 : ${CFLAGS=""} 15 : ${CXXFLAGS=""}16 16 17 17 AM_INIT_AUTOMAKE([subdir-objects]) … … 24 24 #Trasforming cc1 will break compilation 25 25 M4CFA_PROGRAM_NAME 26 27 #==============================================================================28 # New AST toggling support29 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}" in34 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)40 26 41 27 #============================================================================== … … 78 64 enable_distcc=$enableval, enable_distcc=no) 79 65 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 84 66 AM_CONDITIONAL([ENABLE_DISTCC], [test x$enable_distcc = xyes]) 85 67 HAS_DISTCC="False" … … 103 85 # Create variables for commonly used targets 104 86 105 TOP_SRCDIR="$(readlink - e $ac_abs_confdir/)/"106 TOP_BUILDDIR="$(readlink - e$ac_pwd/)/"87 TOP_SRCDIR="$(readlink -m $ac_confdir/)/" 88 TOP_BUILDDIR="$(readlink -m $ac_pwd/)/" 107 89 108 90 AC_DEFINE_UNQUOTED(TOP_SRCDIR, "$TOP_SRCDIR", [Top src directory]) … … 139 121 \'--enable-gprofiler=*) ;; 140 122 \'--disable-gprofiler) ;; 141 142 # skip the target hosts143 \'--enable-new-ast=*) ;;144 \'--disable-new-ast) ;;145 146 # skip this, it only causes problems147 \'--srcdir=*) ;;148 123 149 124 # append all other arguments to the sub configure arguments … … 211 186 212 187 LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}" 213 LIBCFA_1TARGET_DIR="${lib_dir}"214 188 LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile" 215 189 … … 223 197 224 198 AC_SUBST(LIBCFA_TARGET_DIRS) 225 AC_SUBST(LIBCFA_1TARGET_DIR)226 199 AC_SUBST(LIBCFA_TARGET_MAKEFILES) 227 200 … … 289 262 driver/Makefile 290 263 src/Makefile 291 libcfa/Makefile:libcfa/Makefile.dist.in264 benchmark/Makefile 292 265 tests/Makefile 266 longrun_tests/Makefile 267 tools/Makefile 268 tools/prettyprinter/Makefile 293 269 ]) 294 295 # Some of our makefile don't need to be distributed296 AM_CONDITIONAL([CFORALL_DISTRIBUTE], [test -e $TOP_SRCDIR/autogen.sh])297 AM_COND_IF([CFORALL_DISTRIBUTE], [298 AC_CONFIG_FILES([299 longrun_tests/Makefile300 benchmark/Makefile301 benchmark/io/http/Makefile302 tools/Makefile303 tools/prettyprinter/Makefile304 ])305 306 AC_OUTPUT(benchmark/Cargo.toml)307 ])308 270 309 271 AC_CONFIG_LINKS([tests/test.py:tests/test.py])
Note:
See TracChangeset
for help on using the changeset viewer.