Complain if we can't find /lib/modules/uname -r/build/Makefile.

Tue Aug 30 16:57:33 2005  Søren Sandmann  <sandmann@redhat.com>

	* configure.ac: Complain if we can't find /lib/modules/`uname
	-r`/build/Makefile.

	* process.c (process_lookup_symbol): Take an address of 0x1 to
	mean "in kernel".

	* module/sysprof-module.c (timer_notify): When reporting in-kernel
	time, give the current pid instead of -1.

	* TODO: updates
This commit is contained in:
Søren Sandmann
2005-08-30 20:58:18 +00:00
committed by Søren Sandmann Pedersen
parent 509d5f07ed
commit ee53bcffd4
5 changed files with 50 additions and 14 deletions

View File

@ -77,12 +77,18 @@ KMINOR=`uname -r | cut -d"." -f 2`
KMICRO=`uname -r | cut -d"." -f 3 | cut -d"-" -f 1`
if [[ $KMICRO -lt 11 ]] ; then
if [[ $KMICRO -gt 8 ]]; then
echo
echo Linux \>= 2.6.11 is required
echo
exit 1
fi
echo *
echo * Linux \>= 2.6.11 is required
echo *
exit 1
fi
if [ ! test -f /lib/modules/`uname -r`/build/Makefile ] ; then
echo \*
echo \* Sysprof requires the kernel source code to be installed.
echo \* On a Fedora Core system the relevant package is kernel-devel
echo \*
exit 1
fi
AC_OUTPUT