Mercurial > hg > CbC > CbC_gcc
comparison libdecnumber/configure @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
56:3c8a44c06a95 | 63:b7f97abdc517 |
---|---|
6160 | 6160 |
6161 #ifndef _UINT8_T | 6161 #ifndef _UINT8_T |
6162 #define _UINT8_T | 6162 #define _UINT8_T |
6163 #ifndef __uint8_t_defined | 6163 #ifndef __uint8_t_defined |
6164 #define __uint8_t_defined | 6164 #define __uint8_t_defined |
6165 #ifndef uint8_t | |
6165 typedef unsigned $acx_cv_type_int8_t uint8_t; | 6166 typedef unsigned $acx_cv_type_int8_t uint8_t; |
6167 #endif | |
6166 #endif | 6168 #endif |
6167 #endif | 6169 #endif |
6168 | 6170 |
6169 #ifndef _UINT16_T | 6171 #ifndef _UINT16_T |
6170 #define _UINT16_T | 6172 #define _UINT16_T |
6171 #ifndef __uint16_t_defined | 6173 #ifndef __uint16_t_defined |
6172 #define __uint16_t_defined | 6174 #define __uint16_t_defined |
6175 #ifndef uint16_t | |
6173 typedef unsigned $acx_cv_type_int16_t uint16_t; | 6176 typedef unsigned $acx_cv_type_int16_t uint16_t; |
6177 #endif | |
6174 #endif | 6178 #endif |
6175 #endif | 6179 #endif |
6176 | 6180 |
6177 #ifndef _UINT32_T | 6181 #ifndef _UINT32_T |
6178 #define _UINT32_T | 6182 #define _UINT32_T |
6179 #ifndef __uint32_t_defined | 6183 #ifndef __uint32_t_defined |
6180 #define __uint32_t_defined | 6184 #define __uint32_t_defined |
6185 #ifndef uint32_t | |
6181 typedef unsigned $acx_cv_type_int32_t uint32_t; | 6186 typedef unsigned $acx_cv_type_int32_t uint32_t; |
6187 #endif | |
6182 #endif | 6188 #endif |
6183 #endif | 6189 #endif |
6184 | 6190 |
6185 #ifndef _INT8_T | 6191 #ifndef _INT8_T |
6186 #define _INT8_T | 6192 #define _INT8_T |
6187 #ifndef __int8_t_defined | 6193 #ifndef __int8_t_defined |
6188 #define __int8_t_defined | 6194 #define __int8_t_defined |
6195 #ifndef int8_t | |
6189 typedef $acx_cv_type_int8_t int8_t; | 6196 typedef $acx_cv_type_int8_t int8_t; |
6197 #endif | |
6190 #endif | 6198 #endif |
6191 #endif | 6199 #endif |
6192 | 6200 |
6193 #ifndef _INT16_T | 6201 #ifndef _INT16_T |
6194 #define _INT16_T | 6202 #define _INT16_T |
6195 #ifndef __int16_t_defined | 6203 #ifndef __int16_t_defined |
6196 #define __int16_t_defined | 6204 #define __int16_t_defined |
6205 #ifndef int16_t | |
6197 typedef $acx_cv_type_int16_t int16_t; | 6206 typedef $acx_cv_type_int16_t int16_t; |
6207 #endif | |
6198 #endif | 6208 #endif |
6199 #endif | 6209 #endif |
6200 | 6210 |
6201 #ifndef _INT32_T | 6211 #ifndef _INT32_T |
6202 #define _INT32_T | 6212 #define _INT32_T |
6203 #ifndef __int32_t_defined | 6213 #ifndef __int32_t_defined |
6204 #define __int32_t_defined | 6214 #define __int32_t_defined |
6215 #ifndef int32_t | |
6205 typedef $acx_cv_type_int32_t int32_t; | 6216 typedef $acx_cv_type_int32_t int32_t; |
6217 #endif | |
6206 #endif | 6218 #endif |
6207 #endif | 6219 #endif |
6208 EOF | 6220 EOF |
6209 elif test "$ac_cv_type_u_int32_t" = yes; then | 6221 elif test "$ac_cv_type_u_int32_t" = yes; then |
6210 sed 's/^ *//' >> tmp-stdint.h <<EOF | 6222 sed 's/^ *//' >> tmp-stdint.h <<EOF |
6222 | 6234 |
6223 #ifndef _UINT8_T | 6235 #ifndef _UINT8_T |
6224 #define _UINT8_T | 6236 #define _UINT8_T |
6225 #ifndef __uint8_t_defined | 6237 #ifndef __uint8_t_defined |
6226 #define __uint8_t_defined | 6238 #define __uint8_t_defined |
6239 #ifndef uint8_t | |
6227 typedef u_int8_t uint8_t; | 6240 typedef u_int8_t uint8_t; |
6241 #endif | |
6228 #endif | 6242 #endif |
6229 #endif | 6243 #endif |
6230 | 6244 |
6231 #ifndef _UINT16_T | 6245 #ifndef _UINT16_T |
6232 #define _UINT16_T | 6246 #define _UINT16_T |
6233 #ifndef __uint16_t_defined | 6247 #ifndef __uint16_t_defined |
6234 #define __uint16_t_defined | 6248 #define __uint16_t_defined |
6249 #ifndef uint16_t | |
6235 typedef u_int16_t uint16_t; | 6250 typedef u_int16_t uint16_t; |
6251 #endif | |
6236 #endif | 6252 #endif |
6237 #endif | 6253 #endif |
6238 | 6254 |
6239 #ifndef _UINT32_T | 6255 #ifndef _UINT32_T |
6240 #define _UINT32_T | 6256 #define _UINT32_T |
6241 #ifndef __uint32_t_defined | 6257 #ifndef __uint32_t_defined |
6242 #define __uint32_t_defined | 6258 #define __uint32_t_defined |
6259 #ifndef uint32_t | |
6243 typedef u_int32_t uint32_t; | 6260 typedef u_int32_t uint32_t; |
6261 #endif | |
6244 #endif | 6262 #endif |
6245 #endif | 6263 #endif |
6246 EOF | 6264 EOF |
6247 else | 6265 else |
6248 sed 's/^ *//' >> tmp-stdint.h <<EOF | 6266 sed 's/^ *//' >> tmp-stdint.h <<EOF |
6290 #endif | 6308 #endif |
6291 #ifndef _UINT64_T | 6309 #ifndef _UINT64_T |
6292 #define _UINT64_T | 6310 #define _UINT64_T |
6293 #ifndef __uint64_t_defined | 6311 #ifndef __uint64_t_defined |
6294 #define __uint64_t_defined | 6312 #define __uint64_t_defined |
6313 #ifndef uint64_t | |
6295 typedef u_int64_t uint64_t; | 6314 typedef u_int64_t uint64_t; |
6315 #endif | |
6296 #endif | 6316 #endif |
6297 #endif | 6317 #endif |
6298 EOF | 6318 EOF |
6299 elif test -n "$acx_cv_type_int64_t"; then | 6319 elif test -n "$acx_cv_type_int64_t"; then |
6300 sed 's/^ *//' >> tmp-stdint.h <<EOF | 6320 sed 's/^ *//' >> tmp-stdint.h <<EOF |
6301 | 6321 |
6302 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | 6322 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ |
6303 #ifndef _INT64_T | 6323 #ifndef _INT64_T |
6304 #define _INT64_T | 6324 #define _INT64_T |
6325 #ifndef int64_t | |
6305 typedef $acx_cv_type_int64_t int64_t; | 6326 typedef $acx_cv_type_int64_t int64_t; |
6327 #endif | |
6306 #endif | 6328 #endif |
6307 #ifndef _UINT64_T | 6329 #ifndef _UINT64_T |
6308 #define _UINT64_T | 6330 #define _UINT64_T |
6309 #ifndef __uint64_t_defined | 6331 #ifndef __uint64_t_defined |
6310 #define __uint64_t_defined | 6332 #define __uint64_t_defined |
6333 #ifndef uint64_t | |
6311 typedef unsigned $acx_cv_type_int64_t uint64_t; | 6334 typedef unsigned $acx_cv_type_int64_t uint64_t; |
6335 #endif | |
6312 #endif | 6336 #endif |
6313 #endif | 6337 #endif |
6314 EOF | 6338 EOF |
6315 else | 6339 else |
6316 sed 's/^ *//' >> tmp-stdint.h <<EOF | 6340 sed 's/^ *//' >> tmp-stdint.h <<EOF |
6318 /* some common heuristics for int64_t, using compiler-specific tests */ | 6342 /* some common heuristics for int64_t, using compiler-specific tests */ |
6319 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | 6343 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L |
6320 #ifndef _INT64_T | 6344 #ifndef _INT64_T |
6321 #define _INT64_T | 6345 #define _INT64_T |
6322 #ifndef __int64_t_defined | 6346 #ifndef __int64_t_defined |
6347 #ifndef int64_t | |
6323 typedef long long int64_t; | 6348 typedef long long int64_t; |
6349 #endif | |
6324 #endif | 6350 #endif |
6325 #endif | 6351 #endif |
6326 #ifndef _UINT64_T | 6352 #ifndef _UINT64_T |
6327 #define _UINT64_T | 6353 #define _UINT64_T |
6354 #ifndef uint64_t | |
6328 typedef unsigned long long uint64_t; | 6355 typedef unsigned long long uint64_t; |
6356 #endif | |
6329 #endif | 6357 #endif |
6330 | 6358 |
6331 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | 6359 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 |
6332 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | 6360 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and |
6333 does not implement __extension__. But that compiler doesn't define | 6361 does not implement __extension__. But that compiler doesn't define |
6336 # define __extension__ | 6364 # define __extension__ |
6337 # endif | 6365 # endif |
6338 | 6366 |
6339 # ifndef _INT64_T | 6367 # ifndef _INT64_T |
6340 # define _INT64_T | 6368 # define _INT64_T |
6369 # ifndef int64_t | |
6341 __extension__ typedef long long int64_t; | 6370 __extension__ typedef long long int64_t; |
6371 # endif | |
6342 # endif | 6372 # endif |
6343 # ifndef _UINT64_T | 6373 # ifndef _UINT64_T |
6344 # define _UINT64_T | 6374 # define _UINT64_T |
6375 # ifndef uint64_t | |
6345 __extension__ typedef unsigned long long uint64_t; | 6376 __extension__ typedef unsigned long long uint64_t; |
6346 # endif | 6377 # endif |
6378 # endif | |
6347 | 6379 |
6348 #elif !defined __STRICT_ANSI__ | 6380 #elif !defined __STRICT_ANSI__ |
6349 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | 6381 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ |
6350 | 6382 |
6351 # ifndef _INT64_T | 6383 # ifndef _INT64_T |
6352 # define _INT64_T | 6384 # define _INT64_T |
6385 # ifndef int64_t | |
6353 typedef __int64 int64_t; | 6386 typedef __int64 int64_t; |
6387 # endif | |
6354 # endif | 6388 # endif |
6355 # ifndef _UINT64_T | 6389 # ifndef _UINT64_T |
6356 # define _UINT64_T | 6390 # define _UINT64_T |
6391 # ifndef uint64_t | |
6357 typedef unsigned __int64 uint64_t; | 6392 typedef unsigned __int64 uint64_t; |
6393 # endif | |
6358 # endif | 6394 # endif |
6359 # endif /* compiler */ | 6395 # endif /* compiler */ |
6360 | 6396 |
6361 #endif /* ANSI version */ | 6397 #endif /* ANSI version */ |
6362 EOF | 6398 EOF |
6366 if test "$ac_cv_type_uintptr_t" != yes; then | 6402 if test "$ac_cv_type_uintptr_t" != yes; then |
6367 sed 's/^ *//' >> tmp-stdint.h <<EOF | 6403 sed 's/^ *//' >> tmp-stdint.h <<EOF |
6368 | 6404 |
6369 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | 6405 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ |
6370 #ifndef __uintptr_t_defined | 6406 #ifndef __uintptr_t_defined |
6407 #ifndef uintptr_t | |
6371 typedef u$acx_cv_type_intptr_t uintptr_t; | 6408 typedef u$acx_cv_type_intptr_t uintptr_t; |
6372 #endif | 6409 #endif |
6410 #endif | |
6373 #ifndef __intptr_t_defined | 6411 #ifndef __intptr_t_defined |
6412 #ifndef intptr_t | |
6374 typedef $acx_cv_type_intptr_t intptr_t; | 6413 typedef $acx_cv_type_intptr_t intptr_t; |
6414 #endif | |
6375 #endif | 6415 #endif |
6376 EOF | 6416 EOF |
6377 fi | 6417 fi |
6378 | 6418 |
6379 # ------------- done intptr types, emit int_least types ------------ | 6419 # ------------- done intptr types, emit int_least types ------------ |
6420 | 6460 |
6421 if test "$ac_cv_type_uintmax_t" != yes; then | 6461 if test "$ac_cv_type_uintmax_t" != yes; then |
6422 sed 's/^ *//' >> tmp-stdint.h <<EOF | 6462 sed 's/^ *//' >> tmp-stdint.h <<EOF |
6423 | 6463 |
6424 /* Define intmax based on what we found */ | 6464 /* Define intmax based on what we found */ |
6465 #ifndef intmax_t | |
6425 #ifdef _INT64_T | 6466 #ifdef _INT64_T |
6426 typedef int64_t intmax_t; | 6467 typedef int64_t intmax_t; |
6427 #else | 6468 #else |
6428 typedef long intmax_t; | 6469 typedef long intmax_t; |
6429 #endif | 6470 #endif |
6471 #endif | |
6472 #ifndef uintmax_t | |
6430 #ifdef _UINT64_T | 6473 #ifdef _UINT64_T |
6431 typedef uint64_t uintmax_t; | 6474 typedef uint64_t uintmax_t; |
6432 #else | 6475 #else |
6433 typedef unsigned long uintmax_t; | 6476 typedef unsigned long uintmax_t; |
6477 #endif | |
6434 #endif | 6478 #endif |
6435 EOF | 6479 EOF |
6436 fi | 6480 fi |
6437 | 6481 |
6438 sed 's/^ *//' >> tmp-stdint.h <<EOF | 6482 sed 's/^ *//' >> tmp-stdint.h <<EOF |