autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

configure for Linux kernel properties


From: Joachim Worringen
Subject: configure for Linux kernel properties
Date: Thu, 24 Apr 2008 18:19:56 +0200
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)

Greetings,

we are developing Linux kernel modules outside the kernel tree (for good reasons), and use autoconf to set up our source tree. We need to adapt to the ever-changing kernel interfaces and structures.

The usual autooconf stuff, of course - the problem is that the AC_TRY_COMPILE macros do not work because I failed so far to get this to work reliable (proper CPPFLAGS, CFLAGS setting) for the kernel headers.

We are working around this using sed-constructs to check for things in the known header files. Of course, letting the preprocessor/compiler do this would be more reliable. I.e., what has been a function could be a macro in the next version, etc.

Does anyone have a recipe to make such tests work? What is needed is
- either a way to set up things for AC_TRY_COMPILE and friends to work
- or (the better solution) define macros that try to compile/link a test kernel module using the native Linux kernel build system.

 Joachim

--
Joachim Worringen, Software Architect, Dolphin Interconnect Solutions
phone ++49/(0)228/324 08 17 - http://www.dolphinics.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]