head	1.18;
access;
symbols
	REL9_0_0:1.18
	REL9_1_ALPHA1:1.18
	REL9_0_RC1:1.18
	REL9_0_BETA4:1.18
	REL9_0_STABLE:1.18.0.24
	REL9_0_BETA3:1.18
	REL9_0_BETA2:1.18
	REL7_4_29:1.16
	REL8_0_25:1.18
	REL8_1_21:1.18
	REL8_2_17:1.18
	REL8_3_11:1.18
	REL8_4_4:1.18
	REL9_0_BETA1:1.18
	REL9_0_ALPHA5_BRANCH:1.18.0.22
	REL9_0_ALPHA5:1.18
	REL7_4_28:1.16
	REL8_0_24:1.18
	REL8_1_20:1.18
	REL8_2_16:1.18
	REL8_3_10:1.18
	REL8_4_3:1.18
	REL9_0_ALPHA4:1.18
	REL9_0_ALPHA4_BRANCH:1.18.0.20
	REL8_5_ALPHA3:1.18
	REL8_5_ALPHA3_BRANCH:1.18.0.18
	REL7_4_27:1.16
	REL8_0_23:1.18
	REL8_1_19:1.18
	REL8_2_15:1.18
	REL8_3_9:1.18
	REL8_4_2:1.18
	REL8_5_ALPHA2:1.18
	REL8_5_ALPHA2_BRANCH:1.18.0.16
	REL7_4_26:1.16
	REL8_0_22:1.18
	REL8_1_18:1.18
	REL8_2_14:1.18
	REL8_3_8:1.18
	REL8_4_1:1.18
	REL8_5_ALPHA1:1.18
	REL8_5_ALPHA1_BRANCH:1.18.0.14
	REL8_4_STABLE:1.18.0.12
	REL8_4_0:1.18
	REL8_4_RC2:1.18
	REL8_4_RC1:1.18
	REL8_4_BETA2:1.18
	REL8_4_BETA1:1.18
	REL7_4_25:1.16
	REL8_0_21:1.18
	REL8_1_17:1.18
	REL8_2_13:1.18
	REL8_3_7:1.18
	REL7_4_24:1.16
	REL8_0_20:1.18
	REL8_1_16:1.18
	REL8_2_12:1.18
	REL8_3_6:1.18
	REL7_4_23:1.16
	REL8_0_19:1.18
	REL8_1_15:1.18
	REL8_2_11:1.18
	REL8_3_5:1.18
	REL7_4_22:1.16
	REL8_0_18:1.18
	REL8_1_14:1.18
	REL8_2_10:1.18
	REL8_3_4:1.18
	REL7_4_21:1.16
	REL8_0_17:1.18
	REL8_1_13:1.18
	REL8_2_9:1.18
	REL8_3_3:1.18
	REL7_4_20:1.16
	REL8_0_16:1.18
	REL8_1_12:1.18
	REL8_2_8:1.18
	REL8_3_2:1.18
	REL8_2_7:1.18
	REL8_3_1:1.18
	REL8_3_STABLE:1.18.0.10
	REL8_3_0:1.18
	REL8_3_RC2:1.18
	REL7_3_21:1.13
	REL7_4_19:1.16
	REL8_0_15:1.18
	REL8_1_11:1.18
	REL8_2_6:1.18
	REL8_3_RC1:1.18
	REL8_3_BETA4:1.18
	REL8_3_BETA3:1.18
	REL8_3_BETA2:1.18
	REL8_3_BETA1:1.18
	REL7_3_20:1.13
	REL7_4_18:1.16
	REL8_0_14:1.18
	REL8_1_10:1.18
	REL8_2_5:1.18
	REL7_3_19:1.13
	REL7_4_17:1.16
	REL8_0_13:1.18
	REL8_1_9:1.18
	REL8_2_4:1.18
	REL8_0_12:1.18
	REL8_1_8:1.18
	REL8_2_3:1.18
	REL7_3_18:1.13
	REL7_4_16:1.16
	REL8_0_11:1.18
	REL8_1_7:1.18
	REL8_2_2:1.18
	REL8_0_10:1.18
	REL8_1_6:1.18
	REL8_2_1:1.18
	REL7_4_15:1.16
	REL7_3_17:1.13
	REL8_2_STABLE:1.18.0.8
	REL8_2_0:1.18
	REL8_2_RC1:1.18
	REL8_2_BETA3:1.18
	REL8_2_BETA2:1.18
	REL8_1_5:1.18
	REL8_0_9:1.18
	REL7_4_14:1.16
	REL7_3_16:1.13
	REL8_2_BETA1:1.18
	REL7_3_15:1.13
	REL7_4_13:1.16
	REL8_0_8:1.18
	REL8_1_4:1.18
	REL7_3_14:1.13
	REL7_4_12:1.16
	REL8_0_7:1.18
	REL8_1_3:1.18
	REL7_3_13:1.13
	REL7_4_11:1.16
	REL8_0_6:1.18
	REL8_1_2:1.18
	REL7_3_12:1.13
	REL7_4_10:1.16
	REL8_0_5:1.18
	REL8_1_1:1.18
	REL8_1_STABLE:1.18.0.6
	REL8_1_0:1.18
	REL8_1_0RC1:1.18
	REL8_1_0BETA4:1.18
	REL8_1_0BETA3:1.18
	REL7_3_11:1.13
	REL7_4_9:1.16
	REL8_0_4:1.18
	REL8_1_0BETA2:1.18
	REL8_1_0BETA1:1.18
	REL7_2_8:1.13
	REL7_3_10:1.13
	REL7_4_8:1.16
	REL8_0_3:1.18
	REL8_0_2:1.18
	REL7_2_7:1.13
	REL7_3_9:1.13
	REL7_4_7:1.16
	REL8_0_1:1.18
	REL8_0_STABLE:1.18.0.4
	REL8_0_0:1.18.0.2
	REL8_0_0RC5:1.18
	REL8_0_0RC4:1.18
	REL8_0_0RC3:1.18
	REL8_0_0RC2:1.18
	REL8_0_0RC1:1.18
	REL8_0_0BETA5:1.16
	REL8_0_0BETA4:1.16
	REL7_4_6:1.16
	REL7_3_8:1.13
	REL7_2_6:1.13
	REL8_0_0BETA3:1.16
	REL8_0_0BETA2:1.16
	REL7_2_5:1.13
	REL7_4_5:1.16
	REL7_3_7:1.13
	REL7_4_4:1.16
	REL8_0_0BETA1:1.16
	REL7_4_3:1.16
	REL7_4_2:1.16
	REL7_3_6:1.13
	REL7_4_1:1.16
	REL7_3_5:1.13
	REL7_4:1.16
	REL7_4_RC2:1.16
	REL7_4_STABLE:1.16.0.2
	REL7_4_RC1:1.16
	REL7_4_BETA5:1.15
	REL7_4_BETA4:1.13
	REL7_4_BETA3:1.13
	REL7_4_BETA2:1.13
	WIN32_DEV:1.13.0.8
	REL7_4_BETA1:1.13
	REL7_3_4:1.13
	REL7_3_2:1.13
	REL7_2_4:1.13
	REL7_3_STABLE:1.13.0.6
	REL7_2_3:1.13
	REL7_2_STABLE:1.13.0.4
	REL7_2:1.13
	REL7_2_RC2:1.13
	REL7_2_RC1:1.13
	REL7_2_BETA5:1.13
	REL7_2_BETA4:1.13
	REL7_2_BETA3:1.13
	REL7_2_BETA2:1.13
	REL7_2_BETA1:1.13
	REL7_1_2:1.13
	REL7_1_STABLE:1.13.0.2
	REL7_1_BETA:1.13
	REL7_1_BETA3:1.13
	REL7_1_BETA2:1.13
	REL7_1:1.13
	REL7_0_PATCHES:1.10.0.6
	REL7_0:1.10
	REL6_5_PATCHES:1.10.0.4
	REL6_5:1.10
	REL6_4:1.10.0.2
	release-6-3:1.7;
locks; strict;
comment	@# @;


1.18
date	2004.12.02.18.11.40;	author momjian;	state Exp;
branches;
next	1.17;

1.17
date	2004.11.27.05.03.26;	author momjian;	state Exp;
branches;
next	1.16;

1.16
date	2003.10.25.15.32.11;	author petere;	state Exp;
branches;
next	1.15;

1.15
date	2003.10.09.14.40.36;	author momjian;	state Exp;
branches;
next	1.14;

1.14
date	2003.10.09.03.20.34;	author momjian;	state Exp;
branches;
next	1.13;

1.13
date	2000.10.21.22.36.14;	author petere;	state Exp;
branches;
next	1.12;

1.12
date	2000.07.15.15.54.52;	author petere;	state Exp;
branches;
next	1.11;

1.11
date	2000.06.07.16.26.58;	author petere;	state Exp;
branches;
next	1.10;

1.10
date	98.09.13.04.00.43;	author momjian;	state Exp;
branches;
next	1.9;

1.9
date	98.06.12.22.42.12;	author momjian;	state Exp;
branches;
next	1.8;

1.8
date	98.06.12.22.26.24;	author momjian;	state dead;
branches;
next	1.7;

1.7
date	98.03.01.04.47.38;	author scrappy;	state Exp;
branches;
next	1.6;

1.6
date	98.02.01.07.44.00;	author scrappy;	state Exp;
branches;
next	1.5;

1.5
date	98.01.17.23.33.58;	author scrappy;	state Exp;
branches;
next	1.4;

1.4
date	97.04.11.18.55.10;	author scrappy;	state Exp;
branches;
next	1.3;

1.3
date	97.04.04.11.23.15;	author scrappy;	state Exp;
branches;
next	1.2;

1.2
date	97.04.04.09.02.34;	author scrappy;	state Exp;
branches;
next	1.1;

1.1
date	97.04.04.07.59.48;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.18
log
@Don't bother adding to cflags/cppflags, just set them because configure
handles that, and make solaris debug use no optimization.
@
text
@CFLAGS="-v -O -K i486,host,inline,loop_unroll -Dsvr4"
LIBS="-lc89"
@


1.17
log
@Add to CPPFLAGS/CFLAGS in template files, don't over-ride them.
@
text
@d1 1
a1 1
CFLAGS="$CFLAGS -v -O -K i486,host,inline,loop_unroll -Dsvr4"
@


1.16
log
@Fix CFLAGS selection to actually work.  Add test to detect whether gcc's
option -fno-strict-aliasing is available.
@
text
@d1 1
a1 1
CFLAGS="-v -O -K i486,host,inline,loop_unroll -Dsvr4"
@


1.15
log
@Make template CFLAGS handling consistent.
@
text
@d1 1
a1 1
CFLAGS="$CFLAGS -v -O -K i486,host,inline,loop_unroll -Dsvr4"
@


1.14
log
@This centralizes the optimization defaults into configure.in, rather
than having CFLAGS= in the template files.

It uses -O2 for gcc (generated by autoconf), and -O for non-gcc, unless
the template overrides it.
@
text
@d1 1
a1 1
CFLAGS='-v -O -K i486,host,inline,loop_unroll -Dsvr4'
@


1.13
log
@Move DLSUFFIX, AROPT, and CFLAGS_SL settings from template to
Makefile.port, since they are of no use to configure and much of the
library magic happens in Makefile.port anyway.

Use __alpha, not __alpha__, since the former is universally available.
Remove -DNOFIXADE from the compile command line and put it in the port
include file.
@
text
@d2 1
a2 1
LIBS=-lc89 
@


1.12
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
@a0 1
AROPT=crs
a1 2
SHARED_LIB='-K PIC'
DLSUFFIX=.so
@


1.11
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
@d1 5
a5 8
AROPT:crs
CFLAGS:-v -O -K i486,host,inline,loop_unroll -Dsvr4
SHARED_LIB:-K PIC
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc
LIBS:-lc89 
@


1.10
log
@Here are some additional patches needed to get the UnixWare 7 C++
compiler to
attempt to compile libpq++.  The patches address the following problems:

1.  In my first pass at changing the libpq++ makefile, I forgot to
include the
    PORTNAME in the Makefile.in file.

2.  The UnixWare 7 C++ compiler did not like the '-K alloca' option in
CXXFLAGS.

Billy G. Allie
@
text
@a5 1
USE_LOCALE:no
a6 2
YACC:yacc
YFLAGS:-d
@


1.9
log
@template change
@
text
@d2 1
a2 1
CFLAGS:-Xa -v -O -K i486,host,inline,loop_unroll -Dsvr4
@


1.8
log
@template changes
@
text
@@


1.7
log
@From: "Billy G. Allie" <Bill.Allie@@mug.org>

The following patches will allow postgreSQL 6.3 to compile and run on a
UNIXWARE 2.1.2 system with the native C compiler with the following library
change:

        The alloca function must be copied from the libucb.a archive and added
        to the libgen.a archive.

Also, the GNU flex program is needed to successfully build postgreSQL.
@
text
@@


1.6
log
@From: "Billy G. Allie" <Bill.Allie@@mug.org>

The following patches will bring the UNIVEL port in line with the new porting
model used in postgreSQL 6.3
@
text
@a7 1
YACC=/usr/ccs/bin/yacc
d9 1
d11 1
@


1.5
log
@From: "Billy G. Allie" <Bill.Allie@@mug.org>

The attached patches will allow postgreSQL to compile successfully on SCO
UNIXWARE 2.1.x.  The patches fix the following problems:

1.  Configure did not properly recognize the UNIXWARE system as needing the
    univel port.  It used the sys4 port.

2.  Configure did not properly process the CC flag in the template file.

3.  There was no working test and set locking implementation for the native
    UNIXWARE compiler.

4.  The test and set locking used for Intel X86 that was selected by defining
    NEED_I386_TAS_ASM could fail in a multi-processor environment.

5.  The makefiles for libpq and libpgtcl did not make a shared library for
    the univel port.
@
text
@d2 1
a2 1
CFLAGS:-I$(SRCDIR)/backend/port/univel -Xa -v -DHAVE_RUSAGE -O -K i486,host,inline,loop_unroll -Dsvr4
d8 1
a8 1
YFLAGS:-d
@


1.4
log
@Change BACKEND to CFLAGS
@
text
@d2 2
a3 3
CFLAGS:-I$(SRCDIR)/backend/port/univel
SHARED_LIB:-fPIC
ALL:-DHAVE_RUSAGE -m486 -Dsvr4
d9 2
a10 1
YACC:bison -y
@


1.3
log
@Move YACC and YFLAGS into the template files

Clean up the .sample files...comment out all sample entries except for
the localhost one
@
text
@d2 1
a2 1
BACKEND:-I$(SRCDIR)/backend/port/univel
@


1.2
log
@Got AROPT setting backwards...correct it
@
text
@d9 2
@


1.1
log
@One helluva mess.

	Further extended Makefile.global/build/configure so that we can
have a 'template' file for each OS (and each version of OS, as in BSDi)
which is used as much as possible to generate Makefile.global

	Any future ports should look at using the template file as a basis,
before moving over to Makefile.global.

	This will most probably break alot of the ports, atho I've tried to
be very neat about it...
@
text
@d1 1
a1 1
AROPT:cq
@
