summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-02-03 13:53:15 +0000
committerBruce Momjian <bruce@momjian.us>2006-02-03 13:53:15 +0000
commitebd38e3c1d9bccb66253979840ae37612b0e3e89 (patch)
treef4bf64ad27e5992147308246491bdcc48ebb9176 /configure
parent59bb147353ba274e0836d06f429176d4be47452c (diff)
downloadpostgresql-ebd38e3c1d9bccb66253979840ae37612b0e3e89.tar.gz
Allow MEMSET_LOOP_LIMIT to be set on a per-platform basis, and turn off
MemSet on AIX by setting MEMSET_LOOP_LIMIT to zero. Add optimization to skip MemSet tests in MEMSET_LOOP_LIMIT == 0 case and just call memset() directly.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 0c6fc28610..0cd5260f30 100755
--- a/configure
+++ b/configure
@@ -21516,6 +21516,17 @@ _ACEOF
SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
+# If not set in template file, set bytes to use libc memset()
+if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
+ MEMSET_LOOP_LIMIT=1024
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
+_ACEOF
+
+
+
if test "$enable_nls" = yes ; then
echo "$as_me:$LINENO: checking for library containing gettext" >&5