summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2015-05-30 03:04:55 +0200
committerFilipe Brandenburger <filbranden@google.com>2015-06-02 07:54:51 -0700
commitdd334850259e6bc25fdd003790467f428d40fbcd (patch)
tree583bfde5165cc3587a71fadf79e2b5c8ab79c2e9 /src
parent7d2e33a416388f9fed5f357e55dcd41394651edc (diff)
build-sys: Normalize paths of configure options
Strip trailing slashes from options such as --with-rootprefix, so that building with rootprefix="/" results in paths like "/lib" instead of "//lib". Also handle paths such as "/usr/" gracefully. Use m4/ax_normalize_path.m4 from the autoconf-archive project, which is now included in our tree as per usual practices in using autoconf-archive macros. Tested with the following configure options: ./configure \ --with-rootprefix=/ \ --with-rootlibdir=/lib64/ \ --prefix=/usr/ \ --libdir=/lib/ \ --with-bashcompletiondir=/bash-completion/completions/ (The "prefix" and "libdir" are already automatically normalized by Autoconf, this command is testing the others.) Compared the config.log and resulting trees (in particular man pages) to confirm double slashes were not present in the latter. Also tested that a configuration using default options is not affected and that `make distcheck` still works as expected.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions