2 Questions:
- What do you mean by "flagged"? Do you get an error or warning? If so, could you post the message?
- Is this code part of the configure script itself, or part of the package source?
---------- Post updated at 07:54 ---------- Previous update was at 07:50 ----------
Quote from the
GCC documentation
Quote:
__GNUC__
__GNUC_MINOR__
__GNUC_PATCHLEVEL__
These macros are defined by all GNU compilers that use the C preprocessor: C, C++, Objective-C and Fortran. Their values are the major version, minor version, and patch level of the compiler, as integer constants. For example, GCC 3.2.1 will define __GNUC__ to 3, __GNUC_MINOR__ to 2, and __GNUC_PATCHLEVEL__ to 1. These macros are also defined if you invoke the preprocessor directly.
So your example seems to be a cheap trick to check the compiler version. The reason might be that there are some problems if it's compiled with GCC version 3, and this code disables/enables some compiler features or code parts that caused that problem.