postgresql-8.1.8 : fix configure on x86
authorBob Foerster <robert@erafx.com>
Fri, 5 Nov 2010 06:06:21 +0000 (06:06 +0000)
committerKhem Raj <raj.khem@gmail.com>
Sat, 6 Nov 2010 15:53:03 +0000 (08:53 -0700)
Without this patch, postgres fails on configure:
| checking alignment of int... configure: error: cannot compute alignment of int, 77
NOTE: package postgresql-8.1.8-r4: task do_configure: Failed

Similar fix for arm was in 5fa3d153.

Signed-off-by: Bob Foerster <robert@erafx.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
site/ix86-common

index 5323c7a..8a4a4c3 100644 (file)
@@ -202,6 +202,13 @@ rsync_cv_HAVE_SECURE_MKSTEMP=${rsync_cv_HAVE_SECURE_MKSTEMP=yes}
 rsync_cv_REPLACE_INET_NTOA=${rsync_cv_REPLACE_INET_NTOA=no}
 rsync_cv_REPLACE_INET_ATON=${rsync_cv_REPLACE_INET_ATON=no}
 
+# postgresql
+pgac_cv_alignof_short=2
+pgac_cv_alignof_int=4
+pgac_cv_alignof_long=4
+pgac_cv_alignof_long_long_int=8
+pgac_cv_alignof_double=8
+
 # samba
 samba_cv_HAVE_GETTIMEOFDAY_TZ=${samba_cv_HAVE_GETTIMEOFDAY_TZ=yes}