Next: , Previous: , Up: The Macros  





This macro searches for a C++ compiler that generates native executables, that is a C++ compiler that surely is not a cross-compiler. This can be useful if you have to generate source code at compile-time like for example GCC does.

The macro sets the CXX_FOR_BUILD and CXXCPP_FOR_BUILD macros to anything needed to compile or link (CXX_FOR_BUILD) and preprocess (CXXCPP_FOR_BUILD). The value of these variables can be overridden by the user by specifying a compiler with an environment variable (like you do for standard CXX).

Source Code

Download the latest version of ax_prog_cxx_for_build.m4 or browse the macro’s revision history.


Copyright © 2008 Paolo Bonzini
Copyright © 2012 Avionic Design GmbH

Based on the AX_PROG_CC_FOR_BUILD macro by Paolo Bonzini.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.