If the compiler accepts the old for scoping rules (the scope of a variable declared inside the parentheses extends outside the for-body), define HAVE_OLD_FOR_SCOPING. Note that some compilers (notably g++ and egcs) support both new and old rules since they accept the old rules and only generate a warning.
Download the latest version of ax_cxx_old_for_scoping.m4 or browse the macro’s revision history.
Copyright © 2008 Todd Veldhuizen
Copyright © 2008 Luc Maisonobe email@example.com
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.