linux自动安装m4,linux m4命令

本文详细介绍M4宏处理器的安装依赖,包括Bash等基本工具,以及预处理器的使用方法如-D选项定义宏和-E选项处理警告。操作模式、冻结状态文件和调试选项也一并介绍。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

M4 安装依赖关系M4 依赖于: Bash, Binutils, Coreutils, Diffutils, GCC,

Gettext, Glibc, Grep, Make, Perl, Sed.

m4手册

man m4:

NAME

m4 - macro processor

SYNOPSIS

m4 [OPTION]... [FILE]...

DESCRIPTION

Process macros in FILEs. If no FILE or if FILE is ‘-’, standard input

is read.

Mandatory or optional arguments to long options are mandatory or

optional for short options too.

Operation modes:

--help display this help and exit

--version

output version information and exit

-E, --fatal-warnings

once: warnings become errors, twice: stop execution at firsterror

-i, --interactive

unbuffer output, ignore interrupts

-P, --prefix-builtins

force a ‘m4_’ prefix to all builtins

-Q, --quiet, --silent

suppress some warnings for builtins

--warn-macro-sequence[=REGEXP]

warn if macro definition matches REGEXP, default

$({[^}]*}|[0-9][0-9] )

Preprocessor features:

-D, --define=NAME[=VALUE]

define NAME as having VALUE, or empty

-I, --include=DIRECTORY

append DIRECTORY to include path

-s, --synclines

generate ‘#line NUM "FILE"’ lines

-U, --undefine=NAME

undefine NAME

Limits control:

-G, --traditional

suppress all GNU extensions

-H, --hashsize=PRIME

set symbol lookup hash table size [509]

-L, --nesting-limit=NUMBER

change artificial nesting limit [1024]

Frozen state files:

-F, --freeze-state=FILE

produce a frozen state on FILE at end

-R, --reload-state=FILE

reload a frozen state from FILE at start

Debugging:

-d, --debug[=FLAGS]

set debug level (no FLAGS implies ‘aeq’)

--debugfile=FILE

redirect debug and trace output

-l, --arglength=NUM

restrict macro tracing size

-t, --trace=NAME

trace NAME when it is defined

FLAGS is any of:

a show actual arguments

c show before collect, after collect and after call

e show expansion

f say current input file namei show changes in input files

l say current input line number

p show results of path searches

q quote values as necessary, with a or e flag

t trace for all

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值