Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions autotools/m4/phpjson.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# This macro test for php-json (used by webgui)
#
AC_DEFUN([AX_PHPJSON_CHECK],
[
chkfile="/usr/lib64/php/modules/json.so"

AC_CHECK_FILE([$chkfile],
[
], [
AC_MSG_WARN(***********************************************)
AC_MSG_WARN(php-json not found under $chkfile)
AC_MSG_WARN(webgui will build however it may fail to render)
AC_MSG_WARN(graphs yum install php-json?)
AC_MSG_WARN(***********************************************)
])
])
6 changes: 6 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ AX_ENABLE_FLAG([gprof], [test only: add gprof info to the binaries], [-g -pg])
AX_ENABLE_FLAG([gcov], [test only: add gcov info to the binaries], [--coverage])
AX_VALGRIND_CHECK

#
# Check for php-json
#
AX_PHPJSON_CHECK


# behavior flags
AX_DISABLE_FLAG([atfunc], [Don't use 'at' functions for scanning], [-D_NO_AT_FUNC])

Expand Down