mirror of https://github.com/citusdata/citus.git
change configure to not have options
parent
22df8027b0
commit
725f4a37d0
|
@ -92,8 +92,7 @@ endif
|
||||||
override CPPFLAGS := @CPPFLAGS@ @CITUS_CPPFLAGS@ -I '${citus_abs_top_srcdir}/src/include' -I'${citus_top_builddir}/src/include' $(CPPFLAGS)
|
override CPPFLAGS := @CPPFLAGS@ @CITUS_CPPFLAGS@ -I '${citus_abs_top_srcdir}/src/include' -I'${citus_top_builddir}/src/include' $(CPPFLAGS)
|
||||||
override LDFLAGS += @LDFLAGS@ @CITUS_LDFLAGS@
|
override LDFLAGS += @LDFLAGS@ @CITUS_LDFLAGS@
|
||||||
|
|
||||||
USE_FDW:=@USE_FDW@
|
HAS_TABLEAM:=@HAS_TABLEAM@
|
||||||
USE_TABLEAM:=@USE_TABLEAM@
|
|
||||||
|
|
||||||
# optional file with user defined, additional, rules
|
# optional file with user defined, additional, rules
|
||||||
-include ${citus_abs_srcdir}/src/Makefile.custom
|
-include ${citus_abs_srcdir}/src/Makefile.custom
|
||||||
|
|
|
@ -622,8 +622,7 @@ ac_includes_default="\
|
||||||
|
|
||||||
ac_subst_vars='LTLIBOBJS
|
ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
USE_TABLEAM
|
HAS_TABLEAM
|
||||||
USE_FDW
|
|
||||||
HAS_DOTGIT
|
HAS_DOTGIT
|
||||||
POSTGRES_BUILDDIR
|
POSTGRES_BUILDDIR
|
||||||
POSTGRES_SRCDIR
|
POSTGRES_SRCDIR
|
||||||
|
@ -692,8 +691,6 @@ with_extra_version
|
||||||
enable_coverage
|
enable_coverage
|
||||||
with_libcurl
|
with_libcurl
|
||||||
with_reports_hostname
|
with_reports_hostname
|
||||||
with_columnar_tableam
|
|
||||||
with_columnar_fdw
|
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
@ -1327,9 +1324,6 @@ Optional Packages:
|
||||||
--with-reports-hostname=HOSTNAME
|
--with-reports-hostname=HOSTNAME
|
||||||
Use HOSTNAME as hostname for statistics collection
|
Use HOSTNAME as hostname for statistics collection
|
||||||
and update checks
|
and update checks
|
||||||
--without-columnar-tableam
|
|
||||||
compile with table access methods for columnar
|
|
||||||
--without-columnar-fdw compile with foreign data wrappers for columnar
|
|
||||||
|
|
||||||
Some influential environment variables:
|
Some influential environment variables:
|
||||||
PG_CONFIG Location to find pg_config for target PostgreSQL instalation
|
PG_CONFIG Location to find pg_config for target PostgreSQL instalation
|
||||||
|
@ -4476,69 +4470,13 @@ _ACEOF
|
||||||
|
|
||||||
|
|
||||||
if test "$version_num" != '11'; then
|
if test "$version_num" != '11'; then
|
||||||
|
HAS_TABLEAM=yes
|
||||||
|
|
||||||
|
$as_echo "#define HAS_TABLEAM 1" >>confdefs.h
|
||||||
|
|
||||||
# Check whether --with-columnar-tableam was given.
|
|
||||||
if test "${with_columnar_tableam+set}" = set; then :
|
|
||||||
withval=$with_columnar_tableam;
|
|
||||||
case $withval in
|
|
||||||
yes)
|
|
||||||
USE_TABLEAM=yes
|
|
||||||
;;
|
|
||||||
no)
|
|
||||||
:
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
as_fn_error $? "no argument expected for --with-columnar-tableam option" "$LINENO" 5
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
else
|
else
|
||||||
with_columnar_tableam=yes
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: postgres version does not support table access methodds" >&5
|
||||||
USE_TABLEAM=yes
|
$as_echo "$as_me: postgres version does not support table access methodds" >&6;}
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: postgres does not support table access methodds" >&5
|
|
||||||
$as_echo "$as_me: postgres does not support table access methodds" >&6;}
|
|
||||||
fi;
|
|
||||||
|
|
||||||
if test "$USE_TABLEAM" = yes; then
|
|
||||||
|
|
||||||
$as_echo "#define USE_TABLEAM 1" >>confdefs.h
|
|
||||||
|
|
||||||
fi;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-columnar-fdw was given.
|
|
||||||
if test "${with_columnar_fdw+set}" = set; then :
|
|
||||||
withval=$with_columnar_fdw;
|
|
||||||
case $withval in
|
|
||||||
yes)
|
|
||||||
USE_FDW=yes
|
|
||||||
;;
|
|
||||||
no)
|
|
||||||
:
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
as_fn_error $? "no argument expected for --with-columnar-fdw option" "$LINENO" 5
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
else
|
|
||||||
with_columnar_fdw=yes
|
|
||||||
USE_FDW=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if test "$USE_FDW" = yes; then
|
|
||||||
|
|
||||||
$as_echo "#define USE_FDW 1" >>confdefs.h
|
|
||||||
|
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Check if git is installed, when installed the gitref of the checkout will be baked in the application
|
# Check if git is installed, when installed the gitref of the checkout will be baked in the application
|
||||||
|
@ -4616,9 +4554,7 @@ POSTGRES_BUILDDIR="$POSTGRES_BUILDDIR"
|
||||||
|
|
||||||
HAS_DOTGIT="$HAS_DOTGIT"
|
HAS_DOTGIT="$HAS_DOTGIT"
|
||||||
|
|
||||||
USE_FDW="$USE_FDW"
|
HAS_TABLEAM="$HAS_TABLEAM"
|
||||||
|
|
||||||
USE_TABLEAM="$USE_TABLEAM"
|
|
||||||
|
|
||||||
|
|
||||||
ac_config_files="$ac_config_files Makefile.global"
|
ac_config_files="$ac_config_files Makefile.global"
|
||||||
|
|
21
configure.in
21
configure.in
|
@ -213,22 +213,10 @@ AC_DEFINE_UNQUOTED(REPORTS_BASE_URL, "$REPORTS_BASE_URL",
|
||||||
[Base URL for statistics collection and update checks])
|
[Base URL for statistics collection and update checks])
|
||||||
|
|
||||||
if test "$version_num" != '11'; then
|
if test "$version_num" != '11'; then
|
||||||
PGAC_ARG_BOOL(with, columnar-tableam, yes,
|
HAS_TABLEAM=yes
|
||||||
[compile with table access methods for columnar],
|
AC_DEFINE([HAS_TABLEAM], 1, [Define to 1 to build with table access method support, pg12 and up])
|
||||||
[USE_TABLEAM=yes])
|
|
||||||
else
|
else
|
||||||
AC_MSG_NOTICE([postgres does not support table access methodds])
|
AC_MSG_NOTICE([postgres version does not support table access methodds])
|
||||||
fi;
|
|
||||||
|
|
||||||
if test "$USE_TABLEAM" = yes; then
|
|
||||||
AC_DEFINE([USE_TABLEAM], 1, [Define to 1 to build with table access method support. (--with-columnar-tableam)])
|
|
||||||
fi;
|
|
||||||
|
|
||||||
PGAC_ARG_BOOL(with, columnar-fdw, yes,
|
|
||||||
[compile with foreign data wrappers for columnar],
|
|
||||||
[USE_FDW=yes])
|
|
||||||
if test "$USE_FDW" = yes; then
|
|
||||||
AC_DEFINE([USE_FDW], 1, [Define to 1 to build with foreign datawrapper support. (--with-columnar-fdw)])
|
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Check if git is installed, when installed the gitref of the checkout will be baked in the application
|
# Check if git is installed, when installed the gitref of the checkout will be baked in the application
|
||||||
|
@ -241,8 +229,7 @@ AC_SUBST(CITUS_LDFLAGS, "$LIBS $CITUS_LDFLAGS")
|
||||||
AC_SUBST(POSTGRES_SRCDIR, "$POSTGRES_SRCDIR")
|
AC_SUBST(POSTGRES_SRCDIR, "$POSTGRES_SRCDIR")
|
||||||
AC_SUBST(POSTGRES_BUILDDIR, "$POSTGRES_BUILDDIR")
|
AC_SUBST(POSTGRES_BUILDDIR, "$POSTGRES_BUILDDIR")
|
||||||
AC_SUBST(HAS_DOTGIT, "$HAS_DOTGIT")
|
AC_SUBST(HAS_DOTGIT, "$HAS_DOTGIT")
|
||||||
AC_SUBST(USE_FDW, "$USE_FDW")
|
AC_SUBST(HAS_TABLEAM, "$HAS_TABLEAM")
|
||||||
AC_SUBST(USE_TABLEAM, "$USE_TABLEAM")
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile.global])
|
AC_CONFIG_FILES([Makefile.global])
|
||||||
AC_CONFIG_HEADERS([src/include/citus_config.h] [src/include/citus_version.h])
|
AC_CONFIG_HEADERS([src/include/citus_config.h] [src/include/citus_version.h])
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "citus_version.h"
|
#include "citus_version.h"
|
||||||
#if USE_TABLEAM
|
#if HAS_TABLEAM
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -426,4 +426,4 @@ CStoreScan_ReScanCustomScan(CustomScanState *node)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif /* USE_TABLEAM */
|
#endif /* HAS_TABLEAM */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "citus_version.h"
|
#include "citus_version.h"
|
||||||
#if USE_TABLEAM
|
#if HAS_TABLEAM
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
|
|
@ -18,27 +18,22 @@
|
||||||
#include "citus_version.h"
|
#include "citus_version.h"
|
||||||
|
|
||||||
#include "columnar/cstore.h"
|
#include "columnar/cstore.h"
|
||||||
|
#include "columnar/cstore_fdw.h"
|
||||||
#include "columnar/mod.h"
|
#include "columnar/mod.h"
|
||||||
|
|
||||||
#ifdef USE_TABLEAM
|
#ifdef HAS_TABLEAM
|
||||||
#include "columnar/cstore_tableam.h"
|
#include "columnar/cstore_tableam.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_FDW
|
|
||||||
#include "columnar/cstore_fdw.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void
|
void
|
||||||
columnar_init(void)
|
columnar_init(void)
|
||||||
{
|
{
|
||||||
cstore_init();
|
cstore_init();
|
||||||
|
|
||||||
#ifdef USE_TABLEAM
|
|
||||||
cstore_tableam_init();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_FDW
|
|
||||||
cstore_fdw_init();
|
cstore_fdw_init();
|
||||||
|
|
||||||
|
#ifdef HAS_TABLEAM
|
||||||
|
cstore_tableam_init();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,11 +41,9 @@ columnar_init(void)
|
||||||
void
|
void
|
||||||
columnar_fini(void)
|
columnar_fini(void)
|
||||||
{
|
{
|
||||||
#if USE_TABLEAM
|
cstore_fdw_finish();
|
||||||
|
|
||||||
|
#if HAS_TABLEAM
|
||||||
cstore_tableam_finish();
|
cstore_tableam_finish();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_FDW
|
|
||||||
cstore_fdw_finish();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,9 @@
|
||||||
/* A string containing the version number, platform, and C compiler */
|
/* A string containing the version number, platform, and C compiler */
|
||||||
#undef CITUS_VERSION_STR
|
#undef CITUS_VERSION_STR
|
||||||
|
|
||||||
|
/* Define to 1 to build with table access method support, pg12 and up */
|
||||||
|
#undef HAS_TABLEAM
|
||||||
|
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
#undef HAVE_INTTYPES_H
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
|
@ -87,11 +90,3 @@
|
||||||
|
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
#undef STDC_HEADERS
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
/* Define to 1 to build with foreign datawrapper support.
|
|
||||||
(--with-columnar-fdw) */
|
|
||||||
#undef USE_FDW
|
|
||||||
|
|
||||||
/* Define to 1 to build with table access method support.
|
|
||||||
(--with-columnar-tableam) */
|
|
||||||
#undef USE_TABLEAM
|
|
||||||
|
|
|
@ -27,8 +27,5 @@
|
||||||
/* Base URL for statistics collection and update checks */
|
/* Base URL for statistics collection and update checks */
|
||||||
#undef REPORTS_BASE_URL
|
#undef REPORTS_BASE_URL
|
||||||
|
|
||||||
/* columnar foreign data wrapper capability */
|
|
||||||
#undef USE_FDW
|
|
||||||
|
|
||||||
/* columnar table access method capability */
|
/* columnar table access method capability */
|
||||||
#undef USE_TABLEAM
|
#undef HAS_TABLEAM
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "citus_version.h"
|
#include "citus_version.h"
|
||||||
#if USE_TABLEAM
|
#if HAS_TABLEAM
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
|
|
|
@ -163,11 +163,11 @@ check-follower-cluster: all
|
||||||
|
|
||||||
COLUMNAR_SCHEDULES =
|
COLUMNAR_SCHEDULES =
|
||||||
COLUMNAR_ISOLATION_SCHEDULES =
|
COLUMNAR_ISOLATION_SCHEDULES =
|
||||||
ifeq ($(USE_FDW),yes)
|
# even though we always add the fdw schedules, keep them separate from the declaration
|
||||||
COLUMNAR_SCHEDULES += columnar_fdw_schedule
|
# above for easy removabl when fdw support is removed
|
||||||
COLUMNAR_ISOLATION_SCHEDULES += columnar_fdw_isolation_schedule
|
COLUMNAR_SCHEDULES += columnar_fdw_schedule
|
||||||
endif
|
COLUMNAR_ISOLATION_SCHEDULES += columnar_fdw_isolation_schedule
|
||||||
ifeq ($(USE_TABLEAM),yes)
|
ifeq ($(HAS_TABLEAM),yes)
|
||||||
COLUMNAR_SCHEDULES += columnar_am_schedule
|
COLUMNAR_SCHEDULES += columnar_am_schedule
|
||||||
COLUMNAR_ISOLATION_SCHEDULES += columnar_am_isolation_schedule
|
COLUMNAR_ISOLATION_SCHEDULES += columnar_am_isolation_schedule
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue