2009-02-02 12:50:53 -06:00
|
|
|
AC_PREREQ(2.59)
|
2016-11-11 15:54:13 -06:00
|
|
|
AC_CONFIG_MACRO_DIRS([m4])
|
2016-10-21 15:35:28 -05:00
|
|
|
m4_include(VERSION.m4)
|
2016-11-01 06:12:17 -05:00
|
|
|
AC_INIT([freeipa],
|
2009-02-02 12:50:53 -06:00
|
|
|
IPA_VERSION,
|
|
|
|
[https://hosted.fedoraproject.org/projects/freeipa/newticket])
|
|
|
|
|
2016-12-13 03:52:46 -06:00
|
|
|
dnl Make sure the build directory name does not contain spaces!
|
|
|
|
dnl Spaces are causing problems in libtool, makefiles, autoconf itself,
|
|
|
|
dnl gettextize framework etc.
|
|
|
|
case "$PWD" in
|
|
|
|
*\ * | *\ *)
|
|
|
|
AC_MSG_ERROR([whitespace in working directory path is not supported]) ;;
|
|
|
|
esac
|
|
|
|
|
2009-02-02 12:50:53 -06:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
2016-12-20 11:46:33 -06:00
|
|
|
AM_INIT_AUTOMAKE([foreign 1.9 tar-pax])
|
2012-07-04 05:15:05 -05:00
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
|
2009-02-02 12:50:53 -06:00
|
|
|
|
2019-02-06 06:47:01 -06:00
|
|
|
dnl enable C11 extensions for features like memset_s()
|
2019-08-01 06:42:10 -05:00
|
|
|
CFLAGS="$CFLAGS -D__STDC_WANT_LIB_EXT1__=1"
|
2019-02-06 06:47:01 -06:00
|
|
|
dnl enable features like htole16()
|
2019-08-01 06:42:10 -05:00
|
|
|
CFLAGS="$CFLAGS -D_DEFAULT_SOURCE=1"
|
2019-02-06 06:47:01 -06:00
|
|
|
dnl Enable features like strndup()
|
2019-08-01 06:42:10 -05:00
|
|
|
CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200809L"
|
2019-02-06 06:47:01 -06:00
|
|
|
dnl fail hard when includes statements are missing
|
2019-08-01 06:42:10 -05:00
|
|
|
CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
|
2019-02-06 06:47:01 -06:00
|
|
|
|
2013-12-16 15:10:05 -06:00
|
|
|
AC_PROG_CC_C99
|
2009-02-02 12:50:53 -06:00
|
|
|
AC_DISABLE_STATIC
|
2016-02-02 02:09:03 -06:00
|
|
|
LT_INIT
|
2009-02-02 12:50:53 -06:00
|
|
|
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
2017-01-03 07:32:05 -06:00
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([server],
|
2017-02-21 14:55:21 -06:00
|
|
|
[AC_HELP_STRING([--disable-server], [Disable server support])],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) enable_server=yes ;;
|
|
|
|
no) enable_server=no ;;
|
|
|
|
*) AC_MSG_ERROR([bad value ${enableval} for --disable-server]) ;;
|
|
|
|
esac],
|
|
|
|
[enable_server=yes])
|
|
|
|
AM_CONDITIONAL([ENABLE_SERVER], [test x$enable_server = xyes])
|
|
|
|
|
|
|
|
AC_ARG_WITH([ipatests],
|
|
|
|
[AC_HELP_STRING([--without-ipatests], [Build without ipatests])],
|
|
|
|
[with_ipatests=${withval}],
|
|
|
|
[with_ipatests=yes])
|
|
|
|
AM_CONDITIONAL([WITH_IPATESTS], [test x"$with_ipatests" = xyes])
|
2017-01-03 07:32:05 -06:00
|
|
|
|
2020-05-31 18:53:25 -05:00
|
|
|
AC_ARG_WITH([ipa_join_xml],
|
|
|
|
[AC_HELP_STRING([--with-ipa-join-xml], [Use XML-RPC support in ipa-join])],
|
|
|
|
[with_ipa_join_xml=${withval}],
|
|
|
|
[with_ipa_join_xml=no])
|
|
|
|
AS_IF([test x"$with_ipa_join_xml" = xyes], [AC_DEFINE([WITH_IPA_JOIN_XML], [1],
|
|
|
|
[ipa-join uses XML-RPC])])
|
|
|
|
AM_CONDITIONAL([WITH_IPA_JOIN_XML], [test x"$with_ipa_join_xml" = xyes])
|
|
|
|
|
2010-11-04 11:08:26 -05:00
|
|
|
AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
|
|
|
|
|
2009-02-02 12:50:53 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
2020-06-08 08:59:24 -05:00
|
|
|
dnl - Check for POPT
|
2009-02-02 12:50:53 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2020-05-18 01:40:30 -05:00
|
|
|
PKG_CHECK_MODULES([POPT], [popt])
|
|
|
|
|
2009-02-02 12:50:53 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for KRB5
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2016-10-18 10:23:25 -05:00
|
|
|
PKG_CHECK_MODULES([KRB5], [krb5])
|
2020-05-18 01:40:30 -05:00
|
|
|
PKG_CHECK_MODULES([KRB5_GSSAPI], [krb5-gssapi])
|
2009-02-02 12:50:53 -06:00
|
|
|
|
2017-01-24 03:02:30 -06:00
|
|
|
AC_CHECK_HEADER(kdb.h, [], [AC_MSG_ERROR([kdb.h not found])])
|
|
|
|
AC_CHECK_MEMBER(
|
|
|
|
[kdb_vftabl.free_principal],
|
|
|
|
[AC_DEFINE([HAVE_KDB_FREEPRINCIPAL], [1],
|
|
|
|
[KDB driver API has free_principal callback])],
|
|
|
|
[AC_MSG_NOTICE([KDB driver API has no free_principal callback])],
|
|
|
|
[[#include <kdb.h>]])
|
|
|
|
AC_CHECK_MEMBER(
|
|
|
|
[kdb_vftabl.free_principal_e_data],
|
|
|
|
[AC_DEFINE([HAVE_KDB_FREEPRINCIPAL_EDATA], [1],
|
|
|
|
[KDB driver API has free_principal_e_data callback])],
|
|
|
|
[AC_MSG_NOTICE([KDB driver API has no free_principal_e_data callback])],
|
|
|
|
[[#include <kdb.h>]])
|
|
|
|
|
|
|
|
if test "x$ac_cv_member_kdb_vftabl_free_principal" = "xno" \
|
|
|
|
-a "x$ac_cv_member_kdb_vftable_free_principal_e_data" = "xno" ; then
|
|
|
|
AC_MSG_WARN([KDB driver API does not allow to free Kerberos principal data.])
|
|
|
|
AC_MSG_WARN([KDB driver will leak memory on Kerberos principal use])
|
|
|
|
AC_MSG_WARN([See https://github.com/krb5/krb5/pull/596 for details])
|
|
|
|
fi
|
|
|
|
|
2009-02-02 12:50:53 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
2016-10-12 04:05:23 -05:00
|
|
|
dnl - Check for OpenLDAP SDK
|
2009-02-02 12:50:53 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
SAVE_CPPFLAGS=$CPPFLAGS
|
2013-04-16 15:00:09 -05:00
|
|
|
CPPFLAGS="$NSPR_CFLAGS $NSS_CFLAGS"
|
2022-01-11 08:10:24 -06:00
|
|
|
SAVE_LIBS="$LIBS"
|
|
|
|
LIBS=
|
|
|
|
AC_SEARCH_LIBS([ldap_search], [ldap_r ldap], [], [AC_MSG_ERROR([libldap or libldap_r not found])])
|
|
|
|
AC_SEARCH_LIBS([ber_peek_tag], [lber], [], [AC_MSG_ERROR([liblber not found])])
|
|
|
|
LDAP_LIBS="$LIBS"
|
|
|
|
LDAP_CFLAGS=""
|
|
|
|
LIBS="$SAVE_LIBS"
|
2016-10-12 04:05:23 -05:00
|
|
|
LDAP_CFLAGS=""
|
2010-12-03 14:02:29 -06:00
|
|
|
AC_SUBST(LDAP_LIBS)
|
2016-10-12 04:05:23 -05:00
|
|
|
AC_SUBST(LDAP_CFLAGS)
|
2010-12-03 14:02:29 -06:00
|
|
|
|
2021-07-15 14:11:28 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for resolv library
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
SAVE_CPPFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$NSPR_CFLAGS $NSS_CFLAGS"
|
|
|
|
AC_CHECK_LIB(resolv,main,RESOLV_LIBS=-lresolv)
|
|
|
|
AC_CHECK_HEADERS(resolv.h)
|
|
|
|
AC_SUBST(RESOLV_LIBS)
|
|
|
|
|
2009-02-02 12:50:53 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for OpenSSL Crypto library
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2016-10-18 10:23:25 -05:00
|
|
|
PKG_CHECK_MODULES([CRYPTO], [libcrypto])
|
2009-02-02 12:50:53 -06:00
|
|
|
|
2020-09-24 14:33:17 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for pwquality library
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2020-11-06 07:29:23 -06:00
|
|
|
AM_COND_IF([ENABLE_SERVER], [
|
2020-11-18 04:35:38 -06:00
|
|
|
PKG_CHECK_MODULES([PWQUALITY], [pwquality],
|
|
|
|
[AC_DEFINE(USE_PWQUALITY,1,[Use password quality checks])]
|
|
|
|
)
|
2020-11-06 07:29:23 -06:00
|
|
|
])
|
2020-09-24 14:33:17 -05:00
|
|
|
|
2009-02-02 12:50:53 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
2018-08-23 07:54:28 -05:00
|
|
|
dnl - Check for Python 3
|
2018-08-22 08:39:01 -05:00
|
|
|
dnl - Check for platform Python interpreter
|
2017-03-15 02:31:38 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2018-08-22 08:39:01 -05:00
|
|
|
AS_IF([test "x${PYTHON}" != "x"], [
|
|
|
|
AC_MSG_NOTICE([Python user override detected, ${PYTHON}])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_MSG_NOTICE([Checking for platform Python])
|
|
|
|
AC_PATH_PROG(PLATFORM_PYTHON, platform-python, [], [/usr/libexec$PATH_SEPARATOR$PATH])
|
|
|
|
|
|
|
|
dnl Only use platform-python when there is no override
|
|
|
|
if test \( "x${PLATFORM_PYTHON}" != "x" -a "x${PYTHON}" = "x" \); then
|
|
|
|
dnl platform-python executable detected (it's always Python 3)
|
|
|
|
AC_MSG_NOTICE([Using platform Python as default Python 3 interpreter])
|
|
|
|
PYTHON=${PLATFORM_PYTHON}
|
|
|
|
fi
|
|
|
|
|
2018-08-23 07:54:28 -05:00
|
|
|
AM_PATH_PYTHON(3.6)
|
2017-03-15 02:31:38 -05:00
|
|
|
|
2018-08-22 08:39:01 -05:00
|
|
|
|
2013-03-27 12:00:29 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for cmocka unit test framework http://cmocka.cryptomilk.org/
|
2013-07-03 15:32:12 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
PKG_CHECK_EXISTS(cmocka,
|
|
|
|
[AC_CHECK_HEADERS([stdarg.h stddef.h setjmp.h],
|
|
|
|
[], dnl We are only intrested in action-if-not-found
|
|
|
|
[AC_MSG_WARN([Header files stdarg.h stddef.h setjmp.h are required by cmocka])
|
|
|
|
cmocka_required_headers="no"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
AS_IF([test x"$cmocka_required_headers" != x"no"],
|
|
|
|
[PKG_CHECK_MODULES([CMOCKA], [cmocka], [have_cmocka="yes"])]
|
|
|
|
)],
|
|
|
|
dnl PKG_CHECK_EXISTS ACTION-IF-NOT-FOUND
|
|
|
|
[AC_MSG_WARN([No libcmocka library found, cmocka tests will not be built])]
|
2013-03-27 12:00:29 -05:00
|
|
|
)
|
|
|
|
AM_CONDITIONAL([HAVE_CMOCKA], [test x$have_cmocka = xyes])
|
|
|
|
|
2016-10-14 03:20:43 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for POPT
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2017-02-22 02:39:20 -06:00
|
|
|
POPT_LIBS=
|
|
|
|
PKG_CHECK_MODULES([POPT], [popt], [],
|
|
|
|
[AC_CHECK_HEADER([popt.h], [], [AC_MSG_ERROR([popt.h not found])])
|
|
|
|
AC_CHECK_LIB([popt], [poptGetContext], [POPT_LIBS="-lpopt"])
|
|
|
|
AC_SUBST(POPT_LIBS)
|
|
|
|
]
|
|
|
|
)
|
2016-10-14 03:20:43 -05:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for SASL
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2016-10-14 05:08:30 -05:00
|
|
|
PKG_CHECK_MODULES([SASL], [libsasl2])
|
2016-10-14 03:20:43 -05:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for XMLRPC-C
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2020-05-31 18:53:25 -05:00
|
|
|
AS_IF([test x"$with_ipa_join_xml" = xyes], [
|
|
|
|
PKG_CHECK_MODULES([XMLRPC], [xmlrpc xmlrpc_client xmlrpc_util])
|
|
|
|
])
|
2016-10-14 03:20:43 -05:00
|
|
|
|
2019-08-15 20:51:01 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
2020-05-31 18:15:47 -05:00
|
|
|
dnl - Check for jansson and libcurl for ipa-join
|
2019-08-15 20:51:01 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
2020-05-31 18:53:25 -05:00
|
|
|
AS_IF([test x"$with_ipa_join_xml" = xno], [
|
|
|
|
PKG_CHECK_MODULES([JANSSON], [jansson])
|
|
|
|
PKG_CHECK_MODULES([LIBCURL], [libcurl])
|
|
|
|
])
|
2019-08-15 20:51:01 -05:00
|
|
|
|
2016-10-14 03:20:43 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for libintl
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
SAVE_LIBS="$LIBS"
|
|
|
|
LIBINTL_LIBS=
|
|
|
|
AC_CHECK_HEADER(libintl.h, [], [AC_MSG_ERROR([libintl.h not found, please install xgettext])])
|
|
|
|
AC_SEARCH_LIBS([bindtextdomain], [libintl],[], [])
|
|
|
|
if test "x$ac_cv_search_bindtextdomain" = "xno" ; then
|
|
|
|
AC_MSG_ERROR([libintl is not found and your libc does not support gettext, please install xgettext])
|
|
|
|
elif test "x$ac_cv_search_bindtextdomain" != "xnone required" ; then
|
|
|
|
LIBINTL_LIBS="$ac_cv_search_bindtextdomain"
|
|
|
|
fi
|
|
|
|
LIBS="$SAVELIBS"
|
|
|
|
AC_SUBST(LIBINTL_LIBS)
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for libini_config
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2016-10-18 10:23:25 -05:00
|
|
|
PKG_CHECK_MODULES([INI], [ini_config >= 1.2.0])
|
2016-10-14 03:20:43 -05:00
|
|
|
|
2016-11-02 14:48:08 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Get /etc/sysconfig directory path
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
AC_ARG_WITH([sysconfenvdir],
|
|
|
|
AS_HELP_STRING([--with-sysconfenvdir=DIR],
|
|
|
|
[Directory for daemon environment files]),
|
|
|
|
[sysconfenvdir=$with_sysconfenvdir],
|
|
|
|
[sysconfenvdir="${sysconfdir}/sysconfig"])
|
|
|
|
AC_SUBST([sysconfenvdir])
|
|
|
|
|
2020-04-15 05:13:00 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Get /run directory path
|
|
|
|
dnl - available in autoconf 2.70+
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
AC_ARG_WITH([runstatedir],
|
|
|
|
AS_HELP_STRING([--with-runstatedir=DIR],
|
|
|
|
[Runtime data directory]),
|
|
|
|
[runstatedir=$with_runstatedir],
|
|
|
|
[runstatedir="/run"])
|
|
|
|
AC_SUBST([runstatedir])
|
|
|
|
|
2020-06-11 04:17:25 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for systemd directories
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
PKG_CHECK_EXISTS([systemd], [], [AC_MSG_ERROR([systemd not found])])
|
|
|
|
AC_ARG_WITH([systemdsystemunitdir],
|
|
|
|
AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
|
|
|
|
[Directory for systemd service files]),
|
|
|
|
[systemdsystemunitdir=$with_systemdsystemunitdir],
|
|
|
|
[systemdsystemunitdir=$($PKG_CONFIG --define-variable=prefix='${prefix}' --variable=systemdsystemunitdir systemd)])
|
|
|
|
AC_SUBST([systemdsystemunitdir])
|
|
|
|
|
|
|
|
AC_ARG_WITH([systemdtmpfilesdir],
|
|
|
|
AS_HELP_STRING([--with-systemdtmpfilesdir=DIR],
|
|
|
|
[Directory for systemd-tmpfiles configuration files]),
|
|
|
|
[systemdtmpfilesdir=$with_systemdtmpfilesdir],
|
|
|
|
[systemdtmpfilesdir=$($PKG_CONFIG --define-variable=prefix='${prefix}' --variable=tmpfilesdir systemd)])
|
|
|
|
AC_SUBST([systemdtmpfilesdir])
|
|
|
|
|
2017-01-03 07:32:05 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Server-only configuration
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
AM_COND_IF([ENABLE_SERVER], [
|
|
|
|
m4_include(server.m4)
|
|
|
|
])
|
ipa-extdom-extop: refactor nsswitch operations
Refactor nsswitch operations in ipa-extdom-extop plugin to allow use
of timeout-enabled nsswitch calls provided by libsss_nss_idmap.
Standard POSIX nsswitch API has no way to cancel requests which may
cause ipa-extdom-extop requests to hang far too long and potentially
exhaust LDAP server workers. In addition, glibc nsswitch API iterates
through all nsswitch modules one by one and with multiple parallel
requests a lock up may happen in an unrelated nsswitch module like
nss_files.so.2.
A solution to the latter issue is to directly load nss_sss.so.2 plugin
and utilize it. This, however, does not solve a problem with lack of
cancellable API.
With SSSD 1.16.1, libsss_nss_idmap provides a timeout-enabled variant of
nsswitch API that is directly integrated with SSSD client side machinery
used by nss_sss.so.2. As result, this API can be used instead of loading
nss_sss.so.2 directly.
To support older SSSD version, both direct loading of nss_sss.so.2 and
new timeout-enabled API are supported by this changeset. An API to
abstract both is designed to be a mix between internal glibc nsswitch
API and external nsswitch API that libsss_nss_idmap mimics. API does not
expose per-call timeout. Instead, it allows to set a timeout per
nsswitch operation context to reduce requirements on information
a caller has to maintain.
A choice which API to use is made at configure time.
In order to test the API, a cmocka test is updated to explicitly load
nss_files.so.2 as a backend. Since use of nss_sss.so.2 would always
depend on availablility of SSSD, predictable testing would not be
possible without it otherwise. Also, cmocka test does not use
nss_wrapper anymore because nss_wrapper overrides higher level glibc
nsswitch API while we are loading an individual nsswitch module
directly.
As result, cmocka test overrides fopen() call used by nss_files.so.2 to
load /etc/passwd and /etc/group. An overridden version changes paths to
/etc/passwd and /etc/group to a local test_data/passwd and
test_data/group. This way we can continue testing a backend API for
ipa-extdom-extop with the same data as with nss_wrapper.
Fixes https://pagure.io/freeipa/issue/5464
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Simo Sorce <ssorce@redhat.com>
Reviewed-By: Robbie Harwood <rharwood@redhat.com>
2017-11-14 04:44:02 -06:00
|
|
|
AM_CONDITIONAL([USE_SSS_NSS_TIMEOUT], [test "x$ac_cv_have_decl_sss_nss_getpwnam_timeout" = xyes])
|
2017-01-03 07:32:05 -06:00
|
|
|
|
2017-03-27 05:18:53 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check if IPA certauth plugin can be build
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_IPA_CERTAUTH_PLUGIN],
|
|
|
|
[test x$have_certauth_plugin = xyes -a x"$SSSCERTMAP_LIBS" != x])
|
|
|
|
AM_COND_IF([BUILD_IPA_CERTAUTH_PLUGIN], [
|
2017-03-27 06:19:57 -05:00
|
|
|
AC_DEFINE([HAVE_KRB5_CERTAUTH_PLUGIN], [1],
|
|
|
|
[MIT Kerberos version supports certauth plugin])
|
2017-03-27 05:18:53 -05:00
|
|
|
AM_COND_IF([ENABLE_SERVER],
|
|
|
|
[AC_MSG_NOTICE([Build IPA KDB certauth plugin])],
|
|
|
|
[AC_MSG_WARN([Cannot build IPA KDB certauth plugin])])
|
|
|
|
])
|
|
|
|
|
2018-07-11 15:48:01 -05:00
|
|
|
AM_CONDITIONAL([BUILD_IPA_KDCPOLICY_PLUGIN],
|
|
|
|
[test x$have_kdcpolicy_plugin = xyes])
|
|
|
|
|
2022-01-13 06:34:55 -06:00
|
|
|
AM_CONDITIONAL([BUILD_IPA_ISSUE_PAC],
|
|
|
|
[test x$have_kdb_issue_pac = xyes])
|
|
|
|
|
2013-04-11 13:03:25 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for program paths
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
AC_PATH_PROG(UNLINK, unlink, [AC_MSG_ERROR([unlink not found])])
|
|
|
|
|
2009-02-02 12:50:53 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Set the data install directory since we don't use pkgdatadir
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
IPA_DATA_DIR="$datadir/ipa"
|
2016-10-13 07:00:41 -05:00
|
|
|
IPA_SYSCONF_DIR="$sysconfdir/ipa"
|
2009-02-02 12:50:53 -06:00
|
|
|
AC_SUBST(IPA_DATA_DIR)
|
2016-10-13 07:00:41 -05:00
|
|
|
AC_SUBST(IPA_SYSCONF_DIR)
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Translations
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2016-11-14 07:53:42 -06:00
|
|
|
# POTFILES.in needs to be created before calling AM_GNU_GETTEXT
|
|
|
|
AC_CONFIG_COMMANDS([po/POTFILES.in],
|
|
|
|
[find_start_pwd=`pwd` && dnl
|
|
|
|
cd "${ac_abs_top_srcdir}" && dnl strip prefixes from find
|
|
|
|
find . dnl
|
|
|
|
-path "./rpmbuild" -prune -o dnl
|
|
|
|
-path "./${PACKAGE}-*" -prune -o dnl dist directories
|
|
|
|
-path '*/build' -prune -o dnl Python builds
|
|
|
|
-path '*/dist' -prune -o dnl Python dists
|
2016-11-17 09:43:17 -06:00
|
|
|
-path './.tox' -prune -o dnl Python tox test
|
2016-11-14 07:53:42 -06:00
|
|
|
-path './conf*' -prune -o dnl generated by configure
|
|
|
|
-name '*.py' -print -o dnl
|
|
|
|
-name '*.c' -print -o dnl
|
|
|
|
-name '*.h' -print dnl
|
|
|
|
> po/POTFILES.in && dnl
|
|
|
|
cd "${find_start_pwd}"])
|
2016-10-13 07:00:41 -05:00
|
|
|
AC_SUBST(GETTEXT_DOMAIN, [ipa])
|
2016-12-07 05:16:56 -06:00
|
|
|
AM_GNU_GETTEXT_VERSION([0.18.2])
|
2016-11-11 15:54:13 -06:00
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
|
|
|
|
dnl integrate our custom hacks into gettextize infrastructure
|
|
|
|
AC_CONFIG_COMMANDS([po/Makefile-hackit],
|
|
|
|
[echo "include Makefile.hack" dnl
|
|
|
|
>> "${ac_abs_top_srcdir}/po/Makefile"])
|
2016-10-13 07:00:41 -05:00
|
|
|
|
|
|
|
AC_PROG_MKDIR_P
|
|
|
|
AC_PROG_AWK
|
|
|
|
AC_PROG_SED
|
|
|
|
|
2016-11-14 03:27:15 -06:00
|
|
|
AC_PATH_PROG(MSGATTRIB, msgattrib, [no])
|
|
|
|
if test "x$MSGATTRIB" = "xno"; then
|
|
|
|
AC_MSG_ERROR([msgattrib not found, install gettext])
|
|
|
|
fi
|
|
|
|
AC_SUBST([MSGATTRIB])
|
|
|
|
|
2016-10-20 08:27:44 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl IPA platform
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
AC_ARG_WITH([ipaplatform],
|
|
|
|
[AC_HELP_STRING([--with-ipaplatform],
|
|
|
|
[IPA platform module to use])],
|
|
|
|
[IPAPLATFORM=${withval}],
|
|
|
|
[IPAPLATFORM=""])
|
|
|
|
AC_MSG_CHECKING([supported IPA platform])
|
|
|
|
|
2021-02-03 02:19:12 -06:00
|
|
|
if test "x${IPAPLATFORM}" != "x"; then
|
|
|
|
if test ! -d "${srcdir}/ipaplatform/${IPAPLATFORM}"; then
|
|
|
|
AC_MSG_ERROR([IPA platform ${IPAPLATFORM} is not supported])
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
dnl auto-detect, read ID and ID_LIKE from /etc/os-release
|
2016-10-20 08:27:44 -05:00
|
|
|
if test -r "/etc/os-release"; then
|
2021-02-03 02:19:12 -06:00
|
|
|
platform_ids=$(source /etc/os-release; echo "$ID $ID_LIKE")
|
2016-10-20 08:27:44 -05:00
|
|
|
else
|
|
|
|
AC_MSG_ERROR([unable to read /etc/os-release])
|
|
|
|
fi
|
2021-02-03 02:19:12 -06:00
|
|
|
if test "x${platform_ids}" == "x"; then
|
2016-10-20 08:27:44 -05:00
|
|
|
AC_MSG_ERROR([unable to find ID variable in /etc/os-release])
|
|
|
|
fi
|
|
|
|
|
2021-02-03 02:19:12 -06:00
|
|
|
dnl find first available platform from ID and ID_LIKE
|
|
|
|
for platform in ${platform_ids}; do
|
|
|
|
if test -d "${srcdir}/ipaplatform/${platform}"; then
|
|
|
|
IPAPLATFORM=${platform}
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
dnl Did we find a supported platform?
|
|
|
|
if test "x${IPAPLATFORM}" == "x"; then
|
|
|
|
AC_MSG_ERROR([IPA platforms ${platform_ids} are not supported])
|
|
|
|
fi
|
2016-10-20 08:27:44 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST([IPAPLATFORM])
|
|
|
|
AC_MSG_RESULT([${IPAPLATFORM}])
|
|
|
|
|
2017-03-15 04:46:36 -05:00
|
|
|
if test "x${IPAPLATFORM}" == "xdebian"; then
|
2021-11-18 02:38:04 -06:00
|
|
|
HTTPD_GROUP="www-data"
|
2017-03-31 18:18:15 -05:00
|
|
|
KRB5KDC_SERVICE="krb5-kdc.service"
|
2017-03-15 09:41:50 -05:00
|
|
|
NAMED_GROUP="bind"
|
|
|
|
ODS_USER="opendnssec"
|
2020-04-21 02:39:29 -05:00
|
|
|
ODS_GROUP="opendnssec"
|
2017-03-15 04:46:36 -05:00
|
|
|
# see https://www.debian.org/doc/packaging-manuals/python-policy/ap-packaging_tools.html
|
|
|
|
PYTHON_INSTALL_EXTRA_OPTIONS="--install-layout=deb"
|
|
|
|
else
|
2021-11-18 02:38:04 -06:00
|
|
|
HTTPD_GROUP="apache"
|
2017-03-31 18:18:15 -05:00
|
|
|
KRB5KDC_SERVICE="krb5kdc.service"
|
2017-03-15 09:41:50 -05:00
|
|
|
NAMED_GROUP="named"
|
|
|
|
ODS_USER="ods"
|
2020-04-21 02:39:29 -05:00
|
|
|
ODS_GROUP="ods"
|
2017-03-15 04:46:36 -05:00
|
|
|
PYTHON_INSTALL_EXTRA_OPTIONS=""
|
|
|
|
fi
|
2017-03-15 09:41:50 -05:00
|
|
|
|
2021-11-18 02:38:04 -06:00
|
|
|
AC_MSG_CHECKING([HTTPD_GROUP])
|
|
|
|
AC_SUBST([HTTPD_GROUP])
|
|
|
|
AC_MSG_RESULT([${HTTPD_GROUP}])
|
|
|
|
|
2017-03-31 18:18:15 -05:00
|
|
|
AC_SUBST([KRB5KDC_SERVICE])
|
|
|
|
|
2017-03-15 09:41:50 -05:00
|
|
|
AC_MSG_CHECKING([NAMED_GROUP])
|
|
|
|
AC_SUBST([NAMED_GROUP])
|
|
|
|
AC_MSG_RESULT([${NAMED_GROUP}])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([ODS_USER])
|
|
|
|
AC_SUBST([ODS_USER])
|
|
|
|
AC_MSG_RESULT([${ODS_USER}])
|
|
|
|
|
2020-04-21 02:39:29 -05:00
|
|
|
AC_MSG_CHECKING([ODS_GROUP])
|
|
|
|
AC_SUBST([ODS_GROUP])
|
|
|
|
AC_MSG_RESULT([${ODS_GROUP}])
|
|
|
|
|
2017-03-15 09:41:50 -05:00
|
|
|
AC_MSG_CHECKING([python setup.py install extra options])
|
2017-03-15 04:46:36 -05:00
|
|
|
AC_SUBST([PYTHON_INSTALL_EXTRA_OPTIONS])
|
2017-03-15 09:41:50 -05:00
|
|
|
if test "x${PYTHON_INSTALL_EXTRA_OPTIONS}" == "x"; then
|
|
|
|
AC_MSG_RESULT([none])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([${PYTHON_INSTALL_EXTRA_OPTIONS}])
|
|
|
|
fi
|
2016-10-20 08:27:44 -05:00
|
|
|
|
2016-10-21 15:35:28 -05:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Version information from VERSION.m4 and command line
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2016-11-09 09:15:19 -06:00
|
|
|
dnl Are we in source tree?
|
|
|
|
AM_CONDITIONAL([IS_GIT_SNAPSHOT], [test "IPA_VERSION_IS_GIT_SNAPSHOT" == "yes"])
|
|
|
|
AM_COND_IF([IS_GIT_SNAPSHOT], [
|
|
|
|
AC_MSG_CHECKING([if source directory is a Git reposistory])
|
2016-12-02 16:42:58 -06:00
|
|
|
if test ! -e "${srcdir}/.git"; then
|
2016-11-09 09:15:19 -06:00
|
|
|
AC_MSG_ERROR([Git reposistory is required by VERSION.m4 IPA_VERSION_IS_GIT_SNAPSHOT but not found])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
2016-10-21 15:35:28 -05:00
|
|
|
AC_ARG_WITH([vendor-suffix],
|
|
|
|
AS_HELP_STRING([--with-vendor-suffix=STRING],
|
|
|
|
[Vendor string used by package system, e.g. "-1.fc24"]),
|
|
|
|
[VENDOR_SUFFIX=${withval}],
|
|
|
|
[VENDOR_SUFFIX=""])
|
|
|
|
|
|
|
|
AC_SUBST([API_VERSION], [IPA_API_VERSION])
|
|
|
|
AC_SUBST([DATA_VERSION], [IPA_DATA_VERSION])
|
|
|
|
AC_SUBST([NUM_VERSION], [IPA_NUM_VERSION])
|
|
|
|
AC_SUBST(VENDOR_SUFFIX)
|
|
|
|
AC_SUBST([VERSION], [IPA_VERSION])
|
2016-11-09 09:16:45 -06:00
|
|
|
AC_SUBST([GIT_VERSION], [IPA_GIT_VERSION])
|
2017-12-11 00:57:40 -06:00
|
|
|
AC_SUBST([GIT_BRANCH], [IPA_GIT_BRANCH])
|
Tolerate absence of PAC ticket signature depending of server capabilities
Since November 2020, Active Directory KDC generates a new type of
signature as part of the PAC. It is called "ticket signature", and is
generated based on the encrypted part of the ticket. The presence of
this signature is not mandatory in order for the PAC to be accepted for
S4U requests.
However, the behavior is different for MIT krb5. Support was added as
part of the 1.20 release, and this signature is required in order to
process S4U requests. Contrary to the PAC extended KDC signature, the
code generating this signature cannot be isolated and backported to
older krb5 versions because this version of the KDB API does not allow
passing the content of the ticket's encrypted part to IPA.
This is an issue in gradual upgrade scenarios where some IPA servers
rely on 1.19 and older versions of MIT krb5, while others use version
1.20 or newer. A service ticket that was provided by 1.19- IPA KDC will
be rejected when used by a service against a 1.20+ IPA KDC for S4U
requests.
On Fedora, CentOS 9 Stream, and RHEL 9, when the krb5 version is 1.20 or
newer, it will include a downstream-only update adding the
"optional_pac_tkt_chksum" KDB string attribute allowing to tolerate the
absence of PAC ticket signatures, if necessary.
This commit adds an extra step during the installation and update
processes where it adds a "pacTktSignSupported" ipaConfigString
attribute in "cn=KDC,cn=[server],cn=masters,cn=ipa,cn=etc,[basedn]" if
the MIT krb5 version IPA what built with was 1.20 or newer.
This commit also set "optional_pac_tkt_chksum" as a virtual KDB entry
attribute. This means the value of the attribute is not actually stored
in the database (to avoid race conditions), but its value is determined
at the KDC starting time by search the "pacTktSignSupported"
ipaConfigString in the server list. If this value is missing for at
least of them is missing, enforcement of the PAC ticket signature is
disabled by setting "optional_pac_tkt_chksum" to true for the local
realm TGS KDB entry.
For foreign realm TGS KDB entries, the "optional_pac_tkt_chksum" virtual
string attribute is set to true systematically, because, at least for
now, trusted AD domains can still have PAC ticket signature support
disabled.
Given the fact the "pacTktSignSupported" ipaConfigString for a single
server is added when this server is updated, and that the value of
"optional_pac_tkt_chksum" is determined at KDC starting time based on
the ipaConfigString attributes of all the KDCs in the domain, this
requires to restart all the KDCs in the domain after all IPA servers
were updated in order for PAC ticket signature enforcement to actually
take effect.
Fixes: https://pagure.io/freeipa/issue/9371
Signed-off-by: Julien Rische <jrische@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2023-04-07 10:04:06 -05:00
|
|
|
AC_SUBST([KRB5_BUILD_VERSION], [IPA_KRB5_BUILD_VERSION])
|
2016-11-22 05:32:27 -06:00
|
|
|
# used by Makefile.am for files depending on templates
|
|
|
|
AC_SUBST([CONFIG_STATUS])
|
2016-10-21 15:35:28 -05:00
|
|
|
|
2017-01-17 05:16:25 -06:00
|
|
|
# workaround for syntax clash between make and automake
|
|
|
|
AC_SUBST([MK_IFEQ], [ifeq])
|
|
|
|
AC_SUBST([MK_ELSE], [else])
|
|
|
|
AC_SUBST([MK_ENDIF], [endif])
|
|
|
|
AC_SUBST([MK_ASSIGN], [=])
|
|
|
|
|
2020-02-20 03:53:27 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl - Check for SELinux policy devel
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
selinux_makefile=/usr/share/selinux/devel/Makefile
|
|
|
|
AC_SUBST([selinux_makefile])
|
|
|
|
|
|
|
|
AC_CHECK_FILE([$selinux_makefile],
|
|
|
|
[build_selinux=yes],
|
|
|
|
[build_selinux=no])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_SELINUX_POLICY, test x$build_selinux = xyes)
|
|
|
|
|
2009-02-02 12:50:53 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Finish
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# Turn on the additional warnings last, so -Werror doesn't affect other tests.
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(more-warnings,
|
|
|
|
[AC_HELP_STRING([--enable-more-warnings],
|
|
|
|
[Maximum compiler warnings])],
|
|
|
|
set_more_warnings="$enableval",[
|
2020-06-05 05:35:45 -05:00
|
|
|
if test -d $srcdir/.git; then
|
2009-02-02 12:50:53 -06:00
|
|
|
set_more_warnings=yes
|
|
|
|
else
|
|
|
|
set_more_warnings=no
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
AC_MSG_CHECKING(for more warnings)
|
|
|
|
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
CFLAGS="\
|
|
|
|
-Wall \
|
|
|
|
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
|
|
|
|
-Wnested-externs -Wpointer-arith \
|
|
|
|
-Wcast-align -Wsign-compare \
|
2020-06-05 05:38:10 -05:00
|
|
|
-Wshadow -Wstrict-prototypes \
|
2009-02-02 12:50:53 -06:00
|
|
|
$CFLAGS"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
2016-11-11 05:37:03 -06:00
|
|
|
AM_CONDITIONAL([VERBOSE_MAKE], [test "x${AM_DEFAULT_VERBOSITY}" == "x1"])
|
|
|
|
|
2016-11-08 02:55:13 -06:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Linters
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2016-11-08 08:08:58 -06:00
|
|
|
AC_ARG_ENABLE([i18ntests],
|
|
|
|
AC_HELP_STRING([--disable-i18ntests],
|
|
|
|
[do not execute ipatests/i18n.py
|
|
|
|
(depends on python-polib)]),
|
|
|
|
,
|
|
|
|
[enable_i18ntests="yes"]
|
|
|
|
)
|
|
|
|
AC_SUBST([i18ntests])
|
|
|
|
AM_CONDITIONAL([WITH_POLINT], [test "x${enable_i18ntests}" == "xyes"])
|
|
|
|
|
2016-12-08 04:26:18 -06:00
|
|
|
AC_ARG_ENABLE([pylint],
|
2017-02-22 12:19:35 -06:00
|
|
|
AS_HELP_STRING([--enable-pylint],
|
|
|
|
[Require pylint. Default is autodetection with
|
|
|
|
"python -m pylint".]),
|
2017-01-11 10:08:30 -06:00
|
|
|
[PYLINT=$enableval],
|
2017-02-22 12:19:35 -06:00
|
|
|
[PYLINT=check]
|
2016-11-08 02:55:13 -06:00
|
|
|
)
|
2017-02-22 12:19:35 -06:00
|
|
|
|
2017-01-11 10:08:30 -06:00
|
|
|
if test x$PYLINT != xno; then
|
|
|
|
AC_MSG_CHECKING([for Pylint])
|
2017-02-22 12:19:35 -06:00
|
|
|
$PYTHON -m pylint --version >/dev/null 2>&1
|
2017-01-11 10:08:30 -06:00
|
|
|
if test "$?" != "0"; then
|
2017-02-22 12:19:35 -06:00
|
|
|
if test x$PYLINT = xcheck; then
|
|
|
|
PYLINT=no
|
|
|
|
AC_MSG_NOTICE([cannot find optional pylint for $PYTHON])
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR([cannot find pylint for $PYTHON])
|
|
|
|
fi
|
2017-01-11 10:08:30 -06:00
|
|
|
else
|
2017-02-22 12:19:35 -06:00
|
|
|
PYLINT=yes
|
2017-01-11 10:08:30 -06:00
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
fi
|
|
|
|
fi
|
2016-11-08 02:55:13 -06:00
|
|
|
AC_SUBST([PYLINT])
|
|
|
|
AM_CONDITIONAL([WITH_PYLINT], [test "x${PYLINT}" != "xno"])
|
|
|
|
|
2016-11-08 02:24:51 -06:00
|
|
|
|
|
|
|
AC_ARG_WITH([jslint],
|
2017-01-11 11:14:49 -06:00
|
|
|
AS_HELP_STRING([--with-jslint=[FILE]],
|
|
|
|
[path to JavaScript linter. Default is autodetection of
|
|
|
|
utility "jsl" ]),
|
2017-02-22 12:19:35 -06:00
|
|
|
[JSLINT="$withval"],
|
|
|
|
[JSLINT=check]
|
|
|
|
)
|
|
|
|
|
|
|
|
AS_CASE([$JSLINT],
|
|
|
|
[yes], [AC_PATH_PROG([JSLINT], [jsl], [missing])
|
|
|
|
if test $JSLINT = missing; then
|
|
|
|
AC_MSG_FAILURE([jsl is missing])
|
|
|
|
fi],
|
|
|
|
[no], [],
|
|
|
|
[check], [AC_PATH_PROG([JSLINT], [jsl], [no])],
|
|
|
|
dnl user setting
|
|
|
|
[if ! test -f "$JSLINT"; then
|
|
|
|
AC_MSG_RESULT([$JSLINT non-existing])
|
|
|
|
AC_MSG_FAILURE([invalid value $JSLINT for jsl])
|
|
|
|
fi
|
|
|
|
if ! test -x "$JSLINT"; then
|
|
|
|
AC_MSG_RESULT([$JSLINT non-executable])
|
|
|
|
AC_MSG_FAILURE([invalid value $JSLINT for jsl])
|
|
|
|
fi]
|
2016-11-08 02:24:51 -06:00
|
|
|
)
|
|
|
|
AC_SUBST([JSLINT])
|
|
|
|
AM_CONDITIONAL([WITH_JSLINT], [test "x${JSLINT}" != "xno"])
|
|
|
|
|
2021-02-09 05:57:37 -06:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(
|
|
|
|
[rpmlint],
|
|
|
|
[AC_HELP_STRING([--enable-rpmlint], [Enable rpmlint for the rpm spec])],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) ENABLE_RPMLINT=yes ;;
|
|
|
|
no) ENABLE_RPMLINT=no ;;
|
|
|
|
*) AC_MSG_ERROR([bad value ${enableval} for --enable-rpmlint]) ;;
|
|
|
|
esac],
|
|
|
|
[ENABLE_RPMLINT=no])
|
|
|
|
AS_IF([test "x$ENABLE_RPMLINT" = "xyes"],
|
|
|
|
[AC_PATH_PROG([RPMLINT], [rpmlint])
|
|
|
|
AS_IF([test "x$RPMLINT" = "x"],
|
|
|
|
[AC_MSG_ERROR([Could not find rpmlint])])],
|
|
|
|
)
|
|
|
|
AM_CONDITIONAL([WITH_RPMLINT], [test "x$ENABLE_RPMLINT" = "xyes"])
|
|
|
|
|
2020-08-01 03:49:30 -05:00
|
|
|
AM_CONDITIONAL([HAVE_UNSHARE],
|
|
|
|
[test "x${ac_cv_func_unshare}" = "xyes" -a "x${ac_cv_func_chroot}" = "xyes"])
|
2016-11-08 02:24:51 -06:00
|
|
|
|
2009-02-02 12:50:53 -06:00
|
|
|
# Flags
|
|
|
|
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
AC_SUBST(CPPFLAGS)
|
|
|
|
AC_SUBST(LDFLAGS)
|
|
|
|
|
2016-10-21 15:35:28 -05:00
|
|
|
|
2009-02-02 12:50:53 -06:00
|
|
|
# Files
|
|
|
|
AC_CONFIG_FILES([
|
2016-10-25 05:34:29 -05:00
|
|
|
Makefile
|
2016-10-12 10:32:43 -05:00
|
|
|
asn1/Makefile
|
2016-10-12 11:51:50 -05:00
|
|
|
asn1/asn1c/Makefile
|
2016-10-14 03:20:43 -05:00
|
|
|
client/Makefile
|
2018-05-22 03:58:51 -05:00
|
|
|
client/share/Makefile
|
2016-10-14 03:20:43 -05:00
|
|
|
client/man/Makefile
|
2019-06-19 08:13:10 -05:00
|
|
|
client/sysconfig/Makefile
|
2020-06-11 04:17:25 -05:00
|
|
|
client/systemd/Makefile
|
2016-11-02 14:48:08 -05:00
|
|
|
contrib/completion/Makefile
|
|
|
|
contrib/Makefile
|
|
|
|
daemons/dnssec/Makefile
|
2016-10-12 10:32:43 -05:00
|
|
|
daemons/Makefile
|
|
|
|
daemons/ipa-kdb/Makefile
|
|
|
|
daemons/ipa-sam/Makefile
|
|
|
|
daemons/ipa-otpd/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/libotp/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-cldap/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-dns/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-enrollment/Makefile
|
2022-01-12 15:23:04 -06:00
|
|
|
daemons/ipa-slapi-plugins/ipa-graceperiod/Makefile
|
2016-10-12 10:32:43 -05:00
|
|
|
daemons/ipa-slapi-plugins/ipa-lockout/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-otp-counter/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-otp-lasttoken/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-pwd-extop/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-extdom-extop/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-winsync/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-version/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-uuid/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-modrdn/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-sidgen/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/ipa-range-check/Makefile
|
|
|
|
daemons/ipa-slapi-plugins/topology/Makefile
|
2016-11-03 05:03:03 -05:00
|
|
|
init/systemd/Makefile
|
2017-07-11 07:10:28 -05:00
|
|
|
init/tmpfilesd/Makefile
|
2016-11-03 05:03:03 -05:00
|
|
|
init/Makefile
|
2016-10-13 07:00:41 -05:00
|
|
|
install/Makefile
|
|
|
|
install/certmonger/Makefile
|
2019-01-30 07:08:38 -06:00
|
|
|
install/custodia/Makefile
|
2016-10-13 07:00:41 -05:00
|
|
|
install/html/Makefile
|
|
|
|
install/migration/Makefile
|
|
|
|
install/share/Makefile
|
|
|
|
install/share/advise/Makefile
|
|
|
|
install/share/advise/legacy/Makefile
|
|
|
|
install/share/profiles/Makefile
|
|
|
|
install/share/schema.d/Makefile
|
|
|
|
install/ui/Makefile
|
|
|
|
install/ui/css/Makefile
|
|
|
|
install/ui/src/Makefile
|
|
|
|
install/ui/src/libs/Makefile
|
|
|
|
install/ui/images/Makefile
|
|
|
|
install/ui/build/Makefile
|
|
|
|
install/ui/build/dojo/Makefile
|
|
|
|
install/ui/build/freeipa/Makefile
|
|
|
|
install/tools/Makefile
|
|
|
|
install/tools/man/Makefile
|
|
|
|
install/updates/Makefile
|
|
|
|
install/restart_scripts/Makefile
|
|
|
|
install/wsgi/Makefile
|
|
|
|
install/oddjob/Makefile
|
2016-10-25 07:01:31 -05:00
|
|
|
ipaclient/Makefile
|
|
|
|
ipalib/Makefile
|
|
|
|
ipaplatform/Makefile
|
|
|
|
ipapython/Makefile
|
2020-04-08 04:54:28 -05:00
|
|
|
ipasphinx/Makefile
|
2016-10-25 07:01:31 -05:00
|
|
|
ipaserver/Makefile
|
|
|
|
ipatests/Makefile
|
2016-10-12 13:47:07 -05:00
|
|
|
ipatests/man/Makefile
|
2017-02-17 10:46:42 -06:00
|
|
|
pypi/Makefile
|
|
|
|
pypi/freeipa/Makefile
|
|
|
|
pypi/ipa/Makefile
|
|
|
|
pypi/ipaserver/Makefile
|
|
|
|
pypi/ipatests/Makefile
|
2016-11-11 15:54:13 -06:00
|
|
|
po/Makefile.in
|
2016-11-14 03:27:15 -06:00
|
|
|
po/Makefile.hack
|
2020-02-18 04:29:35 -06:00
|
|
|
selinux/Makefile
|
2023-07-11 14:46:22 -05:00
|
|
|
selinux/nfast/Makefile
|
2023-07-11 16:15:08 -05:00
|
|
|
selinux/luna/Makefile
|
2016-10-11 08:41:46 -05:00
|
|
|
util/Makefile
|
2009-02-02 12:50:53 -06:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_OUTPUT
|
|
|
|
|
|
|
|
echo "
|
|
|
|
IPA Server $VERSION
|
|
|
|
========================
|
|
|
|
|
2017-01-03 07:32:05 -06:00
|
|
|
vendor version: ${VERSION}${VENDOR_SUFFIX}
|
2021-02-03 02:19:12 -06:00
|
|
|
ipaplatform: ipaplatform.${IPAPLATFORM}
|
2013-04-11 13:03:25 -05:00
|
|
|
prefix: ${prefix}
|
|
|
|
exec_prefix: ${exec_prefix}
|
2009-02-02 12:50:53 -06:00
|
|
|
libdir: ${libdir}
|
|
|
|
bindir: ${bindir}
|
|
|
|
sbindir: ${sbindir}
|
|
|
|
sysconfdir: ${sysconfdir}
|
2016-11-02 14:48:08 -05:00
|
|
|
sysconfenvdir: ${sysconfenvdir}
|
2009-02-02 12:50:53 -06:00
|
|
|
localstatedir: ${localstatedir}
|
|
|
|
datadir: ${datadir}
|
2013-04-11 13:03:25 -05:00
|
|
|
source code location: ${srcdir}
|
|
|
|
compiler: ${CC}
|
|
|
|
cflags: ${CFLAGS}
|
2018-08-23 07:54:28 -05:00
|
|
|
Python: ${PYTHON} (${PYTHON_VERSION})
|
2017-02-22 12:19:35 -06:00
|
|
|
pylint: ${PYLINT}
|
|
|
|
jslint: ${JSLINT}
|
2021-02-09 05:57:37 -06:00
|
|
|
rpmlint: ${ENABLE_RPMLINT}
|
2010-12-03 14:02:29 -06:00
|
|
|
LDAP libs: ${LDAP_LIBS}
|
2016-10-12 04:01:02 -05:00
|
|
|
OpenSSL crypto libs: ${CRYPTO_LIBS}
|
2020-06-11 04:17:25 -05:00
|
|
|
KRB5 libs: ${KRB5_LIBS}
|
|
|
|
systemdsystemunitdir: ${systemdsystemunitdir}"
|
2017-01-03 07:32:05 -06:00
|
|
|
|
|
|
|
AM_COND_IF([ENABLE_SERVER], [
|
|
|
|
echo "\
|
2020-11-06 07:29:23 -06:00
|
|
|
pwquality libs: ${PWQUALITY_LIBS}
|
2017-01-03 07:32:05 -06:00
|
|
|
KRAD libs: ${KRAD_LIBS}
|
|
|
|
krb5rundir: ${krb5rundir}
|
|
|
|
systemdtmpfilesdir: ${systemdtmpfilesdir}
|
|
|
|
build mode: server & client"
|
|
|
|
], [
|
|
|
|
echo "\
|
|
|
|
build mode: client only"
|
|
|
|
])
|
2017-02-21 14:55:21 -06:00
|
|
|
AM_COND_IF([WITH_IPATESTS], [
|
|
|
|
echo "\
|
|
|
|
with ipatests: yes"
|
|
|
|
], [
|
|
|
|
echo "\
|
|
|
|
with ipatests: no"
|
|
|
|
])
|
2020-05-31 18:53:25 -05:00
|
|
|
AM_COND_IF([WITH_IPA_JOIN_XML], [
|
|
|
|
echo "\
|
|
|
|
ipa-join RPC mode: XML-RPC"
|
|
|
|
], [
|
|
|
|
echo "\
|
|
|
|
ipa-join RPC mode: JSON-RPC"
|
|
|
|
])
|
|
|
|
|