8.10 Objective C Support

Automake includes some support for Objective C.

Any package including Objective C code must define the output variable OBJC in configure.ac; the simplest way to do this is to use the AC_PROG_OBJC macro (see Particular Program Checks in The Autoconf Manual).

A few additional variables are defined when an Objective C source file is seen:

OBJC

The name of the Objective C compiler.

OBJCFLAGS

Any flags to pass to the Objective C compiler.

AM_OBJCFLAGS

The maintainer’s variant of OBJCFLAGS.

OBJCCOMPILE

The command used to compile an Objective C source file. The file name is appended to form the complete command line.

OBJCLINK

The command used to link an Objective C program.