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
c3f93719
Commit
c3f93719
authored
Jan 09, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add configure check for sys_nerr, to end all discussions.
parent
af26d6a4
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
110 additions
and
71 deletions
+110
-71
config/c-library.m4
config/c-library.m4
+16
-1
configure
configure
+79
-47
configure.in
configure.in
+1
-0
src/backend/utils/error/elog.c
src/backend/utils/error/elog.c
+3
-9
src/backend/utils/error/exc.c
src/backend/utils/error/exc.c
+2
-6
src/include/c.h
src/include/c.h
+5
-1
src/include/config.h.in
src/include/config.h.in
+4
-1
src/include/port/beos.h
src/include/port/beos.h
+0
-3
src/include/port/win.h
src/include/port/win.h
+0
-3
No files found.
config/c-library.m4
View file @
c3f93719
# Macros that test various C library quirks
# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.
5 2000/11/03 18:43:51
petere Exp $
# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.
6 2001/01/09 18:40:13
petere Exp $
# PGAC_VAR_INT_TIMEZONE
...
...
@@ -123,3 +123,18 @@ if test x"$pgac_cv_header_strings_both" = x"yes"; then
AC_DEFINE([STRING_H_WITH_STRINGS_H], 1,
[Define if string.h and strings.h may both be included])
fi])
# PGAC_VAR_SYS_NERR
# -----------------
# Check if the global variable 'sys_nerr' exists. If so, define
# HAVE_SYS_NERR.
AC_DEFUN([PGAC_VAR_SYS_NERR],
[AC_CACHE_CHECK([for sys_nerr], pgac_cv_var_sys_nerr,
[AC_TRY_LINK([extern int sys_nerr;],
[int x = sys_nerr;],
[pgac_cv_var_sys_nerr=yes],
[pgac_cv_var_sys_nerr=no])])
if test x"$pgac_cv_var_sys_nerr" = xyes ; then
AC_DEFINE(HAVE_SYS_NERR,, [Set to 1 if you have the global variable sys_nerr])
fi])# PGAC_VAR_SYS_NERR
configure
View file @
c3f93719
...
...
@@ -6888,10 +6888,42 @@ EOF
fi
echo
$ac_n
"checking for sys_nerr""...
$ac_c
"
1>&6
echo
"configure:6893: checking for sys_nerr"
>
&5
if
eval
"test
\"
`
echo
'$''{'
pgac_cv_var_sys_nerr
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6898 "configure"
#include "confdefs.h"
extern int sys_nerr;
int main() {
int x = sys_nerr;
; return 0; }
EOF
if
{
(
eval echo
configure:6905:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
pgac_cv_var_sys_nerr
=
yes
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
pgac_cv_var_sys_nerr
=
no
fi
rm
-f
conftest
*
fi
echo
"
$ac_t
""
$pgac_cv_var_sys_nerr
"
1>&6
if
test
x
"
$pgac_cv_var_sys_nerr
"
=
xyes
;
then
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_SYS_NERR
EOF
fi
echo
$ac_n
"checking whether long int is 64 bits""...
$ac_c
"
1>&6
echo
"configure:6
895
: checking whether long int is 64 bits"
>
&5
echo
"configure:6
927
: 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
...
...
@@ -6900,7 +6932,7 @@ else
echo
"configure: warning: 64 bit arithmetic disabled when cross-compiling"
1>&2
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 69
04
"configure"
#line 69
36
"configure"
#include "confdefs.h"
typedef long int int64;
...
...
@@ -6929,7 +6961,7 @@ main() {
exit(! does_int64_work());
}
EOF
if
{
(
eval echo
configure:69
33
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:69
65
:
\"
$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
...
...
@@ -6956,7 +6988,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:69
60
: checking whether long long int is 64 bits"
>
&5
echo
"configure:69
92
: 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
...
...
@@ -6965,7 +6997,7 @@ else
echo
"configure: warning: 64 bit arithmetic disabled when cross-compiling"
1>&2
else
cat
>
conftest.
$ac_ext
<<
EOF
#line
6969
"configure"
#line
7001
"configure"
#include "confdefs.h"
typedef long long int int64;
...
...
@@ -6994,7 +7026,7 @@ main() {
exit(! does_int64_work());
}
EOF
if
{
(
eval echo
configure:
6998
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:
7030
:
\"
$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
...
...
@@ -7025,7 +7057,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:70
29
: checking whether snprintf handles 'long long int' as %lld"
>
&5
echo
"configure:70
61
: 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
...
...
@@ -7034,7 +7066,7 @@ echo "configure:7029: checking whether snprintf handles 'long long int' as %lld"
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 70
38
"configure"
#line 70
70
"configure"
#include "confdefs.h"
#include <stdio.h>
typedef long long int int64;
...
...
@@ -7061,7 +7093,7 @@ main() {
exit(! does_int64_snprintf_work());
}
EOF
if
{
(
eval echo
configure:70
65
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:70
97
:
\"
$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"'
...
...
@@ -7072,7 +7104,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:7
076
: checking whether snprintf handles 'long long int' as %qd"
>
&5
echo
"configure:7
108
: 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
...
...
@@ -7081,7 +7113,7 @@ echo "configure:7076: checking whether snprintf handles 'long long int' as %qd"
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
085
"configure"
#line 7
117
"configure"
#include "confdefs.h"
#include <stdio.h>
typedef long long int int64;
...
...
@@ -7108,7 +7140,7 @@ main() {
exit(! does_int64_snprintf_work());
}
EOF
if
{
(
eval echo
configure:71
12
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:71
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
=
'"%qd"'
...
...
@@ -7148,12 +7180,12 @@ EOF
for
ac_func
in
strtoll strtoq
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:71
52
: checking for
$ac_func
"
>
&5
echo
"configure:71
84
: 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
57
"configure"
#line 71
89
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -7176,7 +7208,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:7
180
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:7
212
:
\"
$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
...
...
@@ -7203,12 +7235,12 @@ done
for
ac_func
in
strtoull strtouq
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:72
07
: checking for
$ac_func
"
>
&5
echo
"configure:72
39
: 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 72
12
"configure"
#line 72
44
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -7231,7 +7263,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:72
35
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:72
67
:
\"
$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
...
...
@@ -7259,7 +7291,7 @@ done
echo
$ac_n
"checking size of unsigned long""...
$ac_c
"
1>&6
echo
"configure:72
63
: checking size of unsigned long"
>
&5
echo
"configure:72
95
: 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
...
...
@@ -7267,7 +7299,7 @@ else
ac_cv_sizeof_unsigned_long
=
4
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
271
"configure"
#line 7
303
"configure"
#include "confdefs.h"
#include <stdio.h>
main()
...
...
@@ -7278,7 +7310,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:7
282
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:7
314
:
\"
$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
...
...
@@ -7304,7 +7336,7 @@ EOF
echo
$ac_n
"checking alignment of short""...
$ac_c
"
1>&6
echo
"configure:73
08
: checking alignment of short"
>
&5
echo
"configure:73
40
: 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
...
...
@@ -7312,7 +7344,7 @@ else
pgac_cv_alignof_short
=
'sizeof(short)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 73
16
"configure"
#line 73
48
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; short field; } mystruct;
...
...
@@ -7324,7 +7356,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:73
28
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:73
60
:
\"
$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
...
...
@@ -7344,7 +7376,7 @@ EOF
echo
$ac_n
"checking alignment of int""...
$ac_c
"
1>&6
echo
"configure:73
48
: checking alignment of int"
>
&5
echo
"configure:73
80
: 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
...
...
@@ -7352,7 +7384,7 @@ else
pgac_cv_alignof_int
=
'sizeof(int)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 73
56
"configure"
#line 73
88
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; int field; } mystruct;
...
...
@@ -7364,7 +7396,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:7
368
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:7
400
:
\"
$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
...
...
@@ -7384,7 +7416,7 @@ EOF
echo
$ac_n
"checking alignment of long""...
$ac_c
"
1>&6
echo
"configure:7
388
: checking alignment of long"
>
&5
echo
"configure:7
420
: 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
...
...
@@ -7392,7 +7424,7 @@ else
pgac_cv_alignof_long
=
'sizeof(long)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
396
"configure"
#line 7
428
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; long field; } mystruct;
...
...
@@ -7404,7 +7436,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:74
08
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:74
40
:
\"
$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
...
...
@@ -7425,7 +7457,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:74
29
: checking alignment of long long int"
>
&5
echo
"configure:74
61
: 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
...
...
@@ -7433,7 +7465,7 @@ else
pgac_cv_alignof_long_long_int
=
'sizeof(long long int)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 74
37
"configure"
#line 74
69
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; long long int field; } mystruct;
...
...
@@ -7445,7 +7477,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:74
49
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:74
81
:
\"
$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
...
...
@@ -7466,7 +7498,7 @@ EOF
fi
echo
$ac_n
"checking alignment of double""...
$ac_c
"
1>&6
echo
"configure:7
470
: checking alignment of double"
>
&5
echo
"configure:7
502
: 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
...
...
@@ -7474,7 +7506,7 @@ else
pgac_cv_alignof_double
=
'sizeof(double)'
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 7
478
"configure"
#line 7
510
"configure"
#include "confdefs.h"
#include <stdio.h>
struct { char filler; double field; } mystruct;
...
...
@@ -7486,7 +7518,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:7
490
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:7
522
:
\"
$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
...
...
@@ -7524,12 +7556,12 @@ EOF
echo
$ac_n
"checking for POSIX signal interface""...
$ac_c
"
1>&6
echo
"configure:75
28
: checking for POSIX signal interface"
>
&5
echo
"configure:75
60
: 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 75
33
"configure"
#line 75
65
"configure"
#include "confdefs.h"
#include <signal.h>
...
...
@@ -7540,7 +7572,7 @@ act.sa_flags = SA_RESTART;
sigaction(0, &act, &oact);
; return 0; }
EOF
if
{
(
eval echo
configure:75
44
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:75
76
:
\"
$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
...
...
@@ -7570,7 +7602,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
574
: checking for
$ac_word
"
>
&5
echo
"configure:7
606
: 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
...
...
@@ -7606,7 +7638,7 @@ test -n "$TCLSH" && break
done
echo
$ac_n
"checking for tclConfig.sh""...
$ac_c
"
1>&6
echo
"configure:76
10
: checking for tclConfig.sh"
>
&5
echo
"configure:76
42
: checking for tclConfig.sh"
>
&5
# Let user override test
if
test
-z
"
$TCL_CONFIG_SH
"
;
then
pgac_test_dirs
=
"
$with_tclconfig
"
...
...
@@ -7639,7 +7671,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:76
43
: checking for tkConfig.sh"
>
&5
echo
"configure:76
75
: checking for tkConfig.sh"
>
&5
# Let user override test
if
test
-z
"
$TK_CONFIG_SH
"
;
then
pgac_test_dirs
=
"
$with_tkconfig
$with_tclconfig
"
...
...
@@ -7678,7 +7710,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
682
: checking for
$ac_word
"
>
&5
echo
"configure:7
714
: 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
...
...
@@ -7714,7 +7746,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:77
18
: checking for
$ac_word
"
>
&5
echo
"configure:77
50
: 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
...
...
@@ -7745,7 +7777,7 @@ done
echo
$ac_n
"checking for DocBook V3.1""...
$ac_c
"
1>&6
echo
"configure:77
49
: checking for DocBook V3.1"
>
&5
echo
"configure:77
81
: 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
...
...
@@ -7778,7 +7810,7 @@ have_docbook=$pgac_cv_check_docbook
echo
$ac_n
"checking for DocBook stylesheets""...
$ac_c
"
1>&6
echo
"configure:7
782
: checking for DocBook stylesheets"
>
&5
echo
"configure:7
814
: 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
...
...
@@ -7817,7 +7849,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:78
21
: checking for
$ac_word
"
>
&5
echo
"configure:78
53
: 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 @
c3f93719
...
...
@@ -945,6 +945,7 @@ if test x"$pgac_cv_var_int_optreset" = x"yes"; then
AC_DEFINE(HAVE_INT_OPTRESET, 1)
fi
PGAC_VAR_SYS_NERR
dnl Check to see if we have a working 64-bit integer type.
dnl This breaks down into two steps:
...
...
src/backend/utils/error/elog.c
View file @
c3f93719
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.7
4 2000/12/18 00:44:47 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.7
5 2001/01/09 18:40:14 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -44,11 +44,6 @@
extern
int
errno
;
#ifdef __CYGWIN__
# define sys_nerr _sys_nerr
#endif
extern
int
sys_nerr
;
extern
CommandDest
whereToSendOutput
;
#ifdef ENABLE_SYSLOG
...
...
@@ -140,8 +135,7 @@ elog(int lev, const char *fmt, ...)
if
(
lev
<=
DEBUG
&&
Debugfile
<
0
)
return
;
/* ignore debug msgs if noplace to send */
/* BeOS doesn't have sys_nerr and should be able to use strerror()... */
#ifndef __BEOS__
#ifdef HAVE_SYS_NERR
/* save errno string for %m */
if
(
errno
<
sys_nerr
&&
errno
>=
0
)
errorstr
=
strerror
(
errno
);
...
...
@@ -152,7 +146,7 @@ elog(int lev, const char *fmt, ...)
}
#else
errorstr
=
strerror
(
errno
);
#endif
/* __BEOS__ */
#endif
if
(
lev
==
ERROR
||
lev
==
FATAL
)
{
...
...
src/backend/utils/error/exc.c
View file @
c3f93719
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.3
2 2000/10/28 23:53:00
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.3
3 2001/01/09 18:40:14
petere Exp $
*
* NOTE
* XXX this code needs improvement--check for state violations and
...
...
@@ -96,10 +96,6 @@ EnableExceptionHandling(bool on)
extern
int
errno
;
#ifdef __CYGWIN__
# define sys_nerr _sys_nerr
#endif
extern
int
sys_nerr
;
static
void
ExcPrint
(
Exception
*
excP
,
...
...
@@ -131,7 +127,7 @@ ExcPrint(Exception *excP,
fprintf
(
stderr
,
" (%ld)"
,
detail
);
#if
ndef __BEOS__
#if
def HAVE_SYS_NERR
if
(
errno
>
0
&&
errno
<
sys_nerr
)
#else
if
(
errno
>
0
)
...
...
src/include/c.h
View file @
c3f93719
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: c.h,v 1.8
6 2001/01/09 16:07:14 momjian
Exp $
* $Id: c.h,v 1.8
7 2001/01/09 18:40:15 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -993,6 +993,10 @@ extern int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
#include <regex/utils.h>
#endif
#ifdef HAVE_SYS_NERR
extern
int
sys_nerr
;
#endif
/* ----------------
* end of c.h
* ----------------
...
...
src/include/config.h.in
View file @
c3f93719
...
...
@@ -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
4 2000/12/27 23:59:14 tgl
Exp $
* $Id: config.h.in,v 1.15
5 2001/01/09 18:40:15 petere
Exp $
*/
#ifndef CONFIG_H
...
...
@@ -617,6 +617,9 @@ extern void srandom(unsigned int seed);
/* Define if you have the optreset variable */
#undef HAVE_INT_OPTRESET
/* Define if you have the sys_nerr global variable */
#undef HAVE_SYS_NERR
/* Define if you have strtoll() */
#undef HAVE_STRTOLL
...
...
src/include/port/beos.h
View file @
c3f93719
...
...
@@ -7,9 +7,6 @@ typedef unsigned char slock_t;
#define AF_UNIX 10
/* no domain sockets on BeOS */
/* Beos doesn't have sysnerr but strerror should works on every error */
extern
int
sys_nerr
;
/* Beos doesn't have all the required getrusage fields */
#undef HAVE_GETRUSAGE
...
...
src/include/port/win.h
View file @
c3f93719
...
...
@@ -9,6 +9,3 @@ typedef unsigned char slock_t;
#define HAVE_INT_TIMEZONE
/* has int _timezone */
#include <cygwin/version.h>
#if (CYGWIN_VERSION_API_MAJOR >= 0) && (CYGWIN_VERSION_API_MINOR >= 8)
#define sys_nerr _sys_nerr
#endif
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