@@ -3002,14 +3002,63 @@ else
3002
3002
INET_ATON=' inet_aton.o'
3003
3003
fi
3004
3004
3005
+ echo $ac_n " checking for strdup" " ...$ac_c " 1>&6
3006
+ echo " configure:3007: checking for strdup" >&5
3007
+ if eval " test\" ` echo' $' ' {' ac_cv_func_strdup' +set}' ` \" = set" ; then
3008
+ echo $ac_n " (cached)$ac_c " 1>&6
3009
+ else
3010
+ cat> conftest.$ac_ext << EOF
3011
+ #line 3012 "configure"
3012
+ #include "confdefs.h"
3013
+ /* System header to define __stub macros and hopefully few prototypes,
3014
+ which can conflict with char strdup(); below. */
3015
+ #include <assert.h>
3016
+ /* Override any gcc2 internal prototype to avoid an error. */
3017
+ /* We use char because int might match the return type of a gcc2
3018
+ builtin and then its argument prototype would still apply. */
3019
+ char strdup();
3020
+
3021
+ int main() {
3022
+
3023
+ /* The GNU C library defines this for functions which it implements
3024
+ to always fail with ENOSYS. Some functions are actually named
3025
+ something starting with __ and the normal name is an alias. */
3026
+ #if defined (__stub_strdup) || defined (__stub___strdup)
3027
+ choke me
3028
+ #else
3029
+ strdup();
3030
+ #endif
3031
+
3032
+ ; return 0; }
3033
+ EOF
3034
+ if { (evalecho configure:3035:\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
3035
+ rm -rf conftest*
3036
+ eval " ac_cv_func_strdup=yes"
3037
+ else
3038
+ echo " configure: failed program was:" >&5
3039
+ cat conftest.$ac_ext >&5
3040
+ rm -rf conftest*
3041
+ eval " ac_cv_func_strdup=no"
3042
+ fi
3043
+ rm -f conftest*
3044
+ fi
3045
+
3046
+ if eval " test\" ` echo' $ac_cv_func_' strdup` \" = yes" ; then
3047
+ echo " $ac_t " " yes" 1>&6
3048
+ STRDUP=' ../../utils/strdup.o'
3049
+ else
3050
+ echo " $ac_t " " no" 1>&6
3051
+ fi
3052
+
3053
+
3005
3054
3006
3055
echo $ac_n " checking for cbrt" " ...$ac_c " 1>&6
3007
- echo " configure:3008 : checking for cbrt" >&5
3056
+ echo " configure:3057 : checking for cbrt" >&5
3008
3057
if eval " test\" ` echo' $' ' {' ac_cv_func_cbrt' +set}' ` \" = set" ; then
3009
3058
echo $ac_n " (cached)$ac_c " 1>&6
3010
3059
else
3011
3060
cat> conftest.$ac_ext << EOF
3012
- #line3013 "configure"
3061
+ #line3062 "configure"
3013
3062
#include "confdefs.h"
3014
3063
/* System header to define __stub macros and hopefully few prototypes,
3015
3064
which can conflict with char cbrt(); below. */
@@ -3032,7 +3081,7 @@ cbrt();
3032
3081
3033
3082
; return 0; }
3034
3083
EOF
3035
- if { (evalecho configure:3036 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
3084
+ if { (evalecho configure:3085 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
3036
3085
rm -rf conftest*
3037
3086
eval " ac_cv_func_cbrt=yes"
3038
3087
else
@@ -3053,15 +3102,15 @@ EOF
3053
3102
else
3054
3103
echo " $ac_t " " no" 1>&6
3055
3104
echo $ac_n " checking for cbrt in -lm" " ...$ac_c " 1>&6
3056
- echo " configure:3057 : checking for cbrt in -lm" >&5
3105
+ echo " configure:3106 : checking for cbrt in -lm" >&5
3057
3106
ac_lib_var=` echo m' _' cbrt| sed' y%./+-%__p_%' `
3058
3107
if eval " test\" ` echo' $' ' {' ac_cv_lib_$ac_lib_var ' +set}' ` \" = set" ; then
3059
3108
echo $ac_n " (cached)$ac_c " 1>&6
3060
3109
else
3061
3110
ac_save_LIBS=" $LIBS "
3062
3111
LIBS=" -lm$LIBS "
3063
3112
cat> conftest.$ac_ext << EOF
3064
- #line3065 "configure"
3113
+ #line3114 "configure"
3065
3114
#include "confdefs.h"
3066
3115
/* Override any gcc2 internal prototype to avoid an error. */
3067
3116
/* We use char because int might match the return type of a gcc2
@@ -3072,7 +3121,7 @@ int main() {
3072
3121
cbrt()
3073
3122
; return 0; }
3074
3123
EOF
3075
- if { (evalecho configure:3076 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
3124
+ if { (evalecho configure:3125 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
3076
3125
rm -rf conftest*
3077
3126
eval " ac_cv_lib_$ac_lib_var =yes"
3078
3127
else
@@ -3098,12 +3147,12 @@ fi
3098
3147
fi
3099
3148
3100
3149
echo $ac_n " checking for rint" " ...$ac_c " 1>&6
3101
- echo " configure:3102 : checking for rint" >&5
3150
+ echo " configure:3151 : checking for rint" >&5
3102
3151
if eval " test\" ` echo' $' ' {' ac_cv_func_rint' +set}' ` \" = set" ; then
3103
3152
echo $ac_n " (cached)$ac_c " 1>&6
3104
3153
else
3105
3154
cat> conftest.$ac_ext << EOF
3106
- #line3107 "configure"
3155
+ #line3156 "configure"
3107
3156
#include "confdefs.h"
3108
3157
/* System header to define __stub macros and hopefully few prototypes,
3109
3158
which can conflict with char rint(); below. */
@@ -3126,7 +3175,7 @@ rint();
3126
3175
3127
3176
; return 0; }
3128
3177
EOF
3129
- if { (evalecho configure:3130 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
3178
+ if { (evalecho configure:3179 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
3130
3179
rm -rf conftest*
3131
3180
eval " ac_cv_func_rint=yes"
3132
3181
else
@@ -3147,15 +3196,15 @@ EOF
3147
3196
else
3148
3197
echo " $ac_t " " no" 1>&6
3149
3198
echo $ac_n " checking for rint in -lm" " ...$ac_c " 1>&6
3150
- echo " configure:3151 : checking for rint in -lm" >&5
3199
+ echo " configure:3200 : checking for rint in -lm" >&5
3151
3200
ac_lib_var=` echo m' _' rint| sed' y%./+-%__p_%' `
3152
3201
if eval " test\" ` echo' $' ' {' ac_cv_lib_$ac_lib_var ' +set}' ` \" = set" ; then
3153
3202
echo $ac_n " (cached)$ac_c " 1>&6
3154
3203
else
3155
3204
ac_save_LIBS=" $LIBS "
3156
3205
LIBS=" -lm$LIBS "
3157
3206
cat> conftest.$ac_ext << EOF
3158
- #line3159 "configure"
3207
+ #line3208 "configure"
3159
3208
#include "confdefs.h"
3160
3209
/* Override any gcc2 internal prototype to avoid an error. */
3161
3210
/* We use char because int might match the return type of a gcc2
@@ -3166,7 +3215,7 @@ int main() {
3166
3215
rint()
3167
3216
; return 0; }
3168
3217
EOF
3169
- if { (evalecho configure:3170 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
3218
+ if { (evalecho configure:3219 :\" $ac_link \" )1>&5 ; (eval$ac_link )2>&5 ; }&& test -s conftest; then
3170
3219
rm -rf conftest*
3171
3220
eval " ac_cv_lib_$ac_lib_var =yes"
3172
3221
else
@@ -3292,7 +3341,7 @@ done
3292
3341
3293
3342
ac_given_srcdir=$srcdir
3294
3343
3295
- trap 'rm -fr` echo" GNUmakefile Makefile.global backend/port/Makefile include/config.h" | sed" s/:[^ ]*//g" ` conftest*; exit 1' 1 2 15
3344
+ trap 'rm -fr` echo" GNUmakefile Makefile.global backend/port/Makefilebin/psql/Makefile bin/pg_dump/Makefile include/config.h" | sed" s/:[^ ]*//g" ` conftest*; exit 1' 1 2 15
3296
3345
EOF
3297
3346
cat>> $CONFIG_STATUS << EOF
3298
3347
@@ -3352,6 +3401,7 @@ s%@ipcs@%$ipcs%g
3352
3401
s%@ipcrm@%$ipcrm %g
3353
3402
s%@LIBOBJS@%$LIBOBJS %g
3354
3403
s%@INET_ATON@%$INET_ATON %g
3404
+ s%@STRDUP@%$STRDUP %g
3355
3405
3356
3406
CEOF
3357
3407
EOF
@@ -3393,7 +3443,7 @@ EOF
3393
3443
3394
3444
cat>> $CONFIG_STATUS << EOF
3395
3445
3396
- CONFIG_FILES=\$ {CONFIG_FILES-"GNUmakefile Makefile.global backend/port/Makefile"}
3446
+ CONFIG_FILES=\$ {CONFIG_FILES-"GNUmakefile Makefile.global backend/port/Makefile bin/psql/Makefile bin/pg_dump/Makefile "}
3397
3447
EOF
3398
3448
cat>> $CONFIG_STATUS << \EOF
3399
3449
for ac_file in ..$CONFIG_FILES ; do if test "x$ac_file " != x..; then