I know that a lot of GNU applications use a config.h
to set arguments for compile time options, like paths to resources with prefix
from Autotools or Meson. For example, in some cases it is appropriate to find the location of the executable and load resources from there. Which I do on Windows and Linux. But for packaging on Linux and other UNIX based systems it seems better and usual to store the required paths inside config.h
.
When and how to use config.h
?
Thank you