summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7853bfa)
raw | patch | inline | side by side (parent: 7853bfa)
author | Pshyk, SerhiyX <serhiyx.pshyk@intel.com> | |
Tue, 30 May 2017 13:43:35 +0000 (14:43 +0100) | ||
committer | Pshyk, SerhiyX <serhiyx.pshyk@intel.com> | |
Tue, 30 May 2017 13:47:15 +0000 (14:47 +0100) |
Change-Id: Ie69b921a253f418ac7b87248faa29d9d35c647a0
Signed-off-by: Serhiy Pshyk <serhiyx.pshyk@intel.com>
Signed-off-by: Serhiy Pshyk <serhiyx.pshyk@intel.com>
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 7b5045f70d3b7e0aa92d7ca5b5ebd3b5243c0343..f918de44d34d75984d322cb16114c297288a793b 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_ARG_WITH([libjevents],
[AS_HELP_STRING([--with-libjevents@<:@=PREFIX@:>@], [Path to libjevents.])],
[
- if test "x$withval" != "xno" && test "x$withval" != "xyes"
- then
+ if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
with_libjevents_cppflags="-I$withval/include"
with_libjevents_ldflags="-L$withval/lib"
with_libjevents="yes"
[with_libjevents="yes"]
)
-if test "x$with_libjevents" = "xyes"
-then
+if test "x$with_libjevents" = "xyes"; then
SAVE_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $with_libjevents_cppflags"
- AC_CHECK_HEADERS(jevents.h, [with_libjevents="yes"], [with_libjevents="no (jevents.h not found)"])
+ AC_CHECK_HEADERS([jevents.h], [with_libjevents="yes"], [with_libjevents="no (jevents.h not found)"])
CPPFLAGS="$SAVE_CPPFLAGS"
fi
-if test "x$with_libjevents" = "xyes"
-then
+if test "x$with_libjevents" = "xyes"; then
SAVE_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $with_libjevents_ldflags"
- AC_CHECK_LIB(jevents, json_events, [with_libjevents="yes"], [with_libjevents="no (Can't find libjevents)"])
+ AC_CHECK_LIB([jevents], [json_events], [with_libjevents="yes"], [with_libjevents="no (Can't find libjevents)"])
LDFLAGS="$SAVE_LDFLAGS"
fi
-if test "x$with_libjevents" = "xyes"
-then
+if test "x$with_libjevents" = "xyes"; then
BUILD_WITH_LIBJEVENTS_CPPFLAGS="$with_libjevents_cppflags"
BUILD_WITH_LIBJEVENTS_LDFLAGS="$with_libjevents_ldflags"
BUILD_WITH_LIBJEVENTS_LIBS="-ljevents"
fi
-AC_SUBST(BUILD_WITH_LIBJEVENTS_CPPFLAGS)
-AC_SUBST(BUILD_WITH_LIBJEVENTS_LDFLAGS)
-AC_SUBST(BUILD_WITH_LIBJEVENTS_LIBS)
+AC_SUBST([BUILD_WITH_LIBJEVENTS_CPPFLAGS])
+AC_SUBST([BUILD_WITH_LIBJEVENTS_LDFLAGS])
+AC_SUBST([BUILD_WITH_LIBJEVENTS_LIBS])
# }}}
# --with-libprotobuf {{{