Changeset 8e485801 for automake


Ignore:
Timestamp:
Aug 15, 2018, 11:37:10 AM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
7bd4cc9
Parents:
202ad72
Message:

configure no longer requires install directories to exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • automake/cfa.m4

    r202ad72 r8e485801  
    66                cfa_prefix=${prefix}
    77        fi
    8         cfa_prefix="$(readlink -f ${cfa_prefix})/"
     8        cfa_prefix="$(readlink -m ${cfa_prefix})/"
    99        AC_DEFINE_UNQUOTED(CFA_PREFIX, "${cfa_prefix}", [Location of cfa install.])
    1010        AC_SUBST(CFA_PREFIX, ${cfa_prefix})
    1111
    1212        if test "$includedir" = '${prefix}/include'; then
    13                 cfa_incdir="${cfa_prefix}/include/${cfa_name}"
     13                cfa_incdir="${cfa_prefix}include/${cfa_name}"
    1414        else
    1515                cfa_incdir=${includedir}
    1616        fi
    17         cfa_incdir="$(readlink -f ${cfa_incdir})/"
     17        cfa_incdir="$(readlink -m ${cfa_incdir})/"
    1818        AC_DEFINE_UNQUOTED(CFA_INCDIR, "${cfa_incdir}", [Location of include files.])
    1919        AC_SUBST(CFA_INCDIR, ${cfa_incdir})
    2020
    2121        if test "$bindir" = '${exec_prefix}/bin'; then
    22                 cfa_bindir="${cfa_prefix}/bin"
     22                cfa_bindir="${cfa_prefix}bin"
    2323        else
    2424                cfa_bindir=${bindir}
    2525        fi
    26         cfa_bindir="$(readlink -f ${cfa_bindir})/"
     26        cfa_bindir="$(readlink -m ${cfa_bindir})/"
    2727        AC_DEFINE_UNQUOTED(CFA_BINDIR, "${cfa_bindir}", [Location of cfa command.])
    2828        AC_SUBST(CFA_BINDIR, ${cfa_bindir})
     
    3030        if test "$libdir" = '${exec_prefix}/lib'; then
    3131                if test "${ARCHITECTURE}" != ""; then
    32                         cfa_libdir="${cfa_prefix}/lib/${cfa_name}/${ARCHITECTURE}-${CONFIGURATION}/"
     32                        cfa_libdir="${cfa_prefix}lib/${cfa_name}/${ARCHITECTURE}-${CONFIGURATION}/"
    3333                else
    34                         cfa_libdir="${cfa_prefix}/lib/${cfa_name}/"
     34                        cfa_libdir="${cfa_prefix}lib/${cfa_name}/"
    3535                fi
    3636        else
    3737                cfa_libdir="${libdir}/${ARCHITECTURE}${CONFIGURATION}"
    3838        fi
    39         cfa_libdir="$(readlink -f ${cfa_libdir})/"
     39        cfa_libdir="$(readlink -m ${cfa_libdir})/"
    4040        AC_DEFINE_UNQUOTED(CFA_LIBDIR, "${cfa_libdir}", [Location of cc1 and cfa-cpp commands.])
    4141        AC_SUBST(CFA_LIBDIR, ${cfa_libdir})
Note: See TracChangeset for help on using the changeset viewer.