mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
build-sys: use libpci's pkgconfig file to find the pci.ids file
This commit is contained in:
parent
0b270320da
commit
9a203affa6
|
@ -416,12 +416,6 @@ fi
|
|||
AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
if test "x$cross_compiling" = "xno" ; then
|
||||
AC_CHECK_FILES([/usr/share/pci.ids], [pciids=/usr/share/pci.ids])
|
||||
AC_CHECK_FILES([/usr/share/hwdata/pci.ids], [pciids=/usr/share/hwdata/pci.ids])
|
||||
AC_CHECK_FILES([/usr/share/misc/pci.ids], [pciids=/usr/share/misc/pci.ids])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(usb-ids-path,
|
||||
[AS_HELP_STRING([--with-usb-ids-path=DIR], [Path to usb.ids file])],
|
||||
[USB_DATABASE=${withval}],
|
||||
|
@ -441,7 +435,8 @@ AC_ARG_WITH(pci-ids-path,
|
|||
[if test -n "$pciids" ; then
|
||||
PCI_DATABASE="$pciids"
|
||||
else
|
||||
AC_MSG_ERROR([pci.ids not found, try --with-pci-ids-path=])
|
||||
PKG_CHECK_MODULES(LIBPCI, libpci >= 3)
|
||||
AC_SUBST([PCI_DATABASE], [$($PKG_CONFIG --variable=idsdir libpci)/pci.ids])
|
||||
fi])
|
||||
AC_MSG_CHECKING([for PCI database location])
|
||||
AC_MSG_RESULT([$PCI_DATABASE])
|
||||
|
|
Loading…
Reference in a new issue