Mercurial > hg > CbC > CbC_gcc
comparison libgcc/configure.ac @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | b7f97abdc517 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
3 sinclude(../config/enable.m4) | 3 sinclude(../config/enable.m4) |
4 sinclude(../config/tls.m4) | 4 sinclude(../config/tls.m4) |
5 sinclude(../config/acx.m4) | 5 sinclude(../config/acx.m4) |
6 sinclude(../config/no-executables.m4) | 6 sinclude(../config/no-executables.m4) |
7 sinclude(../config/override.m4) | 7 sinclude(../config/override.m4) |
8 sinclude(../config/dfp.m4) | |
8 | 9 |
9 AC_PREREQ(2.64) | 10 AC_PREREQ(2.64) |
10 AC_INIT([GNU C Runtime Library], 1.0,,[libgcc]) | 11 AC_INIT([GNU C Runtime Library], 1.0,,[libgcc]) |
11 AC_CONFIG_SRCDIR([static-object.mk]) | 12 AC_CONFIG_SRCDIR([static-object.mk]) |
12 | 13 |
101 "") AC_MSG_ERROR([can't build without awk, bailing out]) ;; | 102 "") AC_MSG_ERROR([can't build without awk, bailing out]) ;; |
102 esac | 103 esac |
103 | 104 |
104 AC_CANONICAL_HOST | 105 AC_CANONICAL_HOST |
105 ACX_NONCANONICAL_HOST | 106 ACX_NONCANONICAL_HOST |
107 ACX_NONCANONICAL_TARGET | |
106 GCC_TOPLEV_SUBDIRS | 108 GCC_TOPLEV_SUBDIRS |
109 | |
110 # Calculate toolexeclibdir | |
111 # Also toolexecdir, though it's only used in toolexeclibdir | |
112 case ${version_specific_libs} in | |
113 yes) | |
114 # Need the gcc compiler version to know where to install libraries | |
115 # and header files if --enable-version-specific-runtime-libs option | |
116 # is selected. | |
117 toolexecdir='$(libdir)/gcc/$(target_noncanonical)' | |
118 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
119 ;; | |
120 no) | |
121 if test -n "$with_cross_host" && | |
122 test x"$with_cross_host" != x"no"; then | |
123 # Install a library built with a cross compiler in tooldir, not libdir. | |
124 toolexecdir='$(exec_prefix)/$(target_noncanonical)' | |
125 toolexeclibdir='$(toolexecdir)/lib' | |
126 else | |
127 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' | |
128 toolexeclibdir='$(libdir)' | |
129 fi | |
130 multi_os_directory=`$CC -print-multi-os-directory` | |
131 case $multi_os_directory in | |
132 .) ;; # Avoid trailing /. | |
133 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
134 esac | |
135 ;; | |
136 esac | |
137 AC_SUBST(toolexecdir) | |
138 AC_SUBST(toolexeclibdir) | |
107 | 139 |
108 dnl These must be called before AM_PROG_LIBTOOL, because it may want | 140 dnl These must be called before AM_PROG_LIBTOOL, because it may want |
109 dnl to call AC_CHECK_PROG. | 141 dnl to call AC_CHECK_PROG. |
110 AC_CHECK_TOOL(AR, ar) | 142 AC_CHECK_TOOL(AR, ar) |
111 AC_CHECK_TOOL(LIPO, lipo, :) | 143 AC_CHECK_TOOL(LIPO, lipo, :) |
123 [AC_COMPILE_IFELSE([_Decimal32 x;], [libgcc_cv_dfp=yes], | 155 [AC_COMPILE_IFELSE([_Decimal32 x;], [libgcc_cv_dfp=yes], |
124 [libgcc_cv_dfp=no])]) | 156 [libgcc_cv_dfp=no])]) |
125 decimal_float=$libgcc_cv_dfp | 157 decimal_float=$libgcc_cv_dfp |
126 AC_SUBST(decimal_float) | 158 AC_SUBST(decimal_float) |
127 | 159 |
128 AC_ARG_ENABLE(decimal-float, | 160 GCC_AC_ENABLE_DECIMAL_FLOAT([$host]) |
129 [ --enable-decimal-float={no,yes,bid,dpd} | |
130 enable decimal float extension to C. Selecting 'bid' | |
131 or 'dpd' choses which decimal floating point format | |
132 to use], | |
133 [ | |
134 case $enable_decimal_float in | |
135 yes | no | bid | dpd) ;; | |
136 *) AC_MSG_ERROR(['$enable_decimal_float' is an invalid value for --enable-decimal-float. | |
137 Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;; | |
138 esac | |
139 ], | |
140 [ | |
141 case $host in | |
142 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*) | |
143 enable_decimal_float=yes | |
144 ;; | |
145 *) | |
146 enable_decimal_float=no | |
147 ;; | |
148 esac | |
149 ]) | |
150 | |
151 # x86's use BID format instead of DPD | |
152 if test x$enable_decimal_float = xyes; then | |
153 case $host in | |
154 i?86*-*-linux* | x86_64*-*-linux*) | |
155 enable_decimal_float=bid | |
156 ;; | |
157 *) | |
158 enable_decimal_float=dpd | |
159 ;; | |
160 esac | |
161 fi | |
162 AC_SUBST(enable_decimal_float) | |
163 | 161 |
164 # Check for fixed-point support. | 162 # Check for fixed-point support. |
165 AC_CACHE_CHECK([whether fixed-point is supported], [libgcc_cv_fixed_point], | 163 AC_CACHE_CHECK([whether fixed-point is supported], [libgcc_cv_fixed_point], |
166 [AC_COMPILE_IFELSE([_Sat _Fract x;], [libgcc_cv_fixed_point=yes], | 164 [AC_COMPILE_IFELSE([_Sat _Fract x;], [libgcc_cv_fixed_point=yes], |
167 [libgcc_cv_fixed_point=no])]) | 165 [libgcc_cv_fixed_point=no])]) |
168 fixed_point=$libgcc_cv_fixed_point | 166 fixed_point=$libgcc_cv_fixed_point |
169 AC_SUBST(fixed_point) | 167 AC_SUBST(fixed_point) |
168 | |
169 # Check for assembler CFI support. | |
170 AC_CACHE_CHECK([whether assembler supports CFI directives], [libgcc_cv_cfi], | |
171 [AC_COMPILE_IFELSE( | |
172 [asm("\n\ | |
173 .text\n\ | |
174 .cfi_startproc\n\ | |
175 .cfi_personality 0, symbol\n\ | |
176 .cfi_endproc");], | |
177 [libgcc_cv_cfi=yes], | |
178 [libgcc_cv_cfi=no])]) | |
170 | 179 |
171 # Check 32bit or 64bit for x86. | 180 # Check 32bit or 64bit for x86. |
172 case ${host} in | 181 case ${host} in |
173 i?86*-*-* | x86_64*-*-*) | 182 i?86*-*-* | x86_64*-*-*) |
174 cat > conftest.c <<EOF | 183 cat > conftest.c <<EOF |
189 # Check if Solaris/x86 linker supports ZERO terminator unwind entries. | 198 # Check if Solaris/x86 linker supports ZERO terminator unwind entries. |
190 # This is after config.host so we can augment tmake_file. | 199 # This is after config.host so we can augment tmake_file. |
191 # Link with -nostartfiles -nodefaultlibs since neither are present while | 200 # Link with -nostartfiles -nodefaultlibs since neither are present while |
192 # building libgcc. | 201 # building libgcc. |
193 case ${host} in | 202 case ${host} in |
194 i?86-*-solaris2.1[[0-9]]*) | 203 i?86-*-solaris2*) |
195 cat > conftest.s <<EOF | 204 cat > conftest.s <<EOF |
196 .section .eh_frame,"a",@unwind | 205 .section .eh_frame,"a",@unwind |
197 .zero 4 | 206 .zero 4 |
198 .section .jcr,"aw",@progbits | 207 .section .jcr,"aw",@progbits |
199 .zero 8 | 208 .zero 8 |