X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fconfigure;h=ecd350352d444fac3d1ddcc5b67b41c2cc5b8feb;hb=152967235012b72c4c99f2d9631d19a2afc0ef8c;hp=dd706515ee8e9d58f93012d85d2689d1b48cddeb;hpb=489233b45bc68e94b2d065f696ed22bc6e6eec02;p=pciutils.git diff --git a/lib/configure b/lib/configure index dd70651..ecd3503 100755 --- a/lib/configure +++ b/lib/configure @@ -10,7 +10,7 @@ echo_n() { } echo_n "Configuring libpci for your system..." -sharedir=${1:-/usr/share} +idsdir=${1:-/usr/share} version=${2:-0.0} sys=`uname -s` rel=`uname -r` @@ -38,7 +38,7 @@ echo_n "Looking for access methods..." case $sys in linux*) case $rel in - 2.[1-9]*|[3-9]*) echo_n "sysfs proc" + 2.[1-9]*|[3-9]*) echo_n " sysfs proc" echo >>$c '#define PCI_HAVE_PM_LINUX_SYSFS' echo >>$c '#define PCI_HAVE_PM_LINUX_PROC' echo >>$c '#define PCI_HAVE_LINUX_BYTEORDER_H' @@ -52,10 +52,8 @@ case $sys in echo >>$c '#define PCI_HAVE_PM_INTEL_CONF' ok=1 ;; - alpha|ia64|sparc|sparc64|ppc|ppc64) - echo >>$c '#define PCI_HAVE_64BIT_ADDRESS' - ;; esac + echo >>$c '#define PCI_HAVE_64BIT_ADDRESS' ;; sunos) case $cpu in @@ -103,6 +101,6 @@ echo " dump" if [ -z "$ok" ] ; then echo "WARNING: No real configuration access method is available." fi -echo >>$c "#define PCI_PATH_IDS \"$sharedir/pci.ids\"" +echo >>$c "#define PCI_PATH_IDS \"$idsdir/pci.ids\"" echo >>$c "#define PCILIB_VERSION \"$version\"" sed '/^#define [^ ]*$/!d;s/^#define \(.*\)/\1=1/' <$c >config.mk