Fix configure to compile on i386.

We are carrying a patch for configure to include -li386 on i386/i486,
but the upstream script is missing the [] intended to match multiple
subfamilies, and hence does not match.  This commit just adds in the
missing [], enabling compilation to succeed on i386, and not changing
anything on !i386.
This commit is contained in:
gdt 2015-03-21 22:35:45 +00:00
parent bd724f7141
commit 2384875cf5
2 changed files with 7 additions and 5 deletions

View file

@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.28 2015/02/15 06:05:29 tnn Exp $ $NetBSD: distinfo,v 1.29 2015/03/21 22:35:45 gdt Exp $
SHA1 (libpciaccess-0.13.3.tar.bz2) = 74e16b6d9a1d9d28279754010d2c4c4636b72e35 SHA1 (libpciaccess-0.13.3.tar.bz2) = 74e16b6d9a1d9d28279754010d2c4c4636b72e35
RMD160 (libpciaccess-0.13.3.tar.bz2) = 86a57f694e5f150211552846a1cbf22b035d98ee RMD160 (libpciaccess-0.13.3.tar.bz2) = 86a57f694e5f150211552846a1cbf22b035d98ee
Size (libpciaccess-0.13.3.tar.bz2) = 368755 bytes Size (libpciaccess-0.13.3.tar.bz2) = 368755 bytes
SHA1 (patch-configure) = 49c305a7d4df26fea4ce158d4748547dbec1d88d SHA1 (patch-configure) = 19d73a8f36973921801d0bc870664c05a25eedd3
SHA1 (patch-src_common__interface.c) = cac11689864531fa4721e09374ead730bd1691a6 SHA1 (patch-src_common__interface.c) = cac11689864531fa4721e09374ead730bd1691a6

View file

@ -1,14 +1,16 @@
$NetBSD: patch-configure,v 1.4 2015/02/15 06:05:30 tnn Exp $ $NetBSD: patch-configure,v 1.5 2015/03/21 22:35:46 gdt Exp $
https://bugs.freedesktop.org/show_bug.cgi?id=89151 https://bugs.freedesktop.org/show_bug.cgi?id=89151
--- configure.orig 2015-02-03 23:59:22.000000000 +0000 --- configure.orig 2015-02-03 23:59:22.000000000 +0000
+++ configure +++ configure
@@ -18084,12 +18084,16 @@ case $host_os in @@ -18083,13 +18083,17 @@ case $host_os in
;;
*netbsd*) *netbsd*)
case $host in case $host in
*i3-986*) - *i3-986*)
- PCIACCESS_LIBS="$PCIACCESS_LIBS -li386 -lpci" - PCIACCESS_LIBS="$PCIACCESS_LIBS -li386 -lpci"
+ *i[3-9]86*)
+ PCIACCESS_LIBS="$PCIACCESS_LIBS -li386" + PCIACCESS_LIBS="$PCIACCESS_LIBS -li386"
;; ;;
*x86_64*|*amd64*) *x86_64*|*amd64*)