提交 72129e98 编写于 作者: T Thomas G. Lockhart

Try to configure interfaces/odbc using the --with-odbc switch.

Suppress installing man pages from here; do it from the doc/Makefile now.
上级 b53d3661
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.29 1998/09/29 12:40:34 scrappy Exp $ # $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.30 1998/10/06 05:42:55 thomas Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -38,9 +38,6 @@ all: ...@@ -38,9 +38,6 @@ all:
$(MAKE) -C interfaces all $(MAKE) -C interfaces all
$(MAKE) -C bin all $(MAKE) -C bin all
$(MAKE) -C pl all $(MAKE) -C pl all
ifneq ($(wildcard man), )
$(MAKE) -C man all
endif
@if test $@. = all. -o $@. = .; then \ @if test $@. = all. -o $@. = .; then \
echo All of PostgreSQL is successfully made. Ready to install. ;\ echo All of PostgreSQL is successfully made. Ready to install. ;\
fi fi
...@@ -51,9 +48,6 @@ install: ...@@ -51,9 +48,6 @@ install:
$(MAKE) -C backend install $(MAKE) -C backend install
$(MAKE) -C bin install $(MAKE) -C bin install
$(MAKE) -C pl install $(MAKE) -C pl install
ifneq ($(wildcard man), )
$(MAKE) -C man install
endif
$(MAKE) -C interfaces install $(MAKE) -C interfaces install
cat ../register.txt cat ../register.txt
...@@ -66,9 +60,6 @@ clean: ...@@ -66,9 +60,6 @@ clean:
$(MAKE) -C pl clean $(MAKE) -C pl clean
$(MAKE) -C test clean $(MAKE) -C test clean
$(MAKE) -C ../contrib/spi clean $(MAKE) -C ../contrib/spi clean
ifneq ($(wildcard man), )
$(MAKE) -C man clean
endif
distclean: clean distclean: clean
rm -f Makefile.global \ rm -f Makefile.global \
...@@ -102,9 +93,6 @@ distclean: clean ...@@ -102,9 +93,6 @@ distclean: clean
$(MAKE) -C interfaces $@ $(MAKE) -C interfaces $@
$(MAKE) -C bin $@ $(MAKE) -C bin $@
$(MAKE) -C pl $@ $(MAKE) -C pl $@
ifneq ($(wildcard man), )
$(MAKE) -C man $@
endif
@if test $@. = all. -o $@. = .; then \ @if test $@. = all. -o $@. = .; then \
echo All of PostgreSQL is successfully made. Ready to install. ;\ echo All of PostgreSQL is successfully made. Ready to install. ;\
fi fi
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.45 1998/07/26 04:30:15 scrappy Exp $ # $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.46 1998/10/06 05:42:56 thomas 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
...@@ -80,6 +80,16 @@ POSTDOCDIR= $(POSTGRESDIR)/doc ...@@ -80,6 +80,16 @@ POSTDOCDIR= $(POSTGRESDIR)/doc
# Where the header files necessary to build frontend programs get installed. # Where the header files necessary to build frontend programs get installed.
HEADERDIR= $(POSTGRESDIR)/include HEADERDIR= $(POSTGRESDIR)/include
# Where the ODBC files get installed.
# This is the root for the actual locations,
# to override /usr/local in the standalone version.
POSTODBCDIR= $(POSTGRESDIR)
# Where the ODBC installation-wide configuration file gets installed.
# This needs to be a client-side readable area, so can't go in $PGDATA.
# - thomas 1998-10-05
ODBCINST= $(POSTGRESDIR)
############################################################################## ##############################################################################
# #
# FEATURES # FEATURES
...@@ -143,6 +153,10 @@ TK_LIB= @TK_LIB@ ...@@ -143,6 +153,10 @@ TK_LIB= @TK_LIB@
USE_PERL= @USE_PERL@ USE_PERL= @USE_PERL@
#
# enable native odbc driver support
USE_ODBC= @USE_ODBC@
X_CFLAGS= @X_CFLAGS@ X_CFLAGS= @X_CFLAGS@
X_LIBS= @X_LIBS@ X_LIBS= @X_LIBS@
X11_LIBS= -lX11 @X_EXTRA_LIBS@ X11_LIBS= -lX11 @X_EXTRA_LIBS@
......
此差异已折叠。
...@@ -169,30 +169,30 @@ fi ...@@ -169,30 +169,30 @@ fi
dnl We have read the default value of USE_LOCALE from the template dnl We have read the default value of USE_LOCALE from the template
dnl file. We have a further option of using dnl file. We have a further option of using
dnl --enable-locale to explicitly enable it dnl --enable-locale to explicitly enable it
dnl It defaults to disabled dnl It defaults to disabled
AC_MSG_CHECKING(setting USE_LOCALE) AC_MSG_CHECKING(setting USE_LOCALE)
AC_ARG_ENABLE( AC_ARG_ENABLE(
locale, locale,
[ --enable-locale enable locale support ], [ --enable-locale enable locale support ],
AC_DEFINE(USE_LOCALE) AC_MSG_RESULT(enabled), AC_DEFINE(USE_LOCALE) AC_MSG_RESULT(enabled),
AC_MSG_RESULT(disabled) AC_MSG_RESULT(disabled)
) )
dnl We exclude cyrillic recode support unless we override it with dnl We exclude cyrillic recode support unless we override it with
dnl --enable-recode to explicitly enable it dnl --enable-recode to explicitly enable it
dnl It defaults to disabled dnl It defaults to disabled
AC_MSG_CHECKING(setting CYR_RECODE) AC_MSG_CHECKING(setting CYR_RECODE)
AC_ARG_ENABLE( AC_ARG_ENABLE(
recode, recode,
[ --enable-recode enable cyrillic recode support ], [ --enable-recode enable cyrillic recode support ],
AC_DEFINE(CYR_RECODE) AC_MSG_RESULT(enabled), AC_DEFINE(CYR_RECODE) AC_MSG_RESULT(enabled),
AC_MSG_RESULT(disabled) AC_MSG_RESULT(disabled)
) )
AC_MSG_CHECKING(setting MULTIBYTE) AC_MSG_CHECKING(setting MULTIBYTE)
AC_ARG_WITH(mb, AC_ARG_WITH(mb,
[ --with-mb=<encoding> enable multi-byte support ], [ --with-mb=<encoding> enable multi-byte support ],
[ [
case "$withval" in case "$withval" in
EUC_JP|EHC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5) EUC_JP|EHC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5)
...@@ -221,7 +221,7 @@ dnl We exclude tcl support unless we override it with --with-tcl ...@@ -221,7 +221,7 @@ dnl We exclude tcl support unless we override it with --with-tcl
AC_MSG_CHECKING(setting USE_TCL) AC_MSG_CHECKING(setting USE_TCL)
AC_ARG_WITH( AC_ARG_WITH(
tcl, tcl,
[ --with-tcl use tcl ], [ --with-tcl use tcl ],
[ [
case "$withval" in case "$withval" in
y | ye | yes) USE_TCL=true; AC_MSG_RESULT(enabled) ;; y | ye | yes) USE_TCL=true; AC_MSG_RESULT(enabled) ;;
...@@ -258,7 +258,7 @@ dnl We exclude perl support unless we override it with --with-perl ...@@ -258,7 +258,7 @@ dnl We exclude perl support unless we override it with --with-perl
AC_MSG_CHECKING(setting USE_PERL) AC_MSG_CHECKING(setting USE_PERL)
AC_ARG_WITH( AC_ARG_WITH(
perl, perl,
[ --with-perl use perl ], [ --with-perl use perl ],
[ [
case "$withval" in case "$withval" in
y | ye | yes) USE_PERL=true; AC_MSG_RESULT(enabled) ;; y | ye | yes) USE_PERL=true; AC_MSG_RESULT(enabled) ;;
...@@ -279,20 +279,41 @@ AC_ARG_WITH( ...@@ -279,20 +279,41 @@ AC_ARG_WITH(
#fi #fi
export USE_PERL export USE_PERL
dnl We disable odbc support unless we override it with --enable-odbc
#USE_ODBC=false
AC_MSG_CHECKING(setting USE_ODBC)
AC_ARG_WITH(
odbc,
[ --with-odbc use odbc ],
[
case "$withval" in
y | ye | yes) USE_ODBC=true; AC_MSG_RESULT(enabled) ;;
*) USE_ODBC=false; AC_MSG_RESULT(disabled) ;;
esac
],
[ USE_ODBC=false; AC_MSG_RESULT(disabled) ]
)
#
#if test "$enable_odbc." != "."
#then
# USE_ODBC=$enable_odbc
#fi
export USE_ODBC
dnl Unless we specify the command line options dnl Unless we specify the command line options
dnl --enable cassert to explicitly enable it dnl --enable cassert to explicitly enable it
dnl If you do not explicitly do it, it defaults to disabled dnl If you do not explicitly do it, it defaults to disabled
AC_MSG_CHECKING(setting ASSERT CHECKING) AC_MSG_CHECKING(setting ASSERT CHECKING)
AC_ARG_ENABLE( AC_ARG_ENABLE(
cassert, cassert,
[ --enable-cassert enable assertion checks (debugging) ], [ --enable-cassert enable assertion checks (debugging) ],
AC_DEFINE(USE_ASSERT_CHECKING) AC_MSG_RESULT(enabled), AC_DEFINE(USE_ASSERT_CHECKING) AC_MSG_RESULT(enabled),
AC_MSG_RESULT(disabled) AC_MSG_RESULT(disabled)
) )
dnl Check for C support (allow override if needed) dnl Check for C support (allow override if needed)
AC_ARG_WITH(CC, AC_ARG_WITH(CC,
[ --with-CC=compiler use specific C compiler], [ --with-CC=compiler use specific C compiler],
[ [
case "$withval" in case "$withval" in
"" | y | ye | yes | n | no) "" | y | ye | yes | n | no)
...@@ -334,6 +355,7 @@ AC_SUBST(DLSUFFIX) ...@@ -334,6 +355,7 @@ AC_SUBST(DLSUFFIX)
AC_SUBST(DL_LIB) AC_SUBST(DL_LIB)
AC_SUBST(USE_TCL) AC_SUBST(USE_TCL)
AC_SUBST(USE_PERL) AC_SUBST(USE_PERL)
AC_SUBST(USE_ODBC)
AC_SUBST(MULTIBYTE) AC_SUBST(MULTIBYTE)
dnl Check for C++ support (allow override if needed) dnl Check for C++ support (allow override if needed)
...@@ -822,4 +844,16 @@ then ...@@ -822,4 +844,16 @@ then
LDFLAGS="$ice_save_LDFLAGS" LDFLAGS="$ice_save_LDFLAGS"
fi fi
AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpq++/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/version.h) dnl cause configure to recurse into subdirectories with their own configure
dnl Darn, setting AC_CONFIG_SUBDIRS sets a list $subdirs$ in the configure output
dnl file, but then configure doesn't bother using that list. Probably a bug in
dnl this version of autoconf.
dnl So at the moment interfaces/odbc gets configured unconditionally.
dnl - thomas 1998-10-05
#if test "X$USE_ODBC" = "Xtrue"
#then
# AC_CONFIG_SUBDIRS(interfaces/odbc)
#fi
#
#AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpq++/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/version.h)
AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpq++/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/version.h interfaces/odbc/Makefile.global interfaces/odbc/GNUmakefile)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册