/[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 1028 by ph10, Thu Sep 6 16:55:38 2012 UTC revision 1031 by ph10, Sat Sep 8 15:59:01 2012 UTC
# Line 167  AC_ARG_ENABLE(unicode-properties, Line 167  AC_ARG_ENABLE(unicode-properties,
167                               [enable Unicode properties support (implies --enable-utf)]),                               [enable Unicode properties support (implies --enable-utf)]),
168                , enable_unicode_properties=no)                , enable_unicode_properties=no)
169    
170  # Handle --enable-newline=NL  # Handle newline options
 dnl AC_ARG_ENABLE(newline,  
 dnl               AS_HELP_STRING([--enable-newline=NL],  
 dnl                              [use NL as newline (lf, cr, crlf, anycrlf, any; default=lf)]),  
 dnl               , enable_newline=lf)  
   
 # Separate newline options  
171  ac_pcre_newline=lf  ac_pcre_newline=lf
172  AC_ARG_ENABLE(newline-is-cr,  AC_ARG_ENABLE(newline-is-cr,
173                AS_HELP_STRING([--enable-newline-is-cr],                AS_HELP_STRING([--enable-newline-is-cr],
# Line 396  case "$with_link_size" in Line 390  case "$with_link_size" in
390  esac  esac
391    
392  AH_TOP([  AH_TOP([
393  /* On Unix-like systems config.h.in is converted by "configure" into config.h.  /* PCRE is written in Standard C, but there are a few non-standard things it
394  Some other environments also support the use of "configure". PCRE is written in  can cope with, allowing it to run on SunOS4 and other "close to standard"
395  Standard C, but there are a few non-standard things it can cope with, allowing  systems.
396  it to run on SunOS4 and other "close to standard" systems.  
397    In environments that support the facilities, config.h.in is converted by
398  If you are going to build PCRE "by hand" on a system without "configure" you  "configure", or config-cmake.h.in is converted by CMake, into config.h. If you
399  should copy the distributed config.h.generic to config.h, and then set up the  are going to build PCRE "by hand" without using "configure" or CMake, you
400  macro definitions the way you need them. You must then add -DHAVE_CONFIG_H to  should copy the distributed config.h.generic to config.h, and then edit the
401  all of your compile commands, so that config.h is included at the start of  macro definitions to be the way you need them. You must then add
402  every source.  -DHAVE_CONFIG_H to all of your compile commands, so that config.h is included
403    at the start of every source.
404    
405  Alternatively, you can avoid editing by using -D on the compiler command line  Alternatively, you can avoid editing by using -D on the compiler command line
406  to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H.  to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H.
# Line 666  if test "$enable_stack_for_recursion" = Line 661  if test "$enable_stack_for_recursion" =
661      version that doesn't use recursion in the match() function; instead      version that doesn't use recursion in the match() function; instead
662      it creates its own stack by steam using pcre_recurse_malloc() to obtain      it creates its own stack by steam using pcre_recurse_malloc() to obtain
663      memory from the heap. For more detail, see the comments and other stuff      memory from the heap. For more detail, see the comments and other stuff
664      just above the match() function. On systems that support it, "configure"      just above the match() function.])
     can be used to set this in the Makefile (use  
     --disable-stack-for-recursion).])  
665  fi  fi
666    
667  if test "$enable_pcregrep_libz" = "yes"; then  if test "$enable_pcregrep_libz" = "yes"; then
# Line 688  if test $with_pcregrep_bufsize -lt 8192 Line 681  if test $with_pcregrep_bufsize -lt 8192
681  fi  fi
682    
683  AC_DEFINE_UNQUOTED([PCREGREP_BUFSIZE], [$with_pcregrep_bufsize], [  AC_DEFINE_UNQUOTED([PCREGREP_BUFSIZE], [$with_pcregrep_bufsize], [
684    The value of PCREGREP_BUFSIZE determines the size of buffer used by    The value of PCREGREP_BUFSIZE determines the size of buffer used by pcregrep
685    pcregrep to hold parts of the file it is searching. On systems that    to hold parts of the file it is searching. This is also the minimum value.
686    support it, "configure" can be used to override the default, which is    The actual amount of memory used by pcregrep is three times this number,
687    20K. This is also the minimum value. The actual amount of memory used by    because it allows for the buffering of "before" and "after" lines.])
   pcregrep is three times this number, because it allows for the buffering of  
   "before" and "after" lines.])  
688    
689  if test "$enable_pcretest_libedit" = "yes"; then  if test "$enable_pcretest_libedit" = "yes"; then
690    AC_DEFINE([SUPPORT_LIBEDIT], [], [    AC_DEFINE([SUPPORT_LIBEDIT], [], [
# Line 705  elif test "$enable_pcretest_libreadline" Line 696  elif test "$enable_pcretest_libreadline"
696  fi  fi
697    
698  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [
699    The value of NEWLINE determines the newline character sequence. On    The value of NEWLINE determines the default newline character sequence. PCRE
700    systems that support it, "configure" can be used to override the    client programs can override this by selecting other values at run time. In
701    default, which is LF. In ASCII environments, the value can be 10 (LF),    ASCII environments, the value can be 10 (LF), 13 (CR), or 3338 (CRLF); in
702    13 (CR), or 3338 (CRLF); in EBCDIC environments the value can be 21 or 37    EBCDIC environments the value can be 21 or 37 (LF), 13 (CR), or 3349 or 3365
703    (LF), 13 (CR), or 3349 or 3365 (CRLF) because there are two alternative    (CRLF) because there are two alternative codepoints (0x15 and 0x25) that are
704    codepoints (0x15 and 0x25) that are used as the NL line terminator that is    used as the NL line terminator that is equivalent to ASCII LF. In both ASCII
705    equivalent to ASCII LF. In both ASCII and EBCDIC environments the value can    and EBCDIC environments the value can also be -1 (ANY), or -2 (ANYCRLF).])
   also be -1 (ANY), or -2 (ANYCRLF).])  
706    
707  if test "$enable_bsr_anycrlf" = "yes"; then  if test "$enable_bsr_anycrlf" = "yes"; then
708    AC_DEFINE([BSR_ANYCRLF], [], [    AC_DEFINE([BSR_ANYCRLF], [], [
709      By default, the \R escape sequence matches any Unicode line ending      By default, the \R escape sequence matches any Unicode line ending
710      character or sequence of characters. If BSR_ANYCRLF is defined (to any      character or sequence of characters. If BSR_ANYCRLF is defined (to any
711      value), this is changed so that backslash-R matches only CR, LF, or CRLF.      value), this is changed so that backslash-R matches only CR, LF, or CRLF.
712      The build-time default can be overridden by the user of PCRE at runtime.      The build-time default can be overridden by the user of PCRE at runtime.])
     On systems that support it, "configure" can be used to override the  
     default.])  
713  fi  fi
714    
715  AC_DEFINE_UNQUOTED([LINK_SIZE], [$with_link_size], [  AC_DEFINE_UNQUOTED([LINK_SIZE], [$with_link_size], [
# Line 729  AC_DEFINE_UNQUOTED([LINK_SIZE], [$with_l Line 717  AC_DEFINE_UNQUOTED([LINK_SIZE], [$with_l
717    links as offsets within the compiled regex. The default is 2, which    links as offsets within the compiled regex. The default is 2, which
718    allows for compiled patterns up to 64K long. This covers the vast    allows for compiled patterns up to 64K long. This covers the vast
719    majority of cases. However, PCRE can also be compiled to use 3 or 4    majority of cases. However, PCRE can also be compiled to use 3 or 4
720    bytes instead. This allows for longer patterns in extreme cases. On    bytes instead. This allows for longer patterns in extreme cases.])
   systems that support it, "configure" can be used to override this default.])  
721    
722  AC_DEFINE_UNQUOTED([POSIX_MALLOC_THRESHOLD], [$with_posix_malloc_threshold], [  AC_DEFINE_UNQUOTED([POSIX_MALLOC_THRESHOLD], [$with_posix_malloc_threshold], [
723    When calling PCRE via the POSIX interface, additional working storage    When calling PCRE via the POSIX interface, additional working storage
# Line 739  AC_DEFINE_UNQUOTED([POSIX_MALLOC_THRESHO Line 726  AC_DEFINE_UNQUOTED([POSIX_MALLOC_THRESHO
726    interface provides only two. If the number of expected substrings is    interface provides only two. If the number of expected substrings is
727    small, the wrapper function uses space on the stack, because this is    small, the wrapper function uses space on the stack, because this is
728    faster than using malloc() for each call. The threshold above which    faster than using malloc() for each call. The threshold above which
729    the stack is no longer used is defined by POSIX_MALLOC_THRESHOLD. On    the stack is no longer used is defined by POSIX_MALLOC_THRESHOLD.])
   systems that support it, "configure" can be used to override this  
   default.])  
730    
731  AC_DEFINE_UNQUOTED([MATCH_LIMIT], [$with_match_limit], [  AC_DEFINE_UNQUOTED([MATCH_LIMIT], [$with_match_limit], [
732    The value of MATCH_LIMIT determines the default number of times the    The value of MATCH_LIMIT determines the default number of times the
# Line 750  AC_DEFINE_UNQUOTED([MATCH_LIMIT], [$with Line 735  AC_DEFINE_UNQUOTED([MATCH_LIMIT], [$with
735    limit. The limit exists in order to catch runaway regular    limit. The limit exists in order to catch runaway regular
736    expressions that take for ever to determine that they do not match.    expressions that take for ever to determine that they do not match.
737    The default is set very large so that it does not accidentally catch    The default is set very large so that it does not accidentally catch
738    legitimate cases. On systems that support it, "configure" can be    legitimate cases.])
   used to override this default default.])  
739    
740  AC_DEFINE_UNQUOTED([MATCH_LIMIT_RECURSION], [$with_match_limit_recursion], [  AC_DEFINE_UNQUOTED([MATCH_LIMIT_RECURSION], [$with_match_limit_recursion], [
741    The above limit applies to all calls of match(), whether or not they    The above limit applies to all calls of match(), whether or not they
# Line 762  AC_DEFINE_UNQUOTED([MATCH_LIMIT_RECURSIO Line 746  AC_DEFINE_UNQUOTED([MATCH_LIMIT_RECURSIO
746    MATCH_LIMIT_RECURSION applies only to recursive calls of match(). To    MATCH_LIMIT_RECURSION applies only to recursive calls of match(). To
747    have any useful effect, it must be less than the value of    have any useful effect, it must be less than the value of
748    MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT.    MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT.
749    There is a runtime method for setting a different limit. On systems    There is a runtime method for setting a different limit.])
   that support it, "configure" can be used to override the default.])  
750    
751  AC_DEFINE([MAX_NAME_SIZE], [32], [  AC_DEFINE([MAX_NAME_SIZE], [32], [
752    This limit is parameterized just in case anybody ever wants to    This limit is parameterized just in case anybody ever wants to
# Line 790  AH_VERBATIM([PCRE_EXP_DEFN], [ Line 773  AH_VERBATIM([PCRE_EXP_DEFN], [
773  if test "$enable_ebcdic" = "yes"; then  if test "$enable_ebcdic" = "yes"; then
774    AC_DEFINE_UNQUOTED([EBCDIC], [], [    AC_DEFINE_UNQUOTED([EBCDIC], [], [
775      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
776      character codes, define this macro to any value. On systems that can      character codes, define this macro to any value. You must also edit the
777      use "configure", this can be done via --enable-ebcdic. PCRE will then      NEWLINE macro below to set a suitable EBCDIC newline, commonly 21 (0x15).
778      assume that all input strings are in EBCDIC. If you do not define      On systems that can use "configure" or CMake to set EBCDIC, NEWLINE is
779      this macro, PCRE will assume input strings are ASCII or UTF-8/16      automatically adjusted. When EBCDIC is set, PCRE assumes that all input
780      Unicode. It is not possible to build a version of PCRE that      strings are in EBCDIC. If you do not define this macro, PCRE will assume
781      supports both EBCDIC and UTF-8/16.])      input strings are ASCII or UTF-8/16 Unicode. It is not possible to build a
782        version of PCRE that supports both EBCDIC and UTF-8/16.])
783  fi  fi
784    
785  if test "$enable_ebcdic_nl25" = "yes"; then  if test "$enable_ebcdic_nl25" = "yes"; then
786    AC_DEFINE_UNQUOTED([EBCDIC_NL25], [], [    AC_DEFINE_UNQUOTED([EBCDIC_NL25], [], [
787      In an EBCDIC environment, define this macro to any value to arrange for      In an EBCDIC environment, define this macro to any value to arrange for
788      the NL character to be 0x25 instead of the default 0x15. NL plays the role      the NL character to be 0x25 instead of the default 0x15. NL plays the role
789      that LF does in an ASCII/Unicode environment.])      that LF does in an ASCII/Unicode environment. The value must also be set in
790        the NEWLINE macro below. On systems that can use "configure" or CMake to
791        set EBCDIC_NL25, the adjustment of NEWLINE is automatic.])
792  fi  fi
793    
794  # Platform specific issues  # Platform specific issues

Legend:
Removed from v.1028  
changed lines
  Added in v.1031

  ViewVC Help
Powered by ViewVC 1.1.5