If mysql_config is a symlink, resolve it before trying to find the lib and
include directories relative to where it is located. (Bug #10986)
This commit is contained in:
parent
2dcf451b81
commit
13773acc1b
@ -60,11 +60,19 @@ fix_path ()
|
|||||||
|
|
||||||
get_full_path ()
|
get_full_path ()
|
||||||
{
|
{
|
||||||
case $1 in
|
file=$1
|
||||||
/*) echo "$1";;
|
|
||||||
./*) tmp=`pwd`/$1; echo $tmp | sed -e 's;/\./;/;' ;;
|
# if the file is a symlink, try to resolve it
|
||||||
*) which $1 ;;
|
if [ -h $file ];
|
||||||
esac
|
then
|
||||||
|
file=`ls -l $file | awk '{ print $NF }'`
|
||||||
|
fi
|
||||||
|
|
||||||
|
case $file in
|
||||||
|
/*) echo "$file";;
|
||||||
|
*/*) tmp=`pwd`/$file; echo $tmp | sed -e 's;/\./;/;' ;;
|
||||||
|
*) which $file ;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
me=`get_full_path $0`
|
me=`get_full_path $0`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user