@@ -3580,13 +3580,17 @@ else
3580
3580
STRERROR=' strerror.o'
3581
3581
fi
3582
3582
3583
+ eC_CHECK_FUNC(strerror, cat >> confdefs.h << \EOF
3584
+ #define HAVE_STRERROR 1
3585
+ EOF
3586
+ , STRERROR2=' ../../backend/port/strerror.o' )
3583
3587
echo $ac_n " checking for strdup" " ... $ac_c " 1>&6
3584
- echo " configure:3585 : checking for strdup" >&5
3588
+ echo " configure:3589 : checking for strdup" >&5
3585
3589
if eval " test \" ` echo ' $' ' {' ac_cv_func_strdup' +set}' ` \" = set" ; then
3586
3590
echo $ac_n " (cached) $ac_c " 1>&6
3587
3591
else
3588
3592
cat > conftest.$ac_ext << EOF
3589
- #line 3590 "configure"
3593
+ #line 3594 "configure"
3590
3594
#include "confdefs.h"
3591
3595
/* System header to define __stub macros and hopefully few prototypes,
3592
3596
which can conflict with char strdup(); below. */
@@ -3609,7 +3613,7 @@ strdup();
3609
3613
3610
3614
; return 0; }
3611
3615
EOF
3612
- if { (eval echo configure:3613 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3616
+ if { (eval echo configure:3617 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3613
3617
rm -rf conftest*
3614
3618
eval " ac_cv_func_strdup=yes"
3615
3619
else
@@ -3635,13 +3639,14 @@ fi
3635
3639
3636
3640
3637
3641
3642
+
3638
3643
echo $ac_n " checking for cbrt" " ... $ac_c " 1>&6
3639
- echo " configure:3640 : checking for cbrt" >&5
3644
+ echo " configure:3645 : checking for cbrt" >&5
3640
3645
if eval " test \" ` echo ' $' ' {' ac_cv_func_cbrt' +set}' ` \" = set" ; then
3641
3646
echo $ac_n " (cached) $ac_c " 1>&6
3642
3647
else
3643
3648
cat > conftest.$ac_ext << EOF
3644
- #line 3645 "configure"
3649
+ #line 3650 "configure"
3645
3650
#include "confdefs.h"
3646
3651
/* System header to define __stub macros and hopefully few prototypes,
3647
3652
which can conflict with char cbrt(); below. */
@@ -3664,7 +3669,7 @@ cbrt();
3664
3669
3665
3670
; return 0; }
3666
3671
EOF
3667
- if { (eval echo configure:3668 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3672
+ if { (eval echo configure:3673 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3668
3673
rm -rf conftest*
3669
3674
eval " ac_cv_func_cbrt=yes"
3670
3675
else
@@ -3685,15 +3690,15 @@ EOF
3685
3690
else
3686
3691
echo " $ac_t " " no" 1>&6
3687
3692
echo $ac_n " checking for cbrt in -lm" " ... $ac_c " 1>&6
3688
- echo " configure:3689 : checking for cbrt in -lm" >&5
3693
+ echo " configure:3694 : checking for cbrt in -lm" >&5
3689
3694
ac_lib_var=` echo m' _' cbrt | sed ' y%./+-%__p_%' `
3690
3695
if eval " test \" ` echo ' $' ' {' ac_cv_lib_$ac_lib_var ' +set}' ` \" = set" ; then
3691
3696
echo $ac_n " (cached) $ac_c " 1>&6
3692
3697
else
3693
3698
ac_save_LIBS=" $LIBS "
3694
3699
LIBS=" -lm $LIBS "
3695
3700
cat > conftest.$ac_ext << EOF
3696
- #line 3697 "configure"
3701
+ #line 3702 "configure"
3697
3702
#include "confdefs.h"
3698
3703
/* Override any gcc2 internal prototype to avoid an error. */
3699
3704
/* We use char because int might match the return type of a gcc2
@@ -3704,7 +3709,7 @@ int main() {
3704
3709
cbrt()
3705
3710
; return 0; }
3706
3711
EOF
3707
- if { (eval echo configure:3708 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3712
+ if { (eval echo configure:3713 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3708
3713
rm -rf conftest*
3709
3714
eval " ac_cv_lib_$ac_lib_var =yes"
3710
3715
else
@@ -3730,12 +3735,12 @@ fi
3730
3735
fi
3731
3736
3732
3737
echo $ac_n " checking for rint" " ... $ac_c " 1>&6
3733
- echo " configure:3734 : checking for rint" >&5
3738
+ echo " configure:3739 : checking for rint" >&5
3734
3739
if eval " test \" ` echo ' $' ' {' ac_cv_func_rint' +set}' ` \" = set" ; then
3735
3740
echo $ac_n " (cached) $ac_c " 1>&6
3736
3741
else
3737
3742
cat > conftest.$ac_ext << EOF
3738
- #line 3739 "configure"
3743
+ #line 3744 "configure"
3739
3744
#include "confdefs.h"
3740
3745
/* System header to define __stub macros and hopefully few prototypes,
3741
3746
which can conflict with char rint(); below. */
@@ -3758,7 +3763,7 @@ rint();
3758
3763
3759
3764
; return 0; }
3760
3765
EOF
3761
- if { (eval echo configure:3762 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3766
+ if { (eval echo configure:3767 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3762
3767
rm -rf conftest*
3763
3768
eval " ac_cv_func_rint=yes"
3764
3769
else
@@ -3779,15 +3784,15 @@ EOF
3779
3784
else
3780
3785
echo " $ac_t " " no" 1>&6
3781
3786
echo $ac_n " checking for rint in -lm" " ... $ac_c " 1>&6
3782
- echo " configure:3783 : checking for rint in -lm" >&5
3787
+ echo " configure:3788 : checking for rint in -lm" >&5
3783
3788
ac_lib_var=` echo m' _' rint | sed ' y%./+-%__p_%' `
3784
3789
if eval " test \" ` echo ' $' ' {' ac_cv_lib_$ac_lib_var ' +set}' ` \" = set" ; then
3785
3790
echo $ac_n " (cached) $ac_c " 1>&6
3786
3791
else
3787
3792
ac_save_LIBS=" $LIBS "
3788
3793
LIBS=" -lm $LIBS "
3789
3794
cat > conftest.$ac_ext << EOF
3790
- #line 3791 "configure"
3795
+ #line 3796 "configure"
3791
3796
#include "confdefs.h"
3792
3797
/* Override any gcc2 internal prototype to avoid an error. */
3793
3798
/* We use char because int might match the return type of a gcc2
@@ -3798,7 +3803,7 @@ int main() {
3798
3803
rint()
3799
3804
; return 0; }
3800
3805
EOF
3801
- if { (eval echo configure:3802 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3806
+ if { (eval echo configure:3807 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3802
3807
rm -rf conftest*
3803
3808
eval " ac_cv_lib_$ac_lib_var =yes"
3804
3809
else
3825
3830
3826
3831
3827
3832
echo $ac_n " checking setting USE_LOCALE" " ... $ac_c " 1>&6
3828
- echo " configure:3829 : checking setting USE_LOCALE" >&5
3833
+ echo " configure:3834 : checking setting USE_LOCALE" >&5
3829
3834
if test " $USE_LOCALE " = " yes"
3830
3835
then
3831
3836
echo " $ac_t " " enabled" 1>&6
@@ -3837,14 +3842,14 @@ else
3837
3842
echo " $ac_t " " disabled" 1>&6
3838
3843
fi
3839
3844
echo $ac_n " checking setting DEF_PGPORT" " ... $ac_c " 1>&6
3840
- echo " configure:3841 : checking setting DEF_PGPORT" >&5
3845
+ echo " configure:3846 : checking setting DEF_PGPORT" >&5
3841
3846
cat >> confdefs.h << EOF
3842
3847
#define DEF_PGPORT "${DEF_PGPORT} "
3843
3848
EOF
3844
3849
3845
3850
echo " $ac_t " " $DEF_PGPORT " 1>&6
3846
3851
echo $ac_n " checking setting HBA" " ... $ac_c " 1>&6
3847
- echo " configure:3848 : checking setting HBA" >&5
3852
+ echo " configure:3853 : checking setting HBA" >&5
3848
3853
if test " $NOHBA " = " no"
3849
3854
then
3850
3855
echo " $ac_t " " enabled" 1>&6
@@ -4028,6 +4033,7 @@ s%@LIBOBJS@%$LIBOBJS%g
4028
4033
s%@STRDUP@%$STRDUP %g
4029
4034
s%@INET_ATON@%$INET_ATON %g
4030
4035
s%@STRERROR@%$STRERROR %g
4036
+ s%@STRERROR2@%$STRERROR2 %g
4031
4037
4032
4038
CEOF
4033
4039
EOF
0 commit comments