-
Notifications
You must be signed in to change notification settings - Fork 102
/
configure.ac
36 lines (30 loc) · 1.27 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
AC_INIT([rt-app], [m4_esyscmd_s([git describe --tags HEAD])], [[email protected], [email protected]])
AC_COPYRIGHT([Copyright (C) 2009 Giacomo Bagnoli <[email protected]>
Copyright (C) 2016 Juri Lelli <[email protected]>
Copyright (C) 2016 Vincent Guittot <[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_CHECK_LIB([numa], [numa_available])
AC_CHECK_LIB([json-c], [json_object_from_file], [], [AC_MSG_ERROR([json-c libraries required])])
AC_CHECK_FUNCS(sched_setattr, [], [])
AM_CONDITIONAL([SET_DLSCHED], [test !HAVE_SCHED_SETATTR])
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_DEFINE([BUILD_DATE], ["m4_esyscmd_s([date +"%Y-%m-%d %H:%M:%S %Z"])"], [Build date.])
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_FILES([Makefile src/Makefile libdl/Makefile README COPYING])
AC_OUTPUT