Skip to content

Commit 96126e3

Browse files
committed
Add macro documentation comments to AC_DEFINE for FTS and OpenSSL options.
1 parent 6e33101 commit 96126e3

File tree

3 files changed

+44
-55
lines changed

3 files changed

+44
-55
lines changed

configure

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9187,7 +9187,8 @@ $as_echo "checking whether to build with external-fts... $enable_external_fts" >
91879187

91889188

91899189
if test "$enable_external_fts" = no; then
9190-
$as_echo "#define USE_INTERNAL_FTS 1" >>confdefs.h
9190+
9191+
$as_echo "#define USE_INTERNAL_FTS 1" >>confdefs.h
91919192

91929193
CFLAGS="$CFLAGS -DUSE_INTERNAL_FTS=1"
91939194
fi
@@ -15741,7 +15742,8 @@ if test "$enable_openssl_redirect" = yes; then
1574115742
as_fn_error $? "--enable-openssl-redirect must specify --with-ssl" "$LINENO" 5
1574215743
fi
1574315744

15744-
$as_echo "#define OPENSSL_ALLOW_REDIRECT 1" >>confdefs.h
15745+
15746+
$as_echo "#define OPENSSL_ALLOW_REDIRECT 1" >>confdefs.h
1574515747

1574615748
fi
1574715749

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ AC_MSG_RESULT([checking whether to build with external-fts... $enable_external_f
919919
AC_SUBST(enable_external_fts)
920920

921921
if test "$enable_external_fts" = no; then
922-
AC_DEFINE([USE_INTERNAL_FTS], [1])
922+
AC_DEFINE([USE_INTERNAL_FTS], [1], [Define to 1 to use the internal FTS implementation.])
923923
CFLAGS="$CFLAGS -DUSE_INTERNAL_FTS=1"
924924
fi
925925

@@ -1742,7 +1742,7 @@ if test "$enable_openssl_redirect" = yes; then
17421742
AC_MSG_ERROR([--enable-openssl-redirect must specify --with-ssl])
17431743
fi
17441744

1745-
AC_DEFINE([OPENSSL_ALLOW_REDIRECT], [1])
1745+
AC_DEFINE([OPENSSL_ALLOW_REDIRECT], [1], [Define to 1 if you want to allow OpenSSL redirects.])
17461746
fi
17471747

17481748
# Check for curl.

src/include/pg_config.h.in

Lines changed: 38 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,16 @@
6060
/* Define to 1 to build with ic-proxy support (--enable-ic-proxy) */
6161
#undef ENABLE_IC_PROXY
6262

63-
/* Define to 1 to disable preload interconnect module */
63+
/* Define to 1 to preload with ic module */
6464
#undef ENABLE_PRELOAD_IC_MODULE
6565

6666
/* Define to 1 to build client libraries as thread-safe code.
6767
(--enable-thread-safety) */
6868
#undef ENABLE_THREAD_SAFETY
6969

70-
/* Define to 1 to build with fault injector. (--enable-faultinjector) */
70+
/* Define to 1 to build with fault injector. */
7171
#undef FAULT_INJECTOR
7272

73-
/* Define to nothing if C supports flexible array members, and to 1 if it does
74-
not. That way, with a declaration like `struct s { int n; double
75-
d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99
76-
compilers. When computing the size of such an object, don't use 'sizeof
77-
(struct s)' as it overestimates the size. Use 'offsetof (struct s, d)'
78-
instead. Don't use 'offsetof (struct s, d[0])', as this doesn't work with
79-
MSVC and with C++ compilers. */
80-
#undef FLEXIBLE_ARRAY_MEMBER
81-
8273
/* float4 values are passed by value if 'true', by reference if 'false'
8374
(always true in GPDB) */
8475
#undef FLOAT4PASSBYVAL
@@ -130,6 +121,9 @@
130121
/* Define to 1 if you have the `BIO_meth_new' function. */
131122
#undef HAVE_BIO_METH_NEW
132123

124+
/* Define to 1 if you have the `cbrt' function. */
125+
#undef HAVE_CBRT
126+
133127
/* Define to 1 if you have the `clock_gettime' function. */
134128
#undef HAVE_CLOCK_GETTIME
135129

@@ -148,9 +142,6 @@
148142
/* Define to 1 if you have the `CRYPTO_lock' function. */
149143
#undef HAVE_CRYPTO_LOCK
150144

151-
/* Define to 1 if you have the <crypt.h> header file. */
152-
#undef HAVE_CRYPT_H
153-
154145
/* define if the compiler supports basic C++14 syntax */
155146
#undef HAVE_CXX14
156147

@@ -386,6 +377,9 @@
386377
/* Define to 1 if you have the `execinfo' library (-lexecinfo). */
387378
#undef HAVE_LIBEXECINFO
388379

380+
/* Define to 1 if you have the `jansson' library (-ljansson). */
381+
#undef HAVE_LIBJANSSON
382+
389383
/* Define to 1 if you have the `ldap' library (-lldap). */
390384
#undef HAVE_LIBLDAP
391385

@@ -407,6 +401,9 @@
407401
/* Define to 1 if you have the `rt' library (-lrt). */
408402
#undef HAVE_LIBRT
409403

404+
/* Define to 1 if you have the `seccomp' library (-lseccomp). */
405+
#undef HAVE_LIBSECCOMP
406+
410407
/* Define to 1 if you have the `selinux' library (-lselinux). */
411408
#undef HAVE_LIBSELINUX
412409

@@ -503,6 +500,9 @@
503500
/* Define to 1 if you have the `pread' function. */
504501
#undef HAVE_PREAD
505502

503+
/* Define if protobuf is available */
504+
#undef HAVE_PROTOBUF
505+
506506
/* Define to 1 if you have the `pstat' function. */
507507
#undef HAVE_PSTAT
508508

@@ -744,10 +744,6 @@
744744
/* Define to 1 if you have the <time.h> header file. */
745745
#undef HAVE_TIME_H
746746

747-
/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use
748-
`HAVE_STRUCT_TM_TM_ZONE' instead. */
749-
#undef HAVE_TM_ZONE
750-
751747
/* Define to 1 if your compiler understands `typeof' or something similar. */
752748
#undef HAVE_TYPEOF
753749

@@ -796,14 +792,12 @@
796792
/* Define to 1 if you have the <winldap.h> header file. */
797793
#undef HAVE_WINLDAP_H
798794

799-
800795
/* Define to 1 if you have the <winsock2.h> header file. */
801796
#undef HAVE_WINSOCK2_H
802797

803798
/* Define to 1 if you have the `writev' function. */
804799
#undef HAVE_WRITEV
805800

806-
807801
/* Define to 1 if you have the `X509_get_signature_nid' function. */
808802
#undef HAVE_X509_GET_SIGNATURE_NID
809803

@@ -813,6 +807,9 @@
813807
/* Define to 1 if you have the <yaml.h> header file. */
814808
#undef HAVE_YAML_H
815809

810+
/* Define if zstd is available */
811+
#undef HAVE_ZSTD
812+
816813
/* Define to 1 if the system has the type `_Bool'. */
817814
#undef HAVE__BOOL
818815

@@ -867,9 +864,6 @@
867864
/* Define to 1 if you have the `__strtoull' function. */
868865
#undef HAVE___STRTOULL
869866

870-
/* Define to 1 if you have the `etcdlib' library (-letcdlib). */
871-
#undef HAVE_LIBETCDLIB
872-
873867
/* Define to the appropriate printf length modifier for 64-bit ints. */
874868
#undef INT64_MODIFIER
875869

@@ -882,6 +876,9 @@
882876
/* Define bytes to use libc memset(). */
883877
#undef MEMSET_LOOP_LIMIT
884878

879+
/* Define to 1 if you want to allow OpenSSL redirects. */
880+
#undef OPENSSL_ALLOW_REDIRECT
881+
885882
/* Define to the OpenSSL API version in use. This avoids deprecation warnings
886883
from newer OpenSSL versions. */
887884
#undef OPENSSL_API_COMPAT
@@ -930,7 +927,6 @@
930927
#undef PG_USE_STDBOOL
931928

932929
/* Postgres version Apache Cloudberry is based on */
933-
/* PostgreSQL version as a string */
934930
#undef PG_VERSION
935931

936932
/* PostgreSQL version as a number */
@@ -960,7 +956,7 @@
960956
RELSEG_SIZE requires an initdb. */
961957
#undef RELSEG_SIZE
962958

963-
/* Define to 1 to use serverless mode of Cloudberry. (--enable-serverless) */
959+
/* Define to 1 to use serverless mode of Cloudberry. (--enable-serverless) */
964960
#undef SERVERLESS
965961

966962
/* The size of `bool', as computed by sizeof. */
@@ -1005,9 +1001,6 @@
10051001
/* Define to 1 to build with libcurl support. (--with-libcurl) */
10061002
#undef USE_CURL
10071003

1008-
/* Define to use /dev/urandom for random number generation */
1009-
#undef USE_DEV_URANDOM
1010-
10111004
/* Define to 1 if you want float4 values to be passed by value. (Always
10121005
defined in GPDB) */
10131006
#undef USE_FLOAT4_BYVAL
@@ -1019,10 +1012,12 @@
10191012
/* Define to 1 to build with gpcloud (--enable-gpcloud) */
10201013
#undef USE_GPCLOUD
10211014

1022-
10231015
/* Define to build with ICU support. (--with-icu) */
10241016
#undef USE_ICU
10251017

1018+
/* Define to 1 to use the internal FTS implementation. */
1019+
#undef USE_INTERNAL_FTS
1020+
10261021
/* Define to 1 to build with LDAP support. (--with-ldap) */
10271022
#undef USE_LDAP
10281023

@@ -1033,40 +1028,38 @@
10331028
(--with-libxslt) */
10341029
#undef USE_LIBXSLT
10351030

1031+
/* Define to 1 to build Cloudberry using the shared library libpostgres.so
1032+
(--enable-link-postgres-with-shared) */
1033+
#undef USE_LINK_POSTGRES_WITH_SHARED
1034+
10361035
/* Define to 1 to build with LLVM based JIT support. (--with-llvm) */
10371036
#undef USE_LLVM
10381037

1039-
/* Define to 1 to build with Mapreduce capabilities (--enable-mapreduce) */
1040-
#undef USE_MAPREDUCE
1041-
1042-
/* Define to 1 to build with shared postgres backend capabilities (--enable-shared-postgres-backend) */
1043-
#undef USE_SHARED_POSTGRES_BACKEND
1044-
10451038
/* Define to 1 to build with LZ4 support. (--with-lz4) */
10461039
#undef USE_LZ4
10471040

1041+
/* Define to 1 to build with Mapreduce capabilities (--enable-mapreduce) */
1042+
#undef USE_MAPREDUCE
10481043

10491044
/* Define to select named POSIX semaphores. */
10501045
#undef USE_NAMED_POSIX_SEMAPHORES
10511046

10521047
/* Define to 1 to build with OpenSSL support. (--with-ssl=openssl) */
10531048
#undef USE_OPENSSL
10541049

1055-
/* Define to use OpenSSL for random number generation */
1056-
#undef USE_OPENSSL_RANDOM
1057-
1058-
/* Define to use OpenSSL redirect access internal implements if not implements */
1059-
#undef OPENSSL_ALLOW_REDIRECT
1060-
10611050
/* Define to 1 to build with Cloudberry ORCA optimizer. (--enable-orca) */
10621051
#undef USE_ORCA
10631052

1064-
/* Define to 1 to build with pax support. (--enable-pax) */
1065-
#undef USE_PAX_STORAGE
1066-
10671053
/* Define to 1 to build with PAM support. (--with-pam) */
10681054
#undef USE_PAM
10691055

1056+
/* Define to 1 to support PAX */
1057+
#undef USE_PAX_STORAGE
1058+
1059+
/* Define to 1 to build with shared Cloudberry backend capabilities
1060+
(--enable-shared-postgres-backend) */
1061+
#undef USE_SHARED_POSTGRES_BACKEND
1062+
10701063
/* Define to 1 to use software CRC-32C implementation (slicing-by-8). */
10711064
#undef USE_SLICING_BY_8_CRC32C
10721065

@@ -1100,9 +1093,6 @@
11001093
/* Define to 1 if `wcstombs_l' requires <xlocale.h>. */
11011094
#undef WCSTOMBS_L_IN_XLOCALE
11021095

1103-
/* Define to build with external FTS support. (--enable-external-fts) */
1104-
#undef USE_INTERNAL_FTS
1105-
11061096
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
11071097
significant byte first (like Motorola and SPARC, unlike Intel). */
11081098
#if defined AC_APPLE_UNIVERSAL_BUILD
@@ -1122,10 +1112,7 @@
11221112
*/
11231113
#undef XLOG_BLCKSZ
11241114

1125-
/* Enable large inode numbers on Mac OS X 10.5. */
1126-
#ifndef _DARWIN_USE_64_BIT_INODE
1127-
# define _DARWIN_USE_64_BIT_INODE 1
1128-
#endif
1115+
11291116

11301117
/* Number of bits in a file offset, on hosts where this is settable. */
11311118
#undef _FILE_OFFSET_BITS

0 commit comments

Comments
 (0)