diff options
author | Martin Liska <mliska@suse.cz> | 2016-05-20 10:03:25 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-05-20 08:03:25 +0000 |
commit | ceb17928e5d1d5f89636699f13cc3bde6e19644c (patch) | |
tree | a531025dac09550010a1767b26770c5054b3711f /libcpp/configure | |
parent | 2fe676f6df069ed1e33a6691c9062c9c56910bd0 (diff) | |
download | gcc-ceb17928e5d1d5f89636699f13cc3bde6e19644c.zip gcc-ceb17928e5d1d5f89636699f13cc3bde6e19644c.tar.gz gcc-ceb17928e5d1d5f89636699f13cc3bde6e19644c.tar.bz2 |
Change ENABLE_VALGRIND_CHECKING to
* config.in: Regenerated.
* configure: Likewise.
* configure.ac: Handle --enable-valgrind-annotations.
* lex.c (new_buff): Use ENABLE_VALGRIND_ANNOTATIONS instead
of ENABLE_VALGRIND_CHECKING.
(_cpp_free_buff): Likewise.
From-SVN: r236496
Diffstat (limited to 'libcpp/configure')
-rwxr-xr-x | libcpp/configure | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libcpp/configure b/libcpp/configure index 0342f16..b6f129c 100755 --- a/libcpp/configure +++ b/libcpp/configure @@ -703,6 +703,7 @@ enable_maintainer_mode enable_checking enable_canonical_system_headers enable_host_shared +enable_valgrind_annotations ' ac_precious_vars='build_alias host_alias @@ -1343,6 +1344,8 @@ Optional Features: --enable-canonical-system-headers enable or disable system headers canonicalization --enable-host-shared build host code as shared libraries + --enable-valgrind-annotations + enable valgrind runtime interaction Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -7355,6 +7358,25 @@ fi +# Check whether --enable-valgrind-annotations was given. +if test "${enable_valgrind_annotations+set}" = set; then : + enableval=$enable_valgrind_annotations; +else + enable_valgrind_annotations=no +fi + +if test x$enable_valgrind_annotations != xno \ + || test x$ac_valgrind_checking != x; then + if (test $have_valgrind_h = no \ + && test $gcc_cv_header_memcheck_h = no \ + && test $gcc_cv_header_valgrind_memcheck_h = no); then + as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 + fi + +$as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h + +fi + # Output. ac_config_headers="$ac_config_headers config.h:config.in" |