forked from pwrapi/pwrapi-ref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
53 lines (42 loc) · 1.3 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
orig_CFLAGS="$CFLAGS"
AC_INIT([pwrapi], [1.0.1])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([config])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([src/pwr_config.h])
AM_MAINTAINER_MODE
AC_PROG_CC
AC_PROG_CXX
AM_PROG_CC_C_O
dnl Supply default CFLAGS, if not specified
if test -z "$orig_CFLAGS"; then
if test x$GCC = xyes; then
CFLAGS="-g -O3"
fi
fi
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_MKDIR_P
AC_PROG_LN_S
AC_C_RESTRICT
AC_C_INLINE
m4_include([config/pwrapi.m4])
m4_include([config/pwrapi_python.m4])
m4_include([config/pwrapi_swig.m4])
m4_include([config/pwrapi_ulxmlrpcpp.m4])
m4_include([config/pwrapi_powerinsight.m4])
m4_include([config/pwrapi_powergadget.m4])
PWRAPI_CHECK_SWIG([pwrapi_have_swig="yes"], [pwrapi_have_swig="no"])
PWRAPI_CHECK_ULXMLRPCPP([pwrapi_have_xmlrpc="yes"], [pwrapi_have_xmlrpc="no"])
PWRAPI_CHECK_POWERINSIGHT([pwrapi_have_powerinsight="yes"], [pwrapi_have_powerinsight="no"])
PWRAPI_CHECK_POWERGADGET([pwrapi_have_powergadget="yes"], [pwrapi_have_powergadget="no"])
PWRAPI_CHECK_DEBUG()
AC_CONFIG_FILES([Makefile
src/Makefile
src/tinyxml2/Makefile
src/pwr/Makefile
src/bindings/python/Makefile
src/plugins/Makefile
tools/Makefile
examples/Makefile])
AC_OUTPUT