macOS
brew install m4local Homebrew formula metadata
brew
m4 のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install m4local Homebrew formula metadata
sudo apk add m4Alpine Linux edge package indexes · m4 · ソース: dl-cdn.alpinelinux.org
sudo dnf install m4Fedora Rawhide package metadata · m4 · ソース: dl.fedoraproject.org
nix profile install nixpkgs#m4nixpkgs package indexes · m4 · ソース: raw.githubusercontent.com
sudo pacman -S m4Arch Linux sync databases · m4 · ソース: geo.mirror.pkgbuild.com
sudo zypper install m4openSUSE Tumbleweed package metadata · m4 · ソース: download.opensuse.org
scoop install main/m4Scoop official bucket manifest trees · bucket/m4.json · ソース: api.github.com
概要
Macro processing language
履歴
GNU M4 is the GNU implementation of the traditional Unix `m4` macro processor. It expands built-in and user-defined macros while copying input to output and is used both directly and as infrastructure for other build tools.
The m4 lineage is older than GNU: the GNU manual traces macro-language ideas to 1950s and 1960s work by Alan Perlis, Doug McIlroy, Christopher Strachey, and Bell Labs macro processors such as GPM and M6.
Kernighan and Ritchie developed the original `m4` at Bell Labs in 1977. GNU M4 was released by Rene Seindal in 1990 to remove artificial limits in many traditional implementations, including line length, macro size, and macro-count limits.
Francois Pinard maintained GNU M4 in the early 1990s and released version 1.4 in 1994. After a long stable period, maintenance resumed with Paul Eggert, Gary V. Vaughan, Eric Blake, and later releases in the 1.4 series through 1.4.20.
The GNU manual notes that `m4` is widely available on Unix systems and standardized by POSIX. Many users install GNU M4 indirectly because GNU Autoconf requires it to generate configure scripts.
The supplied package-manager facts show the package across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, Nix, MacPorts, Scoop, and openSUSE, which matches its role as a baseline development dependency.
GNU M4 can be invoked as `m4 [option...] [file...]`. It supports macro expansion, file inclusion, shell-command execution, arithmetic, text manipulation, and recursion.
In package builds, direct human-written M4 macros are less common than Autoconf usage, but maintainers still care about GNU M4 compatibility because configure-generation failures often trace back to macro behavior.
GNU M4 is one of the quiet pieces of the Autotools stack: many source packages do not need it at runtime, but build-from-VCS workflows and autoreconf pipelines often need the GNU implementation.
It matters to package maintainers because POSIX `m4`, vendor `m4`, and GNU M4 have historically differed in limits and extensions, and Autoconf intentionally standardized on GNU M4 to avoid those limitations.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
m4 | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://www.gnu.org/software/m4/
インストールメタデータ
| パッケージキー | brew:m4 |
|---|---|
| バージョン | 1.4.21 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/m4 |
| ホームページ | https://www.gnu.org/software/m4/ |
| リポジトリ | https://git.savannah.gnu.org/r/m4.git |
| 上流ドキュメント | https://www.gnu.org/software/m4/manual |
| ライセンス | GPL-3.0-or-later |
| ソースアーカイブ | https://ftpmirror.gnu.org/gnu/m4/m4-1.4.21.tar.xz |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | m4 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
m4 1.4.19-8
macro processing language
https://www.gnu.org/software/m4/
sudo apt install m4m4-doc 1.4.19-8
Documentation for GNU m4
https://www.gnu.org/software/m4/
sudo apt install m4-docm4
nix profile install nixpkgs#m4m4 1.4.19-4build1
macro processing language
https://www.gnu.org/software/m4/
sudo apt install m4m4-doc 1.4.19-4build1
Documentation for GNU m4
https://www.gnu.org/software/m4/
sudo apt install m4-docm4 1.4.20-r1
GNU macro processor
https://www.gnu.org/software/m4
sudo apk add m4m4-doc 1.4.20-r1
GNU macro processor (documentation)
https://www.gnu.org/software/m4
sudo apk add m4-docm4 1.4.21-1.fc45
GNU macro processor
https://www.gnu.org/software/m4/
sudo dnf install m4m4 1.4.21-2
The GNU macro processor
https://www.gnu.org/software/m4
sudo pacman -S m4m4 1.4.21-1.2
GNU m4
https://www.gnu.org/software/m4/
sudo zypper install m4m4
sudo port install m4main/m4
scoop install main/m4ソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.