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
d7635e5c
Commit
d7635e5c
authored
Sep 13, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autoconf/autoheader run.
parent
2056f8a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
158 deletions
+29
-158
configure
configure
+20
-158
src/include/pg_config.h.in
src/include/pg_config.h.in
+9
-0
No files found.
configure
View file @
d7635e5c
...
...
@@ -13311,93 +13311,27 @@ fi
# One trick here is that if we don't call AC_CHECK_FUNCS, the
# functions are marked "not found", which is perfect.
#
if
test
"
$enable_thread_safety
"
=
yes
-a
"
$NEED_REENTRANT_FUNC
_NAME
S
"
=
yes
;
then
if
test
"
$enable_thread_safety
"
=
yes
-a
"
$NEED_REENTRANT_FUNCS
"
=
yes
;
then
_CFLAGS
=
"
$CFLAGS
"
_LIBS
=
"
$LIBS
"
CFLAGS
=
"
$CFLAGS
$THREAD_CFLAGS
"
LIBS
=
"
$LIBS
$THREAD_LIBS
"
echo
"
$as_me
:
$LINENO
: checking for strerror_r"
>
&5
echo
$ECHO_N
"checking for strerror_r...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_func_strerror_r
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strerror_r (); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char strerror_r ();
char (*f) ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
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_strerror_r) || defined (__stub___strerror_r)
choke me
#else
f = strerror_r;
#endif
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_func_strerror_r
=
yes
else
echo
"
$as_me
: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
ac_cv_func_strerror_r
=
no
fi
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
conftest.
$ac_ext
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_func_strerror_r
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_func_strerror_r
"
>
&6
if
test
$ac_cv_func_strerror_r
=
yes
;
then
:
else
{
{
echo
"
$as_me
:
$LINENO
: error: strerror_r not found, required on this platform for --enable-thread-safety"
>
&5
echo
"
$as_me
: error: strerror_r not found, required on this platform for --enable-thread-safety"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
echo
"
$as_me
:
$LINENO
: checking for getpwuid_r"
>
&5
echo
$ECHO_N
"checking for getpwuid_r...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_func_getpwuid_r
+set
}
"
=
set
;
then
for
ac_func
in
strerror_r getpwuid_r gethostbyname_r
do
as_ac_var
=
`
echo
"ac_cv_func_
$ac_func
"
|
$as_tr_sh
`
echo
"
$as_me
:
$LINENO
: checking for
$ac_func
"
>
&5
echo
$ECHO_N
"checking for
$ac_func
...
$ECHO_C
"
>
&6
if
eval
"test
\"\$
{
$as_ac_var
+set}
\"
= set"
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
getpwuid_r
(); below. */
which can conflict with char
$ac_func
(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
...
...
@@ -13405,7 +13339,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char
getpwuid_r
();
char
$ac_func
();
char (*f) ();
#ifdef F77_DUMMY_MAIN
...
...
@@ -13420,10 +13354,10 @@ 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_
getpwuid_r) || defined (__stub___getpwuid_r
)
#if defined (__stub_
$ac_func
) || defined (__stub___
$ac_func
)
choke me
#else
f =
getpwuid_r
;
f =
$ac_func
;
#endif
;
...
...
@@ -13442,95 +13376,23 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_func_getpwuid_r
=
yes
eval
"
$as_ac_var
=yes"
else
echo
"
$as_me
: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
ac_cv_func_getpwuid_r
=
no
eval
"
$as_ac_var
=no"
fi
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
conftest.
$ac_ext
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_func_getpwuid_r
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_func_getpwuid_r
"
>
&6
if
test
$ac_cv_func_getpwuid_r
=
yes
;
then
:
else
{
{
echo
"
$as_me
:
$LINENO
: error: getpwuid_r not found, required on this platform for --enable-thread-safety"
>
&5
echo
"
$as_me
: error: getpwuid_r not found, required on this platform for --enable-thread-safety"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
echo
"
$as_me
:
$LINENO
: checking for gethostbyname_r"
>
&5
echo
$ECHO_N
"checking for gethostbyname_r...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_func_gethostbyname_r
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gethostbyname_r (); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gethostbyname_r ();
char (*f) ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
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_gethostbyname_r) || defined (__stub___gethostbyname_r)
choke me
#else
f = gethostbyname_r;
#endif
;
return 0;
}
echo
"
$as_me
:
$LINENO
: result:
`
eval echo
'${'
$as_ac_var
'}'
`
"
>
&5
echo
"
${
ECHO_T
}
`
eval echo
'${'
$as_ac_var
'}'
`
"
>
&6
if
test
`
eval echo
'${'
$as_ac_var
'}'
`
=
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define `echo "HAVE_
$ac_func
" |
$as_tr_cpp
` 1
_ACEOF
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_link
\"
"
)
>
&5
(
eval
$ac_link
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -s conftest$ac_exeext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
ac_cv_func_gethostbyname_r
=
yes
else
echo
"
$as_me
: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
ac_cv_func_gethostbyname_r
=
no
fi
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
conftest.
$ac_ext
fi
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_func_gethostbyname_r
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_func_gethostbyname_r
"
>
&6
if
test
$ac_cv_func_gethostbyname_r
=
yes
;
then
:
else
{
{
echo
"
$as_me
:
$LINENO
: error: gethostbyname_r not found, required on this platform for --enable-thread-safety"
>
&5
echo
"
$as_me
: error: gethostbyname_r not found, required on this platform for --enable-thread-safety"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
done
CFLAGS
=
"
$_CFLAGS
"
LIBS
=
"
$_LIBS
"
...
...
src/include/pg_config.h.in
View file @
d7635e5c
...
...
@@ -121,6 +121,9 @@
/* Define to 1 if you have the `getaddrinfo' function. */
#undef HAVE_GETADDRINFO
/* Define to 1 if you have the `gethostbyname_r' function. */
#undef HAVE_GETHOSTBYNAME_R
/* Define to 1 if you have the `gethostname' function. */
#undef HAVE_GETHOSTNAME
...
...
@@ -136,6 +139,9 @@
/* Define to 1 if you have the `getpeereid' function. */
#undef HAVE_GETPEEREID
/* Define to 1 if you have the `getpwuid_r' function. */
#undef HAVE_GETPWUID_R
/* Define to 1 if you have the `getrusage' function. */
#undef HAVE_GETRUSAGE
...
...
@@ -378,6 +384,9 @@
/* Define to 1 if you have the `strerror' function. */
#undef HAVE_STRERROR
/* Define to 1 if you have the `strerror_r' function. */
#undef HAVE_STRERROR_R
/* Define to 1 if cpp supports the ANSI # stringizing operator. */
#undef HAVE_STRINGIZE
...
...
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