Index: configure =================================================================== RCS file: /cvsroot/pgsql/configure,v retrieving revision 1.413 diff -c -c -r1.413 configure *** configure 3 Dec 2004 22:24:53 -0000 1.413 --- configure 14 Dec 2004 12:37:08 -0000 *************** *** 14608,14614 **** --- 14608,14617 ---- int main () { + ifndef _AIX int strerror_r(int, char *, size_t); + #else + int strerror_r(int, char *, int); ; return 0; } *************** *** 14758,14777 **** cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" ! typedef long int 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; int does_int64_work() { ! int64 c,d; ! if (sizeof(int64) != 8) return 0; /* definitely not the right size */ /* Do perfunctory checks to see if 64-bit arithmetic seems to work */ --- 14761,14780 ---- cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" ! typedef long int ac_int64; /* * These are globals to discourage the compiler from folding all the * arithmetic tests down to compile-time constants. */ ! ac_int64 a = 20000001; ! ac_int64 b = 40000005; int does_int64_work() { ! ac_int64 c,d; ! if (sizeof(ac_int64) != 8) return 0; /* definitely not the right size */ /* Do perfunctory checks to see if 64-bit arithmetic seems to work */ *************** *** 14872,14891 **** cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" ! typedef long long int 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; int does_int64_work() { ! int64 c,d; ! if (sizeof(int64) != 8) return 0; /* definitely not the right size */ /* Do perfunctory checks to see if 64-bit arithmetic seems to work */ --- 14875,14894 ---- cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" ! typedef long long int ac_int64; /* * These are globals to discourage the compiler from folding all the * arithmetic tests down to compile-time constants. */ ! ac_int64 a = 20000001; ! ac_int64 b = 40000005; int does_int64_work() { ! ac_int64 c,d; ! if (sizeof(ac_int64) != 8) return 0; /* definitely not the right size */ /* Do perfunctory checks to see if 64-bit arithmetic seems to work */ Index: config/c-compiler.m4 =================================================================== RCS file: /cvsroot/pgsql/config/c-compiler.m4,v retrieving revision 1.13 diff -c -c -r1.13 c-compiler.m4 *** config/c-compiler.m4 20 Oct 2004 02:12:07 -0000 1.13 --- config/c-compiler.m4 14 Dec 2004 12:37:09 -0000 *************** *** 26,45 **** 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; /* * These are globals to discourage the compiler from folding all the * arithmetic tests down to compile-time constants. */ ! int64 a = 20000001; ! int64 b = 40000005; int does_int64_work() { ! int64 c,d; ! if (sizeof(int64) != 8) return 0; /* definitely not the right size */ /* Do perfunctory checks to see if 64-bit arithmetic seems to work */ --- 26,45 ---- 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 ac_int64; /* * These are globals to discourage the compiler from folding all the * arithmetic tests down to compile-time constants. */ ! ac_int64 a = 20000001; ! ac_int64 b = 40000005; int does_int64_work() { ! ac_int64 c,d; ! if (sizeof(ac_int64) != 8) return 0; /* definitely not the right size */ /* Do perfunctory checks to see if 64-bit arithmetic seems to work */ Index: config/c-library.m4 =================================================================== RCS file: /cvsroot/pgsql/config/c-library.m4,v retrieving revision 1.28 diff -c -c -r1.28 c-library.m4 *** config/c-library.m4 4 Oct 2004 18:14:18 -0000 1.28 --- config/c-library.m4 14 Dec 2004 12:37:09 -0000 *************** *** 108,114 **** [AC_CACHE_CHECK(whether strerror_r returns int, pgac_func_strerror_r_int, [AC_TRY_COMPILE([#include ], ! [int strerror_r(int, char *, size_t);], [pgac_func_strerror_r_int=yes], [pgac_func_strerror_r_int=no])]) if test x"$pgac_func_strerror_r_int" = xyes ; then --- 108,117 ---- [AC_CACHE_CHECK(whether strerror_r returns int, pgac_func_strerror_r_int, [AC_TRY_COMPILE([#include ], ! [ifndef _AIX ! int strerror_r(int, char *, size_t); ! #else ! int strerror_r(int, char *, int);], [pgac_func_strerror_r_int=yes], [pgac_func_strerror_r_int=no])]) if test x"$pgac_func_strerror_r_int" = xyes ; then Index: src/Makefile.global.in =================================================================== RCS file: /cvsroot/pgsql/src/Makefile.global.in,v retrieving revision 1.205 diff -c -c -r1.205 Makefile.global.in *** src/Makefile.global.in 19 Nov 2004 00:41:38 -0000 1.205 --- src/Makefile.global.in 14 Dec 2004 12:37:14 -0000 *************** *** 308,313 **** --- 308,319 ---- libpq = -L$(libpq_builddir) -lpq + # AIX libraries do not remember their required libs so we have to force + # thread dependent libraires in the link + ifeq ($(PORTNAME), aix) + libpq += $(PTHREAD_LIBS) + endif + submake-libpq: $(MAKE) -C $(libpq_builddir) all Index: src/makefiles/Makefile.unixware =================================================================== RCS file: /cvsroot/pgsql/src/makefiles/Makefile.unixware,v retrieving revision 1.20 diff -c -c -r1.20 Makefile.unixware *** src/makefiles/Makefile.unixware 19 Nov 2004 00:41:39 -0000 1.20 --- src/makefiles/Makefile.unixware 14 Dec 2004 12:37:21 -0000 *************** *** 33,37 **** # Unixware needs threads for everything that uses libpq CFLAGS += $(PTHREAD_CFLAGS) - - --- 33,35 ----