Changeset 700b1d1 in git
- Timestamp:
- Aug 14, 2000, 2:15:28 PM (23 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ba3e3ef698fa0b7c5867199959cc83330073d3cb')
- Children:
- b6e0394c78cf946226e16e683127acf5d8b489ae
- Parents:
- 9d605984360cf5d30bdf13e295d63c41ae1bc952
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/configure
r9d6059 r700b1d1 25 25 use HEADER_FILE for external malloc declaration" 26 26 ac_help="$ac_help 27 --with-external-malloc- h=C_FILE27 --with-external-malloc-c=C_FILE 28 28 use C_FILE for external malloc implementation" 29 29 ac_help="$ac_help … … 31 31 how to get page-aligned memory, default: use first possible" 32 32 ac_help="$ac_help 33 --with-provide-malloc 34 provide ANSI-C conforming malloc/calloc/realloc/free" 33 --with-provide-malloc=yes|debug|malloc 34 provide normal|debug|underlying malloc ANSI-C conforming 35 versions of malloc|calloc|realloc|free" 35 36 ac_help="$ac_help 36 37 --with-emulate-omalloc … … 45 46 --without-inline do not inline" 46 47 ac_help="$ac_help 48 --without-debug disable all debugging facilities" 49 ac_help="$ac_help 50 --without-track disable debug tracking functionality" 51 ac_help="$ac_help 52 --with-track-fl track file and line numbers" 53 ac_help="$ac_help 54 --with-track-return track return addresses" 55 ac_help="$ac_help 56 --with-track-backtrace track stack backtraces" 57 ac_help="$ac_help 47 58 --with-internal-debug 48 59 turn on internal debugging" 49 ac_help="$ac_help50 --without-mtrack disable backtrace and memory track"51 ac_help="$ac_help52 --with_frame_addr_func=FUNC53 use FUNC as function for determening frame addr54 default: __bultin_frame_address"55 ac_help="$ac_help56 --with_return_addr_func=FUNC57 use FUNC as function for determening return addr58 default: __bultin_return_address"59 60 60 61 # Initialize some variables set by options. … … 568 569 569 570 570 # Check whether --with-external_config_h or --without-external_config_h was given. 571 VERSION=0.9.5 572 573 574 # Check whether --with-external-config_h or --without-external-config_h was given. 571 575 if test "${with_external_config_h+set}" = set; then 572 576 withval="$with_external_config_h" … … 574 578 fi 575 579 576 # Check whether --with-external _config_c or --without-external_config_c was given.580 # Check whether --with-external-config_c or --without-external-config_c was given. 577 581 if test "${with_external_config_c+set}" = set; then 578 582 withval="$with_external_config_c" … … 586 590 fi 587 591 588 # Check whether --with-external _malloc_h or --without-external_malloc_h was given.592 # Check whether --with-external-malloc_h or --without-external-malloc_h was given. 589 593 if test "${with_external_malloc_h+set}" = set; then 590 594 withval="$with_external_malloc_h" … … 592 596 fi 593 597 594 # Check whether --with-external _malloc_c or --without-external_malloc_c was given.598 # Check whether --with-external-malloc_c or --without-external-malloc_c was given. 595 599 if test "${with_external_malloc_c+set}" = set; then 596 600 withval="$with_external_malloc_c" … … 604 608 fi 605 609 606 # Check whether --with-provide _malloc or --without-provide_malloc was given.610 # Check whether --with-provide-malloc or --without-provide-malloc was given. 607 611 if test "${with_provide_malloc+set}" = set; then 608 612 withval="$with_provide_malloc" … … 610 614 fi 611 615 612 # Check whether --with-emulate _omalloc or --without-emulate_omalloc was given.616 # Check whether --with-emulate-omalloc or --without-emulate-omalloc was given. 613 617 if test "${with_emulate_omalloc+set}" = set; then 614 618 withval="$with_emulate_omalloc" … … 622 626 fi 623 627 624 # Check whether --with-dense _bins or --without-dense_bins was given.628 # Check whether --with-dense-bins or --without-dense-bins was given. 625 629 if test "${with_dense_bins+set}" = set; then 626 630 withval="$with_dense_bins" … … 634 638 fi 635 639 640 # Check whether --with-debug or --without-debug was given. 641 if test "${with_debug+set}" = set; then 642 withval="$with_debug" 643 : 644 fi 645 646 # Check whether --with-track or --without-track was given. 647 if test "${with_track+set}" = set; then 648 withval="$with_track" 649 : 650 fi 651 652 # Check whether --with-track-fl or --without-track-fl was given. 653 if test "${with_track_fl+set}" = set; then 654 withval="$with_track_fl" 655 : 656 fi 657 658 # Check whether --with-track-return or --without-track-return was given. 659 if test "${with_track_return+set}" = set; then 660 withval="$with_track_return" 661 : 662 fi 663 664 # Check whether --with-track-backtrace or --without-track-backtrace was given. 665 if test "${with_track_backtrace+set}" = set; then 666 withval="$with_track_backtrace" 667 : 668 fi 669 636 670 # Check whether --with-internal_debug or --without-internal_debug was given. 637 671 if test "${with_internal_debug+set}" = set; then … … 640 674 fi 641 675 642 # Check whether --with-mtrack or --without-mtrack was given. 643 if test "${with_mtrack+set}" = set; then 644 withval="$with_mtrack" 645 : 646 fi 647 648 # Check whether --with-frame_addr_func or --without-frame_addr_func was given. 649 if test "${with_frame_addr_func+set}" = set; then 650 withval="$with_frame_addr_func" 651 : 652 fi 653 654 # Check whether --with-return_addr_func or --without-return_addr_func was given. 655 if test "${with_return_addr_func+set}" = set; then 656 withval="$with_return_addr_func" 657 : 658 fi 659 660 661 echo $ac_n "checking singuname""... $ac_c" 1>&6 662 echo "configure:663: checking singuname" >&5 663 if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then 664 echo $ac_n "(cached) $ac_c" 1>&6 665 else 666 ac_cv_singuname="unknown" 667 if test -r "singuname.sh"; then 668 if (/bin/sh singuname.sh >/dev/null 2>&1) then 669 ac_cv_singuname=`/bin/sh singuname.sh` 670 fi 671 fi 672 if test "$ac_cv_singuname" = unknown && test -r "../singuname.sh"; then 673 if (/bin/sh ../singuname.sh >/dev/null 2>&1) then 674 ac_cv_singuname=`/bin/sh ../singuname.sh` 675 fi 676 fi 677 678 fi 679 680 echo "$ac_t""$ac_cv_singuname" 1>&6 681 if test "$ac_cv_singuname" = unknown; then 682 echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2 683 ac_cv_singuname="unknown" 684 fi 685 686 if test "${CFLAGS+set}" != set; then 687 CFLAGS="-O" 688 ac_cflags_set=no 689 fi 676 690 677 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 691 echo "configure:6 92: checking whether ${MAKE-make} sets \${MAKE}" >&5678 echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5 692 679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 693 680 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 718 705 set dummy gcc; ac_word=$2 719 706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 720 echo "configure:7 21: checking for $ac_word" >&5707 echo "configure:708: checking for $ac_word" >&5 721 708 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 722 709 echo $ac_n "(cached) $ac_c" 1>&6 … … 748 735 set dummy cc; ac_word=$2 749 736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 750 echo "configure:7 51: checking for $ac_word" >&5737 echo "configure:738: checking for $ac_word" >&5 751 738 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 752 739 echo $ac_n "(cached) $ac_c" 1>&6 … … 799 786 set dummy cl; ac_word=$2 800 787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 801 echo "configure: 802: checking for $ac_word" >&5788 echo "configure:789: checking for $ac_word" >&5 802 789 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 803 790 echo $ac_n "(cached) $ac_c" 1>&6 … … 831 818 832 819 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 833 echo "configure:8 34: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5820 echo "configure:821: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 834 821 835 822 ac_ext=c … … 842 829 cat > conftest.$ac_ext << EOF 843 830 844 #line 8 45"configure"831 #line 832 "configure" 845 832 #include "confdefs.h" 846 833 847 834 main(){return(0);} 848 835 EOF 849 if { (eval echo configure:8 50: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then836 if { (eval echo configure:837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 850 837 ac_cv_prog_cc_works=yes 851 838 # If we can't run a trivial program, we are probably using a cross compiler. … … 873 860 fi 874 861 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 875 echo "configure:8 76: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5862 echo "configure:863: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 876 863 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 877 864 cross_compiling=$ac_cv_prog_cc_cross 878 865 879 866 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 880 echo "configure:8 81: checking whether we are using GNU C" >&5867 echo "configure:868: checking whether we are using GNU C" >&5 881 868 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 882 869 echo $ac_n "(cached) $ac_c" 1>&6 … … 887 874 #endif 888 875 EOF 889 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8 90: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then876 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 890 877 ac_cv_prog_gcc=yes 891 878 else … … 906 893 CFLAGS= 907 894 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 908 echo "configure: 909: checking whether ${CC-cc} accepts -g" >&5895 echo "configure:896: checking whether ${CC-cc} accepts -g" >&5 909 896 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 910 897 echo $ac_n "(cached) $ac_c" 1>&6 … … 938 925 939 926 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 940 echo "configure:9 41: checking how to run the C preprocessor" >&5927 echo "configure:928: checking how to run the C preprocessor" >&5 941 928 # On Suns, sometimes $CPP names a directory. 942 929 if test -n "$CPP" && test -d "$CPP"; then … … 953 940 # not just through cpp. 954 941 cat > conftest.$ac_ext <<EOF 955 #line 9 56"configure"942 #line 943 "configure" 956 943 #include "confdefs.h" 957 944 #include <assert.h> … … 959 946 EOF 960 947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 961 { (eval echo configure:9 62: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }948 { (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 962 949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 963 950 if test -z "$ac_err"; then … … 970 957 CPP="${CC-cc} -E -traditional-cpp" 971 958 cat > conftest.$ac_ext <<EOF 972 #line 9 73"configure"959 #line 960 "configure" 973 960 #include "confdefs.h" 974 961 #include <assert.h> … … 976 963 EOF 977 964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 978 { (eval echo configure:9 79: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }965 { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 979 966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 980 967 if test -z "$ac_err"; then … … 987 974 CPP="${CC-cc} -nologo -E" 988 975 cat > conftest.$ac_ext <<EOF 989 #line 9 90"configure"976 #line 977 "configure" 990 977 #include "confdefs.h" 991 978 #include <assert.h> … … 993 980 EOF 994 981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 995 { (eval echo configure:9 96: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }982 { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 996 983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 997 984 if test -z "$ac_err"; then … … 1017 1004 echo "$ac_t""$CPP" 1>&6 1018 1005 1006 # Extract the first word of "ranlib", so it can be a program name with args. 1007 set dummy ranlib; ac_word=$2 1008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1009 echo "configure:1010: checking for $ac_word" >&5 1010 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1011 echo $ac_n "(cached) $ac_c" 1>&6 1012 else 1013 if test -n "$RANLIB"; then 1014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1015 else 1016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1017 ac_dummy="$PATH" 1018 for ac_dir in $ac_dummy; do 1019 test -z "$ac_dir" && ac_dir=. 1020 if test -f $ac_dir/$ac_word; then 1021 ac_cv_prog_RANLIB="ranlib" 1022 break 1023 fi 1024 done 1025 IFS="$ac_save_ifs" 1026 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1027 fi 1028 fi 1029 RANLIB="$ac_cv_prog_RANLIB" 1030 if test -n "$RANLIB"; then 1031 echo "$ac_t""$RANLIB" 1>&6 1032 else 1033 echo "$ac_t""no" 1>&6 1034 fi 1035 1036 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1037 echo "configure:1038: checking whether ln -s works" >&5 1038 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1039 echo $ac_n "(cached) $ac_c" 1>&6 1040 else 1041 rm -f conftestdata 1042 if ln -s X conftestdata 2>/dev/null 1043 then 1044 rm -f conftestdata 1045 ac_cv_prog_LN_S="ln -s" 1046 else 1047 ac_cv_prog_LN_S=ln 1048 fi 1049 fi 1050 LN_S="$ac_cv_prog_LN_S" 1051 if test "$ac_cv_prog_LN_S" = "ln -s"; then 1052 echo "$ac_t""yes" 1>&6 1053 else 1054 echo "$ac_t""no" 1>&6 1055 fi 1056 1057 ac_aux_dir= 1058 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1059 if test -f $ac_dir/install-sh; then 1060 ac_aux_dir=$ac_dir 1061 ac_install_sh="$ac_aux_dir/install-sh -c" 1062 break 1063 elif test -f $ac_dir/install.sh; then 1064 ac_aux_dir=$ac_dir 1065 ac_install_sh="$ac_aux_dir/install.sh -c" 1066 break 1067 fi 1068 done 1069 if test -z "$ac_aux_dir"; then 1070 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 1071 fi 1072 ac_config_guess=$ac_aux_dir/config.guess 1073 ac_config_sub=$ac_aux_dir/config.sub 1074 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1075 1076 # Find a good install program. We prefer a C program (faster), 1077 # so one script is as good as another. But avoid the broken or 1078 # incompatible versions: 1079 # SysV /etc/install, /usr/sbin/install 1080 # SunOS /usr/etc/install 1081 # IRIX /sbin/install 1082 # AIX /bin/install 1083 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1084 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1085 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1086 # ./install, which can be erroneously created by make from ./install.sh. 1087 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1088 echo "configure:1089: checking for a BSD compatible install" >&5 1089 if test -z "$INSTALL"; then 1090 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1091 echo $ac_n "(cached) $ac_c" 1>&6 1092 else 1093 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1094 for ac_dir in $PATH; do 1095 # Account for people who put trailing slashes in PATH elements. 1096 case "$ac_dir/" in 1097 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1098 *) 1099 # OSF1 and SCO ODT 3.0 have their own names for install. 1100 # Don't use installbsd from OSF since it installs stuff as root 1101 # by default. 1102 for ac_prog in ginstall scoinst install; do 1103 if test -f $ac_dir/$ac_prog; then 1104 if test $ac_prog = install && 1105 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1106 # AIX install. It has an incompatible calling convention. 1107 : 1108 else 1109 ac_cv_path_install="$ac_dir/$ac_prog -c" 1110 break 2 1111 fi 1112 fi 1113 done 1114 ;; 1115 esac 1116 done 1117 IFS="$ac_save_IFS" 1118 1119 fi 1120 if test "${ac_cv_path_install+set}" = set; then 1121 INSTALL="$ac_cv_path_install" 1122 else 1123 # As a last resort, use the slow shell script. We don't cache a 1124 # path for INSTALL within a source directory, because that will 1125 # break other packages using the cache if that directory is 1126 # removed, or if the path is relative. 1127 INSTALL="$ac_install_sh" 1128 fi 1129 fi 1130 echo "$ac_t""$INSTALL" 1>&6 1131 1132 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1133 # It thinks the first close brace ends the variable substitution. 1134 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1135 1136 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1137 1138 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1139 1019 1140 echo $ac_n "checking for working const""... $ac_c" 1>&6 1020 echo "configure:1 021: checking for working const" >&51141 echo "configure:1142: checking for working const" >&5 1021 1142 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1022 1143 echo $ac_n "(cached) $ac_c" 1>&6 1023 1144 else 1024 1145 cat > conftest.$ac_ext <<EOF 1025 #line 1 026"configure"1146 #line 1147 "configure" 1026 1147 #include "confdefs.h" 1027 1148 … … 1072 1193 ; return 0; } 1073 1194 EOF 1074 if { (eval echo configure:1 075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1195 if { (eval echo configure:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1075 1196 rm -rf conftest* 1076 1197 ac_cv_c_const=yes … … 1093 1214 1094 1215 echo $ac_n "checking for inline""... $ac_c" 1>&6 1095 echo "configure:1 096: checking for inline" >&51216 echo "configure:1217: checking for inline" >&5 1096 1217 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 1097 1218 echo $ac_n "(cached) $ac_c" 1>&6 … … 1100 1221 for ac_kw in inline __inline__ __inline; do 1101 1222 cat > conftest.$ac_ext <<EOF 1102 #line 1 103"configure"1223 #line 1224 "configure" 1103 1224 #include "confdefs.h" 1104 1225 … … 1107 1228 ; return 0; } 1108 1229 EOF 1109 if { (eval echo configure:1 110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1230 if { (eval echo configure:1231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1110 1231 rm -rf conftest* 1111 1232 ac_cv_c_inline=$ac_kw; break … … 1132 1253 esac 1133 1254 1134 # Extract the first word of "ranlib", so it can be a program name with args.1135 set dummy ranlib; ac_word=$21136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61137 echo "configure:1138: checking for $ac_word" >&51138 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then1139 echo $ac_n "(cached) $ac_c" 1>&61140 else1141 if test -n "$RANLIB"; then1142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.1143 else1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"1145 ac_dummy="$PATH"1146 for ac_dir in $ac_dummy; do1147 test -z "$ac_dir" && ac_dir=.1148 if test -f $ac_dir/$ac_word; then1149 ac_cv_prog_RANLIB="ranlib"1150 break1151 fi1152 done1153 IFS="$ac_save_ifs"1154 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"1155 fi1156 fi1157 RANLIB="$ac_cv_prog_RANLIB"1158 if test -n "$RANLIB"; then1159 echo "$ac_t""$RANLIB" 1>&61160 else1161 echo "$ac_t""no" 1>&61162 fi1163 1164 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&61165 echo "configure:1166: checking whether ln -s works" >&51166 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then1167 echo $ac_n "(cached) $ac_c" 1>&61168 else1169 rm -f conftestdata1170 if ln -s X conftestdata 2>/dev/null1171 then1172 rm -f conftestdata1173 ac_cv_prog_LN_S="ln -s"1174 else1175 ac_cv_prog_LN_S=ln1176 fi1177 fi1178 LN_S="$ac_cv_prog_LN_S"1179 if test "$ac_cv_prog_LN_S" = "ln -s"; then1180 echo "$ac_t""yes" 1>&61181 else1182 echo "$ac_t""no" 1>&61183 fi1184 1185 1255 1186 1256 # Extract the first word of "ar", so it can be a program name with args. 1187 1257 set dummy ar; ac_word=$2 1188 1258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1189 echo "configure:1 190: checking for $ac_word" >&51259 echo "configure:1260: checking for $ac_word" >&5 1190 1260 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 1191 1261 echo $ac_n "(cached) $ac_c" 1>&6 … … 1220 1290 set dummy perl; ac_word=$2 1221 1291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1222 echo "configure:12 23: checking for $ac_word" >&51292 echo "configure:1293: checking for $ac_word" >&5 1223 1293 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 1224 1294 echo $ac_n "(cached) $ac_c" 1>&6 … … 1254 1324 set dummy addr2line; ac_word=$2 1255 1325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1256 echo "configure:1 257: checking for $ac_word" >&51326 echo "configure:1327: checking for $ac_word" >&5 1257 1327 if eval "test \"`echo '$''{'ac_cv_prog_ADDR2LINE'+set}'`\" = set"; then 1258 1328 echo $ac_n "(cached) $ac_c" 1>&6 … … 1290 1360 set dummy nm; ac_word=$2 1291 1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1292 echo "configure:1 293: checking for $ac_word" >&51362 echo "configure:1363: checking for $ac_word" >&5 1293 1363 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then 1294 1364 echo $ac_n "(cached) $ac_c" 1>&6 … … 1325 1395 1326 1396 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1327 echo "configure:13 28: checking for ANSI C header files" >&51397 echo "configure:1398: checking for ANSI C header files" >&5 1328 1398 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1329 1399 echo $ac_n "(cached) $ac_c" 1>&6 1330 1400 else 1331 1401 cat > conftest.$ac_ext <<EOF 1332 #line 1 333 "configure"1402 #line 1403 "configure" 1333 1403 #include "confdefs.h" 1334 1404 #include <stdlib.h> … … 1338 1408 EOF 1339 1409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1340 { (eval echo configure:1 341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1410 { (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1341 1411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1342 1412 if test -z "$ac_err"; then … … 1355 1425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1356 1426 cat > conftest.$ac_ext <<EOF 1357 #line 1 358 "configure"1427 #line 1428 "configure" 1358 1428 #include "confdefs.h" 1359 1429 #include <string.h> … … 1373 1443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1374 1444 cat > conftest.$ac_ext <<EOF 1375 #line 1 376 "configure"1445 #line 1446 "configure" 1376 1446 #include "confdefs.h" 1377 1447 #include <stdlib.h> … … 1394 1464 else 1395 1465 cat > conftest.$ac_ext <<EOF 1396 #line 1 397 "configure"1466 #line 1467 "configure" 1397 1467 #include "confdefs.h" 1398 1468 #include <ctype.h> … … 1405 1475 1406 1476 EOF 1407 if { (eval echo configure:14 08: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1477 if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1408 1478 then 1409 1479 : … … 1432 1502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1433 1503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1434 echo "configure:1 435: checking for $ac_hdr" >&51504 echo "configure:1505: checking for $ac_hdr" >&5 1435 1505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1436 1506 echo $ac_n "(cached) $ac_c" 1>&6 1437 1507 else 1438 1508 cat > conftest.$ac_ext <<EOF 1439 #line 1 440 "configure"1509 #line 1510 "configure" 1440 1510 #include "confdefs.h" 1441 1511 #include <$ac_hdr> 1442 1512 EOF 1443 1513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1444 { (eval echo configure:1 445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1514 { (eval echo configure:1515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1445 1515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1446 1516 if test -z "$ac_err"; then … … 1473 1543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1474 1544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1475 echo "configure:1 476: checking for $ac_hdr" >&51545 echo "configure:1546: checking for $ac_hdr" >&5 1476 1546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1477 1547 echo $ac_n "(cached) $ac_c" 1>&6 1478 1548 else 1479 1549 cat > conftest.$ac_ext <<EOF 1480 #line 1 481 "configure"1550 #line 1551 "configure" 1481 1551 #include "confdefs.h" 1482 1552 #include <$ac_hdr> 1483 1553 EOF 1484 1554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1485 { (eval echo configure:1 486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1555 { (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1486 1556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1487 1557 if test -z "$ac_err"; then … … 1513 1583 do 1514 1584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1515 echo "configure:15 16: checking for $ac_func" >&51585 echo "configure:1586: checking for $ac_func" >&5 1516 1586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1517 1587 echo $ac_n "(cached) $ac_c" 1>&6 1518 1588 else 1519 1589 cat > conftest.$ac_ext <<EOF 1520 #line 15 21 "configure"1590 #line 1591 "configure" 1521 1591 #include "confdefs.h" 1522 1592 /* System header to define __stub macros and hopefully few prototypes, … … 1541 1611 ; return 0; } 1542 1612 EOF 1543 if { (eval echo configure:1 544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1613 if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1544 1614 rm -rf conftest* 1545 1615 eval "ac_cv_func_$ac_func=yes" … … 1569 1639 # sizes 1570 1640 echo $ac_n "checking size of long""... $ac_c" 1>&6 1571 echo "configure:1 572: checking size of long" >&51641 echo "configure:1642: checking size of long" >&5 1572 1642 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 1573 1643 echo $ac_n "(cached) $ac_c" 1>&6 … … 1577 1647 else 1578 1648 cat > conftest.$ac_ext <<EOF 1579 #line 1 580 "configure"1649 #line 1650 "configure" 1580 1650 #include "confdefs.h" 1581 1651 #include <stdio.h> … … 1588 1658 } 1589 1659 EOF 1590 if { (eval echo configure:1 591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1660 if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1591 1661 then 1592 1662 ac_cv_sizeof_long=`cat conftestval` … … 1608 1678 1609 1679 echo $ac_n "checking size of void*""... $ac_c" 1>&6 1610 echo "configure:16 11: checking size of void*" >&51680 echo "configure:1681: checking size of void*" >&5 1611 1681 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 1612 1682 echo $ac_n "(cached) $ac_c" 1>&6 … … 1616 1686 else 1617 1687 cat > conftest.$ac_ext <<EOF 1618 #line 16 19 "configure"1688 #line 1689 "configure" 1619 1689 #include "confdefs.h" 1620 1690 #include <stdio.h> … … 1627 1697 } 1628 1698 EOF 1629 if { (eval echo configure:1 630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1699 if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1630 1700 then 1631 1701 ac_cv_sizeof_voidp=`cat conftestval` … … 1647 1717 1648 1718 echo $ac_n "checking size of double""... $ac_c" 1>&6 1649 echo "configure:1 650: checking size of double" >&51719 echo "configure:1720: checking size of double" >&5 1650 1720 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 1651 1721 echo $ac_n "(cached) $ac_c" 1>&6 … … 1655 1725 else 1656 1726 cat > conftest.$ac_ext <<EOF 1657 #line 1 658 "configure"1727 #line 1728 "configure" 1658 1728 #include "confdefs.h" 1659 1729 #include <stdio.h> … … 1666 1736 } 1667 1737 EOF 1668 if { (eval echo configure:1 669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1669 1739 then 1670 1740 ac_cv_sizeof_double=`cat conftestval` … … 1686 1756 1687 1757 echo $ac_n "checking size of size_t""... $ac_c" 1>&6 1688 echo "configure:1 689: checking size of size_t" >&51758 echo "configure:1759: checking size of size_t" >&5 1689 1759 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then 1690 1760 echo $ac_n "(cached) $ac_c" 1>&6 … … 1694 1764 else 1695 1765 cat > conftest.$ac_ext <<EOF 1696 #line 1 697 "configure"1766 #line 1767 "configure" 1697 1767 #include "confdefs.h" 1698 1768 #include <stdio.h> … … 1705 1775 } 1706 1776 EOF 1707 if { (eval echo configure:17 08: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1777 if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1708 1778 then 1709 1779 ac_cv_sizeof_size_t=`cat conftestval` … … 1736 1806 1737 1807 echo $ac_n "checking size of system page""... $ac_c" 1>&6 1738 echo "configure:1 739: checking size of system page" >&51808 echo "configure:1809: checking size of system page" >&5 1739 1809 if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then 1740 1810 echo $ac_n "(cached) $ac_c" 1>&6 … … 1744 1814 else 1745 1815 cat > conftest.$ac_ext <<EOF 1746 #line 1 747 "configure"1816 #line 1817 "configure" 1747 1817 #include "confdefs.h" 1748 1818 #include <stdio.h> … … 1757 1827 } 1758 1828 EOF 1759 if { (eval echo configure:1 760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1760 1830 then 1761 1831 ac_cv_pagesize=`cat conftestval` … … 1783 1853 if test "$ac_cv_func_mmap" = yes; then 1784 1854 echo $ac_n "checking whether mmap works""... $ac_c" 1>&6 1785 echo "configure:1 786: checking whether mmap works" >&51855 echo "configure:1856: checking whether mmap works" >&5 1786 1856 if eval "test \"`echo '$''{'ac_cv_working_mmap'+set}'`\" = set"; then 1787 1857 echo $ac_n "(cached) $ac_c" 1>&6 … … 1791 1861 else 1792 1862 cat > conftest.$ac_ext <<EOF 1793 #line 1 794 "configure"1863 #line 1864 "configure" 1794 1864 #include "confdefs.h" 1795 1865 … … 1803 1873 } 1804 1874 EOF 1805 if { (eval echo configure:18 06: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1875 if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1806 1876 then 1807 1877 ac_cv_working_mmap=yes … … 1827 1897 1828 1898 echo $ac_n "checking whether alignment needs to be strict""... $ac_c" 1>&6 1829 echo "configure:1 830: checking whether alignment needs to be strict" >&51899 echo "configure:1900: checking whether alignment needs to be strict" >&5 1830 1900 if eval "test \"`echo '$''{'ac_cv_align_need_strict'+set}'`\" = set"; then 1831 1901 echo $ac_n "(cached) $ac_c" 1>&6 … … 1835 1905 else 1836 1906 cat > conftest.$ac_ext <<EOF 1837 #line 1 838 "configure"1907 #line 1908 "configure" 1838 1908 #include "confdefs.h" 1839 1909 … … 1850 1920 1851 1921 EOF 1852 if { (eval echo configure:1 853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1853 1923 then 1854 1924 ac_cv_align_need_strict=no … … 1867 1937 1868 1938 echo $ac_n "checking for external config files""... $ac_c" 1>&6 1869 echo "configure:1 870: checking for external config files" >&51939 echo "configure:1940: checking for external config files" >&5 1870 1940 if test "${with_external_config_h+set}" = set; then 1871 1941 cat >> confdefs.h <<\EOF … … 1874 1944 1875 1945 EXTERNAL_CONFIG_HEADER=${with_external_config_h} 1946 rm -f omExternalConfig.h 1947 cp ${with_external_config_h} omExternalConfig.h 1876 1948 fi 1877 1949 if test "${with_external_config_c+set}" = set; then … … 1891 1963 1892 1964 echo $ac_n "checking which malloc to use""... $ac_c" 1>&6 1893 echo "configure:1 894: checking which malloc to use" >&51965 echo "configure:1966: checking which malloc to use" >&5 1894 1966 if test "${with_malloc}" = system; then 1895 1967 OM_MALLOC_HEADER=omMallocSystem.h 1896 if test "${with_provide_malloc}" = yes ; then1897 { echo "configure: error: "can not provide malloc for --with _malloc=system"" 1>&2; exit 1; }1968 if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then 1969 { echo "configure: error: "can not provide malloc for --with-malloc=system"" 1>&2; exit 1; } 1898 1970 fi 1899 1971 elif test "${with_malloc}" = gmalloc; then … … 1907 1979 { echo "configure: error: need --with_external_malloc_h for external malloc" 1>&2; exit 1; } 1908 1980 fi 1909 if test "${with_provide_malloc}" = yes ; then1981 if test "${with_provide_malloc}" = yes || test "${with_provide_malloc}" = debug; then 1910 1982 { echo "configure: error: "can not provide malloc for --with_malloc=external"" 1>&2; exit 1; } 1911 1983 fi … … 1928 2000 1929 2001 echo $ac_n "checking whether malloc provides SizeOfAddr""... $ac_c" 1>&6 1930 echo "configure: 1931: checking whether malloc provides SizeOfAddr" >&52002 echo "configure:2003: checking whether malloc provides SizeOfAddr" >&5 1931 2003 if test "${ac_cv_malloc_sizeof_addr}" = no; then 1932 2004 echo "$ac_t""(cached) no" 1>&6 … … 1938 2010 else 1939 2011 cat > conftest.$ac_ext <<EOF 1940 #line 1941"configure"2012 #line 2013 "configure" 1941 2013 #include "confdefs.h" 1942 2014 … … 1955 2027 1956 2028 EOF 1957 if { (eval echo configure: 1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2029 if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1958 2030 then 1959 2031 ac_cv_malloc_sizeof_addr="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}" … … 1979 2051 1980 2052 fi 1981 1982 if test "${with_provide_malloc}" = yes; then 2053 2054 if test "${with_provide_malloc}" = malloc; then 2055 cat >> confdefs.h <<\EOF 2056 #define OM_PROVIDE_MALLOC 3 2057 EOF 2058 2059 elif test "${with_provide_malloc}" = debug; then 2060 cat >> confdefs.h <<\EOF 2061 #define OM_PROVIDE_MALLOC 2 2062 EOF 2063 2064 elif test "${with_provide_malloc}" = yes; then 1983 2065 cat >> confdefs.h <<\EOF 1984 2066 #define OM_PROVIDE_MALLOC 1 1985 2067 EOF 1986 2068 2069 else 2070 cat >> confdefs.h <<\EOF 2071 #define OM_PROVIDE_MALLOC 0 2072 EOF 2073 1987 2074 fi 1988 2075 1989 2076 echo $ac_n "checking whether working valloc exists""... $ac_c" 1>&6 1990 echo "configure: 1991: checking whether working valloc exists" >&52077 echo "configure:2078: checking whether working valloc exists" >&5 1991 2078 if test "${ac_cv_working_valloc}" = no; then 1992 2079 echo "$ac_t""(cached) no" 1>&6 … … 1998 2085 else 1999 2086 cat > conftest.$ac_ext <<EOF 2000 #line 20 01"configure"2087 #line 2088 "configure" 2001 2088 #include "confdefs.h" 2002 2089 … … 2016 2103 2017 2104 EOF 2018 if { (eval echo configure:2 019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2105 if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2019 2106 then 2020 2107 ac_cv_working_valloc="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}" … … 2036 2123 2037 2124 echo $ac_n "checking which valloc to use""... $ac_c" 1>&6 2038 echo "configure:2 039: checking which valloc to use" >&52125 echo "configure:2126: checking which valloc to use" >&5 2039 2126 if test "${with_valloc+set}" != set || test "${with_valloc}" = mmap; then 2040 2127 if test "${ac_cv_working_mmap}" = yes; then … … 2061 2148 2062 2149 echo $ac_n "checking whether to emulate omalloc""... $ac_c" 1>&6 2063 echo "configure:2 064: checking whether to emulate omalloc" >&52150 echo "configure:2151: checking whether to emulate omalloc" >&5 2064 2151 if test "${with_emulate_omalloc}" = yes; then 2065 2152 cat >> confdefs.h <<\EOF … … 2073 2160 2074 2161 echo $ac_n "checking how to align""... $ac_c" 1>&6 2075 echo "configure:2 076: checking how to align" >&52162 echo "configure:2163: checking how to align" >&5 2076 2163 if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then 2077 2164 ac_cv_align=8 … … 2094 2181 2095 2182 echo $ac_n "checking whether to use dense bins""... $ac_c" 1>&6 2096 echo "configure:2 097: checking whether to use dense bins" >&52183 echo "configure:2184: checking whether to use dense bins" >&5 2097 2184 if test "$with_dense_bins" = yes; then 2098 2185 echo "$ac_t""yes" 1>&6 … … 2105 2192 fi 2106 2193 2194 echo $ac_n "checking whether to disable debugging""... $ac_c" 1>&6 2195 echo "configure:2196: checking whether to disable debugging" >&5 2196 if test "$with_debug" != no; then 2197 echo "$ac_t""no" 1>&6 2198 else 2199 echo "$ac_t""yes" 1>&6 2200 cat >> confdefs.h <<\EOF 2201 #define OM_NDEBUG 1 2202 EOF 2203 2204 with_track=no 2205 fi 2206 2207 echo $ac_n "checking whether to have tracking debug functionality""... $ac_c" 1>&6 2208 echo "configure:2209: checking whether to have tracking debug functionality" >&5 2209 if test "$with_track" != no; then 2210 echo "$ac_t""yes" 1>&6 2211 cat >> confdefs.h <<\EOF 2212 #define OM_HAVE_TRACK 1 2213 EOF 2214 2215 else 2216 echo "$ac_t""no" 1>&6 2217 fi 2218 2107 2219 echo $ac_n "checking whether to use internal debug""... $ac_c" 1>&6 2108 echo "configure:2 109: checking whether to use internal debug" >&52220 echo "configure:2221: checking whether to use internal debug" >&5 2109 2221 if test "$with_internal_debug" = yes; then 2110 2222 echo "$ac_t""yes" 1>&6 … … 2119 2231 2120 2232 echo $ac_n "checking whether to inline""... $ac_c" 1>&6 2121 echo "configure:2 122: checking whether to inline" >&52233 echo "configure:2234: checking whether to inline" >&5 2122 2234 if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then 2123 2235 cat >> confdefs.h <<EOF … … 2154 2266 fi 2155 2267 2156 if test "$with_mtrack" != no; then 2157 # get function for return address 2158 if test "${with_return_addr_func+set}" = set; then 2159 if test "${with_return_addr_func}" != no; then 2160 ac_cv_return_addr_func=$with_return_addr_func 2161 fi 2162 else 2163 if test "${GCC}" = yes; then 2164 ac_cv_return_addr_func="__builtin_return_address" 2165 fi 2166 fi 2167 2168 # test this function 2169 if test "${ac_cv_return_addr_func+set}" = set; then 2170 cat >> confdefs.h <<EOF 2171 #define OM_RETURN_ADDR $ac_cv_return_addr_func 2172 EOF 2173 2174 # first, check whether return addr works 2175 echo $ac_n "checking whether $ac_cv_return_addr_func works""... $ac_c" 1>&6 2176 echo "configure:2177: checking whether $ac_cv_return_addr_func works" >&5 2177 if eval "test \"`echo '$''{'ac_cv_return_addr_func_works'+set}'`\" = set"; then 2268 echo $ac_n "checking whether GET_RET_ADDR works""... $ac_c" 1>&6 2269 echo "configure:2270: checking whether GET_RET_ADDR works" >&5 2270 if eval "test \"`echo '$''{'ac_cv_get_return_addr_works'+set}'`\" = set"; then 2178 2271 echo $ac_n "(cached) $ac_c" 1>&6 2179 2272 else 2180 2273 if test "$cross_compiling" = yes; then 2181 ac_cv_ return_addr_func_works=no2274 ac_cv_get_return_addr_works=no 2182 2275 else 2183 2276 cat > conftest.$ac_ext <<EOF 2184 #line 2 185"configure"2277 #line 2278 "configure" 2185 2278 #include "confdefs.h" 2186 2279 2280 #include "omReturn.h" 2187 2281 int test_return_addr() 2188 2282 { 2189 if (OM_RETURN_ADDR(1) != 0 && OM_RETURN_ADDR(0) != 0 &&2190 OM_RETURN_ADDR(1) != OM_RETURN_ADDR(0)) return 0;2191 return 1;2283 char* f; 2284 GET_RET_ADDR(f); 2285 return (int) f; 2192 2286 } 2193 2194 2287 int main() 2195 2288 { 2196 return test_return_addr();2289 exit(! test_return_addr()); 2197 2290 } 2198 2291 2199 2292 EOF 2200 if { (eval echo configure:22 01: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2293 if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2201 2294 then 2202 ac_cv_ return_addr_func_works=yes2295 ac_cv_get_return_addr_works=yes 2203 2296 else 2204 2297 echo "configure: failed program was:" >&5 2205 2298 cat conftest.$ac_ext >&5 2206 2299 rm -fr conftest* 2207 ac_cv_ return_addr_func_works=no2300 ac_cv_get_return_addr_works=no 2208 2301 fi 2209 2302 rm -fr conftest* … … 2212 2305 fi 2213 2306 2214 echo "$ac_t""$ac_cv_return_addr_func_works" 1>&6 2215 2216 if test "$ac_cv_return_addr_func_works" = yes; then 2307 echo "$ac_t""$ac_cv_get_return_addr_works" 1>&6 2308 if test "$ac_cv_get_return_addr_works" = yes; then 2217 2309 cat >> confdefs.h <<\EOF 2218 #define OM_RETURN_ADDR_WORKS 1 2219 EOF 2220 2221 # check whether return addr works with rvalues 2222 echo $ac_n "checking whether $ac_cv_return_addr_func takes rvalues""... $ac_c" 1>&6 2223 echo "configure:2224: checking whether $ac_cv_return_addr_func takes rvalues" >&5 2224 if eval "test \"`echo '$''{'ac_cv_return_addr_func_rvalue'+set}'`\" = set"; then 2310 #define OM_GET_RETURN_ADDR_WORKS 1 2311 EOF 2312 2313 fi 2314 2315 echo $ac_n "checking whether omGetBackTrace works""... $ac_c" 1>&6 2316 echo "configure:2317: checking whether omGetBackTrace works" >&5 2317 if eval "test \"`echo '$''{'ac_cv_get_backtrace_works'+set}'`\" = set"; then 2225 2318 echo $ac_n "(cached) $ac_c" 1>&6 2226 2319 else 2227 2320 if test "$cross_compiling" = yes; then 2228 ac_cv_ return_addr_func_rvalue=no2321 ac_cv_get_backtrace_works=no 2229 2322 else 2230 2323 cat > conftest.$ac_ext <<EOF 2231 #line 2 232"configure"2324 #line 2325 "configure" 2232 2325 #include "confdefs.h" 2233 2326 2234 int test_return_addr(int f1, int f2) 2327 #include "omGetBackTrace.c" 2328 #include <stdio.h> 2329 int test_backtrace() 2235 2330 { 2236 if (OM_RETURN_ADDR(f1) != 0 && OM_RETURN_ADDR(f0) != 0 &&2237 OM_RETURN_ADDR(f1) != OM_RETURN_ADDR(f0)) return 0;2238 return 1;2331 void* bt; 2332 int i = omGetBackTrace(&bt, 0, 10); 2333 return i; 2239 2334 } 2240 2241 2335 int main() 2242 2336 { 2243 return test_return_addr(1, 0); 2337 int i; 2338 omInitGetBackTrace(); 2339 i = test_backtrace(); 2340 if (i == 1) exit(0); 2341 else exit(i+1); 2244 2342 } 2245 2343 2246 2344 EOF 2247 if { (eval echo configure:2 248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2345 if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2248 2346 then 2249 ac_cv_ return_addr_func_rvalue=yes2347 ac_cv_get_backtrace_works=yes 2250 2348 else 2251 2349 echo "configure: failed program was:" >&5 2252 2350 cat conftest.$ac_ext >&5 2253 2351 rm -fr conftest* 2254 ac_cv_ return_addr_func_rvalue=no2352 ac_cv_get_backtrace_works=no 2255 2353 fi 2256 2354 rm -fr conftest* … … 2259 2357 fi 2260 2358 2261 echo "$ac_t""$ac_cv_return_addr_func_rvalue" 1>&6 2262 if test "$ac_cv_return_addr_func_rvalue" = yes; then 2263 cat >> confdefs.h <<EOF 2264 #define OM_RETURN_ADDR_RVALUE 1 2265 EOF 2266 2267 fi 2268 fi # "$ac_cv_return_addr_func_works" = yes; 2269 fi # "${ac_cv_return_addr_func+set}" = set; 2270 2271 # get function for frame address 2272 if test "${with_frame_addr_func+set}" = set; then 2273 if test "${with_frame_addr_func}" != no; then 2274 ac_cv_frame_addr_func=$with_frame_addr_func 2275 fi 2276 else 2277 if test "${GCC}" = yes; then 2278 ac_cv_frame_addr_func="__builtin_frame_address" 2279 fi 2280 fi 2281 2282 # test this function 2283 if test "${ac_cv_frame_addr_func+set}" = set; then 2284 cat >> confdefs.h <<EOF 2285 #define OM_FRAME_ADDR $ac_cv_frame_addr_func 2286 EOF 2287 2288 # first, check whether frame addr works 2289 echo $ac_n "checking whether $ac_cv_frame_addr_func works""... $ac_c" 1>&6 2290 echo "configure:2291: checking whether $ac_cv_frame_addr_func works" >&5 2291 if eval "test \"`echo '$''{'ac_cv_frame_addr_func_works'+set}'`\" = set"; then 2292 echo $ac_n "(cached) $ac_c" 1>&6 2293 else 2294 if test "$cross_compiling" = yes; then 2295 ac_cv_frame_addr_func_works=no 2296 else 2297 cat > conftest.$ac_ext <<EOF 2298 #line 2299 "configure" 2299 #include "confdefs.h" 2300 2301 int test_frame_addr() 2302 { 2303 if (OM_FRAME_ADDR(1) != 0 && OM_FRAME_ADDR(0) != 0 && 2304 OM_FRAME_ADDR(1) != OM_FRAME_ADDR(0)) return 0; 2305 return 1; 2306 } 2307 2308 int main() 2309 { 2310 return test_frame_addr(); 2311 } 2312 2313 EOF 2314 if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2315 then 2316 ac_cv_frame_addr_func_works=yes 2317 else 2318 echo "configure: failed program was:" >&5 2319 cat conftest.$ac_ext >&5 2320 rm -fr conftest* 2321 ac_cv_frame_addr_func_works=no 2322 fi 2323 rm -fr conftest* 2324 fi 2325 2326 fi 2327 2328 echo "$ac_t""$ac_cv_frame_addr_func_works" 1>&6 2329 2330 if test "$ac_cv_frame_addr_func_works" = yes; then 2359 echo "$ac_t""$ac_cv_get_backtrace_works" 1>&6 2360 if test "$ac_cv_get_backtrace_works" = yes; then 2331 2361 cat >> confdefs.h <<\EOF 2332 #define OM_FRAME_ADDR_WORKS 1 2333 EOF 2334 2335 # check whether frame addr works with rvalues 2336 echo $ac_n "checking whether $ac_cv_frame_addr_func takes rvalues""... $ac_c" 1>&6 2337 echo "configure:2338: checking whether $ac_cv_frame_addr_func takes rvalues" >&5 2338 if eval "test \"`echo '$''{'ac_cv_frame_addr_func_rvalue'+set}'`\" = set"; then 2339 echo $ac_n "(cached) $ac_c" 1>&6 2340 else 2341 if test "$cross_compiling" = yes; then 2342 ac_cv_frame_addr_func_rvalue=no 2343 else 2344 cat > conftest.$ac_ext <<EOF 2345 #line 2346 "configure" 2346 #include "confdefs.h" 2347 2348 int test_frame_addr(int f1, int f2) 2349 { 2350 if (OM_FRAME_ADDR(f1) != 0 && OM_FRAME_ADDR(f0) != 0 && 2351 OM_FRAME_ADDR(f1) != OM_FRAME_ADDR(f0)) return 0; 2352 return 1; 2353 } 2354 2355 int main() 2356 { 2357 return test_frame_addr(1, 0); 2358 } 2359 2360 EOF 2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2362 then 2363 ac_cv_frame_addr_func_rvalue=yes 2364 else 2365 echo "configure: failed program was:" >&5 2366 cat conftest.$ac_ext >&5 2367 rm -fr conftest* 2368 ac_cv_frame_addr_func_rvalue=no 2369 fi 2370 rm -fr conftest* 2371 fi 2372 2373 fi 2374 2375 echo "$ac_t""$ac_cv_frame_addr_func_rvalue" 1>&6 2376 if test "$ac_cv_frame_addr_func_rvalue" = yes; then 2377 cat >> confdefs.h <<EOF 2378 #define OM_FRAME_ADDR_RVALUE 1 2379 EOF 2380 2381 fi 2382 fi # "$ac_cv_frame_addr_func_works" = yes; 2383 fi # "${ac_cv_frame_addr_func+set}" = set; 2384 2385 fi # "$with_mtrack" != no; 2386 2387 2388 if test "${GCC}" = yes && test "$ac_cflags_set" = no ; then 2389 CFLAGS="-pipe -Wall -O3 -fomit-frame-pointer" 2390 fi 2362 #define OM_GET_BACKTRACE_WORKS 1 2363 EOF 2364 2365 fi 2366 2367 echo $ac_n "checking whether to track return addresses""... $ac_c" 1>&6 2368 echo "configure:2369: checking whether to track return addresses" >&5 2369 if test "$with_track_return" = no || test "$ac_cv_get_return_addr_works" = no; then 2370 with_track_return=no 2371 else 2372 cat >> confdefs.h <<\EOF 2373 #define OM_TRACK_RETURN 1 2374 EOF 2375 2376 with_track_return=yes 2377 fi 2378 echo "$ac_t""$with_track_return" 1>&6 2379 2380 echo $ac_n "checking whether to track files and line numbers""... $ac_c" 1>&6 2381 echo "configure:2382: checking whether to track files and line numbers" >&5 2382 if test "$with_track_fl" = no && test "$with_track_return" = no; then 2383 with_track_fl=yes 2384 fi 2385 if test "${with_track_fl+set}" != set; then 2386 if test "$with_track_return" = yes; then 2387 with_track_fl=no 2388 else 2389 with_track_fl=yes 2390 fi 2391 fi 2392 echo "$ac_t""$with_track_fl" 1>&6 2393 if test "$with_track_fl" = yes; then 2394 cat >> confdefs.h <<\EOF 2395 #define OM_TRACK_FILE_LINE 1 2396 EOF 2397 2398 fi 2399 2400 echo $ac_n "checking whether to track stack backtraces""... $ac_c" 1>&6 2401 echo "configure:2402: checking whether to track stack backtraces" >&5 2402 if test "$with_track" != no && test "$ac_cv_get_backtrace_works" = yes && test "$with_track_backtrace" != no; then 2403 with_track_backtrace=yes 2404 cat >> confdefs.h <<\EOF 2405 #define OM_TRACK_BACKTRACE 1 2406 EOF 2407 2408 else 2409 with_track_backtrace=no 2410 fi 2411 echo "$ac_t""$with_track_backtrace" 1>&6 2412 2391 2413 2392 2414 … … 2491 2513 2492 2514 ac_given_srcdir=$srcdir 2515 ac_given_INSTALL="$INSTALL" 2493 2516 2494 2517 trap 'rm -fr `echo "Makefile omConfig.h omMalloc.h:${OM_MALLOC_HEADER}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 … … 2524 2547 s%@infodir@%$infodir%g 2525 2548 s%@mandir@%$mandir%g 2549 s%@VERSION@%$VERSION%g 2526 2550 s%@SET_MAKE@%$SET_MAKE%g 2527 2551 s%@CC@%$CC%g … … 2529 2553 s%@RANLIB@%$RANLIB%g 2530 2554 s%@LN_S@%$LN_S%g 2555 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2556 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2557 s%@INSTALL_DATA@%$INSTALL_DATA%g 2531 2558 s%@AR@%$AR%g 2532 2559 s%@PERL@%$PERL%g … … 2613 2640 esac 2614 2641 2642 case "$ac_given_INSTALL" in 2643 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2644 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2645 esac 2615 2646 2616 2647 echo creating "$ac_file" … … 2628 2659 s%@srcdir@%$srcdir%g 2629 2660 s%@top_srcdir@%$top_srcdir%g 2661 s%@INSTALL@%$INSTALL%g 2630 2662 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2631 2663 fi; done
Note: See TracChangeset
for help on using the changeset viewer.