Name

m4

Synopsis

m4 [options] [macros] [files]

Description

Macro processor for C and other files.

Options

-e, --interactive

Operate interactively, ignoring interrupts.

-d flags, --debug= flags

Specify flag-level debugging.

-l n, --arglength= n

Specify the length of debugging output.

-o file, --error-output= file

Place output in file. Despite the name, print error messages on standard error.

-p, --prefix-built-ins

Prepend m4_ to all built-in macro names.

-s, --synclines

Insert #line directives for the C preprocessor.

-B n

Set the size of the push-back and argument collection buffers to n (default is 4096).

-D name[= value], --define= name[= value]

Define name as value or, if value is not specified, define name as null.

-E, --fatal-warnings

Consider all warnings to be fatal, and exit after the first of them.

-F file, --freeze-state file

Record m4’s frozen state in file, for later reloading.

-G, --traditional

Behave like traditional m4, ignoring GNU extensions.

-H n, --hashsize= n

Set symbol-table hash array to n (default is 509).

-I directory, --include= directory

Search directory for include files.

-Q, --quiet, --silent

Suppress warning messages.

-R file, --reload-state file

Load state from file before starting execution.

-U name, --undefine= name

Undefine name.

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.