Changes in configure [575a6e5:56de5932]
Legend:
- Unmodified
- Added
- Removed
-
configure
r575a6e5 r56de5932 665 665 CXX 666 666 CFA_FLAGS 667 LIBCFA_TARGET_MAKEFILES 668 LIBCFA_TARGET_DIRS 669 TARGET_HOSTS 667 MACHINE_TYPE 670 668 host_os 671 669 host_vendor … … 676 674 build_cpu 677 675 build 678 BUILD_IN_TREE_FLAGS679 CFACPP680 CFACC681 DRIVER_DIR682 676 CFA_LIBDIR 683 677 CFA_BINDIR 684 678 CFA_INCDIR 685 679 CFA_PREFIX 680 DOendif 681 DOifskipcompile 682 BUILD_CONCURRENCY_FALSE 683 BUILD_CONCURRENCY_TRUE 684 BUILD_NO_LIB_FALSE 685 BUILD_NO_LIB_TRUE 686 BUILD_DEBUG_FALSE 687 BUILD_DEBUG_TRUE 688 BUILD_RELEASE_FALSE 689 BUILD_RELEASE_TRUE 686 690 CFA_BACKEND_CC 687 691 BACKEND_CC 688 DOendif689 DOifskipcompile690 692 CFA_NAME 691 693 am__untar … … 761 763 with_cfa_name 762 764 with_backend_compiler 763 with_target_hosts 765 enable_target_release 766 enable_target_debug 767 enable_threading 764 768 enable_dependency_tracking 765 769 ' … … 1411 1415 --enable-silent-rules less verbose build output (undo: "make V=1") 1412 1416 --disable-silent-rules verbose build output (undo: "make V=0") 1417 --enable-target-release Build and install the release target 1418 --enable-target-debug Build and install the debug target 1419 --enable-threading Build and install libcfa with threading support 1420 (Enabled by default) 1413 1421 --enable-dependency-tracking 1414 1422 do not reject slow dependency extractors … … 1421 1429 --with-cfa-name=NAME NAME too which cfa will be installed 1422 1430 --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) 1423 --with-target-hosts=HOSTS HOSTS comma seperated list of hosts to build for, format ARCH:debug|nodebug|nolib1424 1431 1425 1432 Some influential environment variables: … … 2488 2495 yes) AM_DEFAULT_VERBOSITY=0;; 2489 2496 no) AM_DEFAULT_VERBOSITY=1;; 2490 *) AM_DEFAULT_VERBOSITY= 0;;2497 *) AM_DEFAULT_VERBOSITY=1;; 2491 2498 esac 2492 2499 am_make=${MAKE-make} … … 2519 2526 AM_BACKSLASH='\' 2520 2527 2521 2522 2523 2524 2525 2526 2527 2528 2529 # don't use the default CFLAGS as they unconditonnaly add -O22530 : ${CFLAGS=""}2531 2528 2532 2529 am__api_version='1.15' … … 3075 3072 3076 3073 3077 #==============================================================================3078 3074 #Trasforming cc1 will break compilation 3079 3080 if test "${program_transform_name}" = ""; then 3081 as_fn_error $? "Program transform not supported. 3082 Use --with-cfa-name='[Desired name here]' instead" "$LINENO" 5 3083 fi 3084 3085 #Define the new name of the installed command 3075 if test "${program_transform_name}" = ""; then 3076 as_fn_error $? "Program transform not supported. 3077 Use --with-cfa-name='[Desired name here]' instead" "$LINENO" 5 3078 fi 3079 3086 3080 3087 3081 # Check whether --with-cfa-name was given. … … 3093 3087 3094 3088 3095 CFA_NAME=${cfa_name} 3096 3097 3098 3099 #============================================================================== 3100 # version information 3089 #Define the new name of the installed command 3090 CFA_NAME=${cfa_name} 3091 3101 3092 3102 3093 rm -f version … … 3150 3141 3151 3142 3152 #============================================================================== 3153 # HACK to be able to use conditionnals inside makefiles 3154 DOifskipcompile='ifeq ($(skipcompile),yes) 3155 else' 3156 3157 3158 3159 DOendif='endif' 3160 3161 3162 3163 #============================================================================== 3164 # backend compiler implementation 3143 # Installation paths 3144 3165 3145 3166 3146 # Check whether --with-backend-compiler was given. … … 3172 3152 3173 3153 if test "x$backendcompiler" != "x"; then 3174 BACKEND_CC=${backendcompiler}3175 else 3176 # Extract the first word of "gcc", so it can be a program name with args.3154 BACKEND_CC=${backendcompiler} 3155 else 3156 # Extract the first word of "gcc", so it can be a program name with args. 3177 3157 set dummy gcc; ac_word=$2 3178 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 … … 3213 3193 fi 3214 3194 3215 # check gcc installed3216 if test "x$BACKEND_CC" = "x"; then3217 as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 53218 exit 13219 fi3195 # check gcc installed 3196 if test "x$BACKEND_CC" = "x"; then 3197 as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 3198 exit 1 3199 fi 3220 3200 fi 3221 3201 … … 3226 3206 3227 3207 3228 #============================================================================== 3229 # Installation paths 3230 3231 if test "x$prefix" = "xNONE"; then 3232 cfa_prefix=${ac_default_prefix} 3233 else 3234 cfa_prefix=${prefix} 3235 fi 3208 3209 3210 # Check whether --enable-target-release was given. 3211 if test "${enable_target_release+set}" = set; then : 3212 enableval=$enable_target_release; 3213 fi 3214 3215 # Check whether --enable-target-debug was given. 3216 if test "${enable_target_debug+set}" = set; then : 3217 enableval=$enable_target_debug; 3218 fi 3219 3220 # Check whether --enable-threading was given. 3221 if test "${enable_threading+set}" = set; then : 3222 enableval=$enable_threading; case "${enableval}" in 3223 yes) build_threading="yes" ;; 3224 no) build_threading="no" ;; 3225 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; 3226 esac 3227 else 3228 build_threading="yes" 3229 fi 3230 3231 3232 case "$enable_target_release" in 3233 yes) 3234 case "$enable_target_debug" in 3235 yes) 3236 build_release="yes" 3237 build_debug="yes" 3238 ;; 3239 no) 3240 build_release="yes" 3241 build_debug="no" 3242 ;; 3243 *) 3244 build_release="yes" 3245 build_debug="no" 3246 ;; 3247 esac 3248 ;; 3249 no) 3250 case "$enable_target_debug" in 3251 yes) 3252 build_release="no" 3253 build_debug="yes" 3254 ;; 3255 no) 3256 build_release="no" 3257 build_debug="no" 3258 ;; 3259 *) 3260 build_release="no" 3261 build_debug="yes" 3262 ;; 3263 esac 3264 ;; 3265 *) 3266 case "$enable_target_debug" in 3267 yes) 3268 build_release="no" 3269 build_debug="yes" 3270 ;; 3271 no) 3272 build_release="yes" 3273 build_debug="no" 3274 ;; 3275 *) 3276 build_release="yes" 3277 build_debug="yes" 3278 ;; 3279 esac 3280 ;; 3281 esac 3282 3283 if test "x$build_release" = "xyes"; then 3284 BUILD_RELEASE_TRUE= 3285 BUILD_RELEASE_FALSE='#' 3286 else 3287 BUILD_RELEASE_TRUE='#' 3288 BUILD_RELEASE_FALSE= 3289 fi 3290 3291 if test "x$build_debug" = "xyes"; then 3292 BUILD_DEBUG_TRUE= 3293 BUILD_DEBUG_FALSE='#' 3294 else 3295 BUILD_DEBUG_TRUE='#' 3296 BUILD_DEBUG_FALSE= 3297 fi 3298 3299 if test "x$build_release$build_debug" = "xnono"; then 3300 BUILD_NO_LIB_TRUE= 3301 BUILD_NO_LIB_FALSE='#' 3302 else 3303 BUILD_NO_LIB_TRUE='#' 3304 BUILD_NO_LIB_FALSE= 3305 fi 3306 3307 if test "x$build_threading" = "xyes"; then 3308 BUILD_CONCURRENCY_TRUE= 3309 BUILD_CONCURRENCY_FALSE='#' 3310 else 3311 BUILD_CONCURRENCY_TRUE='#' 3312 BUILD_CONCURRENCY_FALSE= 3313 fi 3314 3315 3316 DOifskipcompile='ifeq ($(skipcompile),yes) 3317 else' 3318 3319 3320 3321 DOendif='endif' 3322 3323 3324 3325 if test "x$prefix" = "xNONE"; then 3326 cfa_prefix=${ac_default_prefix} 3327 else 3328 cfa_prefix=${prefix} 3329 fi 3236 3330 3237 3331 cat >>confdefs.h <<_ACEOF … … 3239 3333 _ACEOF 3240 3334 3241 CFA_PREFIX=${cfa_prefix}3242 3243 3244 if test "$includedir" = '${prefix}/include'; then3245 cfa_incdir="${cfa_prefix}/include/${cfa_name}"3246 else3247 cfa_incdir=${includedir}3248 fi3335 CFA_PREFIX=${cfa_prefix} 3336 3337 3338 if test "$includedir" = '${prefix}/include'; then 3339 cfa_incdir="${cfa_prefix}/include/${cfa_name}" 3340 else 3341 cfa_incdir=${includedir} 3342 fi 3249 3343 3250 3344 cat >>confdefs.h <<_ACEOF … … 3252 3346 _ACEOF 3253 3347 3254 CFA_INCDIR=${cfa_incdir}3255 3256 3257 if test "$bindir" = '${exec_prefix}/bin'; then3258 cfa_bindir="${cfa_prefix}/bin"3259 else3260 cfa_bindir=${bindir}3261 fi3348 CFA_INCDIR=${cfa_incdir} 3349 3350 3351 if test "$bindir" = '${exec_prefix}/bin'; then 3352 cfa_bindir="${cfa_prefix}/bin" 3353 else 3354 cfa_bindir=${bindir} 3355 fi 3262 3356 3263 3357 cat >>confdefs.h <<_ACEOF … … 3265 3359 _ACEOF 3266 3360 3267 CFA_BINDIR=${cfa_bindir} 3268 3269 3270 if test "$libdir" = '${exec_prefix}/lib'; then 3271 if test "${ARCHITECTURE}" != ""; then 3272 cfa_libdir="${cfa_prefix}/lib/${cfa_name}/${ARCHITECTURE}-${CONFIGURATION}/" 3273 else 3274 cfa_libdir="${cfa_prefix}/lib/${cfa_name}/" 3275 fi 3276 else 3277 cfa_libdir="${libdir}/${ARCHITECTURE}${CONFIGURATION}" 3278 fi 3361 CFA_BINDIR=${cfa_bindir} 3362 3363 3364 if test "$libdir" = '${exec_prefix}/lib'; then 3365 cfa_libdir="${cfa_prefix}/lib/${cfa_name}" 3366 else 3367 cfa_libdir=${libdir} 3368 fi 3279 3369 3280 3370 cat >>confdefs.h <<_ACEOF … … 3282 3372 _ACEOF 3283 3373 3284 CFA_LIBDIR=${cfa_libdir} 3285 3286 3287 3288 #============================================================================== 3289 # Create variables for commonly used targets 3290 3291 TOP_SRCDIR=$ac_pwd/$ac_confdir/ 3292 TOP_BUILDDIR=$ac_pwd/ 3293 3294 3295 cat >>confdefs.h <<_ACEOF 3296 #define TOP_SRCDIR "$TOP_SRCDIR" 3297 _ACEOF 3298 3299 3300 cat >>confdefs.h <<_ACEOF 3301 #define TOP_BUILDDIR "$TOP_BUILDDIR" 3302 _ACEOF 3303 3304 3305 DRIVER_DIR=${TOP_BUILDDIR}driver/ 3306 CFACC=${DRIVER_DIR}cfa 3307 CFACPP=${DRIVER_DIR}cfa-cpp 3308 3309 3310 3311 3312 #============================================================================== 3313 # Flag variables needed to build in tree 3314 LIBCFA_SRC='${TOP_SRCDIR}/libcfa/src' 3315 BUILD_IN_TREE_FLAGS="-XCFA -t -B${DRIVER_DIR}" 3316 3317 3318 #============================================================================== 3319 # handle the list of hosts to build for 3320 for var in $ac_configure_args 3321 do 3322 #strip quotes surrouding values 3323 case $var in 3324 # skip cross compilation related arguments 3325 \'--host=*) ;; \'host_alias=*) ;; \'--build=*) ;; \'build_alias=*) ;; \'--target=*) ;; \'target_alias=*) ;; 3326 3327 # skip the target hosts 3328 \'--with-target-hosts=*) ;; 3329 3330 # append all other arguments to the sub configure arguments 3331 *) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";; 3332 esac 3333 done 3334 3335 #============================================================================== 3336 # handle the list of hosts to build for 3374 CFA_LIBDIR=${cfa_libdir} 3375 3376 3337 3377 # Make sure we can run config.sub. 3338 3378 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || … … 3406 3446 3407 3447 3408 3409 default_target="${host_cpu}:debug, ${host_cpu}:nodebug" 3410 3411 # Check whether --with-target-hosts was given. 3412 if test "${with_target_hosts+set}" = set; then : 3413 withval=$with_target_hosts; target_hosts=$withval 3414 else 3415 target_hosts=${default_target} 3416 fi 3417 3418 3419 TARGET_HOSTS=${target_hosts} 3420 3421 3422 LIBCFA_PATHS="DRIVER_DIR=${DRIVER_DIR}" 3423 3424 for i in $(echo $target_hosts | sed "s/,/ /g") 3425 do 3426 # call your procedure/other scripts here below 3427 arch_name=$(echo $i | sed -r "s/:(.*)//g") 3428 lib_config=$(echo $i | sed -r "s/(.*)://g") 3429 3430 case $lib_config in 3431 "nodebug") ;; 3432 "debug") ;; 3433 "nolib") ;; 3434 *) 3435 >&2 echo "Configuration must be 'debug', 'nodebug' or 'nolib'" 3436 exit 1 3437 ;; 3448 MACHINE_TYPE=$host_cpu 3449 3450 3451 if ! test "$host_cpu" = "$build_cpu"; then 3452 case $host_cpu in 3453 i386) 3454 CFLAGS+=" -m32 " 3455 CXXFLAGS+=" -m32 " 3456 CFAFLAGS+=" -m32 " 3457 LDFLAGS+=" -m32 " 3458 ;; 3459 i686) 3460 CFLAGS+=" -m32 " 3461 CXXFLAGS+=" -m32 " 3462 CFAFLAGS+=" -m32 " 3463 LDFLAGS+=" -m32 " 3464 ;; 3465 x86_64) 3466 CFLAGS+=" -m64 " 3467 CXXFLAGS+=" -m64 " 3468 CFAFLAGS+=" -m64 " 3469 LDFLAGS+=" -m64 " 3470 ;; 3438 3471 esac 3439 3440 3441 case $arch_name in 3442 "x64" ) cannon_arch_name="x64";; 3443 "x86-64" ) cannon_arch_name="x64";; 3444 "x86_64" ) cannon_arch_name="x64";; 3445 "x86" ) cannon_arch_name="x86";; 3446 "i386" ) cannon_arch_name="x86";; 3447 "i486" ) cannon_arch_name="x86";; 3448 "i686" ) cannon_arch_name="x86";; 3449 "Intel 80386") cannon_arch_name="x86";; 3450 "arm" ) cannon_arch_name="arm";; 3451 "ARM" ) cannon_arch_name="arm";; 3452 *) 3453 >&2 echo "Unkown architecture " $arch_name; 3454 exit 1 3455 ;; 3456 esac 3457 3458 lib_arch=${cannon_arch_name} 3459 lib_dir="libcfa/${lib_arch}-${lib_config}" 3460 3461 LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}" 3462 LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile" 3463 3464 mkdir -p ${lib_dir} 3465 echo -n "${LIBCFA_GENERAL_ARGS} " > ${lib_dir}/config.data 3466 echo -n "${LIBCFA_PATHS} " >> ${lib_dir}/config.data 3467 echo -n "ARCHITECTURE=${lib_arch} " >> ${lib_dir}/config.data 3468 echo -n "CONFIGURATION=${lib_config}" >> ${lib_dir}/config.data 3469 done 3470 3471 3472 3473 3474 3475 case $arch_name in 3476 "x64" ) cannon_arch_name="x64";; 3477 "x86-64" ) cannon_arch_name="x64";; 3478 "x86_64" ) cannon_arch_name="x64";; 3479 "x86" ) cannon_arch_name="x86";; 3480 "i386" ) cannon_arch_name="x86";; 3481 "i486" ) cannon_arch_name="x86";; 3482 "i686" ) cannon_arch_name="x86";; 3483 "Intel 80386") cannon_arch_name="x86";; 3484 "arm" ) cannon_arch_name="arm";; 3485 "ARM" ) cannon_arch_name="arm";; 3486 *) 3487 >&2 echo "Unkown architecture " $arch_name; 3488 exit 1 3489 ;; 3490 esac 3491 3492 3493 cat >>confdefs.h <<_ACEOF 3494 #define CFA_DEFAULT_CPU "$cannon_arch_name" 3495 _ACEOF 3496 3497 3498 cat >>confdefs.h <<_ACEOF 3499 #define CFA_64_CPU "x64" 3500 _ACEOF 3501 3502 3503 cat >>confdefs.h <<_ACEOF 3504 #define CFA_32_CPU "x86" 3505 _ACEOF 3506 3507 3508 #============================================================================== 3509 # CAFLAGS 3472 fi 3473 3510 3474 3511 3475 cat >>confdefs.h <<_ACEOF … … 3516 3480 3517 3481 3518 #==============================================================================3519 3482 # Checks for programs. 3520 3483 ac_ext=cpp … … 6299 6262 6300 6263 6301 #============================================================================== 6302 ac_config_files="$ac_config_files Makefile driver/Makefile src/Makefile benchmark/Makefile tests/Makefile tests/preempt_longrun/Makefile tools/Makefile tools/prettyprinter/Makefile" 6303 6304 6305 ac_config_links="$ac_config_links tests/test.py:tests/test.py" 6306 6307 6308 ac_config_files="$ac_config_files tests/config.py" 6264 ac_config_files="$ac_config_files Makefile src/driver/Makefile src/Makefile src/benchmark/Makefile src/examples/Makefile src/tests/Makefile src/tests/preempt_longrun/Makefile src/prelude/Makefile src/libcfa/Makefile tools/Makefile tools/prettyprinter/Makefile" 6265 6266 6267 ac_config_links="$ac_config_links src/tests/test.py:src/tests/test.py" 6268 6269 6270 ac_config_files="$ac_config_files src/tests/config.py" 6309 6271 6310 6272 cat >confcache <<\_ACEOF … … 6433 6395 fi 6434 6396 6397 if test -z "${BUILD_RELEASE_TRUE}" && test -z "${BUILD_RELEASE_FALSE}"; then 6398 as_fn_error $? "conditional \"BUILD_RELEASE\" was never defined. 6399 Usually this means the macro was only invoked conditionally." "$LINENO" 5 6400 fi 6401 if test -z "${BUILD_DEBUG_TRUE}" && test -z "${BUILD_DEBUG_FALSE}"; then 6402 as_fn_error $? "conditional \"BUILD_DEBUG\" was never defined. 6403 Usually this means the macro was only invoked conditionally." "$LINENO" 5 6404 fi 6405 if test -z "${BUILD_NO_LIB_TRUE}" && test -z "${BUILD_NO_LIB_FALSE}"; then 6406 as_fn_error $? "conditional \"BUILD_NO_LIB\" was never defined. 6407 Usually this means the macro was only invoked conditionally." "$LINENO" 5 6408 fi 6409 if test -z "${BUILD_CONCURRENCY_TRUE}" && test -z "${BUILD_CONCURRENCY_FALSE}"; then 6410 as_fn_error $? "conditional \"BUILD_CONCURRENCY\" was never defined. 6411 Usually this means the macro was only invoked conditionally." "$LINENO" 5 6412 fi 6435 6413 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 6436 6414 as_fn_error $? "conditional \"AMDEP\" was never defined. … … 7048 7026 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 7049 7027 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7050 " driver/Makefile") CONFIG_FILES="$CONFIG_FILESdriver/Makefile" ;;7028 "src/driver/Makefile") CONFIG_FILES="$CONFIG_FILES src/driver/Makefile" ;; 7051 7029 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 7052 "benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/Makefile" ;; 7053 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 7054 "tests/preempt_longrun/Makefile") CONFIG_FILES="$CONFIG_FILES tests/preempt_longrun/Makefile" ;; 7030 "src/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES src/benchmark/Makefile" ;; 7031 "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; 7032 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; 7033 "src/tests/preempt_longrun/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/preempt_longrun/Makefile" ;; 7034 "src/prelude/Makefile") CONFIG_FILES="$CONFIG_FILES src/prelude/Makefile" ;; 7035 "src/libcfa/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcfa/Makefile" ;; 7055 7036 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 7056 7037 "tools/prettyprinter/Makefile") CONFIG_FILES="$CONFIG_FILES tools/prettyprinter/Makefile" ;; 7057 " tests/test.py") CONFIG_LINKS="$CONFIG_LINKS tests/test.py:tests/test.py" ;;7058 " tests/config.py") CONFIG_FILES="$CONFIG_FILEStests/config.py" ;;7038 "src/tests/test.py") CONFIG_LINKS="$CONFIG_LINKS src/tests/test.py:src/tests/test.py" ;; 7039 "src/tests/config.py") CONFIG_FILES="$CONFIG_FILES src/tests/config.py" ;; 7059 7040 7060 7041 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; … … 7816 7797 7817 7798 7799 if test -z "$BUILD_RELEASE_TRUE"; then : 7800 if test -z "$BUILD_DEBUG_TRUE"; then : 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release & debug" >&5 7802 $as_echo "$as_me: Building libcfa for target: release & debug" >&6;} 7803 else 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release" >&5 7805 $as_echo "$as_me: Building libcfa for target: release" >&6;} 7806 fi 7807 else 7808 if test -z "$BUILD_DEBUG_TRUE"; then : 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: debug" >&5 7810 $as_echo "$as_me: Building libcfa for target: debug" >&6;} 7811 else 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: Running cfa without libcfa" >&5 7813 $as_echo "$as_me: Running cfa without libcfa" >&6;} 7814 fi 7815 fi 7816 7818 7817 # Final text 7819 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5
Note:
See TracChangeset
for help on using the changeset viewer.