Alternative method of detecting apache
@inigomartinez
Submitted by Iñigo Martínez Assigned to libsoup-maint@gnome.bugs
Link to original bug (#795392)
Description
After being talking with Tomas about the though situation detecting apache configurations, due the way apache is named across distributions, and the different local where is installed, I came with an idea similar to what has been done in NetworkManager[0].
NetworkManager uses a set of options preconfigured with the most common names and locations for some binaries. These options also allow setting them with custom values if its necessary.
The same approach has been used to detect the apache binary and the apache modules, this last one in combination with a simplified external python script.
When all of this doesn't work, there is still a new option to disable apache unit tests and be able to build libsoup and also run a subset of unit tests.
[0] https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/meson_options.txt