comparison configure @ 4803:5d120deb60ca

Enable rudimentary support for valgrind, including functions that tell valgrind to do a leak check at runtime. See xemacs-patches message with ID <870180fe1001060942k2b06ef1bn2631c5f226b5e6b2@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Wed, 06 Jan 2010 10:44:06 -0700
parents bc4f2511bbea
children 4dd2389173fc
comparison
equal deleted inserted replaced
4802:2fc0e2f18322 4803:5d120deb60ca
1060 with_union_type 1060 with_union_type
1061 enable_quantify 1061 enable_quantify
1062 with_quantify 1062 with_quantify
1063 enable_purify 1063 enable_purify
1064 with_purify 1064 with_purify
1065 enable_valgrind
1066 with_valgrind
1065 with_x 1067 with_x
1066 ' 1068 '
1067 ac_precious_vars='build_alias 1069 ac_precious_vars='build_alias
1068 host_alias 1070 host_alias
1069 target_alias 1071 target_alias
2028 cause all .c files to be rebuilt. 2030 cause all .c files to be rebuilt.
2029 --with-union-type Use union definition of Lisp_Object type. Known to 2031 --with-union-type Use union definition of Lisp_Object type. Known to
2030 trigger bugs in some compilers. 2032 trigger bugs in some compilers.
2031 --with-quantify Support performance debugging using Quantify. 2033 --with-quantify Support performance debugging using Quantify.
2032 --with-purify Support memory debugging using Purify. 2034 --with-purify Support memory debugging using Purify.
2035 --with-valgrind Support memory debugging using Valgrind.
2033 2036
2034 Optional Packages: 2037 Optional Packages:
2035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2037 --with-x use the X Window System 2040 --with-x use the X Window System
4751 if test "${with_purify+set}" = set; then 4754 if test "${with_purify+set}" = set; then
4752 enableval="$with_purify" 4755 enableval="$with_purify"
4753 withval="$with_purify" 4756 withval="$with_purify"
4754 4757
4755 fi; 4758 fi;
4759 # If --with-valgrind or --without-valgrind were given then copy the value to the
4760 # equivalent enable_valgrind variable.
4761 if test "${with_valgrind+set}" = set; then
4762 enable_valgrind="$with_valgrind"
4763 fi;
4764 # If -enable-valgrind or --disable-valgrind were given then copy the value to the
4765 # equivalent with_valgrind variable.
4766 if test "${enable_valgrind+set}" = set; then
4767 with_valgrind="$enable_valgrind"
4768 fi;
4769 # Check whether --with-valgrind or --without-valgrind was given.
4770 if test "${with_valgrind+set}" = set; then
4771 enableval="$with_valgrind"
4772 withval="$with_valgrind"
4773
4774 fi;
4756 4775
4757 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then 4776 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
4758 test "$with_system_malloc" = "default" && with_system_malloc=yes 4777 test "$with_system_malloc" = "default" && with_system_malloc=yes
4759 fi 4778 fi
4760 4779
40925 40944
40926 test "$with_quantify" = "yes" && cat >>confdefs.h <<\_ACEOF 40945 test "$with_quantify" = "yes" && cat >>confdefs.h <<\_ACEOF
40927 #define QUANTIFY 1 40946 #define QUANTIFY 1
40928 _ACEOF 40947 _ACEOF
40929 40948
40949 test "$with_valgrind" = "yes" && cat >>confdefs.h <<\_ACEOF
40950 #define USE_VALGRIND 1
40951 _ACEOF
40952
40930 test "$with_pop" = "yes" && cat >>confdefs.h <<\_ACEOF 40953 test "$with_pop" = "yes" && cat >>confdefs.h <<\_ACEOF
40931 #define MAIL_USE_POP 1 40954 #define MAIL_USE_POP 1
40932 _ACEOF 40955 _ACEOF
40933 40956
40934 test "$with_kerberos" = "yes" && cat >>confdefs.h <<\_ACEOF 40957 test "$with_kerberos" = "yes" && cat >>confdefs.h <<\_ACEOF
41252 echo " WARNING: ---------------------------------------------------------" 41275 echo " WARNING: ---------------------------------------------------------"
41253 echo " WARNING: XEmacs will run noticeably more slowly as a result." 41276 echo " WARNING: XEmacs will run noticeably more slowly as a result."
41254 echo " WARNING: Error checking is on by default for XEmacs beta releases." 41277 echo " WARNING: Error checking is on by default for XEmacs beta releases."
41255 echo " WARNING: ---------------------------------------------------------" 41278 echo " WARNING: ---------------------------------------------------------"
41256 fi 41279 fi
41280 test "$with_valgrind" = yes && echo " Compiling in support for memory debugging with Valgrind."
41257 echo "" 41281 echo ""
41258 ) | tee -a Installation 41282 ) | tee -a Installation
41259 echo "" 41283 echo ""
41260 41284
41261 ac_config_headers="$ac_config_headers src/config.h lwlib/config.h" 41285 ac_config_headers="$ac_config_headers src/config.h lwlib/config.h"