aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt3
-rwxr-xr-xconfigure7
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index e3f19ab..7a23485 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,6 @@
+2015-01-22:
+ * (seebs) work when --prefix doesn't exist yet
+
2015-01-15:
* (seebs) Rework PSEUDO_PASSWD path allocation for clarity,
I hope.
diff --git a/configure b/configure
index 11bbee1..23ffe43 100755
--- a/configure
+++ b/configure
@@ -69,7 +69,12 @@ do
--) shift; break ;;
--prefix=*)
opt_prefix=${arg#--prefix=}
- if [ "$(cd "$opt_prefix"; pwd)" == "$(pwd)" ]; then
+ if [ -d "$opt_prefix" ]; then
+ maybe_prefix=$(cd "$opt_prefix"; pwd)
+ else
+ maybe_prefix=$opt_prefix
+ fi
+ if [ "$maybe_prefix" == "$(pwd)" ]; then
echo >&2 "ERROR: Prefix is current directory. That doesn't work."
exit 1
fi