From 0a56e643b13cfb1cb5546a3ff0ae962f93ce8602 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Mon, 5 May 2014 21:38:52 +0000 Subject: [PATCH] Avoid training :'s in paths When the path was empty, path_push_unique would cause a training colon to be added. This was a known issue that didn't cause any harm, but while we're here, we'll clean this up. --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 39e8063276..10087e3b0b 100644 --- a/configure.ac +++ b/configure.ac @@ -607,7 +607,11 @@ path_remove () { path_push_unique () { x="$(eval echo \$$1)" x="$(path_remove "$x" "$2")" - eval export $1="$2:$x" + if test -z "$x"; then + eval export $1="$2" + else + eval export $1="$2:$x" + fi } # tweak platform specific flags