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
e6e36408
Commit
e6e36408
authored
Feb 02, 1998
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move all the isinf() stuff from float.c to isinf.c, and build it according to
configure vs port specific #ifdef's...
parent
79f99a38
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
181 additions
and
186 deletions
+181
-186
src/backend/parser/scan.c
src/backend/parser/scan.c
+2
-2
src/backend/port/isinf.c
src/backend/port/isinf.c
+54
-6
src/backend/utils/adt/float.c
src/backend/utils/adt/float.c
+1
-128
src/configure
src/configure
+103
-48
src/configure.in
src/configure.in
+3
-2
src/include/config.h.in
src/include/config.h.in
+18
-0
No files found.
src/backend/parser/scan.c
View file @
e6e36408
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.1
0 1998/01/27 03:25:07
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.1
1 1998/02/02 00:03:39
scrappy Exp $
*/
#define FLEX_SCANNER
...
...
@@ -539,7 +539,7 @@ char *yytext;
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.1
0 1998/01/27 03:25:07
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.1
1 1998/02/02 00:03:39
scrappy Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/backend/port/isinf.c
View file @
e6e36408
/* $Id: isinf.c,v 1.
1 1998/01/15 20:54:37
scrappy Exp $ */
/* $Id: isinf.c,v 1.
2 1998/02/02 00:03:46
scrappy Exp $ */
#include <ieeefp.h>
#include <math.h>
#include "config.h"
#if HAVE_FPCLASS
# if HAVE_IEEEFP_H
# include <ieeefp.h>
# endif
int
isinf
(
double
d
)
{
fpclass_t
type
=
fpclass
(
d
);
switch
(
type
)
{
case
FP_SNAN
:
case
FP_QNAN
:
case
FP_NINF
:
case
FP_PINF
:
return
(
1
);
default:
break
;
}
return
(
0
);
}
#endif
#if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D)
# if HAVE_FP_CLASS_H
# include <fp_class.h>
# endif
int
isinf
(
x
)
double
x
;
{
#if HAVE_FP_CLASS
int
fpclass
=
fp_class
(
x
);
#else
int
fpclass
=
fp_class_d
(
x
);
#endif
if
(
fpclass
==
FP_POS_INF
)
return
(
1
);
if
(
fpclass
==
FP_NEG_INF
)
return
(
-
1
);
return
(
0
);
}
#endif
#if defined(HAVE_CLASS)
int
isinf
(
double
x
)
{
if
((
fpclass
(
x
)
==
FP_PINF
)
||
(
fpclass
(
x
)
==
FP_NINF
))
return
1
;
else
return
0
;
}
int
fpclass
=
class
(
x
);
if
(
fpclass
==
FP_PLUS_INF
)
return
(
1
);
if
(
fpclass
==
FP_MINUS_INF
)
return
(
-
1
);
return
(
0
);
}
#endif
src/backend/utils/adt/float.c
View file @
e6e36408
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.2
7 1998/01/13 19:28:32
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.2
8 1998/02/02 00:03:54
scrappy Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1507,130 +1507,3 @@ double x;
}
#endif
/* !HAVE_CBRT */
#ifndef HAVE_ISINF
#if defined(aix)
#ifdef CLASS_CONFLICT
/* we want the math symbol */
#undef class
#endif
/* CLASS_CONFICT */
/* The gcc doesn't support isinf() (without libgcc?) so we
* have to do it - Gerhard Reitofer
*/
#ifdef __GNUC__
static
int
isinf
(
double
x
)
{
if
(
x
==
HUGE_VAL
)
return
(
1
);
if
(
x
==
-
HUGE_VAL
)
return
(
-
1
);
return
(
0
);
}
#else
/* __GNUC__ */
static
int
isinf
(
double
x
)
{
int
fpclass
=
class
(
x
);
if
(
fpclass
==
FP_PLUS_INF
)
return
(
1
);
if
(
fpclass
==
FP_MINUS_INF
)
return
(
-
1
);
return
(
0
);
}
#endif
/* __GNUC__ */
#endif
/* aix */
#if defined(ultrix4)
#include <fp_class.h>
static
int
isinf
(
x
)
double
x
;
{
int
fpclass
=
fp_class_d
(
x
);
if
(
fpclass
==
FP_POS_INF
)
return
(
1
);
if
(
fpclass
==
FP_NEG_INF
)
return
(
-
1
);
return
(
0
);
}
#endif
/* ultrix4 */
#if defined(alpha)
#include <fp_class.h>
static
int
isinf
(
x
)
double
x
;
{
int
fpclass
=
fp_class
(
x
);
if
(
fpclass
==
FP_POS_INF
)
return
(
1
);
if
(
fpclass
==
FP_NEG_INF
)
return
(
-
1
);
return
(
0
);
}
#endif
/* alpha */
#if defined(sparc_solaris) || defined(i386_solaris) || defined(svr4) || \
defined(sco)
#include <ieeefp.h>
static
int
isinf
(
d
)
double
d
;
{
fpclass_t
type
=
fpclass
(
d
);
switch
(
type
)
{
case
FP_SNAN
:
case
FP_QNAN
:
case
FP_NINF
:
case
FP_PINF
:
return
(
1
);
default:
break
;
}
return
(
0
);
}
#endif
/* sparc_solaris */
#if defined(irix5)
#include <ieeefp.h>
static
int
isinf
(
d
)
double
d
;
{
fpclass_t
type
=
fpclass
(
d
);
switch
(
type
)
{
case
FP_SNAN
:
case
FP_QNAN
:
case
FP_NINF
:
case
FP_PINF
:
return
(
1
);
default:
break
;
}
return
(
0
);
}
#endif
/* irix5 */
#endif
/* !HAVE_ISINF */
src/configure
View file @
e6e36408
...
...
@@ -2821,7 +2821,7 @@ else
fi
done
for
ac_hdr
in
readline/history.h
for
ac_hdr
in
readline/history.h
ieeefp.h fp_class.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
...
...
@@ -3459,7 +3459,7 @@ fi
fi
for
ac_func
in
tzset vfork memmove sigsetjmp
kill
sysconf
for
ac_func
in
tzset vfork memmove sigsetjmp
kill
sysconf
fpclass
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:3466: checking for
$ac_func
"
>
&5
...
...
@@ -3514,7 +3514,7 @@ else
fi
done
for
ac_func
in
sigprocmask waitpid setsid fcvt
for
ac_func
in
fp_class fp_class_d class
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:3521: checking for
$ac_func
"
>
&5
...
...
@@ -3569,13 +3569,68 @@ else
fi
done
for
ac_func
in
sigprocmask waitpid setsid fcvt
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:3576: 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 3581 "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:3604:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
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
else
echo
"
$ac_t
""no"
1>&6
fi
done
echo
$ac_n
"checking for isinf""...
$ac_c
"
1>&6
echo
"configure:3
574
: checking for isinf"
>
&5
echo
"configure:3
629
: 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 3
579
"configure"
#line 3
634
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char isinf(); below. */
...
...
@@ -3598,7 +3653,7 @@ isinf();
; return 0; }
EOF
if
{
(
eval echo
configure:36
02
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:36
57
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_isinf=yes"
else
...
...
@@ -3623,12 +3678,12 @@ fi
echo
$ac_n
"checking for getrusage""...
$ac_c
"
1>&6
echo
"configure:36
27
: checking for getrusage"
>
&5
echo
"configure:36
82
: 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 36
32
"configure"
#line 36
87
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getrusage(); below. */
...
...
@@ -3651,7 +3706,7 @@ getrusage();
; return 0; }
EOF
if
{
(
eval echo
configure:3
655
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
710
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_getrusage=yes"
else
...
...
@@ -3676,12 +3731,12 @@ fi
echo
$ac_n
"checking for srandom""...
$ac_c
"
1>&6
echo
"configure:3
680
: checking for srandom"
>
&5
echo
"configure:3
735
: 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 3
685
"configure"
#line 3
740
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char srandom(); below. */
...
...
@@ -3704,7 +3759,7 @@ srandom();
; return 0; }
EOF
if
{
(
eval echo
configure:37
08
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:37
63
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_srandom=yes"
else
...
...
@@ -3729,12 +3784,12 @@ fi
echo
$ac_n
"checking for gethostname""...
$ac_c
"
1>&6
echo
"configure:37
33
: checking for gethostname"
>
&5
echo
"configure:37
88
: 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 37
38
"configure"
#line 37
93
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gethostname(); below. */
...
...
@@ -3757,7 +3812,7 @@ gethostname();
; return 0; }
EOF
if
{
(
eval echo
configure:3
761
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
816
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_gethostname=yes"
else
...
...
@@ -3782,12 +3837,12 @@ fi
echo
$ac_n
"checking for random""...
$ac_c
"
1>&6
echo
"configure:3
786
: checking for random"
>
&5
echo
"configure:3
841
: 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 3
791
"configure"
#line 3
846
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char random(); below. */
...
...
@@ -3810,7 +3865,7 @@ random();
; return 0; }
EOF
if
{
(
eval echo
configure:38
14
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:38
69
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_random=yes"
else
...
...
@@ -3835,12 +3890,12 @@ fi
echo
$ac_n
"checking for inet_aton""...
$ac_c
"
1>&6
echo
"configure:38
39
: checking for inet_aton"
>
&5
echo
"configure:38
94
: 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 38
44
"configure"
#line 38
99
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); below. */
...
...
@@ -3863,7 +3918,7 @@ inet_aton();
; return 0; }
EOF
if
{
(
eval echo
configure:3
867
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
922
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_inet_aton=yes"
else
...
...
@@ -3888,12 +3943,12 @@ fi
echo
$ac_n
"checking for strerror""...
$ac_c
"
1>&6
echo
"configure:3
892
: checking for strerror"
>
&5
echo
"configure:3
947
: 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 3
897
"configure"
#line 3
952
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strerror(); below. */
...
...
@@ -3916,7 +3971,7 @@ strerror();
; return 0; }
EOF
if
{
(
eval echo
configure:39
20
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:39
75
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strerror=yes"
else
...
...
@@ -3942,12 +3997,12 @@ fi
echo
$ac_n
"checking for strdup""...
$ac_c
"
1>&6
echo
"configure:
3946
: checking for strdup"
>
&5
echo
"configure:
4001
: 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
3951
"configure"
#line
4006
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strdup(); below. */
...
...
@@ -3970,7 +4025,7 @@ strdup();
; return 0; }
EOF
if
{
(
eval echo
configure:
3974
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:
4029
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strdup=yes"
else
...
...
@@ -3995,12 +4050,12 @@ fi
echo
$ac_n
"checking for strtol""...
$ac_c
"
1>&6
echo
"configure:
3999
: checking for strtol"
>
&5
echo
"configure:
4054
: 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 40
04
"configure"
#line 40
59
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strtol(); below. */
...
...
@@ -4023,7 +4078,7 @@ strtol();
; return 0; }
EOF
if
{
(
eval echo
configure:40
27
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:40
82
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strtol=yes"
else
...
...
@@ -4047,12 +4102,12 @@ STRDUP='strtol.o'
fi
echo
$ac_n
"checking for strcasecmp""...
$ac_c
"
1>&6
echo
"configure:4
051
: checking for strcasecmp"
>
&5
echo
"configure:4
106
: 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 4
056
"configure"
#line 4
111
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strcasecmp(); below. */
...
...
@@ -4075,7 +4130,7 @@ strcasecmp();
; return 0; }
EOF
if
{
(
eval echo
configure:4
079
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:4
134
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_strcasecmp=yes"
else
...
...
@@ -4100,12 +4155,12 @@ fi
echo
$ac_n
"checking for cbrt""...
$ac_c
"
1>&6
echo
"configure:41
04
: checking for cbrt"
>
&5
echo
"configure:41
59
: 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 41
09
"configure"
#line 41
64
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char cbrt(); below. */
...
...
@@ -4128,7 +4183,7 @@ cbrt();
; return 0; }
EOF
if
{
(
eval echo
configure:41
32
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:41
87
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_cbrt=yes"
else
...
...
@@ -4149,7 +4204,7 @@ EOF
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for cbrt in -lm""...
$ac_c
"
1>&6
echo
"configure:4
153
: checking for cbrt in -lm"
>
&5
echo
"configure:4
208
: 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
...
...
@@ -4157,7 +4212,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
161
"configure"
#line 4
216
"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
...
...
@@ -4168,7 +4223,7 @@ int main() {
cbrt()
; return 0; }
EOF
if
{
(
eval echo
configure:4
172
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:4
227
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -4194,12 +4249,12 @@ fi
fi
echo
$ac_n
"checking for rint""...
$ac_c
"
1>&6
echo
"configure:4
198
: checking for rint"
>
&5
echo
"configure:4
253
: 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 42
03
"configure"
#line 42
58
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char rint(); below. */
...
...
@@ -4222,7 +4277,7 @@ rint();
; return 0; }
EOF
if
{
(
eval echo
configure:42
26
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:42
81
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_rint=yes"
else
...
...
@@ -4243,7 +4298,7 @@ EOF
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for rint in -lm""...
$ac_c
"
1>&6
echo
"configure:4
247
: checking for rint in -lm"
>
&5
echo
"configure:4
302
: 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
...
...
@@ -4251,7 +4306,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lm
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
255
"configure"
#line 4
310
"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
...
...
@@ -4262,7 +4317,7 @@ int main() {
rint()
; return 0; }
EOF
if
{
(
eval echo
configure:4
266
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:4
321
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -4289,7 +4344,7 @@ fi
echo
$ac_n
"checking setting USE_LOCALE""...
$ac_c
"
1>&6
echo
"configure:4
293
: checking setting USE_LOCALE"
>
&5
echo
"configure:4
348
: checking setting USE_LOCALE"
>
&5
if
test
"
$USE_LOCALE
"
=
"yes"
then
echo
"
$ac_t
""enabled"
1>&6
...
...
@@ -4301,14 +4356,14 @@ else
echo
"
$ac_t
""disabled"
1>&6
fi
echo
$ac_n
"checking setting DEF_PGPORT""...
$ac_c
"
1>&6
echo
"configure:43
05
: checking setting DEF_PGPORT"
>
&5
echo
"configure:43
60
: checking setting DEF_PGPORT"
>
&5
cat
>>
confdefs.h
<<
EOF
#define DEF_PGPORT "
${
DEF_PGPORT
}
"
EOF
echo
"
$ac_t
""
$DEF_PGPORT
"
1>&6
echo
$ac_n
"checking setting HBA""...
$ac_c
"
1>&6
echo
"configure:43
12
: checking setting HBA"
>
&5
echo
"configure:43
67
: checking setting HBA"
>
&5
if
test
"
$NOHBA
"
=
"no"
then
echo
"
$ac_t
""enabled"
1>&6
...
...
src/configure.in
View file @
e6e36408
...
...
@@ -433,7 +433,7 @@ AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
AC_CHECK_HEADERS(sys/resource.h netdb.h arpa/inet.h)
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
AC_CHECK_HEADERS(readline/history.h)
AC_CHECK_HEADERS(readline/history.h
ieeefp.h fp_class.h
)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
...
...
@@ -465,7 +465,8 @@ AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(tzset vfork memmove sigsetjmp kill sysconf)
AC_CHECK_FUNCS(tzset vfork memmove sigsetjmp kill sysconf fpclass)
AC_CHECK_FUNCS(fp_class fp_class_d class)
AC_CHECK_FUNCS(sigprocmask waitpid setsid fcvt)
AC_CHECK_FUNC(isinf,
AC_DEFINE(HAVE_ISINF),
...
...
src/include/config.h.in
View file @
e6e36408
...
...
@@ -14,6 +14,12 @@
* The following is set using configure.
*/
/* Set to 1 if you have <fp_class.h> */
#undef HAVE_FP_CLASS_H
/* Set to 1 if you have <ieeefp.h> */
#undef HAVE_IEEEFP_H
/* Set to 1 if you have <arpa/inet.h> */
#undef HAVE_ARPA_INET_H
...
...
@@ -53,6 +59,18 @@
/* Set to 1 if you have <dld.h> */
#undef HAVE_DLD_H
/* Set to 1 if you have fp_class() */
#undef HAVE_FP_CLASS
/* Set to 1 if you have class() */
#undef HAVE_CLASS
/* Set to 1 if you have fp_class_d() */
#undef HAVE_FP_CLASS_D
/* Set to 1 if you have fpclass() */
#undef HAVE_FPCLASS
/* Set to 1 if you have isinf() */
#undef HAVE_ISINF
#ifndef HAVE_ISINF
...
...
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