Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    ra62cbb3 r6363ad1  
    1717AM_INIT_AUTOMAKE
    1818AM_MAINTAINER_MODE(enable)                      # may require auto* software to be installed
     19
     20# Allow program name tansformation
     21# will fill program_transform_name with appropriate sed regex
     22AC_ARG_PROGRAM
     23
     24#Trasforming cc1 will break compilation
     25if ! test "${program_transform_name}" = ""; then
     26    AC_MSG_ERROR([Program transform not supported.
     27                Use --with-cfa-name='[[Desired name here]]' instead])
     28fi
     29
     30AC_ARG_WITH(cfa-name,
     31        [  --with-cfa-name=NAME     NAME too which cfa will be installed],
     32        cfa_name=$withval, cfa_name="cfa")
     33
     34#Define the new name of the installed command
     35AC_SUBST(CFA_NAME, ${cfa_name})
    1936
    2037rm -f version
     
    129146
    130147if test "$includedir" = '${prefix}/include'; then
    131         cfa_incdir="${cfa_prefix}/include/cfa"
     148        cfa_incdir="${cfa_prefix}/include/${cfa_name}"
    132149else
    133150        cfa_incdir=${includedir}
     
    145162
    146163if test "$libdir" = '${exec_prefix}/lib'; then
    147         cfa_libdir=${cfa_prefix}/lib
     164        cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
    148165else
    149166        cfa_libdir=${libdir}
Note: See TracChangeset for help on using the changeset viewer.