summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas@biessmann.de>2011-12-02 08:51:49 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-12-02 16:08:54 +0100
commit6be844f0633a6c184e6dbf207124655145c4407a (patch)
tree532941df3b476d2c5ae1e0bc1cea430472b3b914
parent39a4819220328d12b5cd38f7f65791b935a1a7e0 (diff)
downloadptxdist-6be844f0633a6c184e6dbf207124655145c4407a.tar.gz
ptxdist-6be844f0633a6c184e6dbf207124655145c4407a.tar.xz
add awk to environment
Signed-off-by: Andreas Bießmann <andreas@biessmann.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--Makefile.in2
-rw-r--r--configure.ac1
2 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 56d48aa73..a46bb9d5d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -41,6 +41,7 @@ kconfig:
environment:
@echo -n "preparing PTXdist environment ..."
@ln -sf @SED@ $(abs_srcdir)/bin/sed
+ @ln -sf @AWK@ $(abs_srcdir)/bin/awk
@ln -sf @GNU_chmod@ $(abs_srcdir)/bin/chmod
@ln -sf @GNU_mv@ $(abs_srcdir)/bin/mv
@ln -sf @GNU_rm@ $(abs_srcdir)/bin/rm
@@ -51,6 +52,7 @@ environment:
clean:
@rm -f .done
@rm -f $(abs_srcdir)/bin/sed
+ @rm -f $(abs_srcdir)/bin/awk
@rm -f $(abs_srcdir)/bin/chmod
@rm -f $(abs_srcdir)/bin/mv
@rm -f $(abs_srcdir)/bin/rm
diff --git a/configure.ac b/configure.ac
index 30441887c..a59a58e47 100644
--- a/configure.ac
+++ b/configure.ac
@@ -170,6 +170,7 @@ fi
dnl Check for awk
AC_PROG_AWK
+AC_PATH_PROGS(AWK, ${AWK},)
AC_MSG_CHECKING([awk version])
AWK_VERSION=`$AWK --version 2>/dev/null | $SED -ne "s/GNU [[Aa]]wk \([[0-9\.]]*\)/\1/p"`
case "$AWK_VERSION" in