configure.ac
来自「Ubuntu packages of security software。 相」· AC 代码 · 共 409 行 · 第 1/2 页
AC
409 行
dnl Process this file with autoconf to produce a configure script.dnl NOTE FOR MAINTAINERS: Do not use major or minor version numbers withdnl leading zeros, because they may be treated as octal constants. Thednl PCRE_PRERELEASE feature is for identifying release candidates. It mightdnl be defined as -RC2, for example. For real releases, it should be defineddnl empty.m4_define(pcre_major, [7])m4_define(pcre_minor, [4])m4_define(pcre_prerelease, [])m4_define(pcre_date, [2007-09-21])AC_PREREQ(2.57)AC_INIT(PCRE, pcre_major.pcre_minor[]pcre_prerelease, , pcre)AC_CONFIG_SRCDIR([pcre.h.in])AM_INIT_AUTOMAKE([dist-bzip2 dist-zip])AC_CONFIG_HEADERS(config.h)# The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just# "-g" for any other compiler. There doesn't seem to be a standard way of# getting rid of the -g (which I don't think is needed for a production# library). This fudge seems to achieve the necessary. First, we remember the# externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and# AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not# set, they will be set to Autoconf's defaults. Afterwards, if the original# values were not set, remove the -g from the Autoconf defaults.# (PH 02-May-07)remember_set_CFLAGS="$CFLAGS"AC_PROG_CCAC_PROG_RANLIBif test "x$remember_set_CFLAGS" = "x"then if test "$CFLAGS" = "-g -O2" then CFLAGS="-O2" elif test "$CFLAGS" = "-g" then CFLAGS="" fifiAC_PROG_INSTALLAC_PROG_LN_SPCRE_MAJOR="pcre_major"PCRE_MINOR="pcre_minor"PCRE_PRERELEASE="pcre_prerelease"PCRE_DATE="pcre_date"AC_SUBST(PCRE_MAJOR)AC_SUBST(PCRE_MINOR)AC_SUBST(PCRE_PRERELEASE)AC_SUBST(PCRE_DATE)# Set a more sensible default value for $(htmldir).if test "x$htmldir" = 'x${docdir}'then htmldir='${docdir}/html'fi# Handle --enable-rebuild-chartablesAC_ARG_ENABLE(rebuild-chartables, AS_HELP_STRING([--enable-rebuild-chartables], [rebuild character tables in current locale]), , enable_rebuild_chartables=no)# Handle --enable-utf8 (disabled by default)AC_ARG_ENABLE(utf8, AS_HELP_STRING([--enable-utf8], [enable UTF-8 support]), , enable_utf8=unset)# Handle --enable-unicode-propertiesAC_ARG_ENABLE(unicode-properties, AS_HELP_STRING([--enable-unicode-properties], [enable Unicode properties support (implies --enable-utf8)]), , enable_unicode_properties=no)# Handle --enable-newline=NLdnl 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 optionsac_pcre_newline=lfAC_ARG_ENABLE(newline-is-cr, AS_HELP_STRING([--enable-newline-is-cr], [use CR as newline character]), ac_pcre_newline=cr)AC_ARG_ENABLE(newline-is-lf, AS_HELP_STRING([--enable-newline-is-lf], [use LF as newline character (default)]), ac_pcre_newline=lf)AC_ARG_ENABLE(newline-is-crlf, AS_HELP_STRING([--enable-newline-is-crlf], [use CRLF as newline sequence]), ac_pcre_newline=crlf)AC_ARG_ENABLE(newline-is-anycrlf, AS_HELP_STRING([--enable-newline-is-anycrlf], [use CR, LF, or CRLF as newline sequence]), ac_pcre_newline=anycrlf)AC_ARG_ENABLE(newline-is-any, AS_HELP_STRING([--enable-newline-is-any], [use any valid Unicode newline sequence]), ac_pcre_newline=any)enable_newline="$ac_pcre_newline"# Handle --enable-bsr-anycrlfAC_ARG_ENABLE(bsr-anycrlf, AS_HELP_STRING([--enable-bsr-anycrlf], [\R matches only CR, LF, CRLF by default]), , enable_bsr_anycrlf=no)# Handle --enable-ebcdicAC_ARG_ENABLE(ebcdic, AS_HELP_STRING([--enable-ebcdic], [assume EBCDIC coding rather than ASCII; use this only in (uncommon) EBCDIC environments; it implies --enable-rebuild-chartables]), , enable_ebcdic=no)# Handle --disable-stack-for-recursionAC_ARG_ENABLE(stack-for-recursion, AS_HELP_STRING([--disable-stack-for-recursion], [don't use stack recursion when matching]), , enable_stack_for_recursion=yes)# Handle --with-posix-malloc-threshold=NBYTESAC_ARG_WITH(posix-malloc-threshold, AS_HELP_STRING([--with-posix-malloc-threshold=NBYTES], [threshold for POSIX malloc usage (default=10)]), , with_posix_malloc_threshold=10)# Handle --with-link-size=NAC_ARG_WITH(link-size, AS_HELP_STRING([--with-link-size=N], [internal link size (2, 3, or 4 allowed; default=2)]), , with_link_size=2)# Handle --with-match-limit=NAC_ARG_WITH(match-limit, AS_HELP_STRING([--with-match-limit=N], [default limit on internal looping (default=10000000)]), , with_match_limit=10000000)# Handle --with-match-limit_recursion=N## Note: In config.h, the default is to define MATCH_LIMIT_RECURSION# symbolically as MATCH_LIMIT, which in turn is defined to be some numeric# value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some# different numeric value (or even the same numeric value as MATCH_LIMIT,# though no longer defined in terms of the latter).#AC_ARG_WITH(match-limit-recursion, AS_HELP_STRING([--with-match-limit-recursion=N], [default limit on internal recursion (default=MATCH_LIMIT)]), , with_match_limit_recursion=MATCH_LIMIT)# Make sure that if enable_unicode_properties was set, that UTF-8 support# is enabled.#if test "x$enable_unicode_properties" = "xyes"then if test "x$enable_utf8" = "xno" then AC_MSG_ERROR([support for Unicode properties requires UTF-8 support]) fi enable_utf8=yesfiif test "x$enable_utf8" = "xunset"then enable_utf8=nofi# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.#if test "x$enable_ebcdic" = "xyes"then enable_rebuild_chartables=yesfi# Convert the newline identifier into the appropriate integer value.case "$enable_newline" in lf) ac_pcre_newline_value=10 ;; cr) ac_pcre_newline_value=13 ;; crlf) ac_pcre_newline_value=3338 ;; anycrlf) ac_pcre_newline_value=-2 ;; any) ac_pcre_newline_value=-1 ;; *) AC_MSG_ERROR([invalid argument \"$enable_newline\" to --enable-newline option]) ;;esac# Check argument to --with-link-sizecase "$with_link_size" in 2|3|4) ;; *) AC_MSG_ERROR([invalid argument \"$with_link_size\" to --with-link-size option]) ;;esac
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?