]> mj.ucw.cz Git - pciutils.git/commitdiff
Fixed compilation of GNU/kFreeBSD
authorMartin Mares <mj@ucw.cz>
Sat, 4 Jul 2009 13:54:54 +0000 (15:54 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 4 Jul 2009 13:54:54 +0000 (15:54 +0200)
LIBRESOLV should be used on GNU/kFreeBSD.

Thanks to Petr Salinger for noticing that.

lib/configure

index 69f4272838c12f802487904fe8e580ed36ed4125..eec225aa483b5022adbe6420b500aea20cbcbfb3 100755 (executable)
@@ -23,6 +23,7 @@ echo_n "Configuring libpci for your system..."
 if [ -z "$HOST" ] ; then
        sys=`uname -s`
        rel=`uname -r`
+       realsys="$sys"
        if [ "$sys" = "AIX" -a -x /usr/bin/oslevel -a -x /usr/sbin/lsattr ]
        then
                rel=`/usr/bin/oslevel`
@@ -89,7 +90,9 @@ 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=
+               if [ "$realsys" != "GNU/kFreeBSD" ] ; then
+                       LIBRESOLV=
+               fi
                ;;
         openbsd)
                echo_n " obsd-device"