68N/A [sssd-devel@lists.fedorahosted.org])
68N/Am4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
68N/A [AC_USE_SYSTEM_EXTENSIONS],
68N/ACFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
68N/AAC_CONFIG_AUX_DIR([build])
68N/AAM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax])
75N/AAC_CONFIG_MACRO_DIR([m4])
68N/AAM_GNU_GETTEXT([external])
68N/AAM_GNU_GETTEXT_VERSION([0.14])
68N/AAC_SUBST([PRERELEASE_VERSION],
68N/A PRERELEASE_VERSION_NUMBER)
68N/AAC_DEFINE([PRERELEASE_VERSION], "PRERELEASE_VERSION_NUMBER",
68N/A [Prerelease version number of package])
68N/Am4_pattern_allow([AM_SILENT_RULES])
68N/AAM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
68N/AAC_CHECK_TYPES([errno_t], [], [], [[#include <
errno.h>]])
68N/ABUILD_WITH_SHARED_BUILD_DIR
68N/A [[pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;]])],
68N/A [AC_DEFINE([HAVE_PTHREAD], [1], [Pthread mutexes available.])],
[AC_MSG_WARN([Pthread library not found! Clients will not be thread safe...])])
[AC_CHECK_LIB(pam, pam_get_item, [ PAM_LIBS="-lpam" ], [AC_MSG_ERROR([PAM must support pam_get_item])])],
[AC_MSG_ERROR([PAM development libraries not installed])]
#Set the NSS library install path
AC_ARG_ENABLE([nsslibdir], [AS_HELP_STRING([--enable-nsslibdir],
[Where to install nss libraries ($libdir)])],
#Set the PAM module install path
AC_ARG_ENABLE([pammoddir], [AS_HELP_STRING([--enable-pammoddir],
#Include here cause WITH_INIT_DIR requires $osname set in
platform.m4if test x$unicode_lib = xlibunistring; then
AC_DEFINE_UNQUOTED(HAVE_LIBUNISTRING, 1, [Using libunistring for unicode])
AC_DEFINE_UNQUOTED(HAVE_GLIB2, 1, [Using libunistring for unicode])
if test x$initscript = xsystemd; then
PKG_CHECK_MODULES([DBUS],[dbus-1])
dnl if test -n "`$PKG_CONFIG --modversion dbus-1 | grep '^0\.'`" ; then
if ! $PKG_CONFIG --atleast-version 1.0.0 dbus-1; then
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
AC_MSG_RESULT([setting -DDBUS_API_SUBJECT_TO_CHANGE])
if test x$has_dbus != xno; then
AC_CHECK_FUNC([dbus_watch_get_unix_fd],
AC_DEFINE([HAVE_DBUS_WATCH_GET_UNIX_FD], [1],
[Define if dbus_watch_get_unix_fd exists]))
if test x$HAVE_MANPAGES != x; then
CHECK_STYLESHEET([$SGML_CATALOG_FILES],
AC_CHECK_PROG([PO4A],[po4a],[po4a],[no])
AM_CONDITIONAL([HAVE_MANPAGES], [test "x$HAVE_MANPAGES" != "x"])
AM_CONDITIONAL([HAVE_PO4A], [test "x$PO4A" != "xno"])
if test x$HAVE_PYTHON_BINDINGS != x; then
AM_CHECK_PYTHON_HEADERS([],
AC_MSG_ERROR([Could not find python headers]))
if test x$HAVE_SELINUX != x; then
if test x$HAVE_SEMANAGE != x -a x$HAVE_SELINUX != x; then
if test x$BUILD_LIBNL != x; then
if test x$HAVE_SYSTEMD_UNIT != x; then
AM_CONDITIONAL([HAVE_NSS], [test x"$NSS_CFLAGS" != x])
AC_CHECK_HEADERS([
sasl/sasl.h],,AC_MSG_ERROR([Could not find SASL headers]))
AC_CACHE_CHECK([whether compiler supports __attribute__((destructor))],
sss_client_cv_attribute_destructor,
[AC_LANG_SOURCE([__attribute__((destructor)) static void cleanup(void) { }])],
sss_client_cv_attribute_destructor=yes)
if test x"$sss_client_cv_attribute_destructor" = xyes ; then
AC_DEFINE(HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR, 1,
[whether compiler supports __attribute__((destructor))])
PKG_CHECK_MODULES([CHECK], [check >= 0.9.5], [have_check=1], [have_check=])
if test x$have_check = x; then
AC_MSG_WARN([Without the 'CHECK' libraries, you will be unable to run all tests in the 'make check' suite])
AC_CHECK_HEADERS([
check.h],,AC_MSG_ERROR([Could not find CHECK headers]))
AC_PATH_PROG([DOXYGEN], [doxygen], [false])
AM_CONDITIONAL([HAVE_DOXYGEN], [test x$DOXYGEN != xfalse ])
AM_CONDITIONAL([HAVE_CHECK], [test x$have_check != x])
AM_CONDITIONAL([BUILD_SUDO], [test x$build_all_experimental_features != xno])
if test x$build_all_experimental_features != xno; then
AC_DEFINE(BUILD_SUDO, 1, [whether to build with SUDO support])
AC_DEFINE_UNQUOTED([ABS_BUILD_DIR], ["$abs_build_dir"], [Absolute path to the build directory])
AC_SUBST([abs_builddir], $abs_build_dir)