mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
Various improvements to reduce questions :)
Remove USE_LOCALE from Makefile.global.in Add USE_LOCALE to build/configure/config.h Add check for BUILDRUN in configure to make sure that build is run before configure
This commit is contained in:
parent
4bc578eb83
commit
e3649e9e52
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.15 1997/04/02 18:10:32 scrappy Exp $
|
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.16 1997/04/03 21:25:59 scrappy Exp $
|
||||||
#
|
#
|
||||||
# NOTES
|
# NOTES
|
||||||
# Essentially all Postgres make files include this file and use the
|
# Essentially all Postgres make files include this file and use the
|
||||||
@ -146,11 +146,6 @@ ENFORCE_ALIGNMENT= true
|
|||||||
# Comment out PROFILE to generate a profile version of the binaries
|
# Comment out PROFILE to generate a profile version of the binaries
|
||||||
#PROFILE= -p -non_shared
|
#PROFILE= -p -non_shared
|
||||||
|
|
||||||
# Define USE_LOCALE to get Postgres work (sort, search)
|
|
||||||
# with national alphabet. Remember to define environment variables
|
|
||||||
# $LC_COLLATE and $LC_CTYPE before starting postmaster !
|
|
||||||
USE_LOCALE = 1
|
|
||||||
|
|
||||||
# If you plan to use Kerberos for authentication...
|
# If you plan to use Kerberos for authentication...
|
||||||
#
|
#
|
||||||
# Comment out KRBVERS if you do not use Kerberos.
|
# Comment out KRBVERS if you do not use Kerberos.
|
||||||
@ -721,11 +716,6 @@ ifndef CASSERT
|
|||||||
CFLAGS+= -DNO_ASSERT_CHECKING
|
CFLAGS+= -DNO_ASSERT_CHECKING
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef USE_LOCALE
|
|
||||||
CFLAGS+= -DUSE_LOCALE
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
ifdef PROFILE
|
ifdef PROFILE
|
||||||
CFLAGS+= $(PROFILE)
|
CFLAGS+= $(PROFILE)
|
||||||
LDFLAGS+= $(PROFILE)
|
LDFLAGS+= $(PROFILE)
|
||||||
|
16
src/build
16
src/build
@ -2,6 +2,8 @@
|
|||||||
#
|
#
|
||||||
# PostgreSQL Build Script
|
# PostgreSQL Build Script
|
||||||
#
|
#
|
||||||
|
BUILDRUN=true
|
||||||
|
|
||||||
if echo '\c' | grep -s c >/dev/null 2>&1
|
if echo '\c' | grep -s c >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
ECHO_N="echo -n"
|
ECHO_N="echo -n"
|
||||||
@ -30,14 +32,24 @@ then
|
|||||||
LDFLAGS="$ADD_LIB_DIRS" ; export LDFLAGS
|
LDFLAGS="$ADD_LIB_DIRS" ; export LDFLAGS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
IDIR=/usr/local/pgsql
|
||||||
$ECHO_N "Installation directory [/usr/local/pgsql]: $ECHO_C"
|
$ECHO_N "Installation directory [/usr/local/pgsql]: $ECHO_C"
|
||||||
read a
|
read a
|
||||||
if [ "$a." != "." ]
|
if [ "$a." != "." ]
|
||||||
then
|
then
|
||||||
IDIR=${a}
|
IDIR=${a}
|
||||||
else
|
|
||||||
IDIR=/usr/local/pgsql
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
USE_LOCALE=no
|
||||||
|
echo "Define USE_LOCALE to get Postgres work (sort, search)"
|
||||||
|
$ECHO_N "with national alphabet. [no]: $ECHO_C"
|
||||||
|
read a
|
||||||
|
if [ "$a." != "." ]
|
||||||
|
then
|
||||||
|
USE_LOCALE=${a}
|
||||||
|
fi
|
||||||
|
|
||||||
|
export BUILDRUN USE_LOCALE
|
||||||
|
|
||||||
./configure --prefix=${IDIR}
|
./configure --prefix=${IDIR}
|
||||||
|
|
||||||
|
369
src/configure
vendored
369
src/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,14 @@
|
|||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_INIT(backend/access/common/heaptuple.c)
|
AC_INIT(backend/access/common/heaptuple.c)
|
||||||
AC_CANONICAL_HOST
|
|
||||||
|
if test "$BUILDRUN" != "true"
|
||||||
|
then
|
||||||
|
echo "You must run the build script, which will auto-run configure"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
TR="tr"
|
TR="tr"
|
||||||
|
|
||||||
|
AC_CANONICAL_HOST
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
solaris*)
|
solaris*)
|
||||||
case "$host_cpu" in
|
case "$host_cpu" in
|
||||||
@ -42,6 +49,7 @@ AC_SUBST(TR)
|
|||||||
AC_SUBST(LDFLAGS)
|
AC_SUBST(LDFLAGS)
|
||||||
AC_SUBST(CPPFLAGS)
|
AC_SUBST(CPPFLAGS)
|
||||||
|
|
||||||
|
|
||||||
AC_CONFIG_HEADER(include/config.h)
|
AC_CONFIG_HEADER(include/config.h)
|
||||||
|
|
||||||
dnl Checks for programs.
|
dnl Checks for programs.
|
||||||
@ -83,6 +91,12 @@ AC_SUBST(INSTLOPTS)
|
|||||||
AC_SUBST(INSTL_LIB_OPTS)
|
AC_SUBST(INSTL_LIB_OPTS)
|
||||||
AC_SUBST(INSTL_EXE_OPTS)
|
AC_SUBST(INSTL_EXE_OPTS)
|
||||||
|
|
||||||
|
if test "$USE_LOCALE" = "yes"
|
||||||
|
then
|
||||||
|
AC_MSG_RESULT(setting USE_LOCALE)
|
||||||
|
AC_DEFINE(USE_LOCALE)
|
||||||
|
fi
|
||||||
|
|
||||||
dnl Check the option to echo to inhibit newlines.
|
dnl Check the option to echo to inhibit newlines.
|
||||||
ECHO_N_OUT=`echo -n "" | wc -c`
|
ECHO_N_OUT=`echo -n "" | wc -c`
|
||||||
ECHO_C_OUT=`echo "\c" | wc -c`
|
ECHO_C_OUT=`echo "\c" | wc -c`
|
||||||
|
@ -104,6 +104,9 @@
|
|||||||
/* Set to 1 if you have union semun */
|
/* Set to 1 if you have union semun */
|
||||||
#undef HAVE_UNION_SEMUN
|
#undef HAVE_UNION_SEMUN
|
||||||
|
|
||||||
|
/* Set to 1 if you want to USE_LOCALE */
|
||||||
|
#undef USE_LOCALE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Code below this point should not require changes
|
* Code below this point should not require changes
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user