mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas@biessmann.de>
To: ptxdist@pengutronix.de
Cc: "Andreas Bießmann" <andreas@biessmann.de>
Subject: [ptxdist] [PATCH 5/5] configrue.ac: add check for md5sum from GNU coreutils
Date: Fri, 21 Oct 2011 21:53:32 +0200	[thread overview]
Message-ID: <1319226812-41219-6-git-send-email-andreas@biessmann.de> (raw)
In-Reply-To: <1319226812-41219-1-git-send-email-andreas@biessmann.de>

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
---
 Makefile.in  |    1 +
 configure.ac |    9 +++++++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 3c9441c..53d4f83 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -81,6 +81,7 @@ install-environment: all dirty-check
 	@ln -sf @GNUCHMOD@ $(DESTDIR)$(instdir)/bin/chmod
 	@ln -sf @GNUMV@ $(DESTDIR)$(instdir)/bin/mv
 	@ln -sf @GNURM@ $(DESTDIR)$(instdir)/bin/rm
+	@ln -sf @GNUMD5SUM@ $(DESTDIR)$(instdir)/bin/md5sum
 
 dist: dirty-check
 	@rm -rf "$(project)"
diff --git a/configure.ac b/configure.ac
index 731e1f2..0c943ff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -160,6 +160,15 @@ AC_CACHE_CHECK([for rm from GNU coreutils], [ac_cv_path_GNURM],
                                              [AC_MSG_ERROR([could not find rm from GNU coreutils])])])
 AC_SUBST([GNURM], [$ac_cv_path_GNURM])
 
+dnl check for md5sum GNU version
+AC_CACHE_CHECK([for md5sum from GNU coreutils], [ac_cv_path_GNUMD5SUM],
+               [AC_PATH_PROGS_FEATURE_CHECK([GNUMD5SUM], [gmd5sum md5sum.gnu md5sum],
+                                            [[gnumd5sumout=`$ac_path_GNUMD5SUM --version 2>/dev/null | $SED -ne "s/.*\(GNU\) coreutils.*/\1/p"`
+                                             test "x$gnumd5sumout" = xGNU \
+                                                 && ac_cv_path_GNUMD5SUM=$ac_path_GNUMD5SUM ac_path_GNUMD5SUM_found=:]],
+                                             [AC_MSG_ERROR([could not find md5sum from GNU coreutils])])])
+AC_SUBST([GNUMD5SUM], [$ac_cv_path_GNUMD5SUM])
+
 dnl Check for egrep
 AC_PROG_EGREP
 
-- 
1.7.7


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2011-10-21 19:54 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-21 19:53 [ptxdist] [PATCH 0/5] add install-environment Andreas Bießmann
2011-10-21 19:53 ` [ptxdist] [PATCH 1/5] " Andreas Bießmann
2011-10-21 19:53 ` [ptxdist] [PATCH 2/5] configure.ac: add check for chmod from GNU coreutils Andreas Bießmann
2011-10-27 15:10   ` Michael Olbrich
2011-10-21 19:53 ` [ptxdist] [PATCH 3/5] configure.ac: add check for mv " Andreas Bießmann
2011-10-21 19:53 ` [ptxdist] [PATCH 4/5] configrue.ac: add check for rm " Andreas Bießmann
2011-10-21 19:53 ` Andreas Bießmann [this message]
2011-11-25  0:40 ` [ptxdist] [PATCH v2 0/2] add install-environment Andreas Bießmann
2011-11-25  0:40   ` [ptxdist] [PATCH v2 1/2] " Andreas Bießmann
2011-12-01 18:22     ` Michael Olbrich
2011-12-01 22:11       ` Andreas Bießmann
2011-11-25  0:40   ` [ptxdist] [PATCH v2 2/2] configure.ac: add check for GNU coreutils Andreas Bießmann
2011-12-01 18:24     ` Michael Olbrich
2011-12-01 23:30   ` [ptxdist] [PATCH v3 0/4] add environment Andreas Bießmann
2011-12-02  7:51     ` [ptxdist] [PATCH v4 " Andreas Bießmann
2011-12-02 15:27       ` Michael Olbrich
2011-12-02  7:51     ` [ptxdist] [PATCH v4 1/4] add environment make target Andreas Bießmann
2011-12-02  7:51     ` [ptxdist] [PATCH v4 2/4] configure.ac: add check for GNU coreutils Andreas Bießmann
2011-12-02  7:51     ` [ptxdist] [PATCH v4 3/4] add awk to environment Andreas Bießmann
2011-12-02  7:51     ` [ptxdist] [PATCH v4 4/4] add python " Andreas Bießmann
2011-12-01 23:30   ` [ptxdist] [PATCH v3 1/4] add environment make target Andreas Bießmann
2011-12-01 23:41     ` Andreas Bießmann
2011-12-01 23:30   ` [ptxdist] [PATCH v3 2/4] configure.ac: add check for GNU coreutils Andreas Bießmann
2011-12-01 23:30   ` [ptxdist] [PATCH v3 3/4] add awk to environment Andreas Bießmann
2011-12-01 23:30   ` [ptxdist] [PATCH v3 4/4] add python " Andreas Bießmann

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=1319226812-41219-6-git-send-email-andreas@biessmann.de \
    --to=andreas@biessmann.de \
    --cc=ptxdist@pengutronix.de \
    /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