aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2020-09-16 03:13:17 +0200
committerGuillem Jover <guillem@hadrons.org>2020-09-16 03:15:43 +0200
commit70279d518de75017c5408f4d0b35ee6cd4de8d9f (patch)
tree1dc53d14a12458e8f6d3d03b5215a7938b54dfd6
parent92995a8d6fd3d19a8b01bfb2616c0ac494d199b9 (diff)
downloadpciutils-70279d518de75017c5408f4d0b35ee6cd4de8d9f.tar.gz
configure: Add support for GNU/Hurd
This handles the case when the HOST has not been specified by the user. Signed-off-by: Guillem Jover <guillem@hadrons.org>
-rwxr-xr-xlib/configure6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/configure b/lib/configure
index 6fa8fcf..e181b7f 100755
--- a/lib/configure
+++ b/lib/configure
@@ -25,7 +25,7 @@ if [ -z "$HOST" ] ; then
proc=`/usr/sbin/lsdev -C -c processor -S available -F name | head -1`
cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'`
else
- cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`
+ cpu=`uname -m | sed 's/^i.86-AT386/i386/;s/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`
fi
if [ "$sys" = "DragonFly" ]
then
@@ -35,6 +35,10 @@ if [ -z "$HOST" ] ; then
then
sys=kfreebsd
fi
+ if [ "$sys" = "GNU" ]
+ then
+ sys=gnu
+ fi
if [ "$sys" = "CYGWIN_NT-5.1" -o "$sys" = "CYGWIN_NT-6.0" ]
then
sys=cygwin