build-sys: Avoid prefix=NONE if no prefix is passed to configure

If no prefix is passed to the configure line we get prefix=NONE
in evaluations of variables that depend on prefix at this point.
If the user provides no --prefix we assume /usr/local as the
default and override the 'NONE' value we have at this point.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2019-03-21 13:17:17 -04:00 committed by Stefan Berger
parent 9cd723d8e1
commit 5d35321e20

View File

@ -123,6 +123,9 @@ fi
if test "$prefix" = "/usr" && test "$localstatedir" = '${prefix}/var'; then
localstatedir="/var"
fi
if test "x$prefix" = "xNONE"; then
prefix="/usr/local"
fi
SYSCONFDIR=`eval echo $sysconfdir`
DATAROOTDIR=`eval echo $datarootdir`
LOCALSTATEDIR=`eval echo $localstatedir`