1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Make DEF_PGPORT available to Makefiles, so it can be substituted into

scripts like pgaccess.
This commit is contained in:
Tom Lane
2001-02-07 20:13:27 +00:00
parent 5add3e8e51
commit a8b9cbfa0e
3 changed files with 11 additions and 6 deletions

View File

@ -223,11 +223,11 @@ AC_MSG_CHECKING([for default port number])
PGAC_ARG_REQ(with, pgport, [ --with-pgport=PORTNUM change default port number [5432]],
[default_port=$withval],
[default_port=5432])
# Need both of these because backend wants an integer and frontend a string
AC_MSG_RESULT([$default_port])
# Need both of these because some places want an integer and some a string
AC_DEFINE_UNQUOTED(DEF_PGPORT, ${default_port})
AC_DEFINE_UNQUOTED(DEF_PGPORT_STR, "${default_port}")
AC_MSG_RESULT([$default_port])
AC_SUBST(default_port)
#
# Maximum number of allowed connections (--with-maxbackends), default 32