configure: check for read access on system.map

This lets us fallback gracefully to /System.map, which is
more open by default and binary identical on rhel systems
This commit is contained in:
Dominique Martinet
2017-09-12 10:31:03 +09:00
committed by Balazs Gerofi
parent 2a46fd0b2d
commit b3613e2535
2 changed files with 6 additions and 6 deletions

6
configure vendored
View File

@ -4836,11 +4836,11 @@ esac
{ $as_echo "$as_me:$LINENO: checking for System.map" >&5
$as_echo_n "checking for System.map... " >&6; }
if test -f "$MCCTRL_LINUX_SYMTAB"; then
if test -r "$MCCTRL_LINUX_SYMTAB"; then
MCCTRL_LINUX_SYMTAB="$MCCTRL_LINUX_SYMTAB"
elif test -f "/boot/System.map-`uname -r`"; then
elif test -r "/boot/System.map-`uname -r`"; then
MCCTRL_LINUX_SYMTAB="/boot/System.map-`uname -r`"
elif test -f "$KDIR/System.map"; then
elif test -r "$KDIR/System.map"; then
MCCTRL_LINUX_SYMTAB="$KDIR/System.map"
fi