Changeset 58fe85a for configure.ac
- Timestamp:
- Jan 7, 2021, 3:27:00 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 2b4daf2, 64aeca0
- Parents:
- 3c64c668 (diff), eef8dfb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
configure.ac (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r3c64c668 r58fe85a 3 3 4 4 AC_PREREQ([2.68]) 5 AC_INIT([cfa-cc],[1.0.0 .0],[cforall@plg.uwaterloo.ca])5 AC_INIT([cfa-cc],[1.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])9 8 AC_CONFIG_HEADERS([config.h:src/config.h.in]) 10 9 AM_SILENT_RULES([yes]) 11 10 12 m4_include([ automake/cfa.m4])11 m4_include([tools/build/cfa.m4]) 13 12 14 13 # don't use the default CFLAGS as they unconditonnaly add -O2 15 14 : ${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 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) 26 40 27 41 #============================================================================== … … 64 78 enable_distcc=$enableval, enable_distcc=no) 65 79 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 66 84 AM_CONDITIONAL([ENABLE_DISTCC], [test x$enable_distcc = xyes]) 67 85 HAS_DISTCC="False" … … 85 103 # Create variables for commonly used targets 86 104 87 TOP_SRCDIR="$(readlink - m $ac_confdir/)/"88 TOP_BUILDDIR="$(readlink - m$ac_pwd/)/"105 TOP_SRCDIR="$(readlink -e $ac_abs_confdir/)/" 106 TOP_BUILDDIR="$(readlink -e $ac_pwd/)/" 89 107 90 108 AC_DEFINE_UNQUOTED(TOP_SRCDIR, "$TOP_SRCDIR", [Top src directory]) … … 121 139 \'--enable-gprofiler=*) ;; 122 140 \'--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=*) ;; 123 148 124 149 # append all other arguments to the sub configure arguments … … 186 211 187 212 LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}" 213 LIBCFA_1TARGET_DIR="${lib_dir}" 188 214 LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile" 189 215 … … 197 223 198 224 AC_SUBST(LIBCFA_TARGET_DIRS) 225 AC_SUBST(LIBCFA_1TARGET_DIR) 199 226 AC_SUBST(LIBCFA_TARGET_MAKEFILES) 200 227 … … 262 289 driver/Makefile 263 290 src/Makefile 264 benchmark/Makefile291 libcfa/Makefile:libcfa/Makefile.dist.in 265 292 tests/Makefile 266 longrun_tests/Makefile267 tools/Makefile268 tools/prettyprinter/Makefile269 293 ]) 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 ]) 270 308 271 309 AC_CONFIG_LINKS([tests/test.py:tests/test.py])
Note:
See TracChangeset
for help on using the changeset viewer.