| OLD | NEW |
| 1 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | 1 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
| 2 # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 2 # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 |
| 3 # Free Software Foundation, Inc. | 3 # Free Software Foundation, Inc. |
| 4 # | 4 # |
| 5 # This file is free software; you can redistribute it and/or modify it | 5 # This file is free software; you can redistribute it and/or modify it |
| 6 # under the terms of the GNU General Public License as published by | 6 # under the terms of the GNU General Public License as published by |
| 7 # the Free Software Foundation; either version 3 of the License, or | 7 # the Free Software Foundation; either version 3 of the License, or |
| 8 # (at your option) any later version. | 8 # (at your option) any later version. |
| 9 # | 9 # |
| 10 # This program is distributed in the hope that it will be useful, but | 10 # This program is distributed in the hope that it will be useful, but |
| 11 # WITHOUT ANY WARRANTY; without even the implied warranty of | 11 # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 fi | 105 fi |
| 106 | 106 |
| 107 topsrcdir=$srcpwd | 107 topsrcdir=$srcpwd |
| 108 | 108 |
| 109 extra_host_args= | 109 extra_host_args= |
| 110 | 110 |
| 111 ### To add a new directory to the tree, first choose whether it is a target | 111 ### To add a new directory to the tree, first choose whether it is a target |
| 112 ### or a host dependent tool. Then put it into the appropriate list | 112 ### or a host dependent tool. Then put it into the appropriate list |
| 113 ### (library or tools, host or target), doing a dependency sort. | 113 ### (library or tools, host or target), doing a dependency sort. |
| 114 | 114 |
| 115 # Subdirs will be configured in the order listed in build_configdirs, | 115 # Subdirs will be configured in the order listed in build_configdirs, |
| 116 # configdirs, or target_configdirs; see the serialization section below. | 116 # configdirs, or target_configdirs; see the serialization section below. |
| 117 | 117 |
| 118 # Dependency sorting is only needed when *configuration* must be done in | 118 # Dependency sorting is only needed when *configuration* must be done in |
| 119 # a particular order. In all cases a dependency should be specified in | 119 # a particular order. In all cases a dependency should be specified in |
| 120 # the Makefile, whether or not it's implicitly specified here. | 120 # the Makefile, whether or not it's implicitly specified here. |
| 121 | 121 |
| 122 # Double entries in build_configdirs, configdirs, or target_configdirs may | 122 # Double entries in build_configdirs, configdirs, or target_configdirs may |
| 123 # cause circular dependencies and break everything horribly. | 123 # cause circular dependencies and break everything horribly. |
| 124 | 124 |
| 125 # these library is used by various programs built for the build | 125 # these library is used by various programs built for the build |
| 126 # environment | 126 # environment |
| 127 # | 127 # |
| 128 build_libs="build-libiberty" | 128 build_libs="build-libiberty" |
| 129 | 129 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 # This gets set non-empty for some net releases of packages. | 203 # This gets set non-empty for some net releases of packages. |
| 204 appdirs="" | 204 appdirs="" |
| 205 | 205 |
| 206 # Define is_cross_compiler to save on calls to 'test'. | 206 # Define is_cross_compiler to save on calls to 'test'. |
| 207 is_cross_compiler= | 207 is_cross_compiler= |
| 208 if test x"${host}" = x"${target}" ; then | 208 if test x"${host}" = x"${target}" ; then |
| 209 is_cross_compiler=no | 209 is_cross_compiler=no |
| 210 else | 210 else |
| 211 is_cross_compiler=yes | 211 is_cross_compiler=yes |
| 212 fi» | 212 fi |
| 213 | 213 |
| 214 # Find the build and target subdir names. | 214 # Find the build and target subdir names. |
| 215 GCC_TOPLEV_SUBDIRS | 215 GCC_TOPLEV_SUBDIRS |
| 216 # Be sure to cover against remnants of an in-tree build. | 216 # Be sure to cover against remnants of an in-tree build. |
| 217 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | 217 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then |
| 218 AC_MSG_ERROR([building out of tree but $srcdir contains host-${host_noncanonic
al}. | 218 AC_MSG_ERROR([building out of tree but $srcdir contains host-${host_noncanonic
al}. |
| 219 Use a pristine source tree when building in a separate tree]) | 219 Use a pristine source tree when building in a separate tree]) |
| 220 fi | 220 fi |
| 221 | 221 |
| 222 # Skipdirs are removed silently. | 222 # Skipdirs are removed silently. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 238 noconfigdirs="$noconfigdirs gas" | 238 noconfigdirs="$noconfigdirs gas" |
| 239 fi | 239 fi |
| 240 | 240 |
| 241 use_included_zlib= | 241 use_included_zlib= |
| 242 # Make sure we don't let ZLIB be added if we didn't want it. | 242 # Make sure we don't let ZLIB be added if we didn't want it. |
| 243 if test x$with_system_zlib = xyes ; then | 243 if test x$with_system_zlib = xyes ; then |
| 244 use_included_zlib=no | 244 use_included_zlib=no |
| 245 noconfigdirs="$noconfigdirs zlib" | 245 noconfigdirs="$noconfigdirs zlib" |
| 246 fi | 246 fi |
| 247 | 247 |
| 248 # some tools are so dependent upon X11 that if we're not building with X, | 248 # some tools are so dependent upon X11 that if we're not building with X, |
| 249 # it's not even worth trying to configure, much less build, that tool. | 249 # it's not even worth trying to configure, much less build, that tool. |
| 250 | 250 |
| 251 case ${with_x} in | 251 case ${with_x} in |
| 252 yes | "") ;; # the default value for this tree is that X11 is available | 252 yes | "") ;; # the default value for this tree is that X11 is available |
| 253 no) | 253 no) |
| 254 skipdirs="${skipdirs} tk itcl libgui" | 254 skipdirs="${skipdirs} tk itcl libgui" |
| 255 # We won't be able to build gdbtk without X. | 255 # We won't be able to build gdbtk without X. |
| 256 enable_gdbtk=no | 256 enable_gdbtk=no |
| 257 ;; | 257 ;; |
| 258 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | 258 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; |
| 259 esac | 259 esac |
| 260 | 260 |
| 261 # Some are only suitable for cross toolchains. | 261 # Some are only suitable for cross toolchains. |
| 262 # Remove these if host=target. | 262 # Remove these if host=target. |
| 263 cross_only="target-libgloss target-newlib target-opcodes" | 263 cross_only="target-libgloss target-newlib target-opcodes" |
| 264 | 264 |
| 265 case $is_cross_compiler in | 265 case $is_cross_compiler in |
| 266 no) skipdirs="${skipdirs} ${cross_only}" ;; | 266 no) skipdirs="${skipdirs} ${cross_only}" ;; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 ENABLE_GOLD=$enableval, | 306 ENABLE_GOLD=$enableval, |
| 307 ENABLE_GOLD=no) | 307 ENABLE_GOLD=no) |
| 308 case "${ENABLE_GOLD}" in | 308 case "${ENABLE_GOLD}" in |
| 309 yes|default) | 309 yes|default) |
| 310 # Check for ELF target. | 310 # Check for ELF target. |
| 311 is_elf=no | 311 is_elf=no |
| 312 case "${target}" in | 312 case "${target}" in |
| 313 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | 313 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ |
| 314 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | 314 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
| 315 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ | 315 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
| 316 | *-*-solaris2* | *-*-nto*) | 316 | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
| 317 case "${target}" in | 317 case "${target}" in |
| 318 *-*-linux*aout* | *-*-linux*oldld*) | 318 *-*-linux*aout* | *-*-linux*oldld*) |
| 319 ;; | 319 ;; |
| 320 *) | 320 *) |
| 321 is_elf=yes | 321 is_elf=yes |
| 322 ;; | 322 ;; |
| 323 esac | 323 esac |
| 324 esac | 324 esac |
| 325 | 325 |
| 326 if test "$is_elf" = "yes"; then | 326 if test "$is_elf" = "yes"; then |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 372 |
| 373 case "${host}" in | 373 case "${host}" in |
| 374 *-cygwin*) | 374 *-cygwin*) |
| 375 configdirs="$configdirs libtermcap" ;; | 375 configdirs="$configdirs libtermcap" ;; |
| 376 esac | 376 esac |
| 377 | 377 |
| 378 # A target can indicate whether a language isn't supported for some reason. | 378 # A target can indicate whether a language isn't supported for some reason. |
| 379 # Only spaces may be used in this macro; not newlines or tabs. | 379 # Only spaces may be used in this macro; not newlines or tabs. |
| 380 unsupported_languages= | 380 unsupported_languages= |
| 381 | 381 |
| 382 # Remove more programs from consideration, based on the host or | 382 # Remove more programs from consideration, based on the host or |
| 383 # target this usually means that a port of the program doesn't | 383 # target this usually means that a port of the program doesn't |
| 384 # exist yet. | 384 # exist yet. |
| 385 | 385 |
| 386 case "${host}" in | 386 case "${host}" in |
| 387 i[[3456789]]86-*-msdosdjgpp*) | 387 i[[3456789]]86-*-msdosdjgpp*) |
| 388 noconfigdirs="$noconfigdirs tcl tk itcl" | 388 noconfigdirs="$noconfigdirs tcl tk itcl" |
| 389 ;; | 389 ;; |
| 390 esac | 390 esac |
| 391 | 391 |
| 392 | 392 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 fi | 476 fi |
| 477 | 477 |
| 478 # Disable libgomp on non POSIX hosted systems. | 478 # Disable libgomp on non POSIX hosted systems. |
| 479 if test x$enable_libgomp = x ; then | 479 if test x$enable_libgomp = x ; then |
| 480 # Enable libgomp by default on hosted POSIX systems. | 480 # Enable libgomp by default on hosted POSIX systems. |
| 481 case "${target}" in | 481 case "${target}" in |
| 482 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | 482 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
| 483 ;; | 483 ;; |
| 484 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) | 484 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
| 485 ;; | 485 ;; |
| 486 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*) | 486 *-*-solaris2* | *-*-hpux11*) |
| 487 ;; | 487 ;; |
| 488 *-*-darwin* | *-*-aix*) | 488 *-*-darwin* | *-*-aix*) |
| 489 ;; | 489 ;; |
| 490 *) | 490 *) |
| 491 noconfigdirs="$noconfigdirs target-libgomp" | 491 noconfigdirs="$noconfigdirs target-libgomp" |
| 492 ;; | 492 ;; |
| 493 esac | 493 esac |
| 494 fi | 494 fi |
| 495 | 495 |
| 496 # Disable libitm on unsupported systems. | 496 # Disable libitm on unsupported systems. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 512 # Disable libssp for some systems. | 512 # Disable libssp for some systems. |
| 513 case "${target}" in | 513 case "${target}" in |
| 514 avr-*-*) | 514 avr-*-*) |
| 515 # No hosted I/O support. | 515 # No hosted I/O support. |
| 516 noconfigdirs="$noconfigdirs target-libssp" | 516 noconfigdirs="$noconfigdirs target-libssp" |
| 517 ;; | 517 ;; |
| 518 powerpc-*-aix* | rs6000-*-aix*) | 518 powerpc-*-aix* | rs6000-*-aix*) |
| 519 noconfigdirs="$noconfigdirs target-libssp" | 519 noconfigdirs="$noconfigdirs target-libssp" |
| 520 ;; | 520 ;; |
| 521 rl78-*-*) | 521 rl78-*-*) |
| 522 # Dereferencing -1 is a compile-time error | 522 # libssp uses a misaligned load to trigger a fault, but the RL78 |
| 523 # doesn't fault for those - instead, it gives a build-time error |
| 524 # for explicit misaligned loads. |
| 523 noconfigdirs="$noconfigdirs target-libssp" | 525 noconfigdirs="$noconfigdirs target-libssp" |
| 524 ;; | 526 ;; |
| 525 esac | 527 esac |
| 526 | 528 |
| 527 # Disable libstdc++-v3 for some systems. | 529 # Disable libstdc++-v3 for some systems. |
| 528 case "${target}" in | 530 case "${target}" in |
| 529 *-*-vxworks*) | 531 *-*-vxworks*) |
| 530 # VxWorks uses the Dinkumware C++ library. | 532 # VxWorks uses the Dinkumware C++ library. |
| 531 noconfigdirs="$noconfigdirs target-libstdc++-v3" | 533 noconfigdirs="$noconfigdirs target-libstdc++-v3" |
| 532 ;; | 534 ;; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 562 hppa*-*-hpux*) | 564 hppa*-*-hpux*) |
| 563 ;; | 565 ;; |
| 564 i?86-*-*) | 566 i?86-*-*) |
| 565 ;; | 567 ;; |
| 566 ia64*-*-*) | 568 ia64*-*-*) |
| 567 ;; | 569 ;; |
| 568 m32r*-*-*) | 570 m32r*-*-*) |
| 569 ;; | 571 ;; |
| 570 m68k-*-*) | 572 m68k-*-*) |
| 571 ;; | 573 ;; |
| 572 mips-sgi-irix6.* | mips*-*-rtems*) | 574 mips*-*-rtems*) |
| 573 ;; | 575 ;; |
| 574 mips*-*-linux*) | 576 mips*-*-linux*) |
| 575 ;; | 577 ;; |
| 576 powerpc*-*-linux*) | 578 powerpc*-*-linux*) |
| 577 ;; | 579 ;; |
| 578 powerpc-*-darwin*) | 580 powerpc-*-darwin*) |
| 579 ;; | 581 ;; |
| 580 powerpc-*-aix* | rs6000-*-aix*) | 582 powerpc-*-aix* | rs6000-*-aix*) |
| 581 ;; | 583 ;; |
| 582 powerpc-*-freebsd*) | 584 powerpc-*-freebsd*) |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 mmix-*-*) | 680 mmix-*-*) |
| 679 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | 681 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" |
| 680 ;; | 682 ;; |
| 681 powerpc-*-aix*) | 683 powerpc-*-aix*) |
| 682 # copied from rs6000-*-* entry | 684 # copied from rs6000-*-* entry |
| 683 noconfigdirs="$noconfigdirs ${libgcj}" | 685 noconfigdirs="$noconfigdirs ${libgcj}" |
| 684 ;; | 686 ;; |
| 685 rs6000-*-aix*) | 687 rs6000-*-aix*) |
| 686 noconfigdirs="$noconfigdirs ${libgcj}" | 688 noconfigdirs="$noconfigdirs ${libgcj}" |
| 687 ;; | 689 ;; |
| 688 mips*-*-irix6*) | |
| 689 # Linking libjava exceeds command-line length limits on at least | |
| 690 # IRIX 6.2, but not on IRIX 6.5. | |
| 691 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
| 692 # <oldham@codesourcery.com> | |
| 693 noconfigdirs="$noconfigdirs ${libgcj}" | |
| 694 ;; | |
| 695 *-*-lynxos*) | 690 *-*-lynxos*) |
| 696 noconfigdirs="$noconfigdirs ${libgcj}" | 691 noconfigdirs="$noconfigdirs ${libgcj}" |
| 697 ;; | 692 ;; |
| 698 esac | 693 esac |
| 699 | 694 |
| 700 # Default libgloss CPU subdirectory. | 695 # Default libgloss CPU subdirectory. |
| 701 libgloss_dir="$target_cpu" | 696 libgloss_dir="$target_cpu" |
| 702 | 697 |
| 703 case "${target}" in | 698 case "${target}" in |
| 704 sh*-*-pe|mips*-*-pe|*arm-wince-pe) | 699 sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
| 705 libgloss_dir=wince | 700 libgloss_dir=wince |
| 706 ;; | 701 ;; |
| 707 arm*-*-*) | 702 arm*-*-*) |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 noconfigdirs="$noconfigdirs target-newlib target-libgloss" | 767 noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
| 773 ;; | 768 ;; |
| 774 *-*-freebsd*) | 769 *-*-freebsd*) |
| 775 noconfigdirs="$noconfigdirs target-newlib target-libgloss" | 770 noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
| 776 ;; | 771 ;; |
| 777 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | 772 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
| 778 noconfigdirs="$noconfigdirs target-newlib target-libgloss" | 773 noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
| 779 ;; | 774 ;; |
| 780 *-*-lynxos*) | 775 *-*-lynxos*) |
| 781 noconfigdirs="$noconfigdirs target-newlib target-libgloss" | 776 noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
| 782 ;; | 777 ;; |
| 783 *-*-mingw*) | 778 *-*-mingw*) |
| 784 noconfigdirs="$noconfigdirs target-newlib target-libgloss" | 779 noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
| 785 ;; | 780 ;; |
| 786 *-*-netbsd*) | 781 *-*-netbsd*) |
| 787 noconfigdirs="$noconfigdirs target-newlib target-libgloss" | 782 noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
| 788 ;; | 783 ;; |
| 789 *-*-netware*) | 784 *-*-netware*) |
| 790 noconfigdirs="$noconfigdirs target-newlib target-libgloss" | 785 noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
| 791 ;; | 786 ;; |
| 792 *-*-tpf*) | 787 *-*-tpf*) |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 ;; | 917 ;; |
| 923 ia64*-*-elf*) | 918 ia64*-*-elf*) |
| 924 # No gdb support yet. | 919 # No gdb support yet. |
| 925 noconfigdirs="$noconfigdirs readline libgui itcl gdb" | 920 noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
| 926 ;; | 921 ;; |
| 927 ia64*-**-hpux*) | 922 ia64*-**-hpux*) |
| 928 # No ld support yet. | 923 # No ld support yet. |
| 929 noconfigdirs="$noconfigdirs libgui itcl ld" | 924 noconfigdirs="$noconfigdirs libgui itcl ld" |
| 930 ;; | 925 ;; |
| 931 ia64*-*-*vms*) | 926 ia64*-*-*vms*) |
| 932 # No gdb or ld support yet. | 927 noconfigdirs="$noconfigdirs libgui itcl" |
| 933 noconfigdirs="$noconfigdirs readline libgui itcl gdb ld" | |
| 934 ;; | 928 ;; |
| 935 i[[3456789]]86-w64-mingw*) | 929 i[[3456789]]86-w64-mingw*) |
| 936 ;; | 930 ;; |
| 937 i[[3456789]]86-*-mingw*) | 931 i[[3456789]]86-*-mingw*) |
| 938 target_configdirs="$target_configdirs target-winsup" | 932 target_configdirs="$target_configdirs target-winsup" |
| 939 ;; | 933 ;; |
| 940 *-*-cygwin*) | 934 *-*-cygwin*) |
| 941 target_configdirs="$target_configdirs target-libtermcap target-winsup" | 935 target_configdirs="$target_configdirs target-libtermcap target-winsup" |
| 942 noconfigdirs="$noconfigdirs target-libgloss" | 936 noconfigdirs="$noconfigdirs target-libgloss" |
| 943 # always build newlib if winsup directory is present. | 937 # always build newlib if winsup directory is present. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 ;; | 1071 ;; |
| 1078 *-interix*) | 1072 *-interix*) |
| 1079 host_makefile_frag="config/mh-interix" | 1073 host_makefile_frag="config/mh-interix" |
| 1080 ;; | 1074 ;; |
| 1081 hppa*-hp-hpux10*) | 1075 hppa*-hp-hpux10*) |
| 1082 host_makefile_frag="config/mh-pa-hpux10" | 1076 host_makefile_frag="config/mh-pa-hpux10" |
| 1083 ;; | 1077 ;; |
| 1084 hppa*-hp-hpux*) | 1078 hppa*-hp-hpux*) |
| 1085 host_makefile_frag="config/mh-pa" | 1079 host_makefile_frag="config/mh-pa" |
| 1086 ;; | 1080 ;; |
| 1087 hppa*-*)» | 1081 hppa*-*) |
| 1088 host_makefile_frag="config/mh-pa" | 1082 host_makefile_frag="config/mh-pa" |
| 1089 ;; | 1083 ;; |
| 1090 *-*-darwin*) | 1084 *-*-darwin*) |
| 1091 host_makefile_frag="config/mh-darwin" | 1085 host_makefile_frag="config/mh-darwin" |
| 1092 ;; | 1086 ;; |
| 1093 powerpc-*-aix*) | 1087 powerpc-*-aix*) |
| 1094 host_makefile_frag="config/mh-ppc-aix" | 1088 host_makefile_frag="config/mh-ppc-aix" |
| 1095 ;; | 1089 ;; |
| 1096 rs6000-*-aix*) | 1090 rs6000-*-aix*) |
| 1097 host_makefile_frag="config/mh-ppc-aix" | 1091 host_makefile_frag="config/mh-ppc-aix" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1276 gmplibs="-L$with_mpfr/lib $gmplibs" | 1270 gmplibs="-L$with_mpfr/lib $gmplibs" |
| 1277 gmpinc="-I$with_mpfr/include $gmpinc" | 1271 gmpinc="-I$with_mpfr/include $gmpinc" |
| 1278 fi | 1272 fi |
| 1279 if test "x$with_mpfr_include" != x; then | 1273 if test "x$with_mpfr_include" != x; then |
| 1280 gmpinc="-I$with_mpfr_include $gmpinc" | 1274 gmpinc="-I$with_mpfr_include $gmpinc" |
| 1281 fi | 1275 fi |
| 1282 if test "x$with_mpfr_lib" != x; then | 1276 if test "x$with_mpfr_lib" != x; then |
| 1283 gmplibs="-L$with_mpfr_lib $gmplibs" | 1277 gmplibs="-L$with_mpfr_lib $gmplibs" |
| 1284 fi | 1278 fi |
| 1285 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/m
pfr; then | 1279 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/m
pfr; then |
| 1286 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | 1280 # MPFR v3.1.0 moved the sources into a src sub-directory. |
| 1287 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | 1281 if test -d ${srcdir}/mpfr/src; then |
| 1288 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$
$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | 1282 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
| 1283 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" |
| 1284 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr
-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" |
| 1285 else |
| 1286 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" |
| 1287 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" |
| 1288 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib
=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" |
| 1289 fi |
| 1289 # Do not test the mpfr version. Assume that it is sufficient, since | 1290 # Do not test the mpfr version. Assume that it is sufficient, since |
| 1290 # it is in the source tree, and the library has not been built yet | 1291 # it is in the source tree, and the library has not been built yet |
| 1291 # but it would be included on the link line in the version check below | 1292 # but it would be included on the link line in the version check below |
| 1292 # hence making the test fail. | 1293 # hence making the test fail. |
| 1293 have_gmp=yes | 1294 have_gmp=yes |
| 1294 fi | 1295 fi |
| 1295 | 1296 |
| 1296 # Specify a location for gmp | 1297 # Specify a location for gmp |
| 1297 AC_ARG_WITH(gmp-dir, | 1298 AC_ARG_WITH(gmp-dir, |
| 1298 [AS_HELP_STRING([--with-gmp-dir=PATH], [this option has been REMOVED])], | 1299 [AS_HELP_STRING([--with-gmp-dir=PATH], [this option has been REMOVED])], |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1773 enabled_target_libs= | 1774 enabled_target_libs= |
| 1774 disabled_target_libs= | 1775 disabled_target_libs= |
| 1775 | 1776 |
| 1776 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | 1777 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
| 1777 case ${lang_frag} in | 1778 case ${lang_frag} in |
| 1778 ..) ;; | 1779 ..) ;; |
| 1779 # The odd quoting in the next line works around | 1780 # The odd quoting in the next line works around |
| 1780 # an apparent bug in bash 1.12 on linux. | 1781 # an apparent bug in bash 1.12 on linux. |
| 1781 ${srcdir}/gcc/[[*]]/config-lang.in) ;; | 1782 ${srcdir}/gcc/[[*]]/config-lang.in) ;; |
| 1782 *) | 1783 *) |
| 1783 # From the config-lang.in, get $language, $target_libs, | 1784 # From the config-lang.in, get $language, $target_libs, |
| 1784 # $lang_dirs, $boot_language, and $build_by_default | 1785 # $lang_dirs, $boot_language, and $build_by_default |
| 1785 language= | 1786 language= |
| 1786 target_libs= | 1787 target_libs= |
| 1787 lang_dirs= | 1788 lang_dirs= |
| 1788 subdir_requires= | 1789 subdir_requires= |
| 1789 boot_language=no | 1790 boot_language=no |
| 1790 build_by_default=yes | 1791 build_by_default=yes |
| 1791 . ${lang_frag} | 1792 . ${lang_frag} |
| 1792 if test x${language} = x; then | 1793 if test x${language} = x; then |
| 1793 echo "${lang_frag} doesn't set \$language." 1>&2 | 1794 echo "${lang_frag} doesn't set \$language." 1>&2 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2018 fi | 2019 fi |
| 2019 fi | 2020 fi |
| 2020 done | 2021 done |
| 2021 | 2022 |
| 2022 # Quietly strip out all directories which aren't configurable in this tree. | 2023 # Quietly strip out all directories which aren't configurable in this tree. |
| 2023 # This relies on all configurable subdirectories being autoconfiscated, which | 2024 # This relies on all configurable subdirectories being autoconfiscated, which |
| 2024 # is now the case. | 2025 # is now the case. |
| 2025 build_configdirs_all="$build_configdirs" | 2026 build_configdirs_all="$build_configdirs" |
| 2026 build_configdirs= | 2027 build_configdirs= |
| 2027 for i in ${build_configdirs_all} ; do | 2028 for i in ${build_configdirs_all} ; do |
| 2028 j=`echo $i | sed -e s/build-//g` | 2029 j=`echo $i | sed -e s/build-//g` |
| 2029 if test -f ${srcdir}/$j/configure ; then | 2030 if test -f ${srcdir}/$j/configure ; then |
| 2030 build_configdirs="${build_configdirs} $i" | 2031 build_configdirs="${build_configdirs} $i" |
| 2031 fi | 2032 fi |
| 2032 done | 2033 done |
| 2033 | 2034 |
| 2034 configdirs_all="$configdirs" | 2035 configdirs_all="$configdirs" |
| 2035 configdirs= | 2036 configdirs= |
| 2036 for i in ${configdirs_all} ; do | 2037 for i in ${configdirs_all} ; do |
| 2037 if test -f ${srcdir}/$i/configure ; then | 2038 if test -f ${srcdir}/$i/configure ; then |
| 2038 configdirs="${configdirs} $i" | 2039 configdirs="${configdirs} $i" |
| 2039 fi | 2040 fi |
| 2040 done | 2041 done |
| 2041 | 2042 |
| 2042 target_configdirs_all="$target_configdirs" | 2043 target_configdirs_all="$target_configdirs" |
| 2043 target_configdirs= | 2044 target_configdirs= |
| 2044 for i in ${target_configdirs_all} ; do | 2045 for i in ${target_configdirs_all} ; do |
| 2045 j=`echo $i | sed -e s/target-//g` | 2046 j=`echo $i | sed -e s/target-//g` |
| 2046 if test -f ${srcdir}/$j/configure ; then | 2047 if test -f ${srcdir}/$j/configure ; then |
| 2047 target_configdirs="${target_configdirs} $i" | 2048 target_configdirs="${target_configdirs} $i" |
| 2048 fi | 2049 fi |
| 2049 done | 2050 done |
| 2050 | 2051 |
| 2051 # Produce a warning message for the subdirs we can't configure. | 2052 # Produce a warning message for the subdirs we can't configure. |
| 2052 # This isn't especially interesting in the Cygnus tree, but in the individual | 2053 # This isn't especially interesting in the Cygnus tree, but in the individual |
| 2053 # FSF releases, it's important to let people know when their machine isn't | 2054 # FSF releases, it's important to let people know when their machine isn't |
| 2054 # supported by the one or two programs in a package. | 2055 # supported by the one or two programs in a package. |
| 2055 | 2056 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 2086 case "$host" in | 2087 case "$host" in |
| 2087 *msdosdjgpp*) | 2088 *msdosdjgpp*) |
| 2088 enable_gdbtk=no ;; | 2089 enable_gdbtk=no ;; |
| 2089 esac | 2090 esac |
| 2090 | 2091 |
| 2091 # To find our prefix, in gcc_cv_tool_prefix. | 2092 # To find our prefix, in gcc_cv_tool_prefix. |
| 2092 ACX_TOOL_DIRS | 2093 ACX_TOOL_DIRS |
| 2093 | 2094 |
| 2094 copy_dirs= | 2095 copy_dirs= |
| 2095 | 2096 |
| 2096 AC_ARG_WITH([build-sysroot], | 2097 AC_ARG_WITH([build-sysroot], |
| 2097 [AS_HELP_STRING([--with-build-sysroot=SYSROOT], | 2098 [AS_HELP_STRING([--with-build-sysroot=SYSROOT], |
| 2098 [use sysroot as the system root during the build])], | 2099 [use sysroot as the system root during the build])], |
| 2099 [if test x"$withval" != x ; then | 2100 [if test x"$withval" != x ; then |
| 2100 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" | 2101 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
| 2101 fi], | 2102 fi], |
| 2102 [SYSROOT_CFLAGS_FOR_TARGET=]) | 2103 [SYSROOT_CFLAGS_FOR_TARGET=]) |
| 2103 AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET) | 2104 AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET) |
| 2104 | 2105 |
| 2105 AC_ARG_WITH([debug-prefix-map], | 2106 AC_ARG_WITH([debug-prefix-map], |
| 2106 [AS_HELP_STRING([--with-debug-prefix-map='A=B C=D ...'], | 2107 [AS_HELP_STRING([--with-debug-prefix-map='A=B C=D ...'], |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2117 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS | 2118 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
| 2118 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | 2119 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS |
| 2119 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | 2120 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). |
| 2120 # We want to ensure that TARGET libraries (which we know are built with | 2121 # We want to ensure that TARGET libraries (which we know are built with |
| 2121 # gcc) are built with "-O2 -g", so include those options when setting | 2122 # gcc) are built with "-O2 -g", so include those options when setting |
| 2122 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | 2123 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. |
| 2123 if test "x$CFLAGS_FOR_TARGET" = x; then | 2124 if test "x$CFLAGS_FOR_TARGET" = x; then |
| 2124 CFLAGS_FOR_TARGET=$CFLAGS | 2125 CFLAGS_FOR_TARGET=$CFLAGS |
| 2125 case " $CFLAGS " in | 2126 case " $CFLAGS " in |
| 2126 *" -O2 "*) ;; | 2127 *" -O2 "*) ;; |
| 2127 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; | 2128 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; |
| 2128 esac | 2129 esac |
| 2129 case " $CFLAGS " in | 2130 case " $CFLAGS " in |
| 2130 *" -g "* | *" -g3 "*) ;; | 2131 *" -g "* | *" -g3 "*) ;; |
| 2131 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; | 2132 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; |
| 2132 esac | 2133 esac |
| 2133 fi | 2134 fi |
| 2134 AC_SUBST(CFLAGS_FOR_TARGET) | 2135 AC_SUBST(CFLAGS_FOR_TARGET) |
| 2135 | 2136 |
| 2136 if test "x$CXXFLAGS_FOR_TARGET" = x; then | 2137 if test "x$CXXFLAGS_FOR_TARGET" = x; then |
| 2137 CXXFLAGS_FOR_TARGET=$CXXFLAGS | 2138 CXXFLAGS_FOR_TARGET=$CXXFLAGS |
| 2138 case " $CXXFLAGS " in | 2139 case " $CXXFLAGS " in |
| 2139 *" -O2 "*) ;; | 2140 *" -O2 "*) ;; |
| 2140 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; | 2141 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; |
| 2141 esac | 2142 esac |
| 2142 case " $CXXFLAGS " in | 2143 case " $CXXFLAGS " in |
| 2143 *" -g "* | *" -g3 "*) ;; | 2144 *" -g "* | *" -g3 "*) ;; |
| 2144 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; | 2145 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; |
| 2145 esac | 2146 esac |
| 2146 fi | 2147 fi |
| 2147 AC_SUBST(CXXFLAGS_FOR_TARGET) | 2148 AC_SUBST(CXXFLAGS_FOR_TARGET) |
| 2148 | 2149 |
| 2149 AC_SUBST(LDFLAGS_FOR_TARGET) | 2150 AC_SUBST(LDFLAGS_FOR_TARGET) |
| 2150 | 2151 |
| 2151 # Handle --with-headers=XXX. If the value is not "yes", the contents of | 2152 # Handle --with-headers=XXX. If the value is not "yes", the contents of |
| 2152 # the named directory are copied to $(tooldir)/sys-include. | 2153 # the named directory are copied to $(tooldir)/sys-include. |
| 2153 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | 2154 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then |
| 2154 if test x${is_cross_compiler} = xno ; then | 2155 if test x${is_cross_compiler} = xno ; then |
| (...skipping 22 matching lines...) Expand all Loading... |
| 2177 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" | 2178 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
| 2178 done | 2179 done |
| 2179 fi | 2180 fi |
| 2180 fi | 2181 fi |
| 2181 | 2182 |
| 2182 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. | 2183 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
| 2183 # | 2184 # |
| 2184 # This is done by determining whether or not the appropriate directory | 2185 # This is done by determining whether or not the appropriate directory |
| 2185 # is available, and by checking whether or not specific configurations | 2186 # is available, and by checking whether or not specific configurations |
| 2186 # have requested that this magic not happen. | 2187 # have requested that this magic not happen. |
| 2187 # | 2188 # |
| 2188 # The command line options always override the explicit settings in | 2189 # The command line options always override the explicit settings in |
| 2189 # configure.in, and the settings in configure.in override this magic. | 2190 # configure.in, and the settings in configure.in override this magic. |
| 2190 # | 2191 # |
| 2191 # If the default for a toolchain is to use GNU as and ld, and you don't | 2192 # If the default for a toolchain is to use GNU as and ld, and you don't |
| 2192 # want to do that, then you should use the --without-gnu-as and | 2193 # want to do that, then you should use the --without-gnu-as and |
| 2193 # --without-gnu-ld options for the configure script. Similarly, if | 2194 # --without-gnu-ld options for the configure script. Similarly, if |
| 2194 # the default is to use the included zlib and you don't want to do that, | 2195 # the default is to use the included zlib and you don't want to do that, |
| 2195 # you should use the --with-system-zlib option for the configure script. | 2196 # you should use the --with-system-zlib option for the configure script. |
| 2196 | 2197 |
| 2197 if test x${use_gnu_as} = x && | 2198 if test x${use_gnu_as} = x && |
| 2198 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | 2199 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then |
| 2199 with_gnu_as=yes | 2200 with_gnu_as=yes |
| 2200 extra_host_args="$extra_host_args --with-gnu-as" | 2201 extra_host_args="$extra_host_args --with-gnu-as" |
| 2201 fi | 2202 fi |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2282 mipsisa*-*-elfoabi*) | 2283 mipsisa*-*-elfoabi*) |
| 2283 target_makefile_frag="config/mt-mips-elfoabi" | 2284 target_makefile_frag="config/mt-mips-elfoabi" |
| 2284 ;; | 2285 ;; |
| 2285 mips*-*-*linux* | mips*-*-gnu*) | 2286 mips*-*-*linux* | mips*-*-gnu*) |
| 2286 target_makefile_frag="config/mt-mips-gnu" | 2287 target_makefile_frag="config/mt-mips-gnu" |
| 2287 ;; | 2288 ;; |
| 2288 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | 2289 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
| 2289 target_makefile_frag="config/mt-gnu" | 2290 target_makefile_frag="config/mt-gnu" |
| 2290 ;; | 2291 ;; |
| 2291 *-*-aix4.[[3456789]]* | *-*-aix[[56789]].*) | 2292 *-*-aix4.[[3456789]]* | *-*-aix[[56789]].*) |
| 2292 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm | 2293 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
| 2293 # commands to handle both 32-bit and 64-bit objects. These flags are | 2294 # commands to handle both 32-bit and 64-bit objects. These flags are |
| 2294 # harmless if we're using GNU nm or ar. | 2295 # harmless if we're using GNU nm or ar. |
| 2295 extra_arflags_for_target=" -X32_64" | 2296 extra_arflags_for_target=" -X32_64" |
| 2296 extra_nmflags_for_target=" -B -X32_64" | 2297 extra_nmflags_for_target=" -B -X32_64" |
| 2297 ;; | 2298 ;; |
| 2298 *-*-darwin[[3-9]]*) | 2299 *-*-darwin[[3-9]]*) |
| 2299 # ranlib before Darwin10 requires the -c flag to look at common symbols. | 2300 # ranlib before Darwin10 requires the -c flag to look at common symbols. |
| 2300 extra_ranlibflags_for_target=" -c" | 2301 extra_ranlibflags_for_target=" -c" |
| 2301 ;; | 2302 ;; |
| 2302 esac | 2303 esac |
| (...skipping 21 matching lines...) Expand all Loading... |
| 2324 :m32r-* | :d10v-* | :fr30-*) | 2325 :m32r-* | :d10v-* | :fr30-*) |
| 2325 ospace_frag="config/mt-ospace" | 2326 ospace_frag="config/mt-ospace" |
| 2326 ;; | 2327 ;; |
| 2327 no:* | :*) | 2328 no:* | :*) |
| 2328 ;; | 2329 ;; |
| 2329 *) | 2330 *) |
| 2330 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspa
ce flag; ignored" 1>&2 | 2331 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspa
ce flag; ignored" 1>&2 |
| 2331 ;; | 2332 ;; |
| 2332 esac | 2333 esac |
| 2333 | 2334 |
| 2334 # Default to using --with-stabs for certain targets. | |
| 2335 if test x${with_stabs} = x ; then | |
| 2336 case "${target}" in | |
| 2337 mips*-*-irix[[56]]*) | |
| 2338 ;; | |
| 2339 mips*-*-* | alpha*-*-osf*) | |
| 2340 with_stabs=yes; | |
| 2341 extra_host_args="${extra_host_args} --with-stabs" | |
| 2342 ;; | |
| 2343 esac | |
| 2344 fi | |
| 2345 | |
| 2346 # Some systems (e.g., one of the i386-aix systems the gas testers are | 2335 # Some systems (e.g., one of the i386-aix systems the gas testers are |
| 2347 # using) don't handle "\$" correctly, so don't use it here. | 2336 # using) don't handle "\$" correctly, so don't use it here. |
| 2348 tooldir='${exec_prefix}'/${target_noncanonical} | 2337 tooldir='${exec_prefix}'/${target_noncanonical} |
| 2349 build_tooldir=${tooldir} | 2338 build_tooldir=${tooldir} |
| 2350 | 2339 |
| 2351 # Create a .gdbinit file which runs the one in srcdir | 2340 # Create a .gdbinit file which runs the one in srcdir |
| 2352 # and tells GDB to look there for source files. | 2341 # and tells GDB to look there for source files. |
| 2353 | 2342 |
| 2354 if test -r ${srcdir}/.gdbinit ; then | 2343 if test -r ${srcdir}/.gdbinit ; then |
| 2355 case ${srcdir} in | 2344 case ${srcdir} in |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2368 # can't, we are probably in trouble. We don't care whether we can run the | 2357 # can't, we are probably in trouble. We don't care whether we can run the |
| 2369 # executable--we might be using a cross compiler--we only care whether it | 2358 # executable--we might be using a cross compiler--we only care whether it |
| 2370 # can be created. At this point the main configure script has set CC. | 2359 # can be created. At this point the main configure script has set CC. |
| 2371 we_are_ok=no | 2360 we_are_ok=no |
| 2372 echo "int main () { return 0; }" > conftest.c | 2361 echo "int main () { return 0; }" > conftest.c |
| 2373 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | 2362 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c |
| 2374 if test $? = 0 ; then | 2363 if test $? = 0 ; then |
| 2375 if test -s conftest || test -s conftest.exe ; then | 2364 if test -s conftest || test -s conftest.exe ; then |
| 2376 we_are_ok=yes | 2365 we_are_ok=yes |
| 2377 fi | 2366 fi |
| 2378 fi | 2367 fi |
| 2379 case $we_are_ok in | 2368 case $we_are_ok in |
| 2380 no) | 2369 no) |
| 2381 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAG
S} conftest.c' failed." | 2370 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAG
S} conftest.c' failed." |
| 2382 echo 1>&2 "*** You must set the environment variable CC to a working compile
r." | 2371 echo 1>&2 "*** You must set the environment variable CC to a working compile
r." |
| 2383 rm -f conftest* | 2372 rm -f conftest* |
| 2384 exit 1 | 2373 exit 1 |
| 2385 ;; | 2374 ;; |
| 2386 esac | 2375 esac |
| 2387 rm -f conftest* | 2376 rm -f conftest* |
| 2388 | 2377 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2738 esac | 2727 esac |
| 2739 done | 2728 done |
| 2740 # Remove the initial space we just introduced and, as these will be | 2729 # Remove the initial space we just introduced and, as these will be |
| 2741 # expanded by make, quote '$'. | 2730 # expanded by make, quote '$'. |
| 2742 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | 2731 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` |
| 2743 | 2732 |
| 2744 # Add in --program-transform-name, after --program-prefix and | 2733 # Add in --program-transform-name, after --program-prefix and |
| 2745 # --program-suffix have been applied to it. Autoconf has already | 2734 # --program-suffix have been applied to it. Autoconf has already |
| 2746 # doubled dollar signs and backslashes in program_transform_name; we want | 2735 # doubled dollar signs and backslashes in program_transform_name; we want |
| 2747 # the backslashes un-doubled, and then the entire thing wrapped in single | 2736 # the backslashes un-doubled, and then the entire thing wrapped in single |
| 2748 # quotes, because this will be expanded first by make and then by the shell. | 2737 # quotes, because this will be expanded first by make and then by the shell. |
| 2749 # Also, because we want to override the logic in subdir configure scripts to | 2738 # Also, because we want to override the logic in subdir configure scripts to |
| 2750 # choose program_transform_name, replace any s,x,x, with s,y,y,. | 2739 # choose program_transform_name, replace any s,x,x, with s,y,y,. |
| 2751 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftest
sed.out | 2740 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftest
sed.out |
| 2752 ${program_transform_name} | 2741 ${program_transform_name} |
| 2753 EOF_SED | 2742 EOF_SED |
| 2754 gcc_transform_name=`cat conftestsed.out` | 2743 gcc_transform_name=`cat conftestsed.out` |
| 2755 rm -f conftestsed.out | 2744 rm -f conftestsed.out |
| 2756 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | 2745 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" |
| 2757 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" | 2746 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
| 2758 if test "$silent" = yes; then | 2747 if test "$silent" = yes; then |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3063 NCN_STRICT_CHECK_TOOLS(WINDMC, windmc) | 3052 NCN_STRICT_CHECK_TOOLS(WINDMC, windmc) |
| 3064 NCN_STRICT_CHECK_TOOLS(OBJCOPY, objcopy) | 3053 NCN_STRICT_CHECK_TOOLS(OBJCOPY, objcopy) |
| 3065 NCN_STRICT_CHECK_TOOLS(OBJDUMP, objdump) | 3054 NCN_STRICT_CHECK_TOOLS(OBJDUMP, objdump) |
| 3066 NCN_STRICT_CHECK_TOOLS(READELF, readelf) | 3055 NCN_STRICT_CHECK_TOOLS(READELF, readelf) |
| 3067 AC_SUBST(CC) | 3056 AC_SUBST(CC) |
| 3068 AC_SUBST(CXX) | 3057 AC_SUBST(CXX) |
| 3069 AC_SUBST(CFLAGS) | 3058 AC_SUBST(CFLAGS) |
| 3070 AC_SUBST(CXXFLAGS) | 3059 AC_SUBST(CXXFLAGS) |
| 3071 | 3060 |
| 3072 # Target tools. | 3061 # Target tools. |
| 3073 AC_ARG_WITH([build-time-tools], | 3062 AC_ARG_WITH([build-time-tools], |
| 3074 [AS_HELP_STRING([--with-build-time-tools=PATH], | 3063 [AS_HELP_STRING([--with-build-time-tools=PATH], |
| 3075 [use given path to find target tools during the build])], | 3064 [use given path to find target tools during the build])], |
| 3076 [case x"$withval" in | 3065 [case x"$withval" in |
| 3077 x/*) ;; | 3066 x/*) ;; |
| 3078 *) | 3067 *) |
| 3079 with_build_time_tools= | 3068 with_build_time_tools= |
| 3080 AC_MSG_WARN([argument to --with-build-time-tools must be an absolute path
]) | 3069 AC_MSG_WARN([argument to --with-build-time-tools must be an absolute path
]) |
| 3081 ;; | 3070 ;; |
| 3082 esac], | 3071 esac], |
| 3083 [with_build_time_tools=]) | 3072 [with_build_time_tools=]) |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3168 USE_MAINTAINER_MODE=no) | 3157 USE_MAINTAINER_MODE=no) |
| 3169 AC_MSG_RESULT($USE_MAINTAINER_MODE) | 3158 AC_MSG_RESULT($USE_MAINTAINER_MODE) |
| 3170 AC_SUBST(MAINTAINER_MODE_TRUE) | 3159 AC_SUBST(MAINTAINER_MODE_TRUE) |
| 3171 AC_SUBST(MAINTAINER_MODE_FALSE) | 3160 AC_SUBST(MAINTAINER_MODE_FALSE) |
| 3172 if test "$USE_MAINTAINER_MODE" = yes; then | 3161 if test "$USE_MAINTAINER_MODE" = yes; then |
| 3173 MAINTAINER_MODE_TRUE= | 3162 MAINTAINER_MODE_TRUE= |
| 3174 MAINTAINER_MODE_FALSE='#' | 3163 MAINTAINER_MODE_FALSE='#' |
| 3175 else | 3164 else |
| 3176 MAINTAINER_MODE_TRUE='#' | 3165 MAINTAINER_MODE_TRUE='#' |
| 3177 MAINTAINER_MODE_FALSE= | 3166 MAINTAINER_MODE_FALSE= |
| 3178 fi» | 3167 fi |
| 3179 MAINT=$MAINTAINER_MODE_TRUE | 3168 MAINT=$MAINTAINER_MODE_TRUE |
| 3180 AC_SUBST(MAINT)dnl | 3169 AC_SUBST(MAINT)dnl |
| 3181 | 3170 |
| 3182 # --------------------- | 3171 # --------------------- |
| 3183 # GCC bootstrap support | 3172 # GCC bootstrap support |
| 3184 # --------------------- | 3173 # --------------------- |
| 3185 | 3174 |
| 3186 # Stage specific cflags for build. | 3175 # Stage specific cflags for build. |
| 3187 stage1_cflags="-g" | 3176 stage1_cflags="-g" |
| 3188 case $build in | 3177 case $build in |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3265 | 3254 |
| 3266 AC_CONFIG_FILES([Makefile], | 3255 AC_CONFIG_FILES([Makefile], |
| 3267 [sed "$extrasub_build" Makefile | | 3256 [sed "$extrasub_build" Makefile | |
| 3268 sed "$extrasub_host" | | 3257 sed "$extrasub_host" | |
| 3269 sed "$extrasub_target" > mf$$ | 3258 sed "$extrasub_target" > mf$$ |
| 3270 mv -f mf$$ Makefile], | 3259 mv -f mf$$ Makefile], |
| 3271 [extrasub_build="$extrasub_build" | 3260 [extrasub_build="$extrasub_build" |
| 3272 extrasub_host="$extrasub_host" | 3261 extrasub_host="$extrasub_host" |
| 3273 extrasub_target="$extrasub_target"]) | 3262 extrasub_target="$extrasub_target"]) |
| 3274 AC_OUTPUT | 3263 AC_OUTPUT |
| OLD | NEW |