correct error message is given upon missing pkg-config package. fixes texane/stlink#338
authorEfe Can İçöz <efe@debian>
Thu, 3 Sep 2015 08:32:12 +0000 (11:32 +0300)
committerEfe Can İçöz <efe@debian>
Thu, 3 Sep 2015 08:32:12 +0000 (11:32 +0300)
configure.ac

index f1357b12165e276bf14a35b93b29db8eda84272e..203cc6bd59e507698b85d97bcd811dcc63653eda 100644 (file)
@@ -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 ***]))