Say you want to find apache with find_program(). Apache binaries in different distros can have many names, httpd, httpd2, apache, apache2. Meson so far can cover this. The problem arises when the apache binary can be installed in different locations, that are not in the PATH, like /usr/sbin, or /sbin.
The documentations states that one can simply prepend the path where the program might be found. But with the example above, we have 4 different binary names and three different possibilities. So that's a lot of clutter, would look something like this.
Add one more path or possible name and this grows.. Obviously this is just an example.
It would be useful if paths and binary names were two different arrays and meson would go through them without having to do it manually. Something like
Say you want to find apache with
find_program()
. Apache binaries in different distros can have many names,httpd
,httpd2
,apache
,apache2
. Meson so far can cover this. The problem arises when the apache binary can be installed in different locations, that are not in the PATH, like /usr/sbin, or /sbin.The documentations states that one can simply prepend the path where the program might be found. But with the example above, we have 4 different binary names and three different possibilities. So that's a lot of clutter, would look something like this.
Add one more path or possible name and this grows.. Obviously this is just an example.
It would be useful if paths and binary names were two different arrays and meson would go through them without having to do it manually. Something like