mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 05:45:46 +00:00
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:
parent
f98baa1b54
commit
dddbc95375
@ -7,6 +7,7 @@ RUNUTF8 = @runutf8@
|
|||||||
PYTHON = @PYTHON3@
|
PYTHON = @PYTHON3@
|
||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
SED = @SED@
|
SED = @SED@
|
||||||
|
AWK = @AWK@
|
||||||
|
|
||||||
# include syntax-check.mk file
|
# include syntax-check.mk file
|
||||||
include $(top_srcdir)/build-aux/syntax-check.mk
|
include $(top_srcdir)/build-aux/syntax-check.mk
|
||||||
|
@ -26,6 +26,8 @@ else
|
|||||||
grep_prog = find_program('grep')
|
grep_prog = find_program('grep')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
awk_prog = find_program('awk')
|
||||||
|
|
||||||
syntax_check_conf = configuration_data({
|
syntax_check_conf = configuration_data({
|
||||||
'top_srcdir': meson.source_root(),
|
'top_srcdir': meson.source_root(),
|
||||||
'top_builddir': meson.build_root(),
|
'top_builddir': meson.build_root(),
|
||||||
@ -34,6 +36,7 @@ syntax_check_conf = configuration_data({
|
|||||||
'PYTHON3': python3_prog.path(),
|
'PYTHON3': python3_prog.path(),
|
||||||
'GREP': grep_prog.path(),
|
'GREP': grep_prog.path(),
|
||||||
'SED': sed_prog.path(),
|
'SED': sed_prog.path(),
|
||||||
|
'AWK': awk_prog.path(),
|
||||||
})
|
})
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
|
@ -19,11 +19,6 @@
|
|||||||
# along with this program. If not, see
|
# along with this program. If not, see
|
||||||
# <http://www.gnu.org/licenses/>.
|
# <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.
|
# Helper variables.
|
||||||
_empty =
|
_empty =
|
||||||
_sp = $(_empty) $(_empty)
|
_sp = $(_empty) $(_empty)
|
||||||
|
Loading…
Reference in New Issue
Block a user