Added additional checks to make sure that script executes in the same directory as the script is in.
This commit is contained in:
parent
173db61c2f
commit
1615bb8245
1 changed files with 8 additions and 0 deletions
8
config_office/configure
vendored
8
config_office/configure
vendored
|
@ -7,6 +7,14 @@
|
|||
# This configure script is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy, distribute and modify it.
|
||||
|
||||
# Since this script needs to run in the same directory as the script, cd to
|
||||
# the script directory. Also, this means we cannot run this script from a
|
||||
# softlink so we need.
|
||||
if test -h "$0"; then
|
||||
{ echo "configure: error: you cannot run $0 from a softlink" 1>&2; exit 1; }
|
||||
fi
|
||||
cd "`dirname $0`"
|
||||
|
||||
# Defaults:
|
||||
ac_help=
|
||||
ac_default_prefix=/usr/local
|
||||
|
|
Loading…
Reference in a new issue