autotools - Path managment in Linux programs -


I have a newbie Linux programming question. Suppose I have a project that uses Autotools for compilation and deployment, and I have data files that have any data such as / var / something or / usr / share / something Can be installed in place etc., but in AutoConf, I can change these installation paths. How should the program find these files? How does it know where they are actually installed (if anywhere, the program should work even when it is installed, but it should walk from where it was made)?

Usually if your program depends on files stored in a specific location, which can be tuned by the build system If you are qualified, you should give this path as a compiler definition and should use the definition in your program where you need it.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -