/[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 106 by ph10, Wed Mar 7 09:43:22 2007 UTC revision 127 by ph10, Mon Mar 19 11:44:45 2007 UTC
# Line 8  dnl empty. Line 8  dnl empty.
8    
9  m4_define(pcre_major, [7])  m4_define(pcre_major, [7])
10  m4_define(pcre_minor, [1])  m4_define(pcre_minor, [1])
11  m4_define(pcre_prerelease, [-RC1])  m4_define(pcre_prerelease, [-RC2])
12  m4_define(pcre_date, [2007-03-05])  m4_define(pcre_date, [2007-03-19])
13    
14  # Libtool shared library interface versions (current:revision:age)  # Libtool shared library interface versions (current:revision:age)
15  m4_define(libpcre_version, [0:1:0])  m4_define(libpcre_version, [0:1:0])
# Line 172  Some other environments also support the Line 172  Some other environments also support the
172  Standard C, but there are a few non-standard things it can cope with, allowing  Standard C, but there are a few non-standard things it can cope with, allowing
173  it to run on SunOS4 and other "close to standard" systems.  it to run on SunOS4 and other "close to standard" systems.
174    
175  On a system without "configure" you should use the distributed config.h, and  If you are going to build PCRE "by hand" on a system without "configure" you
176  set up the macros the way you need them.  should copy the distributed config.h.generic to config.h, and then set up the
177    macros the way you need them. Alternatively, you can avoid editing by using -D
178  If your system has bcopy() and not memmove(), change the definitions of  on the compiler command line to set the macro values.
179  HAVE_BCOPY and HAVE_MEMMOVE. If your system has neither bcopy() nor memmove(),  
180  leave them both undefined; an emulation function will be used. */])  PCRE uses memmove() if HAVE_MEMMOVE is set to 1; otherwise it uses bcopy() if
181    HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set
182    them both to 0; an emulation function will be used. */])
183    
184  # Checks for header files.  # Checks for header files.
185  AC_HEADER_STDC  AC_HEADER_STDC
# Line 191  then Line 193  then
193  AC_LANG_PUSH(C++)  AC_LANG_PUSH(C++)
194    
195  # 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
196  # (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
197  # 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.
198  AC_CHECK_HEADERS(string, [pcre_have_cpp_headers="1"],  AC_CHECK_HEADERS(string, [pcre_have_cpp_headers="1"],
199                           [pcre_have_cpp_headers="0"])                           [pcre_have_cpp_headers="0"])
# Line 249  fi Line 251  fi
251  if test "$enable_stack_for_recursion" = "no"; then  if test "$enable_stack_for_recursion" = "no"; then
252    AC_DEFINE([NO_RECURSE], [], [    AC_DEFINE([NO_RECURSE], [], [
253      PCRE uses recursive function calls to handle backtracking while      PCRE uses recursive function calls to handle backtracking while
254      matching.  This can sometimes be a problem on systems that have      matching. This can sometimes be a problem on systems that have
255      stacks of limited size. Define NO_RECURSE to get a version that      stacks of limited size. Define NO_RECURSE to get a version that
256      doesn't use recursion in the match() function; instead it creates      doesn't use recursion in the match() function; instead it creates
257      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 260  if test "$enable_stack_for_recursion" = Line 262  if test "$enable_stack_for_recursion" =
262  fi  fi
263    
264  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [
265    The value of NEWLINE determines the newline character sequence. On    The value of NEWLINE determines the newline character sequence. On
266    Unix-like systems, "configure" can be used to override the default,    Unix-like systems, "configure" can be used to override the default,
267    which is 10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF),    which is 10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF),
268    or -1 (ANY).])    or -1 (ANY).])
269    
270  AC_DEFINE_UNQUOTED([LINK_SIZE], [$with_link_size], [  AC_DEFINE_UNQUOTED([LINK_SIZE], [$with_link_size], [
# Line 302  AC_DEFINE_UNQUOTED([MATCH_LIMIT_RECURSIO Line 304  AC_DEFINE_UNQUOTED([MATCH_LIMIT_RECURSIO
304    NO_RECURSE is defined) that is used. The value of    NO_RECURSE is defined) that is used. The value of
305    MATCH_LIMIT_RECURSION applies only to recursive calls of match(). To    MATCH_LIMIT_RECURSION applies only to recursive calls of match(). To
306    have any useful effect, it must be less than the value of    have any useful effect, it must be less than the value of
307    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.
308    There is a runtime method for setting a different limit. On systems    There is a runtime method for setting a different limit. On systems
309    that support it, "configure" can be used to override the default.])    that support it, "configure" can be used to override the default.])
310    
311  AC_DEFINE([MAX_NAME_SIZE], [32], [  AC_DEFINE([MAX_NAME_SIZE], [32], [
# Line 340  if test "$enable_ebcdic" = "yes"; then Line 342  if test "$enable_ebcdic" = "yes"; then
342      "configure", this can be done via --enable-ebcdic.])      "configure", this can be done via --enable-ebcdic.])
343  fi  fi
344    
 # 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)  
   
345  # Platform specific issues  # Platform specific issues
346  NO_UNDEFINED=  NO_UNDEFINED=
347  EXPORT_ALL_SYMBOLS=  EXPORT_ALL_SYMBOLS=

Legend:
Removed from v.106  
changed lines
  Added in v.127

  ViewVC Help
Powered by ViewVC 1.1.5