build errors in addon-macbookpro-backlight.c

Frederic Peters fpeters at 0d.be
Sun Jun 11 03:58:25 PDT 2006


I wrote:

> As seen on http://jhbuild.bxlug.be/builds/2006-06-09-0004/logs/hal/#build
> errors in addon-macbookpro-backlight.c:
> 
>   :42:21: error: pci/pci.h: No such file or directory
>   [...]

> I tried to produce a patch but I couldn't find any reference to struct
> pci_access or PCI_FILL_IDENT in my copy of 2.6.16 (and mactel-linux
> wiki doesn't respond).

Found it in pciutils-dev Debian package; it now builds.  Nevertheless
I attach a patch to configure.in so that it takes care of pci/pci.h
check result.


Regards,

        Frederic
-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /cvs/hal/hal/configure.in,v
retrieving revision 1.133
diff -u -r1.133 configure.in
--- configure.in	9 Jun 2006 02:19:31 -0000	1.133
+++ configure.in	11 Jun 2006 10:55:04 -0000
@@ -206,8 +206,11 @@
 fi
 
 dnl Check for libpci
-AC_CHECK_HEADERS(pci/pci.h)
-AC_CHECK_LIB(pci, pci_init, [USE_LIBPCI=yes AM_CONDITIONAL(HAVE_LIBPCI,true)], [USE_LIBPCI=no AM_CONDITIONAL(HAVE_LIBPCI,false)])
+AC_CHECK_HEADERS(pci/pci.h, [
+	AC_CHECK_LIB(pci, pci_init, [
+		USE_LIBPCI=yes AM_CONDITIONAL(HAVE_LIBPCI,true)], [
+		USE_LIBPCI=no AM_CONDITIONAL(HAVE_LIBPCI,false)])], [
+	USE_LIBPCI=no AM_CONDITIONAL(HAVE_LIBPCI,false)])
 
 
 AC_ARG_WITH(backend, [  --with-backend=<name>   backend to use (linux2/solaris/dummy)],


More information about the hal mailing list