Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
379268aa
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
379268aa
编写于
10月 19, 2001
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Proper fix for glibc getopt() botch. Surprising we did not see this
before.
上级
58f6b951
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
132 addition
and
75 deletion
+132
-75
configure
configure
+91
-58
configure.in
configure.in
+9
-0
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+28
-16
src/include/pg_config.h.in
src/include/pg_config.h.in
+4
-1
未找到文件。
configure
浏览文件 @
379268aa
...
...
@@ -7475,22 +7475,55 @@ EOF
fi
echo
$ac_n
"checking for __getopt_initialized""...
$ac_c
"
1>&6
echo
"configure:7480: checking for __getopt_initialized"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_var_int___getopt_initialized
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7485 "configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
extern int __getopt_initialized; __getopt_initialized = 1;
; return 0; }
EOF
if
{
(
eval echo
configure:7492:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
pgac_cv_var_int___getopt_initialized
=
yes
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
pgac_cv_var_int___getopt_initialized
=
no
fi
rm
-f
conftest
*
fi
echo
"
$ac_t
""
$pgac_cv_var_int___getopt_initialized
"
1>&6
if
test
x
"
$pgac_cv_var_int___getopt_initialized
"
=
x
"yes"
;
then
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_INT___GETOPT_INITIALIZED 1
EOF
fi
# This test makes sure that run tests work at all. Sometimes a shared
# library is found by the linker, but the runtime linker can't find it.
# This check should come after all modifications of compiler or linker
# variables, and before any other run tests.
echo
$ac_n
"checking test program""...
$ac_c
"
1>&6
echo
"configure:7
485
: checking test program"
>
&5
echo
"configure:7
518
: checking test program"
>
&5
if
test
"
$cross_compiling
"
=
yes
;
then
echo
"
$ac_t
""cross-compiling"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
490
"configure"
#line 7
523
"configure"
#include "confdefs.h"
int main() { return 0; }
EOF
if
{
(
eval echo
configure:7
494
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:7
527
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
echo
"
$ac_t
""ok"
1>&6
else
...
...
@@ -7510,7 +7543,7 @@ fi
echo
$ac_n
"checking whether long int is 64 bits""...
$ac_c
"
1>&6
echo
"configure:75
14
: checking whether long int is 64 bits"
>
&5
echo
"configure:75
47
: checking whether long int is 64 bits"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_type_long_int_64
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -7519,7 +7552,7 @@ else
echo
"configure: warning: 64 bit arithmetic disabled when cross-compiling"
1>&2
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 75
23
"configure"
#line 75
56
"configure"
#include "confdefs.h"
typedef long int int64;
...
...
@@ -7548,7 +7581,7 @@ main() {
exit(! does_int64_work());
}
EOF
if
{
(
eval echo
configure:75
52
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:75
85
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
pgac_cv_type_long_int_64
=
yes
else
...
...
@@ -7575,7 +7608,7 @@ fi
if
test
x
"
$HAVE_LONG_INT_64
"
=
x
"no"
;
then
echo
$ac_n
"checking whether long long int is 64 bits""...
$ac_c
"
1>&6
echo
"configure:7
579
: checking whether long long int is 64 bits"
>
&5
echo
"configure:7
612
: checking whether long long int is 64 bits"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_type_long_long_int_64
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -7584,7 +7617,7 @@ else
echo
"configure: warning: 64 bit arithmetic disabled when cross-compiling"
1>&2
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
588
"configure"
#line 7
621
"configure"
#include "confdefs.h"
typedef long long int int64;
...
...
@@ -7613,7 +7646,7 @@ main() {
exit(! does_int64_work());
}
EOF
if
{
(
eval echo
configure:76
17
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:76
50
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
pgac_cv_type_long_long_int_64
=
yes
else
...
...
@@ -7643,7 +7676,7 @@ fi
if
[
x
"
$HAVE_LONG_LONG_INT_64
"
=
xyes
]
;
then
cat
>
conftest.
$ac_ext
<<
EOF
#line 76
47
"configure"
#line 76
80
"configure"
#include "confdefs.h"
#define INT64CONST(x) x##LL
...
...
@@ -7653,7 +7686,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:76
57
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:76
90
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_LL_CONSTANTS 1
...
...
@@ -7671,7 +7704,7 @@ fi
if
[
x
"
$HAVE_LONG_LONG_INT_64
"
=
xyes
]
;
then
if
[
x
$SNPRINTF
=
x
]
;
then
echo
$ac_n
"checking whether snprintf handles 'long long int' as %lld""...
$ac_c
"
1>&6
echo
"configure:7
675
: checking whether snprintf handles 'long long int' as %lld"
>
&5
echo
"configure:7
708
: checking whether snprintf handles 'long long int' as %lld"
>
&5
if
test
"
$cross_compiling
"
=
yes
;
then
echo
"
$ac_t
""assuming not on target machine"
1>&6
# Force usage of our own snprintf, since we cannot test foreign snprintf
...
...
@@ -7680,7 +7713,7 @@ echo "configure:7675: checking whether snprintf handles 'long long int' as %lld"
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
684
"configure"
#line 7
717
"configure"
#include "confdefs.h"
#include <stdio.h>
typedef long long int int64;
...
...
@@ -7707,7 +7740,7 @@ main() {
exit(! does_int64_snprintf_work());
}
EOF
if
{
(
eval echo
configure:77
11
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:77
44
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
echo
"
$ac_t
""yes"
1>&6
INT64_FORMAT
=
'"%lld"'
...
...
@@ -7718,7 +7751,7 @@ else
rm
-fr
conftest
*
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking whether snprintf handles 'long long int' as %qd""...
$ac_c
"
1>&6
echo
"configure:77
22
: checking whether snprintf handles 'long long int' as %qd"
>
&5
echo
"configure:77
55
: checking whether snprintf handles 'long long int' as %qd"
>
&5
if
test
"
$cross_compiling
"
=
yes
;
then
echo
"
$ac_t
""assuming not on target machine"
1>&6
# Force usage of our own snprintf, since we cannot test foreign snprintf
...
...
@@ -7727,7 +7760,7 @@ echo "configure:7722: checking whether snprintf handles 'long long int' as %qd"
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 77
31
"configure"
#line 77
64
"configure"
#include "confdefs.h"
#include <stdio.h>
typedef long long int int64;
...
...
@@ -7754,7 +7787,7 @@ main() {
exit(! does_int64_snprintf_work());
}
EOF
if
{
(
eval echo
configure:77
58
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:77
91
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
echo
"
$ac_t
""yes"
1>&6
INT64_FORMAT
=
'"%qd"'
...
...
@@ -7794,12 +7827,12 @@ EOF
for
ac_func
in
strtoll strtoq
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:7
798
: checking for
$ac_func
"
>
&5
echo
"configure:7
831
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 78
03
"configure"
#line 78
36
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -7822,7 +7855,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:78
26
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:78
59
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -7849,12 +7882,12 @@ done
for
ac_func
in
strtoull strtouq
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:78
53
: checking for
$ac_func
"
>
&5
echo
"configure:78
86
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 78
58
"configure"
#line 78
91
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -7877,7 +7910,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:7
881
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:7
914
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -7903,12 +7936,12 @@ done
echo
$ac_n
"checking for atexit""...
$ac_c
"
1>&6
echo
"configure:79
07
: checking for atexit"
>
&5
echo
"configure:79
40
: checking for atexit"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_atexit
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 79
12
"configure"
#line 79
45
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char atexit(); below. */
...
...
@@ -7931,7 +7964,7 @@ atexit();
; return 0; }
EOF
if
{
(
eval echo
configure:79
35
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:79
68
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_atexit=yes"
else
...
...
@@ -7954,12 +7987,12 @@ else
for
ac_func
in
on_exit
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:79
58
: checking for
$ac_func
"
>
&5
echo
"configure:79
91
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 79
63
"configure"
#line 79
96
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -7982,7 +8015,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:
7986
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:
8019
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -8015,7 +8048,7 @@ fi
echo
$ac_n
"checking size of unsigned long""...
$ac_c
"
1>&6
echo
"configure:80
19
: checking size of unsigned long"
>
&5
echo
"configure:80
52
: checking size of unsigned long"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_sizeof_unsigned_long
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8023,7 +8056,7 @@ else
ac_cv_sizeof_unsigned_long
=
4
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 80
27
"configure"
#line 80
60
"configure"
#include "confdefs.h"
#include <stdio.h>
main()
...
...
@@ -8034,7 +8067,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:80
38
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:80
71
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_sizeof_unsigned_long
=
`
cat
conftestval
`
else
...
...
@@ -8060,7 +8093,7 @@ EOF
echo
$ac_n
"checking alignment of short""...
$ac_c
"
1>&6
echo
"configure:80
64
: checking alignment of short"
>
&5
echo
"configure:80
97
: checking alignment of short"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_alignof_short
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8068,7 +8101,7 @@ else
pgac_cv_alignof_short
=
'sizeof(short)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 8
072
"configure"
#line 8
105
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; short field; } mystruct;
...
...
@@ -8080,7 +8113,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:8
084
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:8
117
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
pgac_cv_alignof_short
=
`
cat
conftestval
`
else
...
...
@@ -8100,7 +8133,7 @@ EOF
echo
$ac_n
"checking alignment of int""...
$ac_c
"
1>&6
echo
"configure:81
04
: checking alignment of int"
>
&5
echo
"configure:81
37
: checking alignment of int"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_alignof_int
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8108,7 +8141,7 @@ else
pgac_cv_alignof_int
=
'sizeof(int)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 81
12
"configure"
#line 81
45
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; int field; } mystruct;
...
...
@@ -8120,7 +8153,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:81
24
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:81
57
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
pgac_cv_alignof_int
=
`
cat
conftestval
`
else
...
...
@@ -8140,7 +8173,7 @@ EOF
echo
$ac_n
"checking alignment of long""...
$ac_c
"
1>&6
echo
"configure:81
44
: checking alignment of long"
>
&5
echo
"configure:81
77
: checking alignment of long"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_alignof_long
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8148,7 +8181,7 @@ else
pgac_cv_alignof_long
=
'sizeof(long)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 81
52
"configure"
#line 81
85
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; long field; } mystruct;
...
...
@@ -8160,7 +8193,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:81
64
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:81
97
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
pgac_cv_alignof_long
=
`
cat
conftestval
`
else
...
...
@@ -8181,7 +8214,7 @@ EOF
if
[
x
"
$HAVE_LONG_LONG_INT_64
"
=
xyes
]
;
then
echo
$ac_n
"checking alignment of long long int""...
$ac_c
"
1>&6
echo
"configure:8
185
: checking alignment of long long int"
>
&5
echo
"configure:8
218
: checking alignment of long long int"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_alignof_long_long_int
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8189,7 +8222,7 @@ else
pgac_cv_alignof_long_long_int
=
'sizeof(long long int)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 8
193
"configure"
#line 8
226
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; long long int field; } mystruct;
...
...
@@ -8201,7 +8234,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:82
05
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:82
38
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
pgac_cv_alignof_long_long_int
=
`
cat
conftestval
`
else
...
...
@@ -8222,7 +8255,7 @@ EOF
fi
echo
$ac_n
"checking alignment of double""...
$ac_c
"
1>&6
echo
"configure:82
26
: checking alignment of double"
>
&5
echo
"configure:82
59
: checking alignment of double"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_alignof_double
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8230,7 +8263,7 @@ else
pgac_cv_alignof_double
=
'sizeof(double)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 82
34
"configure"
#line 82
67
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; double field; } mystruct;
...
...
@@ -8242,7 +8275,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:82
46
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:82
79
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
pgac_cv_alignof_double
=
`
cat
conftestval
`
else
...
...
@@ -8280,12 +8313,12 @@ EOF
echo
$ac_n
"checking for POSIX signal interface""...
$ac_c
"
1>&6
echo
"configure:8
284
: checking for POSIX signal interface"
>
&5
echo
"configure:8
317
: checking for POSIX signal interface"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_func_posix_signals
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 8
289
"configure"
#line 8
322
"configure"
#include "confdefs.h"
#include <signal.h>
...
...
@@ -8296,7 +8329,7 @@ act.sa_flags = SA_RESTART;
sigaction(0, &act, &oact);
; return 0; }
EOF
if
{
(
eval echo
configure:83
00
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:83
33
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
pgac_cv_func_posix_signals
=
yes
else
...
...
@@ -8326,7 +8359,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:83
30
: checking for
$ac_word
"
>
&5
echo
"configure:83
63
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_TCLSH
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8362,7 +8395,7 @@ test -n "$TCLSH" && break
done
echo
$ac_n
"checking for tclConfig.sh""...
$ac_c
"
1>&6
echo
"configure:83
66
: checking for tclConfig.sh"
>
&5
echo
"configure:83
99
: checking for tclConfig.sh"
>
&5
# Let user override test
if
test
-z
"
$TCL_CONFIG_SH
"
;
then
pgac_test_dirs
=
"
$with_tclconfig
"
...
...
@@ -8395,7 +8428,7 @@ fi
# Check for Tk configuration script tkConfig.sh
if
test
"
$with_tk
"
=
yes
;
then
echo
$ac_n
"checking for tkConfig.sh""...
$ac_c
"
1>&6
echo
"configure:8
399
: checking for tkConfig.sh"
>
&5
echo
"configure:8
432
: checking for tkConfig.sh"
>
&5
# Let user override test
if
test
-z
"
$TK_CONFIG_SH
"
;
then
pgac_test_dirs
=
"
$with_tkconfig
$with_tclconfig
"
...
...
@@ -8434,7 +8467,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:84
38
: checking for
$ac_word
"
>
&5
echo
"configure:84
71
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_NSGMLS
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8470,7 +8503,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:8
474
: checking for
$ac_word
"
>
&5
echo
"configure:8
507
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_JADE
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8501,7 +8534,7 @@ done
echo
$ac_n
"checking for DocBook V3.1""...
$ac_c
"
1>&6
echo
"configure:85
05
: checking for DocBook V3.1"
>
&5
echo
"configure:85
38
: checking for DocBook V3.1"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_check_docbook
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8534,7 +8567,7 @@ have_docbook=$pgac_cv_check_docbook
echo
$ac_n
"checking for DocBook stylesheets""...
$ac_c
"
1>&6
echo
"configure:85
38
: checking for DocBook stylesheets"
>
&5
echo
"configure:85
71
: checking for DocBook stylesheets"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_path_stylesheets
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8573,7 +8606,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:8
577
: checking for
$ac_word
"
>
&5
echo
"configure:8
610
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_SGMLSPL
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
configure.in
浏览文件 @
379268aa
...
...
@@ -985,6 +985,15 @@ if test x"$pgac_cv_var_int_optreset" = x"yes"; then
AC_DEFINE(HAVE_INT_OPTRESET, 1)
fi
AC_CACHE_CHECK([for __getopt_initialized], pgac_cv_var_int___getopt_initialized,
[AC_TRY_LINK([#include <unistd.h>],
[extern int __getopt_initialized; __getopt_initialized = 1;],
[pgac_cv_var_int___getopt_initialized=yes],
[pgac_cv_var_int___getopt_initialized=no])])
if test x"$pgac_cv_var_int___getopt_initialized" = x"yes"; then
AC_DEFINE(HAVE_INT___GETOPT_INITIALIZED, 1)
fi
# This test makes sure that run tests work at all. Sometimes a shared
# library is found by the linker, but the runtime linker can't find it.
...
...
src/backend/postmaster/postmaster.c
浏览文件 @
379268aa
...
...
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.24
8 2001/10/19 18:19:41
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.24
9 2001/10/19 20:47:09
tgl Exp $
*
* NOTES
*
...
...
@@ -228,6 +228,9 @@ extern int optind,
#ifdef HAVE_INT_OPTRESET
extern
int
optreset
;
#endif
#ifdef HAVE_INT___GETOPT_INITIALIZED
extern
int
__getopt_initialized
;
#endif
/*
* postmaster.c - function prototypes
...
...
@@ -355,7 +358,6 @@ PostmasterMain(int argc, char *argv[])
}
}
/*
* for security, no dir or file created can be group or other
* accessible
...
...
@@ -422,12 +424,13 @@ PostmasterMain(int argc, char *argv[])
}
/*
*
Non-option switch arguments don't exist
.
*
Postmaster accepts no non-option switch arguments
.
*/
if
(
optind
<
argc
)
{
postmaster_error
(
"invalid argument -- %s"
,
argv
[
optind
]);
fprintf
(
stderr
,
gettext
(
"Try '%s --help' for more information.
\n
"
),
progname
);
fprintf
(
stderr
,
gettext
(
"Try '%s --help' for more information.
\n
"
),
progname
);
ExitPostmaster
(
1
);
}
...
...
@@ -438,10 +441,15 @@ PostmasterMain(int argc, char *argv[])
IgnoreSystemIndexes
(
false
);
optind
=
1
;
/* start over (should be redundant here) */
/* reset getopt(3) to rescan arguments */
optind
=
1
;
#ifdef HAVE_INT_OPTRESET
optreset
=
1
;
optreset
=
1
;
/* some systems need this */
#endif
#ifdef HAVE_INT___GETOPT_INITIALIZED
__getopt_initialized
=
0
;
/* glibc needs this */
#endif
while
((
opt
=
getopt
(
argc
,
argv
,
"A:a:B:b:c:D:d:Fh:ik:lm:MN:no:p:Ss-:"
))
!=
EOF
)
{
switch
(
opt
)
...
...
@@ -584,6 +592,20 @@ PostmasterMain(int argc, char *argv[])
ExitPostmaster
(
1
);
}
/*
* Now that we are done processing the postmaster arguments,
* reset getopt(3) library so that it will work correctly in
* subprocesses.
*/
optind
=
1
;
#ifdef HAVE_INT_OPTRESET
optreset
=
1
;
/* some systems need this */
#endif
#ifdef HAVE_INT___GETOPT_INITIALIZED
__getopt_initialized
=
0
;
/* glibc needs this */
#endif
/* For debugging: display postmaster environment */
if
(
DebugLvl
>
2
)
{
extern
char
**
environ
;
...
...
@@ -2179,11 +2201,6 @@ DoBackend(Port *port)
av
[
ac
]
=
(
char
*
)
NULL
;
optind
=
1
;
/* reset getopt(3) for subprocess */
#ifdef HAVE_INT_OPTRESET
optreset
=
1
;
#endif
/*
* Release postmaster's working memory context so that backend can
* recycle the space. Note this does not trash *MyProcPort, because
...
...
@@ -2473,11 +2490,6 @@ SSDataBase(int xlop)
av
[
ac
]
=
(
char
*
)
NULL
;
optind
=
1
;
/* reset getopt(3) for subprocess */
#ifdef HAVE_INT_OPTRESET
optreset
=
1
;
#endif
BootstrapMain
(
ac
,
av
);
ExitPostmaster
(
0
);
}
...
...
src/include/pg_config.h.in
浏览文件 @
379268aa
...
...
@@ -8,7 +8,7 @@
* or in pg_config.h afterwards. Of course, if you edit pg_config.h, then your
* changes will be overwritten the next time you run configure.
*
* $Id: pg_config.h.in,v 1.
9 2001/10/13 04:23:50 momjian
Exp $
* $Id: pg_config.h.in,v 1.
10 2001/10/19 20:47:09 tgl
Exp $
*/
#ifndef PG_CONFIG_H
...
...
@@ -667,6 +667,9 @@ extern int fdatasync(int fildes);
/* Define if you have the optreset variable */
#undef HAVE_INT_OPTRESET
/* Define if you have the __getopt_initialized variable */
#undef HAVE_INT___GETOPT_INITIALIZED
/* Define if you have strtoll() */
#undef HAVE_STRTOLL
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录