mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
More correct way to check for existence of types, which allows to specify
which include files to consider. Should fix BeOS problems with int8 types.
This commit is contained in:
20
configure.in
20
configure.in
@@ -1169,13 +1169,21 @@ else
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED(MAXIMUM_ALIGNOF, $MAX_ALIGNOF, [Define as the maximum alignment requirement of any type])
|
||||
|
||||
|
||||
# Some platforms predefine the types int8, int16, etc. Only check
|
||||
# a (hopefully) representative subset. Don't use AC_CHECK_TYPE, which
|
||||
# doesn't work the way we want to.
|
||||
AC_CHECK_SIZEOF(int8, 0)
|
||||
AC_CHECK_SIZEOF(uint8, 0)
|
||||
AC_CHECK_SIZEOF(int64, 0)
|
||||
AC_CHECK_SIZEOF(uint64, 0)
|
||||
# a (hopefully) representative subset.
|
||||
|
||||
pgac_type_includes="\
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_SUPPORTDEFS_H
|
||||
#include <SupportDefs.h>
|
||||
#endif"
|
||||
|
||||
PGAC_CHECK_TYPE(int8, [], [], [$pgac_type_includes])
|
||||
PGAC_CHECK_TYPE(uint8, [], [], [$pgac_type_includes])
|
||||
PGAC_CHECK_TYPE(int64, [], [], [$pgac_type_includes])
|
||||
PGAC_CHECK_TYPE(uint64, [], [], [$pgac_type_includes])
|
||||
|
||||
|
||||
PGAC_FUNC_POSIX_SIGNALS
|
||||
|
||||
|
Reference in New Issue
Block a user