- Timestamp:
- May 24, 2019, 10:19:41 AM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d908563
- Parents:
- 6a9d4b4 (diff), 292642a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r6a9d4b4 r933f32f 637 637 LIBOBJS 638 638 CFA_BACKEND_CC 639 ALLOCA 639 WITH_LIBTCMALLOC_FALSE 640 WITH_LIBTCMALLOC_TRUE 641 WITH_LIBPROFILER_FALSE 642 WITH_LIBPROFILER_TRUE 640 643 WITH_LIBFIBRE_FALSE 641 644 WITH_LIBFIBRE_TRUE … … 1961 1964 } # ac_fn_cxx_try_link 1962 1965 1963 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES1964 # -------------------------------------------1965 # Tests whether TYPE exists after having included INCLUDES, setting cache1966 # variable VAR accordingly.1967 ac_fn_c_check_type ()1968 {1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51971 $as_echo_n "checking for $2... " >&6; }1972 if eval \${$3+:} false; then :1973 $as_echo_n "(cached) " >&61974 else1975 eval "$3=no"1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1977 /* end confdefs.h. */1978 $41979 int1980 main ()1981 {1982 if (sizeof ($2))1983 return 0;1984 ;1985 return 0;1986 }1987 _ACEOF1988 if ac_fn_c_try_compile "$LINENO"; then :1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1990 /* end confdefs.h. */1991 $41992 int1993 main ()1994 {1995 if (sizeof (($2)))1996 return 0;1997 ;1998 return 0;1999 }2000 _ACEOF2001 if ac_fn_c_try_compile "$LINENO"; then :2002 2003 else2004 eval "$3=yes"2005 fi2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2007 fi2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2009 fi2010 eval ac_res=\$$32011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&52012 $as_echo "$ac_res" >&6; }2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2014 2015 } # ac_fn_c_check_type2016 2017 1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2018 1967 # ------------------------------------------------------- … … 2106 2055 } # ac_fn_c_check_header_mongrel 2107 2056 2108 # ac_fn_c_ find_intX_t LINENO BITS VAR2109 # ----------------------------------- 2110 # Finds a signed integer type with width BITS, setting cache variable VAR2111 # accordingly.2112 ac_fn_c_ find_intX_t()2057 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2058 # ------------------------------------------- 2059 # Tests whether TYPE exists after having included INCLUDES, setting cache 2060 # variable VAR accordingly. 2061 ac_fn_c_check_type () 2113 2062 { 2114 2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&52116 $as_echo_n "checking for int$2_t... " >&6; }2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2065 $as_echo_n "checking for $2... " >&6; } 2117 2066 if eval \${$3+:} false; then : 2118 2067 $as_echo_n "(cached) " >&6 2119 2068 else 2120 2069 eval "$3=no" 2121 # Order is important - never check a type that is potentially smaller 2122 # than half of the expected target width. 2123 for ac_type in int$2_t 'int' 'long int' \ 2124 'long long int' 'short int' 'signed char'; do 2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2126 2071 /* end confdefs.h. */ 2127 $ac_includes_default 2128 enum { N = $2 / 2 - 1 }; 2072 $4 2129 2073 int 2130 2074 main () 2131 2075 { 2132 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2133 test_array [0] = 0; 2134 return test_array [0]; 2135 2076 if (sizeof ($2)) 2077 return 0; 2136 2078 ; 2137 2079 return 0; … … 2141 2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2142 2084 /* end confdefs.h. */ 2143 $ac_includes_default 2144 enum { N = $2 / 2 - 1 }; 2085 $4 2145 2086 int 2146 2087 main () 2147 2088 { 2148 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2149 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2150 test_array [0] = 0; 2151 return test_array [0]; 2152 2089 if (sizeof (($2))) 2090 return 0; 2153 2091 ; 2154 2092 return 0; … … 2158 2096 2159 2097 else 2160 case $ac_type in #( 2161 int$2_t) : 2162 eval "$3=yes" ;; #( 2163 *) : 2164 eval "$3=\$ac_type" ;; 2165 esac 2098 eval "$3=yes" 2166 2099 fi 2167 2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2168 2101 fi 2169 2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2170 if eval test \"x\$"$3"\" = x"no"; then :2171 2172 else2173 break2174 fi2175 done2176 2103 fi 2177 2104 eval ac_res=\$$3 … … 2180 2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2181 2108 2182 } # ac_fn_c_find_intX_t 2183 2184 # ac_fn_c_find_uintX_t LINENO BITS VAR 2185 # ------------------------------------ 2186 # Finds an unsigned integer type with width BITS, setting cache variable VAR 2187 # accordingly. 2188 ac_fn_c_find_uintX_t () 2189 { 2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2192 $as_echo_n "checking for uint$2_t... " >&6; } 2193 if eval \${$3+:} false; then : 2194 $as_echo_n "(cached) " >&6 2195 else 2196 eval "$3=no" 2197 # Order is important - never check a type that is potentially smaller 2198 # than half of the expected target width. 2199 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2200 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2202 /* end confdefs.h. */ 2203 $ac_includes_default 2204 int 2205 main () 2206 { 2207 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2208 test_array [0] = 0; 2209 return test_array [0]; 2210 2211 ; 2212 return 0; 2213 } 2214 _ACEOF 2215 if ac_fn_c_try_compile "$LINENO"; then : 2216 case $ac_type in #( 2217 uint$2_t) : 2218 eval "$3=yes" ;; #( 2219 *) : 2220 eval "$3=\$ac_type" ;; 2221 esac 2222 fi 2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2224 if eval test \"x\$"$3"\" = x"no"; then : 2225 2226 else 2227 break 2228 fi 2229 done 2230 fi 2231 eval ac_res=\$$3 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2233 $as_echo "$ac_res" >&6; } 2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2235 2236 } # ac_fn_c_find_uintX_t 2109 } # ac_fn_c_check_type 2237 2110 cat >config.log <<_ACEOF 2238 2111 This file contains any messages produced by compilers while … … 2667 2540 2668 2541 2542 # http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_check_compile_flag.m4 2543 2669 2544 2670 2545 # don't use the default CFLAGS as they unconditonnaly add -O2 … … 3527 3402 "debug") ;; 3528 3403 "nolib") ;; 3404 "profile") ;; 3529 3405 *) 3530 3406 >&2 echo "Configuration must be 'debug', 'nodebug' or 'nolib'" … … 5183 5059 5184 5060 5185 # deprecated5186 5061 # These are often not installed and people miss seeing the "no", so stop the configure. 5187 5062 for ac_prog in 'bison -y' byacc … … 16734 16609 16735 16610 16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&516737 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }16738 set x ${MAKE-make}16739 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`16740 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :16741 $as_echo_n "(cached) " >&616742 else16743 cat >conftest.make <<\_ACEOF16744 SHELL = /bin/sh16745 all:16746 @echo '@@@%%%=$(MAKE)=@@@%%%'16747 _ACEOF16748 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.16749 case `${MAKE-make} -f conftest.make 2>/dev/null` in16750 *@@@%%%=?*=@@@%%%*)16751 eval ac_cv_prog_make_${ac_make}_set=yes;;16752 *)16753 eval ac_cv_prog_make_${ac_make}_set=no;;16754 esac16755 rm -f conftest.make16756 fi16757 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&516759 $as_echo "yes" >&6; }16760 SET_MAKE=16761 else16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516763 $as_echo "no" >&6; }16764 SET_MAKE="MAKE=${MAKE-make}"16765 fi16766 16767 16611 16768 16612 # Checks for libraries. … … 16818 16662 16819 16663 16820 # Checks for header files. 16821 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16822 if test "x$ac_cv_type_size_t" = xyes; then : 16823 16824 else 16825 16826 cat >>confdefs.h <<_ACEOF 16827 #define size_t unsigned int 16828 _ACEOF 16829 16830 fi 16831 16832 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16833 # for constant arguments. Useless! 16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16835 $as_echo_n "checking for working alloca.h... " >&6; } 16836 if ${ac_cv_working_alloca_h+:} false; then : 16664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ProfilingIsEnabledForAllThreads in -lprofiler" >&5 16665 $as_echo_n "checking for ProfilingIsEnabledForAllThreads in -lprofiler... " >&6; } 16666 if ${ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads+:} false; then : 16837 16667 $as_echo_n "(cached) " >&6 16838 16668 else 16839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16669 ac_check_lib_save_LIBS=$LIBS 16670 LIBS="-lprofiler $LIBS" 16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16840 16672 /* end confdefs.h. */ 16841 #include <alloca.h> 16673 16674 /* Override any GCC internal prototype to avoid an error. 16675 Use char because int might match the return type of a GCC 16676 builtin and then its argument prototype would still apply. */ 16677 #ifdef __cplusplus 16678 extern "C" 16679 #endif 16680 char ProfilingIsEnabledForAllThreads (); 16842 16681 int 16843 16682 main () 16844 16683 { 16845 char *p = (char *) alloca (2 * sizeof (int)); 16846 if (p) return 0; 16684 return ProfilingIsEnabledForAllThreads (); 16847 16685 ; 16848 16686 return 0; … … 16850 16688 _ACEOF 16851 16689 if ac_fn_c_try_link "$LINENO"; then : 16852 ac_cv_ working_alloca_h=yes16853 else 16854 ac_cv_ working_alloca_h=no16690 ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads=yes 16691 else 16692 ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads=no 16855 16693 fi 16856 16694 rm -f core conftest.err conftest.$ac_objext \ 16857 16695 conftest$ac_exeext conftest.$ac_ext 16858 fi 16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16860 $as_echo "$ac_cv_working_alloca_h" >&6; } 16861 if test $ac_cv_working_alloca_h = yes; then 16862 16863 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16864 16865 fi 16866 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16868 $as_echo_n "checking for alloca... " >&6; } 16869 if ${ac_cv_func_alloca_works+:} false; then : 16696 LIBS=$ac_check_lib_save_LIBS 16697 fi 16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads" >&5 16699 $as_echo "$ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads" >&6; } 16700 if test "x$ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads" = xyes; then : 16701 HAVE_LIBPROFILER=1 16702 else 16703 HAVE_LIBPROFILER=0 16704 fi 16705 16706 if test "$HAVE_LIBPROFILER" -eq 1; then 16707 WITH_LIBPROFILER_TRUE= 16708 WITH_LIBPROFILER_FALSE='#' 16709 else 16710 WITH_LIBPROFILER_TRUE='#' 16711 WITH_LIBPROFILER_FALSE= 16712 fi 16713 16714 16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ltcmalloc" >&5 16716 $as_echo_n "checking for malloc in -ltcmalloc... " >&6; } 16717 if ${ac_cv_lib_tcmalloc_malloc+:} false; then : 16870 16718 $as_echo_n "(cached) " >&6 16871 16719 else 16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16720 ac_check_lib_save_LIBS=$LIBS 16721 LIBS="-ltcmalloc $LIBS" 16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16873 16723 /* end confdefs.h. */ 16874 #ifdef __GNUC__ 16875 # define alloca __builtin_alloca 16876 #else 16877 # ifdef _MSC_VER 16878 # include <malloc.h> 16879 # define alloca _alloca 16880 # else 16881 # ifdef HAVE_ALLOCA_H 16882 # include <alloca.h> 16883 # else 16884 # ifdef _AIX 16885 #pragma alloca 16886 # else 16887 # ifndef alloca /* predefined by HP cc +Olibcalls */ 16888 void *alloca (size_t); 16889 # endif 16890 # endif 16891 # endif 16892 # endif 16724 16725 /* Override any GCC internal prototype to avoid an error. 16726 Use char because int might match the return type of a GCC 16727 builtin and then its argument prototype would still apply. */ 16728 #ifdef __cplusplus 16729 extern "C" 16893 16730 #endif 16894 16731 char malloc (); 16895 16732 int 16896 16733 main () 16897 16734 { 16898 char *p = (char *) alloca (1); 16899 if (p) return 0; 16735 return malloc (); 16900 16736 ; 16901 16737 return 0; … … 16903 16739 _ACEOF 16904 16740 if ac_fn_c_try_link "$LINENO"; then : 16905 ac_cv_ func_alloca_works=yes16906 else 16907 ac_cv_ func_alloca_works=no16741 ac_cv_lib_tcmalloc_malloc=yes 16742 else 16743 ac_cv_lib_tcmalloc_malloc=no 16908 16744 fi 16909 16745 rm -f core conftest.err conftest.$ac_objext \ 16910 16746 conftest$ac_exeext conftest.$ac_ext 16911 fi 16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16913 $as_echo "$ac_cv_func_alloca_works" >&6; } 16914 16915 if test $ac_cv_func_alloca_works = yes; then 16916 16917 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16918 16919 else 16920 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16921 # that cause trouble. Some versions do not even contain alloca or 16922 # contain a buggy version. If you still want to use their alloca, 16923 # use ar to extract alloca.o from them instead of compiling alloca.c. 16924 16925 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16926 16927 $as_echo "#define C_ALLOCA 1" >>confdefs.h 16928 16929 16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16931 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16932 if ${ac_cv_os_cray+:} false; then : 16933 $as_echo_n "(cached) " >&6 16934 else 16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16936 /* end confdefs.h. */ 16937 #if defined CRAY && ! defined CRAY2 16938 webecray 16939 #else 16940 wenotbecray 16941 #endif 16942 16943 _ACEOF 16944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16945 $EGREP "webecray" >/dev/null 2>&1; then : 16946 ac_cv_os_cray=yes 16947 else 16948 ac_cv_os_cray=no 16949 fi 16950 rm -f conftest* 16951 16952 fi 16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16954 $as_echo "$ac_cv_os_cray" >&6; } 16955 if test $ac_cv_os_cray = yes; then 16956 for ac_func in _getb67 GETB67 getb67; do 16957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16958 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16960 16961 cat >>confdefs.h <<_ACEOF 16962 #define CRAY_STACKSEG_END $ac_func 16963 _ACEOF 16964 16965 break 16966 fi 16967 16968 done 16969 fi 16970 16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16972 $as_echo_n "checking stack direction for C alloca... " >&6; } 16973 if ${ac_cv_c_stack_direction+:} false; then : 16974 $as_echo_n "(cached) " >&6 16975 else 16976 if test "$cross_compiling" = yes; then : 16977 ac_cv_c_stack_direction=0 16978 else 16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16980 /* end confdefs.h. */ 16981 $ac_includes_default 16982 int 16983 find_stack_direction (int *addr, int depth) 16984 { 16985 int dir, dummy = 0; 16986 if (! addr) 16987 addr = &dummy; 16988 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 16989 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 16990 return dir + dummy; 16991 } 16992 16993 int 16994 main (int argc, char **argv) 16995 { 16996 return find_stack_direction (0, argc + !argv + 20) < 0; 16997 } 16998 _ACEOF 16999 if ac_fn_c_try_run "$LINENO"; then : 17000 ac_cv_c_stack_direction=1 17001 else 17002 ac_cv_c_stack_direction=-1 17003 fi 17004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17005 conftest.$ac_objext conftest.beam conftest.$ac_ext 17006 fi 17007 17008 fi 17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 17010 $as_echo "$ac_cv_c_stack_direction" >&6; } 17011 cat >>confdefs.h <<_ACEOF 17012 #define STACK_DIRECTION $ac_cv_c_stack_direction 17013 _ACEOF 17014 17015 17016 fi 17017 17018 for ac_header in fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h 16747 LIBS=$ac_check_lib_save_LIBS 16748 fi 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_malloc" >&5 16750 $as_echo "$ac_cv_lib_tcmalloc_malloc" >&6; } 16751 if test "x$ac_cv_lib_tcmalloc_malloc" = xyes; then : 16752 HAVE_LIBTCMALLOC=1 16753 else 16754 HAVE_LIBTCMALLOC=0 16755 fi 16756 16757 if test "$HAVE_LIBTCMALLOC" -eq 1; then 16758 WITH_LIBTCMALLOC_TRUE= 16759 WITH_LIBTCMALLOC_FALSE='#' 16760 else 16761 WITH_LIBTCMALLOC_TRUE='#' 16762 WITH_LIBTCMALLOC_FALSE= 16763 fi 16764 16765 16766 # Checks for header files. 16767 for ac_header in libintl.h malloc.h unistd.h 17019 16768 do : 17020 16769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 17025 16774 _ACEOF 17026 16775 16776 else 16777 echo "Error: Missing required header"; exit 1 17027 16778 fi 17028 16779 … … 17031 16782 17032 16783 # Checks for typedefs, structures, and compiler characteristics. 17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 17034 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 17035 if ${ac_cv_header_stdbool_h+:} false; then : 16784 ac_fn_c_check_type "$LINENO" "_Float32" "ac_cv_type__Float32" " 16785 " 16786 if test "x$ac_cv_type__Float32" = xyes; then : 16787 16788 cat >>confdefs.h <<_ACEOF 16789 #define HAVE__FLOAT32 1 16790 _ACEOF 16791 16792 16793 $as_echo "#define HAVE_KEYWORDS_FLOATXX /**/" >>confdefs.h 16794 16795 fi 16796 16797 16798 # Checks for compiler flags. 16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-function-type" >&5 16800 $as_echo_n "checking whether C compiler accepts -Wcast-function-type... " >&6; } 16801 if ${m4cfa_cv_check_cflags___Wcast_function_type+:} false; then : 17036 16802 $as_echo_n "(cached) " >&6 17037 16803 else 17038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16804 16805 m4cfa_check_save_flags=$CFLAGS 16806 CFLAGS="$CFLAGS -Wcast-function-type" 16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17039 16808 /* end confdefs.h. */ 17040 17041 #include <stdbool.h>17042 #ifndef bool17043 "error: bool is not defined"17044 #endif17045 #ifndef false17046 "error: false is not defined"17047 #endif17048 #if false17049 "error: false is not 0"17050 #endif17051 #ifndef true17052 "error: true is not defined"17053 #endif17054 #if true != 117055 "error: true is not 1"17056 #endif17057 #ifndef __bool_true_false_are_defined17058 "error: __bool_true_false_are_defined is not defined"17059 #endif17060 17061 struct s { _Bool s: 1; _Bool t; } s;17062 17063 char a[true == 1 ? 1 : -1];17064 char b[false == 0 ? 1 : -1];17065 char c[__bool_true_false_are_defined == 1 ? 1 : -1];17066 char d[(bool) 0.5 == true ? 1 : -1];17067 /* See body of main program for 'e'. */17068 char f[(_Bool) 0.0 == false ? 1 : -1];17069 char g[true];17070 char h[sizeof (_Bool)];17071 char i[sizeof s.t];17072 enum { j = false, k = true, l = false * true, m = true * 256 };17073 /* The following fails for17074 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */17075 _Bool n[m];17076 char o[sizeof n == m * sizeof n[0] ? 1 : -1];17077 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];17078 /* Catch a bug in an HP-UX C compiler. See17079 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html17080 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html17081 */17082 _Bool q = true;17083 _Bool *pq = &q;17084 16809 17085 16810 int 17086 16811 main () 17087 16812 { 17088 17089 bool e = &s;17090 *pq |= q;17091 *pq |= ! q;17092 /* Refer to every declared value, to avoid compiler optimizations. */17093 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l17094 + !m + !n + !o + !p + !q + !pq);17095 16813 17096 16814 ; … … 17099 16817 _ACEOF 17100 16818 if ac_fn_c_try_compile "$LINENO"; then : 17101 ac_cv_header_stdbool_h=yes17102 else 17103 ac_cv_header_stdbool_h=no16819 m4cfa_cv_check_cflags___Wcast_function_type=yes 16820 else 16821 m4cfa_cv_check_cflags___Wcast_function_type=no 17104 16822 fi 17105 16823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17106 fi 17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 17108 $as_echo "$ac_cv_header_stdbool_h" >&6; } 17109 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 17110 if test "x$ac_cv_type__Bool" = xyes; then : 17111 17112 cat >>confdefs.h <<_ACEOF 17113 #define HAVE__BOOL 1 17114 _ACEOF 17115 17116 17117 fi 17118 17119 17120 if test $ac_cv_header_stdbool_h = yes; then 17121 17122 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 17123 17124 fi 17125 17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 17127 $as_echo_n "checking for inline... " >&6; } 17128 if ${ac_cv_c_inline+:} false; then : 17129 $as_echo_n "(cached) " >&6 17130 else 17131 ac_cv_c_inline=no 17132 for ac_kw in inline __inline__ __inline; do 17133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17134 /* end confdefs.h. */ 17135 #ifndef __cplusplus 17136 typedef int foo_t; 17137 static $ac_kw foo_t static_foo () {return 0; } 17138 $ac_kw foo_t foo () {return 0; } 17139 #endif 17140 17141 _ACEOF 17142 if ac_fn_c_try_compile "$LINENO"; then : 17143 ac_cv_c_inline=$ac_kw 17144 fi 17145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17146 test "$ac_cv_c_inline" != no && break 17147 done 17148 17149 fi 17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 17151 $as_echo "$ac_cv_c_inline" >&6; } 17152 17153 case $ac_cv_c_inline in 17154 inline | yes) ;; 17155 *) 17156 case $ac_cv_c_inline in 17157 no) ac_val=;; 17158 *) ac_val=$ac_cv_c_inline;; 17159 esac 17160 cat >>confdefs.h <<_ACEOF 17161 #ifndef __cplusplus 17162 #define inline $ac_val 17163 #endif 17164 _ACEOF 17165 ;; 17166 esac 17167 17168 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 17169 case $ac_cv_c_int16_t in #( 17170 no|yes) ;; #( 17171 *) 17172 17173 cat >>confdefs.h <<_ACEOF 17174 #define int16_t $ac_cv_c_int16_t 17175 _ACEOF 17176 ;; 17177 esac 17178 17179 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 17180 case $ac_cv_c_int32_t in #( 17181 no|yes) ;; #( 17182 *) 17183 17184 cat >>confdefs.h <<_ACEOF 17185 #define int32_t $ac_cv_c_int32_t 17186 _ACEOF 17187 ;; 17188 esac 17189 17190 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 17191 case $ac_cv_c_int8_t in #( 17192 no|yes) ;; #( 17193 *) 17194 17195 cat >>confdefs.h <<_ACEOF 17196 #define int8_t $ac_cv_c_int8_t 17197 _ACEOF 17198 ;; 17199 esac 17200 17201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 17202 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } 17203 if ${ac_cv_c_restrict+:} false; then : 17204 $as_echo_n "(cached) " >&6 17205 else 17206 ac_cv_c_restrict=no 17207 # The order here caters to the fact that C++ does not require restrict. 17208 for ac_kw in __restrict __restrict__ _Restrict restrict; do 17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17210 /* end confdefs.h. */ 17211 typedef int * int_ptr; 17212 int foo (int_ptr $ac_kw ip) { 17213 return ip[0]; 17214 } 17215 int 17216 main () 17217 { 17218 int s[1]; 17219 int * $ac_kw t = s; 17220 t[0] = 0; 17221 return foo(t) 17222 ; 17223 return 0; 17224 } 17225 _ACEOF 17226 if ac_fn_c_try_compile "$LINENO"; then : 17227 ac_cv_c_restrict=$ac_kw 17228 fi 17229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17230 test "$ac_cv_c_restrict" != no && break 17231 done 17232 17233 fi 17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 17235 $as_echo "$ac_cv_c_restrict" >&6; } 17236 17237 case $ac_cv_c_restrict in 17238 restrict) ;; 17239 no) $as_echo "#define restrict /**/" >>confdefs.h 17240 ;; 17241 *) cat >>confdefs.h <<_ACEOF 17242 #define restrict $ac_cv_c_restrict 17243 _ACEOF 17244 ;; 17245 esac 17246 17247 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17248 if test "x$ac_cv_type_size_t" = xyes; then : 17249 17250 else 17251 17252 cat >>confdefs.h <<_ACEOF 17253 #define size_t unsigned int 17254 _ACEOF 17255 17256 fi 17257 17258 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 17259 case $ac_cv_c_uint16_t in #( 17260 no|yes) ;; #( 17261 *) 17262 17263 17264 cat >>confdefs.h <<_ACEOF 17265 #define uint16_t $ac_cv_c_uint16_t 17266 _ACEOF 17267 ;; 17268 esac 17269 17270 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 17271 case $ac_cv_c_uint32_t in #( 17272 no|yes) ;; #( 17273 *) 17274 17275 $as_echo "#define _UINT32_T 1" >>confdefs.h 17276 17277 17278 cat >>confdefs.h <<_ACEOF 17279 #define uint32_t $ac_cv_c_uint32_t 17280 _ACEOF 17281 ;; 17282 esac 17283 17284 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 17285 case $ac_cv_c_uint8_t in #( 17286 no|yes) ;; #( 17287 *) 17288 17289 $as_echo "#define _UINT8_T 1" >>confdefs.h 17290 17291 17292 cat >>confdefs.h <<_ACEOF 17293 #define uint8_t $ac_cv_c_uint8_t 17294 _ACEOF 17295 ;; 17296 esac 17297 17298 17299 # Checks for library functions. 17300 for ac_func in memset putenv strchr strtol 17301 do : 17302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17305 cat >>confdefs.h <<_ACEOF 17306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17307 _ACEOF 17308 17309 fi 17310 done 16824 CFLAGS=$m4cfa_check_save_flags 16825 fi 16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $m4cfa_cv_check_cflags___Wcast_function_type" >&5 16827 $as_echo "$m4cfa_cv_check_cflags___Wcast_function_type" >&6; } 16828 if test "x$m4cfa_cv_check_cflags___Wcast_function_type" = xyes; then : 16829 16830 $as_echo "#define HAVE_CAST_FUNCTION_TYPE /**/" >>confdefs.h 16831 16832 else 16833 : 16834 fi 17311 16835 17312 16836 … … 17321 16845 17322 16846 #============================================================================== 17323 ac_config_files="$ac_config_files Makefile driver/Makefile src/Makefile benchmark/Makefile tests/Makefile tests/preempt_longrun/Makefile tools/Makefile tools/prettyprinter/Makefile"16847 ac_config_files="$ac_config_files Makefile driver/Makefile src/Makefile benchmark/Makefile tests/Makefile longrun_tests/Makefile tools/Makefile tools/prettyprinter/Makefile" 17324 16848 17325 16849 … … 17472 16996 if test -z "${WITH_LIBFIBRE_TRUE}" && test -z "${WITH_LIBFIBRE_FALSE}"; then 17473 16997 as_fn_error $? "conditional \"WITH_LIBFIBRE\" was never defined. 16998 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16999 fi 17000 if test -z "${WITH_LIBPROFILER_TRUE}" && test -z "${WITH_LIBPROFILER_FALSE}"; then 17001 as_fn_error $? "conditional \"WITH_LIBPROFILER\" was never defined. 17002 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17003 fi 17004 if test -z "${WITH_LIBTCMALLOC_TRUE}" && test -z "${WITH_LIBTCMALLOC_FALSE}"; then 17005 as_fn_error $? "conditional \"WITH_LIBTCMALLOC\" was never defined. 17474 17006 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17475 17007 fi … … 18459 17991 "benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/Makefile" ;; 18460 17992 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 18461 " tests/preempt_longrun/Makefile") CONFIG_FILES="$CONFIG_FILES tests/preempt_longrun/Makefile" ;;17993 "longrun_tests/Makefile") CONFIG_FILES="$CONFIG_FILES longrun_tests/Makefile" ;; 18462 17994 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 18463 17995 "tools/prettyprinter/Makefile") CONFIG_FILES="$CONFIG_FILES tools/prettyprinter/Makefile" ;;
Note:
See TracChangeset
for help on using the changeset viewer.