/[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 131 by ph10, Mon Mar 26 15:10:12 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, [-RC3])
12  m4_define(pcre_date, [2007-03-05])  m4_define(pcre_date, [2007-03-26])
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 49  AC_ARG_ENABLE(cpp, Line 49  AC_ARG_ENABLE(cpp,
49                               [disable C++ support]),                               [disable C++ support]),
50                , enable_cpp=yes)                , enable_cpp=yes)
51    
52    # Handle --enable-rebuild-chartables
53    AC_ARG_ENABLE(rebuild-chartables,
54                  AS_HELP_STRING([--enable-rebuild-chartables],
55                                 [rebuild character tables in current locale]),
56                  , enable_rebuild_chartables=no)
57    
58  # Handle --enable-utf8 (disabled by default)  # Handle --enable-utf8 (disabled by default)
59  AC_ARG_ENABLE(utf8,  AC_ARG_ENABLE(utf8,
60                AS_HELP_STRING([--enable-utf8],                AS_HELP_STRING([--enable-utf8],
# Line 90  enable_newline="$ac_pcre_newline" Line 96  enable_newline="$ac_pcre_newline"
96  # Handle --enable-ebcdic  # Handle --enable-ebcdic
97  AC_ARG_ENABLE(ebcdic,  AC_ARG_ENABLE(ebcdic,
98                AS_HELP_STRING([--enable-ebcdic],                AS_HELP_STRING([--enable-ebcdic],
99                               [assume EBCDIC coding rather than ASCII]),                               [assume EBCDIC coding rather than ASCII (implies --enable-rebuild-chartables)]),
100                , enable_ebcdic=no)                , enable_ebcdic=no)
101    
102  # Handle --disable-stack-for-recursion  # Handle --disable-stack-for-recursion
# Line 147  then Line 153  then
153    enable_utf8=no    enable_utf8=no
154  fi  fi
155    
156    # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
157    #
158    if test "x$enable_ebcdie" = "xyes"
159    then
160      enable_rebuild_chartables=yes
161    fi
162    
163  # Convert the newline identifier into the appropriate integer value.  # Convert the newline identifier into the appropriate integer value.
164  case "$enable_newline" in  case "$enable_newline" in
165    lf)   ac_pcre_newline_value=10   ;;    lf)   ac_pcre_newline_value=10   ;;
# Line 172  Some other environments also support the Line 185  Some other environments also support the
185  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
186  it to run on SunOS4 and other "close to standard" systems.  it to run on SunOS4 and other "close to standard" systems.
187    
188  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
189  set up the macros the way you need them.  should copy the distributed config.h.generic to config.h, and then set up the
190    macros the way you need them. Alternatively, you can avoid editing by using -D
191  If your system has bcopy() and not memmove(), change the definitions of  on the compiler command line to set the macro values.
192  HAVE_BCOPY and HAVE_MEMMOVE. If your system has neither bcopy() nor memmove(),  
193  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
194    HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set
195    them both to 0; an emulation function will be used. */])
196    
197  # Checks for header files.  # Checks for header files.
198  AC_HEADER_STDC  AC_HEADER_STDC
# Line 191  then Line 206  then
206  AC_LANG_PUSH(C++)  AC_LANG_PUSH(C++)
207    
208  # 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
209  # (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
210  # 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.
211  AC_CHECK_HEADERS(string, [pcre_have_cpp_headers="1"],  AC_CHECK_HEADERS(string, [pcre_have_cpp_headers="1"],
212                           [pcre_have_cpp_headers="0"])                           [pcre_have_cpp_headers="0"])
# Line 207  AC_SUBST(pcre_have_bits_type_traits) Line 222  AC_SUBST(pcre_have_bits_type_traits)
222    
223  # Conditional compilation  # Conditional compilation
224  AM_CONDITIONAL(WITH_PCRE_CPP, test "x$enable_cpp" = "xyes")  AM_CONDITIONAL(WITH_PCRE_CPP, test "x$enable_cpp" = "xyes")
225    AM_CONDITIONAL(WITH_REBUILD_CHARTABLES, test "x$enable_rebuild_chartables" = "xyes")
226    
227  # Checks for typedefs, structures, and compiler characteristics.  # Checks for typedefs, structures, and compiler characteristics.
228    
# Line 249  fi Line 265  fi
265  if test "$enable_stack_for_recursion" = "no"; then  if test "$enable_stack_for_recursion" = "no"; then
266    AC_DEFINE([NO_RECURSE], [], [    AC_DEFINE([NO_RECURSE], [], [
267      PCRE uses recursive function calls to handle backtracking while      PCRE uses recursive function calls to handle backtracking while
268      matching.  This can sometimes be a problem on systems that have      matching. This can sometimes be a problem on systems that have
269      stacks of limited size. Define NO_RECURSE to get a version that      stacks of limited size. Define NO_RECURSE to get a version that
270      doesn't use recursion in the match() function; instead it creates      doesn't use recursion in the match() function; instead it creates
271      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 276  if test "$enable_stack_for_recursion" =
276  fi  fi
277    
278  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [
279    The value of NEWLINE determines the newline character sequence. On    The value of NEWLINE determines the newline character sequence. On
280    Unix-like systems, "configure" can be used to override the default,    Unix-like systems, "configure" can be used to override the default,
281    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),
282    or -1 (ANY).])    or -1 (ANY).])
283    
284  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 318  AC_DEFINE_UNQUOTED([MATCH_LIMIT_RECURSIO
318    NO_RECURSE is defined) that is used. The value of    NO_RECURSE is defined) that is used. The value of
319    MATCH_LIMIT_RECURSION applies only to recursive calls of match(). To    MATCH_LIMIT_RECURSION applies only to recursive calls of match(). To
320    have any useful effect, it must be less than the value of    have any useful effect, it must be less than the value of
321    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.
322    There is a runtime method for setting a different limit. On systems    There is a runtime method for setting a different limit. On systems
323    that support it, "configure" can be used to override the default.])    that support it, "configure" can be used to override the default.])
324    
325  AC_DEFINE([MAX_NAME_SIZE], [32], [  AC_DEFINE([MAX_NAME_SIZE], [32], [
# Line 340  if test "$enable_ebcdic" = "yes"; then Line 356  if test "$enable_ebcdic" = "yes"; then
356      "configure", this can be done via --enable-ebcdic.])      "configure", this can be done via --enable-ebcdic.])
357  fi  fi
358    
 # 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)  
   
359  # Platform specific issues  # Platform specific issues
360  NO_UNDEFINED=  NO_UNDEFINED=
361  EXPORT_ALL_SYMBOLS=  EXPORT_ALL_SYMBOLS=
# Line 394  AC_CONFIG_COMMANDS([script-chmod], [chmo Line 403  AC_CONFIG_COMMANDS([script-chmod], [chmo
403    
404  AC_OUTPUT  AC_OUTPUT
405    
406    # Make sure that pcre_chartables.c is removed in case the method for
407    # creating it was changed by reconfiguration.
408    
409    rm -f pcre_chartables.c
410    
411  # Print out a nice little message after configure is run displaying your  # Print out a nice little message after configure is run displaying your
412  # chosen options.  # chosen options.
413  #  #
# Line 418  $PACKAGE-$VERSION configuration summary: Line 432  $PACKAGE-$VERSION configuration summary:
432      Unicode properties ..... : ${enable_unicode_properties}      Unicode properties ..... : ${enable_unicode_properties}
433      Newline char/sequence .. : ${enable_newline}      Newline char/sequence .. : ${enable_newline}
434      EBCDIC coding .......... : ${enable_ebcdic}      EBCDIC coding .......... : ${enable_ebcdic}
435        Rebuild char tables .... : ${enable_rebuild_chartables}
436      Use stack recursion .... : ${enable_stack_for_recursion}      Use stack recursion .... : ${enable_stack_for_recursion}
437      POSIX mem threshold .... : ${with_posix_malloc_threshold}      POSIX mem threshold .... : ${with_posix_malloc_threshold}
438      Internal link size ..... : ${with_link_size}      Internal link size ..... : ${with_link_size}

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12