mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:03:48 +03:00
meson: Don't check whether /usr/local/bin/grep is GNU grep
Since /usr/local is where ports live, it's reasonable to assume that a grep binary found in there will have been installed via ports and will thus be GNU grep. Suggested-by: Erik Skultety <eskultet@redhat.com> Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
8526abc454
commit
457f4e6e1e
@ -26,10 +26,6 @@ if host_machine.system() == 'freebsd'
|
|||||||
if not grep_prog.found()
|
if not grep_prog.found()
|
||||||
error('GNU grep not found')
|
error('GNU grep not found')
|
||||||
endif
|
endif
|
||||||
grep_cmd = run_command(grep_prog, '--version')
|
|
||||||
if grep_cmd.stdout().startswith('grep (BSD grep')
|
|
||||||
error('GNU grep not found')
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
elif host_machine.system() == 'darwin'
|
elif host_machine.system() == 'darwin'
|
||||||
grep_prog = find_program('ggrep')
|
grep_prog = find_program('ggrep')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user