|
1 | 1 | dnl Process this file with autoconf to produce a configure script.
|
2 |
| -dnl $PostgreSQL: pgsql/configure.in,v 1.618 2010/01/02 16:57:32 momjian Exp $ |
| 2 | +dnl $PostgreSQL: pgsql/configure.in,v 1.619 2010/01/07 00:25:04 tgl Exp $ |
3 | 3 | dnl
|
4 | 4 | dnl Developers, please strive to achieve this order:
|
5 | 5 | dnl
|
@@ -1499,10 +1499,16 @@ dnl If there is no native snprintf() or it does not handle the 64-bit type,
|
1499 | 1499 | dnl we force our own version of snprintf() to be used instead.
|
1500 | 1500 | dnl Note this test must be run after our initial check for snprintf/vsnprintf.
|
1501 | 1501 |
|
| 1502 | +dnl As of Postgres 8.4, we no longer support compilers without a working |
| 1503 | +dnl 64-bit type. But we still handle the case of snprintf being broken. |
| 1504 | + |
1502 | 1505 | PGAC_TYPE_64BIT_INT([long int])
|
1503 | 1506 |
|
1504 | 1507 | if test x"$HAVE_LONG_INT_64" = x"no" ; then
|
1505 | 1508 | PGAC_TYPE_64BIT_INT([long long int])
|
| 1509 | + if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then |
| 1510 | + AC_MSG_ERROR([Cannot find a working 64-bit integer type.]) |
| 1511 | + fi |
1506 | 1512 | fi
|
1507 | 1513 |
|
1508 | 1514 |
|
@@ -1546,10 +1552,10 @@ else
|
1546 | 1552 | fi
|
1547 | 1553 |
|
1548 | 1554 | AC_DEFINE_UNQUOTED(INT64_FORMAT, $INT64_FORMAT,
|
1549 |
| - [Define to the appropriate snprintf format for 64-bit ints, if any.]) |
| 1555 | + [Define to the appropriate snprintf format for 64-bit ints.]) |
1550 | 1556 |
|
1551 | 1557 | AC_DEFINE_UNQUOTED(UINT64_FORMAT, $UINT64_FORMAT,
|
1552 |
| - [Define to the appropriate snprintf format for unsigned 64-bit ints, if any.]) |
| 1558 | + [Define to the appropriate snprintf format for unsigned 64-bit ints.]) |
1553 | 1559 |
|
1554 | 1560 | # Now we have checked all the reasons to replace snprintf
|
1555 | 1561 | if test $pgac_need_repl_snprintf = yes; then
|
@@ -1632,20 +1638,6 @@ AC_CHECK_TYPES([int8, uint8, int64, uint64], [], [],
|
1632 | 1638 | AC_CHECK_TYPES(sig_atomic_t, [], [], [#include <signal.h>])
|
1633 | 1639 |
|
1634 | 1640 |
|
1635 |
| -# If the user did not disable integer datetimes, check that |
1636 |
| -# there is a working 64-bit integral type to use. |
1637 |
| -if test x"$USE_INTEGER_DATETIMES" = x"yes" && |
1638 |
| - test x"$HAVE_LONG_INT_64" = x"no" && |
1639 |
| - test x"$HAVE_LONG_LONG_INT_64" = x"no" && |
1640 |
| - test x"$HAVE_INT64" = x"no" ; then |
1641 |
| - AC_MSG_ERROR([ |
1642 |
| -Integer-based datetime support requires a 64-bit integer type, |
1643 |
| -but no such type could be found. The --disable-integer-datetimes |
1644 |
| -configure option can be used to disable integer-based storage |
1645 |
| -of datetime values.]) |
1646 |
| -fi |
1647 |
| - |
1648 |
| - |
1649 | 1641 | if test "$PORTNAME" != "win32"
|
1650 | 1642 | then
|
1651 | 1643 | PGAC_FUNC_POSIX_SIGNALS
|
|
0 commit comments