]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: Detect awk the same as all other programs
authorAndrea Bolognani <abologna@redhat.com>
Mon, 23 May 2022 13:20:48 +0000 (15:20 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 24 May 2022 09:09:46 +0000 (11:09 +0200)
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
build-aux/Makefile.in
build-aux/meson.build
build-aux/syntax-check.mk

index 9ccbec7b1beb8a12ef755d42cb78f672cde592d9..7ee4680847a17f8340cc40f202d9d3c83ded464d 100644 (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
index bbfa27c4c6ad716791ae2a04d6922e7d38bc7ca9..96562a4f4a22ebe66c3d7341c196f31fff5fa395 100644 (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(
index 4573655074c7dd4820cc0a5e4bcf3110f74ade9e..13f565d1b8a74f4e5036fcd5d14381c8fb7deb82 100644 (file)
 # 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)