GNU M4 1.4.19 User Manual

GNU M4 is a powerful macro processor that can expand macros into one or more output files. It can be used to create complex template files that can be used to generate a variety of different types of text files, including software package configuration files, source code, and documentation.


GNU M4 1.4.19 User Manual - cover page
Brand
GNU
Category
Other software
Document type
User Manual
Language
English
Pages
149
File format
PDF
File size
579 KB
Published
19 October, 2023
Updated
19 October, 2023
MD5 checksum
09A0E8C8262CD9B34E805DBF609AEDD7

About this manual

This manual documents GNU M4 version 1.4.19, a macro processor implementation of the traditional UNIX m4 language. It serves as a comprehensive guide for users and developers, detailing how to invoke the program, define and use macros, handle text and arithmetic, and debug scripts. The document is licensed under the GNU Free Documentation License.

What's inside

  • Introduction to m4
  • Invoking m4
  • Lexical and syntactic conventions
  • How to invoke macros
  • How to define new macros
  • Conditionals, loops, and recursion
  • How to debug macros and input
  • File inclusion
  • Diverting and undiverting output
  • Macros for text handling

Specifications

Version1.4.19
Release Date28 May 2021
CompatibilitySystem V Release 4

Frequently asked questions

What is GNU M4?

GNU M4 is an implementation of the traditional UNIX macro processor that copies input to output while expanding macros.

Is GNU M4 compatible with Autoconf?

Yes, GNU Autoconf requires GNU m4 for generating configure scripts.

How do I report a bug in GNU M4?

You should isolate the problem to the smallest possible input file and send the file along with the exact results and expected results.

Download PDF (579 KB)

More GNU Manuals


View all GNU manuals →