./configure Can I to use /some/path/configure - Unix, Linux ./configure Can I to use /some/path/configure - Unix, Linux unix unix

./configure Can I to use /some/path/configure - Unix, Linux


The autotools are explicitly designed to work the way you are seeing (with the output files in the current directory as opposed to the directory of the configure script) because they are designed to support out-of-tree builds. That is the idea that a build can happen somewhere other than in the source directory.

This lets you have per-arch builds in a clean fashion, it lets you easily blow away just the built files and not the source files, etc.

I don't know if there is a reliable and portable way to automatically determine the location of the currently executing script (see Bash FAQ 028 for some discussion about this). If there isn't that makes doing what you want automatically difficult.

I'm not aware, offhand, of a flag that lets you set the output directory somewhere else but there might be one.