[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Require gawk at configure time
From: |
Darshit Shah |
Subject: |
[PATCH] Require gawk at configure time |
Date: |
Fri, 24 Jan 2020 22:06:28 +0100 |
* configure.ac: Add AC_PROG_AWK to check for a valid implementation of
awk
* src/Makefile.am: Use $(AWK) when calling ras
* src/ras: Change the shebang line to not force a path on location of
awk
---
configure.ac | 1 +
src/Makefile.am | 2 +-
src/ras | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 0c652ebf..3275b7e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,6 +39,7 @@ gl_EARLY
LT_INIT
AC_PROG_CC_C99
AM_PROG_CC_C_O
+AC_PROG_AWK
: ${LEX='flex'}
: ${LEXLIB='-lfl'}
diff --git a/src/Makefile.am b/src/Makefile.am
index 28795a7d..25c04209 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -54,7 +54,7 @@ poke_SOURCES = poke.c poke.h \
.pks.pkc:
- srcdir=$(srcdir) $(srcdir)/ras $< > $@
+ srcdir=$(srcdir) $(AWK) -f $(srcdir)/ras $< > $@
# XXX this shouldn't be necessary?
EXTRA_DIST = pkl-lex.h
diff --git a/src/ras b/src/ras
index 65bddecf..8667a688 100755
--- a/src/ras
+++ b/src/ras
@@ -1,4 +1,4 @@
-#!/usr/bin/awk -f
+#!/usr/bin/env awk -f
# ras - The Retarded Poke Assembler
#
--
2.25.0
- [PATCH] Require gawk at configure time,
Darshit Shah <=