(linenum→info "unix/slp.c:2238")

binutils/2.18/configure.ac

    1: #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
    2: #   2001, 2002, 2003, 2004, 2005, 2006, 2007 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.59)
   25: 
   26: # Find the build, host, and target systems.
   27: ACX_NONCANONICAL_BUILD
   28: ACX_NONCANONICAL_HOST
   29: ACX_NONCANONICAL_TARGET
   30: 
   31: dnl Autoconf 2.5x and later will set a default program prefix if
   32: dnl --target was used, even if it was the same as --host.  Disable
   33: dnl that behavior.  This must be done before AC_CANONICAL_SYSTEM
   34: dnl to take effect.
   35: test "$host_noncanonical" = "$target_noncanonical" &&
   36:   test "$program_prefix$program_suffix$program_transform_name" = \
   37:     NONENONEs,x,x, &&
   38:   program_transform_name=s,y,y,
   39: 
   40: AC_CANONICAL_SYSTEM
   41: AC_ARG_PROGRAM
   42: 
   43: m4_pattern_allow([^AS_FOR_TARGET$])dnl
   44: 
   45: # Get 'install' or 'install-sh' and its variants.
   46: AC_PROG_INSTALL
   47: ACX_PROG_LN
   48: AC_PROG_LN_S
   49: 
   50: ### we might need to use some other shell than /bin/sh for running subshells
   51: ### If we are on Windows, search for the shell.  This will permit people
   52: ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
   53: ### without also having to set CONFIG_SHELL.  This code will work when
   54: ### using bash, which sets OSTYPE.
   55: case "${OSTYPE}" in
   56: *win32*)
   57:   if test x${CONFIG_SHELL} = x ; then
   58:     if test ! -f /bin/sh ; then
   59:       if test x${SHELL} != x && test -f ${SHELL} ; then
   60:         CONFIG_SHELL=${SHELL}
   61:         export CONFIG_SHELL
   62:       else
   63:         for prog in sh sh.exe bash bash.exe; do
   64:           IFS="${IFS=  }"; save_ifs="$IFS"; IFS="${IFS}:"
   65:           for dir in $PATH; do
   66:             test -z "$dir" && dir=.
   67:             if test -f $dir/$prog; then
   68:               CONFIG_SHELL=$dir/$prog
   69:               export CONFIG_SHELL
   70:               break
   71:             fi
   72:           done
   73:           IFS="$save_ifs"
   74:           test -n "${CONFIG_SHELL}" && break
   75:         done
   76:       fi
   77:     fi
   78:   fi
   79:   ;;
   80: esac
   81: 
   82: config_shell=${CONFIG_SHELL-/bin/sh}
   83: 
   84: progname=$0
   85: # if PWD already has a value, it is probably wrong.
   86: if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
   87: 
   88: # Export original configure arguments for use by sub-configures.
   89: # Quote arguments with shell meta charatcers.
   90: TOPLEVEL_CONFIGURE_ARGUMENTS=
   91: set -- "$progname" "$@"
   92: for ac_arg
   93: do
   94:   case "$ac_arg" in
   95:   *" "*|*"      "*|*[[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']]*)
   96:     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
   97:     # if the argument is of the form -foo=baz, quote the baz part only
   98:     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([[-a-zA-Z0-9]]*=\)/\\1'/"` ;;
   99:   *) ;;
  100:   esac
  101:   # Add the quoted argument to the list.
  102:   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
  103: done
  104: # Remove the initial space we just introduced and, as these will be
  105: # expanded by make, quote '$'.
  106: TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  107: AC_SUBST(TOPLEVEL_CONFIGURE_ARGUMENTS)
  108: 
  109: moveifchange=${srcdir}/move-if-change
  110: 
  111: srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
  112: 
  113: # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
  114: # a relative path.
  115: if test "$INSTALL" = "${srcdir}/install-sh -c"; then
  116:   INSTALL="${srcpwd}/install-sh -c"
  117: fi
  118: 
  119: # Set srcdir to "." if that's what it is.
  120: # This is important for multilib support.
  121: pwd=`${PWDCMD-pwd}`
  122: if test "${pwd}" = "${srcpwd}" ; then
  123:   srcdir=.
  124: fi
  125: 
  126: topsrcdir=$srcpwd
  127: 
  128: extra_host_args=
  129: 
  130: ### To add a new directory to the tree, first choose whether it is a target
  131: ### or a host dependent tool.  Then put it into the appropriate list
  132: ### (library or tools, host or target), doing a dependency sort.
  133: 
  134: # Subdirs will be configured in the order listed in build_configdirs, 
  135: # configdirs, or target_configdirs; see the serialization section below.
  136: 
  137: # Dependency sorting is only needed when *configuration* must be done in 
  138: # a particular order.  In all cases a dependency should be specified in 
  139: # the Makefile, whether or not it's implicitly specified here.
  140: 
  141: # Double entries in build_configdirs, configdirs, or target_configdirs may
  142: # cause circular dependencies and break everything horribly.
  143: 
  144: # these library is used by various programs built for the build
  145: # environment
  146: #
  147: build_libs="build-libiberty"
  148: 
  149: # these tools are built for the build environment
  150: build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
  151: 
  152: # these libraries are used by various programs built for the host environment
  153: #
  154: host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
  155: 
  156: # these tools are built for the host environment
  157: # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
  158: # know that we are building the simulator.
  159: # binutils, gas and ld appear in that order because it makes sense to run
  160: # "make check" in that particular order.
  161: host_tools="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"
  162: 
  163: # libgcj represents the runtime libraries only used by gcj.
  164: libgcj="target-libffi \
  165:         target-zlib \
  166:         target-qthreads \
  167:         target-libjava"
  168: 
  169: # these libraries are built for the target environment, and are built after
  170: # the host libraries and the host tools (which may be a cross compiler)
  171: #
  172: target_libraries="target-libgcc \
  173:                 target-libiberty \
  174:                 target-libgloss \
  175:                 target-newlib \
  176:                 target-libstdc++-v3 \
  177:                 target-libmudflap \
  178:                 target-libssp \
  179:                 target-libgfortran \
  180:                 target-boehm-gc \
  181:                 ${libgcj} \
  182:                 target-libobjc \
  183:                 target-libada \
  184:                 target-libgomp"
  185: 
  186: # these tools are built using the target libraries, and are intended to
  187: # run only in the target environment
  188: #
  189: # note: any program that *uses* libraries that are in the "target_libraries"
  190: # list belongs in this list.  those programs are also very likely
  191: # candidates for the "native_only" list which follows
  192: #
  193: target_tools="target-examples target-groff target-gperf target-rda"
  194: 
  195: ################################################################################
  196: 
  197: ## All tools belong in one of the four categories, and are assigned above
  198: ## We assign ${configdirs} this way to remove all embedded newlines.  This
  199: ## is important because configure will choke if they ever get through.
  200: ## ${configdirs} is directories we build using the host tools.
  201: ## ${target_configdirs} is directories we build using the target tools.
  202: configdirs=`echo ${host_libs} ${host_tools}`
  203: target_configdirs=`echo ${target_libraries} ${target_tools}`
  204: build_configdirs=`echo ${build_libs} ${build_tools}`
  205: 
  206: ################################################################################
  207: 
  208: srcname="gnu development package"
  209: 
  210: # This gets set non-empty for some net releases of packages.
  211: appdirs=""
  212: 
  213: # Define is_cross_compiler to save on calls to 'test'.
  214: is_cross_compiler=
  215: if test x"${host}" = x"${target}" ; then
  216:   is_cross_compiler=no
  217: else
  218:   is_cross_compiler=yes
  219: fi      
  220: 
  221: # Find the build and target subdir names.
  222: GCC_TOPLEV_SUBDIRS
  223: 
  224: # Skipdirs are removed silently.
  225: skipdirs=
  226: # Noconfigdirs are removed loudly.
  227: noconfigdirs=""
  228: 
  229: use_gnu_ld=
  230: # Make sure we don't let GNU ld be added if we didn't want it.
  231: if test x$with_gnu_ld = xno ; then
  232:   use_gnu_ld=no
  233:   noconfigdirs="$noconfigdirs ld"
  234: fi
  235: 
  236: use_gnu_as=
  237: # Make sure we don't let GNU as be added if we didn't want it.
  238: if test x$with_gnu_as = xno ; then
  239:   use_gnu_as=no
  240:   noconfigdirs="$noconfigdirs gas"
  241: fi
  242: 
  243: # some tools are so dependent upon X11 that if we're not building with X, 
  244: # it's not even worth trying to configure, much less build, that tool.
  245: 
  246: case ${with_x} in
  247:   yes | "") ;; # the default value for this tree is that X11 is available
  248:   no)
  249:     skipdirs="${skipdirs} tk itcl libgui"
  250:     # We won't be able to build gdbtk without X.
  251:     enable_gdbtk=no 
  252:     ;;
  253:   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
  254: esac
  255: 
  256: # Some tools are only suitable for building in a "native" situation.
  257: # Remove these if host!=target.  
  258: 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"
  259: 
  260: # Similarly, some are only suitable for cross toolchains.
  261: # Remove these if host=target.
  262: cross_only="target-libgloss target-newlib target-opcodes"
  263: 
  264: case $is_cross_compiler in
  265:   no) skipdirs="${skipdirs} ${cross_only}" ;;
  266:   yes) skipdirs="${skipdirs} ${native_only}" ;;
  267: esac
  268: 
  269: # If both --with-headers and --with-libs are specified, default to
  270: # --without-newlib.
  271: if test x"${with_headers}" != x && test x"${with_headers}" != xno \
  272:    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  273:   if test x"${with_newlib}" = x ; then
  274:     with_newlib=no
  275:   fi
  276: fi
  277: 
  278: # Recognize --with-newlib/--without-newlib.
  279: case ${with_newlib} in
  280:   no) skipdirs="${skipdirs} target-newlib" ;;
  281:   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
  282: esac
  283: 
  284: # Configure extra directories which are host specific
  285: 
  286: case "${host}" in
  287:   *-cygwin*)
  288:     configdirs="$configdirs libtermcap" ;;
  289: esac
  290: 
  291: # A target can indicate whether a language isn't supported for some reason.
  292: # Only spaces may be used in this macro; not newlines or tabs.
  293: unsupported_languages=
  294: 
  295: # Remove more programs from consideration, based on the host or 
  296: # target this usually means that a port of the program doesn't
  297: # exist yet.
  298: 
  299: case "${host}" in
  300:   hppa*64*-*-*)
  301:     noconfigdirs="$noconfigdirs byacc"
  302:     ;;
  303:   i[[3456789]]86-*-vsta)
  304:     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
  305:     ;;
  306:   i[[3456789]]86-*-go32* | i[[3456789]]86-*-msdosdjgpp*)
  307:     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
  308:     ;;
  309:   x86_64-*-mingw*)
  310:     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
  311:     ;;
  312:   i[[3456789]]86-*-mingw32*)
  313:     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
  314:     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
  315:     ;;
  316:   i[[3456789]]86-*-beos*)
  317:     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
  318:     ;;
  319:   *-*-cygwin*)
  320:     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
  321:     ;;
  322:   *-*-netbsd*)
  323:     noconfigdirs="$noconfigdirs rcs"
  324:     ;;
  325:   ppc*-*-pe)
  326:     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
  327:     ;;
  328:   powerpc-*-beos*)
  329:     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
  330:     ;;
  331: esac
  332: 
  333: 
  334: AC_ARG_ENABLE(libada,
  335: [  --enable-libada         build libada directory],
  336: ENABLE_LIBADA=$enableval,
  337: ENABLE_LIBADA=yes)
  338: if test "${ENABLE_LIBADA}" != "yes" ; then
  339:   noconfigdirs="$noconfigdirs gnattools"
  340: fi
  341: 
  342: AC_ARG_ENABLE(libssp,
  343: [  --enable-libssp         build libssp directory],
  344: ENABLE_LIBSSP=$enableval,
  345: ENABLE_LIBSSP=yes)
  346: 
  347: # Save it here so that, even in case of --enable-libgcj, if the Java
  348: # front-end isn't enabled, we still get libgcj disabled.
  349: libgcj_saved=$libgcj
  350: case $enable_libgcj in
  351: yes)
  352:   # If we reset it here, it won't get added to noconfigdirs in the
  353:   # target-specific build rules, so it will be forcibly enabled
  354:   # (unless the Java language itself isn't enabled).
  355:   libgcj=
  356:   ;;
  357: no)
  358:   # Make sure we get it printed in the list of not supported target libs.
  359:   noconfigdirs="$noconfigdirs ${libgcj}"
  360:   ;;
  361: esac
  362: 
  363: 
  364: # Disable libmudflap on some systems.
  365: if test x$enable_libmudflap = x ; then
  366:     case "${target}" in
  367:     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
  368:         # Enable libmudflap by default in GNU and friends.
  369:         ;;
  370:     *-*-freebsd*)
  371:         # Enable libmudflap by default in FreeBSD.
  372:         ;;
  373:     *)
  374:         # Disable it by default everywhere else.
  375:         noconfigdirs="$noconfigdirs target-libmudflap"
  376:         ;;
  377:     esac
  378: fi
  379: 
  380: # Disable libgomp on non POSIX hosted systems.
  381: if test x$enable_libgomp = x ; then
  382:     # Enable libgomp by default on hosted POSIX systems.
  383:     case "${target}" in
  384:     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
  385:         ;;
  386:     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
  387:         ;;
  388:     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
  389:         ;;
  390:     *-*-darwin* | *-*-aix*)
  391:         ;;
  392:     *)
  393:         noconfigdirs="$noconfigdirs target-libgomp"
  394:         ;;
  395:     esac
  396: fi
  397: 
  398: 
  399: case "${target}" in
  400:   *-*-chorusos)
  401:     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  402:     ;;
  403:   powerpc-*-darwin* | i[[3456789]]86-*-darwin*)
  404:     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
  405:     noconfigdirs="$noconfigdirs sim target-rda"
  406:     ;;
  407:   *-*-darwin*)
  408:     noconfigdirs="$noconfigdirs ld gas gdb gprof"
  409:     noconfigdirs="$noconfigdirs sim target-rda"
  410:     noconfigdirs="$noconfigdirs ${libgcj}"
  411:     ;;
  412:   *-*-freebsd[[12]] | *-*-freebsd[[12]].* | *-*-freebsd*aout*)
  413:     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  414:     ;;
  415:   *-*-freebsd*)
  416:     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  417:     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
  418:         && test -f /usr/local/include/gmp.h; then
  419:       with_gmp=/usr/local
  420:     fi
  421: 
  422:     # Skip some stuff that's unsupported on some FreeBSD configurations.
  423:     case "${target}" in
  424:       i*86-*-*) ;;
  425:       alpha*-*-*) ;;
  426:       *)
  427:         noconfigdirs="$noconfigdirs ${libgcj}"
  428:         ;;
  429:     esac
  430:     ;;
  431:   *-*-kaos*)
  432:     # Remove unsupported stuff on all kaOS configurations.
  433:     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
  434:     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
  435:     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
  436:     noconfigdirs="$noconfigdirs target-libgloss"
  437:     ;;
  438:   *-*-netbsd*)
  439:     # Skip some stuff on all NetBSD configurations.
  440:     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
  441: 
  442:     # Skip some stuff that's unsupported on some NetBSD configurations.
  443:     case "${target}" in
  444:       i*86-*-netbsdelf*) ;;
  445:       arm*-*-netbsdelf*) ;;
  446:       *)
  447:         noconfigdirs="$noconfigdirs ${libgcj}"
  448:         ;;
  449:     esac
  450:     ;;
  451:   *-*-netware*)
  452:     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
  453:     ;;
  454:   *-*-rtems*)
  455:     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  456:     ;;
  457:     # The tpf target doesn't support gdb yet.
  458:   *-*-tpf*)
  459:     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
  460:     ;;
  461:   *-*-uclinux*)
  462:     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
  463:     ;;
  464:   *-*-vxworks*)
  465:     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
  466:     ;;
  467:   alpha*-dec-osf*)
  468:     # ld works, but does not support shared libraries.
  469:     # newlib is not 64 bit ready.  I'm not sure about fileutils.
  470:     # gas doesn't generate exception information.
  471:     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
  472:     ;;
  473:   alpha*-*-*vms*)
  474:     noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
  475:     ;;
  476:   alpha*-*-linux*)
  477:     # newlib is not 64 bit ready
  478:     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  479:     ;;
  480:   alpha*-*-*)
  481:     # newlib is not 64 bit ready
  482:     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
  483:     ;;
  484:   am33_2.0-*-linux*)
  485:     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
  486:     ;;
  487:   sh-*-linux*)
  488:     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
  489:     ;;    
  490:   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  491:     noconfigdirs="$noconfigdirs ${libgcj}"
  492:     noconfigdirs="$noconfigdirs target-examples"
  493:     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
  494:     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
  495:     noconfigdirs="$noconfigdirs expect dejagnu"
  496:     # the C++ libraries don't build on top of CE's C libraries
  497:     noconfigdirs="$noconfigdirs target-libstdc++-v3"
  498:     noconfigdirs="$noconfigdirs target-newlib"
  499:     case "${host}" in
  500:       *-*-cygwin*) ;; # keep gdb and readline
  501:       *) noconfigdirs="$noconfigdirs gdb readline"
  502:          ;;
  503:     esac
  504:     ;;
  505:   arc-*-*)
  506:     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  507:     ;;
  508:   arm-semi-aof )
  509:     ;;
  510:   arm-*-coff | strongarm-*-coff | xscale-*-coff)
  511:     noconfigdirs="$noconfigdirs ${libgcj}"
  512:     ;;
  513:   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
  514:     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
  515:     ;;
  516:   arm*-*-linux-gnueabi)
  517:     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
  518:     noconfigdirs="$noconfigdirs target-libjava target-libobjc"
  519:     case ${with_newlib} in
  520:       no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  521:     esac
  522:     ;;
  523:   arm*-*-symbianelf*)
  524:     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
  525:     ;;
  526:   arm-*-pe*)
  527:     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  528:     ;;
  529:   thumb-*-coff)
  530:     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  531:     ;;
  532:   thumb-*-elf)
  533:     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  534:     ;;
  535:   thumb-*-pe)
  536:     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  537:     ;;
  538:   arm-*-riscix*)
  539:     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
  540:     ;;
  541:   avr-*-*)
  542:     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
  543:     ;;
  544:   bfin-*-*)
  545:     noconfigdirs="$noconfigdirs gdb"
  546:     if test x${is_cross_compiler} != xno ; then
  547:       target_configdirs="${target_configdirs} target-bsp target-cygmon"
  548:     fi
  549:     ;;
  550:   c4x-*-* | tic4x-*-*)
  551:     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
  552:     ;;
  553:   c54x*-*-* | tic54x-*-*)
  554:     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
  555:     ;;
  556:   cris-*-* | crisv32-*-*)
  557:     unsupported_languages="$unsupported_languages java"
  558:     case "${target}" in
  559:       *-*-aout)
  560:         unsupported_languages="$unsupported_languages fortran"
  561:         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
  562:       *-*-elf)
  563:         unsupported_languages="$unsupported_languages fortran"
  564:         noconfigdirs="$noconfigdirs target-boehm-gc";;
  565:       *-*-linux*)
  566:         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
  567:       *)
  568:         unsupported_languages="$unsupported_languages fortran"
  569:         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
  570:     esac
  571:     ;;
  572:   crx-*-*)
  573:     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
  574:     ;;
  575:   d10v-*-*)
  576:     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
  577:     ;;
  578:   d30v-*-*)
  579:     noconfigdirs="$noconfigdirs ${libgcj} gdb"
  580:     ;;
  581:   fr30-*-elf*)
  582:     noconfigdirs="$noconfigdirs ${libgcj} gdb"
  583:     ;;
  584:   frv-*-*)
  585:     noconfigdirs="$noconfigdirs ${libgcj}"
  586:     ;;
  587:   h8300*-*-*)
  588:     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
  589:     ;;
  590:   h8500-*-*)
  591:     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
  592:     ;;
  593:   hppa1.1-*-osf* | hppa1.1-*-bsd* )
  594:     ;;
  595:   hppa*64*-*-linux* | parisc*64*-*-linux*)
  596:     # In this case, it's because the hppa64-linux target is for
  597:     # the kernel only at this point and has no libc, and thus no
  598:     # headers, crt*.o, etc., all of which are needed by these.
  599:     noconfigdirs="$noconfigdirs target-zlib"
  600:     ;;
  601:   parisc*-*-linux* | hppa*-*-linux*)
  602:     ;;
  603:   hppa*-*-*elf* | \
  604:   hppa*-*-lites* | \
  605:   hppa*-*-openbsd* | \
  606:   hppa*64*-*-*)
  607:     noconfigdirs="$noconfigdirs ${libgcj}"
  608:     ;;
  609:   hppa*-hp-hpux11*)
  610:     noconfigdirs="$noconfigdirs ld shellutils"
  611:     ;;
  612:   hppa*-*-*)
  613:     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
  614:     # build on HP-UX 10.20.
  615:     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
  616:     ;;