AC_MSG_RESULT(yes)
;;
esac])
+AC_ARG_WITH(ldap-conf-file, [ --with-ldap-conf-file path to LDAP configuration file],
+[AC_DEFINE_UNQUOTED(_PATH_LDAP_CONF, "$with_ldap_conf_file")])
AC_ARG_WITH(pc-insults, [ --with-pc-insults replace politically incorrect insults with less offensive ones],
[case $with_pc_insults in
/* LDAP code below */
-#ifndef LDAP_CONFIG
-#define LDAP_CONFIG "/etc/ldap.conf"
-#endif
-
#ifndef BUF_SIZ
#define BUF_SIZ 1024
#endif
char *keyword;
char *value;
- f=fopen(LDAP_CONFIG,"r");
+ f=fopen(_PATH_LDAP_CONF,"r");
if (!f) return 0;
while (f && fgets(buf,sizeof(buf)-1,f)){
c=buf;
#ifndef _PATH_USRTMP
#define _PATH_USRTMP "/usr/tmp/"
#endif /* _PATH_USRTMP */
+
+#ifndef _PATH_LDAP_CONF
+#define _PATH_LDAP_CONF "/etc/ldap.conf"
+#endif /* _PATH_LDAP_CONF */