From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay05.ispgateway.de ([80.67.31.94]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SGawb-00027Z-NZ for ptxdist@pengutronix.de; Sat, 07 Apr 2012 21:05:07 +0200 Received: from [93.104.157.189] (helo=localhost) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1SGawb-0006BW-Dg for ptxdist@pengutronix.de; Sat, 07 Apr 2012 21:05:05 +0200 From: Bernhard Walle Date: Sat, 7 Apr 2012 21:04:58 +0200 Message-Id: <1333825498-63346-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH] configure.ac: Check for GNU find Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de One of the specialities of GNU find over BSD find is that you can omit the path before providing options. This means that "find -name bla" is equivalent with "find . -name bla". Busybox exposes that behaviour. So check for GNU find to be on the safe side, and also add the symlink in the installation directory once we found it. Signed-off-by: Bernhard Walle --- Makefile.in | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile.in b/Makefile.in index 17a6ce6..8382402 100644 --- a/Makefile.in +++ b/Makefile.in @@ -54,6 +54,7 @@ environment: @ln -sf @GNU_stat@ "$(abs_srcdir)/bin/stat" @ln -sf @GNU_mknod@ "$(abs_srcdir)/bin/mknod" @ln -sf @GNU_tar@ "$(abs_srcdir)/bin/tar" + @ln -sf @GNU_find@ "$(abs_srcdir)/bin/find" @ln -sf @GNU_readlink@ "$(abs_srcdir)/bin/readlink" @ln -sf @PYTHON@ "$(abs_srcdir)/bin/python" @ln -sf @SED@ "$(abs_srcdir)/bin/sed" diff --git a/configure.ac b/configure.ac index 78597cc..44c2448 100755 --- a/configure.ac +++ b/configure.ac @@ -148,6 +148,7 @@ GNU_TOOL(stat, coreutils) GNU_TOOL(mknod, coreutils) GNU_TOOL(readlink, coreutils) GNU_TOOL(tar, tar) +GNU_TOOL(find, findutils) dnl Check for egrep AC_PROG_EGREP -- 1.7.9.5 -- ptxdist mailing list ptxdist@pengutronix.de