From: Martin Mares Date: Sat, 4 Jul 2009 13:54:54 +0000 (+0200) Subject: Fixed compilation of GNU/kFreeBSD X-Git-Tag: v3.1.3~4 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d00975720cdb4837623c065cb1781f61740a975c;p=pciutils.git Fixed compilation of GNU/kFreeBSD LIBRESOLV should be used on GNU/kFreeBSD. Thanks to Petr Salinger for noticing that. --- diff --git a/lib/configure b/lib/configure index 69f4272..eec225a 100755 --- a/lib/configure +++ b/lib/configure @@ -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"