[libvirt PATCH 2/4] meson: Reorganize looking for programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While this change doesn't look like it would improve things and
actually introduces a tiny bit of duplication, it's necessary in
order to prepares the stage for further changes.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 build-aux/meson.build | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/build-aux/meson.build b/build-aux/meson.build
index 06b7a7c01f..c56a348946 100644
--- a/build-aux/meson.build
+++ b/build-aux/meson.build
@@ -10,12 +10,14 @@ syntax_check_conf.set('flake8_path', flake8_path)
 syntax_check_conf.set('runutf8', ' '.join(runutf8))
 syntax_check_conf.set('PYTHON3', python3_prog.path())
 
-
-grep_prog = find_program('grep')
-
 if host_machine.system() == 'freebsd'
   make_prog = find_program('gmake')
+else
+  make_prog = find_program('make')
+endif
 
+if host_machine.system() == 'freebsd'
+  grep_prog = find_program('grep')
   grep_cmd = run_command(grep_prog, '--version')
   if grep_cmd.stdout().startswith('grep (BSD grep')
     grep_prog = find_program('/usr/local/bin/grep', required: false)
@@ -28,7 +30,7 @@ if host_machine.system() == 'freebsd'
     endif
   endif
 else
-  make_prog = find_program('make')
+  grep_prog = find_program('grep')
 endif
 
 syntax_check_conf.set('GREP', grep_prog.path())
-- 
2.26.3




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux