I want to check for a kernel header file with AC_CHECK_HEADER. E.g.: AC_CHECK_HEADER([cdrom.h],, [AC_MSG_ERROR([cdrom.h not found])]) ./configure CPPFLAGS=-I/usr/include/linux gives me: checking cdrom.h usability... no checking cdrom.h presence... yes configure: WARNING: cdrom.h: present but cannot be compiled configure: WARNING: cdrom.h: check for missing prerequisite headers? configure: WARNING: cdrom.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to [EMAIL PROTECTED] ## configure: WARNING: ## ------------------------------------ ## checking for cdrom.h... yes
As you can see cdrom.h is present. And apparently this is a bug!? Is there a workaround? /FAU