Next: , Previous: , Up: The Macros  





This macro retrieves the compiler version and returns it in the cache variable $ax_cv_c_compiler_version for C and $ax_cv_cxx_compiler_version for C++.

Version is returned as epoch:major.minor.patchversion

Epoch is used in order to have an increasing version number in case of marketing change.

Epoch use: * borland compiler use chronologically 0turboc for turboc era,

   1borlanc BORLANDC++ before 5, 2cppbuilder for cppbuilder era,
  3borlancpp for return of BORLANDC++ (after version 5.5),
  4cppbuilder for cppbuilder with year version,
  and 5xe for XE era.

An empty string is returned otherwise.

Source Code

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


Copyright © 2014 Bastien ROUCARIES

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.