3875
3692
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876
3693
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877
3694
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
DEPDIR="${am__leading_dot}deps"
3880
ac_config_commands="$ac_config_commands depfiles"
3883
am_make=${MAKE-make}
3884
cat > confinc << 'END'
3889
# If we don't find an include directive, just comment out the code.
3890
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3891
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3895
# First try GNU make style include.
3896
echo "include confinc" > confmf
3897
# We grep out `Entering directory' and `Leaving directory'
3898
# messages which can occur if `w' ends up in MAKEFLAGS.
3899
# In particular we don't look at `^make:' because GNU make might
3900
# be invoked under some other name (usually "gmake"), in which
3901
# case it prints its new name instead of `make'.
3902
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3907
# Now try BSD make style include.
3908
if test "$am__include" = "#"; then
3909
echo '.include "confinc"' > confmf
3910
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3911
am__include=.include
3918
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3919
echo "${ECHO_T}$_am_result" >&6; }
3920
rm -f confinc confmf
3922
# Check whether --enable-dependency-tracking was given.
3923
if test "${enable_dependency_tracking+set}" = set; then
3924
enableval=$enable_dependency_tracking;
3927
if test "x$enable_dependency_tracking" != xno; then
3928
am_depcomp="$ac_aux_dir/depcomp"
3933
if test "x$enable_dependency_tracking" != xno; then
3944
depcc="$CC" am_compiler_list=
3946
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3947
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3948
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3949
echo $ECHO_N "(cached) $ECHO_C" >&6
3951
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3952
# We make a subdir and do the tests there. Otherwise we can end up
3953
# making bogus files that we don't know about and never remove. For
3954
# instance it was reported that on HP-UX the gcc test will end up
3955
# making a dummy file named `D' -- because `-MD' means `put the output
3958
# Copy depcomp to subdir because otherwise we won't find it if we're
3959
# using a relative directory.
3960
cp "$am_depcomp" conftest.dir
3962
# We will build objects and dependencies in a subdirectory because
3963
# it helps to detect inapplicable dependency modes. For instance
3964
# both Tru64's cc and ICC support -MD to output dependencies as a
3965
# side effect of compilation, but ICC will put the dependencies in
3966
# the current directory while Tru64 will put them in the object
3970
am_cv_CC_dependencies_compiler_type=none
3971
if test "$am_compiler_list" = ""; then
3972
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3974
for depmode in $am_compiler_list; do
3975
# Setup a source with many dependencies, because some compilers
3976
# like to wrap large dependency lists on column 80 (with \), and
3977
# we should not choose a depcomp mode which is confused by this.
3979
# We need to recreate these files for each test, as the compiler may
3980
# overwrite some of them when testing with obscure command lines.
3981
# This happens at least with the AIX C compiler.
3983
for i in 1 2 3 4 5 6; do
3984
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3985
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3986
# Solaris 8's {/usr,}/bin/sh.
3987
touch sub/conftst$i.h
3989
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3993
# after this tag, mechanisms are not by side-effect, so they'll
3994
# only be used when explicitly requested
3995
if test "x$enable_dependency_tracking" = xyes; then
4003
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4004
# mode. It turns out that the SunPro C++ compiler does not properly
4005
# handle `-M -o', and we need to detect this.
4006
if depmode=$depmode \
4007
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4008
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4009
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4010
>/dev/null 2>conftest.err &&
4011
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4012
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4013
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4014
# icc doesn't choke on unknown options, it will just issue warnings
4015
# or remarks (even with -Werror). So we grep stderr for any message
4016
# that says an option was ignored or not supported.
4017
# When given -MP, icc 7.0 and 7.1 complain thusly:
4018
# icc: Command line warning: ignoring option '-M'; no argument required
4019
# The diagnosis changed in icc 8.0:
4020
# icc: Command line remark: option '-MP' not supported
4021
if (grep 'ignoring option' conftest.err ||
4022
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4023
am_cv_CC_dependencies_compiler_type=$depmode
4032
am_cv_CC_dependencies_compiler_type=none
4036
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4037
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4038
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4043
test "x$enable_dependency_tracking" != xno \
4044
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4046
am__fastdepCC_FALSE='#'
4048
am__fastdepCC_TRUE='#'
4049
am__fastdepCC_FALSE=
3696
depcc="$CC" am_compiler_list=
3698
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3699
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3700
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3701
echo $ECHO_N "(cached) $ECHO_C" >&6
3703
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3704
# We make a subdir and do the tests there. Otherwise we can end up
3705
# making bogus files that we don't know about and never remove. For
3706
# instance it was reported that on HP-UX the gcc test will end up
3707
# making a dummy file named `D' -- because `-MD' means `put the output
3710
# Copy depcomp to subdir because otherwise we won't find it if we're
3711
# using a relative directory.
3712
cp "$am_depcomp" conftest.dir
3714
# We will build objects and dependencies in a subdirectory because
3715
# it helps to detect inapplicable dependency modes. For instance
3716
# both Tru64's cc and ICC support -MD to output dependencies as a
3717
# side effect of compilation, but ICC will put the dependencies in
3718
# the current directory while Tru64 will put them in the object
3722
am_cv_CC_dependencies_compiler_type=none
3723
if test "$am_compiler_list" = ""; then
3724
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3726
for depmode in $am_compiler_list; do
3727
# Setup a source with many dependencies, because some compilers
3728
# like to wrap large dependency lists on column 80 (with \), and
3729
# we should not choose a depcomp mode which is confused by this.
3731
# We need to recreate these files for each test, as the compiler may
3732
# overwrite some of them when testing with obscure command lines.
3733
# This happens at least with the AIX C compiler.
3735
for i in 1 2 3 4 5 6; do
3736
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3737
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3738
# Solaris 8's {/usr,}/bin/sh.
3739
touch sub/conftst$i.h
3741
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3745
# after this tag, mechanisms are not by side-effect, so they'll
3746
# only be used when explicitly requested
3747
if test "x$enable_dependency_tracking" = xyes; then
3755
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3756
# mode. It turns out that the SunPro C++ compiler does not properly
3757
# handle `-M -o', and we need to detect this.
3758
if depmode=$depmode \
3759
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3760
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3761
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3762
>/dev/null 2>conftest.err &&
3763
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3764
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3765
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3766
# icc doesn't choke on unknown options, it will just issue warnings
3767
# or remarks (even with -Werror). So we grep stderr for any message
3768
# that says an option was ignored or not supported.
3769
# When given -MP, icc 7.0 and 7.1 complain thusly:
3770
# icc: Command line warning: ignoring option '-M'; no argument required
3771
# The diagnosis changed in icc 8.0:
3772
# icc: Command line remark: option '-MP' not supported
3773
if (grep 'ignoring option' conftest.err ||
3774
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3775
am_cv_CC_dependencies_compiler_type=$depmode
3784
am_cv_CC_dependencies_compiler_type=none
3788
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3789
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3790
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3795
test "x$enable_dependency_tracking" != xno \
3796
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3798
am__fastdepCC_FALSE='#'
3800
am__fastdepCC_TRUE='#'
3801
am__fastdepCC_FALSE=
3806
cat >conftest.$ac_ext <<_ACEOF
3809
cat confdefs.h >>conftest.$ac_ext
3810
cat >>conftest.$ac_ext <<_ACEOF
3811
/* end confdefs.h. */
3813
SQLRETURN SQL_API SQLColAttribute
3814
(SQLHSTMT StatementHandle,SQLUSMALLINT ColumnNumber,
3815
SQLUSMALLINT FieldIdentifier, SQLPOINTER CharacterAttribute,
3816
SQLSMALLINT BufferLength, SQLSMALLINT *StringLength,
3817
SQLLEN *NumercAttribute);
3826
rm -f conftest.$ac_objext
3827
if { (ac_try="$ac_compile"
3829
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830
*) ac_try_echo=$ac_try;;
3832
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833
(eval "$ac_compile") 2>conftest.er1
3835
grep -v '^ *+' conftest.er1 >conftest.err
3837
cat conftest.err >&5
3838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839
(exit $ac_status); } &&
3840
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3841
{ (case "(($ac_try" in
3842
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843
*) ac_try_echo=$ac_try;;
3845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846
(eval "$ac_try") 2>&5
3848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849
(exit $ac_status); }; } &&
3850
{ ac_try='test -s conftest.$ac_objext'
3851
{ (case "(($ac_try" in
3852
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853
*) ac_try_echo=$ac_try;;
3855
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856
(eval "$ac_try") 2>&5
3858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859
(exit $ac_status); }; }; then
3861
cat >>confdefs.h <<\_ACEOF
3862
#define SQLCOLATTRIBUTE_SQLLEN 1
3866
echo "$as_me: failed program was:" >&5
3867
sed 's/^/| /' conftest.$ac_ext >&5
3872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876
# Whether libpq functionalities are used
3879
# Check whether --with-libpq was given.
3880
if test "${with_libpq+set}" = set; then
3881
withval=$with_libpq;
3882
if test "$withval" = no; then
3884
cat >>confdefs.h <<\_ACEOF
3885
#define NOT_USE_LIBPQ 1
3890
if test "$withval" != yes; then
3891
if test -d "$withval"; then
3892
PATH="$PATH:$withval/bin"
3893
CPPFLAGS="$CPPFLAGS -I$withval/include"
3894
LDFLAGS="$LDFLAGS -L$withval/lib"
3896
if test -x "$withval"; then
3899
{ { echo "$as_me:$LINENO: error: specified pg_config not found" >&5
3900
echo "$as_me: error: specified pg_config not found" >&2;}
3901
{ (exit 1); exit 1; }; }
3915
# Default odbc version number (--with-odbcver), default 0x0351
3919
pgac_args="$pgac_args with_odbcver"
3922
# Check whether --with-odbcver was given.
3923
if test "${with_odbcver+set}" = set; then
3924
withval=$with_odbcver;
3927
{ { echo "$as_me:$LINENO: error: argument required for --with-odbcver option" >&5
3928
echo "$as_me: error: argument required for --with-odbcver option" >&2;}
3929
{ (exit 1); exit 1; }; }
3932
{ { echo "$as_me:$LINENO: error: argument required for --with-odbcver option" >&5
3933
echo "$as_me: error: argument required for --with-odbcver option" >&2;}
3934
{ (exit 1); exit 1; }; }
3947
cat >>confdefs.h <<_ACEOF
3948
#define ODBCVER $with_odbcver
3958
pgac_args="$pgac_args enable_unicode"
3960
# Check whether --enable-unicode was given.
3961
if test "${enable_unicode+set}" = set; then
3962
enableval=$enable_unicode;
3966
cat >>confdefs.h <<\_ACEOF
3967
#define UNICODE_SUPPORT 1
3975
{ { echo "$as_me:$LINENO: error: no argument expected for --enable-unicode option" >&5
3976
echo "$as_me: error: no argument expected for --enable-unicode option" >&2;}
3977
{ (exit 1); exit 1; }; }
3984
cat >>confdefs.h <<\_ACEOF
3985
#define UNICODE_SUPPORT 1
3994
if test x"$enable_unicode" = xyes; then
3995
enable_unicode_TRUE=
3996
enable_unicode_FALSE='#'
3998
enable_unicode_TRUE='#'
3999
enable_unicode_FALSE=
4009
pgac_args="$pgac_args enable_openssl"
4011
# Check whether --enable-openssl was given.
4012
if test "${enable_openssl+set}" = set; then
4013
enableval=$enable_openssl;
4017
cat >>confdefs.h <<\_ACEOF
4026
{ { echo "$as_me:$LINENO: error: no argument expected for --enable-openssl option" >&5
4027
echo "$as_me: error: no argument expected for --enable-openssl option" >&2;}
4028
{ (exit 1); exit 1; }; }
4035
cat >>confdefs.h <<\_ACEOF
4045
if test x"$enable_openssl" = xyes; then
4046
enable_openssl_TRUE=
4047
enable_openssl_FALSE='#'
4049
enable_openssl_TRUE='#'
4050
enable_openssl_FALSE=
4059
pgac_args="$pgac_args enable_gss"
4061
# Check whether --enable-gss was given.
4062
if test "${enable_gss+set}" = set; then
4063
enableval=$enable_gss;
4067
cat >>confdefs.h <<\_ACEOF
4076
{ { echo "$as_me:$LINENO: error: no argument expected for --enable-gss option" >&5
4077
echo "$as_me: error: no argument expected for --enable-gss option" >&2;}
4078
{ (exit 1); exit 1; }; }
4091
if test x"$enable_gss" = xyes; then
4093
enable_gss_FALSE='#'
4101
# GKerberos 5 support
4105
pgac_args="$pgac_args enable_krb5"
4107
# Check whether --enable-krb5 was given.
4108
if test "${enable_krb5+set}" = set; then
4109
enableval=$enable_krb5;
4113
cat >>confdefs.h <<\_ACEOF
4122
{ { echo "$as_me:$LINENO: error: no argument expected for --enable-krb5 option" >&5
4123
echo "$as_me: error: no argument expected for --enable-krb5 option" >&2;}
4124
{ (exit 1); exit 1; }; }
4137
if test x"$enable_krb5" = xyes; then
4139
enable_krb5_FALSE='#'
4141
enable_krb5_TRUE='#'
4151
pgac_args="$pgac_args enable_pthreads"
4153
# Check whether --enable-pthreads was given.
4154
if test "${enable_pthreads+set}" = set; then
4155
enableval=$enable_pthreads;
4159
cat >>confdefs.h <<\_ACEOF
4160
#define POSIX_MULTITHREAD_SUPPORT 1
4164
cat >>confdefs.h <<\_ACEOF
4165
#define _REENTRANT 1
4173
{ { echo "$as_me:$LINENO: error: no argument expected for --enable-pthreads option" >&5
4174
echo "$as_me: error: no argument expected for --enable-pthreads option" >&2;}
4175
{ (exit 1); exit 1; }; }
4182
cat >>confdefs.h <<\_ACEOF
4183
#define POSIX_MULTITHREAD_SUPPORT 1
4187
cat >>confdefs.h <<\_ACEOF
4188
#define _REENTRANT 1
4197
# Find libpq headers and libraries
4200
if test "$with_libpq" = yes; then
4201
if test -z "$PG_CONFIG"; then
4202
for ac_prog in pg_config
4204
# Extract the first word of "$ac_prog", so it can be a program name with args.
4205
set dummy $ac_prog; ac_word=$2
4206
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4208
if test "${ac_cv_path_PG_CONFIG+set}" = set; then
4209
echo $ECHO_N "(cached) $ECHO_C" >&6
4213
ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
4216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220
test -z "$as_dir" && as_dir=.
4221
for ac_exec_ext in '' $ac_executable_extensions; do
4222
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4223
ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4224
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234
PG_CONFIG=$ac_cv_path_PG_CONFIG
4235
if test -n "$PG_CONFIG"; then
4236
{ echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
4237
echo "${ECHO_T}$PG_CONFIG" >&6; }
4239
{ echo "$as_me:$LINENO: result: no" >&5
4240
echo "${ECHO_T}no" >&6; }
4244
test -n "$PG_CONFIG" && break
4249
if test -n "$PG_CONFIG"; then
4250
pg_includedir=`"$PG_CONFIG" --includedir`
4251
pg_libdir=`"$PG_CONFIG" --libdir`
4252
CPPFLAGS="$CPPFLAGS -I$pg_includedir"
4253
LDFLAGS="$LDFLAGS -L$pg_libdir"
4262
ac_cpp='$CPP $CPPFLAGS'
4263
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266
if test -n "$ac_tool_prefix"; then
4267
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4268
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4269
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4270
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4271
if test "${ac_cv_prog_CC+set}" = set; then
4272
echo $ECHO_N "(cached) $ECHO_C" >&6
4274
if test -n "$CC"; then
4275
ac_cv_prog_CC="$CC" # Let the user override the test.
4277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281
test -z "$as_dir" && as_dir=.
4282
for ac_exec_ext in '' $ac_executable_extensions; do
4283
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4284
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4285
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295
if test -n "$CC"; then
4296
{ echo "$as_me:$LINENO: result: $CC" >&5
4297
echo "${ECHO_T}$CC" >&6; }
4299
{ echo "$as_me:$LINENO: result: no" >&5
4300
echo "${ECHO_T}no" >&6; }
4305
if test -z "$ac_cv_prog_CC"; then
4307
# Extract the first word of "gcc", so it can be a program name with args.
4308
set dummy gcc; ac_word=$2
4309
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4310
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4311
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4312
echo $ECHO_N "(cached) $ECHO_C" >&6
4314
if test -n "$ac_ct_CC"; then
4315
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321
test -z "$as_dir" && as_dir=.
4322
for ac_exec_ext in '' $ac_executable_extensions; do
4323
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4324
ac_cv_prog_ac_ct_CC="gcc"
4325
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335
if test -n "$ac_ct_CC"; then
4336
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4337
echo "${ECHO_T}$ac_ct_CC" >&6; }
4339
{ echo "$as_me:$LINENO: result: no" >&5
4340
echo "${ECHO_T}no" >&6; }
4343
if test "x$ac_ct_CC" = x; then
4346
case $cross_compiling:$ac_tool_warned in
4348
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4349
whose name does not start with the host triplet. If you think this
4350
configuration is useful to you, please write to autoconf@gnu.org." >&5
4351
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4352
whose name does not start with the host triplet. If you think this
4353
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4354
ac_tool_warned=yes ;;
4362
if test -z "$CC"; then
4363
if test -n "$ac_tool_prefix"; then
4364
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4365
set dummy ${ac_tool_prefix}cc; ac_word=$2
4366
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4367
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4368
if test "${ac_cv_prog_CC+set}" = set; then
4369
echo $ECHO_N "(cached) $ECHO_C" >&6
4371
if test -n "$CC"; then
4372
ac_cv_prog_CC="$CC" # Let the user override the test.
4374
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378
test -z "$as_dir" && as_dir=.
4379
for ac_exec_ext in '' $ac_executable_extensions; do
4380
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4381
ac_cv_prog_CC="${ac_tool_prefix}cc"
4382
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392
if test -n "$CC"; then
4393
{ echo "$as_me:$LINENO: result: $CC" >&5
4394
echo "${ECHO_T}$CC" >&6; }
4396
{ echo "$as_me:$LINENO: result: no" >&5
4397
echo "${ECHO_T}no" >&6; }
4403
if test -z "$CC"; then
4404
# Extract the first word of "cc", so it can be a program name with args.
4405
set dummy cc; ac_word=$2
4406
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4407
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4408
if test "${ac_cv_prog_CC+set}" = set; then
4409
echo $ECHO_N "(cached) $ECHO_C" >&6
4411
if test -n "$CC"; then
4412
ac_cv_prog_CC="$CC" # Let the user override the test.
4415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419
test -z "$as_dir" && as_dir=.
4420
for ac_exec_ext in '' $ac_executable_extensions; do
4421
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4422
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4423
ac_prog_rejected=yes
4427
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434
if test $ac_prog_rejected = yes; then
4435
# We found a bogon in the path, so make sure we never use it.
4436
set dummy $ac_cv_prog_CC
4438
if test $# != 0; then
4439
# We chose a different compiler from the bogus one.
4440
# However, it has the same basename, so the bogon will be chosen
4441
# first if we set CC to just the basename; use the full file name.
4443
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4449
if test -n "$CC"; then
4450
{ echo "$as_me:$LINENO: result: $CC" >&5
4451
echo "${ECHO_T}$CC" >&6; }
4453
{ echo "$as_me:$LINENO: result: no" >&5
4454
echo "${ECHO_T}no" >&6; }
4459
if test -z "$CC"; then
4460
if test -n "$ac_tool_prefix"; then
4461
for ac_prog in cl.exe
4463
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4464
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4465
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467
if test "${ac_cv_prog_CC+set}" = set; then
4468
echo $ECHO_N "(cached) $ECHO_C" >&6
4470
if test -n "$CC"; then
4471
ac_cv_prog_CC="$CC" # Let the user override the test.
4473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477
test -z "$as_dir" && as_dir=.
4478
for ac_exec_ext in '' $ac_executable_extensions; do
4479
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4480
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4481
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491
if test -n "$CC"; then
4492
{ echo "$as_me:$LINENO: result: $CC" >&5
4493
echo "${ECHO_T}$CC" >&6; }
4495
{ echo "$as_me:$LINENO: result: no" >&5
4496
echo "${ECHO_T}no" >&6; }
4500
test -n "$CC" && break
4503
if test -z "$CC"; then
4505
for ac_prog in cl.exe
4507
# Extract the first word of "$ac_prog", so it can be a program name with args.
4508
set dummy $ac_prog; ac_word=$2
4509
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4510
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4511
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4512
echo $ECHO_N "(cached) $ECHO_C" >&6
4514
if test -n "$ac_ct_CC"; then
4515
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521
test -z "$as_dir" && as_dir=.
4522
for ac_exec_ext in '' $ac_executable_extensions; do
4523
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4524
ac_cv_prog_ac_ct_CC="$ac_prog"
4525
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4535
if test -n "$ac_ct_CC"; then
4536
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4537
echo "${ECHO_T}$ac_ct_CC" >&6; }
4539
{ echo "$as_me:$LINENO: result: no" >&5
4540
echo "${ECHO_T}no" >&6; }
4544
test -n "$ac_ct_CC" && break
4547
if test "x$ac_ct_CC" = x; then
4550
case $cross_compiling:$ac_tool_warned in
4552
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4553
whose name does not start with the host triplet. If you think this
4554
configuration is useful to you, please write to autoconf@gnu.org." >&5
4555
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4556
whose name does not start with the host triplet. If you think this
4557
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4558
ac_tool_warned=yes ;;
4567
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4568
See \`config.log' for more details." >&5
4569
echo "$as_me: error: no acceptable C compiler found in \$PATH
4570
See \`config.log' for more details." >&2;}
4571
{ (exit 1); exit 1; }; }
4573
# Provide some information about the compiler.
4574
echo "$as_me:$LINENO: checking for C compiler version" >&5
4575
ac_compiler=`set X $ac_compile; echo $2`
4576
{ (ac_try="$ac_compiler --version >&5"
4578
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579
*) ac_try_echo=$ac_try;;
4581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582
(eval "$ac_compiler --version >&5") 2>&5
4584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
(exit $ac_status); }
4586
{ (ac_try="$ac_compiler -v >&5"
4588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589
*) ac_try_echo=$ac_try;;
4591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592
(eval "$ac_compiler -v >&5") 2>&5
4594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595
(exit $ac_status); }
4596
{ (ac_try="$ac_compiler -V >&5"
4598
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599
*) ac_try_echo=$ac_try;;
4601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602
(eval "$ac_compiler -V >&5") 2>&5
4604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605
(exit $ac_status); }
4607
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4608
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4609
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4610
echo $ECHO_N "(cached) $ECHO_C" >&6
4612
cat >conftest.$ac_ext <<_ACEOF
4615
cat confdefs.h >>conftest.$ac_ext
4616
cat >>conftest.$ac_ext <<_ACEOF
4617
/* end confdefs.h. */
4630
rm -f conftest.$ac_objext
4631
if { (ac_try="$ac_compile"
4633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634
*) ac_try_echo=$ac_try;;
4636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637
(eval "$ac_compile") 2>conftest.er1
4639
grep -v '^ *+' conftest.er1 >conftest.err
4641
cat conftest.err >&5
4642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643
(exit $ac_status); } &&
4644
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4645
{ (case "(($ac_try" in
4646
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647
*) ac_try_echo=$ac_try;;
4649
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650
(eval "$ac_try") 2>&5
4652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653
(exit $ac_status); }; } &&
4654
{ ac_try='test -s conftest.$ac_objext'
4655
{ (case "(($ac_try" in
4656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657
*) ac_try_echo=$ac_try;;
4659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660
(eval "$ac_try") 2>&5
4662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663
(exit $ac_status); }; }; then
4666
echo "$as_me: failed program was:" >&5
4667
sed 's/^/| /' conftest.$ac_ext >&5
4672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4676
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4677
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4678
GCC=`test $ac_compiler_gnu = yes && echo yes`
4679
ac_test_CFLAGS=${CFLAGS+set}
4680
ac_save_CFLAGS=$CFLAGS
4681
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4682
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4683
if test "${ac_cv_prog_cc_g+set}" = set; then
4684
echo $ECHO_N "(cached) $ECHO_C" >&6
4686
ac_save_c_werror_flag=$ac_c_werror_flag
4687
ac_c_werror_flag=yes
4690
cat >conftest.$ac_ext <<_ACEOF
4693
cat confdefs.h >>conftest.$ac_ext
4694
cat >>conftest.$ac_ext <<_ACEOF
4695
/* end confdefs.h. */
4705
rm -f conftest.$ac_objext
4706
if { (ac_try="$ac_compile"
4708
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709
*) ac_try_echo=$ac_try;;
4711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4712
(eval "$ac_compile") 2>conftest.er1
4714
grep -v '^ *+' conftest.er1 >conftest.err
4716
cat conftest.err >&5
4717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718
(exit $ac_status); } &&
4719
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4720
{ (case "(($ac_try" in
4721
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722
*) ac_try_echo=$ac_try;;
4724
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725
(eval "$ac_try") 2>&5
4727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728
(exit $ac_status); }; } &&
4729
{ ac_try='test -s conftest.$ac_objext'
4730
{ (case "(($ac_try" in
4731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732
*) ac_try_echo=$ac_try;;
4734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735
(eval "$ac_try") 2>&5
4737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738
(exit $ac_status); }; }; then
4741
echo "$as_me: failed program was:" >&5
4742
sed 's/^/| /' conftest.$ac_ext >&5
4745
cat >conftest.$ac_ext <<_ACEOF
4748
cat confdefs.h >>conftest.$ac_ext
4749
cat >>conftest.$ac_ext <<_ACEOF
4750
/* end confdefs.h. */
4760
rm -f conftest.$ac_objext
4761
if { (ac_try="$ac_compile"
4763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764
*) ac_try_echo=$ac_try;;
4766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767
(eval "$ac_compile") 2>conftest.er1
4769
grep -v '^ *+' conftest.er1 >conftest.err
4771
cat conftest.err >&5
4772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773
(exit $ac_status); } &&
4774
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4775
{ (case "(($ac_try" in
4776
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777
*) ac_try_echo=$ac_try;;
4779
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780
(eval "$ac_try") 2>&5
4782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783
(exit $ac_status); }; } &&
4784
{ ac_try='test -s conftest.$ac_objext'
4785
{ (case "(($ac_try" in
4786
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787
*) ac_try_echo=$ac_try;;
4789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790
(eval "$ac_try") 2>&5
4792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793
(exit $ac_status); }; }; then
4796
echo "$as_me: failed program was:" >&5
4797
sed 's/^/| /' conftest.$ac_ext >&5
4799
ac_c_werror_flag=$ac_save_c_werror_flag
4801
cat >conftest.$ac_ext <<_ACEOF
4804
cat confdefs.h >>conftest.$ac_ext
4805
cat >>conftest.$ac_ext <<_ACEOF
4806
/* end confdefs.h. */
4816
rm -f conftest.$ac_objext
4817
if { (ac_try="$ac_compile"
4819
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820
*) ac_try_echo=$ac_try;;
4822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823
(eval "$ac_compile") 2>conftest.er1
4825
grep -v '^ *+' conftest.er1 >conftest.err
4827
cat conftest.err >&5
4828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829
(exit $ac_status); } &&
4830
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4831
{ (case "(($ac_try" in
4832
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833
*) ac_try_echo=$ac_try;;
4835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836
(eval "$ac_try") 2>&5
4838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839
(exit $ac_status); }; } &&
4840
{ ac_try='test -s conftest.$ac_objext'
4841
{ (case "(($ac_try" in
4842
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843
*) ac_try_echo=$ac_try;;
4845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846
(eval "$ac_try") 2>&5
4848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849
(exit $ac_status); }; }; then
4852
echo "$as_me: failed program was:" >&5
4853
sed 's/^/| /' conftest.$ac_ext >&5
4858
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865
ac_c_werror_flag=$ac_save_c_werror_flag
4867
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4868
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4869
if test "$ac_test_CFLAGS" = set; then
4870
CFLAGS=$ac_save_CFLAGS
4871
elif test $ac_cv_prog_cc_g = yes; then
4872
if test "$GCC" = yes; then
4878
if test "$GCC" = yes; then
4884
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4885
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4886
if test "${ac_cv_prog_cc_c89+set}" = set; then
4887
echo $ECHO_N "(cached) $ECHO_C" >&6
4889
ac_cv_prog_cc_c89=no
4891
cat >conftest.$ac_ext <<_ACEOF
4894
cat confdefs.h >>conftest.$ac_ext
4895
cat >>conftest.$ac_ext <<_ACEOF
4896
/* end confdefs.h. */
4899
#include <sys/types.h>
4900
#include <sys/stat.h>
4901
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4902
struct buf { int x; };
4903
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4904
static char *e (p, i)
4910
static char *f (char * (*g) (char **, int), char **p, ...)
4915
s = g (p, va_arg (v,int));
4920
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4921
function prototypes and stuff, but not '\xHH' hex character constants.
4922
These don't provoke an error unfortunately, instead are silently treated
4923
as 'x'. The following induces an error, until -std is added to get
4924
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4925
array size at least. It's necessary to write '\x00'==0 to get something
4926
that's true only with -std. */
4927
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4929
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4930
inside strings and character constants. */
4932
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4934
int test (int i, double x);
4935
struct s1 {int (*f) (int a);};
4936
struct s2 {int (*f) (double a);};
4937
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4943
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4948
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4949
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4951
CC="$ac_save_CC $ac_arg"
4952
rm -f conftest.$ac_objext
4953
if { (ac_try="$ac_compile"
4955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956
*) ac_try_echo=$ac_try;;
4958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959
(eval "$ac_compile") 2>conftest.er1
4961
grep -v '^ *+' conftest.er1 >conftest.err
4963
cat conftest.err >&5
4964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965
(exit $ac_status); } &&
4966
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4967
{ (case "(($ac_try" in
4968
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969
*) ac_try_echo=$ac_try;;
4971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972
(eval "$ac_try") 2>&5
4974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975
(exit $ac_status); }; } &&
4976
{ ac_try='test -s conftest.$ac_objext'
4977
{ (case "(($ac_try" in
4978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979
*) ac_try_echo=$ac_try;;
4981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982
(eval "$ac_try") 2>&5
4984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985
(exit $ac_status); }; }; then
4986
ac_cv_prog_cc_c89=$ac_arg
4988
echo "$as_me: failed program was:" >&5
4989
sed 's/^/| /' conftest.$ac_ext >&5
4994
rm -f core conftest.err conftest.$ac_objext
4995
test "x$ac_cv_prog_cc_c89" != "xno" && break
4997
rm -f conftest.$ac_ext
5002
case "x$ac_cv_prog_cc_c89" in
5004
{ echo "$as_me:$LINENO: result: none needed" >&5
5005
echo "${ECHO_T}none needed" >&6; } ;;
5007
{ echo "$as_me:$LINENO: result: unsupported" >&5
5008
echo "${ECHO_T}unsupported" >&6; } ;;
5010
CC="$CC $ac_cv_prog_cc_c89"
5011
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5012
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5017
ac_cpp='$CPP $CPPFLAGS'
5018
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022
depcc="$CC" am_compiler_list=
5024
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5025
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5026
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5027
echo $ECHO_N "(cached) $ECHO_C" >&6
5029
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5030
# We make a subdir and do the tests there. Otherwise we can end up
5031
# making bogus files that we don't know about and never remove. For
5032
# instance it was reported that on HP-UX the gcc test will end up
5033
# making a dummy file named `D' -- because `-MD' means `put the output
5036
# Copy depcomp to subdir because otherwise we won't find it if we're
5037
# using a relative directory.
5038
cp "$am_depcomp" conftest.dir
5040
# We will build objects and dependencies in a subdirectory because
5041
# it helps to detect inapplicable dependency modes. For instance
5042
# both Tru64's cc and ICC support -MD to output dependencies as a
5043
# side effect of compilation, but ICC will put the dependencies in
5044
# the current directory while Tru64 will put them in the object
5048
am_cv_CC_dependencies_compiler_type=none
5049
if test "$am_compiler_list" = ""; then
5050
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5052
for depmode in $am_compiler_list; do
5053
# Setup a source with many dependencies, because some compilers
5054
# like to wrap large dependency lists on column 80 (with \), and
5055
# we should not choose a depcomp mode which is confused by this.
5057
# We need to recreate these files for each test, as the compiler may
5058
# overwrite some of them when testing with obscure command lines.
5059
# This happens at least with the AIX C compiler.
5061
for i in 1 2 3 4 5 6; do
5062
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5063
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5064
# Solaris 8's {/usr,}/bin/sh.
5065
touch sub/conftst$i.h
5067
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5071
# after this tag, mechanisms are not by side-effect, so they'll
5072
# only be used when explicitly requested
5073
if test "x$enable_dependency_tracking" = xyes; then
5081
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5082
# mode. It turns out that the SunPro C++ compiler does not properly
5083
# handle `-M -o', and we need to detect this.
5084
if depmode=$depmode \
5085
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5086
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5087
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5088
>/dev/null 2>conftest.err &&
5089
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5090
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5091
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5092
# icc doesn't choke on unknown options, it will just issue warnings
5093
# or remarks (even with -Werror). So we grep stderr for any message
5094
# that says an option was ignored or not supported.
5095
# When given -MP, icc 7.0 and 7.1 complain thusly:
5096
# icc: Command line warning: ignoring option '-M'; no argument required
5097
# The diagnosis changed in icc 8.0:
5098
# icc: Command line remark: option '-MP' not supported
5099
if (grep 'ignoring option' conftest.err ||
5100
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5101
am_cv_CC_dependencies_compiler_type=$depmode
5110
am_cv_CC_dependencies_compiler_type=none
5114
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5115
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5116
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5121
test "x$enable_dependency_tracking" != xno \
5122
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5124
am__fastdepCC_FALSE='#'
5126
am__fastdepCC_TRUE='#'
5127
am__fastdepCC_FALSE=
5134
if test -n "$GCC"; then
21956
if test "$with_libpq" = yes; then
21958
{ echo "$as_me:$LINENO: checking for PQconnectdb in -lpq" >&5
21959
echo $ECHO_N "checking for PQconnectdb in -lpq... $ECHO_C" >&6; }
21960
if test "${ac_cv_lib_pq_PQconnectdb+set}" = set; then
21961
echo $ECHO_N "(cached) $ECHO_C" >&6
21963
ac_check_lib_save_LIBS=$LIBS
21965
cat >conftest.$ac_ext <<_ACEOF
21968
cat confdefs.h >>conftest.$ac_ext
21969
cat >>conftest.$ac_ext <<_ACEOF
21970
/* end confdefs.h. */
21972
/* Override any GCC internal prototype to avoid an error.
21973
Use char because int might match the return type of a GCC
21974
builtin and then its argument prototype would still apply. */
21978
char PQconnectdb ();
21982
return PQconnectdb ();
21987
rm -f conftest.$ac_objext conftest$ac_exeext
21988
if { (ac_try="$ac_link"
21989
case "(($ac_try" in
21990
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991
*) ac_try_echo=$ac_try;;
21993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994
(eval "$ac_link") 2>conftest.er1
21996
grep -v '^ *+' conftest.er1 >conftest.err
21998
cat conftest.err >&5
21999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000
(exit $ac_status); } &&
22001
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22002
{ (case "(($ac_try" in
22003
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004
*) ac_try_echo=$ac_try;;
22006
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007
(eval "$ac_try") 2>&5
22009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010
(exit $ac_status); }; } &&
22011
{ ac_try='test -s conftest$ac_exeext'
22012
{ (case "(($ac_try" in
22013
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014
*) ac_try_echo=$ac_try;;
22016
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22017
(eval "$ac_try") 2>&5
22019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020
(exit $ac_status); }; }; then
22021
ac_cv_lib_pq_PQconnectdb=yes
22023
echo "$as_me: failed program was:" >&5
22024
sed 's/^/| /' conftest.$ac_ext >&5
22026
ac_cv_lib_pq_PQconnectdb=no
22029
rm -f core conftest.err conftest.$ac_objext \
22030
conftest$ac_exeext conftest.$ac_ext
22031
LIBS=$ac_check_lib_save_LIBS
22033
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQconnectdb" >&5
22034
echo "${ECHO_T}$ac_cv_lib_pq_PQconnectdb" >&6; }
22035
if test $ac_cv_lib_pq_PQconnectdb = yes; then
22036
cat >>confdefs.h <<_ACEOF
22037
#define HAVE_LIBPQ 1
22043
{ { echo "$as_me:$LINENO: error: libpq library not found" >&5
22044
echo "$as_me: error: libpq library not found" >&2;}
22045
{ (exit 1); exit 1; }; }
22050
if test "$enable_openssl" = yes; then
22052
{ echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
22053
echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; }
22054
if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
22055
echo $ECHO_N "(cached) $ECHO_C" >&6
22057
ac_check_lib_save_LIBS=$LIBS
22059
cat >conftest.$ac_ext <<_ACEOF
22062
cat confdefs.h >>conftest.$ac_ext
22063
cat >>conftest.$ac_ext <<_ACEOF
22064
/* end confdefs.h. */
22066
/* Override any GCC internal prototype to avoid an error.
22067
Use char because int might match the return type of a GCC
22068
builtin and then its argument prototype would still apply. */
22076
return SSL_read ();
22081
rm -f conftest.$ac_objext conftest$ac_exeext
22082
if { (ac_try="$ac_link"
22083
case "(($ac_try" in
22084
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22085
*) ac_try_echo=$ac_try;;
22087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22088
(eval "$ac_link") 2>conftest.er1
22090
grep -v '^ *+' conftest.er1 >conftest.err
22092
cat conftest.err >&5
22093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094
(exit $ac_status); } &&
22095
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22096
{ (case "(($ac_try" in
22097
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098
*) ac_try_echo=$ac_try;;
22100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101
(eval "$ac_try") 2>&5
22103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104
(exit $ac_status); }; } &&
22105
{ ac_try='test -s conftest$ac_exeext'
22106
{ (case "(($ac_try" in
22107
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108
*) ac_try_echo=$ac_try;;
22110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111
(eval "$ac_try") 2>&5
22113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114
(exit $ac_status); }; }; then
22115
ac_cv_lib_ssl_SSL_read=yes
22117
echo "$as_me: failed program was:" >&5
22118
sed 's/^/| /' conftest.$ac_ext >&5
22120
ac_cv_lib_ssl_SSL_read=no
22123
rm -f core conftest.err conftest.$ac_objext \
22124
conftest$ac_exeext conftest.$ac_ext
22125
LIBS=$ac_check_lib_save_LIBS
22127
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
22128
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; }
22129
if test $ac_cv_lib_ssl_SSL_read = yes; then
22130
cat >>confdefs.h <<_ACEOF
22131
#define HAVE_LIBSSL 1
22137
{ { echo "$as_me:$LINENO: error: ssl library not found" >&5
22138
echo "$as_me: error: ssl library not found" >&2;}
22139
{ (exit 1); exit 1; }; }
22144
if test "$enable_gss" = yes; then
22145
{ echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
22146
echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
22147
if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
22148
echo $ECHO_N "(cached) $ECHO_C" >&6
22150
ac_func_search_save_LIBS=$LIBS
22151
cat >conftest.$ac_ext <<_ACEOF
22154
cat confdefs.h >>conftest.$ac_ext
22155
cat >>conftest.$ac_ext <<_ACEOF
22156
/* end confdefs.h. */
22158
/* Override any GCC internal prototype to avoid an error.
22159
Use char because int might match the return type of a GCC
22160
builtin and then its argument prototype would still apply. */
22164
char gss_init_sec_context ();
22168
return gss_init_sec_context ();
22173
for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
22174
if test -z "$ac_lib"; then
22175
ac_res="none required"
22178
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22180
rm -f conftest.$ac_objext conftest$ac_exeext
22181
if { (ac_try="$ac_link"
22182
case "(($ac_try" in
22183
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184
*) ac_try_echo=$ac_try;;
22186
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187
(eval "$ac_link") 2>conftest.er1
22189
grep -v '^ *+' conftest.er1 >conftest.err
22191
cat conftest.err >&5
22192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193
(exit $ac_status); } &&
22194
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22195
{ (case "(($ac_try" in
22196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197
*) ac_try_echo=$ac_try;;
22199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200
(eval "$ac_try") 2>&5
22202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203
(exit $ac_status); }; } &&
22204
{ ac_try='test -s conftest$ac_exeext'
22205
{ (case "(($ac_try" in
22206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207
*) ac_try_echo=$ac_try;;
22209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210
(eval "$ac_try") 2>&5
22212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213
(exit $ac_status); }; }; then
22214
ac_cv_search_gss_init_sec_context=$ac_res
22216
echo "$as_me: failed program was:" >&5
22217
sed 's/^/| /' conftest.$ac_ext >&5
22222
rm -f core conftest.err conftest.$ac_objext \
22224
if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
22228
if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
22231
ac_cv_search_gss_init_sec_context=no
22233
rm conftest.$ac_ext
22234
LIBS=$ac_func_search_save_LIBS
22236
{ echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
22237
echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
22238
ac_res=$ac_cv_search_gss_init_sec_context
22239
if test "$ac_res" != no; then
22240
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22243
{ { echo "$as_me:$LINENO: error: gssapi library not found" >&5
22244
echo "$as_me: error: gssapi library not found" >&2;}
22245
{ (exit 1); exit 1; }; }
22250
if test "$enable_krb5" = yes; then
22251
{ echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
22252
echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
22253
if test "${ac_cv_search_krb5_sendauth+set}" = set; then
22254
echo $ECHO_N "(cached) $ECHO_C" >&6
22256
ac_func_search_save_LIBS=$LIBS
22257
cat >conftest.$ac_ext <<_ACEOF
22260
cat confdefs.h >>conftest.$ac_ext
22261
cat >>conftest.$ac_ext <<_ACEOF
22262
/* end confdefs.h. */
22264
/* Override any GCC internal prototype to avoid an error.
22265
Use char because int might match the return type of a GCC
22266
builtin and then its argument prototype would still apply. */
22270
char krb5_sendauth ();
22274
return krb5_sendauth ();
22279
for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
22280
if test -z "$ac_lib"; then
22281
ac_res="none required"
22284
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22286
rm -f conftest.$ac_objext conftest$ac_exeext
22287
if { (ac_try="$ac_link"
22288
case "(($ac_try" in
22289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290
*) ac_try_echo=$ac_try;;
22292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293
(eval "$ac_link") 2>conftest.er1
22295
grep -v '^ *+' conftest.er1 >conftest.err
22297
cat conftest.err >&5
22298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299
(exit $ac_status); } &&
22300
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22301
{ (case "(($ac_try" in
22302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303
*) ac_try_echo=$ac_try;;
22305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306
(eval "$ac_try") 2>&5
22308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309
(exit $ac_status); }; } &&
22310
{ ac_try='test -s conftest$ac_exeext'
22311
{ (case "(($ac_try" in
22312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313
*) ac_try_echo=$ac_try;;
22315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316
(eval "$ac_try") 2>&5
22318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319
(exit $ac_status); }; }; then
22320
ac_cv_search_krb5_sendauth=$ac_res
22322
echo "$as_me: failed program was:" >&5
22323
sed 's/^/| /' conftest.$ac_ext >&5
22328
rm -f core conftest.err conftest.$ac_objext \
22330
if test "${ac_cv_search_krb5_sendauth+set}" = set; then
22334
if test "${ac_cv_search_krb5_sendauth+set}" = set; then
22337
ac_cv_search_krb5_sendauth=no
22339
rm conftest.$ac_ext
22340
LIBS=$ac_func_search_save_LIBS
22342
{ echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
22343
echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
22344
ac_res=$ac_cv_search_krb5_sendauth
22345
if test "$ac_res" != no; then
22346
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22349
{ { echo "$as_me:$LINENO: error: krb5 library not found" >&5
22350
echo "$as_me: error: krb5 library not found" >&2;}
22351
{ (exit 1); exit 1; }; }
22354
{ echo "$as_me:$LINENO: checking for library containing com_err" >&5
22355
echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
22356
if test "${ac_cv_search_com_err+set}" = set; then
22357
echo $ECHO_N "(cached) $ECHO_C" >&6
22359
ac_func_search_save_LIBS=$LIBS
22360
cat >conftest.$ac_ext <<_ACEOF
22363
cat confdefs.h >>conftest.$ac_ext
22364
cat >>conftest.$ac_ext <<_ACEOF
22365
/* end confdefs.h. */
22367
/* Override any GCC internal prototype to avoid an error.
22368
Use char because int might match the return type of a GCC
22369
builtin and then its argument prototype would still apply. */
22382
for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' comerr 'comerr -lssl -lcrypto'; do
22383
if test -z "$ac_lib"; then
22384
ac_res="none required"
22387
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22389
rm -f conftest.$ac_objext conftest$ac_exeext
22390
if { (ac_try="$ac_link"
22391
case "(($ac_try" in
22392
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393
*) ac_try_echo=$ac_try;;
22395
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396
(eval "$ac_link") 2>conftest.er1
22398
grep -v '^ *+' conftest.er1 >conftest.err
22400
cat conftest.err >&5
22401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402
(exit $ac_status); } &&
22403
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22404
{ (case "(($ac_try" in
22405
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406
*) ac_try_echo=$ac_try;;
22408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22409
(eval "$ac_try") 2>&5
22411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412
(exit $ac_status); }; } &&
22413
{ ac_try='test -s conftest$ac_exeext'
22414
{ (case "(($ac_try" in
22415
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416
*) ac_try_echo=$ac_try;;
22418
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419
(eval "$ac_try") 2>&5
22421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422
(exit $ac_status); }; }; then
22423
ac_cv_search_com_err=$ac_res
22425
echo "$as_me: failed program was:" >&5
22426
sed 's/^/| /' conftest.$ac_ext >&5
22431
rm -f core conftest.err conftest.$ac_objext \
22433
if test "${ac_cv_search_com_err+set}" = set; then
22437
if test "${ac_cv_search_com_err+set}" = set; then
22440
ac_cv_search_com_err=no
22442
rm conftest.$ac_ext
22443
LIBS=$ac_func_search_save_LIBS
22445
{ echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
22446
echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
22447
ac_res=$ac_cv_search_com_err
22448
if test "$ac_res" != no; then
22449
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22452
{ { echo "$as_me:$LINENO: error: comerr library not found" >&5
22453
echo "$as_me: error: comerr library not found" >&2;}
22454
{ (exit 1); exit 1; }; }
20870
22459
# 3. Header files
22632
if test "$with_libpq" = yes; then
22633
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
22634
{ echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
22635
echo $ECHO_N "checking for libpq-fe.h... $ECHO_C" >&6; }
22636
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
22637
echo $ECHO_N "(cached) $ECHO_C" >&6
22639
{ echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
22640
echo "${ECHO_T}$ac_cv_header_libpq_fe_h" >&6; }
22642
# Is the header compilable?
22643
{ echo "$as_me:$LINENO: checking libpq-fe.h usability" >&5
22644
echo $ECHO_N "checking libpq-fe.h usability... $ECHO_C" >&6; }
22645
cat >conftest.$ac_ext <<_ACEOF
22648
cat confdefs.h >>conftest.$ac_ext
22649
cat >>conftest.$ac_ext <<_ACEOF
22650
/* end confdefs.h. */
22651
$ac_includes_default
22652
#include <libpq-fe.h>
22654
rm -f conftest.$ac_objext
22655
if { (ac_try="$ac_compile"
22656
case "(($ac_try" in
22657
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658
*) ac_try_echo=$ac_try;;
22660
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22661
(eval "$ac_compile") 2>conftest.er1
22663
grep -v '^ *+' conftest.er1 >conftest.err
22665
cat conftest.err >&5
22666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667
(exit $ac_status); } &&
22668
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22669
{ (case "(($ac_try" in
22670
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671
*) ac_try_echo=$ac_try;;
22673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674
(eval "$ac_try") 2>&5
22676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677
(exit $ac_status); }; } &&
22678
{ ac_try='test -s conftest.$ac_objext'
22679
{ (case "(($ac_try" in
22680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681
*) ac_try_echo=$ac_try;;
22683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684
(eval "$ac_try") 2>&5
22686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687
(exit $ac_status); }; }; then
22688
ac_header_compiler=yes
22690
echo "$as_me: failed program was:" >&5
22691
sed 's/^/| /' conftest.$ac_ext >&5
22693
ac_header_compiler=no
22696
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22698
echo "${ECHO_T}$ac_header_compiler" >&6; }
22700
# Is the header present?
22701
{ echo "$as_me:$LINENO: checking libpq-fe.h presence" >&5
22702
echo $ECHO_N "checking libpq-fe.h presence... $ECHO_C" >&6; }
22703
cat >conftest.$ac_ext <<_ACEOF
22706
cat confdefs.h >>conftest.$ac_ext
22707
cat >>conftest.$ac_ext <<_ACEOF
22708
/* end confdefs.h. */
22709
#include <libpq-fe.h>
22711
if { (ac_try="$ac_cpp conftest.$ac_ext"
22712
case "(($ac_try" in
22713
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714
*) ac_try_echo=$ac_try;;
22716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22719
grep -v '^ *+' conftest.er1 >conftest.err
22721
cat conftest.err >&5
22722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723
(exit $ac_status); } >/dev/null; then
22724
if test -s conftest.err; then
22725
ac_cpp_err=$ac_c_preproc_warn_flag
22726
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22733
if test -z "$ac_cpp_err"; then
22734
ac_header_preproc=yes
22736
echo "$as_me: failed program was:" >&5
22737
sed 's/^/| /' conftest.$ac_ext >&5
22739
ac_header_preproc=no
22742
rm -f conftest.err conftest.$ac_ext
22743
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22744
echo "${ECHO_T}$ac_header_preproc" >&6; }
22746
# So? What about this header?
22747
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22749
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&5
22750
echo "$as_me: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22751
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the compiler's result" >&5
22752
echo "$as_me: WARNING: libpq-fe.h: proceeding with the compiler's result" >&2;}
22753
ac_header_preproc=yes
22756
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: present but cannot be compiled" >&5
22757
echo "$as_me: WARNING: libpq-fe.h: present but cannot be compiled" >&2;}
22758
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: check for missing prerequisite headers?" >&5
22759
echo "$as_me: WARNING: libpq-fe.h: check for missing prerequisite headers?" >&2;}
22760
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: see the Autoconf documentation" >&5
22761
echo "$as_me: WARNING: libpq-fe.h: see the Autoconf documentation" >&2;}
22762
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&5
22763
echo "$as_me: WARNING: libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&2;}
22764
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&5
22765
echo "$as_me: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&2;}
22766
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&5
22767
echo "$as_me: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&2;}
22769
## ---------------------------------------- ##
22770
## Report this to pgsql-odbc@postgresql.org ##
22771
## ---------------------------------------- ##
22773
) | sed "s/^/$as_me: WARNING: /" >&2
22776
{ echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
22777
echo $ECHO_N "checking for libpq-fe.h... $ECHO_C" >&6; }
22778
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
22779
echo $ECHO_N "(cached) $ECHO_C" >&6
22781
ac_cv_header_libpq_fe_h=$ac_header_preproc
22783
{ echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
22784
echo "${ECHO_T}$ac_cv_header_libpq_fe_h" >&6; }
22787
if test $ac_cv_header_libpq_fe_h = yes; then
22790
{ { echo "$as_me:$LINENO: error: libpq header not found" >&5
22791
echo "$as_me: error: libpq header not found" >&2;}
22792
{ (exit 1); exit 1; }; }
22797
if test "$enable_openssl" = yes; then
22798
if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
22799
{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
22800
echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
22801
if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
22802
echo $ECHO_N "(cached) $ECHO_C" >&6
22804
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
22805
echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
22807
# Is the header compilable?
22808
{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
22809
echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
22810
cat >conftest.$ac_ext <<_ACEOF
22813
cat confdefs.h >>conftest.$ac_ext
22814
cat >>conftest.$ac_ext <<_ACEOF
22815
/* end confdefs.h. */
22816
$ac_includes_default
22817
#include <openssl/ssl.h>
22819
rm -f conftest.$ac_objext
22820
if { (ac_try="$ac_compile"
22821
case "(($ac_try" in
22822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823
*) ac_try_echo=$ac_try;;
22825
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826
(eval "$ac_compile") 2>conftest.er1
22828
grep -v '^ *+' conftest.er1 >conftest.err
22830
cat conftest.err >&5
22831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832
(exit $ac_status); } &&
22833
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22834
{ (case "(($ac_try" in
22835
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836
*) ac_try_echo=$ac_try;;
22838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22839
(eval "$ac_try") 2>&5
22841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842
(exit $ac_status); }; } &&
22843
{ ac_try='test -s conftest.$ac_objext'
22844
{ (case "(($ac_try" in
22845
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846
*) ac_try_echo=$ac_try;;
22848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849
(eval "$ac_try") 2>&5
22851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852
(exit $ac_status); }; }; then
22853
ac_header_compiler=yes
22855
echo "$as_me: failed program was:" >&5
22856
sed 's/^/| /' conftest.$ac_ext >&5
22858
ac_header_compiler=no
22861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22862
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22863
echo "${ECHO_T}$ac_header_compiler" >&6; }
22865
# Is the header present?
22866
{ echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
22867
echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
22868
cat >conftest.$ac_ext <<_ACEOF
22871
cat confdefs.h >>conftest.$ac_ext
22872
cat >>conftest.$ac_ext <<_ACEOF
22873
/* end confdefs.h. */
22874
#include <openssl/ssl.h>
22876
if { (ac_try="$ac_cpp conftest.$ac_ext"
22877
case "(($ac_try" in
22878
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879
*) ac_try_echo=$ac_try;;
22881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22882
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22884
grep -v '^ *+' conftest.er1 >conftest.err
22886
cat conftest.err >&5
22887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888
(exit $ac_status); } >/dev/null; then
22889
if test -s conftest.err; then
22890
ac_cpp_err=$ac_c_preproc_warn_flag
22891
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22898
if test -z "$ac_cpp_err"; then
22899
ac_header_preproc=yes
22901
echo "$as_me: failed program was:" >&5
22902
sed 's/^/| /' conftest.$ac_ext >&5
22904
ac_header_preproc=no
22907
rm -f conftest.err conftest.$ac_ext
22908
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22909
echo "${ECHO_T}$ac_header_preproc" >&6; }
22911
# So? What about this header?
22912
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22914
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22915
echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22916
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
22917
echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
22918
ac_header_preproc=yes
22921
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
22922
echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
22923
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
22924
echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
22925
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
22926
echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
22927
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
22928
echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22929
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
22930
echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
22931
{ echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
22932
echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
22934
## ---------------------------------------- ##
22935
## Report this to pgsql-odbc@postgresql.org ##
22936
## ---------------------------------------- ##
22938
) | sed "s/^/$as_me: WARNING: /" >&2
22941
{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
22942
echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
22943
if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
22944
echo $ECHO_N "(cached) $ECHO_C" >&6
22946
ac_cv_header_openssl_ssl_h=$ac_header_preproc
22948
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
22949
echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
22952
if test $ac_cv_header_openssl_ssl_h = yes; then
22955
{ { echo "$as_me:$LINENO: error: ssl header not found" >&5
22956
echo "$as_me: error: ssl header not found" >&2;}
22957
{ (exit 1); exit 1; }; }
22962
if test "$enable_gss" = yes; then
22964
for ac_header in gssapi/gssapi.h
22966
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22967
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22968
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22969
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22970
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22971
echo $ECHO_N "(cached) $ECHO_C" >&6
22973
ac_res=`eval echo '${'$as_ac_Header'}'`
22974
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22975
echo "${ECHO_T}$ac_res" >&6; }
22977
# Is the header compilable?
22978
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22979
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22980
cat >conftest.$ac_ext <<_ACEOF
22983
cat confdefs.h >>conftest.$ac_ext
22984
cat >>conftest.$ac_ext <<_ACEOF
22985
/* end confdefs.h. */
22986
$ac_includes_default
22987
#include <$ac_header>
22989
rm -f conftest.$ac_objext
22990
if { (ac_try="$ac_compile"
22991
case "(($ac_try" in
22992
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993
*) ac_try_echo=$ac_try;;
22995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996
(eval "$ac_compile") 2>conftest.er1
22998
grep -v '^ *+' conftest.er1 >conftest.err
23000
cat conftest.err >&5
23001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002
(exit $ac_status); } &&
23003
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23004
{ (case "(($ac_try" in
23005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23006
*) ac_try_echo=$ac_try;;
23008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23009
(eval "$ac_try") 2>&5
23011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012
(exit $ac_status); }; } &&
23013
{ ac_try='test -s conftest.$ac_objext'
23014
{ (case "(($ac_try" in
23015
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23016
*) ac_try_echo=$ac_try;;
23018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23019
(eval "$ac_try") 2>&5
23021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022
(exit $ac_status); }; }; then
23023
ac_header_compiler=yes
23025
echo "$as_me: failed program was:" >&5
23026
sed 's/^/| /' conftest.$ac_ext >&5
23028
ac_header_compiler=no
23031
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23033
echo "${ECHO_T}$ac_header_compiler" >&6; }
23035
# Is the header present?
23036
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23037
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23038
cat >conftest.$ac_ext <<_ACEOF
23041
cat confdefs.h >>conftest.$ac_ext
23042
cat >>conftest.$ac_ext <<_ACEOF
23043
/* end confdefs.h. */
23044
#include <$ac_header>
23046
if { (ac_try="$ac_cpp conftest.$ac_ext"
23047
case "(($ac_try" in
23048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049
*) ac_try_echo=$ac_try;;
23051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23054
grep -v '^ *+' conftest.er1 >conftest.err
23056
cat conftest.err >&5
23057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058
(exit $ac_status); } >/dev/null; then
23059
if test -s conftest.err; then
23060
ac_cpp_err=$ac_c_preproc_warn_flag
23061
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23068
if test -z "$ac_cpp_err"; then
23069
ac_header_preproc=yes
23071
echo "$as_me: failed program was:" >&5
23072
sed 's/^/| /' conftest.$ac_ext >&5
23074
ac_header_preproc=no
23077
rm -f conftest.err conftest.$ac_ext
23078
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23079
echo "${ECHO_T}$ac_header_preproc" >&6; }
23081
# So? What about this header?
23082
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23084
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23085
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23086
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23087
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23088
ac_header_preproc=yes
23091
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23092
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23093
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23094
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23095
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23096
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23097
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23098
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23099
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23100
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23101
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23102
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23104
## ---------------------------------------- ##
23105
## Report this to pgsql-odbc@postgresql.org ##
23106
## ---------------------------------------- ##
23108
) | sed "s/^/$as_me: WARNING: /" >&2
23111
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23112
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23113
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23114
echo $ECHO_N "(cached) $ECHO_C" >&6
23116
eval "$as_ac_Header=\$ac_header_preproc"
23118
ac_res=`eval echo '${'$as_ac_Header'}'`
23119
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23120
echo "${ECHO_T}$ac_res" >&6; }
23123
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23124
cat >>confdefs.h <<_ACEOF
23125
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23130
for ac_header in gssapi.h
23132
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23133
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23134
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23135
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23136
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23137
echo $ECHO_N "(cached) $ECHO_C" >&6
23139
ac_res=`eval echo '${'$as_ac_Header'}'`
23140
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23141
echo "${ECHO_T}$ac_res" >&6; }
23143
# Is the header compilable?
23144
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23145
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23146
cat >conftest.$ac_ext <<_ACEOF
23149
cat confdefs.h >>conftest.$ac_ext
23150
cat >>conftest.$ac_ext <<_ACEOF
23151
/* end confdefs.h. */
23152
$ac_includes_default
23153
#include <$ac_header>
23155
rm -f conftest.$ac_objext
23156
if { (ac_try="$ac_compile"
23157
case "(($ac_try" in
23158
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159
*) ac_try_echo=$ac_try;;
23161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162
(eval "$ac_compile") 2>conftest.er1
23164
grep -v '^ *+' conftest.er1 >conftest.err
23166
cat conftest.err >&5
23167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168
(exit $ac_status); } &&
23169
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23170
{ (case "(($ac_try" in
23171
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23172
*) ac_try_echo=$ac_try;;
23174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23175
(eval "$ac_try") 2>&5
23177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178
(exit $ac_status); }; } &&
23179
{ ac_try='test -s conftest.$ac_objext'
23180
{ (case "(($ac_try" in
23181
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182
*) ac_try_echo=$ac_try;;
23184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185
(eval "$ac_try") 2>&5
23187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188
(exit $ac_status); }; }; then
23189
ac_header_compiler=yes
23191
echo "$as_me: failed program was:" >&5
23192
sed 's/^/| /' conftest.$ac_ext >&5
23194
ac_header_compiler=no
23197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23199
echo "${ECHO_T}$ac_header_compiler" >&6; }
23201
# Is the header present?
23202
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23203
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23204
cat >conftest.$ac_ext <<_ACEOF
23207
cat confdefs.h >>conftest.$ac_ext
23208
cat >>conftest.$ac_ext <<_ACEOF
23209
/* end confdefs.h. */
23210
#include <$ac_header>
23212
if { (ac_try="$ac_cpp conftest.$ac_ext"
23213
case "(($ac_try" in
23214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215
*) ac_try_echo=$ac_try;;
23217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23220
grep -v '^ *+' conftest.er1 >conftest.err
23222
cat conftest.err >&5
23223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224
(exit $ac_status); } >/dev/null; then
23225
if test -s conftest.err; then
23226
ac_cpp_err=$ac_c_preproc_warn_flag
23227
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23234
if test -z "$ac_cpp_err"; then
23235
ac_header_preproc=yes
23237
echo "$as_me: failed program was:" >&5
23238
sed 's/^/| /' conftest.$ac_ext >&5
23240
ac_header_preproc=no
23243
rm -f conftest.err conftest.$ac_ext
23244
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23245
echo "${ECHO_T}$ac_header_preproc" >&6; }
23247
# So? What about this header?
23248
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23250
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23251
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23252
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23253
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23254
ac_header_preproc=yes
23257
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23258
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23259
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23260
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23261
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23262
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23263
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23264
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23265
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23266
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23267
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23268
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23270
## ---------------------------------------- ##
23271
## Report this to pgsql-odbc@postgresql.org ##
23272
## ---------------------------------------- ##
23274
) | sed "s/^/$as_me: WARNING: /" >&2
23277
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23278
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23279
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23280
echo $ECHO_N "(cached) $ECHO_C" >&6
23282
eval "$as_ac_Header=\$ac_header_preproc"
23284
ac_res=`eval echo '${'$as_ac_Header'}'`
23285
{ echo "$as_me:$LINENO: result: $ac_res" >&5
23286
echo "${ECHO_T}$ac_res" >&6; }
23289
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23290
cat >>confdefs.h <<_ACEOF
23291
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23295
{ { echo "$as_me:$LINENO: error: gssapi header not found" >&5
23296
echo "$as_me: error: gssapi header not found" >&2;}
23297
{ (exit 1); exit 1; }; }
23307
if test "$enable_krb5" = yes; then
23308
if test "${ac_cv_header_krb5_h+set}" = set; then
23309
{ echo "$as_me:$LINENO: checking for krb5.h" >&5
23310
echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
23311
if test "${ac_cv_header_krb5_h+set}" = set; then
23312
echo $ECHO_N "(cached) $ECHO_C" >&6
23314
{ echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
23315
echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
23317
# Is the header compilable?
23318
{ echo "$as_me:$LINENO: checking krb5.h usability" >&5
23319
echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
23320
cat >conftest.$ac_ext <<_ACEOF
23323
cat confdefs.h >>conftest.$ac_ext
23324
cat >>conftest.$ac_ext <<_ACEOF
23325
/* end confdefs.h. */
23326
$ac_includes_default
23329
rm -f conftest.$ac_objext
23330
if { (ac_try="$ac_compile"
23331
case "(($ac_try" in
23332
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23333
*) ac_try_echo=$ac_try;;
23335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23336
(eval "$ac_compile") 2>conftest.er1
23338
grep -v '^ *+' conftest.er1 >conftest.err
23340
cat conftest.err >&5
23341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342
(exit $ac_status); } &&
23343
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23344
{ (case "(($ac_try" in
23345
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23346
*) ac_try_echo=$ac_try;;
23348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23349
(eval "$ac_try") 2>&5
23351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352
(exit $ac_status); }; } &&
23353
{ ac_try='test -s conftest.$ac_objext'
23354
{ (case "(($ac_try" in
23355
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356
*) ac_try_echo=$ac_try;;
23358
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23359
(eval "$ac_try") 2>&5
23361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362
(exit $ac_status); }; }; then
23363
ac_header_compiler=yes
23365
echo "$as_me: failed program was:" >&5
23366
sed 's/^/| /' conftest.$ac_ext >&5
23368
ac_header_compiler=no
23371
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23372
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23373
echo "${ECHO_T}$ac_header_compiler" >&6; }
23375
# Is the header present?
23376
{ echo "$as_me:$LINENO: checking krb5.h presence" >&5
23377
echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
23378
cat >conftest.$ac_ext <<_ACEOF
23381
cat confdefs.h >>conftest.$ac_ext
23382
cat >>conftest.$ac_ext <<_ACEOF
23383
/* end confdefs.h. */
23386
if { (ac_try="$ac_cpp conftest.$ac_ext"
23387
case "(($ac_try" in
23388
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389
*) ac_try_echo=$ac_try;;
23391
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23394
grep -v '^ *+' conftest.er1 >conftest.err
23396
cat conftest.err >&5
23397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398
(exit $ac_status); } >/dev/null; then
23399
if test -s conftest.err; then
23400
ac_cpp_err=$ac_c_preproc_warn_flag
23401
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23408
if test -z "$ac_cpp_err"; then
23409
ac_header_preproc=yes
23411
echo "$as_me: failed program was:" >&5
23412
sed 's/^/| /' conftest.$ac_ext >&5
23414
ac_header_preproc=no
23417
rm -f conftest.err conftest.$ac_ext
23418
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23419
echo "${ECHO_T}$ac_header_preproc" >&6; }
23421
# So? What about this header?
23422
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23424
{ echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
23425
echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23426
{ echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
23427
echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
23428
ac_header_preproc=yes
23431
{ echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
23432
echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
23433
{ echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
23434
echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
23435
{ echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
23436
echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
23437
{ echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
23438
echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
23439
{ echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
23440
echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
23441
{ echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
23442
echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
23444
## ---------------------------------------- ##
23445
## Report this to pgsql-odbc@postgresql.org ##
23446
## ---------------------------------------- ##
23448
) | sed "s/^/$as_me: WARNING: /" >&2
23451
{ echo "$as_me:$LINENO: checking for krb5.h" >&5
23452
echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
23453
if test "${ac_cv_header_krb5_h+set}" = set; then
23454
echo $ECHO_N "(cached) $ECHO_C" >&6
23456
ac_cv_header_krb5_h=$ac_header_preproc
23458
{ echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
23459
echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
23462
if test $ac_cv_header_krb5_h = yes; then
23465
{ { echo "$as_me:$LINENO: error: krb5 header not found" >&5
23466
echo "$as_me: error: krb5 header not found" >&2;}
23467
{ (exit 1); exit 1; }; }
21043
23472
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21044
23473
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21045
23474
if test "${ac_cv_header_time+set}" = set; then
23231
25970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25973
if test "$enable_krb5" = yes; then
25974
{ echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
25975
echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
25976
if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
25977
echo $ECHO_N "(cached) $ECHO_C" >&6
25979
cat >conftest.$ac_ext <<_ACEOF
25982
cat confdefs.h >>conftest.$ac_ext
25983
cat >>conftest.$ac_ext <<_ACEOF
25984
/* end confdefs.h. */
25990
static krb5_error ac_aggr;
25991
if (ac_aggr.text.data)
25997
rm -f conftest.$ac_objext
25998
if { (ac_try="$ac_compile"
25999
case "(($ac_try" in
26000
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001
*) ac_try_echo=$ac_try;;
26003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26004
(eval "$ac_compile") 2>conftest.er1
26006
grep -v '^ *+' conftest.er1 >conftest.err
26008
cat conftest.err >&5
26009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010
(exit $ac_status); } &&
26011
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26012
{ (case "(($ac_try" in
26013
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26014
*) ac_try_echo=$ac_try;;
26016
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26017
(eval "$ac_try") 2>&5
26019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020
(exit $ac_status); }; } &&
26021
{ ac_try='test -s conftest.$ac_objext'
26022
{ (case "(($ac_try" in
26023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024
*) ac_try_echo=$ac_try;;
26026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027
(eval "$ac_try") 2>&5
26029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030
(exit $ac_status); }; }; then
26031
ac_cv_member_krb5_error_text_data=yes
26033
echo "$as_me: failed program was:" >&5
26034
sed 's/^/| /' conftest.$ac_ext >&5
26036
cat >conftest.$ac_ext <<_ACEOF
26039
cat confdefs.h >>conftest.$ac_ext
26040
cat >>conftest.$ac_ext <<_ACEOF
26041
/* end confdefs.h. */
26047
static krb5_error ac_aggr;
26048
if (sizeof ac_aggr.text.data)
26054
rm -f conftest.$ac_objext
26055
if { (ac_try="$ac_compile"
26056
case "(($ac_try" in
26057
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26058
*) ac_try_echo=$ac_try;;
26060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26061
(eval "$ac_compile") 2>conftest.er1
26063
grep -v '^ *+' conftest.er1 >conftest.err
26065
cat conftest.err >&5
26066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067
(exit $ac_status); } &&
26068
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26069
{ (case "(($ac_try" in
26070
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071
*) ac_try_echo=$ac_try;;
26073
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26074
(eval "$ac_try") 2>&5
26076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077
(exit $ac_status); }; } &&
26078
{ ac_try='test -s conftest.$ac_objext'
26079
{ (case "(($ac_try" in
26080
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26081
*) ac_try_echo=$ac_try;;
26083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26084
(eval "$ac_try") 2>&5
26086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087
(exit $ac_status); }; }; then
26088
ac_cv_member_krb5_error_text_data=yes
26090
echo "$as_me: failed program was:" >&5
26091
sed 's/^/| /' conftest.$ac_ext >&5
26093
ac_cv_member_krb5_error_text_data=no
26096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26101
{ echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
26102
echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
26103
if test $ac_cv_member_krb5_error_text_data = yes; then
26105
cat >>confdefs.h <<_ACEOF
26106
#define HAVE_KRB5_ERROR_TEXT_DATA 1
26111
{ echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
26112
echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
26113
if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
26114
echo $ECHO_N "(cached) $ECHO_C" >&6
26116
cat >conftest.$ac_ext <<_ACEOF
26119
cat confdefs.h >>conftest.$ac_ext
26120
cat >>conftest.$ac_ext <<_ACEOF
26121
/* end confdefs.h. */
26127
static krb5_error ac_aggr;
26128
if (ac_aggr.e_data)
26134
rm -f conftest.$ac_objext
26135
if { (ac_try="$ac_compile"
26136
case "(($ac_try" in
26137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26138
*) ac_try_echo=$ac_try;;
26140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26141
(eval "$ac_compile") 2>conftest.er1
26143
grep -v '^ *+' conftest.er1 >conftest.err
26145
cat conftest.err >&5
26146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147
(exit $ac_status); } &&
26148
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26149
{ (case "(($ac_try" in
26150
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26151
*) ac_try_echo=$ac_try;;
26153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26154
(eval "$ac_try") 2>&5
26156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157
(exit $ac_status); }; } &&
26158
{ ac_try='test -s conftest.$ac_objext'
26159
{ (case "(($ac_try" in
26160
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26161
*) ac_try_echo=$ac_try;;
26163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26164
(eval "$ac_try") 2>&5
26166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167
(exit $ac_status); }; }; then
26168
ac_cv_member_krb5_error_e_data=yes
26170
echo "$as_me: failed program was:" >&5
26171
sed 's/^/| /' conftest.$ac_ext >&5
26173
cat >conftest.$ac_ext <<_ACEOF
26176
cat confdefs.h >>conftest.$ac_ext
26177
cat >>conftest.$ac_ext <<_ACEOF
26178
/* end confdefs.h. */
26184
static krb5_error ac_aggr;
26185
if (sizeof ac_aggr.e_data)
26191
rm -f conftest.$ac_objext
26192
if { (ac_try="$ac_compile"
26193
case "(($ac_try" in
26194
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26195
*) ac_try_echo=$ac_try;;
26197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26198
(eval "$ac_compile") 2>conftest.er1
26200
grep -v '^ *+' conftest.er1 >conftest.err
26202
cat conftest.err >&5
26203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204
(exit $ac_status); } &&
26205
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26206
{ (case "(($ac_try" in
26207
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26208
*) ac_try_echo=$ac_try;;
26210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26211
(eval "$ac_try") 2>&5
26213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214
(exit $ac_status); }; } &&
26215
{ ac_try='test -s conftest.$ac_objext'
26216
{ (case "(($ac_try" in
26217
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26218
*) ac_try_echo=$ac_try;;
26220
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26221
(eval "$ac_try") 2>&5
26223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224
(exit $ac_status); }; }; then
26225
ac_cv_member_krb5_error_e_data=yes
26227
echo "$as_me: failed program was:" >&5
26228
sed 's/^/| /' conftest.$ac_ext >&5
26230
ac_cv_member_krb5_error_e_data=no
26233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26238
{ echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
26239
echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
26240
if test $ac_cv_member_krb5_error_e_data = yes; then
26242
cat >>confdefs.h <<_ACEOF
26243
#define HAVE_KRB5_ERROR_E_DATA 1
26248
{ { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
26249
echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
26250
{ (exit 1); exit 1; }; }
26255
{ echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
26256
echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
26257
cat >conftest.$ac_ext <<_ACEOF
26260
cat confdefs.h >>conftest.$ac_ext
26261
cat >>conftest.$ac_ext <<_ACEOF
26262
/* end confdefs.h. */
26267
krb5_free_unparsed_name(NULL,NULL);
26272
rm -f conftest.$ac_objext conftest$ac_exeext
26273
if { (ac_try="$ac_link"
26274
case "(($ac_try" in
26275
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26276
*) ac_try_echo=$ac_try;;
26278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26279
(eval "$ac_link") 2>conftest.er1
26281
grep -v '^ *+' conftest.er1 >conftest.err
26283
cat conftest.err >&5
26284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285
(exit $ac_status); } &&
26286
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26287
{ (case "(($ac_try" in
26288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26289
*) ac_try_echo=$ac_try;;
26291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26292
(eval "$ac_try") 2>&5
26294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295
(exit $ac_status); }; } &&
26296
{ ac_try='test -s conftest$ac_exeext'
26297
{ (case "(($ac_try" in
26298
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26299
*) ac_try_echo=$ac_try;;
26301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26302
(eval "$ac_try") 2>&5
26304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305
(exit $ac_status); }; }; then
26307
cat >>confdefs.h <<\_ACEOF
26308
#define HAVE_KRB5_FREE_UNPARSED_NAME 1
26311
{ echo "$as_me:$LINENO: result: yes" >&5
26312
echo "${ECHO_T}yes" >&6; }
26314
echo "$as_me: failed program was:" >&5
26315
sed 's/^/| /' conftest.$ac_ext >&5
26317
{ echo "$as_me:$LINENO: result: no" >&5
26318
echo "${ECHO_T}no" >&6; }
26321
rm -f core conftest.err conftest.$ac_objext \
26322
conftest$ac_exeext conftest.$ac_ext
26327
{ echo "$as_me:$LINENO: checking for lt_dlopen in -lltdl" >&5
26328
echo $ECHO_N "checking for lt_dlopen in -lltdl... $ECHO_C" >&6; }
26329
if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then
26330
echo $ECHO_N "(cached) $ECHO_C" >&6
26332
ac_check_lib_save_LIBS=$LIBS
26333
LIBS="-lltdl $LIBS"
26334
cat >conftest.$ac_ext <<_ACEOF
26337
cat confdefs.h >>conftest.$ac_ext
26338
cat >>conftest.$ac_ext <<_ACEOF
26339
/* end confdefs.h. */
26341
/* Override any GCC internal prototype to avoid an error.
26342
Use char because int might match the return type of a GCC
26343
builtin and then its argument prototype would still apply. */
26351
return lt_dlopen ();
26356
rm -f conftest.$ac_objext conftest$ac_exeext
26357
if { (ac_try="$ac_link"
26358
case "(($ac_try" in
26359
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360
*) ac_try_echo=$ac_try;;
26362
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26363
(eval "$ac_link") 2>conftest.er1
26365
grep -v '^ *+' conftest.er1 >conftest.err
26367
cat conftest.err >&5
26368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369
(exit $ac_status); } &&
26370
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26371
{ (case "(($ac_try" in
26372
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26373
*) ac_try_echo=$ac_try;;
26375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26376
(eval "$ac_try") 2>&5
26378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379
(exit $ac_status); }; } &&
26380
{ ac_try='test -s conftest$ac_exeext'
26381
{ (case "(($ac_try" in
26382
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26383
*) ac_try_echo=$ac_try;;
26385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26386
(eval "$ac_try") 2>&5
26388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389
(exit $ac_status); }; }; then
26390
ac_cv_lib_ltdl_lt_dlopen=yes
26392
echo "$as_me: failed program was:" >&5
26393
sed 's/^/| /' conftest.$ac_ext >&5
26395
ac_cv_lib_ltdl_lt_dlopen=no
26398
rm -f core conftest.err conftest.$ac_objext \
26399
conftest$ac_exeext conftest.$ac_ext
26400
LIBS=$ac_check_lib_save_LIBS
26402
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
26403
echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlopen" >&6; }
26404
if test $ac_cv_lib_ltdl_lt_dlopen = yes; then
26405
cat >>confdefs.h <<_ACEOF
26406
#define HAVE_LIBLTDL 1
26409
LIBS="-lltdl $LIBS"