forked from hadess/iio-sensor-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
63 lines (48 loc) · 1.73 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
AC_PREREQ(2.59)
AC_INIT([iio-sensor-proxy], [2.0], [[email protected]])
AX_IS_RELEASE([git-directory])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE(1.9 dist-xz no-dist-gzip check-news)
# Enable silent build when available (Automake 1.11)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_PROG_SED
AM_PROG_CC_C_O
AC_CHECK_LIBM
AC_SUBST(LIBM)
AX_COMPILER_FLAGS([WARN_CFLAGS],[WARN_LDFLAGS])
GTK_DOC_CHECK([1.11],[--flavour no-tmpl])
PKG_CHECK_EXISTS(udev, [], [AC_MSG_ERROR(udev development libraries are required)])
AC_ARG_WITH([udevrulesdir],
AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules]),
[],
[with_udevrulesdir=$($PKG_CONFIG --variable=udevdir udev)"/rules.d"])
AC_SUBST([udevrulesdir], [$with_udevrulesdir])
PKG_CHECK_EXISTS(systemd, [], [AC_MSG_ERROR(systemd development libraries are required)])
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[],
[with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
if test x$with_systemdsystemunitdir != xno; then
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
fi
AC_ARG_ENABLE([gtk-tests],
[AS_HELP_STRING([--disable-gtk-tests],[do not build GTK+ test tools])],
[],[enable_gtk_tests=yes])
if test x$enable_gtk_tests = xyes; then
PKG_CHECK_MODULES(GTK_TESTS, gtk+-3.0)
fi
AM_CONDITIONAL(HAVE_GTK_TESTS, test "x$enable_gtk_tests" = "xyes")
PKG_CHECK_MODULES(IIO_SENSOR_PROXY, gio-2.0 gudev-1.0)
AC_PATH_PROG([GDBUS_CODEGEN],[gdbus-codegen])
AC_CONFIG_FILES([
Makefile
data/Makefile
src/Makefile
docs/Makefile
docs/version.xml
])
AC_OUTPUT