public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Richard Strand <richard.strand@icomera.com>
To: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Cc: crossgcc@sourceware.org
Subject: [PATCH 1 of 3] companion_tools/m4: Add m4 tool
Date: Tue, 12 Jan 2010 22:05:00 -0000	[thread overview]
Message-ID: <60b7ebc4709a514df74d.1263333868@richard-laptop> (raw)
In-Reply-To: <patchbomb.1263333867@richard-laptop>

# HG changeset patch
# User Richard Strand <richard.strand@icomera.com>
# Date 1263332834 0
# Node ID 60b7ebc4709a514df74d1a3db46b75a1979751b0
# Parent  5f222264bb54d2c75f1efb09937dcdb5328bdd85
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>

diff -r 5f222264bb54 -r 60b7ebc4709a config/companion_tools.in
--- a/config/companion_tools.in	Tue Jan 12 21:09:30 2010 +0100
+++ b/config/companion_tools.in	Tue Jan 12 21:47:14 2010 +0000
@@ -10,6 +10,7 @@
     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 @@
 
 if COMP_TOOLS
 
+config COMP_TOOLS_m4
+    bool
+    prompt "m4"
+
 config COMP_TOOLS_autoconf
     bool
     prompt "autoconf"
diff -r 5f222264bb54 -r 60b7ebc4709a scripts/build/companion_tools/100-m4.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/build/companion_tools/100-m4.sh	Tue Jan 12 21:47:14 2010 +0000
@@ -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
+}

--
For unsubscribe information see http://sourceware.org/lists.html#faq

  reply	other threads:[~2010-01-12 22:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-12 22:05 [PATCH 0 of 3] Add m4, automake and libtool as companion tools Richard Strand
2010-01-12 22:05 ` Richard Strand [this message]
2010-01-12 22:05 ` [PATCH 3 of 3] companion_tools/libtool: Add libtool tool Richard Strand
2010-01-12 22:05 ` [PATCH 2 of 3] companion_tools/automake: Add automake tool Richard Strand
2010-01-12 23:01 ` [PATCH 0 of 3] Add m4, automake and libtool as companion tools Yann E. MORIN
2010-01-12 23:31   ` Richard Strand
2010-01-13 23:10     ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=60b7ebc4709a514df74d.1263333868@richard-laptop \
    --to=richard.strand@icomera.com \
    --cc=crossgcc@sourceware.org \
    --cc=yann.morin.1998@anciens.enib.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).