configure.ac revision e0ade8d1e00d577686f893e0059def5866dcb9f6
5f5870385cff47efd2f58e7892f251cf13761528Timo SirainenAC_PREREQ(2.59)
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([version.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_INIT([sssd],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen VERSION_NUMBER,
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [sssd-devel@lists.fedorahosted.org])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [AC_USE_SYSTEM_EXTENSIONS],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [AC_GNU_SOURCE])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenCFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_CONFIG_SRCDIR([BUILD.txt])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_CONFIG_AUX_DIR([build])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAM_PROG_CC_C_O
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_pattern_allow([AM_PROG_AR])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAM_PROG_AR
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_DISABLE_STATIC
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_PROG_INSTALL
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_PROG_LIBTOOL
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_CONFIG_MACRO_DIR([m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAM_GNU_GETTEXT([external])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAM_GNU_GETTEXT_VERSION([0.14])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_SUBST([PRERELEASE_VERSION],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen PRERELEASE_VERSION_NUMBER)
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_DEFINE([PRERELEASE_VERSION], "PRERELEASE_VERSION_NUMBER",
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [Prerelease version number of package])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAM_CONDITIONAL([GIT_CHECKOUT], [git log -1 &>/dev/null])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_pattern_allow([AM_SILENT_RULES])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAM_SILENT_RULES
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_CHECK_HEADERS(stdint.h dlfcn.h)
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_CONFIG_HEADER(config.h)
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_CHECK_TYPES([errno_t], [], [], [[#include <errno.h>]])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/build_macros.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenBUILD_WITH_SHARED_BUILD_DIR
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_COMPILE_IFELSE(
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [AC_LANG_PROGRAM([[#include <pthread.h>]],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [[pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;]])],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [AC_DEFINE([HAVE_PTHREAD], [1], [Pthread mutexes available.])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen HAVE_PTHREAD=1
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen ],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [AC_MSG_WARN([Pthread library not found! Clients will not be thread safe...])])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAM_CONDITIONAL([HAVE_PTHREAD], [test x"$HAVE_PTHREAD" != "x"])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenSAVE_LIBS=$LIBS
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenLIBS="$LIBS -lpthread"
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_CHECK_FUNCS([ pthread_mutexattr_setrobust \
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen pthread_mutex_consistent \
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen pthread_mutexattr_setrobust_np \
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen pthread_mutex_consistent_np ])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenLIBS=$SAVE_LIBS
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen# Check for presence of modern functions for setting file timestamps
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_CHECK_FUNCS([ utimensat \
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen futimens ])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen#Check for PAM headers
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_CHECK_HEADERS([security/pam_appl.h security/pam_misc.h security/pam_modules.h],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [AC_CHECK_LIB(pam, pam_get_item, [ PAM_LIBS="-lpam" ], [AC_MSG_ERROR([PAM must support pam_get_item])])],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [AC_MSG_ERROR([PAM development libraries not installed])]
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen)
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen#Set the NSS library install path
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_ARG_ENABLE([nsslibdir], [AS_HELP_STRING([--enable-nsslibdir],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [Where to install nss libraries ($libdir)])],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [nsslibdir=$enableval],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [nsslibdir=$libdir])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_SUBST(nsslibdir)
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen#Set the PAM module install path
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_ARG_ENABLE([pammoddir], [AS_HELP_STRING([--enable-pammoddir],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [Where to install pam modules ($libdir/security)])],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [pammoddir=$enableval],
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen [pammoddir=$libdir/security])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenAC_SUBST(pammoddir)
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen#Include here cause WITH_INIT_DIR requires $osname set in platform.m4
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/platform.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include(src/conf_macros.m4)
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_DISTRO_VERSION
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_DB_PATH
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_PLUGIN_PATH
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_PID_PATH
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_LOG_PATH
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_PUBCONF_PATH
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_PIPE_PATH
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_MCACHE_PATH
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_DEFAULT_CCACHE_DIR
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_DEFAULT_CCNAME_TEMPLATE
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_INIT_DIR
e20e638805c4bd54e039891a3e92760b1dfa189aTimo SirainenWITH_TEST_DIR
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_MANPAGES
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_XML_CATALOG
e20e638805c4bd54e039891a3e92760b1dfa189aTimo SirainenWITH_KRB5_PLUGIN_PATH
e20e638805c4bd54e039891a3e92760b1dfa189aTimo SirainenWITH_KRB5_RCACHE_DIR
e20e638805c4bd54e039891a3e92760b1dfa189aTimo SirainenWITH_KRB5AUTHDATA_PLUGIN_PATH
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_KRB5_CONF
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_PYTHON_BINDINGS
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_SELINUX
e20e638805c4bd54e039891a3e92760b1dfa189aTimo SirainenWITH_NSCD
e20e638805c4bd54e039891a3e92760b1dfa189aTimo SirainenWITH_SEMANAGE
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_NOLOGIN_SHELL
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_APP_LIBS
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_SUDO
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_SUDO_LIB_PATH
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_AUTOFS
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_SSH
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_CRYPTO
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/pkg.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libpopt.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libtalloc.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libtdb.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libtevent.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libldb.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libdhash.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libcollection.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libini_config.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/pam.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/ldap.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libpcre.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/krb5.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libcares.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libcmocka.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/docbook.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/sizes.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/python.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/selinux.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/crypto.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/nscd.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/nsupdate.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libkeyutils.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libnl.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/systemd.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/pac_responder.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/signal.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenm4_include([src/external/libndr_nbt.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_UNICODE_LIB
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenif test x$unicode_lib = xlibunistring; then
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen m4_include([src/external/libunistring.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen AC_DEFINE_UNQUOTED(HAVE_LIBUNISTRING, 1, [Using libunistring for unicode])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen UNICODE_LIBS=-lunistring
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen AC_SUBST(UNICODE_LIBS)
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenelse
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen m4_include([src/external/glib.m4])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen AC_DEFINE_UNQUOTED(HAVE_GLIB2, 1, [Using libunistring for unicode])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen UNICODE_LIBS=$GLIB2_LIBS
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen AC_SUBST(UNICODE_LIBS)
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenfi
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_LIBNL
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenif test x$HAVE_NSCD; then
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen WITH_NSCD_CONF
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenfi
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenWITH_INITSCRIPT
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenif test x$initscript = xsystemd; then
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen WITH_SYSTEMD_UNIT_DIR
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainenfi
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainen
1279090ba03f9c176976a69ab7718f0ed77b19afTimo SirainenPKG_CHECK_MODULES([DBUS],[dbus-1])
1279090ba03f9c176976a69ab7718f0ed77b19afTimo Sirainendnl 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])
fi
if test x$has_dbus != xno; then
SAFE_LIBS="$LIBS"
LIBS="$DBUS_LIBS"
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]))
LIBS="$SAFE_LIBS"
fi
# work around a bug in cov-build from Coverity
test -n "$XML_CATALOG_FILES" || unset XML_CATALOG_FILES
if test x$HAVE_MANPAGES != x; then
CHECK_XML_TOOLS
DOCBOOK_XSLT=http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl
CHECK_STYLESHEET([$SGML_CATALOG_FILES],
[$DOCBOOK_XSLT],
[Docbook XSL profiling templates],
[HAVE_PROFILE_CATALOGS=1],
[AC_MSG_WARN([Man pages might contain documentation for experimental features])])
if test x$HAVE_PROFILE_CATALOGS == x; then
DOCBOOK_XSLT=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
CHECK_STYLESHEET([$SGML_CATALOG_FILES],
[$DOCBOOK_XSLT],
[Docbook XSL templates],
[],
[AC_MSG_ERROR([could not find the docbook xsl catalog])])
fi
AC_CHECK_PROG([PO4A],[po4a],[po4a],[no])
AC_SUBST(DOCBOOK_XSLT)
fi
AM_CONDITIONAL([HAVE_PROFILE_CATALOGS], [test "x$HAVE_PROFILE_CATALOGS" != "x"])
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_PATH_PYTHON([2.4])
AM_CHECK_PYTHON_HEADERS([],
AC_MSG_ERROR([Could not find python headers]))
AM_PYTHON_CONFIG
AM_CHECK_PYTHON_COMPAT
fi
if test x$HAVE_SELINUX != x; then
AM_CHECK_SELINUX
AM_CHECK_SELINUX_LOGIN_DIR
fi
if test x$HAVE_SEMANAGE != x -a x$HAVE_SELINUX != x; then
AM_CHECK_SEMANAGE
fi
if test x$HAVE_SYSTEMD_UNIT != x; then
AM_CHECK_SYSTEMD
fi
if test x$cryptolib = xnss; then
AM_CHECK_NSS
fi
if test x$cryptolib = xlibcrypto; then
AM_CHECK_LIBCRYPTO
fi
AC_CHECK_HEADERS([sys/inotify.h])
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_COMPILE_IFELSE(
[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))])
fi
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])
else
AC_CHECK_HEADERS([check.h],,AC_MSG_ERROR([Could not find CHECK headers]))
fi
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([HAVE_CMOCKA], [test x$have_cmocka = xyes])
AM_CONDITIONAL([HAVE_DEVSHM], [test -d /dev/shm])
abs_build_dir=`pwd`
AC_DEFINE_UNQUOTED([ABS_BUILD_DIR], ["$abs_build_dir"], [Absolute path to the build directory])
AC_SUBST([abs_builddir], $abs_build_dir)
AC_CONFIG_FILES([Makefile contrib/sssd.spec src/examples/rwtab src/doxy.config
src/sysv/systemd/sssd.service src/sysv/sssd
src/sysv/gentoo/sssd src/sysv/SUSE/sssd
po/Makefile.in src/man/Makefile
src/providers/ipa/ipa_hbac.pc src/providers/ipa/ipa_hbac.doxy
src/lib/idmap/sss_idmap.pc src/lib/idmap/sss_idmap.doxy
src/sss_client/sudo/sss_sudo.doxy
src/sss_client/idmap/sss_nss_idmap.pc
src/sss_client/idmap/sss_nss_idmap.doxy
src/config/setup.py
src/config/SSSDConfig/__init__.py])
AC_OUTPUT