mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-27 07:21:09 +08:00
Portability patches for HPUX 11 and Unixware in configure
and related files. Also remove float.c's gratuitous redeclaration of isinf() ... looks like there are more decls in there that ought to be in config.h, but I'll leave well enough alone for now ...
This commit is contained in:
parent
6eccfbc727
commit
d30e2ac306
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.40 1999/02/13 23:19:14 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.41 1999/04/20 00:26:32 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -74,10 +74,6 @@
|
||||
#define SHRT_MIN (-32768)
|
||||
#endif
|
||||
|
||||
#ifndef NAN
|
||||
#define NAN (0.0/0.0)
|
||||
#endif
|
||||
|
||||
#define FORMAT 'g' /* use "g" output format as standard
|
||||
* format */
|
||||
/* not sure what the following should be, but better to make it over-sufficient */
|
||||
@ -112,9 +108,8 @@ extern double rint(double x);
|
||||
|
||||
#endif
|
||||
|
||||
extern int isinf(double x);
|
||||
|
||||
#endif
|
||||
|
||||
/* ========== USER I/O ROUTINES ========== */
|
||||
|
||||
|
||||
|
2
src/config.guess
vendored
2
src/config.guess
vendored
@ -709,7 +709,7 @@ EOF
|
||||
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
|
||||
&& UNAME_MACHINE=i586
|
||||
fi
|
||||
echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION}
|
||||
echo ${UNAME_MACHINE}-pc-unixware${UNAME_VERSION}
|
||||
exit 0 ;;
|
||||
pc:*:*:*)
|
||||
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
||||
|
4
src/config.sub
vendored
4
src/config.sub
vendored
@ -175,7 +175,7 @@ case $basic_machine in
|
||||
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
|
||||
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
|
||||
| power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
|
||||
| xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \
|
||||
| xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0*-* \
|
||||
| alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
|
||||
| ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
|
||||
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
|
||||
@ -692,6 +692,8 @@ case $os in
|
||||
-svr4*)
|
||||
os=-sysv4
|
||||
;;
|
||||
-unixware7*)
|
||||
;;
|
||||
-unixware*)
|
||||
os=-sysv4.2uw
|
||||
;;
|
||||
|
290
src/configure
vendored
290
src/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -44,7 +44,7 @@ nextstep*) os=nextstep need_tas=no ;;
|
||||
*) os=unknown need_tas=no ;;
|
||||
esac ;;
|
||||
sysv4*) os=svr4 need_tas=no ;;
|
||||
sysv5*) os=unixware need_tas=no ;;
|
||||
unixware*) os=unixware need_tas=no ;;
|
||||
*) echo ""
|
||||
echo "*************************************************************"
|
||||
echo "configure does not currently recognize your operating system,"
|
||||
@ -674,9 +674,22 @@ AC_CHECK_FUNC(vsnprintf,
|
||||
AC_DEFINE(HAVE_VSNPRINTF),
|
||||
SNPRINTF='snprintf.o')
|
||||
AC_SUBST(SNPRINTF)
|
||||
AC_CHECK_FUNC(isinf,
|
||||
AC_DEFINE(HAVE_ISINF),
|
||||
ISINF='isinf.o')
|
||||
dnl do this one the hard way in case isinf() is a macro
|
||||
AC_MSG_CHECKING(for isinf)
|
||||
AC_CACHE_VAL(ac_cv_func_or_macro_isinf,
|
||||
[AC_TRY_LINK(
|
||||
[#include <math.h>],
|
||||
[double x = 0.0; int res = isinf(x);],
|
||||
[ac_cv_func_or_macro_isinf=yes],
|
||||
[ac_cv_func_or_macro_isinf=no])])
|
||||
if [[ $ac_cv_func_or_macro_isinf = yes ]]; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_ISINF)
|
||||
ISINF=''
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
ISINF='isinf.o'
|
||||
fi
|
||||
AC_SUBST(ISINF)
|
||||
AC_CHECK_FUNC(getrusage,
|
||||
AC_DEFINE(HAVE_GETRUSAGE),
|
||||
|
Loading…
Reference in New Issue
Block a user