3 echo -n "Configuring libpci for your system..."
8 cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/'`
12 echo >$c "#define ARCH_`echo $cpu | tr 'a-z' 'A-Z'`"
13 echo >$c "#define OS_`echo $sys | tr 'a-z' 'A-Z'`"
15 echo -n "Looking for access methods..."
20 2.[1-9]*|[3-9]*) echo -n " proc"
21 echo >>$c '#define HAVE_PM_LINUX_PROC'
22 echo >>$c '#define HAVE_LINUX_BYTEORDER_H'
23 echo >>$c '#define PATH_PROC_BUS_PCI "/proc/bus/pci"'
28 i386) echo -n " i386-ports"
29 echo >>$c '#define HAVE_PM_INTEL_CONF'
32 alpha) echo >>$c '#define HAVE_64BIT_ADDRESS'
34 # echo >>$c '#define HAVE_PM_SYSCALLS'
37 sparc|sparc64) echo >>$c '#define HAVE_64BIT_ADDRESS'
38 echo >>$c '#define HAVE_LONG_ADDRESS'
40 # echo >>$c '#define HAVE_PM_SYSCALLS'
46 echo -n " fbsd-device"
47 echo >>$c '#define HAVE_PM_FBSD_DEVICE'
48 echo >>$c '#define PATH_FBSD_DEVICE "/dev/pci"'
52 echo " The PCI library currently supports only Linux and FreeBSD"
57 echo >>$c '#define HAVE_PM_DUMP'
59 if [ -z "$ok" ] ; then
60 echo "WARNING: No real configuration access method is available."
62 echo >>$c "#define PATH_PCI_IDS \"$prefix/share/pci.ids\""
63 if [ -f header.h ] ; then
64 echo >>$c '#define HAVE_OWN_HEADER_H'
66 echo >>$c "#define PCILIB_VERSION \"$version\""
67 sed '/^#define [^ ]*$/!d;s/^#define \(.*\)/\1=1/' <$c >config.mk