forked from HPC-ULL/eml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
83 lines (69 loc) · 2.75 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
AC_INIT([EML], [1.0.1], [[email protected]])
AC_CONFIG_SRCDIR([src/device.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile Doxyfile])
AC_CONFIG_MACRO_DIR([m4])
AS_IF([test "$program_prefix" = NONE],
[program_prefix=$PACKAGE_TARNAME-])
AM_INIT_AUTOMAKE([1.14 -Wall -Werror -Wno-extra-portability subdir-objects check-news])
AC_PROG_CC([c99])
AC_PROG_CC_C99
AC_PROG_LN_S
AC_SEARCH_LIBS([clock_gettime], [rt])
AC_SEARCH_LIBS([round], [m])
AC_SEARCH_LIBS([dlopen], [dl])
AC_SEARCH_LIBS([pthread_create], [pthread])
PKG_CHECK_MODULES([CONFUSE], [libconfuse])
# Optional: Dummy testing module Support
AC_ARG_WITH([dummy], AS_HELP_STRING([--with-dummy],
[Enable Dummy testing support
(default: disabled)]))
AS_IF([test "x$with_dummy" != "xno"], [have_dummy=yes])
AM_CONDITIONAL([ENABLE_DUMMY], [test "x$have_dummy" = "xyes"])
# Optional: Intel MIC support
AC_ARG_WITH([mic], AS_HELP_STRING([--without-mic],
[Disable Intel Many Integrated Core support
(default: enabled if miclib.h is available)]))
AS_IF([test "x$with_mic" != "xno"],
[AC_CHECK_HEADER([miclib.h], [have_mic=yes])])
AM_CONDITIONAL([ENABLE_MIC], [test "x$have_mic" = "xyes"])
# Optional: Intel RAPL support
AC_ARG_WITH([rapl], AS_HELP_STRING([--without-rapl],
[Disable Intel Running Average Power Limit support
(default: enabled)]))
AS_IF([test "x$with_rapl" != "xno"], [have_rapl=yes])
AM_CONDITIONAL([ENABLE_RAPL], [test "x$have_rapl" = "xyes"])
# Optional: NVIDIA Management Library support
AC_ARG_WITH([nvml], AS_HELP_STRING([--without-nvml],
[Disable NVIDIA Management Library support
(default: enabled if nvml.h is available)]))
AS_IF([test "x$with_nvml" != "xno"],
[AC_CHECK_HEADER([nvml.h], [have_nvml=yes])])
AM_CONDITIONAL([ENABLE_NVML], [test "x$have_nvml" = "xyes"])
# Optional: Schleifenbauer PDU support
AC_ARG_WITH([sb_pdu], AS_HELP_STRING([--with-sb-pdu],
[Enable Schleifenbauer PDU support
(default: disabled)]))
AS_IF([test "x$with_sb_pdu" = "xyes"],
[PKG_CHECK_MODULES([CRYPTO], [libcrypto], [have_sb_pdu=yes])])
AM_CONDITIONAL([ENABLE_SB_PDU], [test "x$have_sb_pdu" = "xyes"])
# Optional: Odroid INA231 Sensor support
AC_ARG_WITH([odroid], AS_HELP_STRING([--without-odroid],
[Disable Odroid support
(default: enabled)]))
AS_IF([test "x$with_odroid" != "xno"], [have_odroid=yes])
AM_CONDITIONAL([ENABLE_ODROID], [test "x$have_odroid" = "xyes"])
# Optional: Labee(PSNN) REST Support
AC_ARG_WITH([labee], AS_HELP_STRING([--with-labee],
[Enable Labee support
(default: disabled)]))
AS_IF([test "x$with_labee" = "xyes"],
[PKG_CHECK_MODULES([XML_CURL], [libxml-2.0, libcurl], [have_labee=yes])])
AM_CONDITIONAL([ENABLE_LABEE], [test "x$have_labee" = "xyes"])
LT_INIT
# Doxygen documentation
DX_HTML_FEATURE(ON)
DX_PDF_FEATURE(OFF)
DX_PS_FEATURE(OFF)
DX_INIT_DOXYGEN([AC_PACKAGE_NAME])
AC_OUTPUT