X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=configure.in;h=38db157bd356fd4ae165f53b31cffd27a50c6533;hb=fd5ad3ef399dc281e78b06a36162a58a95518c34;hp=ab6751e87bbbbebcc864ae414cff2be980190b56;hpb=7036dce36e7f44184addbb5ec4f4794d5467ca22;p=openldap diff --git a/configure.in b/configure.in index ab6751e87b..38db157bd3 100644 --- a/configure.in +++ b/configure.in @@ -344,6 +344,7 @@ dnl ---------------------------------------------------------------- dnl SLAPD Overlay Options Overlays="accesslog \ auditlog \ + autoca \ collect \ constraint \ dds \ @@ -372,6 +373,8 @@ OL_ARG_ENABLE(accesslog,[ --enable-accesslog In-Directory Access Logging ov no, [no yes mod], ol_enable_overlays) OL_ARG_ENABLE(auditlog,[ --enable-auditlog Audit Logging overlay], no, [no yes mod], ol_enable_overlays) +OL_ARG_ENABLE(autoca,[ --enable-autoca Automatic Certificate Authority overlay], + no, [no yes mod], ol_enable_overlays) OL_ARG_ENABLE(collect,[ --enable-collect Collect overlay], no, [no yes mod], ol_enable_overlays) OL_ARG_ENABLE(constraint,[ --enable-constraint Attribute Constraint overlay], @@ -565,6 +568,7 @@ BUILD_WT=no BUILD_ACCESSLOG=no BUILD_AUDITLOG=no +BUILD_AUTOCA=no BUILD_CONSTRAINT=no BUILD_DDS=no BUILD_DENYOP=no @@ -1221,11 +1225,11 @@ if test $ol_link_tls = no ; then AC_CHECK_HEADERS(gnutls/gnutls.h) if test $ac_cv_header_gnutls_gnutls_h = yes ; then - AC_PREPROC_IFELSE( + AC_PREPROC_IFELSE([AC_LANG_SOURCE( [[#include ] [#if GNUTLS_VERSION_NUMBER < 0x020c00] [#error "GnuTLS 2.12.0 or newer required"] -[#endif]], +[#endif]])], , [AC_MSG_FAILURE([GnuTLS is too old])]) AC_CHECK_LIB(gnutls, gnutls_init, @@ -1502,7 +1506,7 @@ pthread_rwlock_t rwlock; AC_MSG_ERROR([LinuxThreads header/library mismatch]); fi - AC_CACHE_CHECK([if pthread_create() works], + AC_CACHE_CHECK([AC_LANG_SOURCE([if pthread_create() works])], ol_cv_pthread_create_works,[ AC_RUN_IFELSE([OL_PTHREAD_TEST_PROGRAM], [ol_cv_pthread_create_works=yes], @@ -2238,10 +2242,16 @@ if test $ol_enable_crypt != no ; then AC_CHECK_LIB(crypt, crypt, [LUTIL_LIBS="$LUTIL_LIBS -lcrypt" have_crypt=yes], [have_crypt=no])]) + LIBS="$TLS_LIBS $LIBS" + AC_CHECK_LIB(crypt, crypt_r, [have_crypt_r=yes], [have_crypt_r=no]) + LIBS="$save_LIBS" if test $have_crypt = yes ; then AC_DEFINE(HAVE_CRYPT,1, [define if crypt(3) is available]) + if test $have_crypt_r = yes ; then + AC_DEFINE(HAVE_CRYPT_R, 1, [define if crypt_r() is also available]) + fi else AC_MSG_WARN([could not find crypt]) if test $ol_enable_crypt = yes ; then @@ -2546,7 +2556,7 @@ if test "$ac_cv_func_getpeereid" != yes; then fi AC_CHECK_MEMBERS([struct stat.st_fstype, struct stat.st_vfstype]) if test "$ac_cv_member_struct_stat_st_fstype" = yes; then - AC_COMPILE_IFELSE([struct stat st; char *ptr=st.st_fstype;], + AC_COMPILE_IFELSE([AC_LANG_SOURCE([struct stat st; char *ptr=st.st_fstype;])], AC_DEFINE([HAVE_STRUCT_STAT_ST_FSTYPE_CHAR],1,[define to 1 if st_fstype is char *]), AC_DEFINE([HAVE_STRUCT_STAT_ST_FSTYPE_INT],1,[define to 1 if st_fstype is int])) fi @@ -2903,6 +2913,18 @@ if test "$ol_enable_auditlog" != no ; then AC_DEFINE_UNQUOTED(SLAPD_OVER_AUDITLOG,$MFLAG,[define for Audit Logging overlay]) fi +if test "$ol_enable_autoca" != no ; then + BUILD_AUTOCA=$ol_enable_autoca + if test "$ol_enable_autoca" = mod ; then + MFLAG=SLAPD_MOD_DYNAMIC + SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS autoca.la" + else + MFLAG=SLAPD_MOD_STATIC + SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS autoca.o" + fi + AC_DEFINE_UNQUOTED(SLAPD_OVER_AUTOCA,$MFLAG,[define for Automatic Certificate Authority overlay]) +fi + if test "$ol_enable_collect" != no ; then BUILD_COLLECT=$ol_enable_collect if test "$ol_enable_collect" = mod ; then @@ -3179,6 +3201,7 @@ dnl backends dnl overlays AC_SUBST(BUILD_ACCESSLOG) AC_SUBST(BUILD_AUDITLOG) + AC_SUBST(BUILD_AUTOCA) AC_SUBST(BUILD_COLLECT) AC_SUBST(BUILD_CONSTRAINT) AC_SUBST(BUILD_DDS)