Fix configure to always prepend a missing leading '/'. Also don't require perl regexp support as it's not necessary and not all grep installations support it.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27848 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2010-08-20 20:07:50 +00:00
parent 65c4fc2ad2
commit 333c0cc6b0

2
tools/configure vendored
View file

@ -3092,7 +3092,7 @@ if [ "$ARG_RBDIR" ]; then
if [ "$need_full_path" = "yes" ]; then
rbdir=`realpath $ARG_RBDIR`
else # prepend '/' if needed
if [ -z `echo $ARG_RBDIR | grep -P '/.*'` ]; then
if [ -z `echo $ARG_RBDIR | grep '^/'` ]; then
rbdir="/"$ARG_RBDIR
else
rbdir=$ARG_RBDIR