This is a small autoconf-macro that tries to find the path to the source of the running kernel. Feel free to use it in your own project. Example usage: AC_ARG_WITH(kernel-dir, [ --with-kernel-dir=VER Path to kernel-source to build against], [KERNEL_DIR=$withval], AC_PATH_KERNEL_SOURCE(KERNEL_DIR)) Anders Gustafsson andersg@0x63.nu http://0x63.nu/