]> granicus.if.org Git - postgresql/commitdiff
Without this patch I couldn't compile PostgreSQL on Solaris 8 x86 using
authorBruce Momjian <bruce@momjian.us>
Fri, 19 Oct 2001 15:06:48 +0000 (15:06 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 19 Oct 2001 15:06:48 +0000 (15:06 +0000)
Sun's compiler. May be it will be usefull for someone else?

Denis Ustimenko

configure
configure.in

index d650c47a4db489b2cb73737d0bea2b93f0e2e8ad..a443484cf407505cc87f9184797300f1dc83a280 100755 (executable)
--- 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
index ca1e80e27663c94d07f1e3f3c5cfe324d9d80126..c572a5fc284f51f08b887c803bb724947d3d8e5d 100644 (file)
@@ -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])