@@ -1506,8 +1506,8 @@ done
1506
1506
test -n " $TR " || TR=" NOT_FOUND"
1507
1507
1508
1508
1509
- TRSTRINGS=` echo ABCdef | $TR " '[ a-z] ' '[ A-Z]' " | grep ABCDEF`
1510
- TRCLASS=` echo ABCdef | $TR " [ :lower:] " " [ :upper:] " | grep ABCDEF`
1509
+ TRSTRINGS=` echo ABCdef | $TR ' a-z' ' A-Z' 2> /dev/null | grep ABCDEF`
1510
+ TRCLASS=` echo ABCdef | $TR ' :lower:' ' :upper:' 2> /dev/null | grep ABCDEF`
1511
1511
1512
1512
if test " $TRSTRINGS " = " ABCDEF" ; then
1513
1513
TRARGS=" '[a-z]' '[A-Z]'"
@@ -3580,17 +3580,65 @@ else
3580
3580
STRERROR=' strerror.o'
3581
3581
fi
3582
3582
3583
- eC_CHECK_FUNC(strerror, cat >> confdefs.h << \EOF
3583
+ echo $ac_n " checking for strerror" " ... $ac_c " 1>&6
3584
+ echo " configure:3585: checking for strerror" >&5
3585
+ if eval " test \" ` echo ' $' ' {' ac_cv_func_strerror' +set}' ` \" = set" ; then
3586
+ echo $ac_n " (cached) $ac_c " 1>&6
3587
+ else
3588
+ cat > conftest.$ac_ext << EOF
3589
+ #line 3590 "configure"
3590
+ #include "confdefs.h"
3591
+ /* System header to define __stub macros and hopefully few prototypes,
3592
+ which can conflict with char strerror(); below. */
3593
+ #include <assert.h>
3594
+ /* Override any gcc2 internal prototype to avoid an error. */
3595
+ /* We use char because int might match the return type of a gcc2
3596
+ builtin and then its argument prototype would still apply. */
3597
+ char strerror();
3598
+
3599
+ int main() {
3600
+
3601
+ /* The GNU C library defines this for functions which it implements
3602
+ to always fail with ENOSYS. Some functions are actually named
3603
+ something starting with __ and the normal name is an alias. */
3604
+ #if defined (__stub_strerror) || defined (__stub___strerror)
3605
+ choke me
3606
+ #else
3607
+ strerror();
3608
+ #endif
3609
+
3610
+ ; return 0; }
3611
+ EOF
3612
+ if { (eval echo configure:3613: \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3613
+ rm -rf conftest*
3614
+ eval " ac_cv_func_strerror=yes"
3615
+ else
3616
+ echo " configure: failed program was:" >&5
3617
+ cat conftest.$ac_ext >&5
3618
+ rm -rf conftest*
3619
+ eval " ac_cv_func_strerror=no"
3620
+ fi
3621
+ rm -f conftest*
3622
+ fi
3623
+
3624
+ if eval " test \" ` echo ' $ac_cv_func_' strerror` \" = yes" ; then
3625
+ echo " $ac_t " " yes" 1>&6
3626
+ cat >> confdefs.h << \EOF
3584
3627
#define HAVE_STRERROR 1
3585
3628
EOF
3586
- , STRERROR2=' ../../backend/port/strerror.o' )
3629
+
3630
+ else
3631
+ echo " $ac_t " " no" 1>&6
3632
+ STRERROR2=' ../../backend/port/strerror.o'
3633
+ fi
3634
+
3587
3635
echo $ac_n " checking for strdup" " ... $ac_c " 1>&6
3588
- echo " configure:3589 : checking for strdup" >&5
3636
+ echo " configure:3637 : checking for strdup" >&5
3589
3637
if eval " test \" ` echo ' $' ' {' ac_cv_func_strdup' +set}' ` \" = set" ; then
3590
3638
echo $ac_n " (cached) $ac_c " 1>&6
3591
3639
else
3592
3640
cat > conftest.$ac_ext << EOF
3593
- #line 3594 "configure"
3641
+ #line 3642 "configure"
3594
3642
#include "confdefs.h"
3595
3643
/* System header to define __stub macros and hopefully few prototypes,
3596
3644
which can conflict with char strdup(); below. */
@@ -3613,7 +3661,7 @@ strdup();
3613
3661
3614
3662
; return 0; }
3615
3663
EOF
3616
- if { (eval echo configure:3617 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3664
+ if { (eval echo configure:3665 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3617
3665
rm -rf conftest*
3618
3666
eval " ac_cv_func_strdup=yes"
3619
3667
else
@@ -3641,12 +3689,12 @@ fi
3641
3689
3642
3690
3643
3691
echo $ac_n " checking for cbrt" " ... $ac_c " 1>&6
3644
- echo " configure:3645 : checking for cbrt" >&5
3692
+ echo " configure:3693 : checking for cbrt" >&5
3645
3693
if eval " test \" ` echo ' $' ' {' ac_cv_func_cbrt' +set}' ` \" = set" ; then
3646
3694
echo $ac_n " (cached) $ac_c " 1>&6
3647
3695
else
3648
3696
cat > conftest.$ac_ext << EOF
3649
- #line 3650 "configure"
3697
+ #line 3698 "configure"
3650
3698
#include "confdefs.h"
3651
3699
/* System header to define __stub macros and hopefully few prototypes,
3652
3700
which can conflict with char cbrt(); below. */
@@ -3669,7 +3717,7 @@ cbrt();
3669
3717
3670
3718
; return 0; }
3671
3719
EOF
3672
- if { (eval echo configure:3673 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3720
+ if { (eval echo configure:3721 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3673
3721
rm -rf conftest*
3674
3722
eval " ac_cv_func_cbrt=yes"
3675
3723
else
@@ -3690,15 +3738,15 @@ EOF
3690
3738
else
3691
3739
echo " $ac_t " " no" 1>&6
3692
3740
echo $ac_n " checking for cbrt in -lm" " ... $ac_c " 1>&6
3693
- echo " configure:3694 : checking for cbrt in -lm" >&5
3741
+ echo " configure:3742 : checking for cbrt in -lm" >&5
3694
3742
ac_lib_var=` echo m' _' cbrt | sed ' y%./+-%__p_%' `
3695
3743
if eval " test \" ` echo ' $' ' {' ac_cv_lib_$ac_lib_var ' +set}' ` \" = set" ; then
3696
3744
echo $ac_n " (cached) $ac_c " 1>&6
3697
3745
else
3698
3746
ac_save_LIBS=" $LIBS "
3699
3747
LIBS=" -lm $LIBS "
3700
3748
cat > conftest.$ac_ext << EOF
3701
- #line 3702 "configure"
3749
+ #line 3750 "configure"
3702
3750
#include "confdefs.h"
3703
3751
/* Override any gcc2 internal prototype to avoid an error. */
3704
3752
/* We use char because int might match the return type of a gcc2
@@ -3709,7 +3757,7 @@ int main() {
3709
3757
cbrt()
3710
3758
; return 0; }
3711
3759
EOF
3712
- if { (eval echo configure:3713 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3760
+ if { (eval echo configure:3761 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3713
3761
rm -rf conftest*
3714
3762
eval " ac_cv_lib_$ac_lib_var =yes"
3715
3763
else
@@ -3735,12 +3783,12 @@ fi
3735
3783
fi
3736
3784
3737
3785
echo $ac_n " checking for rint" " ... $ac_c " 1>&6
3738
- echo " configure:3739 : checking for rint" >&5
3786
+ echo " configure:3787 : checking for rint" >&5
3739
3787
if eval " test \" ` echo ' $' ' {' ac_cv_func_rint' +set}' ` \" = set" ; then
3740
3788
echo $ac_n " (cached) $ac_c " 1>&6
3741
3789
else
3742
3790
cat > conftest.$ac_ext << EOF
3743
- #line 3744 "configure"
3791
+ #line 3792 "configure"
3744
3792
#include "confdefs.h"
3745
3793
/* System header to define __stub macros and hopefully few prototypes,
3746
3794
which can conflict with char rint(); below. */
@@ -3763,7 +3811,7 @@ rint();
3763
3811
3764
3812
; return 0; }
3765
3813
EOF
3766
- if { (eval echo configure:3767 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3814
+ if { (eval echo configure:3815 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3767
3815
rm -rf conftest*
3768
3816
eval " ac_cv_func_rint=yes"
3769
3817
else
@@ -3784,15 +3832,15 @@ EOF
3784
3832
else
3785
3833
echo " $ac_t " " no" 1>&6
3786
3834
echo $ac_n " checking for rint in -lm" " ... $ac_c " 1>&6
3787
- echo " configure:3788 : checking for rint in -lm" >&5
3835
+ echo " configure:3836 : checking for rint in -lm" >&5
3788
3836
ac_lib_var=` echo m' _' rint | sed ' y%./+-%__p_%' `
3789
3837
if eval " test \" ` echo ' $' ' {' ac_cv_lib_$ac_lib_var ' +set}' ` \" = set" ; then
3790
3838
echo $ac_n " (cached) $ac_c " 1>&6
3791
3839
else
3792
3840
ac_save_LIBS=" $LIBS "
3793
3841
LIBS=" -lm $LIBS "
3794
3842
cat > conftest.$ac_ext << EOF
3795
- #line 3796 "configure"
3843
+ #line 3844 "configure"
3796
3844
#include "confdefs.h"
3797
3845
/* Override any gcc2 internal prototype to avoid an error. */
3798
3846
/* We use char because int might match the return type of a gcc2
@@ -3803,7 +3851,7 @@ int main() {
3803
3851
rint()
3804
3852
; return 0; }
3805
3853
EOF
3806
- if { (eval echo configure:3807 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3854
+ if { (eval echo configure:3855 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
3807
3855
rm -rf conftest*
3808
3856
eval " ac_cv_lib_$ac_lib_var =yes"
3809
3857
else
3830
3878
3831
3879
3832
3880
echo $ac_n " checking setting USE_LOCALE" " ... $ac_c " 1>&6
3833
- echo " configure:3834 : checking setting USE_LOCALE" >&5
3881
+ echo " configure:3882 : checking setting USE_LOCALE" >&5
3834
3882
if test " $USE_LOCALE " = " yes"
3835
3883
then
3836
3884
echo " $ac_t " " enabled" 1>&6
@@ -3842,14 +3890,14 @@ else
3842
3890
echo " $ac_t " " disabled" 1>&6
3843
3891
fi
3844
3892
echo $ac_n " checking setting DEF_PGPORT" " ... $ac_c " 1>&6
3845
- echo " configure:3846 : checking setting DEF_PGPORT" >&5
3893
+ echo " configure:3894 : checking setting DEF_PGPORT" >&5
3846
3894
cat >> confdefs.h << EOF
3847
3895
#define DEF_PGPORT "${DEF_PGPORT} "
3848
3896
EOF
3849
3897
3850
3898
echo " $ac_t " " $DEF_PGPORT " 1>&6
3851
3899
echo $ac_n " checking setting HBA" " ... $ac_c " 1>&6
3852
- echo " configure:3853 : checking setting HBA" >&5
3900
+ echo " configure:3901 : checking setting HBA" >&5
3853
3901
if test " $NOHBA " = " no"
3854
3902
then
3855
3903
echo " $ac_t " " enabled" 1>&6
0 commit comments