Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
df247b82
Commit
df247b82
authored
Feb 27, 2001
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Massive commits for SunOS4 port.
parent
919ace07
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
339 additions
and
148 deletions
+339
-148
configure
configure
+252
-126
configure.in
configure.in
+9
-0
src/Makefile.global.in
src/Makefile.global.in
+2
-1
src/Makefile.shlib
src/Makefile.shlib
+6
-1
src/backend/utils/adt/formatting.c
src/backend/utils/adt/formatting.c
+5
-5
src/bin/pg_dump/Makefile
src/bin/pg_dump/Makefile
+16
-5
src/bin/pg_dump/pg_restore.c
src/bin/pg_dump/pg_restore.c
+6
-1
src/bin/pg_id/pg_id.c
src/bin/pg_id/pg_id.c
+10
-2
src/bin/psql/Makefile
src/bin/psql/Makefile
+8
-1
src/bin/psql/input.c
src/bin/psql/input.c
+5
-1
src/bin/psql/print.c
src/bin/psql/print.c
+3
-1
src/bin/psql/stringutils.c
src/bin/psql/stringutils.c
+2
-1
src/include/config.h.in
src/include/config.h.in
+9
-1
src/interfaces/ecpg/preproc/ecpg.c
src/interfaces/ecpg/preproc/ecpg.c
+3
-0
src/makefiles/Makefile.sunos4
src/makefiles/Makefile.sunos4
+3
-2
No files found.
configure
View file @
df247b82
...
...
@@ -2641,7 +2641,7 @@ INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
for
ac_prog
in
mawk g
awk nawk
awk
for
ac_prog
in
gawk m
awk nawk
awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
...
...
@@ -4999,7 +4999,7 @@ else
int main() {
/* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x;
typedef int charset[2]; const charset x
={0,0}
;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
...
...
@@ -5074,7 +5074,7 @@ for ac_kw in inline __inline__ __inline; do
#include "confdefs.h"
int main() {
}
$ac_kw
foo() {
}
$ac_kw
int
foo() {
; return 0; }
EOF
if
{
(
eval echo
configure:5081:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
...
...
@@ -5587,13 +5587,29 @@ fi
rm
-f
conftest
*
cat
>
conftest.
$ac_ext
<<
EOF
#line 5592 "configure"
#include "confdefs.h"
#include <unistd.h>
EOF
if
(
eval
"
$ac_cpp
conftest.
$ac_ext
"
)
2>&5 |
egrep
"optarg"
>
/dev/null 2>&1
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_OPTARG_DECL 1
EOF
fi
rm
-f
conftest
*
echo
$ac_n
"checking for PS_STRINGS""...
$ac_c
"
1>&6
echo
"configure:5
592
: checking for PS_STRINGS"
>
&5
echo
"configure:5
608
: checking for PS_STRINGS"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_var_PS_STRINGS
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
597
"configure"
#line 5
613
"configure"
#include "confdefs.h"
#include <machine/vmparam.h>
#include <sys/exec.h>
...
...
@@ -5603,7 +5619,7 @@ PS_STRINGS->ps_nargvstr = 1;
PS_STRINGS->ps_argvstr = "foo";
; return 0; }
EOF
if
{
(
eval echo
configure:56
07
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:56
23
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
pgac_cv_var_PS_STRINGS
=
yes
else
...
...
@@ -5625,12 +5641,12 @@ fi
SNPRINTF
=
''
echo
$ac_n
"checking for snprintf""...
$ac_c
"
1>&6
echo
"configure:56
29
: checking for snprintf"
>
&5
echo
"configure:56
45
: checking for snprintf"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_snprintf
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 56
34
"configure"
#line 56
50
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char snprintf(); below. */
...
...
@@ -5653,7 +5669,7 @@ snprintf();
; return 0; }
EOF
if
{
(
eval echo
configure:56
57
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:56
73
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_snprintf=yes"
else
...
...
@@ -5677,12 +5693,12 @@ SNPRINTF='snprintf.o'
fi
echo
$ac_n
"checking for vsnprintf""...
$ac_c
"
1>&6
echo
"configure:56
81
: checking for vsnprintf"
>
&5
echo
"configure:56
97
: checking for vsnprintf"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_vsnprintf
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
686
"configure"
#line 5
702
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vsnprintf(); below. */
...
...
@@ -5705,7 +5721,7 @@ vsnprintf();
; return 0; }
EOF
if
{
(
eval echo
configure:57
09
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:57
25
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_vsnprintf=yes"
else
...
...
@@ -5730,7 +5746,7 @@ fi
cat
>
conftest.
$ac_ext
<<
EOF
#line 57
34
"configure"
#line 57
50
"configure"
#include "confdefs.h"
#include <stdio.h>
EOF
...
...
@@ -5745,7 +5761,7 @@ fi
rm
-f
conftest
*
cat
>
conftest.
$ac_ext
<<
EOF
#line 57
49
"configure"
#line 57
65
"configure"
#include "confdefs.h"
#include <stdio.h>
EOF
...
...
@@ -5762,12 +5778,12 @@ rm -f conftest*
# do this one the hard way in case isinf() is a macro
echo
$ac_n
"checking for isinf""...
$ac_c
"
1>&6
echo
"configure:57
66
: checking for isinf"
>
&5
echo
"configure:57
82
: checking for isinf"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_isinf
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 57
71
"configure"
#line 57
87
"configure"
#include "confdefs.h"
#include <math.h>
...
...
@@ -5775,7 +5791,7 @@ int main() {
double x = 0.0; int res = isinf(x);
; return 0; }
EOF
if
{
(
eval echo
configure:57
79
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:57
95
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_func_isinf
=
yes
else
...
...
@@ -5801,12 +5817,12 @@ else
for
ac_func
in
fpclass fp_class fp_class_d class
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:58
05
: checking for
$ac_func
"
>
&5
echo
"configure:58
21
: 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 58
10
"configure"
#line 58
26
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -5829,7 +5845,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:58
33
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:58
49
:
\"
$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
...
...
@@ -5857,12 +5873,12 @@ fi
echo
$ac_n
"checking for getrusage""...
$ac_c
"
1>&6
echo
"configure:58
61
: checking for getrusage"
>
&5
echo
"configure:58
77
: checking for getrusage"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_getrusage
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 58
66
"configure"
#line 58
82
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getrusage(); below. */
...
...
@@ -5885,7 +5901,7 @@ getrusage();
; return 0; }
EOF
if
{
(
eval echo
configure:5
889
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
905
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_getrusage=yes"
else
...
...
@@ -5910,12 +5926,12 @@ fi
echo
$ac_n
"checking for srandom""...
$ac_c
"
1>&6
echo
"configure:59
14
: checking for srandom"
>
&5
echo
"configure:59
30
: checking for srandom"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_srandom
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 59
19
"configure"
#line 59
35
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char srandom(); below. */
...
...
@@ -5938,7 +5954,7 @@ srandom();
; return 0; }
EOF
if
{
(
eval echo
configure:59
42
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:59
58
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_srandom=yes"
else
...
...
@@ -5963,12 +5979,12 @@ fi
echo
$ac_n
"checking for gethostname""...
$ac_c
"
1>&6
echo
"configure:59
67
: checking for gethostname"
>
&5
echo
"configure:59
83
: checking for gethostname"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_gethostname
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 59
72
"configure"
#line 59
88
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gethostname(); below. */
...
...
@@ -5991,7 +6007,7 @@ gethostname();
; return 0; }
EOF
if
{
(
eval echo
configure:
5995
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:
6011
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_gethostname=yes"
else
...
...
@@ -6016,12 +6032,12 @@ fi
echo
$ac_n
"checking for random""...
$ac_c
"
1>&6
echo
"configure:60
20
: checking for random"
>
&5
echo
"configure:60
36
: checking for random"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_random
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 60
25
"configure"
#line 60
41
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char random(); below. */
...
...
@@ -6044,7 +6060,7 @@ random();
; return 0; }
EOF
if
{
(
eval echo
configure:60
48
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:60
64
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_random=yes"
else
...
...
@@ -6069,12 +6085,12 @@ fi
echo
$ac_n
"checking for inet_aton""...
$ac_c
"
1>&6
echo
"configure:60
73
: checking for inet_aton"
>
&5
echo
"configure:60
89
: checking for inet_aton"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_inet_aton
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 60
78
"configure"
#line 60
94
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); below. */
...
...
@@ -6097,7 +6113,7 @@ inet_aton();
; return 0; }
EOF
if
{
(
eval echo
configure:61
01
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:61
17
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_inet_aton=yes"
else
...
...
@@ -6122,12 +6138,12 @@ fi
echo
$ac_n
"checking for strerror""...
$ac_c
"
1>&6
echo
"configure:61
26
: checking for strerror"
>
&5
echo
"configure:61
42
: checking for strerror"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strerror
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 61
31
"configure"
#line 61
47
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strerror(); below. */
...
...
@@ -6150,7 +6166,7 @@ strerror();
; return 0; }
EOF
if
{
(
eval echo
configure:61
54
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:61
70
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strerror=yes"
else
...
...
@@ -6175,12 +6191,12 @@ fi
echo
$ac_n
"checking for strdup""...
$ac_c
"
1>&6
echo
"configure:61
79
: checking for strdup"
>
&5
echo
"configure:61
95
: checking for strdup"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strdup
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
184
"configure"
#line 6
200
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strdup(); below. */
...
...
@@ -6203,7 +6219,7 @@ strdup();
; return 0; }
EOF
if
{
(
eval echo
configure:62
07
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:62
23
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strdup=yes"
else
...
...
@@ -6228,12 +6244,12 @@ fi
echo
$ac_n
"checking for strtol""...
$ac_c
"
1>&6
echo
"configure:62
32
: checking for strtol"
>
&5
echo
"configure:62
48
: checking for strtol"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strtol
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 62
37
"configure"
#line 62
53
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strtol(); below. */
...
...
@@ -6256,7 +6272,7 @@ strtol();
; return 0; }
EOF
if
{
(
eval echo
configure:62
60
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:62
76
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strtol=yes"
else
...
...
@@ -6281,12 +6297,12 @@ fi
echo
$ac_n
"checking for strtoul""...
$ac_c
"
1>&6
echo
"configure:6
285
: checking for strtoul"
>
&5
echo
"configure:6
301
: checking for strtoul"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strtoul
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
290
"configure"
#line 6
306
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strtoul(); below. */
...
...
@@ -6309,7 +6325,7 @@ strtoul();
; return 0; }
EOF
if
{
(
eval echo
configure:63
13
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:63
29
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strtoul=yes"
else
...
...
@@ -6334,12 +6350,12 @@ fi
echo
$ac_n
"checking for strcasecmp""...
$ac_c
"
1>&6
echo
"configure:63
38
: checking for strcasecmp"
>
&5
echo
"configure:63
54
: checking for strcasecmp"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_strcasecmp
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 63
43
"configure"
#line 63
59
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strcasecmp(); below. */
...
...
@@ -6362,7 +6378,7 @@ strcasecmp();
; return 0; }
EOF
if
{
(
eval echo
configure:63
66
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:63
82
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strcasecmp=yes"
else
...
...
@@ -6387,12 +6403,12 @@ fi
echo
$ac_n
"checking for cbrt""...
$ac_c
"
1>&6
echo
"configure:6
391
: checking for cbrt"
>
&5
echo
"configure:6
407
: checking for cbrt"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_cbrt
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
396
"configure"
#line 6
412
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char cbrt(); below. */
...
...
@@ -6415,7 +6431,7 @@ cbrt();
; return 0; }
EOF
if
{
(
eval echo
configure:64
19
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:64
35
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_cbrt=yes"
else
...
...
@@ -6436,7 +6452,7 @@ EOF
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for cbrt in -lm""...
$ac_c
"
1>&6
echo
"configure:64
40
: checking for cbrt in -lm"
>
&5
echo
"configure:64
56
: checking for cbrt in -lm"
>
&5
ac_lib_var
=
`
echo
m
'_'
cbrt |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -6444,7 +6460,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 64
48
"configure"
#line 64
64
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -6455,7 +6471,7 @@ int main() {
cbrt()
; return 0; }
EOF
if
{
(
eval echo
configure:64
59
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:64
75
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -6493,12 +6509,12 @@ esac
echo
$ac_n
"checking for rint""...
$ac_c
"
1>&6
echo
"configure:6
497
: checking for rint"
>
&5
echo
"configure:6
513
: checking for rint"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_rint
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 65
02
"configure"
#line 65
18
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char rint(); below. */
...
...
@@ -6521,7 +6537,7 @@ rint();
; return 0; }
EOF
if
{
(
eval echo
configure:65
25
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:65
41
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_rint=yes"
else
...
...
@@ -6542,7 +6558,7 @@ EOF
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for rint in -lm""...
$ac_c
"
1>&6
echo
"configure:65
46
: checking for rint in -lm"
>
&5
echo
"configure:65
62
: checking for rint in -lm"
>
&5
ac_lib_var
=
`
echo
m
'_'
rint |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -6550,7 +6566,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$HPUXMATHLIB
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 65
54
"configure"
#line 65
70
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -6561,7 +6577,7 @@ int main() {
rint()
; return 0; }
EOF
if
{
(
eval echo
configure:65
65
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:65
81
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -6590,9 +6606,9 @@ fi
# Readline versions < 2.1 don't have rl_completion_append_character
echo
$ac_n
"checking for rl_completion_append_character""...
$ac_c
"
1>&6
echo
"configure:6
594
: checking for rl_completion_append_character"
>
&5
echo
"configure:6
610
: checking for rl_completion_append_character"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
596
"configure"
#line 6
612
"configure"
#include "confdefs.h"
#include <stdio.h>
#ifdef HAVE_READLINE_H
...
...
@@ -6605,7 +6621,7 @@ int main() {
rl_completion_append_character = 'x';
; return 0; }
EOF
if
{
(
eval echo
configure:66
09
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:66
25
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
echo
"
$ac_t
""yes"
1>&6
cat
>>
confdefs.h
<<
\
EOF
...
...
@@ -6626,7 +6642,7 @@ rm -f conftest*
# with earlier Cygwins don't have this declared, although it's in the
# library.
echo
$ac_n
"checking whether filename_completion_function is declared""...
$ac_c
"
1>&6
echo
"configure:66
30
: checking whether filename_completion_function is declared"
>
&5
echo
"configure:66
46
: checking whether filename_completion_function is declared"
>
&5
if
test
"
$ac_cv_header_readline_h
"
=
yes
;
then
_readline_header
=
'readline.h'
elif
test
"
$ac_cv_header_readline_readline_h
"
=
yes
;
then
...
...
@@ -6635,7 +6651,7 @@ else
_readline_header
=
'xxx'
fi
cat
>
conftest.
$ac_ext
<<
EOF
#line 66
39
"configure"
#line 66
55
"configure"
#include "confdefs.h"
#include <
$_readline_header
>
EOF
...
...
@@ -6657,16 +6673,16 @@ rm -f conftest*
echo
$ac_n
"checking for finite""...
$ac_c
"
1>&6
echo
"configure:66
61
: checking for finite"
>
&5
echo
"configure:66
77
: checking for finite"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 66
63
"configure"
#line 66
79
"configure"
#include "confdefs.h"
#include <math.h>
int main() {
int dummy=finite(1.0);
; return 0; }
EOF
if
{
(
eval echo
configure:66
70
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:66
86
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_FINITE 1
...
...
@@ -6681,16 +6697,16 @@ fi
rm
-f
conftest
*
echo
$ac_n
"checking for sigsetjmp""...
$ac_c
"
1>&6
echo
"configure:6
685
: checking for sigsetjmp"
>
&5
echo
"configure:6
701
: checking for sigsetjmp"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
687
"configure"
#line 6
703
"configure"
#include "confdefs.h"
#include <setjmp.h>
int main() {
sigjmp_buf x; sigsetjmp(x, 1);
; return 0; }
EOF
if
{
(
eval echo
configure:6
694
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:6
710
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_SIGSETJMP 1
...
...
@@ -6710,12 +6726,12 @@ if test x"${enable_syslog+set}" = xset; then
case
$enable_syslog
in
yes
)
echo
$ac_n
"checking for syslog""...
$ac_c
"
1>&6
echo
"configure:67
14
: checking for syslog"
>
&5
echo
"configure:67
30
: checking for syslog"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_syslog
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 67
19
"configure"
#line 67
35
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char syslog(); below. */
...
...
@@ -6738,7 +6754,7 @@ syslog();
; return 0; }
EOF
if
{
(
eval echo
configure:67
42
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:67
58
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_syslog=yes"
else
...
...
@@ -6777,19 +6793,19 @@ fi
echo
$ac_n
"checking for optreset""...
$ac_c
"
1>&6
echo
"configure:67
81
: checking for optreset"
>
&5
echo
"configure:67
97
: checking for optreset"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_var_int_optreset
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
786
"configure"
#line 6
802
"configure"
#include "confdefs.h"
#include <unistd.h>
int main() {
extern int optreset; optreset = 1;
; return 0; }
EOF
if
{
(
eval echo
configure:6
793
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:6
809
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
pgac_cv_var_int_optreset
=
yes
else
...
...
@@ -6811,7 +6827,7 @@ fi
echo
$ac_n
"checking whether long int is 64 bits""...
$ac_c
"
1>&6
echo
"configure:68
15
: checking whether long int is 64 bits"
>
&5
echo
"configure:68
31
: 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
...
...
@@ -6820,7 +6836,7 @@ else
echo
"configure: warning: 64 bit arithmetic disabled when cross-compiling"
1>&2
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 68
24
"configure"
#line 68
40
"configure"
#include "confdefs.h"
typedef long int int64;
...
...
@@ -6849,7 +6865,7 @@ main() {
exit(! does_int64_work());
}
EOF
if
{
(
eval echo
configure:68
53
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:68
69
:
\"
$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
...
...
@@ -6876,7 +6892,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:68
80
: checking whether long long int is 64 bits"
>
&5
echo
"configure:68
96
: 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
...
...
@@ -6885,7 +6901,7 @@ else
echo
"configure: warning: 64 bit arithmetic disabled when cross-compiling"
1>&2
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
889
"configure"
#line 6
905
"configure"
#include "confdefs.h"
typedef long long int int64;
...
...
@@ -6914,7 +6930,7 @@ main() {
exit(! does_int64_work());
}
EOF
if
{
(
eval echo
configure:69
18
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:69
34
:
\"
$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
...
...
@@ -6945,7 +6961,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:69
49
: checking whether snprintf handles 'long long int' as %lld"
>
&5
echo
"configure:69
65
: 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
...
...
@@ -6954,7 +6970,7 @@ echo "configure:6949: checking whether snprintf handles 'long long int' as %lld"
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 69
58
"configure"
#line 69
74
"configure"
#include "confdefs.h"
#include <stdio.h>
typedef long long int int64;
...
...
@@ -6981,7 +6997,7 @@ main() {
exit(! does_int64_snprintf_work());
}
EOF
if
{
(
eval echo
configure:
6985
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:
7001
:
\"
$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"'
...
...
@@ -6992,7 +7008,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:
6996
: checking whether snprintf handles 'long long int' as %qd"
>
&5
echo
"configure:
7012
: 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
...
...
@@ -7001,7 +7017,7 @@ echo "configure:6996: checking whether snprintf handles 'long long int' as %qd"
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 70
05
"configure"
#line 70
21
"configure"
#include "confdefs.h"
#include <stdio.h>
typedef long long int int64;
...
...
@@ -7028,7 +7044,7 @@ main() {
exit(! does_int64_snprintf_work());
}
EOF
if
{
(
eval echo
configure:70
32
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:70
48
:
\"
$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"'
...
...
@@ -7068,12 +7084,12 @@ EOF
for
ac_func
in
strtoll strtoq
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:70
72
: checking for
$ac_func
"
>
&5
echo
"configure:70
88
: 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 70
77
"configure"
#line 70
93
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -7096,7 +7112,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:71
00
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:71
16
:
\"
$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
...
...
@@ -7123,12 +7139,12 @@ done
for
ac_func
in
strtoull strtouq
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:71
27
: checking for
$ac_func
"
>
&5
echo
"configure:71
43
: 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 71
32
"configure"
#line 71
48
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -7151,7 +7167,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:71
55
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:71
71
:
\"
$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
...
...
@@ -7176,10 +7192,120 @@ fi
done
echo
$ac_n
"checking for atexit""...
$ac_c
"
1>&6
echo
"configure:7197: 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 7202 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char atexit(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char atexit();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_atexit) || defined (__stub___atexit)
choke me
#else
atexit();
#endif
; return 0; }
EOF
if
{
(
eval echo
configure:7225:
\"
$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
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_func_atexit=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
atexit
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_ATEXIT 1
EOF
else
echo
"
$ac_t
""no"
1>&6
for
ac_func
in
on_exit
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:7248: 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 7253 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char
$ac_func
();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_
$ac_func
) || defined (__stub___
$ac_func
)
choke me
#else
$ac_func
();
#endif
; return 0; }
EOF
if
{
(
eval echo
configure:7276:
\"
$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
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
$ac_func
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
ac_tr_func
=
HAVE_
`
echo
$ac_func
|
tr
'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
`
cat
>>
confdefs.h
<<
EOF
#define
$ac_tr_func
1
EOF
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_ON_EXIT 1
EOF
else
echo
"
$ac_t
""no"
1>&6
{
echo
"configure: error: atexi() nor on_exit() found"
1>&2
;
exit
1
;
}
fi
done
fi
echo
$ac_n
"checking size of unsigned long""...
$ac_c
"
1>&6
echo
"configure:7
183
: checking size of unsigned long"
>
&5
echo
"configure:7
309
: 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
...
...
@@ -7187,7 +7313,7 @@ else
ac_cv_sizeof_unsigned_long
=
4
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
191
"configure"
#line 7
317
"configure"
#include "confdefs.h"
#include <stdio.h>
main()
...
...
@@ -7198,7 +7324,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:7
202
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:7
328
:
\"
$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
...
...
@@ -7224,7 +7350,7 @@ EOF
echo
$ac_n
"checking alignment of short""...
$ac_c
"
1>&6
echo
"configure:7
228
: checking alignment of short"
>
&5
echo
"configure:7
354
: 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
...
...
@@ -7232,7 +7358,7 @@ else
pgac_cv_alignof_short
=
'sizeof(short)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
236
"configure"
#line 7
362
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; short field; } mystruct;
...
...
@@ -7244,7 +7370,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:7
248
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:7
374
:
\"
$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
...
...
@@ -7264,7 +7390,7 @@ EOF
echo
$ac_n
"checking alignment of int""...
$ac_c
"
1>&6
echo
"configure:7
268
: checking alignment of int"
>
&5
echo
"configure:7
394
: 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
...
...
@@ -7272,7 +7398,7 @@ else
pgac_cv_alignof_int
=
'sizeof(int)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
276
"configure"
#line 7
402
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; int field; } mystruct;
...
...
@@ -7284,7 +7410,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:7
288
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:7
414
:
\"
$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
...
...
@@ -7304,7 +7430,7 @@ EOF
echo
$ac_n
"checking alignment of long""...
$ac_c
"
1>&6
echo
"configure:7
308
: checking alignment of long"
>
&5
echo
"configure:7
434
: 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
...
...
@@ -7312,7 +7438,7 @@ else
pgac_cv_alignof_long
=
'sizeof(long)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
316
"configure"
#line 7
442
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; long field; } mystruct;
...
...
@@ -7324,7 +7450,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:7
328
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:7
454
:
\"
$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
...
...
@@ -7345,7 +7471,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:7
349
: checking alignment of long long int"
>
&5
echo
"configure:7
475
: 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
...
...
@@ -7353,7 +7479,7 @@ else
pgac_cv_alignof_long_long_int
=
'sizeof(long long int)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
357
"configure"
#line 7
483
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; long long int field; } mystruct;
...
...
@@ -7365,7 +7491,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:7
369
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:7
495
:
\"
$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
...
...
@@ -7386,7 +7512,7 @@ EOF
fi
echo
$ac_n
"checking alignment of double""...
$ac_c
"
1>&6
echo
"configure:7
390
: checking alignment of double"
>
&5
echo
"configure:7
516
: 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
...
...
@@ -7394,7 +7520,7 @@ else
pgac_cv_alignof_double
=
'sizeof(double)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
398
"configure"
#line 7
524
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; double field; } mystruct;
...
...
@@ -7406,7 +7532,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:7
410
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:7
536
:
\"
$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
...
...
@@ -7444,12 +7570,12 @@ EOF
echo
$ac_n
"checking for POSIX signal interface""...
$ac_c
"
1>&6
echo
"configure:7
448
: checking for POSIX signal interface"
>
&5
echo
"configure:7
574
: 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 7
453
"configure"
#line 7
579
"configure"
#include "confdefs.h"
#include <signal.h>
...
...
@@ -7460,7 +7586,7 @@ act.sa_flags = SA_RESTART;
sigaction(0, &act, &oact);
; return 0; }
EOF
if
{
(
eval echo
configure:7
464
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:7
590
:
\"
$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
...
...
@@ -7490,7 +7616,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:7
494
: checking for
$ac_word
"
>
&5
echo
"configure:7
620
: 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
...
...
@@ -7526,7 +7652,7 @@ test -n "$TCLSH" && break
done
echo
$ac_n
"checking for tclConfig.sh""...
$ac_c
"
1>&6
echo
"configure:7
530
: checking for tclConfig.sh"
>
&5
echo
"configure:7
656
: checking for tclConfig.sh"
>
&5
# Let user override test
if
test
-z
"
$TCL_CONFIG_SH
"
;
then
pgac_test_dirs
=
"
$with_tclconfig
"
...
...
@@ -7559,7 +7685,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:7
563
: checking for tkConfig.sh"
>
&5
echo
"configure:7
689
: checking for tkConfig.sh"
>
&5
# Let user override test
if
test
-z
"
$TK_CONFIG_SH
"
;
then
pgac_test_dirs
=
"
$with_tkconfig
$with_tclconfig
"
...
...
@@ -7598,7 +7724,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:7
602
: checking for
$ac_word
"
>
&5
echo
"configure:7
728
: 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
...
...
@@ -7634,7 +7760,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:7
638
: checking for
$ac_word
"
>
&5
echo
"configure:7
764
: 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
...
...
@@ -7665,7 +7791,7 @@ done
echo
$ac_n
"checking for DocBook V3.1""...
$ac_c
"
1>&6
echo
"configure:7
669
: checking for DocBook V3.1"
>
&5
echo
"configure:7
795
: 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
...
...
@@ -7698,7 +7824,7 @@ have_docbook=$pgac_cv_check_docbook
echo
$ac_n
"checking for DocBook stylesheets""...
$ac_c
"
1>&6
echo
"configure:7
702
: checking for DocBook stylesheets"
>
&5
echo
"configure:7
828
: 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
...
...
@@ -7737,7 +7863,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:7
741
: checking for
$ac_word
"
>
&5
echo
"configure:7
867
: 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
View file @
df247b82
...
...
@@ -777,6 +777,9 @@ AC_CHECK_FUNCS([fcvt getopt_long memmove pstat setproctitle setsid sigprocmask s
dnl Check whether <unistd.h> declares fdatasync().
AC_EGREP_HEADER(fdatasync, unistd.h, AC_DEFINE(HAVE_FDATASYNC_DECL))
dnl Check whether <unistd.h> declares optarg
AC_EGREP_HEADER(optarg, unistd.h, AC_DEFINE(HAVE_OPTARG_DECL))
AC_CACHE_CHECK([for PS_STRINGS], [pgac_cv_var_PS_STRINGS],
[AC_TRY_LINK(
[#include <machine/vmparam.h>
...
...
@@ -1073,6 +1076,12 @@ AC_DEFINE_UNQUOTED(INT64_FORMAT, $INT64_FORMAT)
AC_CHECK_FUNCS([strtoll strtoq], [break])
AC_CHECK_FUNCS([strtoull strtouq], [break])
dnl psql needs atexit() or on_exit()
AC_CHECK_FUNC(atexit,
[AC_DEFINE(HAVE_ATEXIT)],
[AC_CHECK_FUNCS(on_exit,
[AC_DEFINE(HAVE_ON_EXIT)],
[AC_MSG_ERROR([atexi() nor on_exit() found])])])
dnl Need a #define for the size of Datum (unsigned long)
...
...
src/Makefile.global.in
View file @
df247b82
# -*-makefile-*-
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.1
19 2001/02/20 19:20:28 petere
Exp $
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.1
20 2001/02/27 08:13:29 ishii
Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
...
...
@@ -288,6 +288,7 @@ INET_ATON = @INET_ATON@
STRERROR
=
@STRERROR@
SNPRINTF
=
@SNPRINTF@
STRDUP
=
@STRDUP@
STRTOUL
=
@STRTOUL@
##########################################################################
...
...
src/Makefile.shlib
View file @
df247b82
...
...
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.4
5 2001/02/20 19:20:28 petere
Exp $
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.4
6 2001/02/27 08:13:29 ishii
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -184,6 +184,11 @@ ifeq ($(PORTNAME), solaris)
SHLIB_LINK
+=
-lm
-lc
endif
ifeq
($(PORTNAME), sunos4)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LINK.shared
=
$(LD)
-assert
pure-text
-Bdynamic
endif
ifeq
($(PORTNAME), osf)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LINK.shared
=
$(LD)
-shared
-expect_unresolved
'*'
...
...
src/backend/utils/adt/formatting.c
View file @
df247b82
/* -----------------------------------------------------------------------
* formatting.c
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.3
2 2001/02/12 12:52:02 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.3
3 2001/02/27 08:13:28 ishii
Exp $
*
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
...
...
@@ -1398,7 +1398,7 @@ int4len(int4 num)
{
char
b
[
16
];
return
s
printf
(
b
,
"%d"
,
num
);
return
s
nprintf
(
b
,
sizeof
(
b
)
,
"%d"
,
num
);
}
/* ----------
...
...
@@ -3211,7 +3211,7 @@ int_to_roman(int number)
fill_str
(
result
,
'#'
,
15
);
return
result
;
}
len
=
s
printf
(
numstr
,
"%d"
,
number
);
len
=
s
nprintf
(
numstr
,
sizeof
(
numstr
)
,
"%d"
,
number
);
for
(
p
=
numstr
;
*
p
!=
'\0'
;
p
++
,
--
len
)
{
...
...
@@ -4013,7 +4013,7 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout, char *number,
Np
->
inout_p
+=
strlen
(
Np
->
inout_p
)
-
1
;
}
else
Np
->
inout_p
+=
s
printf
(
Np
->
inout_p
,
"%15s"
,
Np
->
number_p
)
-
1
;
Np
->
inout_p
+=
s
nprintf
(
Np
->
inout_p
,
plen
-
(
Np
->
inout_p
-
Np
->
inout
)
,
"%15s"
,
Np
->
number_p
)
-
1
;
break
;
case
NUM_rn
:
...
...
@@ -4023,7 +4023,7 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout, char *number,
Np
->
inout_p
+=
strlen
(
Np
->
inout_p
)
-
1
;
}
else
Np
->
inout_p
+=
s
printf
(
Np
->
inout_p
,
"%15s"
,
str_tolower
(
Np
->
number_p
))
-
1
;
Np
->
inout_p
+=
s
nprintf
(
Np
->
inout_p
,
plen
-
(
Np
->
inout_p
-
Np
->
inout
)
,
"%15s"
,
str_tolower
(
Np
->
number_p
))
-
1
;
break
;
case
NUM_th
:
...
...
src/bin/pg_dump/Makefile
View file @
df247b82
...
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.
29 2001/02/20 19:20:28 petere
Exp $
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.
30 2001/02/27 08:13:28 ishii
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -14,7 +14,21 @@ top_builddir = ../../..
include
$(top_builddir)/src/Makefile.global
OBJS
=
pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o pg_backup_files.o
\
pg_backup_null.o pg_backup_tar.o
$(STRDUP)
pg_backup_null.o pg_backup_tar.o
ifdef
STRDUP
OBJS
+=
$(top_builddir)
/src/utils/strdup.o
$(top_builddir)/src/utils/strdup.o
:
$(MAKE)
-C
$(top_builddir)
/src/utils strdup.o
endif
ifdef
STRTOUL
OBJS
+=
$(top_builddir)
/src/backend/port/strtoul.o
$(top_builddir)/src/backend/port/strtoul.o
:
$(MAKE)
-C
$(top_builddir)
/src/backend/port strtoul.o
endif
override CPPFLAGS
:
= -I$(libpq_srcdir) $(CPPFLAGS)
...
...
@@ -26,9 +40,6 @@ pg_dump: pg_dump.o common.o $(OBJS) $(libpq_builddir)/libpq.a
pg_restore
:
pg_restore.o $(OBJS) $(libpq_builddir)/libpq.a
$(CC)
$(CFLAGS)
pg_restore.o
$(OBJS)
$(libpq)
$(LDFLAGS)
$(LIBS)
-o
$@
../../utils/strdup.o
:
$(MAKE)
-C
../../utils strdup.o
pg_dumpall
:
pg_dumpall.sh
sed
-e
's,@VERSION@,
$(VERSION)
,g'
\
-e
's,@MULTIBYTE@,
$(MULTIBYTE)
,g'
\
...
...
src/bin/pg_dump/pg_restore.c
View file @
df247b82
...
...
@@ -68,8 +68,13 @@
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#else
#ifdef HAVE_OPTARG_DECL
#include <unistd.h>
#endif
#else
extern
char
*
optarg
;
extern
int
optind
,
opterr
,
optopt
;
#endif
/* HAVE_OPTARG_DECL */
#endif
/* HAVE_GETOPT_H */
/* Forward decls */
static
void
usage
(
const
char
*
progname
);
...
...
src/bin/pg_id/pg_id.c
View file @
df247b82
...
...
@@ -6,13 +6,21 @@
*
* Copyright (C) 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.1
7 2001/02/10 02:31:27 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.1
8 2001/02/27 08:13:28 ishii
Exp $
*/
#include "postgres_fe.h"
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#else
#ifdef HAVE_OPTARG_DECL
#include <unistd.h>
#else
extern
char
*
optarg
;
extern
int
optind
,
opterr
,
optopt
;
#endif
/* HAVE_OPTARG_DECL */
#endif
/* HAVE_GETOPT_H */
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
...
...
src/bin/psql/Makefile
View file @
df247b82
...
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.
29 2001/02/20 19:20:29 petere
Exp $
# $Header: /cvsroot/pgsql/src/bin/psql/Makefile,v 1.
30 2001/02/27 08:13:27 ishii
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -46,6 +46,13 @@ $(top_builddir)/src/backend/port/snprintf.o:
$(MAKE)
-C
$(top_builddir)
/src/backend/port snprintf.o
endif
ifdef
STRTOUL
OBJS
+=
$(top_builddir)
/src/backend/port/strtoul.o
$(top_builddir)/src/backend/port/strtoul.o
:
$(MAKE)
-C
$(top_builddir)
/src/backend/port strtoul.o
endif
# End of hacks for picking up backend 'port' modules
psql
:
$(OBJS) $(libpq_builddir)/libpq.a
...
...
src/bin/psql/input.c
View file @
df247b82
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.1
5 2001/02/10 02:31:28 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.1
6 2001/02/27 08:13:27 ishii
Exp $
*/
#include "postgres_fe.h"
#include "input.h"
...
...
@@ -151,7 +151,11 @@ initializeInput(int flags)
}
#endif
#ifdef HAVE_ATEXIT
atexit
(
finishInput
);
#else
on_exit
(
finishInput
);
#endif
}
...
...
src/bin/psql/print.c
View file @
df247b82
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.1
5 2001/02/10 02:31:28 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.1
6 2001/02/27 08:13:27 ishii
Exp $
*/
#include "postgres_fe.h"
#include "print.h"
...
...
@@ -21,6 +21,8 @@
#include "pqsignal.h"
#include "libpq-fe.h"
#include "settings.h"
#ifndef __CYGWIN__
#define DEFAULT_PAGER "more"
#else
...
...
src/bin/psql/stringutils.c
View file @
df247b82
...
...
@@ -3,10 +3,11 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.2
7 2001/02/10 02:31:28 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.2
8 2001/02/27 08:13:27 ishii
Exp $
*/
#include "postgres_fe.h"
#include "stringutils.h"
#include "settings.h"
#include <ctype.h>
#include <assert.h>
...
...
src/include/config.h.in
View file @
df247b82
...
...
@@ -8,7 +8,7 @@
* or in config.h afterwards. Of course, if you edit config.h, then your
* changes will be overwritten the next time you run configure.
*
* $Id: config.h.in,v 1.15
8 2001/02/18 04:39:42 tgl
Exp $
* $Id: config.h.in,v 1.15
9 2001/02/27 08:13:27 ishii
Exp $
*/
#ifndef CONFIG_H
...
...
@@ -579,6 +579,9 @@ extern int fdatasync(int fildes);
/* Set to 1 if you have getopt_long() (GNU long options) */
#undef HAVE_GETOPT_LONG
/* Set to 1 if optarg is declared in unistd.h */
#undef HAVE_OPTARG_DECL
/* Set to 1 if you have union semun */
#undef HAVE_UNION_SEMUN
...
...
@@ -651,6 +654,11 @@ extern int fdatasync(int fildes);
# define HAVE_STRTOULL 1
#endif
/* Define if you have atexit() */
#undef HAVE_ATEXIT
/* Define if you have on_exit() */
#undef HAVE_ON_EXIT
/*
*------------------------------------------------------------------------
...
...
src/interfaces/ecpg/preproc/ecpg.c
View file @
df247b82
...
...
@@ -8,6 +8,9 @@
#ifdef HAVE_GETOPT_H
#include "getopt.h"
#else
extern
char
*
optarg
;
extern
int
optind
,
opterr
,
optopt
;
#endif
#include "extern.h"
...
...
src/makefiles/Makefile.sunos4
View file @
df247b82
...
...
@@ -2,7 +2,7 @@ AROPT = cr
DLSUFFIX
=
.so
ifeq
($(GCC), yes)
CFLAGS_SL
=
-f
PIC
CFLAGS_SL
=
-f
pic
else
CFLAGS_SL
=
-PIC
endif
...
...
@@ -13,4 +13,5 @@ CXXFLAGS_SL = -PIC
endif
%.so
:
%.o
$(LD)
-dc
-dp
-Bdynamic
-o
$@
$<
$(LD)
-assert
pure-text
-Bdynamic
-o
$@
$<
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment