comparison 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
654 CFLAGS_FOR_BUILD 654 CFLAGS_FOR_BUILD
655 CC_FOR_BUILD 655 CC_FOR_BUILD
656 AS_FOR_BUILD 656 AS_FOR_BUILD
657 AR_FOR_BUILD 657 AR_FOR_BUILD
658 target_configargs 658 target_configargs
659 target_configdirs
659 configdirs 660 configdirs
660 host_configargs 661 host_configargs
661 build_configdirs 662 build_configdirs
662 build_configargs 663 build_configargs
663 INSTALL_GDB_TK 664 INSTALL_GDB_TK
1480 1481
1481 Optional Features: 1482 Optional Features:
1482 --disable-option-checking ignore unrecognized --enable/--with options 1483 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --enable-gold use gold instead of ld 1486 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
1486 --enable-libada build libada directory 1487 --enable-libada build libada directory
1487 --enable-libssp build libssp directory 1488 --enable-libssp build libssp directory
1488 --enable-build-with-cxx build with C++ compiler instead of C compiler 1489 --enable-build-with-cxx build with C++ compiler instead of C compiler
1489 --disable-ppl-version-check disable check for PPL version 1490 --disable-ppl-version-check disable check for PPL version
1490 --disable-cloog-version-check disable check for CLooG version 1491 --disable-cloog-version-check disable check for CLooG version
2898 # these tools are built for the host environment 2899 # these tools are built for the host environment
2899 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to 2900 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2900 # know that we are building the simulator. 2901 # know that we are building the simulator.
2901 # binutils, gas and ld appear in that order because it makes sense to run 2902 # binutils, gas and ld appear in that order because it makes sense to run
2902 # "make check" in that particular order. 2903 # "make check" in that particular order.
2903 # If --enable-gold is used, "gold" will replace "ld". 2904 # If --enable-gold is used, "gold" may replace "ld".
2904 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools" 2905 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2905 2906
2906 # libgcj represents the runtime libraries only used by gcj. 2907 # libgcj represents the runtime libraries only used by gcj.
2907 libgcj="target-libffi \ 2908 libgcj="target-libffi \
2908 target-zlib \ 2909 target-zlib \
3066 no) skipdirs="${skipdirs} target-newlib" ;; 3067 no) skipdirs="${skipdirs} target-newlib" ;;
3067 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; 3068 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3068 esac 3069 esac
3069 3070
3070 # Handle --enable-gold. 3071 # Handle --enable-gold.
3072 # --enable-gold Build only gold
3073 # --disable-gold [default] Build only ld
3074 # --enable-gold=both Build both gold and ld, ld is default
3075 # --enable-gold=both/ld Same
3076 # --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
3071 3077
3072 # Check whether --enable-gold was given. 3078 # Check whether --enable-gold was given.
3073 if test "${enable_gold+set}" = set; then : 3079 if test "${enable_gold+set}" = set; then :
3074 enableval=$enable_gold; ENABLE_GOLD=$enableval 3080 enableval=$enable_gold; ENABLE_GOLD=$enableval
3075 else 3081 else
3076 ENABLE_GOLD=no 3082 ENABLE_GOLD=no
3077 fi 3083 fi
3078 3084
3079 if test "${ENABLE_GOLD}" = "yes"; then 3085 case "${ENABLE_GOLD}" in
3080 # Check for ELF target. 3086 yes|both|both/gold|both/ld)
3081 is_elf=no 3087 # Check for ELF target.
3082 case "${target}" in 3088 is_elf=no
3083 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ 3089 case "${target}" in
3084 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ 3090 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3085 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*) 3091 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3092 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
3093 case "${target}" in
3094 *-*-linux*aout* | *-*-linux*oldld*)
3095 ;;
3096 *)
3097 is_elf=yes
3098 ;;
3099 esac
3100 esac
3101
3102 if test "$is_elf" = "yes"; then
3103 # Check for target supported by gold.
3086 case "${target}" in 3104 case "${target}" in
3087 *-*-linux*aout* | *-*-linux*oldld*) 3105 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
3088 ;; 3106 case "${ENABLE_GOLD}" in
3089 *) 3107 both*)
3090 is_elf=yes 3108 configdirs="$configdirs gold"
3109 ;;
3110 *)
3111 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
3112 ;;
3113 esac
3114 ENABLE_GOLD=yes
3091 ;; 3115 ;;
3092 esac 3116 esac
3117 fi
3118 ;;
3119 no)
3120 ;;
3121 *)
3122 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3123 ;;
3093 esac 3124 esac
3094
3095 if test "$is_elf" = "yes"; then
3096 # Check for target supported by gold.
3097 case "${target}" in
3098 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
3099 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
3100 ;;
3101 esac
3102 fi
3103 fi
3104 3125
3105 # Configure extra directories which are host specific 3126 # Configure extra directories which are host specific
3106 3127
3107 case "${host}" in 3128 case "${host}" in
3108 *-cygwin*) 3129 *-cygwin*)
3258 3279
3259 # Skip some stuff that's unsupported on some FreeBSD configurations. 3280 # Skip some stuff that's unsupported on some FreeBSD configurations.
3260 case "${target}" in 3281 case "${target}" in
3261 i*86-*-*) ;; 3282 i*86-*-*) ;;
3262 alpha*-*-*) ;; 3283 alpha*-*-*) ;;
3284 x86_64-*-*) ;;
3263 *) 3285 *)
3264 noconfigdirs="$noconfigdirs ${libgcj}" 3286 noconfigdirs="$noconfigdirs ${libgcj}"
3265 ;; 3287 ;;
3266 esac 3288 esac
3267 ;; 3289 ;;
3287 ;; 3309 ;;
3288 *-*-netware*) 3310 *-*-netware*)
3289 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" 3311 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3290 ;; 3312 ;;
3291 *-*-rtems*) 3313 *-*-rtems*)
3314 skipdirs="${skipdirs} target-libiberty"
3292 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 3315 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3293 ;; 3316 ;;
3294 # The tpf target doesn't support gdb yet. 3317 # The tpf target doesn't support gdb yet.
3295 *-*-tpf*) 3318 *-*-tpf*)
3296 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl" 3319 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3306 # newlib is not 64 bit ready. I'm not sure about fileutils. 3329 # newlib is not 64 bit ready. I'm not sure about fileutils.
3307 # gas doesn't generate exception information. 3330 # gas doesn't generate exception information.
3308 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" 3331 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3309 ;; 3332 ;;
3310 alpha*-*-*vms*) 3333 alpha*-*-*vms*)
3311 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" 3334 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3312 ;; 3335 ;;
3313 alpha*-*-linux*) 3336 alpha*-*-linux*)
3314 # newlib is not 64 bit ready 3337 # newlib is not 64 bit ready
3315 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 3338 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3316 ;; 3339 ;;
3698 ;; 3721 ;;
3699 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) 3722 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3700 noconfigdirs="$noconfigdirs ${libgcj}" 3723 noconfigdirs="$noconfigdirs ${libgcj}"
3701 ;; 3724 ;;
3702 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) 3725 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3726 ;;
3727 tic6x-*-*)
3728 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3703 ;; 3729 ;;
3704 v810-*-*) 3730 v810-*-*)
3705 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" 3731 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3706 ;; 3732 ;;
3707 v850-*-*) 3733 v850-*-*)
5282 else 5308 else
5283 ENABLE_BUILD_WITH_CXX=no 5309 ENABLE_BUILD_WITH_CXX=no
5284 fi 5310 fi
5285 5311
5286 5312
5313 # Used for setting $lt_cv_objdir
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5315 $as_echo_n "checking for objdir... " >&6; }
5316 if test "${lt_cv_objdir+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 rm -f .libs 2>/dev/null
5320 mkdir .libs 2>/dev/null
5321 if test -d .libs; then
5322 lt_cv_objdir=.libs
5323 else
5324 # MS-DOS does not allow filenames that begin with a dot.
5325 lt_cv_objdir=_libs
5326 fi
5327 rmdir .libs 2>/dev/null
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5330 $as_echo "$lt_cv_objdir" >&6; }
5331 objdir=$lt_cv_objdir
5332
5333
5334
5335
5336
5337 cat >>confdefs.h <<_ACEOF
5338 #define LT_OBJDIR "$lt_cv_objdir/"
5339 _ACEOF
5340
5341
5342
5287 # Check for GMP, MPFR and MPC 5343 # Check for GMP, MPFR and MPC
5288 gmplibs="-lmpc -lmpfr -lgmp" 5344 gmplibs="-lmpc -lmpfr -lgmp"
5289 gmpinc= 5345 gmpinc=
5290 have_gmp=no 5346 have_gmp=no
5291 5347
5319 fi 5375 fi
5320 if test "x$with_mpc_lib" != x; then 5376 if test "x$with_mpc_lib" != x; then
5321 gmplibs="-L$with_mpc_lib $gmplibs" 5377 gmplibs="-L$with_mpc_lib $gmplibs"
5322 fi 5378 fi
5323 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then 5379 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5324 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs '"$gmplibs" 5380 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5325 gmpinc='-I$$s/mpc/src '"$gmpinc" 5381 gmpinc='-I$$s/mpc/src '"$gmpinc"
5326 # Do not test the mpc version. Assume that it is sufficient, since 5382 # Do not test the mpc version. Assume that it is sufficient, since
5327 # it is in the source tree, and the library has not been built yet 5383 # it is in the source tree, and the library has not been built yet
5328 # but it would be included on the link line in the version check below 5384 # but it would be included on the link line in the version check below
5329 # hence making the test fail. 5385 # hence making the test fail.
5368 fi 5424 fi
5369 if test "x$with_mpfr_lib" != x; then 5425 if test "x$with_mpfr_lib" != x; then
5370 gmplibs="-L$with_mpfr_lib $gmplibs" 5426 gmplibs="-L$with_mpfr_lib $gmplibs"
5371 fi 5427 fi
5372 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then 5428 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5373 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs" 5429 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5374 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" 5430 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5375 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr' 5431 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5376 # Do not test the mpfr version. Assume that it is sufficient, since 5432 # Do not test the mpfr version. Assume that it is sufficient, since
5377 # it is in the source tree, and the library has not been built yet 5433 # it is in the source tree, and the library has not been built yet
5378 # but it would be included on the link line in the version check below 5434 # but it would be included on the link line in the version check below
5379 # hence making the test fail. 5435 # hence making the test fail.
5380 have_gmp=yes 5436 have_gmp=yes
5418 fi 5474 fi
5419 if test "x$with_gmp_lib" != x; then 5475 if test "x$with_gmp_lib" != x; then
5420 gmplibs="-L$with_gmp_lib $gmplibs" 5476 gmplibs="-L$with_gmp_lib $gmplibs"
5421 fi 5477 fi
5422 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then 5478 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5423 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs" 5479 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5424 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" 5480 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5425 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp' 5481 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
5426 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp' 5482 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5427 # Do not test the gmp version. Assume that it is sufficient, since 5483 # Do not test the gmp version. Assume that it is sufficient, since
5428 # it is in the source tree, and the library has not been built yet 5484 # it is in the source tree, and the library has not been built yet
5429 # but it would be included on the link line in the version check below 5485 # but it would be included on the link line in the version check below
5430 # hence making the test fail. 5486 # hence making the test fail.
5431 have_gmp=yes 5487 have_gmp=yes
5433 5489
5434 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then 5490 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5435 have_gmp=yes 5491 have_gmp=yes
5436 saved_CFLAGS="$CFLAGS" 5492 saved_CFLAGS="$CFLAGS"
5437 CFLAGS="$CFLAGS $gmpinc" 5493 CFLAGS="$CFLAGS $gmpinc"
5438 # Check GMP actually works 5494 # Check for the recommended and required versions of GMP.
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5440 $as_echo_n "checking for correct version of gmp.h... " >&6; } 5496 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5441 5497
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */ 5499 /* end confdefs.h. */
5444 #include "gmp.h" 5500 #include "gmp.h"
5445 int 5501 int
5446 main () 5502 main ()
5447 { 5503 {
5448 5504
5449 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2) 5505 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5506 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5507 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5508 choke me
5509 #endif
5510
5511 ;
5512 return 0;
5513 }
5514 _ACEOF
5515 if ac_fn_c_try_compile "$LINENO"; then :
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 #include <gmp.h>
5519 int
5520 main ()
5521 {
5522
5523 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5524 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5525 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5450 choke me 5526 choke me
5451 #endif 5527 #endif
5452 5528
5453 ; 5529 ;
5454 return 0; 5530 return 0;
5456 _ACEOF 5532 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then : 5533 if ac_fn_c_try_compile "$LINENO"; then :
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5459 $as_echo "yes" >&6; } 5535 $as_echo "yes" >&6; }
5460 else 5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5538 $as_echo "buggy but acceptable" >&6; }
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }; have_gmp=no 5543 $as_echo "no" >&6; }; have_gmp=no
5463 fi 5544 fi
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 5546
5466 # If we have GMP, check the MPFR version. 5547 # If we have GMP, check the MPFR version.
5467 if test x"$have_gmp" = xyes; then 5548 if test x"$have_gmp" = xyes; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5 5549 # Check for the recommended and required versions of MPFR.
5469 $as_echo_n "checking for correct version of mpfr.h... " >&6; } 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5551 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */ 5553 /* end confdefs.h. */
5472 #include <gmp.h> 5554 #include <gmp.h>
5473 #include <mpfr.h> 5555 #include <mpfr.h>
5474 int 5556 int
5490 #include <mpfr.h> 5572 #include <mpfr.h>
5491 int 5573 int
5492 main () 5574 main ()
5493 { 5575 {
5494 5576
5495 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2) 5577 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5496 choke me 5578 choke me
5497 #endif 5579 #endif
5498 5580
5499 ; 5581 ;
5500 return 0; 5582 return 0;
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 fi 5598 fi
5517 5599
5518 # Check for the MPC header version. 5600 # Check for the MPC header version.
5519 if test x"$have_gmp" = xyes ; then 5601 if test x"$have_gmp" = xyes ; then
5602 # Check for the recommended and required versions of MPC.
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5521 $as_echo_n "checking for the correct version of mpc.h... " >&6; } 5604 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */ 5606 /* end confdefs.h. */
5524 #include <mpc.h> 5607 #include <mpc.h>
5525 int 5608 int
5526 main () 5609 main ()
5527 { 5610 {
5528 5611
5529 #if MPC_VERSION < MPC_VERSION_NUM (0,8,0) 5612 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5613 choke me
5614 #endif
5615
5616 ;
5617 return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <mpc.h>
5624 int
5625 main ()
5626 {
5627
5628 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5530 choke me 5629 choke me
5531 #endif 5630 #endif
5532 5631
5533 ; 5632 ;
5534 return 0; 5633 return 0;
5535 } 5634 }
5536 _ACEOF 5635 _ACEOF
5537 if ac_fn_c_try_compile "$LINENO"; then : 5636 if ac_fn_c_try_compile "$LINENO"; then :
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; } 5638 $as_echo "yes" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5641 $as_echo "buggy but acceptable" >&6; }
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 else 5644 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }; have_gmp=no 5646 $as_echo "no" >&6; }; have_gmp=no
5543 fi 5647 fi
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 LIBS="$saved_LIBS" 5695 LIBS="$saved_LIBS"
5592 fi 5696 fi
5593 5697
5594 CFLAGS="$saved_CFLAGS" 5698 CFLAGS="$saved_CFLAGS"
5595 5699
5700 # The library versions listed in the error message below should match
5701 # the HARD-minimums enforced above.
5596 if test x$have_gmp != xyes; then 5702 if test x$have_gmp != xyes; then
5597 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.2+ and MPC 0.8.0+. 5703 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5598 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify 5704 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5599 their locations. Source code for these libraries can be found at 5705 their locations. Source code for these libraries can be found at
5600 their respective hosting sites as well as at 5706 their respective hosting sites as well as at
5601 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also 5707 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5602 http://gcc.gnu.org/install/prerequisites.html for additional info. If 5708 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5693 fi 5799 fi
5694 5800
5695 5801
5696 5802
5697 # Check for PPL 5803 # Check for PPL
5698 ppl_major_version=0
5699 ppl_minor_version=10
5700 ppllibs=" -lppl_c -lppl -lgmpxx" 5804 ppllibs=" -lppl_c -lppl -lgmpxx"
5701 pplinc= 5805 pplinc=
5702 5806
5703 5807
5704 # Check whether --with-ppl was given. 5808 # Check whether --with-ppl was given.
5735 fi 5839 fi
5736 if test "x$with_ppl_lib" != x; then 5840 if test "x$with_ppl_lib" != x; then
5737 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx" 5841 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5738 fi 5842 fi
5739 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then 5843 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5740 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/.libs -L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/_libs -L$$r/$(HOST_SUBDIR)/ppl/src/.libs -L$$r/$(HOST_SUBDIR)/ppl/src/_libs -lppl_c -lppl -lgmpxx ' 5844 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5741 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C ' 5845 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5742 enable_ppl_version_check=no 5846 enable_ppl_version_check=no
5743 fi 5847 fi
5744 5848
5745 # Check whether --enable-ppl-version-check was given. 5849 # Check whether --enable-ppl-version-check was given.
5751 5855
5752 5856
5753 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then 5857 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5754 saved_CFLAGS="$CFLAGS" 5858 saved_CFLAGS="$CFLAGS"
5755 CFLAGS="$CFLAGS $pplinc $gmpinc" 5859 CFLAGS="$CFLAGS $pplinc $gmpinc"
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5757 $as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; } 5861 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */ 5863 /* end confdefs.h. */
5760 #include "ppl_c.h" 5864 #include "ppl_c.h"
5761 int 5865 int
5762 main () 5866 main ()
5763 { 5867 {
5764 5868
5765 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version 5869 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5766 choke me 5870 choke me
5767 #endif 5871 #endif
5768 5872
5769 ; 5873 ;
5770 return 0; 5874 return 0;
5830 fi 5934 fi
5831 if test "x$with_cloog_lib" != x; then 5935 if test "x$with_cloog_lib" != x; then
5832 clooglibs="-L$with_cloog_lib -lcloog" 5936 clooglibs="-L$with_cloog_lib -lcloog"
5833 fi 5937 fi
5834 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then 5938 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5835 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog ' 5939 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
5836 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND ' 5940 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5837 enable_cloog_version_check=no 5941 enable_cloog_version_check=no
5838 fi 5942 fi
5839 5943
5840 # Check whether --enable-cloog-version-check was given. 5944 # Check whether --enable-cloog-version-check was given.
5864 ; 5968 ;
5865 return 0; 5969 return 0;
5866 } 5970 }
5867 _ACEOF 5971 _ACEOF
5868 if ac_fn_c_try_compile "$LINENO"; then : 5972 if ac_fn_c_try_compile "$LINENO"; then :
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 #include "cloog/cloog.h"
5976 int
5977 main ()
5978 {
5979
5980 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
5981 choke me
5982 #endif
5983
5984 ;
5985 return 0;
5986 }
5987 _ACEOF
5988 if ac_fn_c_try_compile "$LINENO"; then :
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5870 $as_echo "yes" >&6; } 5990 $as_echo "yes" >&6; }
5991 else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5993 $as_echo "buggy but acceptable" >&6; }
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 else 5996 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }; clooglibs= ; clooginc= 5998 $as_echo "no" >&6; }; clooglibs= ; clooginc=
5874 fi 5999 fi
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 else 6012 else
5888 enable_lto=yes; default_enable_lto=yes 6013 enable_lto=yes; default_enable_lto=yes
5889 fi 6014 fi
5890 6015
5891 6016
5892 if test x"$enable_lto" = x"yes" ; then 6017
5893 # Make sure that libelf.h and gelf.h are available. 6018 ac_ext=c
5894
5895 # Check whether --with-libelf was given.
5896 if test "${with_libelf+set}" = set; then :
5897 withval=$with_libelf;
5898 fi
5899
5900
5901
5902 # Check whether --with-libelf_include was given.
5903 if test "${with_libelf_include+set}" = set; then :
5904 withval=$with_libelf_include;
5905 fi
5906
5907
5908
5909 # Check whether --with-libelf_lib was given.
5910 if test "${with_libelf_lib+set}" = set; then :
5911 withval=$with_libelf_lib;
5912 fi
5913
5914
5915 saved_CFLAGS="$CFLAGS"
5916 saved_CPPFLAGS="$CPPFLAGS"
5917 saved_LIBS="$LIBS"
5918
5919 case $with_libelf in
5920 "")
5921 libelflibs="-lelf"
5922 libelfinc="-I/usr/include/libelf"
5923 ;;
5924 *)
5925 libelflibs="-L$with_libelf/lib -lelf"
5926 libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
5927 LIBS="$libelflibs $LIBS"
5928 ;;
5929 esac
5930
5931 if test "x$with_libelf_include" != x; then
5932 libelfinc="-I$with_libelf_include"
5933 fi
5934
5935 if test "x$with_libelf_lib" != x; then
5936 libelflibs="-L$with_libelf_lib -lelf"
5937 LIBS="$libelflibs $LIBS"
5938 fi
5939
5940 if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
5941 && test -d ${srcdir}/libelf; then
5942 libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
5943 libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
5944 LIBS="$libelflibs $LIBS"
5945
5946 else
5947
5948 CFLAGS="$CFLAGS $libelfinc"
5949 CPPFLAGS="$CPPFLAGS $libelfinc"
5950 LIBS="$LIBS $libelflibs"
5951
5952 ac_ext=c
5953 ac_cpp='$CPP $CPPFLAGS' 6019 ac_cpp='$CPP $CPPFLAGS'
5954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6345 fi 6411 fi
6346 6412
6347 done 6413 done
6348 6414
6349 6415
6350 for ac_header in libelf.h 6416
6417
6418
6419 target_elf=no
6420 case $target in
6421 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6422 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6423 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6424 target_elf=no
6425 ;;
6426 *)
6427 target_elf=yes
6428 ;;
6429 esac
6430
6431 if test $target_elf = yes; then :
6432 if test x"$enable_lto" = x"yes" ; then
6433 # Make sure that libelf.h and gelf.h are available.
6434
6435 # Check whether --with-libelf was given.
6436 if test "${with_libelf+set}" = set; then :
6437 withval=$with_libelf;
6438 fi
6439
6440
6441
6442 # Check whether --with-libelf_include was given.
6443 if test "${with_libelf_include+set}" = set; then :
6444 withval=$with_libelf_include;
6445 fi
6446
6447
6448
6449 # Check whether --with-libelf_lib was given.
6450 if test "${with_libelf_lib+set}" = set; then :
6451 withval=$with_libelf_lib;
6452 fi
6453
6454
6455 saved_CFLAGS="$CFLAGS"
6456 saved_CPPFLAGS="$CPPFLAGS"
6457 saved_LIBS="$LIBS"
6458
6459 case $with_libelf in
6460 "")
6461 libelflibs="-lelf"
6462 libelfinc="-I/usr/include/libelf"
6463 ;;
6464 *)
6465 libelflibs="-L$with_libelf/lib -lelf"
6466 libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
6467 LIBS="$libelflibs $LIBS"
6468 ;;
6469 esac
6470
6471 if test "x$with_libelf_include" != x; then
6472 libelfinc="-I$with_libelf_include"
6473 fi
6474
6475 if test "x$with_libelf_lib" != x; then
6476 libelflibs="-L$with_libelf_lib -lelf"
6477 LIBS="$libelflibs $LIBS"
6478 fi
6479
6480 if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
6481 && test -d ${srcdir}/libelf; then
6482 libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
6483 libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
6484 LIBS="$libelflibs $LIBS"
6485
6486 else
6487
6488 CFLAGS="$CFLAGS $libelfinc"
6489 CPPFLAGS="$CPPFLAGS $libelfinc"
6490 LIBS="$LIBS $libelflibs"
6491
6492 for ac_header in libelf.h
6351 do : 6493 do :
6352 ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default" 6494 ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
6353 if test "x$ac_cv_header_libelf_h" = x""yes; then : 6495 if test "x$ac_cv_header_libelf_h" = x""yes; then :
6354 cat >>confdefs.h <<_ACEOF 6496 cat >>confdefs.h <<_ACEOF
6355 #define HAVE_LIBELF_H 1 6497 #define HAVE_LIBELF_H 1
6437 elf_errmsg (0); 6579 elf_errmsg (0);
6438 elf_getscn (0, 0); 6580 elf_getscn (0, 0);
6439 elf_nextscn (0, 0); 6581 elf_nextscn (0, 0);
6440 elf_strptr (0, 0, 0); 6582 elf_strptr (0, 0, 0);
6441 elf_getident (0, 0); 6583 elf_getident (0, 0);
6442 elf_getshdrstrndx (0, 0);
6443 elf_begin (0, 0, 0); 6584 elf_begin (0, 0, 0);
6444 elf_ndxscn (0); 6585 elf_ndxscn (0);
6445 elf_end (0); 6586 elf_end (0);
6446 6587
6447 ; 6588 ;
6457 6598
6458 fi 6599 fi
6459 rm -f core conftest.err conftest.$ac_objext \ 6600 rm -f core conftest.err conftest.$ac_objext \
6460 conftest$ac_exeext conftest.$ac_ext 6601 conftest$ac_exeext conftest.$ac_ext
6461 6602
6603 # Check for elf_getshdrstrndx or elf_getshstrndx. The latter's flavor
6604 # is determined in gcc/configure.ac.
6605 if test x"$enable_lto" = x"yes" ; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx" >&5
6607 $as_echo_n "checking for elf_getshdrstrndx... " >&6; }
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 #include <libelf.h>
6611 int
6612 main ()
6613 {
6614
6615 elf_getshdrstrndx (0, 0);
6616
6617 ;
6618 return 0;
6619 }
6620 _ACEOF
6621 if ac_fn_c_try_link "$LINENO"; then :
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6623 $as_echo "yes" >&6; };
6624 else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; };
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshstrndx" >&5
6628 $as_echo_n "checking for elf_getshstrndx... " >&6; }
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631 #include <libelf.h>
6632 int
6633 main ()
6634 {
6635
6636 elf_getshstrndx (0, 0);
6637
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 if ac_fn_c_try_link "$LINENO"; then :
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6644 $as_echo "yes" >&6; };
6645 else
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6648
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext \
6651 conftest$ac_exeext conftest.$ac_ext
6652
6653 fi
6654 rm -f core conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext conftest.$ac_ext
6656 fi
6657
6462 # If we couldn't enable LTO and the user forced it, emit an error. 6658 # If we couldn't enable LTO and the user forced it, emit an error.
6463 if test x"$enable_lto" = x"no" \ 6659 if test x"$enable_lto" = x"no" \
6464 && test x"$default_enable_lto" != x"yes" ; then 6660 && test x"$default_enable_lto" != x"yes" ; then
6465 as_fn_error "To enable LTO, GCC requires libelf v0.8.12+. 6661 as_fn_error "To enable LTO, GCC requires libelf v0.8.12+.
6466 Try the --with-libelf, --with-libelf-include and --with-libelf-lib options 6662 Try the --with-libelf, --with-libelf-include and --with-libelf-lib options
6476 6672
6477 # Flags needed for libelf. 6673 # Flags needed for libelf.
6478 6674
6479 6675
6480 fi 6676 fi
6677 else
6678 if test x"$default_enable_lto" = x"yes" ; then
6679 # On non-ELF platforms, LTO must be explicitly enabled.
6680 enable_lto=no
6681 else
6682 # Apart from ELF platforms, only Windows supports LTO so far. It
6683 # would also be nice to check the binutils support, but we don't
6684 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6685 # warn during gcc/ subconfigure; unless you're bootstrapping with
6686 # -flto it won't be needed until after installation anyway.
6687 case $target in
6688 *-cygwin*|*-mingw*) ;;
6689 *-apple-darwin*) ;;
6690 *) if test x"$enable_lto" = x"yes"; then
6691 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6692 fi
6693 ;;
6694 esac
6695 fi
6696 default_enable_lto=no
6697 fi
6698
6481 6699
6482 6700
6483 # By default, C is the only stage 1 language. 6701 # By default, C is the only stage 1 language.
6484 stage1_languages=,c, 6702 stage1_languages=,c,
6485 6703
7179 # commands to handle both 32-bit and 64-bit objects. These flags are 7397 # commands to handle both 32-bit and 64-bit objects. These flags are
7180 # harmless if we're using GNU nm or ar. 7398 # harmless if we're using GNU nm or ar.
7181 extra_arflags_for_target=" -X32_64" 7399 extra_arflags_for_target=" -X32_64"
7182 extra_nmflags_for_target=" -B -X32_64" 7400 extra_nmflags_for_target=" -B -X32_64"
7183 ;; 7401 ;;
7184 *-*-darwin*) 7402 *-*-darwin[3-9]*)
7185 # ranlib from Darwin requires the -c flag to look at common symbols. 7403 # ranlib before Darwin10 requires the -c flag to look at common symbols.
7186 extra_ranlibflags_for_target=" -c" 7404 extra_ranlibflags_for_target=" -c"
7187 ;; 7405 ;;
7188 mips*-*-pe | sh*-*-pe | *arm-wince-pe) 7406 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
7189 target_makefile_frag="config/mt-wince" 7407 target_makefile_frag="config/mt-wince"
7190 ;; 7408 ;;
7331 # Record target_configdirs and the configure arguments for target and 7549 # Record target_configdirs and the configure arguments for target and
7332 # build configuration in Makefile. 7550 # build configuration in Makefile.
7333 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` 7551 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7334 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` 7552 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7335 7553
7554 # If we are building libgomp, bootstrap it.
7555 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7556 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7557 fi
7558
7336 # Determine whether gdb needs tk/tcl or not. 7559 # Determine whether gdb needs tk/tcl or not.
7337 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available 7560 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7338 # and in that case we want gdb to be built without tk. Ugh! 7561 # and in that case we want gdb to be built without tk. Ugh!
7339 # In fact I believe gdb is the *only* package directly dependent on tk, 7562 # In fact I believe gdb is the *only* package directly dependent on tk,
7340 # so we should be able to put the 'maybe's in unconditionally and 7563 # so we should be able to put the 'maybe's in unconditionally and
7468 if echo "int f (void) { return 0; }" > conftest.c && 7691 if echo "int f (void) { return 0; }" > conftest.c &&
7469 ${CC} -c conftest.c && 7692 ${CC} -c conftest.c &&
7470 mv conftest.o conftest.o.g0 && 7693 mv conftest.o conftest.o.g0 &&
7471 ${CC} -c -g conftest.c && 7694 ${CC} -c -g conftest.c &&
7472 mv conftest.o conftest.o.g && 7695 mv conftest.o conftest.o.g &&
7473 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g; then 7696 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7474 : 7697 :
7475 else 7698 else
7476 BUILD_CONFIG= 7699 BUILD_CONFIG=
7477 fi 7700 fi
7478 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g 7701 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7887 8110
7888 # Host module lists & subconfigure args. 8111 # Host module lists & subconfigure args.
7889 8112
7890 8113
7891 8114
8115
7892 # Target module lists & subconfigure args. 8116 # Target module lists & subconfigure args.
7893 8117
7894 8118
7895 8119
7896 # Build tools. 8120 # Build tools.
9296 fi 9520 fi
9297 test -n "$ac_cv_prog_RANLIB" && break 9521 test -n "$ac_cv_prog_RANLIB" && break
9298 done 9522 done
9299 9523
9300 if test -z "$ac_cv_prog_RANLIB" ; then 9524 if test -z "$ac_cv_prog_RANLIB" ; then
9301 RANLIB=":" 9525 RANLIB="true"
9302 fi 9526 fi
9303 9527
9304 9528
9305 9529
9306 if test -n "$STRIP"; then 9530 if test -n "$STRIP"; then
9432 fi 9656 fi
9433 test -n "$ac_cv_prog_STRIP" && break 9657 test -n "$ac_cv_prog_STRIP" && break
9434 done 9658 done
9435 9659
9436 if test -z "$ac_cv_prog_STRIP" ; then 9660 if test -z "$ac_cv_prog_STRIP" ; then
9437 STRIP=":" 9661 STRIP="true"
9438 fi 9662 fi
9439 9663
9440 9664
9441 9665
9442 if test -n "$WINDRES"; then 9666 if test -n "$WINDRES"; then