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