companion_tools/m4: Add m4 tool

Add version 1.4.13 of m4 as a companion tool

Signed-off-by: Richard Strand <richard.strand@icomera.com>
This commit is contained in:
Richard Strand 2010-01-12 21:47:14 +00:00
parent df2e088c8f
commit e3a8a01025
2 changed files with 32 additions and 0 deletions

View File

@ -10,6 +10,7 @@ config COMP_TOOLS
prompt "Build some companion tools"
help
Crosstool-NG relies on some external tools to be recent enough, namely:
m4 >= 1.4.12
autoconf >= 2.63
If your system has older versions, we can build them for you,
@ -17,6 +18,10 @@ config COMP_TOOLS
if COMP_TOOLS
config COMP_TOOLS_m4
bool
prompt "m4"
config COMP_TOOLS_autoconf
bool
prompt "autoconf"

View File

@ -0,0 +1,27 @@
# Build script for m4
CT_M4_VERSION=1.4.13
do_companion_tools_m4_get() {
CT_GetFile "m4-${CT_M4_VERSION}" \
{ftp,http}://ftp.gnu.org/gnu/m4
}
do_companion_tools_m4_extract() {
CT_Extract "m4-${CT_M4_VERSION}"
CT_Patch "m4-${CT_M4_VERSION}"
}
do_companion_tools_m4_build() {
CT_DoStep EXTRA "Installing m4"
mkdir -p "${CT_BUILD_DIR}/build-m4"
CT_Pushd "${CT_BUILD_DIR}/build-m4"
CT_DoExecLog ALL \
"${CT_SRC_DIR}/m4-${CT_M4_VERSION}/configure" \
--prefix="${CT_TOOLS_OVERIDE_DIR}"
CT_DoExecLog ALL make
CT_DoExecLog ALL make install
CT_Popd
CT_EndStep
}