Lines Matching +full:- +full:- +full:gcov +full:- +full:options

9 dnl be defined as -RC2, for example. For real releases, it should be empty.
14 m4_define(pcre_date, [2015-11-23])
29 AM_INIT_AUTOMAKE([dist-bzip2 dist-zip])
36 # This was added at the suggestion of libtoolize (03-Jan-10)
39 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
40 # "-g" for any other compiler. There doesn't seem to be a standard way of
41 # getting rid of the -g (which I don't think is needed for a production
44 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
46 # values were not set, remove the -g from the Autoconf defaults.
47 # (PH 02-May-07)
58 if test "$CFLAGS" = "-g -O2"
60 CFLAGS="-O2"
61 elif test "$CFLAGS" = "-g"
69 if test "$CXXFLAGS" = "-g -O2"
71 CXXFLAGS="-O2"
72 elif test "$CXXFLAGS" = "-g"
84 # Check for a 64-bit integer type
103 if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
123 # Handle --disable-pcre8 (enabled by default)
125 AS_HELP_STRING([--disable-pcre8],
130 # Handle --enable-pcre16 (disabled by default)
132 AS_HELP_STRING([--enable-pcre16],
137 # Handle --enable-pcre32 (disabled by default)
139 AS_HELP_STRING([--enable-pcre32],
144 # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
145 # pcre-config.
147 AS_HELP_STRING([--disable-cpp],
152 # Handle --enable-jit (disabled by default)
154 AS_HELP_STRING([--enable-jit],
155 [enable Just-In-Time compiling support]),
158 # Handle --disable-pcregrep-jit (enabled by default)
159 AC_ARG_ENABLE(pcregrep-jit,
160 AS_HELP_STRING([--disable-pcregrep-jit],
164 # Handle --enable-rebuild-chartables
165 AC_ARG_ENABLE(rebuild-chartables,
166 AS_HELP_STRING([--enable-rebuild-chartables],
170 # Handle --enable-utf8 (disabled by default)
172 AS_HELP_STRING([--enable-utf8],
173 [another name for --enable-utf. Kept only for compatibility reasons]),
176 # Handle --enable-utf (disabled by default)
178 AS_HELP_STRING([--enable-utf],
179 [enable UTF-8/16/32 support (incompatible with --enable-ebcdic)]),
182 # Handle --enable-unicode-properties
183 AC_ARG_ENABLE(unicode-properties,
184 AS_HELP_STRING([--enable-unicode-properties],
185 [enable Unicode properties support (implies --enable-utf)]),
188 # Handle newline options
190 AC_ARG_ENABLE(newline-is-cr,
191 AS_HELP_STRING([--enable-newline-is-cr],
194 AC_ARG_ENABLE(newline-is-lf,
195 AS_HELP_STRING([--enable-newline-is-lf],
198 AC_ARG_ENABLE(newline-is-crlf,
199 AS_HELP_STRING([--enable-newline-is-crlf],
202 AC_ARG_ENABLE(newline-is-anycrlf,
203 AS_HELP_STRING([--enable-newline-is-anycrlf],
206 AC_ARG_ENABLE(newline-is-any,
207 AS_HELP_STRING([--enable-newline-is-any],
212 # Handle --enable-bsr-anycrlf
213 AC_ARG_ENABLE(bsr-anycrlf,
214 AS_HELP_STRING([--enable-bsr-anycrlf],
218 # Handle --enable-ebcdic
220 AS_HELP_STRING([--enable-ebcdic],
221 …er than ASCII; incompatible with --enable-utf; use only in (uncommon) EBCDIC environments; it impl…
224 # Handle --enable-ebcdic-nl25
225 AC_ARG_ENABLE(ebcdic-nl25,
226 AS_HELP_STRING([--enable-ebcdic-nl25],
227 … [set EBCDIC code for NL to 0x25 instead of 0x15; it implies --enable-ebcdic]),
230 # Handle --disable-stack-for-recursion
231 AC_ARG_ENABLE(stack-for-recursion,
232 AS_HELP_STRING([--disable-stack-for-recursion],
236 # Handle --enable-pcregrep-libz
237 AC_ARG_ENABLE(pcregrep-libz,
238 AS_HELP_STRING([--enable-pcregrep-libz],
242 # Handle --enable-pcregrep-libbz2
243 AC_ARG_ENABLE(pcregrep-libbz2,
244 AS_HELP_STRING([--enable-pcregrep-libbz2],
248 # Handle --with-pcregrep-bufsize=N
249 AC_ARG_WITH(pcregrep-bufsize,
250 AS_HELP_STRING([--with-pcregrep-bufsize=N],
254 # Handle --enable-pcretest-libedit
255 AC_ARG_ENABLE(pcretest-libedit,
256 AS_HELP_STRING([--enable-pcretest-libedit],
260 # Handle --enable-pcretest-libreadline
261 AC_ARG_ENABLE(pcretest-libreadline,
262 AS_HELP_STRING([--enable-pcretest-libreadline],
266 # Handle --with-posix-malloc-threshold=NBYTES
267 AC_ARG_WITH(posix-malloc-threshold,
268 AS_HELP_STRING([--with-posix-malloc-threshold=NBYTES],
272 # Handle --with-link-size=N
273 AC_ARG_WITH(link-size,
274 AS_HELP_STRING([--with-link-size=N],
278 # Handle --with-parens-nest-limit=N
279 AC_ARG_WITH(parens-nest-limit,
280 AS_HELP_STRING([--with-parens-nest-limit=N],
284 # Handle --with-match-limit=N
285 AC_ARG_WITH(match-limit,
286 AS_HELP_STRING([--with-match-limit=N],
290 # Handle --with-match-limit_recursion=N
298 AC_ARG_WITH(match-limit-recursion,
299 AS_HELP_STRING([--with-match-limit-recursion=N],
303 # Handle --enable-valgrind
305 AS_HELP_STRING([--enable-valgrind],
309 # Enable code coverage reports using gcov
311 AS_HELP_STRING([--enable-coverage],
312 [enable code coverage reports using gcov]),
320 …R([--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enabl…
354 AC_MSG_ERROR([support for Unicode properties requires UTF-8/16/32 support])
388 anycrlf) ac_pcre_newline_value=-2 ;;
389 any) ac_pcre_newline_value=-1 ;;
391 AC_MSG_ERROR([invalid argument \"$enable_newline\" to --enable-newline option])
395 # --enable-ebcdic-nl25 implies --enable-ebcdic
410 AC_MSG_ERROR([support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time])
426 # Check argument to --with-link-size
430 AC_MSG_ERROR([invalid argument \"$with_link_size\" to --with-link-size option])
435 /* PCRE is written in Standard C, but there are a few non-standard things it
441 config-cmake.in is converted into config.h. If you are going to build PCRE "by
444 need them. You must then add -DHAVE_CONFIG_H to all of your compile commands,
447 Alternatively, you can avoid editing by using -D on the compiler command line
448 to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H,
449 but if you do, default values will be taken from config.h for non-boolean
456 surrounded by #ifndef/#endif lines so that the value can be overridden by -D.
471 if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
475 if test "x$enable_cpp" = "xyes" -a -n "$CXX"
483 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
485 for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
486 "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
488 LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
497 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
513 # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
590 # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
592 # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
594 # - The compiler thus generates a "C" signature for the test function.
595 # - The linker fails to find the "C" function.
596 # - PCRE fails to configure if asked to do so against libbz2.
600 # - Replace the AC_CHECK_LIB test with a custom test.
610 LIBS="$LIBS -lbz2"
625 AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lreadline"],
627 AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-ltinfo"],
629 AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lcurses"],
631 AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lncurses"],
633 AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lncursesw"],
635 AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-ltermcap"],
637 [-ltermcap])],
638 [-lncursesw])],
639 [-lncurses])],
640 [-lcurses])],
641 [-ltinfo])])
643 if test -n "$LIBREADLINE"; then
644 if test "$LIBREADLINE" != "-lreadline"; then
645 echo "-lreadline needs $LIBREADLINE"
646 LIBREADLINE="-lreadline $LIBREADLINE"
659 AC_CHECK_LIB([edit], [readline], [LIBEDIT="-ledit"])
662 # This facilitates -ansi builds under Linux
669 PCRE_STATIC_CFLAG="-DPCRE_STATIC"
700 Define to any value to enable support for Just-In-Time compiling.])
712 Define to any value to enable support for the UTF-8/16/32 Unicode encoding.
715 code *or* ASCII/UTF-8/16/32, but not both at once.])
746 if test $with_pcregrep_bufsize -lt 8192 ; then
747 AC_MSG_WARN([$with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192])
750 if test $? -gt 1 ; then
751 AC_MSG_ERROR([Bad value for --with-pcregrep-bufsize])
777 and EBCDIC environments the value can also be -1 (ANY), or -2 (ANYCRLF).])
783 value), this is changed so that backslash-R matches only CR, LF, or CRLF.
784 The build-time default can be overridden by the user of PCRE at runtime.])
839 /* If you are compiling for a system other than a Unix-like system or
858 input strings are ASCII or UTF-8/16/32 Unicode. It is not possible to build
859 a version of PCRE that supports both EBCDIC and UTF-8/16/32.])
882 NO_UNDEFINED="-no-undefined"
883 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
892 $NO_UNDEFINED -version-info libpcre_version"
895 $NO_UNDEFINED -version-info libpcre16_version"
898 $NO_UNDEFINED -version-info libpcre32_version"
901 $NO_UNDEFINED -version-info libpcreposix_version"
904 $NO_UNDEFINED -version-info libpcrecpp_version \
915 …CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp -…
918 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
923 echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
927 echo "** Cannot --enable-pcregrep-libz because libz was not found"
930 LIBZ="-lz"
936 echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
940 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
943 LIBBZ2="-lbz2"
947 # Similarly for --enable-pcretest-readline
951 echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
954 if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
956 echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
960 if test -z "$LIBEDIT"; then
961 echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
968 echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
972 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
975 if test -z "$LIBREADLINE"; then
976 echo "** Cannot --enable-pcretest-readline because readline library was not found."
986 [AC_MSG_ERROR([pkg-config not supported])])
995 # ccache is incompatible with gcov
1003 if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
1020 # Set flags needed for gcov
1021 GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
1022 GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
1023 GCOV_LIBS="-lgcov"
1039 pcre-config
1046 AC_CONFIG_COMMANDS([script-chmod], [chmod a+x pcre-config])
1050 AC_CONFIG_COMMANDS([delete-old-chartables], [rm -f pcre_chartables.c])
1055 # chosen options.
1066 $PACKAGE-$VERSION configuration summary:
1085 Enable UTF-8/16/32 support ...... : ${enable_utf}