Guess the location of config.sh

This commit is contained in:
Pierre Pronchery 2015-04-19 16:46:11 +02:00
parent 64f420d799
commit 7a48db0218

View File

@ -25,6 +25,7 @@
#variables
CONFIGSH="${0%/subst.sh}/../config.sh"
PREFIX="/usr/local"
BINDIR=
DATADIR=
@ -34,7 +35,7 @@ LIBDIR=
LIBEXECDIR=
MANDIR=
SYSCONFDIR=
[ -f "../config.sh" ] && . "../config.sh"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
[ -z "$BINDIR" ] && BINDIR="$PREFIX/bin"
[ -z "$DATADIR" ] && DATADIR="$PREFIX/share"
[ -z "$INCLUDEDIR" ] && INCLUDEDIR="$PREFIX/include"