forked from scheduler-tools/rt-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
65 lines (56 loc) · 1.94 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
AC_INIT([rt-app], [0.2_alpha2], [[email protected]])
AC_COPYRIGHT([Copyright (C) 2009 Giacomo Bagnoli <[email protected]])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2])
m4_pattern_allow([AM_PROG_AR])
AM_PROG_AR
AC_PROG_CC
AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/rt-app.c])
AC_HEADER_STDC
AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([m], [round])
AC_CHECK_LIB([rt], [clock_gettime])
AC_ARG_WITH([aquosa],
[AS_HELP_STRING([--with-aquosa],
[Add support for the AQuoSA framework])],
[],
[with_aquosa=no])
QRESLIB=
AS_IF([test "x$with_aquosa" != xno],
[AC_CHECK_LIB([qreslib], [qres_init],
[AC_SUBST([QRESLIB], ["-lqreslib"])
AC_DEFINE([AQUOSA], [1],
[Define if you have libqreslib])
],
[AC_MSG_FAILURE(
[qreslib test failed (--without-aquosa to disable)])],
[-lqreslib])])
AC_ARG_WITH([deadline],
[AS_HELP_STRING([--with-deadline],
[Add support for SCHED_DEADLINE])],
[],
[with_deadline=no])
AS_IF([test "x$with_deadline" != xno],
[AC_DEFINE([DLSCHED], [1], [Define if you have SCHED_DEADLINE support])
])
AC_ARG_WITH([json],
[AS_HELP_STRING([--with-json],
[Add support for reading json config file]
)
], [], [with_json=no]
)
AS_IF([test "x$with_json" != "xno"],
[PKG_CHECK_MODULES([LIBJSON], [json-c], [AC_DEFINE([JSON], [1], [Define if you have libjson])])
])
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
AC_DEFINE([LOG_LEVEL], [50], [Define log message verbosity])
else
AC_DEFINE_UNQUOTED([LOG_LEVEL], [${LOGLVL}])
fi
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_FILES([Makefile src/Makefile libdl/Makefile README COPYING])
AC_OUTPUT