On Sunday 03 August 2003 19:24, Bob Proulx wrote: > Frank A. Uepping wrote: > > I want to check for a kernel header file with AC_CHECK_HEADER. > > Since you are wanting to use a kernel header file you should know that > you are leaving portable code behind and moving into the realm of only > running on a particular type of system. Of course a goal of autoconf > is to enable portably running on different systems. What about portability among various versions of a system!
> > > E.g.: > > AC_CHECK_HEADER([cdrom.h],, [AC_MSG_ERROR([cdrom.h not found])]) > > ./configure CPPFLAGS=-I/usr/include/linux > > I believe the proper name for cdrom.h is linux/cdrom.h. AC_CHECK_HEADER([linux/cdrom.h]... Yep this way it works. > You should > not be requiring users to pass in options such as this to your > configure run. If you do then the default case won't work. If you do > want to always add a directory to CPPFLAGS then you should probably be > using AM_CPPFLAGS in your automake Makefile.am file. Seems it works for me. /FAU