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
aa7dbd0b
Commit
aa7dbd0b
authored
Feb 13, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Had configure check for strdup, but didn't have it set HAVE_STRDUP
Fixed
parent
a5494a2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
14 deletions
+20
-14
src/configure
src/configure
+16
-13
src/configure.in
src/configure.in
+1
-1
src/include/config.h.in
src/include/config.h.in
+3
-0
No files found.
src/configure
View file @
aa7dbd0b
...
@@ -3102,7 +3102,10 @@ fi
...
@@ -3102,7 +3102,10 @@ fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
strdup
`
\"
= yes"
;
then
if
eval
"test
\"
`
echo
'$ac_cv_func_'
strdup
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
echo
"
$ac_t
""yes"
1>&6
STRDUP
=
'../../utils/strdup.o'
STRDUP
=
'../../utils/strdup.o'
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_STRDUP 1
EOF
else
else
echo
"
$ac_t
""no"
1>&6
echo
"
$ac_t
""no"
1>&6
fi
fi
...
@@ -3110,12 +3113,12 @@ fi
...
@@ -3110,12 +3113,12 @@ fi
echo
$ac_n
"checking for cbrt""...
$ac_c
"
1>&6
echo
$ac_n
"checking for cbrt""...
$ac_c
"
1>&6
echo
"configure:311
4
: checking for cbrt"
>
&5
echo
"configure:311
7
: checking for cbrt"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_cbrt
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_cbrt
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 31
19
"configure"
#line 31
22
"configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char cbrt(); below. */
which can conflict with char cbrt(); below. */
...
@@ -3138,7 +3141,7 @@ cbrt();
...
@@ -3138,7 +3141,7 @@ cbrt();
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:314
2
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:314
5
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_func_cbrt=yes"
eval
"ac_cv_func_cbrt=yes"
else
else
...
@@ -3159,7 +3162,7 @@ EOF
...
@@ -3159,7 +3162,7 @@ EOF
else
else
echo
"
$ac_t
""no"
1>&6
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for cbrt in -lm""...
$ac_c
"
1>&6
echo
$ac_n
"checking for cbrt in -lm""...
$ac_c
"
1>&6
echo
"configure:316
3
: checking for cbrt in -lm"
>
&5
echo
"configure:316
6
: checking for cbrt in -lm"
>
&5
ac_lib_var
=
`
echo
m
'_'
cbrt |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
m
'_'
cbrt |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -3167,7 +3170,7 @@ else
...
@@ -3167,7 +3170,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 317
1
"configure"
#line 317
4
"configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
...
@@ -3178,7 +3181,7 @@ int main() {
...
@@ -3178,7 +3181,7 @@ int main() {
cbrt()
cbrt()
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:318
2
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:318
5
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
else
...
@@ -3204,12 +3207,12 @@ fi
...
@@ -3204,12 +3207,12 @@ fi
fi
fi
echo
$ac_n
"checking for rint""...
$ac_c
"
1>&6
echo
$ac_n
"checking for rint""...
$ac_c
"
1>&6
echo
"configure:32
08
: checking for rint"
>
&5
echo
"configure:32
11
: checking for rint"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_rint
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_rint
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 321
3
"configure"
#line 321
6
"configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char rint(); below. */
which can conflict with char rint(); below. */
...
@@ -3232,7 +3235,7 @@ rint();
...
@@ -3232,7 +3235,7 @@ rint();
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:323
6
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:323
9
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_func_rint=yes"
eval
"ac_cv_func_rint=yes"
else
else
...
@@ -3253,7 +3256,7 @@ EOF
...
@@ -3253,7 +3256,7 @@ EOF
else
else
echo
"
$ac_t
""no"
1>&6
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for rint in -lm""...
$ac_c
"
1>&6
echo
$ac_n
"checking for rint in -lm""...
$ac_c
"
1>&6
echo
"configure:32
57
: checking for rint in -lm"
>
&5
echo
"configure:32
60
: checking for rint in -lm"
>
&5
ac_lib_var
=
`
echo
m
'_'
rint |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
m
'_'
rint |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -3261,7 +3264,7 @@ else
...
@@ -3261,7 +3264,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 326
5
"configure"
#line 326
8
"configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
...
@@ -3272,7 +3275,7 @@ int main() {
...
@@ -3272,7 +3275,7 @@ int main() {
rint()
rint()
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:327
6
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:327
9
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
else
...
...
src/configure.in
View file @
aa7dbd0b
...
@@ -159,7 +159,7 @@ AC_FUNC_VPRINTF
...
@@ -159,7 +159,7 @@ AC_FUNC_VPRINTF
AC_CHECK_FUNCS(isinf tzset getrusage vfork memmove sigsetjmp kill sysconf)
AC_CHECK_FUNCS(isinf tzset getrusage vfork memmove sigsetjmp kill sysconf)
AC_CHECK_FUNCS(sigprocmask waitpid setsid)
AC_CHECK_FUNCS(sigprocmask waitpid setsid)
AC_CHECK_FUNC(inet_aton, AC_DEFINE(HAVE_INET_ATON), INET_ATON='inet_aton.o')
AC_CHECK_FUNC(inet_aton, AC_DEFINE(HAVE_INET_ATON), INET_ATON='inet_aton.o')
AC_CHECK_FUNC(strdup,
STRDUP='../../utils/strdup.o'
)
AC_CHECK_FUNC(strdup,
[STRDUP='../../utils/strdup.o' AC_DEFINE(HAVE_STRDUP)]
)
AC_SUBST(INET_ATON)
AC_SUBST(INET_ATON)
AC_SUBST(STRDUP)
AC_SUBST(STRDUP)
AC_CHECK_FUNC(cbrt, AC_DEFINE(HAVE_CBRT), AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT)))
AC_CHECK_FUNC(cbrt, AC_DEFINE(HAVE_CBRT), AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT)))
...
...
src/include/config.h.in
View file @
aa7dbd0b
...
@@ -80,6 +80,9 @@
...
@@ -80,6 +80,9 @@
/* Set to 1 if you have sigprocmask() */
/* Set to 1 if you have sigprocmask() */
#undef HAVE_SIGPROCMASK
#undef HAVE_SIGPROCMASK
/* Set to 1 if you have strdup() */
#undef HAVE_STRDUP
/* Set to 1 if you have libreadline.a */
/* Set to 1 if you have libreadline.a */
#undef HAVE_LIBREADLINE
#undef HAVE_LIBREADLINE
...
...
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