MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« PCRE2 32-bit HOME GNU Bc »

GNU M4

Name: GNU M4
Summary: A small macro processor runtime often used in Makefiles
License: GPL v3
Version: 1.4.20
URL: https://ftp.gnu.org/gnu/m4/m4-1.4.20.tar.xz

Average Build Time: 0.4 SBU
Used Install Space: 60 MiB

Configuration

To configure GNU M4 for install into the build root, run the following commands:

sed 's/\[\[__nodiscard__]]//' -i lib/config.hin
sed 's/test-stdalign\$(EXEEXT) //' -i tests/Makefile.in
./configure --prefix=/usr

Compilation and Installation

To compile GNU M4, run the following command:

make

Next, run the test suite:

make check

Finally, to install GNU M4 into the build tree, run the following command:

make install
Contents  
Installed Programs m4
Navigation    
« PCRE2 32-bit HOME GNU Bc »