/[pcre]/code/trunk/configure.ac
ViewVC logotype

Diff of /code/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 111 by ph10, Thu Mar 8 16:53:09 2007 UTC revision 936 by ph10, Sat Feb 25 17:02:23 2012 UTC
# Line 1  Line 1 
1  dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
2    
3  dnl NOTE FOR MAINTAINERS: Do not use major or minor version numbers with  dnl NOTE FOR MAINTAINERS: Do not use minor version numbers 08 or 09 because
4  dnl leading zeros, because they may be treated as octal constants. The  dnl the leading zeros may cause them to be treated as invalid octal constants
5  dnl PCRE_PRERELEASE feature is for identifying release candidates. It might  dnl if a PCRE user writes code that uses PCRE_MINOR as a number. There is now
6  dnl be defined as -RC2, for example. For real releases, it should be defined  dnl a check further down that throws an error if 08 or 09 are used.
 dnl empty.  
7    
8  m4_define(pcre_major, [7])  dnl The PCRE_PRERELEASE feature is for identifying release candidates. It might
9  m4_define(pcre_minor, [1])  dnl be defined as -RC2, for example. For real releases, it should be empty.
10    
11    m4_define(pcre_major, [8])
12    m4_define(pcre_minor, [31])
13  m4_define(pcre_prerelease, [-RC1])  m4_define(pcre_prerelease, [-RC1])
14  m4_define(pcre_date, [2007-03-05])  m4_define(pcre_date, [2012-02-012])
15    
16    # NOTE: The CMakeLists.txt file searches for the above variables in the first
17    # 50 lines of this file. Please update that if the variables above are moved.
18    
19  # Libtool shared library interface versions (current:revision:age)  # Libtool shared library interface versions (current:revision:age)
20  m4_define(libpcre_version, [0:1:0])  m4_define(libpcre_version, [1:0:0])
21    m4_define(libpcre16_version, [0:0:0])
22  m4_define(libpcreposix_version, [0:0:0])  m4_define(libpcreposix_version, [0:0:0])
23  m4_define(libpcrecpp_version, [0:0:0])  m4_define(libpcrecpp_version, [0:0:0])
24    
# Line 20  AC_PREREQ(2.57) Line 26  AC_PREREQ(2.57)
26  AC_INIT(PCRE, pcre_major.pcre_minor[]pcre_prerelease, , pcre)  AC_INIT(PCRE, pcre_major.pcre_minor[]pcre_prerelease, , pcre)
27  AC_CONFIG_SRCDIR([pcre.h.in])  AC_CONFIG_SRCDIR([pcre.h.in])
28  AM_INIT_AUTOMAKE([dist-bzip2 dist-zip])  AM_INIT_AUTOMAKE([dist-bzip2 dist-zip])
29    m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
30  AC_CONFIG_HEADERS(config.h)  AC_CONFIG_HEADERS(config.h)
31    
32    # This was added at the suggestion of libtoolize (03-Jan-10)
33    AC_CONFIG_MACRO_DIR([m4])
34    
35    # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
36    # "-g" for any other compiler. There doesn't seem to be a standard way of
37    # getting rid of the -g (which I don't think is needed for a production
38    # library). This fudge seems to achieve the necessary. First, we remember the
39    # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
40    # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
41    # set, they will be set to Autoconf's defaults. Afterwards, if the original
42    # values were not set, remove the -g from the Autoconf defaults.
43    # (PH 02-May-07)
44    
45    remember_set_CFLAGS="$CFLAGS"
46    remember_set_CXXFLAGS="$CXXFLAGS"
47    
48  AC_PROG_CC  AC_PROG_CC
49  AC_PROG_CXX  AC_PROG_CXX
50    
51    if test "x$remember_set_CFLAGS" = "x"
52    then
53      if test "$CFLAGS" = "-g -O2"
54      then
55        CFLAGS="-O2"
56      elif test "$CFLAGS" = "-g"
57      then
58        CFLAGS=""
59      fi
60    fi
61    
62    if test "x$remember_set_CXXFLAGS" = "x"
63    then
64      if test "$CXXFLAGS" = "-g -O2"
65      then
66        CXXFLAGS="-O2"
67      elif test "$CXXFLAGS" = "-g"
68      then
69        CXXFLAGS=""
70      fi
71    fi
72    
73    # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
74    # Check for that case, and just disable c++ code if g++ doesn't run.
75    AC_LANG_PUSH(C++)
76    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],, CXX=""; CXXCP=""; CXXFLAGS="")
77    AC_LANG_POP
78    
79    # Check for a 64-bit integer type
80    AC_TYPE_INT64_T
81    
82  AC_PROG_INSTALL  AC_PROG_INSTALL
83  AC_LIBTOOL_WIN32_DLL  AC_LIBTOOL_WIN32_DLL
84  AC_PROG_LIBTOOL  LT_INIT
85    AC_PROG_LN_S
86    
87  PCRE_MAJOR="pcre_major"  PCRE_MAJOR="pcre_major"
88  PCRE_MINOR="pcre_minor"  PCRE_MINOR="pcre_minor"
89  PCRE_PRERELEASE="pcre_prerelease"  PCRE_PRERELEASE="pcre_prerelease"
90  PCRE_DATE="pcre_date"  PCRE_DATE="pcre_date"
91    
92    if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
93    then
94      echo "***"
95      echo "*** Minor version number $PCRE_MINOR must not be used. ***"
96      echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
97      echo "***"
98      exit 1
99    fi
100    
101  AC_SUBST(PCRE_MAJOR)  AC_SUBST(PCRE_MAJOR)
102  AC_SUBST(PCRE_MINOR)  AC_SUBST(PCRE_MINOR)
103  AC_SUBST(PCRE_PRERELEASE)  AC_SUBST(PCRE_PRERELEASE)
# Line 43  then Line 109  then
109    htmldir='${docdir}/html'    htmldir='${docdir}/html'
110  fi  fi
111    
112  # Handle --disable-cpp  # Handle --disable-pcre8 (enabled by default)
113    AC_ARG_ENABLE(pcre8,
114                  AS_HELP_STRING([--disable-pcre8],
115                                 [disable 8 bit character support]),
116                  , enable_pcre8=unset)
117    AC_SUBST(enable_pcre8)
118    
119    # Handle --enable-pcre16 (disabled by default)
120    AC_ARG_ENABLE(pcre16,
121                  AS_HELP_STRING([--enable-pcre16],
122                                 [enable 16 bit character support]),
123                  , enable_pcre16=unset)
124    AC_SUBST(enable_pcre16)
125    
126    # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
127    # pcre-config.
128  AC_ARG_ENABLE(cpp,  AC_ARG_ENABLE(cpp,
129                AS_HELP_STRING([--disable-cpp],                AS_HELP_STRING([--disable-cpp],
130                               [disable C++ support]),                               [disable C++ support]),
131                , enable_cpp=yes)                , enable_cpp=unset)
132    AC_SUBST(enable_cpp)
133    
134    # Handle --enable-jit (disabled by default)
135    AC_ARG_ENABLE(jit,
136                  AS_HELP_STRING([--enable-jit],
137                                 [enable Just-In-Time compiling support]),
138                  , enable_jit=no)
139    
140    # Handle --disable-pcregrep-jit (enabled by default)
141    AC_ARG_ENABLE(pcregrep-jit,
142                  AS_HELP_STRING([--disable-pcregrep-jit],
143                                 [disable JIT support in pcregrep]),
144                  , enable_pcregrep_jit=yes)
145    
146    # Handle --enable-rebuild-chartables
147    AC_ARG_ENABLE(rebuild-chartables,
148                  AS_HELP_STRING([--enable-rebuild-chartables],
149                                 [rebuild character tables in current locale]),
150                  , enable_rebuild_chartables=no)
151    
152  # Handle --enable-utf8 (disabled by default)  # Handle --enable-utf8 (disabled by default)
153  AC_ARG_ENABLE(utf8,  AC_ARG_ENABLE(utf8,
154                AS_HELP_STRING([--enable-utf8],                AS_HELP_STRING([--enable-utf8],
155                               [enable UTF-8 support]),                               [another name for --enable-utf. Kept only for compatibility reasons]),
156                , enable_utf8=unset)                , enable_utf8=unset)
157    
158    # Handle --enable-utf (disabled by default)
159    AC_ARG_ENABLE(utf,
160                  AS_HELP_STRING([--enable-utf],
161                                 [enable UTF-8/16 support (incompatible with --enable-ebcdic)]),
162                  , enable_utf=unset)
163    
164  # Handle --enable-unicode-properties  # Handle --enable-unicode-properties
165  AC_ARG_ENABLE(unicode-properties,  AC_ARG_ENABLE(unicode-properties,
166                AS_HELP_STRING([--enable-unicode-properties],                AS_HELP_STRING([--enable-unicode-properties],
167                               [enable Unicode properties support (implies --enable-utf8)]),                               [enable Unicode properties support (implies --enable-utf)]),
168                , enable_unicode_properties=no)                , enable_unicode_properties=no)
169    
170  # Handle --enable-newline=NL  # Handle --enable-newline=NL
171  dnl AC_ARG_ENABLE(newline,  dnl AC_ARG_ENABLE(newline,
172  dnl               AS_HELP_STRING([--enable-newline=NL],  dnl               AS_HELP_STRING([--enable-newline=NL],
173  dnl                              [use NL as newline (lf, cr, crlf, any; default=lf)]),  dnl                              [use NL as newline (lf, cr, crlf, anycrlf, any; default=lf)]),
174  dnl               , enable_newline=lf)  dnl               , enable_newline=lf)
175    
176  # Separate newline options  # Separate newline options
# Line 81  AC_ARG_ENABLE(newline-is-crlf, Line 187  AC_ARG_ENABLE(newline-is-crlf,
187                AS_HELP_STRING([--enable-newline-is-crlf],                AS_HELP_STRING([--enable-newline-is-crlf],
188                               [use CRLF as newline sequence]),                               [use CRLF as newline sequence]),
189                ac_pcre_newline=crlf)                ac_pcre_newline=crlf)
190    AC_ARG_ENABLE(newline-is-anycrlf,
191                  AS_HELP_STRING([--enable-newline-is-anycrlf],
192                                 [use CR, LF, or CRLF as newline sequence]),
193                  ac_pcre_newline=anycrlf)
194  AC_ARG_ENABLE(newline-is-any,  AC_ARG_ENABLE(newline-is-any,
195                AS_HELP_STRING([--enable-newline-is-any],                AS_HELP_STRING([--enable-newline-is-any],
196                               [use any valid Unicode newline sequence]),                               [use any valid Unicode newline sequence]),
197                ac_pcre_newline=any)                ac_pcre_newline=any)
198  enable_newline="$ac_pcre_newline"  enable_newline="$ac_pcre_newline"
199    
200    # Handle --enable-bsr-anycrlf
201    AC_ARG_ENABLE(bsr-anycrlf,
202                  AS_HELP_STRING([--enable-bsr-anycrlf],
203                                 [\R matches only CR, LF, CRLF by default]),
204                  , enable_bsr_anycrlf=no)
205    
206  # Handle --enable-ebcdic  # Handle --enable-ebcdic
207  AC_ARG_ENABLE(ebcdic,  AC_ARG_ENABLE(ebcdic,
208                AS_HELP_STRING([--enable-ebcdic],                AS_HELP_STRING([--enable-ebcdic],
209                               [assume EBCDIC coding rather than ASCII]),                               [assume EBCDIC coding rather than ASCII; incompatible with --enable-utf; use only in (uncommon) EBCDIC environments; it implies --enable-rebuild-chartables]),
210                , enable_ebcdic=no)                , enable_ebcdic=no)
211    
212  # Handle --disable-stack-for-recursion  # Handle --disable-stack-for-recursion
# Line 99  AC_ARG_ENABLE(stack-for-recursion, Line 215  AC_ARG_ENABLE(stack-for-recursion,
215                               [don't use stack recursion when matching]),                               [don't use stack recursion when matching]),
216                , enable_stack_for_recursion=yes)                , enable_stack_for_recursion=yes)
217    
218    # Handle --enable-pcregrep-libz
219    AC_ARG_ENABLE(pcregrep-libz,
220                  AS_HELP_STRING([--enable-pcregrep-libz],
221                                 [link pcregrep with libz to handle .gz files]),
222                  , enable_pcregrep_libz=no)
223    
224    # Handle --enable-pcregrep-libbz2
225    AC_ARG_ENABLE(pcregrep-libbz2,
226                  AS_HELP_STRING([--enable-pcregrep-libbz2],
227                                 [link pcregrep with libbz2 to handle .bz2 files]),
228                  , enable_pcregrep_libbz2=no)
229    
230    # Handle --with-pcregrep-bufsize=N
231    AC_ARG_WITH(pcregrep-bufsize,
232                  AS_HELP_STRING([--with-pcregrep-bufsize=N],
233                                 [pcregrep buffer size (default=20480)]),
234                  , with_pcregrep_bufsize=20480)
235    
236    # Handle --enable-pcretest-libedit
237    AC_ARG_ENABLE(pcretest-libedit,
238                  AS_HELP_STRING([--enable-pcretest-libedit],
239                                 [link pcretest with libedit]),
240                  , enable_pcretest_libedit=no)
241    
242    # Handle --enable-pcretest-libreadline
243    AC_ARG_ENABLE(pcretest-libreadline,
244                  AS_HELP_STRING([--enable-pcretest-libreadline],
245                                 [link pcretest with libreadline]),
246                  , enable_pcretest_libreadline=no)
247    
248  # Handle --with-posix-malloc-threshold=NBYTES  # Handle --with-posix-malloc-threshold=NBYTES
249  AC_ARG_WITH(posix-malloc-threshold,  AC_ARG_WITH(posix-malloc-threshold,
250              AS_HELP_STRING([--with-posix-malloc-threshold=NBYTES],              AS_HELP_STRING([--with-posix-malloc-threshold=NBYTES],
# Line 130  AC_ARG_WITH(match-limit-recursion, Line 276  AC_ARG_WITH(match-limit-recursion,
276                             [default limit on internal recursion (default=MATCH_LIMIT)]),                             [default limit on internal recursion (default=MATCH_LIMIT)]),
277              , with_match_limit_recursion=MATCH_LIMIT)              , with_match_limit_recursion=MATCH_LIMIT)
278    
279  # Make sure that if enable_unicode_properties was set, that UTF-8 support  # Copy enable_utf8 value to enable_utf for compatibility reasons
280  # is enabled.  if test "x$enable_utf8" != "xunset"
281  #  then
282      if test "x$enable_utf" != "xunset"
283      then
284        AC_MSG_ERROR([--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enable/disable-utf. Newer code must use --enable/disable-utf alone.])
285      fi
286      enable_utf=$enable_utf8
287    fi
288    
289    # Set the default value for pcre8
290    if test "x$enable_pcre8" = "xunset"
291    then
292      enable_pcre8=yes
293    fi
294    
295    # Set the default value for pcre16
296    if test "x$enable_pcre16" = "xunset"
297    then
298      enable_pcre16=no
299    fi
300    
301    # Make sure enable_pcre8 or enable_pcre16 was set
302    if test "x$enable_pcre8$enable_pcre16" = "xnono"
303    then
304      AC_MSG_ERROR([Either 8 or 16 bit (or both) pcre library must be enabled])
305    fi
306    
307    # Make sure that if enable_unicode_properties was set, that UTF support is enabled.
308  if test "x$enable_unicode_properties" = "xyes"  if test "x$enable_unicode_properties" = "xyes"
309  then  then
310    if test "x$enable_utf8" = "xno"    if test "x$enable_utf" = "xno"
311      then
312        AC_MSG_ERROR([support for Unicode properties requires UTF-8/16 support])
313      fi
314      enable_utf=yes
315    fi
316    
317    # enable_utf is disabled by default.
318    if test "x$enable_utf" = "xunset"
319    then
320      enable_utf=no
321    fi
322    
323    # enable_cpp copies the value of enable_pcre8 by default
324    if test "x$enable_cpp" = "xunset"
325    then
326      enable_cpp=$enable_pcre8
327    fi
328    
329    # Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
330    if test "x$enable_cpp" = "xyes"
331    then
332      if test "x$enable_pcre8" = "xno"
333    then    then
334      AC_MSG_ERROR([support for Unicode properties requires UTF-8 support])      AC_MSG_ERROR([C++ library requires pcre library with 8 bit characters])
335    fi    fi
   enable_utf8=yes  
336  fi  fi
337    
338  if test "x$enable_utf8" = "xunset"  # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
339    # Also check that UTF support is not requested, because PCRE cannot handle
340    # EBCDIC and UTF in the same build. To do so it would need to use different
341    # character constants depending on the mode.
342    #
343    if test "x$enable_ebcdic" = "xyes"
344  then  then
345    enable_utf8=no    enable_rebuild_chartables=yes
346      if test "x$enable_utf" = "xyes"
347      then
348        AC_MSG_ERROR([support for EBCDIC and UTF-8/16 cannot be enabled at the same time])
349      fi
350  fi  fi
351    
352  # Convert the newline identifier into the appropriate integer value.  # Convert the newline identifier into the appropriate integer value.
353  case "$enable_newline" in  case "$enable_newline" in
354    lf)   ac_pcre_newline_value=10   ;;    lf)      ac_pcre_newline_value=10   ;;
355    cr)   ac_pcre_newline_value=13   ;;    cr)      ac_pcre_newline_value=13   ;;
356    crlf) ac_pcre_newline_value=3338 ;;    crlf)    ac_pcre_newline_value=3338 ;;
357    any)  ac_pcre_newline_value=-1   ;;    anycrlf) ac_pcre_newline_value=-2   ;;
358      any)     ac_pcre_newline_value=-1   ;;
359    *)    *)
360    AC_MSG_ERROR([invalid argument \"$enable_newline\" to --enable-newline option])    AC_MSG_ERROR([invalid argument \"$enable_newline\" to --enable-newline option])
361    ;;    ;;
# Line 174  it to run on SunOS4 and other "close to Line 377  it to run on SunOS4 and other "close to
377    
378  If you are going to build PCRE "by hand" on a system without "configure" you  If you are going to build PCRE "by hand" on a system without "configure" you
379  should copy the distributed config.h.generic to config.h, and then set up the  should copy the distributed config.h.generic to config.h, and then set up the
380  macros the way you need them. Alternatively, you can avoid editing by using -D  macro definitions the way you need them. You must then add -DHAVE_CONFIG_H to
381  on the compiler command line to set the macro values.  all of your compile commands, so that config.h is included at the start of
382    every source.
383    
384    Alternatively, you can avoid editing by using -D on the compiler command line
385    to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H.
386    
387  PCRE uses memmove() if HAVE_MEMMOVE is set to 1; otherwise it uses bcopy() if  PCRE uses memmove() if HAVE_MEMMOVE is set to 1; otherwise it uses bcopy() if
388  HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set  HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set
# Line 192  if test "x$enable_cpp" = "xyes" -a -n "$ Line 399  if test "x$enable_cpp" = "xyes" -a -n "$
399  then  then
400  AC_LANG_PUSH(C++)  AC_LANG_PUSH(C++)
401    
402    # Older versions of pcre defined pcrecpp::no_arg, but in new versions
403    # it's called pcrecpp::RE::no_arg.  For backwards ABI compatibility,
404    # we want to make one an alias for the other.  Different systems do
405    # this in different ways.  Some systems, for instance, can do it via
406    # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
407    OLD_LDFLAGS="$LDFLAGS"
408    for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
409                "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
410      AC_MSG_CHECKING([for alias support in the linker])
411      LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
412      # We try to run the linker with this new ld flag.  If the link fails,
413      # we give up and remove the new flag from LDFLAGS.
414      AC_LINK_IFELSE([AC_LANG_PROGRAM([namespace pcrecpp {
415                                        class RE { static int no_arg; };
416                                        int RE::no_arg;
417                                      }],
418                                     [])],
419                     [AC_MSG_RESULT([yes]);
420                      EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
421                      break;],
422                     AC_MSG_RESULT([no]))
423    done
424    LDFLAGS="$OLD_LDFLAGS"
425    
426  # We could be more clever here, given we're doing AC_SUBST with this  # We could be more clever here, given we're doing AC_SUBST with this
427  # (eg set a var to be the name of the include file we want).  But we're not  # (eg set a var to be the name of the include file we want). But we're not
428  # so it's easy to change back to 'regular' autoconf vars if we needed to.  # so it's easy to change back to 'regular' autoconf vars if we needed to.
429  AC_CHECK_HEADERS(string, [pcre_have_cpp_headers="1"],  AC_CHECK_HEADERS(string, [pcre_have_cpp_headers="1"],
430                           [pcre_have_cpp_headers="0"])                           [pcre_have_cpp_headers="0"])
# Line 201  AC_CHECK_HEADERS(bits/type_traits.h, [pc Line 432  AC_CHECK_HEADERS(bits/type_traits.h, [pc
432                                       [pcre_have_bits_type_traits="0"])                                       [pcre_have_bits_type_traits="0"])
433  AC_CHECK_HEADERS(type_traits.h, [pcre_have_type_traits="1"],  AC_CHECK_HEADERS(type_traits.h, [pcre_have_type_traits="1"],
434                                  [pcre_have_type_traits="0"])                                  [pcre_have_type_traits="0"])
435    
436    # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
437    # in a c++ context.  This matters becuase strtoimax is C99 and may not
438    # be supported by the C++ compiler.)
439    # Figure out how to create a longlong from a string: strtoll and
440    # equiv.  It's not enough to call AC_CHECK_FUNCS: hpux has a
441    # strtoll, for instance, but it only takes 2 args instead of 3!
442    # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
443    AH_TEMPLATE(HAVE_STRTOQ, [Define to 1 if you have `strtoq'.])
444    AH_TEMPLATE(HAVE_STRTOLL, [Define to 1 if you have `strtoll'.])
445    AH_TEMPLATE(HAVE__STRTOI64, [Define to 1 if you have `_strtoi64'.])
446    AH_TEMPLATE(HAVE_STRTOIMAX, [Define to 1 if you have `strtoimax'.])
447    have_strto_fn=0
448    for fn in strtoq strtoll _strtoi64 strtoimax; do
449      AC_MSG_CHECKING([for $fn])
450      if test "$fn" = strtoimax; then
451        include=stdint.h
452      else
453        include=stdlib.h
454      fi
455      AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <$include>],
456                                        [char* e; return $fn("100", &e, 10)])],
457                        [AC_MSG_RESULT(yes)
458                         AC_DEFINE_UNQUOTED(HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`, 1,
459                                            [Define to 1 if you have `$fn'.])
460                         have_strto_fn=1
461                         break],
462                        [AC_MSG_RESULT(no)])
463    done
464    
465    if test "$have_strto_fn" = 1; then
466      AC_CHECK_TYPES([long long],
467                     [pcre_have_long_long="1"],
468                     [pcre_have_long_long="0"])
469      AC_CHECK_TYPES([unsigned long long],
470                     [pcre_have_ulong_long="1"],
471                     [pcre_have_ulong_long="0"])
472    else
473      pcre_have_long_long="0"
474      pcre_have_ulong_long="0"
475    fi
476    AC_SUBST(pcre_have_long_long)
477    AC_SUBST(pcre_have_ulong_long)
478    
479  AC_LANG_POP  AC_LANG_POP
480  fi  fi
481  # Using AC_SUBST eliminates the need to include config.h in a public .h file  # Using AC_SUBST eliminates the need to include config.h in a public .h file
# Line 208  AC_SUBST(pcre_have_type_traits) Line 483  AC_SUBST(pcre_have_type_traits)
483  AC_SUBST(pcre_have_bits_type_traits)  AC_SUBST(pcre_have_bits_type_traits)
484    
485  # Conditional compilation  # Conditional compilation
486    AM_CONDITIONAL(WITH_PCRE8, test "x$enable_pcre8" = "xyes")
487    AM_CONDITIONAL(WITH_PCRE16, test "x$enable_pcre16" = "xyes")
488  AM_CONDITIONAL(WITH_PCRE_CPP, test "x$enable_cpp" = "xyes")  AM_CONDITIONAL(WITH_PCRE_CPP, test "x$enable_cpp" = "xyes")
489    AM_CONDITIONAL(WITH_REBUILD_CHARTABLES, test "x$enable_rebuild_chartables" = "xyes")
490    AM_CONDITIONAL(WITH_JIT, test "x$enable_jit" = "xyes")
491    AM_CONDITIONAL(WITH_UTF, test "x$enable_utf" = "xyes")
492    
493  # Checks for typedefs, structures, and compiler characteristics.  # Checks for typedefs, structures, and compiler characteristics.
494    
495  AC_C_CONST  AC_C_CONST
496  AC_TYPE_SIZE_T  AC_TYPE_SIZE_T
497    
 AC_CHECK_TYPES([long long],  
                [pcre_have_long_long="1"],  
                [pcre_have_long_long="0"])  
 AC_CHECK_TYPES([unsigned long long],  
                [pcre_have_ulong_long="1"],  
                [pcre_have_ulong_long="0"])  
 AC_SUBST(pcre_have_long_long)  
 AC_SUBST(pcre_have_ulong_long)  
   
498  # Checks for library functions.  # Checks for library functions.
499    
500  AC_CHECK_FUNCS(bcopy memmove strerror strtoq strtoll)  AC_CHECK_FUNCS(bcopy memmove strerror)
501    
502    # Check for the availability of libz (aka zlib)
503    
504    AC_CHECK_HEADERS([zlib.h], [HAVE_ZLIB_H=1])
505    AC_CHECK_LIB([z], [gzopen], [HAVE_LIBZ=1])
506    
507    # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
508    # as for libz. However, this had the following problem, diagnosed and fixed by
509    # a user:
510    #
511    #   - libbz2 uses the Pascal calling convention (WINAPI) for the functions
512    #     under Win32.
513    #   - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
514    #     therefore missing the function definition.
515    #   - The compiler thus generates a "C" signature for the test function.
516    #   - The linker fails to find the "C" function.
517    #   - PCRE fails to configure if asked to do so against libbz2.
518    #
519    # Solution:
520    #
521    #   - Replace the AC_CHECK_LIB test with a custom test.
522    
523    AC_CHECK_HEADERS([bzlib.h], [HAVE_BZLIB_H=1])
524    # Original test
525    # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
526    #
527    # Custom test follows
528    
529    AC_MSG_CHECKING([for libbz2])
530    OLD_LIBS="$LIBS"
531    LIBS="$LIBS -lbz2"
532    AC_LINK_IFELSE([AC_LANG_PROGRAM([[
533    #ifdef HAVE_BZLIB_H
534    #include <bzlib.h>
535    #endif]],
536    [[return (int)BZ2_bzopen("conftest", "rb");]])],
537    [AC_MSG_RESULT([yes]);HAVE_LIBBZ2=1; break;],
538    AC_MSG_RESULT([no]))
539    LIBS="$OLD_LIBS"
540    
541    # Check for the availabiity of libreadline
542    
543    if test "$enable_pcretest_libreadline" = "yes"; then
544     AC_CHECK_HEADERS([readline/readline.h], [HAVE_READLINE_H=1])
545     AC_CHECK_HEADERS([readline/history.h], [HAVE_HISTORY_H=1])
546     AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lreadline"],
547       [unset ac_cv_lib_readline_readline;
548        AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-ltinfo"],
549         [unset ac_cv_lib_readline_readline;
550          AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lcurses"],
551           [unset ac_cv_lib_readline_readline;
552            AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lncurses"],
553             [unset ac_cv_lib_readline_readline;
554              AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lncursesw"],
555               [unset ac_cv_lib_readline_readline;
556                AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-ltermcap"],
557                 [LIBREADLINE=""],
558                 [-ltermcap])],
559               [-lncursesw])],
560             [-lncurses])],
561           [-lcurses])],
562         [-ltinfo])])
563     AC_SUBST(LIBREADLINE)
564     if test -n "$LIBREADLINE"; then
565       if test "$LIBREADLINE" != "-lreadline"; then
566         echo "-lreadline needs $LIBREADLINE"
567         LIBREADLINE="-lreadline $LIBREADLINE"
568       fi
569     fi
570    fi
571    
572    
573    # Check for the availability of libedit
574    
575    if test "$enable_pcretest_libedit" = "yes"; then
576      AC_CHECK_HEADERS([editline/readline.h], [HAVE_EDITLINE_READLINE_H=1],
577        [AC_CHECK_HEADERS([readline/readline.h], [HAVE_READLINE_READLINE_H=1])])
578      AC_CHECK_LIB([edit], [readline], [LIBEDIT="-ledit"])
579    fi
580    
581  # This facilitates -ansi builds under Linux  # This facilitates -ansi builds under Linux
582  dnl AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions in glibc])  dnl AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions in glibc])
583    
584    PCRE_STATIC_CFLAG=""
585  if test "x$enable_shared" = "xno" ; then  if test "x$enable_shared" = "xno" ; then
586    AC_DEFINE([PCRE_STATIC], [1], [    AC_DEFINE([PCRE_STATIC], [1], [
587      Define if linking statically (TODO: make nice with Libtool)])      Define if linking statically (TODO: make nice with Libtool)])
588      PCRE_STATIC_CFLAG="-DPCRE_STATIC"
589  fi  fi
590    AC_SUBST(PCRE_STATIC_CFLAG)
591    
592  # Here is where pcre specific defines are handled  # Here is where pcre specific defines are handled
593    
594  if test "$enable_utf8" = "yes"; then  if test "$enable_pcre8" = "yes"; then
595    AC_DEFINE([SUPPORT_UTF8], [], [    AC_DEFINE([SUPPORT_PCRE8], [], [
596      Define to enable support for the UTF-8 Unicode encoding.])      Define to enable the 8 bit PCRE library.])
597    fi
598    
599    if test "$enable_pcre16" = "yes"; then
600      AC_DEFINE([SUPPORT_PCRE16], [], [
601        Define to enable the 16 bit PCRE library.])
602    fi
603    
604    if test "$enable_jit" = "yes"; then
605      AC_DEFINE([SUPPORT_JIT], [], [
606        Define to enable support for Just-In-Time compiling.])
607    else
608      enable_pcregrep_jit="no"
609    fi
610    
611    if test "$enable_pcregrep_jit" = "yes"; then
612      AC_DEFINE([SUPPORT_PCREGREP_JIT], [], [
613        Define to enable JIT support in pcregrep.])
614    fi
615    
616    if test "$enable_utf" = "yes"; then
617      AC_DEFINE([SUPPORT_UTF], [], [
618        Define to enable support for the UTF-8/16 Unicode encoding. This
619        will work even in an EBCDIC environment, but it is incompatible
620        with the EBCDIC macro. That is, PCRE can support *either* EBCDIC
621        code *or* ASCII/UTF-8/16, but not both at once.])
622  fi  fi
623    
624  if test "$enable_unicode_properties" = "yes"; then  if test "$enable_unicode_properties" = "yes"; then
625    AC_DEFINE([SUPPORT_UCP], [], [    AC_DEFINE([SUPPORT_UCP], [], [
626      Define to enable support for Unicode properties])      Define to enable support for Unicode properties.])
627  fi  fi
628    
629  if test "$enable_stack_for_recursion" = "no"; then  if test "$enable_stack_for_recursion" = "no"; then
630    AC_DEFINE([NO_RECURSE], [], [    AC_DEFINE([NO_RECURSE], [], [
631      PCRE uses recursive function calls to handle backtracking while      PCRE uses recursive function calls to handle backtracking while
632      matching.  This can sometimes be a problem on systems that have      matching. This can sometimes be a problem on systems that have
633      stacks of limited size. Define NO_RECURSE to get a version that      stacks of limited size. Define NO_RECURSE to get a version that
634      doesn't use recursion in the match() function; instead it creates      doesn't use recursion in the match() function; instead it creates
635      its own stack by steam using pcre_recurse_malloc() to obtain memory      its own stack by steam using pcre_recurse_malloc() to obtain memory
# Line 261  if test "$enable_stack_for_recursion" = Line 639  if test "$enable_stack_for_recursion" =
639      (use --disable-stack-for-recursion).])      (use --disable-stack-for-recursion).])
640  fi  fi
641    
642    if test "$enable_pcregrep_libz" = "yes"; then
643      AC_DEFINE([SUPPORT_LIBZ], [], [
644        Define to allow pcregrep to be linked with libz, so that it is
645        able to handle .gz files.])
646    fi
647    
648    if test "$enable_pcregrep_libbz2" = "yes"; then
649      AC_DEFINE([SUPPORT_LIBBZ2], [], [
650        Define to allow pcregrep to be linked with libbz2, so that it is
651        able to handle .bz2 files.])
652    fi
653    
654    if test $with_pcregrep_bufsize -lt 8192 ; then
655      with_pcregrep_bufsize="8192"
656    fi
657    
658    AC_DEFINE_UNQUOTED([PCREGREP_BUFSIZE], [$with_pcregrep_bufsize], [
659      The value of PCREGREP_BUFSIZE determines the size of buffer used by
660      pcregrep to hold parts of the file it is searching. On systems that
661      support it, "configure" can be used to override the default, which is
662      8192. This is also the minimum value. The actual amount of memory used by
663      pcregrep is three times this number, because it allows for the buffering of
664      "before" and "after" lines.])
665    
666    if test "$enable_pcretest_libedit" = "yes"; then
667      AC_DEFINE([SUPPORT_LIBEDIT], [], [
668        Define to allow pcretest to be linked with libedit.])
669      LIBREADLINE="$LIBEDIT"
670    elif test "$enable_pcretest_libreadline" = "yes"; then
671      AC_DEFINE([SUPPORT_LIBREADLINE], [], [
672        Define to allow pcretest to be linked with libreadline.])
673    fi
674    
675  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [
676    The value of NEWLINE determines the newline character sequence. On    The value of NEWLINE determines the newline character sequence. On
677    Unix-like systems, "configure" can be used to override the default,    systems that support it, "configure" can be used to override the
678    which is 10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF),    default, which is 10. The possible values are 10 (LF), 13 (CR),
679    or -1 (ANY).])    3338 (CRLF), -1 (ANY), or -2 (ANYCRLF).])
680    
681    if test "$enable_bsr_anycrlf" = "yes"; then
682      AC_DEFINE([BSR_ANYCRLF], [], [
683        By default, the \R escape sequence matches any Unicode line ending
684        character or sequence of characters. If BSR_ANYCRLF is defined, this is
685        changed so that backslash-R matches only CR, LF, or CRLF. The build-
686        time default can be overridden by the user of PCRE at runtime. On
687        systems that support it, "configure" can be used to override the
688        default.])
689    fi
690    
691  AC_DEFINE_UNQUOTED([LINK_SIZE], [$with_link_size], [  AC_DEFINE_UNQUOTED([LINK_SIZE], [$with_link_size], [
692    The value of LINK_SIZE determines the number of bytes used to store    The value of LINK_SIZE determines the number of bytes used to store
# Line 318  AC_DEFINE([MAX_NAME_COUNT], [10000], [ Line 739  AC_DEFINE([MAX_NAME_COUNT], [10000], [
739    change it. Care must be taken if it is increased, because it guards    change it. Care must be taken if it is increased, because it guards
740    against integer overflow caused by enormously large patterns.])    against integer overflow caused by enormously large patterns.])
741    
742  AC_DEFINE([MAX_DUPLENGTH], [30000], [  AH_VERBATIM([PCRE_EXP_DEFN], [
   This limit is parameterized just in case anybody ever wants to  
   change it. Care must be taken if it is increased, because it guards  
   against integer overflow caused by enormously large patterns.])  
   
 AH_VERBATIM([PCRE_DATA_SCOPE], [  
743  /* If you are compiling for a system other than a Unix-like system or  /* If you are compiling for a system other than a Unix-like system or
744     Win32, and it needs some magic to be inserted before the definition     Win32, and it needs some magic to be inserted before the definition
745     of a function that is exported by the library, define this macro to     of a function that is exported by the library, define this macro to
# Line 333  AH_VERBATIM([PCRE_DATA_SCOPE], [ Line 749  AH_VERBATIM([PCRE_DATA_SCOPE], [
749     every exported function that is part of the external API. It does     every exported function that is part of the external API. It does
750     not appear on functions that are "external" in the C sense, but     not appear on functions that are "external" in the C sense, but
751     which are internal to the library. */     which are internal to the library. */
752  #undef PCRE_DATA_SCOPE])  #undef PCRE_EXP_DEFN])
753    
754  if test "$enable_ebcdic" = "yes"; then  if test "$enable_ebcdic" = "yes"; then
755    AC_DEFINE_UNQUOTED([EBCDIC], [], [    AC_DEFINE_UNQUOTED([EBCDIC], [], [
756      If you are compiling for a system that uses EBCDIC instead of ASCII      If you are compiling for a system that uses EBCDIC instead of ASCII
757      character codes, define this macro as 1. On systems that can use      character codes, define this macro as 1. On systems that can use
758      "configure", this can be done via --enable-ebcdic.])      "configure", this can be done via --enable-ebcdic. PCRE will then
759        assume that all input strings are in EBCDIC. If you do not define
760        this macro, PCRE will assume input strings are ASCII or UTF-8/16
761        Unicode. It is not possible to build a version of PCRE that
762        supports both EBCDIC and UTF-8/16.])
763  fi  fi
764    
 # Here is where pcre specific substs are handled  
 # These 3 are only used by RunTest.in.  
 # TODO: remove once RunTest uses pcretest -C instead.  
 AC_SUBST(LINK_SIZE, $with_link_size)  
 AC_SUBST(UTF8, $enable_utf8)  
 AC_SUBST(UCP, $enable_unicode_properties)  
   
765  # Platform specific issues  # Platform specific issues
766  NO_UNDEFINED=  NO_UNDEFINED=
767  EXPORT_ALL_SYMBOLS=  EXPORT_ALL_SYMBOLS=
# Line 364  esac Line 777  esac
777  # The extra LDFLAGS for each particular library  # The extra LDFLAGS for each particular library
778  # (Note: The libpcre*_version bits are m4 variables, assigned above)  # (Note: The libpcre*_version bits are m4 variables, assigned above)
779    
780  EXTRA_LIBPCRE_LDFLAGS="$NO_UNDEFINED -version-info libpcre_version"  EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
781                           $NO_UNDEFINED -version-info libpcre_version"
782    
783  EXTRA_LIBPCREPOSIX_LDFLAGS="$NO_UNDEFINED -version-info libpcreposix_version"  EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
784                           $NO_UNDEFINED -version-info libpcre16_version"
785    
786  EXTRA_LIBPCRECPP_LDFLAGS="$NO_UNDEFINED $EXPORT_ALL_SYMBOLS -version-info libpcrecpp_version"  EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
787                                $NO_UNDEFINED -version-info libpcreposix_version"
788    
789    EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
790                              $NO_UNDEFINED -version-info libpcrecpp_version \
791                              $EXPORT_ALL_SYMBOLS"
792    
793  AC_SUBST(EXTRA_LIBPCRE_LDFLAGS)  AC_SUBST(EXTRA_LIBPCRE_LDFLAGS)
794    AC_SUBST(EXTRA_LIBPCRE16_LDFLAGS)
795  AC_SUBST(EXTRA_LIBPCREPOSIX_LDFLAGS)  AC_SUBST(EXTRA_LIBPCREPOSIX_LDFLAGS)
796  AC_SUBST(EXTRA_LIBPCRECPP_LDFLAGS)  AC_SUBST(EXTRA_LIBPCRECPP_LDFLAGS)
797    
798  # When we run 'make distcheck', use these arguments.  # When we run 'make distcheck', use these arguments. Turning off compiler
799  DISTCHECK_CONFIGURE_FLAGS="--enable-cpp --enable-unicode-properties"  # optimization makes it run faster.
800    DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-jit --enable-cpp --enable-unicode-properties"
801  AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)  AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
802    
803    # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
804    # specified, the relevant library is available.
805    
806    if test "$enable_pcregrep_libz" = "yes"; then
807      if test "$HAVE_ZLIB_H" != "1"; then
808        echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
809        exit 1
810      fi
811      if test "$HAVE_LIBZ" != "1"; then
812        echo "** Cannot --enable-pcregrep-libz because libz was not found"
813        exit 1
814      fi
815      LIBZ="-lz"
816    fi
817    AC_SUBST(LIBZ)
818    
819    if test "$enable_pcregrep_libbz2" = "yes"; then
820      if test "$HAVE_BZLIB_H" != "1"; then
821        echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
822        exit 1
823      fi
824      if test "$HAVE_LIBBZ2" != "1"; then
825        echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
826        exit 1
827      fi
828      LIBBZ2="-lbz2"
829    fi
830    AC_SUBST(LIBBZ2)
831    
832    # Similarly for --enable-pcretest-readline
833    
834    if test "$enable_pcretest_libedit" = "yes"; then
835      if test "$enable_pcretest_libreadline" = "yes"; then
836        echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
837        exit 1
838      fi
839      if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
840              "$HAVE_READLINE_READLINE_H" != "1"; then
841        echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
842        echo "** nor readline/readline.h was found."
843        exit 1
844      fi
845      if test -z "$LIBEDIT"; then
846        echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
847        exit 1
848      fi
849    fi
850    
851    if test "$enable_pcretest_libreadline" = "yes"; then
852      if test "$HAVE_READLINE_H" != "1"; then
853        echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
854        exit 1
855      fi
856      if test "$HAVE_HISTORY_H" != "1"; then
857        echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
858        exit 1
859      fi
860      if test -z "$LIBREADLINE"; then
861        echo "** Cannot --enable-pcretest-readline because readline library was not found."
862        exit 1
863      fi
864    fi
865    
866  # Produce these files, in addition to config.h.  # Produce these files, in addition to config.h.
867  AC_CONFIG_FILES(  AC_CONFIG_FILES(
868          Makefile          Makefile
         RunGrepTest  
         RunTest  
869          libpcre.pc          libpcre.pc
870            libpcre16.pc
871            libpcreposix.pc
872          libpcrecpp.pc          libpcrecpp.pc
873          pcre-config          pcre-config
874          pcre.h          pcre.h
# Line 392  AC_CONFIG_FILES( Line 877  AC_CONFIG_FILES(
877  )  )
878    
879  # Make the generated script files executable.  # Make the generated script files executable.
880  AC_CONFIG_COMMANDS([script-chmod], [chmod a+x RunTest RunGrepTest pcre-config])  AC_CONFIG_COMMANDS([script-chmod], [chmod a+x pcre-config])
881    
882    # Make sure that pcre_chartables.c is removed in case the method for
883    # creating it was changed by reconfiguration.
884    AC_CONFIG_COMMANDS([delete-old-chartables], [rm -f pcre_chartables.c])
885    
886  AC_OUTPUT  AC_OUTPUT
887    
888  # Print out a nice little message after configure is run displaying your  # Print out a nice little message after configure is run displaying your
889  # chosen options.  # chosen options.
890  #  
891  cat <<EOF  cat <<EOF
892    
893  $PACKAGE-$VERSION configuration summary:  $PACKAGE-$VERSION configuration summary:
894    
895      Install prefix ......... : ${prefix}      Install prefix .................. : ${prefix}
896      C preprocessor ......... : ${CPP}      C preprocessor .................. : ${CPP}
897      C compiler ............. : ${CC}      C compiler ...................... : ${CC}
898      C++ preprocessor ....... : ${CXXCPP}      C++ preprocessor ................ : ${CXXCPP}
899      C++ compiler ........... : ${CXX}      C++ compiler .................... : ${CXX}
900      Linker ................. : ${LD}      Linker .......................... : ${LD}
901      C preprocessor flags ... : ${CPPFLAGS}      C preprocessor flags ............ : ${CPPFLAGS}
902      C compiler flags ....... : ${CFLAGS}      C compiler flags ................ : ${CFLAGS}
903      C++ compiler flags ..... : ${CXXFLAGS}      C++ compiler flags .............. : ${CXXFLAGS}
904      Linker flags ........... : ${LDFLAGS}      Linker flags .................... : ${LDFLAGS}
905      Extra libraries ........ : ${LIBS}      Extra libraries ................. : ${LIBS}
906    
907      Build C++ library ...... : ${enable_cpp}      Build 8 bit pcre library ........ : ${enable_pcre8}
908      Enable UTF-8 support ... : ${enable_utf8}      Build 16 bit pcre library ....... : ${enable_pcre16}
909      Unicode properties ..... : ${enable_unicode_properties}      Build C++ library ............... : ${enable_cpp}
910      Newline char/sequence .. : ${enable_newline}      Enable JIT compiling support .... : ${enable_jit}
911      EBCDIC coding .......... : ${enable_ebcdic}      Enable UTF-8/16 support ......... : ${enable_utf}
912      Use stack recursion .... : ${enable_stack_for_recursion}      Unicode properties .............. : ${enable_unicode_properties}
913      POSIX mem threshold .... : ${with_posix_malloc_threshold}      Newline char/sequence ........... : ${enable_newline}
914      Internal link size ..... : ${with_link_size}      \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
915      Match limit ............ : ${with_match_limit}      EBCDIC coding ................... : ${enable_ebcdic}
916      Match limit recursion .. : ${with_match_limit_recursion}      Rebuild char tables ............. : ${enable_rebuild_chartables}
917      Build shared libs ...... : ${enable_shared}      Use stack recursion ............. : ${enable_stack_for_recursion}
918      Build static libs ...... : ${enable_static}      POSIX mem threshold ............. : ${with_posix_malloc_threshold}
919        Internal link size .............. : ${with_link_size}
920        Match limit ..................... : ${with_match_limit}
921        Match limit recursion ........... : ${with_match_limit_recursion}
922        Build shared libs ............... : ${enable_shared}
923        Build static libs ............... : ${enable_static}
924        Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
925        Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
926        Link pcregrep with libz ......... : ${enable_pcregrep_libz}
927        Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
928        Link pcretest with libedit ...... : ${enable_pcretest_libedit}
929        Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
930    
931  EOF  EOF
932    

Legend:
Removed from v.111  
changed lines
  Added in v.936

  ViewVC Help
Powered by ViewVC 1.1.5