From 9cf19f93324f1a7adfc5c386050d21ce6d661203 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 3 Nov 2019 21:45:44 +0100 Subject: pciaccess: properly detect and use * configure.ac: Detect pciaccess pkg module. Define HAVE_LIBPCIACCESS, libpciaccess_CFLAGS, libpciaccess_LIBS variables. * config.make.in (HAVE_LIBPCIACCESS, libpciaccess_CFLAGS, libpciaccess_LIBS): Add variables. * Makefile (prog-subdirs) [!HAVE_LIBPCIACCESS]: Do not add pci-arbiter. * pci-arbiter/Makefile (LDLIBS): Use $(libpciaccess_LIBS) instead of -lpciaccess. (CFLAGS): Use $(libpciaccess_CFLAGS). --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1de328ed..09662f87 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,6 @@ prog-subdirs = auth proc exec term \ init \ devnode \ eth-multiplexer \ - pci-arbiter \ acpi \ shutdown @@ -57,6 +56,10 @@ ifeq ($(HAVE_LIBLWIP),yes) prog-subdirs += lwip endif +ifeq ($(HAVE_LIBPCIACCESS),yes) +prog-subdirs += pci-arbiter +endif + # Other directories other-subdirs = hurd doc config release include -- cgit v1.2.3