Commit Graph

290 Commits

Author SHA1 Message Date
Tom Lane 9d197856dd Rearrange handling of MAXBACKENDS a little bit. The default setting
of MAXBACKENDS is now 1024, since all it's costing is about 32 bytes of memory
per array slot.  configure's --with-maxbackends switch now controls DEF_MAXBACKENDS
which is simply the default value of the postmaster's -N switch.  Thus,
the out-of-the-box configuration will still limit you to 64 backends,
but you can go up to 1024 backends simply by restarting the postmaster with
a different -N switch --- no rebuild required.
1999-02-21 01:41:55 +00:00
Tom Lane e77b630cf0 Allow maximum number of backends to be set at configure time
(--with-maxbackends).  Add a postmaster switch (-N backends) that allows
the limit to be reduced at postmaster start time.  (You can't increase it,
sorry to say, because there are still some fixed-size arrays.)
Grab the number of semaphores indicated by min(MAXBACKENDS, -N) at
postmaster startup, so that this particular form of bogus configuration
is exposed immediately rather than under heavy load.
1999-02-19 06:06:39 +00:00
Tom Lane 724119a979 Modify int8 to not depend on sscanf(), and fix configure's test
for int8 support.  configure now checks only snprintf() for int8 support,
not sprintf and sscanf as it used to.  The reason for doing this is that
if we are supplying our own snprintf code (which does handle long long int),
we now only need working long long support in the compiler not in the
platform's C library.  I have verified that int8 now passes regression test
on HPUX 9, and I think it should work on SunOS 4.1.* and other older
platforms if gcc is used.
1999-02-03 00:18:53 +00:00
Marc G. Fournier 6ca2bf6534 freebsd4.0 needed to be added to configure... 1999-02-01 02:52:23 +00:00
Bruce Momjian 7a6b562fdf Apply Win32 patch from Horak Daniel. 1999-01-17 06:20:06 +00:00
Tom Lane 7fab608205 Add configure test to see whether vsnprintf() is present,
separately from snprintf() --- HPUX, for one, has snprintf but not
vsnprintf.  Fix a minor typo in snprintf.c, too.
1999-01-17 03:22:52 +00:00
Bruce Momjian d73cf044f6 autoconf 1998-12-28 05:41:51 +00:00
Tom Lane a10b38f255 Use standard AC_PROG_INSTALL macro to search for install program,
instead of our own halfway-there code.  Add AC_STRUCT_TIMEZONE call
to check whether tm_zone exists in struct tm.  Revise reading of template
file so that templates can define any variables they feel like (and,
indeed, can execute arbitrary shell code) rather than being constrained
to a fixed set of variable names.
1998-12-13 20:03:07 +00:00
Tom Lane b10a719777 Use autoconf to determine whether system has POSIX signals,
instead of relying on port's os.h to tell us.  (Needed for HPUX
where system major version is not enough info.)
configure unsets USE_TK if X libraries not found.
doc/Makefile uses gzcat or zcat as found by autoconf.
1998-11-29 05:30:25 +00:00
Tom Lane 6fef1a26cc modify configure so that template/.similar entries can be
selected when they match a prefix of the  value.  The previous method,
which stripped all version data from  and then tried to match that
against .similar entries, was entirely useless when .similar contained
several entries for different version numbers of a single OS name.
1998-11-23 04:40:58 +00:00
Marc G. Fournier c200938343 slight mods required for freebsd (elf vs aout stuff) 1998-11-02 05:30:10 +00:00
Marc G. Fournier 585442154a oops, forgot one part of the patch...remove 'false' setting to ELF_SYS... 1998-10-31 04:07:00 +00:00
Marc G. Fournier 15d61bb439 Minor FreeBSD fixes put in place
From: SHIOZAKI Takehiko <takehi-s@ascii.co.jp>

I tried snapshot(Oct30) and made some patches.
# I think that it is confused to manage both Makefile.shlib and
# makefiles/Makefile.*, don't you?

* configure
        Now FreeBSD 2.X is not supported..., so I added its entry.
        If ELF_SYSTEM is set, gmake treat it defined even though
        it is "false".  So nothing should be set to use "ifdef".
        BSD_SHLIB etc. may have same problems.

* Makefile.shlib
        As you said, FreeBSD entry is much like BSD's.
        I only added ELF_SYSTEM code.

* makefiles/Makefile.freebsd
        Ifdef/else/endif can not be indented with TABs.
1998-10-31 03:58:55 +00:00
Tom Lane 47ea32f7d4 Mention --without-CXX option in online help. 1998-10-30 22:36:00 +00:00
Marc G. Fournier 4283089d07 Okay, this shoudl provide a fix for the freebsd problem...
Added a ELF_SYS variable and check to configure.in...
1998-10-30 04:54:06 +00:00
Tom Lane a91c019c06 Drat. Should test a few more cases before committing. 1998-10-29 18:15:28 +00:00
Tom Lane 1145d007bf Run autoconf. 1998-10-29 17:58:21 +00:00
Tom Lane 8acc682552 Autoconf... 1998-10-28 19:40:08 +00:00
Marc G. Fournier 949953060a Starting with v3.0 of FreeBSD, we are now an elf system, and dont' have a
-Bforcearchive flag for ld...

Give FreeBSD its own special Makefile to get around the "bug"
1998-10-27 04:32:02 +00:00
Tom Lane 51239ba51e Run autoconf 1998-10-26 00:56:47 +00:00
Bruce Momjian e7cbcf23c4 autoconf 1998-10-23 02:52:09 +00:00
Tom Lane 14f4ca009c run autoconf 1998-10-18 19:16:50 +00:00
Bruce Momjian a00dcabc6e autoconf 1998-10-18 04:19:05 +00:00
Tom Lane 164510289e Still another round of Perl-module installation tweaks.
This time, src/interfaces/perl5/Makefile.PL no longer needs to be autoconf'd.
1998-10-18 02:34:34 +00:00
Bruce Momjian 7483856772 autoconf 1998-10-16 04:46:37 +00:00
Bruce Momjian 3f20878791 autoconf 1998-10-15 16:01:45 +00:00
Thomas G. Lockhart fe6d19f15f Add Taral's test for flags required by the detected cpp program to read
from stdin. Necessary at least for systems missing cpp but having gcc -E.
Include new configured file backend/catalog/genbki.sh.
1998-10-14 16:02:11 +00:00
Marc G. Fournier 4fff1dada7 From: Peter Gucwa <pg@softcomputer.com>
Here are patches needed to complie under AIX 4.2.
I changed configure.in, pqcomm.c, config.h.in, and fe-connect.c.
Also I had to install flex because lex did not want to translate pgc.l.
1998-10-13 20:44:49 +00:00
Marc G. Fournier cd3a8e232c change configure so that if postgresql isn't being installed as root,
do not configure in the perl5 interface.

the perl5 interface needs to be installed under /usr/local/lib/perl5/*, which
is generally owned by root.  This allows a non-root build/install with the
only root requirement being the make/install of hte perl5 stuff...
1998-10-13 17:26:50 +00:00
Bruce Momjian 8c586b2a2a auytoconf 1998-10-13 16:34:01 +00:00
Bruce Momjian fbcda7b4a7 autoconf 1998-10-12 19:56:24 +00:00
Bruce Momjian af7e03997b autoconf 1998-10-12 14:44:46 +00:00
Bruce Momjian 51fd8dd36a autoconf 1998-10-12 04:11:03 +00:00
Bruce Momjian d32c89bbb8 plpgsql fixes from Billy G. Allie 1998-10-12 02:44:10 +00:00
Bruce Momjian 7a9312b422 Tcl fixes from Billy G. Allie 1998-10-12 02:41:01 +00:00
Bruce Momjian 8a7bec3d45 autoconf 1998-10-12 02:01:41 +00:00
Bruce Momjian 878f9dbb66 autoconf 1998-10-09 17:34:57 +00:00
Bruce Momjian ada4cfce29 configure cleanup 1998-10-09 17:31:39 +00:00
Bruce Momjian edcf5a7eba autoconf 1998-10-09 16:59:43 +00:00
Thomas G. Lockhart 25f90202f7 Adjustments for standalone and integrated ODBC. 1998-10-09 07:01:26 +00:00
Bruce Momjian 76392f8cc4 Autoconf 1998-10-09 00:51:50 +00:00
Thomas G. Lockhart 608dbb1b3e Separate out the lextest so that it is run by "make" and "make install".
Before, "make install" did not run the lextest.
Fix up the ODBC make from this main configure.
Include configure test for "ln -s" in Makefile.global.in.
 Was always in configure, just not carried through to here for use.
1998-10-07 06:38:29 +00:00
Thomas G. Lockhart 72129e98ce Try to configure interfaces/odbc using the --with-odbc switch.
Suppress installing man pages from here; do it from the doc/Makefile now.
1998-10-06 05:42:58 +00:00
Tom Lane e7e027a6c9 Add configure test to make sure fcntl(SETLK) is available. 1998-10-06 02:32:28 +00:00
Tom Lane 3512284bda Our 'install-sh' script is BSD-style, therefore requires -c
to behave sanely.  configure was not treating it as BSD...
1998-10-04 18:28:10 +00:00
Bruce Momjian b0297d806b autoconf 1998-09-20 05:01:04 +00:00
Bruce Momjian 5f7fb67789 autoconf 1998-09-11 17:21:20 +00:00
Bruce Momjian b3e72e518e autoconf 1998-09-11 17:08:22 +00:00
Bruce Momjian 339d2769a1 autoconf 1998-09-11 16:50:20 +00:00
Bruce Momjian 3a9c626a86 autoconf 1998-09-10 05:40:16 +00:00
Bruce Momjian f4c222f986 cleanup 1998-09-10 03:54:07 +00:00
Bruce Momjian 01b16f88e6 autoconf 1998-09-10 03:33:32 +00:00
Bruce Momjian e57cfd81d1 autoconf 1998-09-02 02:38:29 +00:00
Bruce Momjian 5ab8a4ee6e Fix for install path 1998-09-02 02:34:00 +00:00
Bruce Momjian 566cd87873 update 1998-09-02 02:08:02 +00:00
Bruce Momjian ec47d20cf9 autoconf 1998-09-02 02:00:07 +00:00
Bruce Momjian b07f4b4efb Configure fix for install script search. 1998-09-02 01:54:18 +00:00
Marc G. Fournier 91178b8b2e From: Tom Lane <tgl@sss.pgh.pa.us>
We're carrying around a copy of install-sh in case the local system
has no install script.  It's wasted baggage, because configure doesn't
know it's there :-(.  (Apparently everyone who's used postgres lately
already had an install script somewhere in their path.  I happened to
try to run configure with a minimal PATH tonight, and it promptly
gave up for lack of an install program.)  Here's the patch.
1998-08-30 19:41:50 +00:00
Bruce Momjian e875dfb81e autoconf 1998-08-30 03:25:22 +00:00
Bruce Momjian a06ba33cfd int64 fix 1998-08-25 02:23:58 +00:00
Bruce Momjian f821eece80 autoconf 1998-08-24 15:43:50 +00:00
Bruce Momjian 4d0c5506bc autoconf 1998-08-24 04:17:51 +00:00
Bruce Momjian 9438fe5d09 autoconf 1998-08-23 22:36:41 +00:00
Marc G. Fournier 31de2c9461 Fix for SNPRINTF test in configure
From: Tom Lane <tgl@sss.pgh.pa.us>
1998-08-19 00:16:04 +00:00
Bruce Momjian 34aecb3557 run autoconf 1998-08-02 00:34:05 +00:00
Marc G. Fournier 0668aa8817 Adrian Hall reported a problem to me that snprintf() doesn't exist in, at
least, Solaris 2.5.1.  We use it in backend/utils/adt/int8.c.

Add a check to configure so that we see if it exists or not, and, if not,
compile in snprintf.c from backend/port, which was taken from, and falls under
the same Berkeley license as us, the FreeBSD libc/stdio ...
1998-08-01 19:30:29 +00:00
Marc G. Fournier f7f989c990 Missed a few files in the last round of commits from Tatsuo, as well
as needed to run autoconf ...
1998-07-27 03:21:58 +00:00
Bruce Momjian 0624f3dcbd 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
1998-07-19 04:17:13 +00:00
Bruce Momjian 0acc52ae91 utoconf 1998-07-14 03:02:53 +00:00
Bruce Momjian da1ac9ad25 autocoinf 1998-06-18 16:38:59 +00:00
Bruce Momjian c6f18c260d goodbye vfork. 1998-06-17 23:01:58 +00:00
Bruce Momjian cb7cbc16fa Hi, here are the patches to enhance existing MB handling. This time
I have implemented a framework of encoding translation between the
backend and the frontend. Also I have added a new variable setting
command:

SET CLIENT_ENCODING TO 'encoding';

Other features include:
	Latin1 support more 8 bit cleaness

See doc/README.mb for more details. Note that the pacthes are
against May 30 snapshot.

Tatsuo Ishii
1998-06-16 07:29:54 +00:00
Bruce Momjian b4672e29df autoconf 1998-06-16 03:33:31 +00:00
Bruce Momjian 8575afa4f1 run autoconf 1998-06-12 18:44:21 +00:00
Edmund Mergl 0b09955da8 pgsql no more needs to be installed for perl 1998-06-01 16:50:23 +00:00
Marc G. Fournier b2d7c58cb2 1998-05-18 Karl Eichwalder <ke@suse.de>
* configure.in (AC_CHECK_LIB): check for ncurses; if this fails
        check for curses.
1998-05-24 03:54:56 +00:00
Marc G. Fournier 8686b83784 Made a copy of errors with the AC_TRY_RUN() macro...appears to work better
under FreeBSD for DBL_MIN check now...
1998-05-13 04:01:44 +00:00
Marc G. Fournier 9391dd3698 Add a check for DBL_MIN problem...not sure if this is right...needs
testing...
1998-05-13 03:44:48 +00:00
Marc G. Fournier 51a1741cfb From: Jeroen van Vianen <jeroenv@design.nl>
Attached patch will add a version() function to Postges, e.g.

template1=> select version();
version
------------------------------------------------------------
PostgreSQL 6.3.2 on i586-pc-linux-gnu, compiled by gcc 2.8.1
(1 row)
1998-04-29 12:41:29 +00:00
Marc G. Fournier f554af0a9f From: t-ishii@sra.co.jp
Hi, here are patches I promised (against 6.3.2):

* character_length(), position(), substring() are now aware of
          multi-byte characters
* add octet_length()
* add --with-mb option to configure
* new regression tests for EUC_KR
  (contributed by "Soonmyung. Hong" <hong@lunaris.hanmesoft.co.kr>)
* add some test cases to the EUC_JP regression test
* fix problem in regress/regress.sh in case of System V
* fix toupper(), tolower() to handle 8bit chars

note that:

o  patches for both configure.in and configure are
included. maybe the one for configure is not necessary.

o pg_proc.h was modified to add octet_length(). I used OIDs
(1374-1379) for that. Please let me know if these numbers are not
appropriate.
1998-04-27 17:10:50 +00:00
Marc G. Fournier 6d817475b2 From: Tom Lane <tgl@sss.pgh.pa.us>
HP-UX (all versions) requires shared libraries to have execute
permission, and really needs them to be exactly mode 555 for
performance reasons.  The standard configure/install procedure
installs libpq.sl as mode 644, which DOES NOT WORK.

The attached patch modifies the makefiles to distinguish
INSTL_LIB_OPTS (install mode for ordinary libraries) from
INSTL_SHLIB_OPTS (mode for shared libs), and adds a test
to configure to set INSTL_SHLIB_OPTS="-m 555" when on HP-UX.
1998-04-27 14:55:46 +00:00
Bruce Momjian e8fd57d763 Add prper perl config testing. 1998-04-27 03:56:59 +00:00
Bruce Momjian 9260d4b440 template cleanup 1998-04-24 15:58:17 +00:00
Marc G. Fournier f2b64d3593 Clean up configure so that it properly (I hope?) GUESSes the template to
use, if not stipulated via --with-template
1998-04-24 01:19:00 +00:00
Marc G. Fournier 5e6b0a574b Try for a LINUX_ELF fix (bandage?) 1998-04-21 12:38:46 +00:00
Marc G. Fournier 83fd305f78 A few minor mods:
gram.c updated
	scan.c updated
	ecpg/Makefile added LDFLAGS
	configure requires sfio for those systems with it installed...
1998-04-17 03:06:35 +00:00
Marc G. Fournier 2219c230ed Get rid of the TEMPLATE verbosity and make it so that --with-template is
documented in ./configure --help
1998-04-17 01:55:31 +00:00
Marc G. Fournier 8973192283 From: Brook Milligan <brook@trillium.NMSU.Edu>
Here is a pair of patches that (I hope) finish the configuration
issues with tcl/tk and make the recognition of the two packages
completely parallel in organization.  This should make future changes
easier to maintain.

Hope to see this in 6.2.2.
1998-04-17 01:30:21 +00:00
Marc G. Fournier b5bd8c3f08 make --with-libs == --with-libraries 1998-04-10 02:59:38 +00:00
Bruce Momjian 7e12122b40 Oops reverse patch. no need for it. 1998-04-09 04:42:56 +00:00
Bruce Momjian fa785bac3b Allow -lib-dir to find libreadline.a 1998-04-09 04:24:52 +00:00
Marc G. Fournier 4a7b30d126 From: Bruce Stephens <bruce@cenderis.demon.co.uk>
fix for the tk problem...
1998-04-08 02:06:37 +00:00
Bruce Momjian 3da39b3fd2 Update configure. 1998-04-07 21:26:52 +00:00
Bruce Momjian 2ffd727531 ASSERT fixes. 1998-04-06 17:27:54 +00:00
Bruce Momjian 041d2e1ca2 confiure cleanup 1998-04-06 03:10:32 +00:00
Bruce Momjian fdb37f073b this patch solve 2 problemes :
probleme number 1 :

- configure can find the library readline , but don't
  find the header file . so in this case we don't use lib readline
  .

probleme number 2 :

- when you have postgres 6.2.1 and readline installed
  with the same prefix( and generally all your software ) .  you
  can compile the version 6.3 .  I use this prefix , when configure
  ask me for "Additional directories to search for include files"
  .

  ( because there a conflict in the header when you
    compile psql.c ) In this case, you must permut the sequence of
  directive -I .

Erwan MAS
1998-04-05 21:29:49 +00:00
Bruce Momjian 9e45687df5 confiugre.in cleanup. 1998-04-05 20:54:38 +00:00
Bruce Momjian 05102c7551 Here are 3 patches (all relative to the src directory) to help with
the configuration of v6.3.1.  I have replaced the queries for
include/lib directories with --with configuration options.  I have
also included a list of potential tcl/tk include directories directly
in the CPPFLAGS variable.  As new versions are needed, these should
be added to the list in reverse numerical order (libraries are in
a separate list near the end).  This greatly simplifies the later
checks if --with-tcl is set.  I hope this solution works for
everyone.

I also added a check to disable the perl support if postgres was
not already installed (as per the instructions in the directory).
By the way, why must there be an installed pgsql to compile perl
support? This seems odd, at best.

Finally, I changed the Makefile in the libpgtcl interface to place
the shared libraries at the end of the list of files, not at the
beginning.  With NetBSD at least, libraries are linked in order,
so the original sequence does not work.

Brook Milligan
1998-04-05 20:28:23 +00:00
Bruce Momjian 6755026937 A couple of weeks ago I submitted a patch to fix configure --with-tcl.
However somebody else also applied a patch to the same part of
configure to fix a different problem. So part of my patch was not
applied or got reversed or ... whatever.

The attached patch will restore configure --with-tcl to working
order and should remove a lot of the messages complaining about
tcl not working.

Alvin
1998-04-03 20:21:51 +00:00
Marc G. Fournier 91964bd984 resync configure 1998-04-01 18:47:47 +00:00