From 2e65523f4f43352e6f5f7499a15495b6c2a6f41f Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Fri, 19 Oct 2001 15:06:48 +0000
Subject: [PATCH] Without this patch I couldn't compile PostgreSQL on Solaris 8
 x86 using Sun's compiler. May be it will be usefull for someone else?

Denis Ustimenko
---
 configure    | 8 ++++----
 configure.in | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/configure b/configure
index d650c47a4d..a443484cf4 100755
--- a/configure
+++ b/configure
@@ -747,7 +747,7 @@ PORTNAME=$template
 case $host in
   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
-  i?86-*-solaris)   need_tas=yes; tas_file=solaris_i386.s ;;
+  i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
   *)                need_tas=no;  tas_file=dummy.s ;;
 esac
 
@@ -2718,7 +2718,7 @@ echo "using CPPFLAGS=$CPPFLAGS"
 echo "using LDFLAGS=$LDFLAGS"
 
 
-for ac_prog in gawk mawk nawk awk
+for ac_prog in mawk gawk nawk awk
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
@@ -5542,7 +5542,7 @@ else
 int main() {
 
 /* Ultrix mips cc rejects this.  */
-typedef int charset[2]; const charset x={0,0};
+typedef int charset[2]; const charset x;
 /* SunOS 4.1.1 cc rejects this.  */
 char const *const *ccp;
 char **p;
@@ -5617,7 +5617,7 @@ for ac_kw in inline __inline__ __inline; do
 #include "confdefs.h"
 
 int main() {
-} $ac_kw int foo() {
+} $ac_kw foo() {
 ; return 0; }
 EOF
 if { (eval echo configure:5624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
diff --git a/configure.in b/configure.in
index ca1e80e276..c572a5fc28 100644
--- a/configure.in
+++ b/configure.in
@@ -116,7 +116,7 @@ AC_LINK_FILES([src/makefiles/Makefile.${template}], [src/Makefile.port])
 case $host in
   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
-  i?86-*-solaris)   need_tas=yes; tas_file=solaris_i386.s ;;
+  i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
   *)                need_tas=no;  tas_file=dummy.s ;;
 esac
 AC_LINK_FILES([src/backend/port/tas/${tas_file}], [src/backend/port/tas.s])
-- 
2.24.1