head	1.42;
access;
symbols
	REL9_0_0:1.42
	REL9_1_ALPHA1:1.42
	REL9_0_RC1:1.42
	REL9_0_BETA4:1.42
	REL9_0_STABLE:1.42.0.16
	REL9_0_BETA3:1.42
	REL9_0_BETA2:1.42
	REL7_4_29:1.27.2.2
	REL8_0_25:1.40
	REL8_1_21:1.40
	REL8_2_17:1.40.8.1
	REL8_3_11:1.42
	REL8_4_4:1.42
	REL9_0_BETA1:1.42
	REL9_0_ALPHA5_BRANCH:1.42.0.14
	REL9_0_ALPHA5:1.42
	REL7_4_28:1.27.2.2
	REL8_0_24:1.40
	REL8_1_20:1.40
	REL8_2_16:1.40.8.1
	REL8_3_10:1.42
	REL8_4_3:1.42
	REL9_0_ALPHA4:1.42
	REL9_0_ALPHA4_BRANCH:1.42.0.12
	REL8_5_ALPHA3:1.42
	REL8_5_ALPHA3_BRANCH:1.42.0.10
	REL7_4_27:1.27.2.2
	REL8_0_23:1.40
	REL8_1_19:1.40
	REL8_2_15:1.40.8.1
	REL8_3_9:1.42
	REL8_4_2:1.42
	REL8_5_ALPHA2:1.42
	REL8_5_ALPHA2_BRANCH:1.42.0.8
	REL7_4_26:1.27.2.2
	REL8_0_22:1.40
	REL8_1_18:1.40
	REL8_2_14:1.40.8.1
	REL8_3_8:1.42
	REL8_4_1:1.42
	REL8_5_ALPHA1:1.42
	REL8_5_ALPHA1_BRANCH:1.42.0.6
	REL8_4_STABLE:1.42.0.4
	REL8_4_0:1.42
	REL8_4_RC2:1.42
	REL8_4_RC1:1.42
	REL8_4_BETA2:1.42
	REL8_4_BETA1:1.42
	REL7_4_25:1.27.2.2
	REL8_0_21:1.40
	REL8_1_17:1.40
	REL8_2_13:1.40.8.1
	REL8_3_7:1.42
	REL7_4_24:1.27.2.2
	REL8_0_20:1.40
	REL8_1_16:1.40
	REL8_2_12:1.40.8.1
	REL8_3_6:1.42
	REL7_4_23:1.27.2.2
	REL8_0_19:1.40
	REL8_1_15:1.40
	REL8_2_11:1.40.8.1
	REL8_3_5:1.42
	REL7_4_22:1.27.2.2
	REL8_0_18:1.40
	REL8_1_14:1.40
	REL8_2_10:1.40.8.1
	REL8_3_4:1.42
	REL7_4_21:1.27.2.2
	REL8_0_17:1.40
	REL8_1_13:1.40
	REL8_2_9:1.40.8.1
	REL8_3_3:1.42
	REL7_4_20:1.27.2.2
	REL8_0_16:1.40
	REL8_1_12:1.40
	REL8_2_8:1.40.8.1
	REL8_3_2:1.42
	REL8_2_7:1.40.8.1
	REL8_3_1:1.42
	REL8_3_STABLE:1.42.0.2
	REL8_3_0:1.42
	REL8_3_RC2:1.42
	REL7_3_21:1.11
	REL7_4_19:1.27.2.2
	REL8_0_15:1.40
	REL8_1_11:1.40
	REL8_2_6:1.40.8.1
	REL8_3_RC1:1.42
	REL8_3_BETA4:1.42
	REL8_3_BETA3:1.42
	REL8_3_BETA2:1.42
	REL8_3_BETA1:1.42
	REL7_3_20:1.11
	REL7_4_18:1.27.2.2
	REL8_0_14:1.40
	REL8_1_10:1.40
	REL8_2_5:1.40.8.1
	REL7_3_19:1.11
	REL7_4_17:1.27.2.2
	REL8_0_13:1.40
	REL8_1_9:1.40
	REL8_2_4:1.40.8.1
	REL8_0_12:1.40
	REL8_1_8:1.40
	REL8_2_3:1.40.8.1
	REL7_3_18:1.11
	REL7_4_16:1.27.2.2
	REL8_0_11:1.40
	REL8_1_7:1.40
	REL8_2_2:1.40.8.1
	REL8_0_10:1.40
	REL8_1_6:1.40
	REL8_2_1:1.40.8.1
	REL7_4_15:1.27.2.2
	REL7_3_17:1.11
	REL8_2_STABLE:1.40.0.8
	REL8_2_0:1.40
	REL8_2_RC1:1.40
	REL8_2_BETA3:1.40
	REL8_2_BETA2:1.40
	REL8_1_5:1.40
	REL8_0_9:1.40
	REL7_4_14:1.27.2.2
	REL7_3_16:1.11
	REL8_2_BETA1:1.40
	REL7_3_15:1.11
	REL7_4_13:1.27.2.2
	REL8_0_8:1.40
	REL8_1_4:1.40
	REL7_3_14:1.11
	REL7_4_12:1.27.2.2
	REL8_0_7:1.40
	REL8_1_3:1.40
	REL7_3_13:1.11
	REL7_4_11:1.27.2.2
	REL8_0_6:1.40
	REL8_1_2:1.40
	REL7_3_12:1.11
	REL7_4_10:1.27.2.2
	REL8_0_5:1.40
	REL8_1_1:1.40
	REL8_1_STABLE:1.40.0.6
	REL8_1_0:1.40
	REL8_1_0RC1:1.40
	REL8_1_0BETA4:1.40
	REL8_1_0BETA3:1.40
	REL7_3_11:1.11
	REL7_4_9:1.27.2.2
	REL8_0_4:1.40
	REL8_1_0BETA2:1.40
	REL8_1_0BETA1:1.40
	REL7_2_8:1.9
	REL7_3_10:1.11
	REL7_4_8:1.27.2.2
	REL8_0_3:1.40
	REL8_0_2:1.40
	REL7_2_7:1.9
	REL7_3_9:1.11
	REL7_4_7:1.27.2.2
	REL8_0_1:1.40
	REL8_0_STABLE:1.40.0.4
	REL8_0_0:1.40.0.2
	REL8_0_0RC5:1.40
	REL8_0_0RC4:1.40
	REL8_0_0RC3:1.40
	REL8_0_0RC2:1.40
	REL8_0_0RC1:1.39
	REL8_0_0BETA5:1.37
	REL8_0_0BETA4:1.37
	REL7_4_6:1.27.2.2
	REL7_3_8:1.11
	REL7_2_6:1.9
	REL8_0_0BETA3:1.37
	REL8_0_0BETA2:1.37
	REL7_2_5:1.9
	REL7_4_5:1.27.2.2
	REL7_3_7:1.11
	REL7_4_4:1.27.2.2
	REL8_0_0BETA1:1.37
	REL7_4_3:1.27.2.2
	REL7_4_2:1.27.2.2
	REL7_3_6:1.11
	REL7_4_1:1.27.2.2
	REL7_3_5:1.11
	REL7_4:1.27.2.2
	REL7_4_RC2:1.27.2.2
	REL7_4_STABLE:1.27.0.2
	REL7_4_RC1:1.27
	REL7_4_BETA5:1.26
	REL7_4_BETA4:1.24
	REL7_4_BETA3:1.22
	REL7_4_BETA2:1.17
	WIN32_DEV:1.14.0.2
	REL7_4_BETA1:1.11
	REL7_3_4:1.11
	REL7_3_2:1.11
	REL7_2_4:1.9
	REL7_3_STABLE:1.11.0.2
	REL7_2_3:1.9
	REL7_2_STABLE:1.9.0.4
	REL7_2:1.9
	REL7_2_RC2:1.9
	REL7_2_RC1:1.9
	REL7_2_BETA5:1.9
	REL7_2_BETA4:1.9
	REL7_2_BETA3:1.9
	REL7_2_BETA2:1.9
	REL7_2_BETA1:1.9
	REL7_1_2:1.9
	REL7_1_STABLE:1.9.0.2
	REL7_1_BETA:1.9
	REL7_1_BETA3:1.9
	REL7_1_BETA2:1.9
	REL7_1:1.9
	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.42
date	2007.07.16.17.38.48;	author neilc;	state Exp;
branches;
next	1.41;

1.41
date	2006.12.14.21.49.54;	author tgl;	state Exp;
branches;
next	1.40;

1.40
date	2004.12.19.04.09.48;	author momjian;	state Exp;
branches
	1.40.8.1;
next	1.39;

1.39
date	2004.12.02.18.11.40;	author momjian;	state Exp;
branches;
next	1.38;

1.38
date	2004.11.27.05.03.26;	author momjian;	state Exp;
branches;
next	1.37;

1.37
date	2004.05.14.16.29.12;	author momjian;	state Exp;
branches;
next	1.36;

1.36
date	2004.05.13.15.44.05;	author momjian;	state Exp;
branches;
next	1.35;

1.35
date	2004.05.13.14.07.19;	author momjian;	state Exp;
branches;
next	1.34;

1.34
date	2004.04.26.04.04.42;	author momjian;	state Exp;
branches;
next	1.33;

1.33
date	2004.04.23.18.15.55;	author momjian;	state Exp;
branches;
next	1.32;

1.32
date	2004.03.22.14.53.43;	author momjian;	state Exp;
branches;
next	1.31;

1.31
date	2004.03.18.23.23.58;	author momjian;	state Exp;
branches;
next	1.30;

1.30
date	2004.02.11.21.44.06;	author momjian;	state Exp;
branches;
next	1.29;

1.29
date	2003.11.05.07.42.31;	author petere;	state Exp;
branches;
next	1.28;

1.28
date	2003.11.05.00.09.08;	author petere;	state Exp;
branches;
next	1.27;

1.27
date	2003.10.25.15.32.11;	author petere;	state Exp;
branches
	1.27.2.1;
next	1.26;

1.26
date	2003.10.09.14.40.37;	author momjian;	state Exp;
branches;
next	1.25;

1.25
date	2003.10.09.03.20.34;	author momjian;	state Exp;
branches;
next	1.24;

1.24
date	2003.09.27.16.24.45;	author momjian;	state Exp;
branches;
next	1.23;

1.23
date	2003.09.27.15.32.48;	author momjian;	state Exp;
branches;
next	1.22;

1.22
date	2003.09.13.14.49.51;	author momjian;	state Exp;
branches;
next	1.21;

1.21
date	2003.09.03.20.54.21;	author momjian;	state Exp;
branches;
next	1.20;

1.20
date	2003.09.03.20.51.40;	author momjian;	state Exp;
branches;
next	1.19;

1.19
date	2003.09.03.17.55.43;	author momjian;	state Exp;
branches;
next	1.18;

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

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

1.16
date	2003.08.24.23.21.05;	author momjian;	state Exp;
branches;
next	1.15;

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

1.14
date	2003.08.14.21.24.38;	author momjian;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	2003.08.14.21.14.17;	author momjian;	state Exp;
branches;
next	1.12;

1.12
date	2003.08.13.23.59.49;	author momjian;	state Exp;
branches;
next	1.11;

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

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

1.9
date	2000.10.22.22.15.09;	author petere;	state Exp;
branches;
next	1.8;

1.8
date	2000.10.21.22.36.14;	author petere;	state Exp;
branches;
next	1.7;

1.7
date	2000.10.21.17.07.31;	author momjian;	state Exp;
branches;
next	1.6;

1.6
date	2000.10.21.15.50.32;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	2000.07.15.15.54.52;	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.09.13.04.00.44;	author momjian;	state Exp;
branches;
next	1.2;

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

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

1.14.2.1
date	2003.09.07.04.37.12;	author momjian;	state Exp;
branches;
next	;

1.27.2.1
date	2003.11.05.00.09.25;	author petere;	state Exp;
branches;
next	1.27.2.2;

1.27.2.2
date	2003.11.05.07.42.18;	author petere;	state Exp;
branches;
next	;

1.40.8.1
date	2006.12.14.21.50.07;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.42
log
@With the native compiler on Unixware, disable optimization if
--enable-debug is used, to avoid complaints about debugging and
optimization being mutually exclusive. Patch from Stefan Kaltenbrunner.
@
text
@if test "$GCC" != yes; then
  # The -Kno_host is for a bug in the compiler.  See -hackers
  # discussion on 7-8/Aug/2003.
  cat >conftest.c <<__EOF__
extern char *strcpy(char *, const char *);

static void f(char *p, int n){
        strcpy(p+n,"");
}
void g(void){
        f(0, 0);
}
__EOF__

  # Debugging and optimization are mutually exclusive
  if test "$enable_debug" != yes; then
    CFLAGS="-O"
  fi
  if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
    CFLAGS="$CFLAGS -Kinline"
  else
    CFLAGS="$CFLAGS -Kinline,no_host"
  fi
  rm -f conftest.*

  PTHREAD_CFLAGS="-Kpthread"

# The effect of doing threading for the backend does not work
# because of a threading bug that appears in the regression tests:
#
# in make check, the plpgsql test (plpgsql.sql)
# set statement_timeout to 1000;
# select blockme();
# reset statement_timeout;
#
# per report from Olivier PRENANT <ohp@@pyrenet.fr>

fi

# Unixware's ldap library reportedly needs these too
EXTRA_LDAP_LIBS="-llber -lresolv"
@


1.41
log
@Make --with-ldap build on Unixware, per Olivier Prenant.
@
text
@d15 4
d20 1
a20 1
    CFLAGS="-O -Kinline"
d22 1
a22 1
    CFLAGS="-O -Kinline,no_host"
@


1.40
log
@Mention why unixware doesn't handle threading in 8.0.
@
text
@d35 3
@


1.40.8.1
log
@Make --with-ldap build on Unixware, per Olivier Prenant.
@
text
@a34 3

# Unixware's ldap library reportedly needs these too
EXTRA_LDAP_LIBS="-llber -lresolv"
@


1.39
log
@Don't bother adding to cflags/cppflags, just set them because configure
handles that, and make solaris debug use no optimization.
@
text
@d23 11
@


1.38
log
@Add to CPPFLAGS/CFLAGS in template files, don't over-ride them.
@
text
@d16 1
a16 1
    CFLAGS="$CFLAGS -O -Kinline"
d18 1
a18 1
    CFLAGS="$CFLAGS -O -Kinline,no_host"
@


1.37
log
@Remove extra 'then'.
@
text
@d16 1
a16 1
    CFLAGS="-O -Kinline"
d18 1
a18 1
    CFLAGS="-O -Kinline,no_host"
@


1.36
log
@No need for gcc thread stuff anymore, only cc.
@
text
@a1 1
then
@


1.35
log
@Remove warning about Unixware.
@
text
@d1 2
a2 3
if test "$GCC" = yes; then
  PTHREAD_CFLAGS="-pthread"
else
@


1.34
log
@Unconditionally define:

	-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS

for all ports.  It can't hurt if they are not supported, but it makes
our job easier for porting.

Should fix Darwin compile and other platforms without mucking with the
thread detection code.
@
text
@a25 3

# Disabled because flags are required for all apps using libpq.
# Waiting to see if other platforms need this too.  2004-03-22
@


1.33
log
@Add new auto-detection of thread flags.

Allow additional thread flags to be added via port templates.

Change thread flag names to PTHREAD_CFLAGS and PTHREAD_LIBS to match new
configure script.
@
text
@a26 3
# tools/thread/thread_test must be run
PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT"

@


1.32
log
@Disasble threads on unixware until other platforms report a problem.
@
text
@d2 1
a2 1
  THREAD_CPPFLAGS="-pthread"
d24 1
a24 1
  THREAD_CPPFLAGS="-K pthread"
d28 1
a28 1
THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT"
a31 6
#THREAD_SUPPORT=yes
# verified UnixWare 7.1.4 2004-03-18
STRERROR_THREADSAFE=yes
GETPWUID_THREADSAFE=yes
GETHOSTBYNAME_THREADSAFE=yes

@


1.31
log
@Add Unixware thread support from Larry Rosenman.
@
text
@d30 3
a32 1
THREAD_SUPPORT=yes
@


1.30
log
@Check and set thread-safe functions separately, rather than as a single
variable.

Remove thread locking for non-thread-safe functions, instead throw a
compile error.

Platforms will have to re-run tools/thread to record their thread
safety.
@
text
@d29 7
@


1.29
log
@Add -O to really trigger compiler bug.
@
text
@d27 1
a27 2
THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=no		# verified 7.1.3 2003-09-03
@


1.28
log
@Add detection of compiler bug.
@
text
@d17 1
a17 1
  if $CC -c -Kinline conftest.c >conftest.err 2>&1; then
@


1.27
log
@Fix CFLAGS selection to actually work.  Add test to detect whether gcc's
option -fno-strict-aliasing is available.
@
text
@d4 20
a23 4
# the -Kno_host is temporary for a bug in the compiler.  See -hackers
# discussion on 7-8/Aug/2003.
# when the 7.1.3UP3 or later compiler is out, we can do a version check.
  CFLAGS="-O -Kinline,no_host"
@


1.27.2.1
log
@Add detection of compiler bug.
@
text
@d4 4
a7 20
  # The -Kno_host is for a bug in the compiler.  See -hackers
  # discussion on 7-8/Aug/2003.
  cat >conftest.c <<__EOF__
extern char *strcpy(char *, const char *);

static void f(char *p, int n){
        strcpy(p+n,"");
}
void g(void){
        f(0, 0);
}
__EOF__

  if $CC -c -Kinline conftest.c >conftest.err 2>&1; then
    CFLAGS="-O -Kinline"
  else
    CFLAGS="-O -Kinline,no_host"
  fi
  rm -f conftest.*

@


1.27.2.2
log
@Add -O to really trigger compiler bug.
@
text
@d17 1
a17 1
  if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
@


1.26
log
@Make template CFLAGS handling consistent.
@
text
@d7 1
a7 1
  CFLAGS="$CFLAGS -O -Kinline,no_host"
@


1.25
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
@d7 1
a7 1
  CFLAGS='-O -Kinline,no_host'
@


1.24
log
@Finalize configuration of thread_test program.
@
text
@a1 1
  CFLAGS=-O2
@


1.23
log
@Rename thread compile flag.  Move thread test program to tools/thread,
and improve tests.
@
text
@d12 1
a12 1
SUPPORTS_THREADS=yes
@


1.22
log
@Attempt threading in this order:

 *      use non-*_r function names if they are all thread-safe
 *          (NEED_REENTRANT_FUNCS=no)
 *      use *_r functions if they exist (configure test)
 *      do our own locking and copying of non-threadsafe functions

New to this patch is the last option.
@
text
@d3 1
a3 1
  THREAD_CFLAGS="-pthread"
d9 1
a9 1
  THREAD_CFLAGS="-K pthread"
d14 1
a14 1
THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
@


1.21
log
@Mark unixware as verified.
@
text
@d13 1
a13 1
NEED_REENTRANT_FUNC_NAMES=no	# verified 7.1.3 2003-09-03
@


1.20
log
@Add Unixware as verified.
@
text
@d13 1
a13 1
NEED_REENTRANT_FUNC_NAMES=no	# verified 2003-09-03
@


1.19
log
@Mark Unixware as not requiring *_r functions.
@
text
@d13 1
a13 1
NEED_REENTRANT_FUNC_NAMES=no
@


1.18
log
@Fix unixware template --- had spaces around equals.
@
text
@d13 1
a13 1
NEED_REENTRANT_FUNC_NAMES=yes
@


1.17
log
@Fix unixware thread test.
@
text
@d14 1
a14 1
THREAD_CFLAGS = "$THREAD_CFLAGS -D_REENTRANT"
@


1.16
log
@Add quotes to += of unixware threads define.
@
text
@d14 1
a14 1
THREAD_CFLAGS += "-D_REENTRANT"
@


1.15
log
@Make NEED_REENTRANT_FUNC_NAMES _require_ *_r functions, and add tests to
configure to report if they are not found.
@
text
@d14 1
a14 1
THREAD_CFLAGS += -D_REENTRANT
@


1.14
log
@Adjustment for unixware threading.
@
text
@d13 1
a14 1
NEED_REENTRANT_FUNC_NAMES=yes
@


1.14.2.1
log
@Update this branch to match CVS head, includes WIN32 improvements.
@
text
@d13 2
a14 2
NEED_REENTRANT_FUNC_NAMES=no	# verified 7.1.3 2003-09-03
THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
@


1.13
log
@Mark unixware as having threaded support.
@
text
@d3 1
d9 1
d13 1
a13 1
THREAD_CFLAGS="-D_REENTRANT -K pthread"
@


1.12
log
@Adjust for compiler options for compiler bug.

Larry Rosenman
@
text
@d9 4
@


1.11
log
@Remove leftovers from subproject removals.  Fixes for Python and Kerberos
configuration.
@
text
@d4 4
a7 1
  CFLAGS='-O -K inline'
@


1.10
log
@Move CXX platform-specific stuff into template files.
@
text
@a5 1
VENDOR_CXXFLAGS="-O"
@


1.9
log
@Makeover for Unixware 7.1.1

* Makefile: Add more standard targets.  Improve shell redirection in GNU
make detection.
* src/backend/access/transam/rmgr.c: Fix incorrect(?) C.
* src/backend/libpq/pqcomm.c (StreamConnection): Work around accept() bug.
* src/include/port/unixware.h: ...with help from here.
* src/backend/nodes/print.c (plannode_type): Remove some "break"s after
"return"s.
* src/backend/tcop/dest.c (DestToFunction): ditto.
* src/backend/nodes/readfuncs.c: Add proper prototypes.
* src/backend/utils/adt/numutils.c (pg_atoi): Cope specially with strtol()
setting EINVAL. This saves us from creating an extra set of regression test
output for the affected systems.
* src/include/storage/s_lock.h (tas): Correct prototype.
* src/interfaces/libpq/fe-connect.c (parseServiceInfo): Don't use variable
as dimension in array definition.
* src/makefiles/Makefile.unixware: Add support for GCC.
* src/template/unixware: same here
* src/test/regress/expected/abstime-solaris-1947.out: Adjust whitespace.
* src/test/regress/expected/horology-solaris-1947.out: Part of this file
was evidently missing.
* src/test/regress/pg_regress.sh: Fix shell.  mkdir -p returns non-zero if
the directory exists.
* src/test/regress/resultmap: Add entries for Unixware.
@
text
@d6 1
@


1.8
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
@d1 5
a5 3
CFLAGS='-O -K host,inline,loop_unroll,alloca -Dsvr4'
SRCH_INC='/opt/include'
SRCH_LIB='/opt/lib'
@


1.7
log
@Remove CC and CXX.
@
text
@a0 1
AROPT=crs
a1 1
SHARED_LIB='-K PIC'
a3 1
DLSUFFIX=.so
@


1.6
log
@Per my ongoing discussion with PeterE, here is the patch I applied to
src/template/unixware:

Larry Rosenman
@
text
@a6 2
CC=cc
CXX=CC
@


1.5
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
@d2 1
a2 1
CFLAGS='-O -K i486,host,inline,loop_unroll,alloca -Dsvr4'
d7 2
@


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
@d1 6
a6 7
AROPT:crs
CFLAGS:-O -K i486,host,inline,loop_unroll,alloca -Dsvr4
SHARED_LIB:-K PIC
SRCH_INC:/opt/include
SRCH_LIB:/opt/lib
DLSUFFIX:.so
CC:cc
@


1.3
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
a7 1
YFLAGS:-d
@


1.2
log
@
Here are additional patches for the UnixWare 7 port.

Summary of changes:

In pqcomm.h, use the SUN_LEN macro if it is defined to calculate
the size of the sockaddr_un structure.

In unixware.h, drop the use of the UNIXWARE macro.  Everything can
be handled with the USE_UNIVEL_CC and DISABLE_COMPLEX_MACRO macros.

In s_lock.h, remove the reference to the UNIXWARE macro (see above).

In the unixware template, add the YFLAGS:-d line.

In various makefile templates, add (or cleanup) unixware and univel
port specific information.

-- Billy G. Allie
@
text
@d2 1
a2 1
CFLAGS:-Xa -v -O -K i486,host,inline,loop_unroll,alloca -Dsvr4
@


1.1
log
@My mailer munged the intro text in my last post.  Here is the text
in a more readable form.  -- I am submitting the following patches
to the June 6, 1998 snapshot of PostgreSQL.  These patches implement
a port of PostgreSQL to SCO UnixWare 7, and updates the Univel port
(UnixWare 2.x).  The patched files, and the reason
 for the patch are:

File            Reason for the patch ---------------
---------------------------------------------------------------
src/backend/port/dynloader/unixware.c src/backend/port/dynloader/unixware.h
src/include/port/unixware.h src/makefiles/Makefile.unixware
src/template/unixware
		Created for the UNIXWARE port.

src/include/port/univel.h
		Modifed this file to work with the changes made to
		s_lock.[ch].

src/backend/storage/buffer/s_lock.c src/include/storage/s_lock.h
		Moved the UNIXWARE (and Univel) tas() function from
		s_lock.c to s_lock.h.  The UnixWare compiler asm
		construct is treated as a macro and needs to be in
		the s_lock.h file.  I also reworked the tas()
		function to correct some errors in the code.

src/include/version.h.in
		The use of the ## operator with quoted strings in
		the VERSION macro caused problems with the UnixWare
		C compiler.  I removed the ## operators since they
		were not needed in this case.  The macro expands
		into a sequence of quoted strings that will be
		concatenated by any ANSI C compiler.

src/config.guess
		This script was modified to recognize SCO UnixWare
		7.

src/configure src/configure.in
		The configure script was modified to recognize SCO
		UnixWare 7.

Billy G. Allie
@
text
@d4 2
a5 2
SRCH_INC:
SRCH_LIB:
d9 1
@
