We need to set a sys variable matching what would be found in the GNU
triplet for the GNU/kFreeBSD architecture, otherwise the later code will
not match correctly.
Signed-off-by: Guillem Jover <guillem@hadrons.org>
else
cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`
fi
- if [ "$sys" = "GNU/kFreeBSD" -o "$sys" = "DragonFly" ]
+ if [ "$sys" = "DragonFly" ]
then
sys=freebsd
fi
+ if [ "$sys" = "GNU/kFreeBSD" ]
+ then
+ sys=kfreebsd
+ fi
if [ "$sys" = "CYGWIN_NT-5.1" -o "$sys" = "CYGWIN_NT-6.0" ]
then
sys=cygwin
esac
echo >>$c '#define PCI_HAVE_STDINT_H'
;;
- freebsd*)
+ freebsd*|kfreebsd*)
echo_n " fbsd-device"
echo >>$c '#define PCI_HAVE_PM_FBSD_DEVICE'
echo >>$c '#define PCI_PATH_FBSD_DEVICE "/dev/pci"'
- if [ "$realsys" != "GNU/kFreeBSD" ] ; then
+ if [ "$sys" != "kfreebsd" ] ; then
LIBRESOLV=
fi
;;