|
1 | 1 | #! /bin/sh |
2 | | -# From configure.in Revision: 76568 . |
| 2 | +# From configure.in Revision: 76636 . |
3 | 3 | # Guess values for system-dependent variables and create Makefiles. |
4 | 4 | # Generated by GNU Autoconf 2.61 for python 2.7. |
5 | 5 | # |
@@ -1362,6 +1362,7 @@ Optional Packages: |
1362 | 1362 | --with(out)-doc-strings disable/enable documentation strings |
1363 | 1363 | --with(out)-tsc enable/disable timestamp counter profile |
1364 | 1364 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1365 | + --with-valgrind Enable Valgrind support |
1365 | 1366 | --with-wctype-functions use wctype.h functions |
1366 | 1367 | --with-fpectl enable SIGFPE catching |
1367 | 1368 | --with-libm=STRING math library |
@@ -17616,6 +17617,166 @@ fi |
17616 | 17617 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
17617 | 17618 | echo "${ECHO_T}$with_pymalloc" >&6; } |
17618 | 17619 |
|
| 17620 | +# Check for Valgrind support |
| 17621 | +{ echo "$as_me:$LINENO: checking for --with-valgrind" >&5 |
| 17622 | +echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; } |
| 17623 | + |
| 17624 | +# Check whether --with-valgrind was given. |
| 17625 | +if test "${with_valgrind+set}" = set; then |
| 17626 | + withval=$with_valgrind; |
| 17627 | +else |
| 17628 | + with_valgrind=no |
| 17629 | +fi |
| 17630 | + |
| 17631 | +{ echo "$as_me:$LINENO: result: $with_valgrind" >&5 |
| 17632 | +echo "${ECHO_T}$with_valgrind" >&6; } |
| 17633 | +if test "$with_valgrind" != no; then |
| 17634 | + if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17635 | + { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17636 | +echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17637 | +if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17638 | + echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17639 | +fi |
| 17640 | +{ echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17641 | +echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17642 | +else |
| 17643 | + # Is the header compilable? |
| 17644 | +{ echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5 |
| 17645 | +echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; } |
| 17646 | +cat >conftest.$ac_ext <<_ACEOF |
| 17647 | +/* confdefs.h. */ |
| 17648 | +_ACEOF |
| 17649 | +cat confdefs.h >>conftest.$ac_ext |
| 17650 | +cat >>conftest.$ac_ext <<_ACEOF |
| 17651 | +/* end confdefs.h. */ |
| 17652 | +$ac_includes_default |
| 17653 | +#include <valgrind/valgrind.h> |
| 17654 | +_ACEOF |
| 17655 | +rm -f conftest.$ac_objext |
| 17656 | +if { (ac_try="$ac_compile" |
| 17657 | +case "(($ac_try" in |
| 17658 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17659 | + *) ac_try_echo=$ac_try;; |
| 17660 | +esac |
| 17661 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17662 | + (eval "$ac_compile") 2>conftest.er1 |
| 17663 | + ac_status=$? |
| 17664 | + grep -v '^ *+' conftest.er1 >conftest.err |
| 17665 | + rm -f conftest.er1 |
| 17666 | + cat conftest.err >&5 |
| 17667 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17668 | + (exit $ac_status); } && { |
| 17669 | + test -z "$ac_c_werror_flag" || |
| 17670 | + test ! -s conftest.err |
| 17671 | + } && test -s conftest.$ac_objext; then |
| 17672 | + ac_header_compiler=yes |
| 17673 | +else |
| 17674 | + echo "$as_me: failed program was:" >&5 |
| 17675 | +sed 's/^/| /' conftest.$ac_ext >&5 |
| 17676 | + |
| 17677 | + ac_header_compiler=no |
| 17678 | +fi |
| 17679 | + |
| 17680 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17681 | +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17682 | +echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17683 | + |
| 17684 | +# Is the header present? |
| 17685 | +{ echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5 |
| 17686 | +echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; } |
| 17687 | +cat >conftest.$ac_ext <<_ACEOF |
| 17688 | +/* confdefs.h. */ |
| 17689 | +_ACEOF |
| 17690 | +cat confdefs.h >>conftest.$ac_ext |
| 17691 | +cat >>conftest.$ac_ext <<_ACEOF |
| 17692 | +/* end confdefs.h. */ |
| 17693 | +#include <valgrind/valgrind.h> |
| 17694 | +_ACEOF |
| 17695 | +if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17696 | +case "(($ac_try" in |
| 17697 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17698 | + *) ac_try_echo=$ac_try;; |
| 17699 | +esac |
| 17700 | +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17701 | + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17702 | + ac_status=$? |
| 17703 | + grep -v '^ *+' conftest.er1 >conftest.err |
| 17704 | + rm -f conftest.er1 |
| 17705 | + cat conftest.err >&5 |
| 17706 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17707 | + (exit $ac_status); } >/dev/null && { |
| 17708 | + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17709 | + test ! -s conftest.err |
| 17710 | + }; then |
| 17711 | + ac_header_preproc=yes |
| 17712 | +else |
| 17713 | + echo "$as_me: failed program was:" >&5 |
| 17714 | +sed 's/^/| /' conftest.$ac_ext >&5 |
| 17715 | + |
| 17716 | + ac_header_preproc=no |
| 17717 | +fi |
| 17718 | + |
| 17719 | +rm -f conftest.err conftest.$ac_ext |
| 17720 | +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17721 | +echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17722 | + |
| 17723 | +# So? What about this header? |
| 17724 | +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17725 | + yes:no: ) |
| 17726 | + { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17727 | +echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17728 | + { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5 |
| 17729 | +echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;} |
| 17730 | + ac_header_preproc=yes |
| 17731 | + ;; |
| 17732 | + no:yes:* ) |
| 17733 | + { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5 |
| 17734 | +echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;} |
| 17735 | + { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5 |
| 17736 | +echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;} |
| 17737 | + { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5 |
| 17738 | +echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;} |
| 17739 | + { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 17740 | +echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17741 | + { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5 |
| 17742 | +echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;} |
| 17743 | + { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5 |
| 17744 | +echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;} |
| 17745 | + ( cat <<\_ASBOX |
| 17746 | +## -------------------------------------- ## |
| 17747 | +## Report this to http://bugs.python.org/ ## |
| 17748 | +## -------------------------------------- ## |
| 17749 | +_ASBOX |
| 17750 | + ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17751 | + ;; |
| 17752 | +esac |
| 17753 | +{ echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17754 | +echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17755 | +if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17756 | + echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17757 | +else |
| 17758 | + ac_cv_header_valgrind_valgrind_h=$ac_header_preproc |
| 17759 | +fi |
| 17760 | +{ echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17761 | +echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17762 | + |
| 17763 | +fi |
| 17764 | +if test $ac_cv_header_valgrind_valgrind_h = yes; then |
| 17765 | + |
| 17766 | +cat >>confdefs.h <<\_ACEOF |
| 17767 | +#define WITH_VALGRIND 1 |
| 17768 | +_ACEOF |
| 17769 | + |
| 17770 | +else |
| 17771 | + { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5 |
| 17772 | +echo "$as_me: error: Valgrind support requested but headers not available" >&2;} |
| 17773 | + { (exit 1); exit 1; }; } |
| 17774 | + |
| 17775 | +fi |
| 17776 | + |
| 17777 | + |
| 17778 | +fi |
| 17779 | + |
17619 | 17780 | # Check for --with-wctype-functions |
17620 | 17781 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
17621 | 17782 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; } |
|
0 commit comments