When the user passes a relative path, we end up splitting the installation in multiple directories because it is relative to $CWD, which changes when we recurse into subdirectories. A common idiom I use is: ./configure --prefix=install ; make ; make install and that currently results in part of the installation inside prefix and part of it elsewhere: $ find . -type d -name 'install' ./src/install ./install Not biggy, but annoying. Let's use the path where the configure command was invoked as basedir, like other projects usually do. Signed-off-by: Gabriel Krisman Bertazi <krisman@xxxxxxx> --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index f6b590b..21a9356 100755 --- a/configure +++ b/configure @@ -10,7 +10,7 @@ for opt do case "$opt" in --help|-h) show_help=yes ;; - --prefix=*) prefix="$optarg" + --prefix=*) prefix="$(realpath -s $optarg)" ;; --includedir=*) includedir="$optarg" ;; -- 2.45.2