]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Don't check whether /usr/local/bin/grep is GNU grep
authorAndrea Bolognani <abologna@redhat.com>
Thu, 1 Apr 2021 12:11:09 +0000 (14:11 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 1 Apr 2021 13:35:04 +0000 (15:35 +0200)
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>
build-aux/meson.build

index 109598239723cc086151677b19f06ad9e02504b6..e491bdeebc3fb3be0de5d36129a47f45a2b08acb 100644 (file)
@@ -26,10 +26,6 @@ if host_machine.system() == 'freebsd'
     if not grep_prog.found()
       error('GNU grep not found')
     endif
-    grep_cmd = run_command(grep_prog, '--version')
-    if grep_cmd.stdout().startswith('grep (BSD grep')
-      error('GNU grep not found')
-    endif
   endif
 elif host_machine.system() == 'darwin'
   grep_prog = find_program('ggrep')