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'
30 sparc) echo -n " syscalls"
31 echo >>$c '#define HAVE_PM_SYSCALLS'
34 alpha|sparc64) echo >>$c '#define HAVE_64BIT_LONG_INT'
36 # echo >>$c '#define HAVE_PM_SYSCALLS'
40 echo >>$c '#define HAVE_PM_DUMP'
42 if [ -z "$ok" ] ; then
43 echo "WARNING: No real configuration access method is available."
45 echo >>$c "#define PATH_PCI_IDS \"$prefix/share/pci.ids\""
46 if [ -f header.h ] ; then
47 echo >>$c '#define HAVE_OWN_HEADER_H'
49 echo >>$c "#define PCILIB_VERSION \"$version\""
50 sed '/^#define [^ ]*$/!d;s/^#define \(.*\)/\1=1/' <$c >config.mk