rt-app can't run any more without using libjson-c since json file is the only way to provide the description of a use case
Signed-off-by: Vincent Guittot vincent.guittot@linaro.org --- configure.ac | 12 +----------- src/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/configure.ac b/configure.ac index 50d6f76..6b24f11 100644 --- a/configure.ac +++ b/configure.ac @@ -12,6 +12,7 @@ AC_HEADER_STDC AC_CHECK_LIB([pthread], [pthread_create]) AC_CHECK_LIB([m], [round]) AC_CHECK_LIB([rt], [clock_gettime]) +AC_CHECK_LIB([json-c], [json_object_from_file])
AC_ARG_WITH([deadline], [AS_HELP_STRING([--with-deadline], @@ -23,17 +24,6 @@ AS_IF([test "x$with_deadline" != xno], [AC_DEFINE([DLSCHED], [1], [Define if you have SCHED_DEADLINE support]) ])
-LIBJSON= - AC_CHECK_LIB([json-c], [json_object_from_file], - [AC_SUBST([LIBJSON], ["-ljson-c"]) - AC_DEFINE([JSON], [1], [Define if you have libjson-c]) - ], - [AC_MSG_FAILURE([libjson-c test failed (use --without-json-c to disable or install json-c)])], - [-ljson-c] - ) - -AM_CONDITIONAL([AMJSON], [ test x$with_json != xno]) - AC_ARG_VAR([LOGLVL], [verbosity level, from 0 to 100. 100 is very verbose])
if test -z "${LOGLVL}";then diff --git a/src/Makefile.am b/src/Makefile.am index ca734d2..9bca1dc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,5 +3,5 @@ AM_CPPFLAGS = -I$(srcdir)/../libdl/ bin_PROGRAMS = rt-app rt_app_SOURCES= rt-app_types.h rt-app_args.h rt-app_utils.h rt-app_utils.c rt-app_args.c rt-app.h rt-app.c rt_app_SOURCES += rt-app_parse_config.h rt-app_parse_config.c -rt_app_LDADD = $(QRESLIB) ../libdl/libdl.a $(LIBJSON) +rt_app_LDADD = $(QRESLIB) ../libdl/libdl.a dist_bin_SCRIPTS = $(srcdir)/../doc/workgen