summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2010-05-19 21:55:52 +0200
committerZheng Da <zhengda1936@gmail.com>2010-05-19 21:55:52 +0200
commit777db2e2456e210e669a3a0c6f5a76b895a3fa7d (patch)
tree20ffd8a1b348991e443cd4e547182ebfbd98b183
parent4e80880ba4b1eec6723848386b2da56e5b17fc5b (diff)
configure checks libpciaccess.
-rw-r--r--configure.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 4bdb1b89..f9db561c 100644
--- a/configure.in
+++ b/configure.in
@@ -226,6 +226,12 @@ if test "$install_pcap" = "yes"; then
fi
fi
+AC_CHECK_LIB(pciaccess, pci_system_init, LIBPCIACCESS=-lpciaccess, LIBPCIACCESS=no)
+AC_SUBST(LIBPCIACCESS)
+if test "$LIBPCIACCESS" = "no"; then
+ AC_MSG_ERROR([libpciaccess must be install in order to use libddekit])
+fi
+
# Check for ncursesw, which is needed for the console-curses client.
hurd_LIB_NCURSESW