summaryrefslogtreecommitdiff
blob: 93cebe1d5c6e27516f10d858b06a1f5503cc04e9 (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
--- a/configure.in
+++ b/configure.in
@@ -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"