Questions tagged [m4]

m4 is a general purpose macro processing language developed by Brian Kernighan and Dennis Ritchie.

m4 is a general purpose macro processing language developed by Brian Kernighan and Dennis Ritchie in 1977.

Various implementations of m4 exist, e.g. those in FreeBSD, NetBSD, OpenBSD, and the GNU implementation commonly found in Linux distributions.

GNU m4 is used extensively by GNU Autoconf. The GNU implementation addresses many limitations found in prior m4 implementations, like limits on line lengths and the number of macros in use.

212 questions
-1
votes
1 answer

m4 stops processing if new value contains hash (#)

How to force m4 to continue processing line if value has hash? $ echo a a a | m4 -D a=B+ B+ B+ B+ $ echo a a a | m4 -D a=B# B# a a I want identical behavior for second case - is it possible? (all three occurrences to be replaced). In my…
noonex
  • 1,975
  • 1
  • 16
  • 18
-2
votes
1 answer

Linux: I can not understand a `m4` command

My work is converting Linux command into CMake execute_process(COMMAND ...), and there are some differences between them, so i need to understand each Linux command. But this m4 command really beat me. The m4 command as below: m4 -Isource/analyzer/…
Chao Zhang
  • 190
  • 2
  • 15
1 2 3
14
15