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:
committed by
Balazs Gerofi
parent
2a46fd0b2d
commit
b3613e2535
@@ -340,11 +340,11 @@ case "X$WITH_SYSTEM_MAP" in
|
||||
esac
|
||||
|
||||
AC_MSG_CHECKING([[for System.map]])
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user