19722
if test "${ac_cv_header_ldap_h+set}" = set; then
19723
{ echo "$as_me:$LINENO: checking for ldap.h" >&5
19724
echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
19725
if test "${ac_cv_header_ldap_h+set}" = set; then
19724
for ac_header in termios.h ldap.h
19726
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19727
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19728
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19729
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19730
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19726
19731
echo $ECHO_N "(cached) $ECHO_C" >&6
19728
{ echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
19729
echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
19733
ac_res=`eval echo '${'$as_ac_Header'}'`
19734
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19735
echo "${ECHO_T}$ac_res" >&6; }
19731
19737
# Is the header compilable?
19732
{ echo "$as_me:$LINENO: checking ldap.h usability" >&5
19733
echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
19738
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19739
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19734
19740
cat >conftest.$ac_ext <<_ACEOF
19735
19741
/* confdefs.h. */
19770
19776
echo "${ECHO_T}$ac_header_compiler" >&6; }
19772
19778
# Is the header present?
19773
{ echo "$as_me:$LINENO: checking ldap.h presence" >&5
19774
echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
19779
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19780
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19775
19781
cat >conftest.$ac_ext <<_ACEOF
19776
19782
/* confdefs.h. */
19778
19784
cat confdefs.h >>conftest.$ac_ext
19779
19785
cat >>conftest.$ac_ext <<_ACEOF
19780
19786
/* end confdefs.h. */
19787
#include <$ac_header>
19783
19789
if { (ac_try="$ac_cpp conftest.$ac_ext"
19784
19790
case "(($ac_try" in
19811
19817
# So? What about this header?
19812
19818
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19814
{ echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
19815
echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19816
{ echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
19817
echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
19820
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19821
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19822
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19823
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19818
19824
ac_header_preproc=yes
19821
{ echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
19822
echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
19823
{ echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
19824
echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
19825
{ echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
19826
echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
19827
{ echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
19828
echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
19829
{ echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
19830
echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
19831
{ echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
19832
echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
19827
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19828
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19829
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19830
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19831
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19832
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19833
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19834
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19835
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19836
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19837
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19838
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19836
{ echo "$as_me:$LINENO: checking for ldap.h" >&5
19837
echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
19838
if test "${ac_cv_header_ldap_h+set}" = set; then
19842
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19843
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19844
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19839
19845
echo $ECHO_N "(cached) $ECHO_C" >&6
19841
ac_cv_header_ldap_h=$ac_header_preproc
19843
{ echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
19844
echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
19847
eval "$as_ac_Header=\$ac_header_preproc"
19849
ac_res=`eval echo '${'$as_ac_Header'}'`
19850
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19851
echo "${ECHO_T}$ac_res" >&6; }
19854
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19855
cat >>confdefs.h <<_ACEOF
19856
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19849
19863
cat >conftest.$ac_ext <<_ACEOF
19850
19864
/* confdefs.h. */