Files
iio-sensor-proxy/configure.ac
Frederic Crozat 2a2f5c5c3b data: fix permissions when geoclue runs with a different user (#185)
Geoclue can be configured to use another user than geoclue.
2017-09-22 13:31:44 +02:00

71 lines
2.0 KiB
Plaintext

AC_PREREQ(2.59)
AC_INIT([iio-sensor-proxy], [2.3], [hadess@hadess.net])
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 >= 232)
AC_ARG_WITH(geoclue-user,
AS_HELP_STRING([--with-geoclue-user=USER],
[The USER (existing) as which geoclue service is running (default: geoclue)]),
geoclue_user="$with_geoclue_user",
geoclue_user="geoclue")
AC_SUBST(geoclue_user)
AC_PATH_PROG([GDBUS_CODEGEN],[gdbus-codegen])
AC_CONFIG_FILES([
Makefile
data/Makefile
src/Makefile
docs/Makefile
docs/version.xml
])
AC_OUTPUT