autoconf: C++ Compiler

1 
1 5.10.4 C++ Compiler Characteristics
1 -----------------------------------
1 
1  -- Macro: AC_PROG_CXX ([COMPILER-SEARCH-LIST])
1      Determine a C++ compiler to use.  Check whether the environment
1      variable `CXX' or `CCC' (in that order) is set; if so, then set
1      output variable `CXX' to its value.
1 
1      Otherwise, if the macro is invoked without an argument, then
1      search for a C++ compiler under the likely names (first `g++' and
1      `c++' then other names).  If none of those checks succeed, then as
1      a last resort set `CXX' to `g++'.
1 
1      This macro may, however, be invoked with an optional first argument
1      which, if specified, must be a blank-separated list of C++
1      compilers to search for.  This just gives the user an opportunity
1      to specify an alternative search list for the C++ compiler.  For
1      example, if you didn't like the default order, then you could
1      invoke `AC_PROG_CXX' like this:
1 
1           AC_PROG_CXX([gcc cl KCC CC cxx cc++ xlC aCC c++ g++])
1 
1      If using the GNU C++ compiler, set shell variable `GXX' to `yes'.
1      If output variable `CXXFLAGS' was not already set, set it to `-g
1      -O2' for the GNU C++ compiler (`-O2' on systems where G++ does not
1      accept `-g'), or `-g' for other compilers.  If your package does
1      not like this default, then it is acceptable to insert the line `:
1      ${CXXFLAGS=""}' after `AC_INIT' and before `AC_PROG_CXX' to select
1      an empty default instead.
1 
1 
1  -- Macro: AC_PROG_CXXCPP
1      Set output variable `CXXCPP' to a command that runs the C++
1      preprocessor.  If `$CXX -E' doesn't work, `/lib/cpp' is used.  It
1      is portable to run `CXXCPP' only on files with a `.c', `.C',
1      `.cc', or `.cpp' extension.
1 
1      Some preprocessors don't indicate missing include files by the
1      error status.  For such preprocessors an internal variable is set
1      that causes other macros to check the standard error from the
1      preprocessor and consider the test failed if any warnings have
1      been reported.  However, it is not known whether such broken
1      preprocessors exist for C++.
1 
1  -- Macro: AC_PROG_CXX_C_O
1      Test whether the C++ compiler accepts the options `-c' and `-o'
1      simultaneously, and define `CXX_NO_MINUS_C_MINUS_O', if it does
1      not.
1