2019-07-30 19:45:50 +02:00
|
|
|
AC_INIT([fprintd], [1.90.0])
|
2013-08-11 17:58:02 +02:00
|
|
|
AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip check-news])
|
2008-03-04 12:36:28 +00:00
|
|
|
AC_CONFIG_SRCDIR([src/main.c])
|
2008-05-14 14:04:35 +01:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2008-03-04 12:36:28 +00:00
|
|
|
|
2011-03-30 16:39:46 +01:00
|
|
|
# Enable silent build when available (Automake 1.11)
|
|
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
|
|
|
|
|
2008-03-04 12:36:28 +00:00
|
|
|
AC_PREREQ([2.50])
|
2008-11-21 11:15:05 +00:00
|
|
|
AC_PROG_LIBTOOL
|
2008-03-04 12:36:28 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
|
|
2008-05-14 14:04:35 +01:00
|
|
|
GETTEXT_PACKAGE=fprintd
|
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define to the Gettext package name])
|
|
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
|
AM_GLIB_GNU_GETTEXT
|
2008-05-21 14:36:36 +01:00
|
|
|
IT_PROG_INTLTOOL([0.35.0])
|
2008-05-14 14:04:35 +01:00
|
|
|
|
2019-07-30 19:45:50 +02:00
|
|
|
PKG_CHECK_MODULES(FPRINT, [libfprint2 >= 1.90.0])
|
2008-03-04 12:36:28 +00:00
|
|
|
AC_SUBST(FPRINT_LIBS)
|
|
|
|
|
AC_SUBST(FPRINT_CFLAGS)
|
|
|
|
|
|
2019-12-04 11:07:12 +01:00
|
|
|
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.56 dbus-glib-1)
|
2008-03-04 12:36:28 +00:00
|
|
|
AC_SUBST(GLIB_CFLAGS)
|
|
|
|
|
AC_SUBST(GLIB_LIBS)
|
|
|
|
|
|
2019-12-19 09:42:16 +01:00
|
|
|
PKG_CHECK_MODULES(PAM_MODULE, glib-2.0 >= 2.56 dbus-glib-1)
|
|
|
|
|
AC_SUBST(PAM_MODULE_CFLAGS)
|
|
|
|
|
AC_SUBST(PAM_MODULE_LIBS)
|
|
|
|
|
|
2019-12-04 11:07:12 +01:00
|
|
|
PKG_CHECK_MODULES(DAEMON, glib-2.0 dbus-glib-1 gmodule-2.0 polkit-gobject-1 >= 0.91 gio-2.0)
|
2008-10-29 18:34:38 +00:00
|
|
|
AC_SUBST(DAEMON_LIBS)
|
|
|
|
|
AC_SUBST(DAEMON_CFLAGS)
|
2008-05-20 17:00:58 +01:00
|
|
|
|
2008-10-31 12:02:44 +00:00
|
|
|
AC_ARG_ENABLE(pam, AC_HELP_STRING([--enable-pam],[Build the fprintd PAM module]), enable_pam="$enableval", enable_pam=yes)
|
|
|
|
|
has_pam=no
|
|
|
|
|
if test x$enable_pam = xyes; then
|
|
|
|
|
has_pam=yes
|
|
|
|
|
AC_CHECK_HEADER([security/pam_modules.h], [has_pam=yes] , [has_pam=no])
|
|
|
|
|
if test x$has_pam = xyes; then
|
|
|
|
|
has_pam=no
|
|
|
|
|
AC_CHECK_LIB(pam, pam_start, [PAM_LIBS="-lpam"
|
|
|
|
|
has_pam=yes],
|
|
|
|
|
has_pam=no)
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST(PAM_LIBS)
|
|
|
|
|
fi
|
|
|
|
|
AM_CONDITIONAL(HAVE_PAM, test "x$has_pam" = "xyes")
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for PAM headers and library)
|
|
|
|
|
AC_MSG_RESULT([$has_pam])
|
|
|
|
|
|
|
|
|
|
|
2010-08-19 14:54:34 +01:00
|
|
|
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
|
|
|
|
|
AC_CHECK_PROG([XSLTPROC], [xsltproc], [xsltproc])
|
2012-11-18 13:26:18 -05:00
|
|
|
AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man])
|
|
|
|
|
AM_CONDITIONAL(BUILD_MAN, test x"$POD2MAN" != "x")
|
2008-05-21 14:36:36 +01:00
|
|
|
|
2008-11-21 11:15:05 +00:00
|
|
|
GTK_DOC_CHECK([1.3])
|
|
|
|
|
|
2012-12-18 11:19:08 -05:00
|
|
|
AC_ARG_WITH([systemdsystemunitdir],
|
|
|
|
|
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
|
|
|
|
|
[],
|
|
|
|
|
[with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
|
|
|
|
AS_IF([test "x$with_systemdsystemunitdir" != "xno"], [
|
data: tell systemd to create state directory
If the directory referred to by ReadWritePaths= does not exist, the
service fails to start:
systemd[1]: Starting Fingerprint Authentication Daemon...
systemd[9736]: fprintd.service: Failed to set up mount namespacing: No such file or directory
systemd[9736]: fprintd.service: Failed at step NAMESPACE spawning /usr/lib/fprintd/fprintd: No such file or directory
systemd[1]: fprintd.service: Main process exited, code=exited, status=226/NAMESPACE
systemd[1]: fprintd.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Fingerprint Authentication Daemon.
This may happen when booting with an empty /var filesystem.
For a system service, "StateDirectory=fprint" causes /var/lib/fprint and
any parent directories to be created if missing (with mode 0755 by
default, owned by the user and group of the service, which in this case
is root). In combination with ProtectSystem=strict, this state
directory will be mounted read-write. StateDirectory was introduced in
systemd 235, so require at least this version.
The /var/lib prefix is hardcoded in systemd. (Since systemd 240, the
full path(s) to StateDirectory are provided as $STATE_DIRECTORY, but
since it is always /var/lib, we continue to just hardcode that path.)
On non-systemd systems, since fprintd runs as root with no confinement,
it can create its state directory as needed (with g_mkdir_with_parents()
in file_storage_print_data_save()).
2019-03-04 10:26:53 +00:00
|
|
|
# StateDirectory was introduced in systemd 235
|
|
|
|
|
PKG_CHECK_MODULES(SYSTEMD, systemd >= 235)
|
2012-12-18 11:19:08 -05:00
|
|
|
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
|
|
|
|
])
|
|
|
|
|
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$systemdsystemunitdir"])
|
|
|
|
|
|
2008-03-04 12:36:28 +00:00
|
|
|
AS_AC_EXPAND(DATADIR, $datadir)
|
|
|
|
|
|
|
|
|
|
DBUS_SERVICES_DIR="$DATADIR/dbus-1/services"
|
|
|
|
|
AC_SUBST(DBUS_SERVICES_DIR)
|
|
|
|
|
AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where services dir for DBUS is])
|
|
|
|
|
|
2019-08-08 12:24:32 +02:00
|
|
|
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
|
|
|
|
|
AC_DEFINE_UNQUOTED(SYSCONFDIR, "$SYSCONFDIR", [Where the configuration file will be located])
|
2008-10-29 18:34:38 +00:00
|
|
|
|
2008-10-31 12:02:44 +00:00
|
|
|
GNOME_COMPILE_WARNINGS
|
2008-03-04 12:36:28 +00:00
|
|
|
|
2008-11-21 11:15:05 +00:00
|
|
|
AC_OUTPUT([
|
|
|
|
|
Makefile
|
|
|
|
|
src/Makefile
|
|
|
|
|
data/Makefile
|
2019-10-02 14:07:42 +02:00
|
|
|
utils/Makefile
|
2008-11-21 11:15:05 +00:00
|
|
|
pam/Makefile
|
|
|
|
|
doc/Makefile
|
|
|
|
|
doc/version.xml
|
|
|
|
|
doc/dbus/Makefile
|
2019-10-07 15:14:21 +02:00
|
|
|
tests/Makefile
|
2008-11-21 11:15:05 +00:00
|
|
|
po/Makefile.in
|
|
|
|
|
])
|