X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fconfigure;h=bec5f864a06809870d1a10ae5a597dc65af2d18d;hb=17b215b0406790e3af1ef990f29c131e7fc0b7e4;hp=0a0a944b88842fa2aa60f5af40454ecff1719c0e;hpb=5ad89ed991b7b32abb0339c2984628ef8a8c85b9;p=pciutils.git diff --git a/lib/configure b/lib/configure index 0a0a944..bec5f86 100755 --- a/lib/configure +++ b/lib/configure @@ -47,6 +47,7 @@ echo >>$c "#define PCI_OS_`echo $sys | tr '[a-z]' '[A-Z]'`" echo >$m 'WITH_LIBS=' echo_n "Looking for access methods..." +LIBRESOLV=-lresolv case $sys in linux*) @@ -62,7 +63,6 @@ case $sys in ;; esac echo >>$c '#define PCI_HAVE_64BIT_ADDRESS' - echo >>$c '#define PCI_USE_DNS' ;; sunos) case $cpu in @@ -80,11 +80,13 @@ case $sys in echo_n " fbsd-device" echo >>$c '#define PCI_HAVE_PM_FBSD_DEVICE' echo >>$c '#define PCI_PATH_FBSD_DEVICE "/dev/pci"' + LIBRESOLV= ;; openbsd) echo_n " obsd-device" echo >>$c '#define PCI_HAVE_PM_OBSD_DEVICE' echo >>$c '#define PCI_PATH_OBSD_DEVICE "/dev/pci"' + LIBRESOLV= ;; aix) echo_n " aix-device" @@ -99,6 +101,7 @@ case $sys in echo >>$c '#define PCI_PATH_NBSD_DEVICE "/dev/pci0"' echo >>$m 'LIBNAME=libpciutils' echo >>$m 'WITH_LIBS+=-lpci' + LIBRESOLV= ;; gnu) echo_n " i386-ports" @@ -147,8 +150,8 @@ else fi if [ "$DNS" = yes ] ; then echo >>$c "#define PCI_USE_DNS" - echo >>$c "#define PCI_ID_DOMAIN \"pci-id.ucw.cz\"" - echo >>$m 'WITH_LIBS+=-lresolv' + echo >>$c "#define PCI_ID_DOMAIN \"pci.id.ucw.cz\"" + echo >>$m "WITH_LIBS+=$LIBRESOLV" fi echo "Checking whether to build a shared library... $SHARED (set manually)"