
1: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2: # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 3: # 4: # This file is free software; you can redistribute it and/or modify it 5: # under the terms of the GNU General Public License as published by 6: # the Free Software Foundation; either version 2 of the License, or 7: # (at your option) any later version. 8: # 9: # This program is distributed in the hope that it will be useful, but 10: # WITHOUT ANY WARRANTY; without even the implied warranty of 11: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12: # General Public License for more details. 13: # 14: # You should have received a copy of the GNU General Public License 15: # along with this program; if not, write to the Free Software 16: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17: 18: ############################################################################## 19: ### WARNING: this file contains embedded tabs. Do not run untabify on this file. 20: 21: sinclude(config/acx.m4) 22: 23: AC_INIT(move-if-change) 24: AC_PREREQ(2.13) 25: AC_CANONICAL_SYSTEM 26: AC_ARG_PROGRAM 27: 28: # Get 'install' or 'install-sh' and its variants. 29: AC_PROG_INSTALL 30: ACX_PROG_LN 31: AC_PROG_LN_S 32: 33: ### we might need to use some other shell than /bin/sh for running subshells 34: ### If we are on Windows, search for the shell. This will permit people 35: ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure 36: ### without also having to set CONFIG_SHELL. This code will work when 37: ### using bash, which sets OSTYPE. 38: case "${OSTYPE}" in 39: *win32*) 40: if test x${CONFIG_SHELL} = x ; then 41: if test ! -f /bin/sh ; then 42: if test x${SHELL} != x && test -f ${SHELL} ; then 43: CONFIG_SHELL=${SHELL} 44: export CONFIG_SHELL 45: else 46: for prog in sh sh.exe bash bash.exe; do 47: IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 48: for dir in $PATH; do 49: test -z "$dir" && dir=. 50: if test -f $dir/$prog; then 51: CONFIG_SHELL=$dir/$prog 52: export CONFIG_SHELL 53: break 54: fi 55: done 56: IFS="$save_ifs" 57: test -n "${CONFIG_SHELL}" && break 58: done 59: fi 60: fi 61: fi 62: ;; 63: esac 64: 65: config_shell=${CONFIG_SHELL-/bin/sh} 66: 67: progname=$0 68: # if PWD already has a value, it is probably wrong. 69: if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi 70: 71: # Export original configure arguments for use by sub-configures. These 72: # will be expanded by make, so quote '$'. 73: tmp="$progname $@" 74: sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out 75: $tmp 76: EOF_SED 77: TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out` 78: rm -f conftestsed.out 79: AC_SUBST(TOPLEVEL_CONFIGURE_ARGUMENTS) 80: 81: moveifchange=${srcdir}/move-if-change 82: 83: srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` 84: 85: # We pass INSTALL explicitly to sub-makes. Make sure that it is not 86: # a relative path. 87: if test "$INSTALL" = "${srcdir}/install-sh -c"; then 88: INSTALL="${srcpwd}/install-sh -c" 89: fi 90: 91: # Set srcdir to "." if that's what it is. 92: # This is important for multilib support. 93: pwd=`${PWDCMD-pwd}` 94: if test "${pwd}" = "${srcpwd}" ; then 95: srcdir=. 96: fi 97: 98: topsrcdir=$srcpwd 99: 100: extra_host_args= 101: 102: ### To add a new directory to the tree, first choose whether it is a target 103: ### or a host dependent tool. Then put it into the appropriate list 104: ### (library or tools, host or target), doing a dependency sort. 105: 106: # Subdirs will be configured in the order listed in build_configdirs, 107: # configdirs, or target_configdirs; see the serialization section below. 108: 109: # Dependency sorting is only needed when *configuration* must be done in 110: # a particular order. In all cases a dependency should be specified in 111: # the Makefile, whether or not it's implicitly specified here. 112: 113: # Double entries in build_configdirs, configdirs, or target_configdirs may 114: # cause circular dependencies and break everything horribly. 115: 116: # these library is used by various programs built for the build 117: # environment 118: # 119: build_libs="build-libiberty" 120: 121: # these tools are built for the build environment 122: build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes" 123: 124: # these libraries are used by various programs built for the host environment 125: # 126: host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber" 127: 128: # these tools are built for the host environment 129: # Note, the powerpc-eabi build depends on sim occurring before gdb in order to 130: # know that we are building the simulator. 131: # binutils, gas and ld appear in that order because it makes sense to run 132: # "make check" in that particular order. 133: host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc 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" 134: 135: # libgcj represents the runtime libraries only used by gcj. 136: libgcj="target-libffi \ 137: target-zlib \ 138: target-qthreads \ 139: target-libjava" 140: 141: # these libraries are built for the target environment, and are built after 142: # the host libraries and the host tools (which may be a cross compiler) 143: # 144: target_libraries="target-libiberty \ 145: target-libgloss \ 146: target-newlib \ 147: target-libstdc++-v3 \ 148: target-libmudflap \ 149: target-libssp \ 150: target-libgfortran \ 151: target-boehm-gc \ 152: ${libgcj} \ 153: target-libobjc \ 154: target-libada \ 155: target-libgomp" 156: 157: # these tools are built using the target libraries, and are intended to 158: # run only in the target environment 159: # 160: # note: any program that *uses* libraries that are in the "target_libraries" 161: # list belongs in this list. those programs are also very likely 162: # candidates for the "native_only" list which follows 163: # 164: target_tools="target-examples target-groff target-gperf target-rda" 165: 166: ################################################################################ 167: 168: ## All tools belong in one of the four categories, and are assigned above 169: ## We assign ${configdirs} this way to remove all embedded newlines. This 170: ## is important because configure will choke if they ever get through. 171: ## ${configdirs} is directories we build using the host tools. 172: ## ${target_configdirs} is directories we build using the target tools. 173: configdirs=`echo ${host_libs} ${host_tools}` 174: target_configdirs=`echo ${target_libraries} ${target_tools}` 175: build_configdirs=`echo ${build_libs} ${build_tools}` 176: 177: ################################################################################ 178: 179: srcname="gnu development package" 180: 181: # This gets set non-empty for some net releases of packages. 182: appdirs="" 183: 184: # Define is_cross_compiler to save on calls to 'test'. 185: is_cross_compiler= 186: if test x"${host}" = x"${target}" ; then 187: is_cross_compiler=no 188: else 189: is_cross_compiler=yes 190: fi 191: 192: # Find the build and target subdir names. 193: GCC_TOPLEV_SUBDIRS 194: 195: # Skipdirs are removed silently. 196: skipdirs= 197: # Noconfigdirs are removed loudly. 198: noconfigdirs="" 199: 200: use_gnu_ld= 201: # Make sure we don't let GNU ld be added if we didn't want it. 202: if test x$with_gnu_ld = xno ; then 203: use_gnu_ld=no 204: noconfigdirs="$noconfigdirs ld" 205: fi 206: 207: use_gnu_as= 208: # Make sure we don't let GNU as be added if we didn't want it. 209: if test x$with_gnu_as = xno ; then 210: use_gnu_as=no 211: noconfigdirs="$noconfigdirs gas" 212: fi 213: 214: # some tools are so dependent upon X11 that if we're not building with X, 215: # it's not even worth trying to configure, much less build, that tool. 216: 217: case ${with_x} in 218: yes | "") ;; # the default value for this tree is that X11 is available 219: no) 220: skipdirs="${skipdirs} tk itcl libgui" 221: # We won't be able to build gdbtk without X. 222: enable_gdbtk=no 223: ;; 224: *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; 225: esac 226: 227: # Some tools are only suitable for building in a "native" situation. 228: # Remove these if host!=target. 229: native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" 230: 231: # Similarly, some are only suitable for cross toolchains. 232: # Remove these if host=target. 233: cross_only="target-libgloss target-newlib target-opcodes" 234: 235: case $is_cross_compiler in 236: no) skipdirs="${skipdirs} ${cross_only}" ;; 237: yes) skipdirs="${skipdirs} ${native_only}" ;; 238: esac 239: 240: # If both --with-headers and --with-libs are specified, default to 241: # --without-newlib. 242: if test x"${with_headers}" != x && test x"${with_headers}" != xno \ 243: && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then 244: if test x"${with_newlib}" = x ; then 245: with_newlib=no 246: fi 247: fi 248: 249: # Recognize --with-newlib/--without-newlib. 250: case ${with_newlib} in 251: no) skipdirs="${skipdirs} target-newlib" ;; 252: yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; 253: esac 254: 255: # Configure extra directories which are host specific 256: 257: case "${host}" in 258: *-cygwin*) 259: configdirs="$configdirs libtermcap" ;; 260: esac 261: 262: # A target can indicate whether a language isn't supported for some reason. 263: # Only spaces may be used in this macro; not newlines or tabs. 264: unsupported_languages= 265: 266: # Remove more programs from consideration, based on the host or 267: # target this usually means that a port of the program doesn't 268: # exist yet. 269: 270: case "${host}" in 271: hppa*64*-*-*) 272: noconfigdirs="$noconfigdirs byacc" 273: ;; 274: i[[3456789]]86-*-vsta) 275: noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext" 276: ;; 277: i[[3456789]]86-*-go32* | i[[3456789]]86-*-msdosdjgpp*) 278: noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi" 279: ;; 280: i[[3456789]]86-*-mingw32*) 281: # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv" 282: noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib" 283: ;; 284: i[[3456789]]86-*-beos*) 285: noconfigdirs="$noconfigdirs tk itcl libgui gdb" 286: ;; 287: *-*-cygwin*) 288: noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl" 289: ;; 290: *-*-netbsd*) 291: noconfigdirs="$noconfigdirs rcs" 292: ;; 293: ppc*-*-pe) 294: noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv" 295: ;; 296: powerpc-*-beos*) 297: noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline" 298: ;; 299: esac 300: 301: 302: AC_ARG_ENABLE(libada, 303: [ --enable-libada Builds libada directory], 304: ENABLE_LIBADA=$enableval, 305: ENABLE_LIBADA=yes) 306: if test "${ENABLE_LIBADA}" != "yes" ; then 307: noconfigdirs="$noconfigdirs gnattools" 308: fi 309: 310: AC_ARG_ENABLE(libssp, 311: [ --enable-libssp Builds libssp directory], 312: ENABLE_LIBSSP=$enableval, 313: ENABLE_LIBSSP=yes) 314: 315: # Save it here so that, even in case of --enable-libgcj, if the Java 316: # front-end isn't enabled, we still get libgcj disabled. 317: libgcj_saved=$libgcj 318: case $enable_libgcj in 319: yes) 320: # If we reset it here, it won't get added to noconfigdirs in the 321: # target-specific build rules, so it will be forcibly enabled 322: # (unless the Java language itself isn't enabled). 323: libgcj= 324: ;; 325: no) 326: # Make sure we get it printed in the list of not supported target libs. 327: noconfigdirs="$noconfigdirs ${libgcj}" 328: ;; 329: esac 330: 331: 332: # Disable libmudflap on some systems. 333: if test x$enable_libmudflap = x ; then 334: case "${target}" in 335: *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) 336: # Enable libmudflap by default in GNU and friends. 337: ;; 338: *-*-freebsd*) 339: # Enable libmudflap by default in FreeBSD. 340: ;; 341: *) 342: # Disable it by default everywhere else. 343: noconfigdirs="$noconfigdirs target-libmudflap" 344: ;; 345: esac 346: fi 347: 348: # Disable libgomp on non POSIX hosted systems. 349: if test x$enable_libgomp = x ; then 350: # Enable libgomp by default on hosted POSIX systems. 351: case "${target}" in 352: *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) 353: ;; 354: *-*-netbsd* | *-*-freebsd* | *-*-openbsd*) 355: ;; 356: *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*) 357: ;; 358: *-*-darwin* | *-*-aix*) 359: ;; 360: *) 361: noconfigdirs="$noconfigdirs target-libgomp" 362: ;; 363: esac 364: fi 365: 366: 367: case "${target}" in 368: *-*-chorusos) 369: noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 370: ;; 371: powerpc-*-darwin* | i[[3456789]]86-*-darwin*) 372: noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" 373: noconfigdirs="$noconfigdirs sim target-rda" 374: ;; 375: *-*-darwin*) 376: noconfigdirs="$noconfigdirs ld gas gdb gprof" 377: noconfigdirs="$noconfigdirs sim target-rda" 378: noconfigdirs="$noconfigdirs ${libgcj}" 379: ;; 380: *-*-freebsd[[12]] | *-*-freebsd[[12]].* | *-*-freebsd*aout*) 381: noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 382: ;; 383: *-*-freebsd*) 384: noconfigdirs="$noconfigdirs target-newlib target-libgloss" 385: if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ 386: && test -f /usr/local/include/gmp.h; then 387: with_gmp=/usr/local 388: fi 389: 390: # Skip some stuff that's unsupported on some FreeBSD configurations. 391: case "${target}" in 392: i*86-*-*) ;; 393: alpha*-*-*) ;; 394: *) 395: noconfigdirs="$noconfigdirs ${libgcj}" 396: ;; 397: esac 398: ;; 399: *-*-kaos*) 400: # Remove unsupported stuff on all kaOS configurations. 401: skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx" 402: skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf" 403: skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib" 404: noconfigdirs="$noconfigdirs target-libgloss" 405: ;; 406: *-*-netbsd*) 407: # Skip some stuff on all NetBSD configurations. 408: noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" 409: 410: # Skip some stuff that's unsupported on some NetBSD configurations. 411: case "${target}" in 412: i*86-*-netbsdelf*) ;; 413: arm*-*-netbsdelf*) ;; 414: *) 415: noconfigdirs="$noconfigdirs ${libgcj}" 416: ;; 417: esac 418: ;; 419: *-*-netware*) 420: noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" 421: ;; 422: *-*-rtems*) 423: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 424: ;; 425: # The tpf target doesn't support gdb yet. 426: *-*-tpf*) 427: noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl" 428: ;; 429: *-*-uclinux*) 430: noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" 431: ;; 432: *-*-vxworks*) 433: noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}" 434: ;; 435: alpha*-dec-osf*) 436: # ld works, but does not support shared libraries. 437: # newlib is not 64 bit ready. I'm not sure about fileutils. 438: # gas doesn't generate exception information. 439: noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" 440: ;; 441: alpha*-*-*vms*) 442: noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" 443: ;; 444: alpha*-*-linux*) 445: # newlib is not 64 bit ready 446: noconfigdirs="$noconfigdirs target-newlib target-libgloss" 447: ;; 448: alpha*-*-*) 449: # newlib is not 64 bit ready 450: noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 451: ;; 452: am33_2.0-*-linux*) 453: noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" 454: ;; 455: sh-*-linux*) 456: noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" 457: ;; 458: sh*-*-pe|mips*-*-pe|*arm-wince-pe) 459: noconfigdirs="$noconfigdirs ${libgcj}" 460: noconfigdirs="$noconfigdirs target-examples" 461: noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" 462: noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" 463: noconfigdirs="$noconfigdirs expect dejagnu" 464: # the C++ libraries don't build on top of CE's C libraries 465: noconfigdirs="$noconfigdirs target-libstdc++-v3" 466: noconfigdirs="$noconfigdirs target-newlib" 467: case "${host}" in 468: *-*-cygwin*) ;; # keep gdb and readline 469: *) noconfigdirs="$noconfigdirs gdb readline" 470: ;; 471: esac 472: ;; 473: arc-*-*) 474: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 475: ;; 476: arm-semi-aof ) 477: ;; 478: arm-*-coff | strongarm-*-coff | xscale-*-coff) 479: noconfigdirs="$noconfigdirs ${libgcj}" 480: ;; 481: arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* ) 482: noconfigdirs="$noconfigdirs target-libffi target-qthreads" 483: ;; 484: arm*-*-linux-gnueabi) 485: noconfigdirs="$noconfigdirs target-libffi target-qthreads" 486: noconfigdirs="$noconfigdirs target-libjava target-libobjc" 487: ;; 488: arm*-*-symbianelf*) 489: noconfigdirs="$noconfigdirs ${libgcj} target-libiberty" 490: ;; 491: arm-*-pe*) 492: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 493: ;; 494: thumb-*-coff) 495: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 496: ;; 497: thumb-*-elf) 498: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 499: ;; 500: thumb-*-pe) 501: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 502: ;; 503: arm-*-riscix*) 504: noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" 505: ;; 506: avr-*-*) 507: noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" 508: ;; 509: bfin-*-*) 510: noconfigdirs="$noconfigdirs gdb" 511: if test x${is_cross_compiler} != xno ; then 512: target_configdirs="${target_configdirs} target-bsp target-cygmon" 513: fi 514: ;; 515: c4x-*-* | tic4x-*-*) 516: noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" 517: ;; 518: c54x*-*-* | tic54x-*-*) 519: noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" 520: ;; 521: cris-*-* | crisv32-*-*) 522: unsupported_languages="$unsupported_languages java" 523: case "${target}" in 524: *-*-aout) 525: unsupported_languages="$unsupported_languages fortran" 526: noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; 527: *-*-elf) 528: unsupported_languages="$unsupported_languages fortran" 529: noconfigdirs="$noconfigdirs target-boehm-gc";; 530: *-*-linux*) 531: noconfigdirs="$noconfigdirs target-newlib target-libgloss";; 532: *) 533: unsupported_languages="$unsupported_languages fortran" 534: noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; 535: esac 536: ;; 537: crx-*-*) 538: noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}" 539: ;; 540: d10v-*-*) 541: noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" 542: ;; 543: d30v-*-*) 544: noconfigdirs="$noconfigdirs ${libgcj} gdb" 545: ;; 546: fr30-*-elf*) 547: noconfigdirs="$noconfigdirs ${libgcj} gdb" 548: ;; 549: frv-*-*) 550: noconfigdirs="$noconfigdirs ${libgcj}" 551: ;; 552: h8300*-*-*) 553: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 554: ;; 555: h8500-*-*) 556: noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" 557: ;; 558: hppa1.1-*-osf* | hppa1.1-*-bsd* ) 559: ;; 560: hppa*64*-*-linux* | parisc*64*-*-linux*) 561: # In this case, it's because the hppa64-linux target is for 562: # the kernel only at this point and has no libc, and thus no 563: # headers, crt*.o, etc., all of which are needed by these. 564: noconfigdirs="$noconfigdirs target-zlib" 565: ;; 566: parisc*-*-linux* | hppa*-*-linux*) 567: ;; 568: hppa*-*-*elf* | \ 569: hppa*-*-lites* | \ 570: hppa*-*-openbsd* | \ 571: hppa*64*-*-*) 572: noconfigdirs="$noconfigdirs ${libgcj}" 573: ;; 574: hppa*-hp-hpux11*) 575: noconfigdirs="$noconfigdirs ld shellutils" 576: ;; 577: hppa*-*-*) 578: # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't 579: # build on HP-UX 10.20. 580: noconfigdirs="$noconfigdirs ld shellutils ${libgcj}" 581: ;; 582: i960-*-*) 583: noconfigdirs="$noconfigdirs ${libgcj} gdb" 584: ;; 585: ia64*-*-elf*) 586: # No gdb support yet. 587: noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb" 588: ;; 589: ia64*-**-hpux*) 590: # No gdb or ld support yet. 591: noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld" 592: ;; 593: i370-*-opened*) 594: ;; 595: i[[3456789]]86-*-coff | i[[3456789]]86-*-elf) 596: noconfigdirs="$noconfigdirs ${libgcj}" 597: ;; 598: i[[3456789]]86-*-linux*) 599: # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's 600: # not build java stuff by default. 601: case "${target}" in 602: *-*-*libc1*) 603: noconfigdirs="$noconfigdirs ${libgcj}";; 604: esac 605: 606: # This section makes it possible to build newlib natively on linux. 607: # If we are using a cross compiler then don't configure newlib. 608: if test x${is_cross_compiler} != xno ; then 609: noconfigdirs="$noconfigdirs target-newlib" 610: fi 611: noconfigdirs="$noconfigdirs target-libgloss" 612: # If we are not using a cross compiler, do configure newlib. 613: # Note however, that newlib will only be configured in this situation 614: # if the --with-newlib option has been given, because otherwise 615: # 'target-newlib' will appear in skipdirs. 616: ;; 617: i[[3456789]]86-*-mingw32*) 618: target_configdirs="$target_configdirs target-winsup" 619: noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}" 620: ;; 621: *-*-cygwin*) 622: target_configdirs="$target_configdirs target-libtermcap target-winsup" 623: noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" 624: # always build newlib if winsup directory is present. 625: if test -d "$srcdir/winsup/cygwin"; then 626: skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 627: elif test -d "$srcdir/newlib"; then 628: echo "Warning: winsup/cygwin is missing so newlib can't be built." 629: fi 630: ;; 631: i[[3456789]]86-moss-msdos | i[[3456789]]86-*-moss* | \ 632: i[[3456789]]86-*-uwin* | i[[3456789]]86-*-interix* ) 633: ;; 634: i[[3456789]]86-*-pe) 635: noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" 636: ;; 637: i[[3456789]]86-*-sco3.2v5*) 638: # The linker does not yet know about weak symbols in COFF, 639: # and is not configured to handle mixed ELF and COFF. 640: noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" 641: ;; 642: i[[3456789]]86-*-sco*) 643: noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 644: ;; 645: i[[3456789]]86-*-solaris2*) 646: noconfigdirs="$noconfigdirs target-libgloss" 647: ;; 648: i[[3456789]]86-*-sysv4*) 649: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 650: ;; 651: i[[3456789]]86-*-beos*) 652: noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" 653: ;; 654: i[[3456789]]86-*-rdos*) 655: noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" 656: ;; 657: m32r-*-*) 658: noconfigdirs="$noconfigdirs ${libgcj}" 659: ;; 660: m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) 661: noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" 662: ;; 663: m68k-*-elf*) 664: noconfigdirs="$noconfigdirs ${libgcj}" 665: ;; 666: m68k-*-coff*) 667: noconfigdirs="$noconfigdirs ${libgcj}" 668: ;; 669: mcore-*-pe*) 670: # The EPOC C++ environment does not support exceptions or rtti, 671: # and so building libstdc++-v3 tends not to always work. 672: noconfigdirs="$noconfigdirs target-libstdc++-v3" 673: ;; 674: mmix-*-*) 675: noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss" 676: unsupported_languages="$unsupported_languages fortran java" 677: ;; 678: mn10200-*-*) 679: noconfigdirs="$noconfigdirs ${libgcj}" 680: ;; 681: mn10300-*-*) 682: noconfigdirs="$noconfigdirs ${libgcj}" 683: ;; 684: mt-*-*) 685: noconfigdirs="$noconfigdirs sim" 686: ;; 687: powerpc-*-aix*) 688: # copied from rs6000-*-* entry 689: noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" 690: ;; 691: powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) 692: target_configdirs="$target_configdirs target-winsup" 693: noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}" 694: # always build newlib. 695: skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 696: ;; 697: # This is temporary until we can link against shared libraries 698: powerpcle-*-solaris*) 699: noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}" 700: ;; 701: powerpc-*-beos*) 702: noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" 703: ;; 704: powerpc-*-eabi) 705: noconfigdirs="$noconfigdirs ${libgcj}" 706: ;; 707: powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) 708: ;; 709: rs6000-*-lynxos*) 710: noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" 711: ;; 712: rs6000-*-aix*) 713: noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" 714: ;; 715: rs6000-*-*) 716: noconfigdirs="$noconfigdirs gprof ${libgcj}" 717: ;; 718: m68k-apollo-*) 719: noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" 720: ;; 721: mips*-*-irix5*) 722: noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 723: ;; 724: mips*-*-irix6*) 725: # Linking libjava exceeds command-line length limits on at least 726: # IRIX 6.2, but not on IRIX 6.5. 727: # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham 728: # <oldham@codesourcery.com> 729: noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 730: ;; 731: mips*-*-bsd*) 732: noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 733: ;; 734: mips64*-*-linux*) 735: noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 736: ;; 737: mips*-*-linux*) 738: noconfigdirs="$noconfigdirs target-newlib target-libgloss" 739: ;; 740: mips*-*-*) 741: noconfigdirs="$noconfigdirs gprof ${libgcj}" 742: ;; 743: romp-*-*) 744: noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" 745: ;; 746: sh-*-* | sh64-*-*) 747: case "${host}" in 748: i[[3456789]]86-*-vsta) ;; # don't add gprof back in 749: i[[3456789]]86-*-go32*) ;; # don't add gprof back in 750: i[[3456789]]86-*-msdosdjgpp*) ;; # don't add gprof back in 751: *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; 752: esac 753: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 754: ;; 755: sparc-*-elf*) 756: noconfigdirs="$noconfigdirs ${libgcj}" 757: ;; 758: sparc64-*-elf*) 759: noconfigdirs="$noconfigdirs ${libgcj}" 760: ;; 761: sparclite-*-*) 762: noconfigdirs="$noconfigdirs ${libgcj}" 763: ;; 764: sparc-*-sunos4*) 765: noconfigdirs="$noconfigdirs ${libgcj}" 766: if test x${is_cross_compiler} != xno ; then 767: noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" 768: else 769: use_gnu_ld=no 770: fi 771: ;; 772: sparc-*-solaris2.[[0-6]] | sparc-*-solaris2.[[0-6]].*) 773: noconfigdirs="$noconfigdirs ${libgcj}" 774: ;; 775: sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) 776: ;; 777: v810-*-*) 778: noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" 779: ;; 780: v850-*-*) 781: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 782: ;; 783: v850e-*-*) 784: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 785: ;; 786: v850ea-*-*) 787: noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 788: ;; 789: vax-*-vms) 790: noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" 791: ;; 792: vax-*-*) 793: noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 794: ;; 795: xtensa-*-*) 796: noconfigdirs="$noconfigdirs ${libgcj}" 797: ;; 798: ip2k-*-*) 799: noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" 800: ;; 801: *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) 802: noconfigdirs="$noconfigdirs target-newlib target-libgloss" 803: ;; 804: *-*-lynxos*) 805: noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 806: ;; 807: *-*-*) 808: noconfigdirs="$noconfigdirs ${libgc