ac_help="$ac_help
--enable-slapd enable building slapd (yes)"
ac_help="$ac_help
- --enable-aclgroup enable ACL group support (auto)"
+ --enable-aclgroups enable ACL group support (auto)"
ac_help="$ac_help
--enable-crypt enable crypt(3) passwords (auto)"
ac_help="$ac_help
ol_enable_slapd="yes"
fi
# end --enable-slapd
-# OpenLDAP --enable-aclgroup
- # Check whether --enable-aclgroup or --disable-aclgroup was given.
-if test "${enable_aclgroup+set}" = set; then
- enableval="$enable_aclgroup"
+# OpenLDAP --enable-aclgroups
+ # Check whether --enable-aclgroups or --disable-aclgroups was given.
+if test "${enable_aclgroups+set}" = set; then
+ enableval="$enable_aclgroups"
ol_arg=invalid
for ol_val in auto yes no ; do
fi
done
if test "$ol_arg" = "invalid" ; then
- { echo "configure: error: bad value $enableval for --enable-aclgroup" 1>&2; exit 1; }
+ { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
fi
- ol_enable_aclgroup="$ol_arg"
+ ol_enable_aclgroups="$ol_arg"
else
- ol_enable_aclgroup="auto"
+ ol_enable_aclgroups="auto"
fi
-# end --enable-aclgroup
+# end --enable-aclgroups
# OpenLDAP --enable-crypt
# Check whether --enable-crypt or --disable-crypt was given.
if test "${enable_crypt+set}" = set; then
if test $ol_enable_slapd = no ; then
if test $ol_enable_ldbm = yes ; then
- echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2;
+ echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
fi
if test $ol_enable_passwd = yes ; then
- echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2;
+ echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
fi
if test $ol_enable_shell = yes ; then
- echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2;
+ echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
fi
- if test $ol_enable_aclgroup = yes ; then
- echo "configure: warning: slapd disabled, ignoring --enable_aclgroup argument" 1>&2;
+ if test $ol_enable_aclgroups = yes ; then
+ echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
fi
if test $ol_enable_crypt = yes ; then
- echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2;
+ echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2
fi
if test $ol_enable_md5 = yes ; then
- echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2;
+ echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2
fi
if test $ol_enable_sha1 = yes ; then
- echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2;
+ echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2
fi
if test $ol_enable_wrappers = yes ; then
- echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2;
+ echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
fi
if test $ol_enable_phonetic = yes ; then
- echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2;
+ echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
fi
if test $ol_enable_rlookups = yes ; then
- echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2;
+ echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
fi
if test $ol_with_ldbm_api != auto ; then
- echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2;
+ echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
fi
if test $ol_with_ldbm_type != auto ; then
- echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2;
+ echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
fi
if test $ol_enable_slurpd = yes ; then
- { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; };
+ { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
fi
# force settings to no
ol_enable_ldbm=no
ol_enable_shell=no
ol_enable_passwd=no
- ol_enable_aclgroup=no
+ ol_enable_aclgroups=no
ol_enable_crypt=no
ol_enable_md5=no
ol_enable_sha1=no
elif test $ol_enable_ldbm = no ; then
if test $ol_with_ldbm_api != auto ; then
- echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2;
+ echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
fi
if test $ol_with_ldbm_type != auto ; then
- echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2;
+ echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
fi
if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
- { echo "configure: error: slapd requires a backend" 1>&2; exit 1; };
+ { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
fi
ol_with_ldbm_api=no
if test $ol_with_ldbm_api = gdbm -a \
$ol_with_ldbm_type = btree ; then
- { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; };
+ { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
fi
if test $ol_with_ldbm_api = ndbm -a \
$ol_with_ldbm_type = btree ; then
- { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; };
+ { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
fi
fi
if test $ol_enable_slurpd = yes ; then
if test $ol_with_threads = no ; then
- { echo "configure: error: slurpd requires threads" 1>&2; exit 1; };
+ { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
fi
fi
fi
if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
- echo "configure: warning: Could not find LDBM with BTREE support" 1>&2;
+ echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
$ol_with_ldbm_api=none
fi
fi
-if test $ol_enable_aclgroup != no ; then
+if test $ol_enable_aclgroups != no ; then
cat >> confdefs.h <<\EOF
-#define SLAPD_ACLGROUP 1
+#define SLAPD_ACLGROUPS 1
EOF
fi
-
if test $ol_enable_crypt != no ; then
cat >> confdefs.h <<\EOF
#define SLAPD_CRYPT 1
EOF
fi
-
if test $ol_enable_md5 != no ; then
cat >> confdefs.h <<\EOF
#define SLAPD_MD5 1
EOF
fi
-
if test $ol_enable_sha1 != no ; then
cat >> confdefs.h <<\EOF
#define SLAPD_SHA1 1
EOF
fi
-
if test $ol_enable_phonetic != no ; then
cat >> confdefs.h <<\EOF
#define SLAPD_PHONETIC 1
EOF
fi
-
if test $ol_enable_rlookups != no ; then
cat >> confdefs.h <<\EOF
#define SLAPD_RLOOKUPS 1
dnl SLAPD OPTIONS
OL_ARG_ENABLE(slapd,[ --enable-slapd enable building slapd], yes)dnl
-OL_ARG_ENABLE(aclgroup,[ --enable-aclgroup enable ACL group support], auto)dnl
+OL_ARG_ENABLE(aclgroups,[ --enable-aclgroups enable ACL group support], auto)dnl
OL_ARG_ENABLE(crypt,[ --enable-crypt enable crypt(3) passwords], auto)dnl
OL_ARG_ENABLE(md5,[ --enable-md5 enable MD5 passwords], auto)dnl
OL_ARG_ENABLE(sha1,[ --enable-sha1 enable SHA1 passwords], auto)dnl
if test $ol_enable_slapd = no ; then
dnl SLAPD was specificallly disabled
if test $ol_enable_ldbm = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_ldbm argument]);
+ AC_MSG_WARN([slapd disabled, ignoring --enable_ldbm argument])
fi
if test $ol_enable_passwd = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_passwd argument]);
+ AC_MSG_WARN([slapd disabled, ignoring --enable_passwd argument])
fi
if test $ol_enable_shell = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_shell argument]);
+ AC_MSG_WARN([slapd disabled, ignoring --enable_shell argument])
fi
- if test $ol_enable_aclgroup = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_aclgroup argument]);
+ if test $ol_enable_aclgroups = yes ; then
+ AC_MSG_WARN([slapd disabled, ignoring --enable_aclgroups argument])
fi
if test $ol_enable_crypt = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_crypt argument]);
+ AC_MSG_WARN([slapd disabled, ignoring --enable_crypt argument])
fi
if test $ol_enable_md5 = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_md5 argument]);
+ AC_MSG_WARN([slapd disabled, ignoring --enable_md5 argument])
fi
if test $ol_enable_sha1 = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_sha1 argument]);
+ AC_MSG_WARN([slapd disabled, ignoring --enable_sha1 argument])
fi
if test $ol_enable_wrappers = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_wrappers argument]);
+ AC_MSG_WARN([slapd disabled, ignoring --enable_wrappers argument])
fi
if test $ol_enable_phonetic = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_phonetic argument]);
+ AC_MSG_WARN([slapd disabled, ignoring --enable_phonetic argument])
fi
if test $ol_enable_rlookups = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_rlookups argument]);
+ AC_MSG_WARN([slapd disabled, ignoring --enable_rlookups argument])
fi
if test $ol_with_ldbm_api != auto ; then
- AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_api argument]);
+ AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_api argument])
fi
if test $ol_with_ldbm_type != auto ; then
- AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_type argument]);
+ AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_type argument])
fi
if test $ol_enable_slurpd = yes ; then
- AC_MSG_ERROR([slurpd requires slapd]);
+ AC_MSG_ERROR([slurpd requires slapd])
fi
# force settings to no
ol_enable_ldbm=no
ol_enable_shell=no
ol_enable_passwd=no
- ol_enable_aclgroup=no
+ ol_enable_aclgroups=no
ol_enable_crypt=no
ol_enable_md5=no
ol_enable_sha1=no
dnl SLAPD without LDBM
if test $ol_with_ldbm_api != auto ; then
- AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_api argument]);
+ AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_api argument])
fi
if test $ol_with_ldbm_type != auto ; then
- AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_type argument]);
+ AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_type argument])
fi
if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
- AC_MSG_ERROR([slapd requires a backend]);
+ AC_MSG_ERROR([slapd requires a backend])
fi
ol_with_ldbm_api=no
if test $ol_with_ldbm_api = gdbm -a \
$ol_with_ldbm_type = btree ; then
- AC_MSG_ERROR([GDBM only supports LDBM type hash]);
+ AC_MSG_ERROR([GDBM only supports LDBM type hash])
fi
if test $ol_with_ldbm_api = ndbm -a \
$ol_with_ldbm_type = btree ; then
- AC_MSG_ERROR([NDBM only supports LDBM type hash]);
+ AC_MSG_ERROR([NDBM only supports LDBM type hash])
fi
fi
if test $ol_enable_slurpd = yes ; then
dnl SLURPD was specifically enabled
if test $ol_with_threads = no ; then
- AC_MSG_ERROR([slurpd requires threads]);
+ AC_MSG_ERROR([slurpd requires threads])
fi
fi
fi
if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
- AC_MSG_WARN(Could not find LDBM with BTREE support);
+ AC_MSG_WARN(Could not find LDBM with BTREE support)
$ol_with_ldbm_api=none
fi
AC_DEFINE(LDAP_CONNECTIONLESS,1)
fi
-if test $ol_enable_aclgroup != no ; then
- AC_DEFINE(SLAPD_ACLGROUP,1)
+if test $ol_enable_aclgroups != no ; then
+ AC_DEFINE(SLAPD_ACLGROUPS,1)
fi
-
if test $ol_enable_crypt != no ; then
AC_DEFINE(SLAPD_CRYPT,1)
fi
-
if test $ol_enable_md5 != no ; then
AC_DEFINE(SLAPD_MD5,1)
fi
-
if test $ol_enable_sha1 != no ; then
AC_DEFINE(SLAPD_SHA1,1)
fi
-
if test $ol_enable_phonetic != no ; then
AC_DEFINE(SLAPD_PHONETIC,1)
fi
-
if test $ol_enable_rlookups != no ; then
AC_DEFINE(SLAPD_RLOOKUPS,1)
fi