From 013143bd55b2436229422828bf75eec4eff0198b Mon Sep 17 00:00:00 2001 From: Nelson Ferreira Date: Mon, 23 Jan 2012 13:52:52 -0500 Subject: [PATCH] compre on by default, no longer experimental Signed-off-by: Nelson Ferreira --- configure.ac | 12 +++++++++--- m4/sxe-summary.m4 | 6 ++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 823f010..f69bc20 100644 --- a/configure.ac +++ b/configure.ac @@ -382,6 +382,13 @@ OG_MULTIARG_WITH([ase], [dnl OG_MULTIARG_ITEM([resclass], [resclass], [Residue Class Rings and Classes]) ]) +OG_ARG_WITH([compre], + AS_HELP_STRING([--with-compre],[ + Provide exhaustive caching of compiled regexps. This will + mean that frequently used regexps will be faster to use + since the compile step will not be needed after first use.]), + [yes], [By default do cache compiled regexps.]) + OG_MULTIARG_WITH([experimental-features], [dnl AS_HELP_STRING([--with-experimental-features], [ Activate experimental code, that is code which is @@ -394,7 +401,6 @@ OG_MULTIARG_WITH([experimental-features], [dnl can switch off some portions.])], [all nobdwgc], [ALL but bdwgc], [dnl OG_MULTIARG_ITEM([bdwgc], [bdwgc], [the Boehm-Demers-Weiser collector]) - OG_MULTIARG_ITEM([compre], [compre], [exhaustive caching of compiled regexps]) OG_MULTIARG_ITEM([asyneq], [asyneq], [asynchronous event queues]) ]) dnl stop that pom stuff @@ -2089,12 +2095,12 @@ AC_DEFINE([WITH_NUMBER_TYPES], [1], [Description here!]) SXE_SUBST_ENT_OBJS dnl experimental code support -if test "$with_experimental_features_compre" = "yes"; then +if test "$with_compre" != "no"; then AC_MSG_CHECKING([if compre prerequisites are met]) AC_MSG_RESULT([yes]) AC_DEFINE([EF_USE_COMPRE], [1], [Whether to provide compiled regular expression!]) - have_experimental_features_compre=yes + have_compre=yes fi if test "$with_experimental_features_pom" = "yes"; then AC_MSG_CHECKING([if pom prerequisites are met]) diff --git a/m4/sxe-summary.m4 b/m4/sxe-summary.m4 index 13b638b..acdfbf4 100644 --- a/m4/sxe-summary.m4 +++ b/m4/sxe-summary.m4 @@ -135,6 +135,12 @@ else echo " Good question ... where is it?" fi +if test "$have_compre" = yes; then + echo " Compiled regex caching: yes" +else + echo " Compiled regex caching: no" +fi + dnl summary for ENT and ASE OG_MULTIARG_SUMMARY([ent], [Enhanced Number Types], [ ]) dnl OG_MULTIARG_SUMMARY([ase], [Algebraic Structures based on ENT], [ ]) -- 2.25.1