Mercurial > hg > CbC > CbC_gcc
comparison libiberty/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 |
---|---|
244 AC_SUBST_FILE(host_makefile_frag) | 244 AC_SUBST_FILE(host_makefile_frag) |
245 | 245 |
246 # It's OK to check for header files. Although the compiler may not be | 246 # It's OK to check for header files. Although the compiler may not be |
247 # able to link anything, it had better be able to at least compile | 247 # able to link anything, it had better be able to at least compile |
248 # something. | 248 # something. |
249 AC_CHECK_HEADERS(sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h) | 249 AC_CHECK_HEADERS(sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h) |
250 AC_HEADER_SYS_WAIT | 250 AC_HEADER_SYS_WAIT |
251 AC_HEADER_TIME | 251 AC_HEADER_TIME |
252 | 252 |
253 libiberty_AC_DECLARE_ERRNO | 253 libiberty_AC_DECLARE_ERRNO |
254 | 254 |
288 [Define to an unsigned 64-bit type available in the compiler.]) | 288 [Define to an unsigned 64-bit type available in the compiler.]) |
289 fi | 289 fi |
290 | 290 |
291 AC_TYPE_INTPTR_T | 291 AC_TYPE_INTPTR_T |
292 AC_TYPE_UINTPTR_T | 292 AC_TYPE_UINTPTR_T |
293 AC_TYPE_SSIZE_T | |
293 | 294 |
294 # Given the above check, we always have uintptr_t or a fallback | 295 # Given the above check, we always have uintptr_t or a fallback |
295 # definition. So define HAVE_UINTPTR_T in case any imported code | 296 # definition. So define HAVE_UINTPTR_T in case any imported code |
296 # relies on it. | 297 # relies on it. |
297 AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if you have the \`uintptr_t' type.]) | 298 AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if you have the \`uintptr_t' type.]) |
349 funcs="$funcs vfprintf" | 350 funcs="$funcs vfprintf" |
350 funcs="$funcs vprintf" | 351 funcs="$funcs vprintf" |
351 funcs="$funcs vsnprintf" | 352 funcs="$funcs vsnprintf" |
352 funcs="$funcs vsprintf" | 353 funcs="$funcs vsprintf" |
353 funcs="$funcs waitpid" | 354 funcs="$funcs waitpid" |
355 funcs="$funcs setproctitle" | |
354 | 356 |
355 # Also in the old function.def file: alloca, vfork, getopt. | 357 # Also in the old function.def file: alloca, vfork, getopt. |
356 | 358 |
357 vars="sys_errlist sys_nerr sys_siglist" | 359 vars="sys_errlist sys_nerr sys_siglist" |
358 | 360 |
359 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" | 361 checkfuncs="__fsetlocking canonicalize_file_name dup3 getrusage getsysinfo \ |
360 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp" | 362 gettimeofday on_exit psignal pstat_getdynamic pstat_getstatic realpath \ |
361 checkfuncs="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking" | 363 sbrk spawnve spawnvpe strerror strsignal sysconf sysctl sysmp table \ |
364 times wait3 wait4" | |
362 | 365 |
363 # These are neither executed nor required, but they help keep | 366 # These are neither executed nor required, but they help keep |
364 # autoheader happy without adding a bunch of text to acconfig.h. | 367 # autoheader happy without adding a bunch of text to acconfig.h. |
365 if test "x" = "y"; then | 368 if test "x" = "y"; then |
366 AC_CHECK_FUNCS(asprintf atexit \ | 369 AC_CHECK_FUNCS(asprintf atexit \ |
367 basename bcmp bcopy bsearch bzero \ | 370 basename bcmp bcopy bsearch bzero \ |
368 calloc canonicalize_file_name clock \ | 371 calloc canonicalize_file_name clock \ |
372 dup3 \ | |
369 ffs __fsetlocking \ | 373 ffs __fsetlocking \ |
370 getcwd getpagesize getrusage getsysinfo gettimeofday \ | 374 getcwd getpagesize getrusage getsysinfo gettimeofday \ |
371 index insque \ | 375 index insque \ |
372 memchr memcmp memcpy memmem memmove memset mkstemps \ | 376 memchr memcmp memcpy memmem memmove memset mkstemps \ |
373 on_exit \ | 377 on_exit \ |
374 psignal pstat_getdynamic pstat_getstatic putenv \ | 378 psignal pstat_getdynamic pstat_getstatic putenv \ |
375 random realpath rename rindex \ | 379 random realpath rename rindex \ |
376 sbrk setenv sigsetmask snprintf stpcpy stpncpy strcasecmp strchr strdup \ | 380 sbrk setenv setproctitle sigsetmask snprintf spawnve spawnvpe \ |
381 stpcpy stpncpy strcasecmp strchr strdup \ | |
377 strerror strncasecmp strndup strrchr strsignal strstr strtod strtol \ | 382 strerror strncasecmp strndup strrchr strsignal strstr strtod strtol \ |
378 strtoul strverscmp sysconf sysctl sysmp \ | 383 strtoul strverscmp sysconf sysctl sysmp \ |
379 table times tmpnam \ | 384 table times tmpnam \ |
380 vasprintf vfprintf vprintf vsprintf \ | 385 vasprintf vfprintf vprintf vsprintf \ |
381 wait3 wait4 waitpid) | 386 wait3 wait4 waitpid) |
382 AC_CHECK_DECLS([basename, ffs, asprintf, vasprintf, snprintf, vsnprintf]) | 387 AC_CHECK_DECLS([basename(char *), ffs, asprintf, vasprintf, snprintf, vsnprintf]) |
383 AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.]) | 388 AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.]) |
384 AC_DEFINE(HAVE_SYS_NERR, 1, [Define if you have the sys_nerr variable.]) | 389 AC_DEFINE(HAVE_SYS_NERR, 1, [Define if you have the sys_nerr variable.]) |
385 AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if you have the sys_siglist variable.]) | 390 AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if you have the sys_siglist variable.]) |
386 fi | 391 fi |
387 | 392 |
661 AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1, | 666 AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1, |
662 [Define if you have the _system_configuration variable.])], | 667 [Define if you have the _system_configuration variable.])], |
663 [AC_MSG_RESULT([no])]) | 668 [AC_MSG_RESULT([no])]) |
664 | 669 |
665 AC_CHECK_FUNCS($checkfuncs) | 670 AC_CHECK_FUNCS($checkfuncs) |
666 AC_CHECK_DECLS([basename, ffs, asprintf, vasprintf, snprintf, vsnprintf]) | 671 AC_CHECK_DECLS([basename(char *), ffs, asprintf, vasprintf, snprintf, vsnprintf]) |
667 AC_CHECK_DECLS([calloc, getenv, getopt, malloc, realloc, sbrk]) | 672 AC_CHECK_DECLS([calloc, getenv, getopt, malloc, realloc, sbrk]) |
668 AC_CHECK_DECLS([strverscmp]) | 673 AC_CHECK_DECLS([strverscmp]) |
669 libiberty_NEED_DECLARATION(canonicalize_file_name) | 674 libiberty_NEED_DECLARATION(canonicalize_file_name) |
670 fi | 675 fi |
671 | 676 |
672 # Figure out which version of pexecute to use. | 677 # Figure out which version of pexecute to use. |
673 case "${host}" in | 678 case "${host}" in |
674 *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;; | 679 *-*-mingw* | *-*-winnt*) pexecute=pex-win32 ;; |
675 *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;; | 680 *-*-msdosdjgpp*) pexecute=pex-djgpp ;; |
676 *-*-msdos*) pexecute=./pex-msdos.o ;; | 681 *-*-msdos*) pexecute=pex-msdos ;; |
677 *) pexecute=./pex-unix.o ;; | 682 *) pexecute=pex-unix ;; |
678 esac | 683 esac |
679 AC_SUBST(pexecute) | 684 AC_SUBST(pexecute) |
680 | 685 |
681 libiberty_AC_FUNC_STRNCMP | 686 libiberty_AC_FUNC_STRNCMP |
682 | 687 |