-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfigure.ac
More file actions
152 lines (132 loc) · 3.31 KB
/
configure.ac
File metadata and controls
152 lines (132 loc) · 3.31 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# INCLUDES
m4_include([m4/ax_compare_version.m4])
m4_include([m4/ax_architectures.m4])
m4_include([m4/ax_features.m4])
m4_include([m4/ax_defaults.m4])
m4_include([m4/ac_freeipmi.m4])
m4_include([m4/ac_redfish.m4])
m4_include([m4/ac_likwid.m4])
m4_include([m4/ac_oneapi.m4])
m4_include([m4/ac_pgsql.m4])
m4_include([m4/ac_mysql.m4])
m4_include([m4/ac_slurm.m4])
m4_include([m4/ac_cupti.m4])
m4_include([m4/ac_cuda.m4])
m4_include([m4/ac_rsmi.m4])
m4_include([m4/ac_pbs.m4])
m4_include([m4/ac_oar.m4])
m4_include([m4/ac_gsl.m4])
m4_include([m4/ac_dlb.m4])
m4_include([m4/ac_countdown.m4])
m4_include([m4/ac_curl.m4])
m4_include([m4/ac_jansson.m4])
m4_include([m4/ac_microhttpd.m4])
# INIT
AC_PREREQ([2.69])
AC_INIT([EAR], [6.0], [ear-support@bsc.es], [ear-6.0], [https://gitlab.bsc.es/ear_team/ear])
# Notices in configure
AC_COPYRIGHT([Copyright © 2017-present BSC])
# Distinguish this package’s source directory from other source directories that
# might happen to exist in the file system.
AC_CONFIG_SRCDIR([src/library/api/ear.c])
AC_CONFIG_MACRO_DIRS([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_LANG(C)
AM_INIT_AUTOMAKE
# PROGRAMS TEST
: ${CFLAGS="-Wall -Werror -O2 -g"}
AC_PROG_CC
AC_PROG_AWK
AC_PROG_GREP
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AM_PROG_AR
#################
# FIRST SCRIPTS #
#################
#
AX_SET_DEFAULTS
AX_SET_ARCHITECTURES
AX_BEFORE_FEATURES
############
# FEATURES #
############
X_AC_CUDA
X_AC_CUPTI
X_AC_RSMI
X_AC_ONEAPI
X_AC_LIKWID
X_AC_FREEIPMI
X_AC_GSL
X_AC_PGSQL
X_AC_MYSQL
X_AC_ONEAPI
X_AC_REDFISH
X_AC_SLURM
X_AC_OAR
X_AC_PBS
X_AC_DLB
X_AC_COUNTDOWN
X_AC_CMOCKA
X_AC_CURL
X_AC_JANSSON
X_AC_MICROHTTPD
#################
# POST-FEATURES #
#################
AX_AFTER_FEATURES
##########
# OUTPUT #
##########
COMPILABLE="yes"
AC_DEFUN([AC_DEPENDANCY_CHECK],
[
AC_MSG_CHECKING($2)
if test -n "$1"; then
AC_MSG_RESULT(yes)
else
if test $3 == 1; then
COMPILABLE=""
fi
AC_MSG_RESULT(no)
fi
])
AC_DEFUN([AC_FEATURE_CHECK],
[
if test "x$1" = "x$2"; then
AC_MSG_RESULT(Enabled $3 feature... yes)
else
AC_MSG_RESULT(Enabled $3 feature... no)
fi
])
AS_ECHO("--------------------------------------- Checking summary --")
AC_DEPENDANCY_CHECK($MPI_DIR, MPI found, 0)
AC_DEPENDANCY_CHECK($GSL_DIR, GSL found, 1)
AC_DEPENDANCY_CHECK($SCHED_DIR, SLURM/PBS/OAR found ($SCHED_NAME), 0)
AC_DEPENDANCY_CHECK($DB_DIR, Database found ($DB_NAME), 1)
AS_ECHO("----------------------------------------------------------")
#if test -z $COMPILABLE; then
# AC_MSG_ERROR(not compilable)
#fi
AC_CONFIG_FILES([Makefile
src/common/config/config_install.h
etc/module/ear
etc/module/ear-lite
etc/module/ear-sing
etc/module/ear-debug
etc/slurm/ear.plugstack.conf
etc/systemd/eard.service
etc/systemd/eardbd.service
etc/systemd/eargmd.service
etc/systemd/edcmon.service
etc/conf/ear.conf.full.template
etc/conf/ear.conf.template
etc/rpms/specs/ear.spec
etc/rpms/specs/ear_ln.spec
etc/rpms/specs/ear_cn.spec
etc/rpms/specs/ear_sn.spec
src/daemon/app_api/Makefile
tests/daemon/Makefile])
AC_CONFIG_FILES([etc/rpms/rpmbuild.sh], [chmod +x etc/rpms/rpmbuild.sh])
AC_OUTPUT
AX_AFTER_OUTPUT