sysd_monitor: Parse command line parameters
Tested:
- Verified multiple -f and --file options
- Verified -h and --help option
Change-Id: I0b528c7534df051685991576c040d0650faabf21
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/configure.ac b/configure.ac
index 7919ec5..07ef420 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,6 +17,13 @@
PKG_CHECK_MODULES([SDEVENTPLUS], [sdeventplus])
PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
+# We need the header only CLI library
+AC_CHECK_HEADERS(
+ [CLI/CLI.hpp],
+ [],
+ [AC_MSG_ERROR([Could not find CLI11 CLI/CLI.hpp])]
+)
+
# Checks for typedefs, structures, and compiler characteristics.
AX_CXX_COMPILE_STDCXX_17([noext])
AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])