projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dac6ce
)
correct error message is given upon missing pkg-config package. fixes texane/stlink#338
author
Efe Can İçöz
<efe@debian>
Thu, 3 Sep 2015 08:32:12 +0000
(11:32 +0300)
committer
Efe Can İçöz
<efe@debian>
Thu, 3 Sep 2015 08:32:12 +0000
(11:32 +0300)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index f1357b12165e276bf14a35b93b29db8eda84272e..203cc6bd59e507698b85d97bcd811dcc63653eda 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-20,6
+20,11
@@
AC_CHECK_HEADERS(sys/mman.h)
AC_CHECK_HEADERS(sys/poll.h)
AC_REPLACE_FUNCS(mmap)
+if ! hash pkg-config; then
+ echo "ERROR: pkg-config is needed..."
+ exit 1
+fi
+
# Checks for libraries.
PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,,
AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))