Next: Automatic dependency tracking, Previous: Building a library, Up: Building Programs and Libraries [Index]
Although the GNU standards prohibit it, some GNU programs are written in ANSI C; see FIXME. This is possible because each source file can be “de-ANSI-fied” before the actual compilation takes place.
If the Makefile.am variable AUTOMAKE_OPTIONS
(Changing Automake’s Behavior) contains the option ansi2knr
then code to handle de-ANSI-fication is inserted into the generated
Makefile.in.
This causes each source file to be treated as ANSI C. If an ANSI C compiler is available, it is used.
This support requires the source files ansi2knr.c and
ansi2knr.1 to be in the same directory as the ANSI C source;
these files are distributed with Automake.
Also, the package configure.in must call the macro
fp_C_PROTOTYPES
.