Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r6e4b913 rd2a182e  
    1010
    1111if test "x${CXXFLAGS}" = "x"; then
    12    export CXXFLAGS="-std=c++11 -g ${CXXFLAGS}"  # defaults, no -O2 for debugging and failures
     12   export CXXFLAGS="-std=c++11 -g -O2 ${CXXFLAGS}"
    1313else
    14    export CXXFLAGS="-std=c++11 ${CXXFLAGS}"     # flags from configure command
     14   export CXXFLAGS="-std=c++11 ${CXXFLAGS}"
    1515fi
    1616
    1717AM_INIT_AUTOMAKE
    18 AM_MAINTAINER_MODE(enable)                      # may require auto* software to be installed
     18AM_MAINTAINER_MODE(enable)      # may require auto* software to be installed
    1919
    2020# Installation paths
    2121
    22 AC_ARG_WITH(backend-compiler,
    23         [  --with-backend-compiler=PROGRAM     PROGRAM that performs the final code compilation (must be gcc-compatible) ],
     22AC_ARG_WITH(backend-compiler, 
     23        [  --with-backend-compiler=PROGRAM     PROGRAM that performs the final code compilation (must be gcc-compatible) ], 
    2424        backendcompiler=$withval, backendcompiler="")
    25 if test "x$backendcompiler" != "x"; then
     25if test "x$backendcompiler" != x; then
    2626        BACKEND_CC=${backendcompiler}
    2727else
    28         AC_PATH_PROG(BACKEND_CC, gcc, [])       # check gcc installed
     28        AC_PATH_PROG(BACKEND_CC, gcc, [])
    2929        if test "x$BACKEND_CC" = "x"; then
    3030                AC_MSG_ERROR(some version of gcc is needed. Get it at ftp://ftp.gnu.org)
     
    3939else
    4040        cfa_prefix=${prefix}
    41 fi
     41fi 
    4242AC_DEFINE_UNQUOTED(CFA_PREFIX, "${cfa_prefix}", [Location of cfa install.])
    4343AC_SUBST(CFA_PREFIX, ${cfa_prefix})
     
    4747else
    4848        cfa_incdir=${includedir}
    49 fi
     49fi 
    5050AC_DEFINE_UNQUOTED(CFA_INCDIR, "${cfa_incdir}", [Location of include files.])
    5151AC_SUBST(CFA_INCDIR, ${cfa_incdir})
     
    5555else
    5656        cfa_bindir=${bindir}
    57 fi
     57fi 
    5858AC_DEFINE_UNQUOTED(CFA_BINDIR, "${cfa_bindir}", [Location of cfa command.])
    5959AC_SUBST(CFA_BINDIR, ${cfa_bindir})
     
    6363else
    6464        cfa_libdir=${libdir}
    65 fi
     65fi 
    6666AC_DEFINE_UNQUOTED(CFA_LIBDIR, "${cfa_libdir}", [Location of cc1 and cfa-cpp commands.])
    6767AC_SUBST(CFA_LIBDIR, ${cfa_libdir})
    68 
    69 AC_DEFINE_UNQUOTED(CFA_FLAGS, "${CFAFLAGS}", [compilation flags for cfa libraries and test programs.])
    70 AC_SUBST(CFA_FLAGS, ${CFAFLAGS})
    7168
    7269# Checks for programs.
     
    109106        src/Makefile
    110107        src/examples/Makefile
    111         src/tests/Makefile
    112108        src/libcfa/Makefile
    113109        ])
Note: See TracChangeset for help on using the changeset viewer.