head	1.6;
access;
symbols
	REL7_0_PATCHES:1.3.0.6
	REL7_0:1.3
	REL6_5_PATCHES:1.3.0.4
	REL6_5:1.3
	REL6_4:1.3.0.2;
locks; strict;
comment	@# @;


1.6
date	2000.07.15.15.54.52;	author petere;	state dead;
branches;
next	1.5;

1.5
date	2000.06.30.16.11.02;	author petere;	state Exp;
branches;
next	1.4;

1.4
date	2000.06.07.16.26.58;	author petere;	state Exp;
branches;
next	1.3;

1.3
date	98.07.19.05.02.51;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	98.07.19.04.30.04;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	98.06.12.22.26.21;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Rename templates to match names in makefiles/Makefile.* and include/port.
Read templates after compiler is detected. Convert all templates to real
shell scripts. Rename bsd->openbsd, alpha->osf.
@
text
@AROPT:crs
CFLAGS:-Xa -v -D__sparc__ -D__sun__
SHARED_LIB:-KPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc
@


1.5
log
@Fixes for Solaris/cc suggested by <pgsql-hackers@@thewrittenword.com>

Don't use DISABLE_COMPLEX_MACRO on Solaris. Don't define the
replacement function in the header file. Use -KPIC, not -K PIC.
Use CC to link C++ libraries, not ld/ar.

Eliminate file not found warnings in tcl build code.
@
text
@@


1.4
log
@Gen_fmgrtab.sh is strange: it is a platform dependent way (because it uses
CPP) to create platform independent files. Unfortunately, that means that
every config.status (or configure) run invariably causes a relink of the
postmaster and also that we can't put these files in the distribution
(usefully). So we make it a little smarter: when the output files already
exist and it notices that it would recreate them in identical form, it
doesn't touch them. In order to avoid re-running the make rule all the time
we update a timestamp file instead.

Update release_prep accordingly. Also make Gen_fmgrtab.sh use the awk that
is detected at configure time, not necessarily named `awk' and have it check
for exit statuses a little better.

In other news... Remove USE_LOCALE from the templates, it was set to `no'
everywhere anyway. Also remove YACC and YFLAGS from the templates, configure
is smart enough to find bison or yacc itself. Use AC_PROG_YACC for that
instead of the hand-crafted code. Do not set YFLAGS to `-d'. The make rules
that need this flag should explicitly invoke it. YFLAGS should be a user
variable. Update the makefiles to that effect.
@
text
@d2 2
a3 2
CFLAGS:-Xa -v -D__sparc__ -D__sun__ -DDISABLE_COMPLEX_MACRO
SHARED_LIB:-K PIC
@


1.3
log
@Make sparc/solaris not use complex macr.
@
text
@a6 1
USE_LOCALE:no
a7 2
YFLAGS:-d
YACC:
@


1.2
log
@Attached are the three patches that were needed to get PostgreSQL
6.3.2 to compile (and run) on my Sparc Solaris 2.5.1 box. Details
below:

	pgsql.sparc.patch-template: Adds -D__sparc__ and -D__sun__,
defintions which gcc does define, but Sun's cc does not. :(
	pgsql.sparc.patch-makefile: Adds a define so that 'lorder'
	is not used, as it is not found on my machine.


Ryan Kirkpatrick
@
text
@d2 1
a2 1
CFLAGS:-Xa -v -D__sparc__ -D__sun__
@


1.1
log
@template changes
@
text
@d2 1
a2 1
CFLAGS:-Xa -v
@

