compre on by default, no longer experimental
authorNelson Ferreira <nelson.ferreira@ieee.org>
Mon, 23 Jan 2012 18:52:52 +0000 (13:52 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Mon, 23 Jan 2012 18:52:52 +0000 (13:52 -0500)
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
configure.ac
m4/sxe-summary.m4

index 823f010..f69bc20 100644 (file)
@@ -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])
index 13b638b..acdfbf4 100644 (file)
@@ -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], [  ])