summaryrefslogtreecommitdiff
path: root/config/c-compiler.m4
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-12-16 17:48:29 +0000
committerBruce Momjian <bruce@momjian.us>2004-12-16 17:48:29 +0000
commitb5498167d7569875cb91ae0cf06a649d3f9f41a6 (patch)
treef2178026c596691936aae3551c3533a436f5f857 /config/c-compiler.m4
parentcd380b99cd92dc979752d19ad7f11d3a9790a3d1 (diff)
downloadpostgresql-b5498167d7569875cb91ae0cf06a649d3f9f41a6.tar.gz
Allow AIX to use --enable-thread-safety by passing PTHREAD_LIBS to
binary compiles, and adjust configure tests for AIX.
Diffstat (limited to 'config/c-compiler.m4')
-rw-r--r--config/c-compiler.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/config/c-compiler.m4 b/config/c-compiler.m4
index 98081bee25..e4b3d3513a 100644
--- a/config/c-compiler.m4
+++ b/config/c-compiler.m4
@@ -1,5 +1,5 @@
# Macros to detect C compiler features
-# $PostgreSQL: pgsql/config/c-compiler.m4,v 1.13 2004/10/20 02:12:07 neilc Exp $
+# $PostgreSQL: pgsql/config/c-compiler.m4,v 1.14 2004/12/16 17:48:25 momjian Exp $
# PGAC_C_SIGNED
@@ -26,20 +26,20 @@ AC_DEFUN([PGAC_TYPE_64BIT_INT],
define([Ac_cachevar], [translit([pgac_cv_type_$1_64], [ *], [_p])])dnl
AC_CACHE_CHECK([whether $1 is 64 bits], [Ac_cachevar],
[AC_TRY_RUN(
-[typedef $1 int64;
+[typedef $1 ac_int64;
/*
* These are globals to discourage the compiler from folding all the
* arithmetic tests down to compile-time constants.
*/
-int64 a = 20000001;
-int64 b = 40000005;
+ac_int64 a = 20000001;
+ac_int64 b = 40000005;
int does_int64_work()
{
- int64 c,d;
+ ac_int64 c,d;
- if (sizeof(int64) != 8)
+ if (sizeof(ac_int64) != 8)
return 0; /* definitely not the right size */
/* Do perfunctory checks to see if 64-bit arithmetic seems to work */