Changeset be8bd88 for configure


Ignore:
Timestamp:
Mar 8, 2017, 3:22:50 PM (9 years ago)
Author:
Aaron Moss <a3moss@…>
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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
031a2c95, 0e7ea335
Parents:
87c3bef (diff), 6363ad1 (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r87c3bef rbe8bd88  
    668668CFA_BACKEND_CC
    669669BACKEND_CC
     670CFA_NAME
    670671MAINT
    671672MAINTAINER_MODE_FALSE
     
    741742enable_silent_rules
    742743enable_maintainer_mode
     744with_cfa_name
    743745with_backend_compiler
    744746enable_target_release
     
    13971399  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    13981400  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     1401  --with-cfa-name=NAME     NAME too which cfa will be installed
    13991402  --with-backend-compiler=PROGRAM     PROGRAM that performs the final code compilation (must be gcc-compatible)
    14001403
     
    30013004                        # may require auto* software to be installed
    30023005
     3006# Allow program name tansformation
     3007# will fille program_transform_name with appropriate sed regex
     3008
     3009#autoconf escapes $ and \ since automake wiill un-escape them.
     3010#Since we need to use the sed transform in autoconf we need to manualy un-escape these characters
     3011name_transform=`echo ${program_transform_name} | sed 's/\\$\\$/\\$/g' | sed 's/\\\\\\\/\\\/g'`
     3012cfa_name=`echo cfa | sed ${name_transform}`
     3013cc1_name=`echo cc1 | sed ${name_transform}`
     3014cpp_name=`echo cfa-cpp | sed ${name_transform}`
     3015
     3016#Trasforming cc1 will break compilation
     3017if ! test "${cc1_name}" = "cc1"; then
     3018    as_fn_error $? "Program transform must not modify cc1.
     3019                --program-sufix and --program-prefix not supported.
     3020                Use -program-transform-name='s/cfa$/[Desired name here]/' instead" "$LINENO" 5
     3021fi
     3022#We could support transforming cfa-cpp but since it is located in a unique subfolder we don't need to
     3023if ! test "${cpp_name}" = "cfa-cpp"; then
     3024    as_fn_error $? "Program transform must not modify cfa-cpp.
     3025                --program-sufix and --program-prefix not supported.
     3026                Use -program-transform-name='s/cfa$/[Desired name here]/' instead" "$LINENO" 5
     3027fi
     3028
     3029
     3030# Check whether --with-cfa-name was given.
     3031if test "${with_cfa_name+set}" = set; then :
     3032  withval=$with_cfa_name; cfa_name=$withval
     3033else
     3034  cfa_name="cfa"
     3035fi
     3036
     3037
     3038#Define the new name of the installed command
     3039CFA_NAME=${cfa_name}
     3040
     3041
    30033042rm -f version
    30043043echo ${PACKAGE_VERSION} > version               # file containing version number for other tools
     
    32383277
    32393278if test "$includedir" = '${prefix}/include'; then
    3240         cfa_incdir="${cfa_prefix}/include/cfa"
     3279        cfa_incdir="${cfa_prefix}/include/${cfa_name}"
    32413280else
    32423281        cfa_incdir=${includedir}
     
    32643303
    32653304if test "$libdir" = '${exec_prefix}/lib'; then
    3266         cfa_libdir=${cfa_prefix}/lib
     3305        cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
    32673306else
    32683307        cfa_libdir=${libdir}
Note: See TracChangeset for help on using the changeset viewer.