syntax-check: Detect awk the same as all other programs

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Andrea Bolognani 2022-05-23 15:20:48 +02:00
parent f98baa1b54
commit dddbc95375
3 changed files with 4 additions and 5 deletions

View File

@ -7,6 +7,7 @@ RUNUTF8 = @runutf8@
PYTHON = @PYTHON3@
GREP = @GREP@
SED = @SED@
AWK = @AWK@
# include syntax-check.mk file
include $(top_srcdir)/build-aux/syntax-check.mk

View File

@ -26,6 +26,8 @@ else
grep_prog = find_program('grep')
endif
awk_prog = find_program('awk')
syntax_check_conf = configuration_data({
'top_srcdir': meson.source_root(),
'top_builddir': meson.build_root(),
@ -34,6 +36,7 @@ syntax_check_conf = configuration_data({
'PYTHON3': python3_prog.path(),
'GREP': grep_prog.path(),
'SED': sed_prog.path(),
'AWK': awk_prog.path(),
})
configure_file(

View File

@ -19,11 +19,6 @@
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
# These variables ought to be defined through the configure.ac section
# of the module description. But some packages import this file directly,
# ignoring the module description.
AWK ?= awk
# Helper variables.
_empty =
_sp = $(_empty) $(_empty)