- Timestamp:
- Aug 3, 2018, 1:57:12 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- ba9baad
- Parents:
- c59712e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
rc59712e rff1e0f38 665 665 CXX 666 666 CFA_FLAGS 667 LIBCFA_TARGET_MAKEFILES 668 LIBCFA_TARGET_DIRS 669 TARGET_HOSTS 670 host_os 671 host_vendor 672 host_cpu 673 host 674 build_os 675 build_vendor 676 build_cpu 677 build 667 678 BUILD_IN_TREE_FLAGS 668 BUILD_IN_TREE_FLAGS_NOLIB669 679 CFACPP 670 680 CFACC … … 678 688 DOendif 679 689 DOifskipcompile 680 LIBCFA_TARGET_MAKEFILES681 LIBCFA_TARGET_DIRS682 TARGET_HOSTS683 host_os684 host_vendor685 host_cpu686 host687 build_os688 build_vendor689 build_cpu690 build691 690 CFA_NAME 692 691 am__untar … … 761 760 enable_silent_rules 762 761 with_cfa_name 762 with_backend_compiler 763 763 with_target_hosts 764 with_backend_compiler765 764 enable_dependency_tracking 766 765 ' … … 1421 1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1422 1421 --with-cfa-name=NAME NAME too which cfa will be installed 1422 --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) 1423 1423 --with-target-hosts=HOSTS HOSTS comma seperated list of hosts to build for, format ARCH:debug|nodebug|nolib 1424 --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible)1425 1424 1426 1425 Some influential environment variables: … … 3086 3085 3087 3086 3088 #==============================================================================3089 # handle the list of hosts to build for3090 for var in $ac_configure_args3091 do3092 #strip quotes surrouding values3093 var=$(echo $var | sed s/\'//g)3094 case $var in3095 # skip cross compilation related arguments3096 --host=*) ;; host_alias=*) ;; --build=*) ;; build_alias=*) ;; --target=*) ;; target_alias=*) ;;3097 3098 # append all other arguments to the sub configure arguments3099 *) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";;3100 esac3101 done3102 3103 echo $LIBCFA_GENERAL_ARGS3104 3105 #==============================================================================3106 # handle the list of hosts to build for3107 # Make sure we can run config.sub.3108 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||3109 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 53110 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&53112 $as_echo_n "checking build system type... " >&6; }3113 if ${ac_cv_build+:} false; then :3114 $as_echo_n "(cached) " >&63115 else3116 ac_build_alias=$build_alias3117 test "x$ac_build_alias" = x &&3118 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`3119 test "x$ac_build_alias" = x &&3120 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 53121 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||3122 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 53123 3124 fi3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&53126 $as_echo "$ac_cv_build" >&6; }3127 case $ac_cv_build in3128 *-*-*) ;;3129 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;3130 esac3131 build=$ac_cv_build3132 ac_save_IFS=$IFS; IFS='-'3133 set x $ac_cv_build3134 shift3135 build_cpu=$13136 build_vendor=$23137 shift; shift3138 # Remember, the first character of IFS is used to create $*,3139 # except with old shells:3140 build_os=$*3141 IFS=$ac_save_IFS3142 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac3143 3144 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&53146 $as_echo_n "checking host system type... " >&6; }3147 if ${ac_cv_host+:} false; then :3148 $as_echo_n "(cached) " >&63149 else3150 if test "x$host_alias" = x; then3151 ac_cv_host=$ac_cv_build3152 else3153 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||3154 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 53155 fi3156 3157 fi3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&53159 $as_echo "$ac_cv_host" >&6; }3160 case $ac_cv_host in3161 *-*-*) ;;3162 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;3163 esac3164 host=$ac_cv_host3165 ac_save_IFS=$IFS; IFS='-'3166 set x $ac_cv_host3167 shift3168 host_cpu=$13169 host_vendor=$23170 shift; shift3171 # Remember, the first character of IFS is used to create $*,3172 # except with old shells:3173 host_os=$*3174 IFS=$ac_save_IFS3175 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac3176 3177 3178 3179 default_target="${host_cpu}:debug, ${host_cpu}:nodebug"3180 3181 # Check whether --with-target-hosts was given.3182 if test "${with_target_hosts+set}" = set; then :3183 withval=$with_target_hosts; target_hosts=$withval3184 else3185 target_hosts=${default_target}3186 fi3187 3188 3189 TARGET_HOSTS=${target_hosts}3190 3191 3192 for i in $(echo $target_hosts | sed "s/,/ /g")3193 do3194 # call your procedure/other scripts here below3195 lib_arch=$(echo $i | sed -r "s/:(.*)//g")3196 lib_config=$(echo $i | sed -r "s/(.*)://g")3197 lib_dir="libcfa-${lib_arch}-${lib_config}"3198 3199 LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}"3200 LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile"3201 3202 mkdir -p libcfa-${lib_arch}-${lib_config}3203 echo -n "${LIBCFA_GENERAL_ARGS} " > libcfa-${lib_arch}-${lib_config}/config.data3204 echo -n "--host=${lib_arch} " >> libcfa-${lib_arch}-${lib_config}/config.data3205 echo -n "CONFIGURATION=${lib_config}" >> libcfa-${lib_arch}-${lib_config}/config.data3206 done3207 3208 3209 3210 3211 3087 3212 3088 #============================================================================== … … 3395 3271 #============================================================================== 3396 3272 # Create variables for commonly used targets 3397 DRIVER_DIR='$(top_builddir)/driver' 3398 CFACC=${DRIVER_DIR}/cfa 3399 CFACPP=${DRIVER_DIR}/cfa-cpp 3400 3401 3273 3274 TOP_SRCDIR=$ac_pwd/$ac_confdir/ 3275 TOP_BUILDDIR=$ac_pwd/ 3276 PRELUDE_BUILDDIR=$ac_pwd/libcfa-x86_64-debug/prelude/ 3402 3277 3403 3278 3404 3279 cat >>confdefs.h <<_ACEOF 3405 #define TOP_SRCDIR "$ ac_pwd/$ac_confdir/"3280 #define TOP_SRCDIR "$TOP_SRCDIR" 3406 3281 _ACEOF 3407 3282 3408 3283 3409 3284 cat >>confdefs.h <<_ACEOF 3410 #define TOP_BUILDDIR "$ ac_pwd/"3285 #define TOP_BUILDDIR "$TOP_BUILDDIR" 3411 3286 _ACEOF 3412 3287 3413 3288 3414 3289 cat >>confdefs.h <<_ACEOF 3415 #define PRELUDE_BUILDDIR "$ac_pwd/libcfa/prelude/" 3416 _ACEOF 3290 #define PRELUDE_BUILDDIR "$PRELUDE_BUILDDIR" 3291 _ACEOF 3292 3293 3294 DRIVER_DIR=${TOP_BUILDDIR}driver/ 3295 CFACC=${DRIVER_DIR}cfa 3296 CFACPP=${DRIVER_DIR}cfa-cpp 3297 3298 3417 3299 3418 3300 3419 3301 #============================================================================== 3420 3302 # Flag variables needed to build in tree 3421 LIBCFA_SRC='$(top_srcdir)/libcfa/src' 3422 LIBCFA_BUILD='$(top_builddir)/libcfa/src' 3423 BUILD_IN_TREE_FLAGS_NOLIB="-XCFA -t -B${DRIVER_DIR}" 3424 BUILD_IN_TREE_FLAGS="${BUILD_IN_TREE_FLAGS_NOLIB} -L${LIBCFA_BUILD} -I${LIBCFA_SRC} -I${LIBCFA_SRC}/containers -I${LIBCFA_SRC}/concurrency -I${LIBCFA_SRC}/stdhdr" 3303 LIBCFA_SRC='${TOP_SRCDIR}/libcfa/src' 3304 BUILD_IN_TREE_FLAGS="-XCFA -t -B${DRIVER_DIR}" 3305 3306 3307 #============================================================================== 3308 # handle the list of hosts to build for 3309 for var in $ac_configure_args 3310 do 3311 #strip quotes surrouding values 3312 var=$(echo $var | sed s/\'//g) 3313 case $var in 3314 # skip cross compilation related arguments 3315 --host=*) ;; host_alias=*) ;; --build=*) ;; build_alias=*) ;; --target=*) ;; target_alias=*) ;; 3316 3317 # skip the target hosts 3318 --with-target-hosts=*) ;; 3319 3320 # append all other arguments to the sub configure arguments 3321 *) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";; 3322 esac 3323 done 3324 3325 #============================================================================== 3326 # handle the list of hosts to build for 3327 # Make sure we can run config.sub. 3328 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3329 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3330 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3332 $as_echo_n "checking build system type... " >&6; } 3333 if ${ac_cv_build+:} false; then : 3334 $as_echo_n "(cached) " >&6 3335 else 3336 ac_build_alias=$build_alias 3337 test "x$ac_build_alias" = x && 3338 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3339 test "x$ac_build_alias" = x && 3340 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3341 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3342 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3343 3344 fi 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3346 $as_echo "$ac_cv_build" >&6; } 3347 case $ac_cv_build in 3348 *-*-*) ;; 3349 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3350 esac 3351 build=$ac_cv_build 3352 ac_save_IFS=$IFS; IFS='-' 3353 set x $ac_cv_build 3354 shift 3355 build_cpu=$1 3356 build_vendor=$2 3357 shift; shift 3358 # Remember, the first character of IFS is used to create $*, 3359 # except with old shells: 3360 build_os=$* 3361 IFS=$ac_save_IFS 3362 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3363 3364 3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3366 $as_echo_n "checking host system type... " >&6; } 3367 if ${ac_cv_host+:} false; then : 3368 $as_echo_n "(cached) " >&6 3369 else 3370 if test "x$host_alias" = x; then 3371 ac_cv_host=$ac_cv_build 3372 else 3373 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3374 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3375 fi 3376 3377 fi 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3379 $as_echo "$ac_cv_host" >&6; } 3380 case $ac_cv_host in 3381 *-*-*) ;; 3382 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3383 esac 3384 host=$ac_cv_host 3385 ac_save_IFS=$IFS; IFS='-' 3386 set x $ac_cv_host 3387 shift 3388 host_cpu=$1 3389 host_vendor=$2 3390 shift; shift 3391 # Remember, the first character of IFS is used to create $*, 3392 # except with old shells: 3393 host_os=$* 3394 IFS=$ac_save_IFS 3395 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3396 3397 3398 3399 default_target="${host_cpu}:debug, ${host_cpu}:nodebug" 3400 3401 # Check whether --with-target-hosts was given. 3402 if test "${with_target_hosts+set}" = set; then : 3403 withval=$with_target_hosts; target_hosts=$withval 3404 else 3405 target_hosts=${default_target} 3406 fi 3407 3408 3409 TARGET_HOSTS=${target_hosts} 3410 3411 3412 LIBCFA_PATHS="DRIVER_DIR=${DRIVER_DIR}" 3413 3414 for i in $(echo $target_hosts | sed "s/,/ /g") 3415 do 3416 # call your procedure/other scripts here below 3417 lib_arch=$(echo $i | sed -r "s/:(.*)//g") 3418 lib_config=$(echo $i | sed -r "s/(.*)://g") 3419 lib_dir="libcfa-${lib_arch}-${lib_config}" 3420 3421 LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}" 3422 LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile" 3423 3424 mkdir -p libcfa-${lib_arch}-${lib_config} 3425 echo -n "${LIBCFA_GENERAL_ARGS} " > libcfa-${lib_arch}-${lib_config}/config.data 3426 echo -n "${LIBCFA_PATHS} " >> libcfa-${lib_arch}-${lib_config}/config.data 3427 echo -n "--host=${lib_arch} " >> libcfa-${lib_arch}-${lib_config}/config.data 3428 echo -n "CONFIGURATION=${lib_config}" >> libcfa-${lib_arch}-${lib_config}/config.data 3429 done 3430 3425 3431 3426 3432
Note: See TracChangeset
for help on using the changeset viewer.