configure.ac revision d3da1c165cdb4c1ec126a8f4b6b544ca415b9d20
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_PREREQ(2.59)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_INIT([sssd],
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz VERSION_NUMBER,
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz [sssd-devel@lists.fedorahosted.org])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzm4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz [AC_USE_SYSTEM_EXTENSIONS],
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz [AC_GNU_SOURCE])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_CONFIG_SRCDIR([BUILD.txt])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_CONFIG_AUX_DIR([build])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_DISABLE_STATIC
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_PROG_INSTALL
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_PROG_LIBTOOL
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_CONFIG_MACRO_DIR([m4])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAM_GNU_GETTEXT([external])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAM_GNU_GETTEXT_VERSION([0.14])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_SUBST([PRERELEASE_VERSION],
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz PRERELEASE_VERSION_NUMBER)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_DEFINE([PRERELEASE_VERSION], "PRERELEASE_VERSION_NUMBER",
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz [Prerelease version number of package])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAM_CONDITIONAL([GIT_CHECKOUT], [git log -1 &>/dev/null])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzm4_pattern_allow([AM_SILENT_RULES])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAM_SILENT_RULES
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_CONFIG_HEADER(config.h)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzAC_CHECK_TYPES([errno_t], [], [], [[#include <errno.h>]])
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzBUILD_WITH_SHARED_BUILD_DIR
[AC_LANG_PROGRAM([[#include <pthread.h>]],
[AC_CHECK_LIB(pam, pam_get_item, [ PAM_LIBS="-lpam" ], [AC_MSG_ERROR([PAM must support pam_get_item])])],
[Where to install pam modules ($libdir/security)])],
[pammoddir=$libdir/security])
#Include here cause WITH_INIT_DIR requires $osname set in platform.m4
m4_include([src/external/platform.m4])
m4_include(src/conf_macros.m4)
m4_include([src/external/pkg.m4])
m4_include([src/external/libpopt.m4])
m4_include([src/external/libtalloc.m4])
m4_include([src/external/libtdb.m4])
m4_include([src/external/libtevent.m4])
m4_include([src/external/libldb.m4])
m4_include([src/external/libdhash.m4])
m4_include([src/external/libcollection.m4])
m4_include([src/external/libini_config.m4])
m4_include([src/external/pam.m4])
m4_include([src/external/ldap.m4])
m4_include([src/external/libpcre.m4])
m4_include([src/external/krb5.m4])
m4_include([src/external/libcares.m4])
m4_include([src/external/docbook.m4])
m4_include([src/external/sizes.m4])
m4_include([src/external/python.m4])
m4_include([src/external/selinux.m4])
m4_include([src/external/crypto.m4])
m4_include([src/external/nscd.m4])
m4_include([src/external/nsupdate.m4])
m4_include([src/external/libkeyutils.m4])
m4_include([src/external/libnl.m4])
m4_include([src/external/systemd.m4])
m4_include([src/util/signal.m4])
m4_include([src/external/libunistring.m4])
m4_include([src/external/glib.m4])
AC_CHECK_HEADERS([sys/inotify.h])
AC_CHECK_HEADERS([sasl/sasl.h],,AC_MSG_ERROR([Could not find SASL headers]))
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]))