From c1d898d4602150559cda7205393f7de77a4e59cd Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 13 Jul 1999 15:51:34 +0000 Subject: [PATCH] Work around losing `awk'. Report from Harlan Stenn. * m4/init.m4 (AM_INIT_AUTOMAKE): Require AC_PROG_AWK. * tags.am (ID, TAGS): Use $(AWK), not `awk'. --- ChangeLog | 4 ++++ lib/am/tags.am | 4 ++-- m4/init.m4 | 3 +++ tags.am | 4 ++-- tests/Makefile.in | 1 + 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3679be9d..e1e0e11d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 1999-07-13 Tom Tromey + Work around losing `awk'. Report from Harlan Stenn. + * m4/init.m4 (AM_INIT_AUTOMAKE): Require AC_PROG_AWK. + * tags.am (ID, TAGS): Use $(AWK), not `awk'. + * automake.in (handle_source_transform): Mark prefix as seen if corresponding _SOURCES variable exists. Fixes empty2.test. diff --git a/lib/am/tags.am b/lib/am/tags.am index 9f7f1f2a..94db7f90 100644 --- a/lib/am/tags.am +++ b/lib/am/tags.am @@ -24,7 +24,7 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) ## Handle VPATH correctly. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - awk ' { files[$$0] = 1; } \ + $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -f$$here/ID $$unique $(LISP) @@ -44,7 +44,7 @@ SUBDIRS done; \ ## Handle VPATH correctly. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - awk ' { files[$$0] = 1; } \ + $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ ## Make sure we have something to run etags on. test -z "$(ETAGS_ARGS)@CONFIG@$$unique$(LISP)$$tags" \ diff --git a/m4/init.m4 b/m4/init.m4 index e503e862..6ce9d65b 100644 --- a/m4/init.m4 +++ b/m4/init.m4 @@ -40,6 +40,9 @@ dnl This is sad, since we only need this for "dist". However, dnl there's no other good way to do it. We prefer GNU tar if dnl we can find it. If we can't find a tar, it doesn't really matter. AC_CHECK_PROGS(AMTAR, gnutar gtar tar) +dnl We need awk for the "check" target. The system "awk" is bad on +dnl some platforms. +AC_REQUIRE([AC_PROG_AWK]) AMTARFLAGS= if test -n "$AMTAR"; then if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then diff --git a/tags.am b/tags.am index 9f7f1f2a..94db7f90 100644 --- a/tags.am +++ b/tags.am @@ -24,7 +24,7 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) ## Handle VPATH correctly. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - awk ' { files[$$0] = 1; } \ + $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -f$$here/ID $$unique $(LISP) @@ -44,7 +44,7 @@ SUBDIRS done; \ ## Handle VPATH correctly. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - awk ' { files[$$0] = 1; } \ + $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ ## Make sure we have something to run etags on. test -z "$(ETAGS_ARGS)@CONFIG@$$unique$(LISP)$$tags" \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 8576b011..df88623a 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -153,6 +153,7 @@ dup2.test \ else.test \ empty.test \ empty2.test \ +empty3.test \ error.test \ exdir.test \ exdir2.test \ -- 2.43.5