3 echo -n "Configuring libpci for your system..."
8 cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/'`
10 if [ "$sys" != Linux ] ; then
11 echo "libpci currently supports only Linux"
14 echo -n "Looking for access methods..."
16 echo >$c "#define ARCH_`echo $cpu | tr 'a-z' 'A-Z'`"
18 2.[1-9]*|[3-9]*) echo -n " proc"
19 echo >>$c '#define HAVE_PM_LINUX_PROC'
20 echo >>$c '#define HAVE_LINUX_BYTEORDER_H'
21 echo >>$c '#define PATH_PROC_BUS_PCI "/proc/bus/pci"'
26 i386) echo -n " i386-ports"
27 echo >>$c '#define HAVE_PM_INTEL_CONF'
31 echo >>$c '#define HAVE_64BIT_ADDRESS'
33 # echo >>$c '#define HAVE_PM_SYSCALLS'
37 echo >>$c '#define HAVE_PM_DUMP'
39 if [ -z "$ok" ] ; then
40 echo "WARNING: No real configuration access method is available."
42 echo >>$c "#define PATH_PCI_IDS \"$prefix/share/pci.ids\""
43 if [ -f header.h ] ; then
44 echo >>$c '#define HAVE_OWN_HEADER_H'
46 echo >>$c "#define PCILIB_VERSION \"$version\""
47 sed '/^#define [^ ]*$/!d;s/^#define \(.*\)/\1=1/' <$c >config.mk