summaryrefslogtreecommitdiff
blob: d648754e3ef33797c104d18c3feb2e582fcd4d1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- configure.in.bak	2007-12-01 11:45:51.000000000 -0500
+++ configure.in	2007-12-01 11:46:42.000000000 -0500
@@ -33,6 +33,9 @@
 PB_OBJECTS=
 PB_LIBS=
 
+### Setup PKG_CONFIG
+PKG_PROG_PKG_CONFIG
+
 if test "x$laptop" != "x"; then
     ac_laptop=$laptop
 elif test "x$LAPTOP" != "x"; then
@@ -59,10 +62,9 @@
 		AC_CHECK_HEADERS([smbios/SystemInfo.h],
 			AC_DEFINE_UNQUOTED(WITH_SMBIOS, 1, [SMBIOS available]),
 			AC_MSG_ERROR([SMBios library not available. Please install development files for libsmbios.]), [/* dummy */])
-		AC_CHECK_HEADERS([pci/pci.h sys/io.h], ac_macbook=yes,
-			AC_MSG_ERROR([Please install development files for libpci and direct I/O.]), [/* dummy */])
+		PKG_CHECK_MODULES(LIBPCI, libpci)
 		PB_OBJECTS+=" driver_backlight_x1600.$OBJEXT driver_backlight_gma950.$OBJEXT module_acpi.$OBJEXT module_imac.$OBJEXT"
-		PB_LIBS+=" -lpci -lsmbios"
+		PB_LIBS+=" -lsmbios $LIBPCI_LIBS"
 		LCD_FADINGSPEED="448"
 		LCD_AUTOADJMODE="linear"
 		LCD_AUTOADJPARMBAT="0,10,80,30"