Changeset 1391 for branches/GNU/src/gcc/configure.in
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (21 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 dir.info 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/configure.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 15 15 ## for 'Autoconf' (autoconf.texi) and 'Configure' (configure.texi). 16 16 17 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 18 # 1999, 2000, 2001, 2002Free Software Foundation, Inc.17 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 18 # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 19 19 # 20 20 # This file is free software; you can redistribute it and/or modify it … … 43 43 # these libraries are used by various programs built for the host environment 44 44 # 45 host_libs="intl mmalloc libiberty opcodes bfd readline gash db tcl tk tcl8.1 tk8.1 tclX itcl tix libgui zlib" 46 47 if [ "${enable_gdbgui}" = "yes" ] ; then 48 host_libs="${host_libs} libgui" 49 fi 45 host_libs="intl mmalloc libiberty opcodes bfd readline db tcl tk tclX itcl tix libgui zlib" 50 46 51 47 libstdcxx_version="target-libstdc++-v3" 52 # Don't use libstdc++-v3's flags to configure/build itself.53 libstdcxx_flags='`case $$dir in libstdc++-v3 | libjava) ;; *) test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes;; esac` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'54 48 55 49 # these tools are built for the host environment 56 50 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to 57 51 # know that we are building the simulator. 58 host_tools="texinfo byacc flex bison binutils ld gas gcc si m gdb make patch prms send-pr gprof gdbtest tgas etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool ispell grep diff rcs cvssrc fileutils shellutils time textutils wdiff find emacs emacs19 uudecode hello tar gzip indent recode release sed utils guile perl apache inetgawk findutils snavigator libtool gettext zip fastjar"52 host_tools="texinfo byacc flex bison binutils ld gas gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool grep diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils snavigator libtool gettext zip fastjar" 59 53 60 54 # libgcj represents the runtime libraries only used by gcj. … … 71 65 target-libgloss \ 72 66 target-newlib \ 73 target-librx \74 67 ${libstdcxx_version} \ 75 68 target-libf2c \ … … 84 77 # candidates for the "native_only" list which follows 85 78 # 86 target_tools="target-examples target-groff target-gperf "79 target_tools="target-examples target-groff target-gperf target-rda" 87 80 88 81 ################################################################################ 89 90 ## These two lists are of directories that are to be removed from the91 ## ${configdirs} list for either cross-compilations or for native-92 ## compilations. For example, it doesn't make that much sense to93 ## cross-compile Emacs, nor is it terribly useful to compile target-libiberty in94 ## a native environment.95 96 # directories to be built in the native environment only97 #98 # This must be a single line because of the way it is searched by grep in99 # the code below.100 native_only="autoconf automake libtool cvssrc emacs emacs19 fileutils find gawk gettext grep gzip hello indent ispell m4 rcs recode sed shellutils tar textutils gash uudecode wdiff gprof target-groff guile perl apache inet time ash bash bzip2 prms snavigator gnuserv target-gperf"101 102 # directories to be built in a cross environment only103 #104 cross_only="target-libgloss target-newlib target-cygmon target-opcodes target-libstub"105 82 106 83 ## All tools belong in one of the four categories, and are assigned above … … 123 100 # per-host: 124 101 125 # Work in distributions that contain no compiler tools, like Autoconf. 126 if [ -d ${srcdir}/config ]; then 127 case "${host}" in 128 m68k-hp-hpux*) 129 host_makefile_frag="${host_makefile_frag} config/mh-hp300" 130 ;; 131 m68k-apollo-sysv*) 132 host_makefile_frag="${host_makefile_frag} config/mh-apollo68" 133 ;; 134 m68k-apollo-bsd*) 135 host_makefile_frag="${host_makefile_frag} config/mh-a68bsd" 136 ;; 137 m88k-dg-dgux*) 138 host_makefile_frag="${host_makefile_frag} config/mh-dgux" 139 ;; 140 m88k-harris-cxux*) 141 host_makefile_frag="${host_makefile_frag} config/mh-cxux" 142 ;; 143 m88k-motorola-sysv*) 144 host_makefile_frag="${host_makefile_frag} config/mh-delta88" 145 ;; 146 mips*-dec-ultrix*) 147 host_makefile_frag="${host_makefile_frag} config/mh-decstation" 148 ;; 149 mips*-nec-sysv4*) 150 host_makefile_frag="${host_makefile_frag} config/mh-necv4" 151 ;; 152 mips*-sgi-irix6*) 153 host_makefile_frag="${host_makefile_frag} config/mh-irix6" 154 ;; 155 mips*-sgi-irix5*) 156 host_makefile_frag="${host_makefile_frag} config/mh-irix5" 157 ;; 158 mips*-sgi-irix4*) 159 host_makefile_frag="${host_makefile_frag} config/mh-irix4" 160 ;; 161 mips*-sgi-irix3*) 162 host_makefile_frag="${host_makefile_frag} config/mh-sysv" 163 ;; 164 mips*-*-sysv4*) 165 host_makefile_frag="${host_makefile_frag} config/mh-sysv4" 166 ;; 167 mips*-*-sysv*) 168 host_makefile_frag="${host_makefile_frag} config/mh-riscos" 169 ;; 170 i370-ibm-opened*) 171 host_makefile_frag="${host_makefile_frag} config/mh-openedition" 172 ;; 173 i[3456]86-*-sysv5*) 174 host_makefile_frag="${host_makefile_frag} config/mh-sysv5" 175 ;; 176 i[3456]86-*-dgux*) 177 host_makefile_frag="${host_makefile_frag} config/mh-dgux386" 178 ;; 179 i[3456]86-ncr-sysv4.3*) 180 host_makefile_frag="${host_makefile_frag} config/mh-ncrsvr43" 181 ;; 182 i[3456]86-ncr-sysv4*) 183 host_makefile_frag="${host_makefile_frag} config/mh-ncr3000" 184 ;; 185 i[3456]86-*-sco3.2v5*) 186 host_makefile_frag="${host_makefile_frag} config/mh-sysv" 187 ;; 188 i[3456]86-*-sco*) 189 host_makefile_frag="${host_makefile_frag} config/mh-sco" 190 ;; 191 i[3456]86-*-udk*) 192 host_makefile_frag="${host_makefile_frag} config/mh-sysv5" 193 ;; 194 i[3456]86-*-isc*) 195 host_makefile_frag="${host_makefile_frag} config/mh-sysv" 196 ;; 197 i[3456]86-*-solaris2*) 198 host_makefile_frag="${host_makefile_frag} config/mh-sysv4" 199 ;; 200 i[3456]86-*-aix*) 201 host_makefile_frag="${host_makefile_frag} config/mh-aix386" 202 ;; 203 i[3456]86-*-msdosdjgpp*) 204 host_makefile_frag="${host_makefile_frag} config/mh-djgpp" 205 ;; 206 *-cygwin*) 207 host_makefile_frag="${host_makefile_frag} config/mh-cygwin" 208 ;; 209 *-mingw32*) 210 host_makefile_frag="${host_makefile_frag} config/mh-mingw32" 211 ;; 212 *-interix*) 213 host_makefile_frag="${host_makefile_frag} config/mh-interix" 214 ;; 215 *-windows*) 216 host_makefile_frag="${host_makefile_frag} config/mh-windows" 217 ;; 218 vax-*-ultrix2*) 219 host_makefile_frag="${host_makefile_frag} config/mh-vaxult2" 220 ;; 221 *-*-solaris2*) 222 host_makefile_frag="${host_makefile_frag} config/mh-solaris" 223 ;; 224 m68k-sun-sunos*) 225 host_makefile_frag="${host_makefile_frag} config/mh-sun3" 226 ;; 227 *-hp-hpux[78]*) 228 host_makefile_frag="${host_makefile_frag} config/mh-hpux8" 229 ;; 230 *-hp-hpux*) 231 host_makefile_frag="${host_makefile_frag} config/mh-hpux" 232 ;; 233 *-*-hiux*) 234 host_makefile_frag="${host_makefile_frag} config/mh-hpux" 235 ;; 236 rs6000-*-lynxos*) 237 host_makefile_frag="${host_makefile_frag} config/mh-lynxrs6k" 238 ;; 239 *-*-lynxos*) 240 host_makefile_frag="${host_makefile_frag} config/mh-lynxos" 241 ;; 242 *-*-sysv4*) 243 host_makefile_frag="${host_makefile_frag} config/mh-sysv4" 244 ;; 245 *-*-sysv*) 246 host_makefile_frag="${host_makefile_frag} config/mh-sysv" 247 ;; 248 esac 249 fi 250 251 # If we aren't going to be using gcc, see if we can extract a definition 252 # of CC from the fragment. 253 if [ -z "${CC}" ] && [ "${build}" = "${host}" ]; then 254 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 255 found= 256 for dir in $PATH; do 257 test -z "$dir" && dir=. 258 if test -f $dir/gcc; then 259 found=yes 260 break 261 fi 262 done 263 IFS="$save_ifs" 264 if [ -z "${found}" ] && [ -n "${host_makefile_frag}" ] && [ -f "${srcdir}/${host_makefile_frag}" ]; then 265 xx=`sed -n -e 's/^[ ]*CC[ ]*=[ ]*\(.*\)$/\1/p' < ${srcdir}/${host_makefile_frag}` 266 if [ -n "${xx}" ] ; then 267 CC=$xx 268 fi 269 fi 270 fi 271 272 # We default to --with-shared on platforms where -fpic is meaningless. 273 # Well, we don't yet, but we will. 274 if false && [ "${host}" = "${target}" ] && [ x${enable_shared} = x ]; then 275 case "${target}" in 276 alpha*-dec-osf*) enable_shared=yes ;; 277 alpha*-*-linux*) enable_shared=yes ;; 278 mips-sgi-irix5*) enable_shared=yes ;; 279 *) enable_shared=no ;; 280 esac 281 fi 282 283 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find 284 # them automatically. 285 case "${host}" in 286 hppa*64*-*-hpux11*) 287 withoptions="$withoptions -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" 288 ;; 289 esac 290 291 case "${enable_shared}" in 292 yes) shared=yes ;; 293 no) shared=no ;; 294 "") shared=no ;; 295 *) shared=yes ;; 296 esac 297 298 if [ x${shared} = xyes ]; then 299 case "${host}" in 300 alpha*-*-linux*) 301 host_makefile_frag="${host_makefile_frag} config/mh-elfalphapic" 302 ;; 303 arm*-*-*) 304 host_makefile_frag="${host_makefile_frag} config/mh-armpic" 305 ;; 306 parisc*-*-* | hppa*-*-*) 307 host_makefile_frag="${host_makefile_frag} config/mh-papic" 308 ;; 309 i[3456]86-*-cygwin*) 310 # We don't want -fPIC on Cygwin. 311 ;; 312 i[3456]86-*-*) 313 host_makefile_frag="${host_makefile_frag} config/mh-x86pic" 314 ;; 315 i370-*-*) 316 host_makefile_frag="${host_makefile_frag} config/mh-i370pic" 317 ;; 318 ia64-*-*) 319 host_makefile_frag="${host_makefile_frag} config/mh-ia64pic" 320 ;; 321 sparc64-*-*) 322 host_makefile_frag="${host_makefile_frag} config/mh-sparcpic" 323 ;; 324 powerpc*-*-aix*) 325 # We don't want -fPIC on AIX. 326 ;; 327 powerpc*-*-*) 328 host_makefile_frag="${host_makefile_frag} config/mh-ppcpic" 329 ;; 330 *-*-*) 331 if test -f ${srcdir}/config/mh-${host_cpu}pic; then 332 host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic" 333 fi 334 ;; 335 esac 336 fi 337 338 rm -f mh-frag 339 if [ -n "${host_makefile_frag}" ] ; then 340 for f in ${host_makefile_frag} 341 do 342 cat ${srcdir}/$f >> mh-frag 343 done 344 host_makefile_frag=mh-frag 345 fi 102 # There is no longer anything interesting in the per-host section. 346 103 347 104 # per-target: 348 105 349 case "${target}" in 350 v810*) 351 target_makefile_frag="${target_makefile_frag} config/mt-v810" 352 ;; 353 i[3456]86-*-netware*) 354 target_makefile_frag="${target_makefile_frag} config/mt-netware" 355 ;; 356 powerpc-*-netware*) 357 target_makefile_frag="${target_makefile_frag} config/mt-netware" 358 ;; 359 alpha*-*-linux*) 360 target_makefile_frag="${target_makefile_frag} config/mt-linux" 361 target_makefile_frag="${target_makefile_frag} config/mt-alphaieee" 362 ;; 363 alpha*-*-*) 364 target_makefile_frag="${target_makefile_frag} config/mt-alphaieee" 365 ;; 366 *-*-linux*) 367 target_makefile_frag="${target_makefile_frag} config/mt-linux" 368 ;; 369 *-*-aix4.[3456789]* | *-*-aix[56789].*) 370 target_makefile_frag="${target_makefile_frag} config/mt-aix43" 371 ;; 372 mips*-*-pe | sh*-*-pe | *arm-wince-pe) 373 target_makefile_frag="${target_makefile_frag} config/mt-wince" 374 ;; 375 esac 376 377 # If --enable-target-optspace always use -Os instead of -O2 to build 378 # the target libraries, similarly if it is not specified, use -Os 379 # on selected platforms. 380 case "${enable_target_optspace}:${target}" in 381 yes:*) 382 target_makefile_frag="${target_makefile_frag} config/mt-ospace" 383 ;; 384 :d30v-*) 385 target_makefile_frag="${target_makefile_frag} config/mt-d30v" 386 ;; 387 :m32r-* | :d10v-* | :fr30-*) 388 target_makefile_frag="${target_makefile_frag} config/mt-ospace" 389 ;; 390 no:* | :*) 391 ;; 392 *) 393 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 394 ;; 395 esac 396 397 skipdirs= 398 gasdir=gas 399 use_gnu_ld= 400 use_gnu_as= 401 402 # some tools are so dependent upon X11 that if we're not building with X, 403 # it's not even worth trying to configure, much less build, that tool. 404 405 case ${with_x} in 406 yes | "") # the default value for this tree is that X11 is available 407 ;; 408 no) 409 skipdirs="${skipdirs} tk libgui gash" 410 ;; 411 *) 412 echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 413 ;; 414 esac 415 416 # Some tools are only suitable for building in a "native" situation. 417 # Those are added when we have a host==target configuration. For cross 418 # toolchains, we add some directories that should only be useful in a 419 # cross-compiler. 420 106 # Define is_cross_compiler to save on calls to 'test'. 421 107 is_cross_compiler= 422 423 if [ x"${host}" = x"${target}" ] ; then 424 # when doing a native toolchain, don't build the targets 425 # that are in the 'cross only' list 426 skipdirs="${skipdirs} ${cross_only}" 427 is_cross_compiler=no 108 if test x"${host}" = x"${target}" ; then 109 is_cross_compiler=no 428 110 else 429 # similarly, don't build the targets in the 'native only' 430 # list when building a cross compiler 431 skipdirs="${skipdirs} ${native_only}" 432 is_cross_compiler=yes 111 is_cross_compiler=yes 433 112 fi 434 113 … … 437 116 target_subdir=${target_alias} 438 117 439 if [ ! -d ${target_subdir} ]; then118 if test ! -d ${target_subdir} ; then 440 119 if mkdir ${target_subdir} ; then true 441 120 else 442 echo "'*** could not make ${PWD=` pwd`}/${target_subdir}" 1>&2121 echo "'*** could not make ${PWD=`${PWDCMD-pwd}`}/${target_subdir}" 1>&2 443 122 exit 1 444 123 fi … … 447 126 build_subdir=${build_alias} 448 127 449 if [ x"${build_alias}" != x"${host}" ]; then450 if [ ! -d ${build_subdir} ]; then128 if test x"${build_alias}" != x"${host}" ; then 129 if test ! -d ${build_subdir} ; then 451 130 if mkdir ${build_subdir} ; then true 452 131 else 453 echo "'*** could not make ${PWD=` pwd`}/${build_subdir}" 1>&2132 echo "'*** could not make ${PWD=`${PWDCMD-pwd}`}/${build_subdir}" 1>&2 454 133 exit 1 455 134 fi … … 457 136 fi 458 137 459 copy_dirs= 460 461 # Handle --with-headers=XXX. The contents of the named directory are 462 # copied to $(tooldir)/sys-include. 463 if [ x"${with_headers}" != x ]; then 464 if [ x${is_cross_compiler} = xno ]; then 465 echo 1>&2 '***' --with-headers is only supported when cross compiling 466 exit 1 467 fi 468 case "${exec_prefixoption}" in 469 "") x=${prefix} ;; 470 *) x=${exec_prefix} ;; 471 esac 472 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include" 473 fi 474 475 # Handle --with-libs=XXX. Multiple directories are permitted. The 476 # contents are copied to $(tooldir)/lib. 477 if [ x"${with_libs}" != x ]; then 478 if [ x${is_cross_compiler} = xno ]; then 479 echo 1>&2 '***' --with-libs is only supported when cross compiling 480 exit 1 481 fi 482 # Copy the libraries in reverse order, so that files in the first named 483 # library override files in subsequent libraries. 484 case "${exec_prefixoption}" in 485 "") x=${prefix} ;; 486 *) x=${exec_prefix} ;; 487 esac 488 for l in ${with_libs}; do 489 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}" 490 done 491 fi 138 # Skipdirs are removed silently. 139 skipdirs= 140 # Noconfigdirs are removed loudly. 141 noconfigdirs="" 142 143 use_gnu_ld= 144 # Make sure we don't let GNU ld be added if we didn't want it. 145 if test x$with_gnu_ld = xno ; then 146 use_gnu_ld=no 147 noconfigdirs="$noconfigdirs ld" 148 fi 149 150 use_gnu_as= 151 # Make sure we don't let GNU as be added if we didn't want it. 152 if test x$with_gnu_as = xno ; then 153 use_gnu_as=no 154 noconfigdirs="$noconfigdirs gas" 155 fi 156 157 # some tools are so dependent upon X11 that if we're not building with X, 158 # it's not even worth trying to configure, much less build, that tool. 159 160 case ${with_x} in 161 yes | "") ;; # the default value for this tree is that X11 is available 162 no) 163 skipdirs="${skipdirs} tk tix itcl libgui" 164 # We won't be able to build gdbtk without X. 165 enable_gdbtk=no 166 ;; 167 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; 168 esac 169 170 # Some tools are only suitable for building in a "native" situation. 171 # Remove these if host!=target. 172 native_only="autoconf automake libtool fileutils find gawk gettext grep gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms snavigator gnuserv target-gperf" 173 174 # Similarly, some are only suitable for cross toolchains. 175 # Remove these if host=target. 176 cross_only="target-libgloss target-newlib target-opcodes" 177 178 case $is_cross_compiler in 179 no) skipdirs="${skipdirs} ${cross_only}" ;; 180 yes) skipdirs="${skipdirs} ${native_only}" ;; 181 esac 492 182 493 183 # If both --with-headers and --with-libs are specified, default to 494 184 # --without-newlib. 495 if [ x"${with_headers}" != x ] && [ x"${with_libs}" != x ]; then496 if [ x"${with_newlib}" = x ]; then185 if test x"${with_headers}" != x && test x"${with_libs}" != x ; then 186 if test x"${with_newlib}" = x ; then 497 187 with_newlib=no 498 188 fi … … 500 190 501 191 # Recognize --with-newlib/--without-newlib. 502 if [ x${with_newlib} = xno ]; then 503 skipdirs="${skipdirs} target-newlib" 504 elif [ x${with_newlib} = xyes ]; then 505 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 506 fi 507 508 # Default to using --with-stabs for certain targets. 509 if [ x${with_stabs} = x ]; then 510 case "${target}" in 511 mips*-*-irix6*) 512 ;; 513 mips*-*-* | alpha*-*-osf*) 514 with_stabs=yes; 515 withoptions="${withoptions} --with-stabs" 516 ;; 517 esac 518 fi 519 520 # Handle ${copy_dirs} 521 set fnord ${copy_dirs} 522 shift 523 while [ $# != 0 ]; do 524 if [ -f $2/COPIED ] && [ x"`cat $2/COPIED`" = x"$1" ]; then 525 : 526 else 527 echo Copying $1 to $2 528 529 # Use the install script to create the directory and all required 530 # parent directories. 531 if [ -d $2 ]; then 532 : 533 else 534 echo >config.temp 535 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED 536 fi 537 538 # Copy the directory, assuming we have tar. 539 # FIXME: Should we use B in the second tar? Not all systems support it. 540 (cd $1; tar -cf - .) | (cd $2; tar -xpf -) 541 542 # It is the responsibility of the user to correctly adjust all 543 # symlinks. If somebody can figure out how to handle them correctly 544 # here, feel free to add the code. 545 546 echo $1 > $2/COPIED 547 fi 548 shift; shift 549 done 192 case ${with_newlib} in 193 no) skipdirs="${skipdirs} target-newlib" ;; 194 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; 195 esac 550 196 551 197 # Configure extra directories which are host specific 552 198 553 199 case "${host}" in 554 555 556 557 558 559 200 i[3456]86-*-go32*) 201 configdirs="$configdirs dosrel" ;; 202 i[3456]86-*-mingw32*) 203 configdirs="$configdirs dosrel" ;; 204 *-cygwin*) 205 configdirs="$configdirs libtermcap dosrel" ;; 560 206 esac 561 207 … … 564 210 # exist yet. 565 211 566 noconfigdirs=""567 568 212 case "${host}" in 569 213 hppa*64*-*-*) … … 571 215 ;; 572 216 i[3456]86-*-vsta) 573 noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl apache inetitcl tix db snavigator gnuserv gettext"217 noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix db snavigator gnuserv gettext" 574 218 ;; 575 219 i[3456]86-*-go32* | i[3456]86-*-msdosdjgpp*) 576 noconfigdirs="tcl tk expect dejagnu send-pr uudecode guile apache inetitcl tix db snavigator gnuserv libffi"220 noconfigdirs="tcl tk expect dejagnu send-pr uudecode guile itcl tix db snavigator gnuserv libffi" 577 221 ;; 578 222 i[3456]86-*-mingw32*) 579 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl apache inetitcl tix db snavigator gnuserv"580 noconfigdirs="expect dejagnu cvs autoconf automake send-pr rcs guile perl texinfo apache inetlibtool"223 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix db snavigator gnuserv" 224 noconfigdirs="expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool" 581 225 ;; 582 226 i[3456]86-*-beos*) … … 584 228 ;; 585 229 *-*-cygwin*) 586 noconfigdirs="autoconf automake send-pr rcs guile perl apache inet"230 noconfigdirs="autoconf automake send-pr rcs guile perl" 587 231 ;; 588 232 *-*-netbsd*) … … 590 234 ;; 591 235 ppc*-*-pe) 592 noconfigdirs="patch diff make tk tcl expect dejagnu cvssrc autoconf automake texinfo bison send-pr gprof rcs guile perl apache inetitcl tix db snavigator gnuserv"236 noconfigdirs="patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix db snavigator gnuserv" 593 237 ;; 594 238 powerpc-*-beos*) 595 239 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline" 240 ;; 241 *-*-darwin*) 242 noconfigdirs="$noconfigdirs tk itcl tix libgui" 596 243 ;; 597 244 esac … … 622 269 *-*-netbsd*) 623 270 # Skip some stuff on all NetBSD configurations. 624 skipdirs="$skipdirs target-newlib target-libiberty target-libgloss"271 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" 625 272 626 273 # Skip some stuff that's unsupported on some NetBSD configurations. … … 633 280 ;; 634 281 *-*-netware) 635 noconfigdirs="$noconfigdirs ${libstdcxx_version} target- librx target-newlib target-libiberty target-libgloss ${libgcj}"282 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-newlib target-libiberty target-libgloss ${libgcj}" 636 283 ;; 637 284 *-*-rtems*) … … 648 295 ;; 649 296 alpha*-dec-osf*) 650 # ld works, but does not support shared libraries. emacs doesn't651 # work.newlib is not 64 bit ready. I'm not sure about fileutils.297 # ld works, but does not support shared libraries. 298 # newlib is not 64 bit ready. I'm not sure about fileutils. 652 299 # gas doesn't generate exception information. 653 noconfigdirs="$noconfigdirs gas ld emacsfileutils target-newlib target-libgloss"300 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" 654 301 ;; 655 302 alpha*-*-*vms*) … … 659 306 # newlib is not 64 bit ready 660 307 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 661 # linux has rx in libc662 skipdirs="$skipdirs target-librx"663 308 ;; 664 309 alpha*-*-freebsd*) … … 671 316 sh-*-linux*) 672 317 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" 673 # linux has rx in libc674 skipdirs="$skipdirs target-librx"675 318 ;; 676 319 sh*-*-pe|mips*-*-pe|*arm-wince-pe) … … 682 325 # the C++ libraries don't build on top of CE's C libraries 683 326 noconfigdirs="$noconfigdirs ${libstdcxx_version}" 684 skipdirs="$skipdirs target-newlib"327 noconfigdirs="$noconfigdirs target-newlib" 685 328 case "${host}" in 686 329 *-*-cygwin*) ;; # keep gdb and readline … … 692 335 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 693 336 ;; 337 arm-*-coff | strongarm-*-coff | xscale-*-coff) 338 noconfigdirs="$noconfigdirs ${libgcj}" 339 ;; 340 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*) 341 noconfigdirs="$noconfigdirs target-libffi target-qthreads" 342 ;; 694 343 arm-*-pe*) 695 344 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 696 345 ;; 697 arm-*-coff*)698 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"699 if [ x${is_cross_compiler} != xno ] ; then700 target_configdirs="${target_configdirs} target-bsp target-cygmon"701 fi702 ;;703 arm-*-elf*)704 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"705 if [ x${is_cross_compiler} != xno ] ; then706 target_configdirs="${target_configdirs} target-bsp target-cygmon"707 fi708 ;;709 346 arm-*-oabi*) 710 347 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 711 348 ;; 712 c4x-*-*) 713 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-librx target-libgloss ${libgcj}" 349 thumb-*-coff) 350 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 351 ;; 352 thumb-*-elf) 353 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 354 ;; 355 thumb-*-oabi) 356 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 357 ;; 358 thumb-*-pe) 359 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 360 ;; 361 arm-*-riscix*) 362 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" 363 ;; 364 avr-*-*) 365 noconfigdirs="$noconfigdirs target-libiberty ${libstdcxx_version} ${libgcj}" 366 ;; 367 c4x-*-* | tic4x-*-*) 368 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}" 714 369 ;; 715 370 c54x*-*-* | tic54x-*-*) 716 371 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj} gcc gdb newlib" 717 372 ;; 718 thumb-*-coff)719 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"720 ;;721 thumb-*-elf)722 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"723 ;;724 thumb-*-oabi)725 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"726 ;;727 strongarm-*-elf)728 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"729 if [ x${is_cross_compiler} != xno ] ; then730 target_configdirs="${target_configdirs} target-bsp target-cygmon"731 fi732 ;;733 strongarm-*-coff)734 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"735 if [ x${is_cross_compiler} != xno ] ; then736 target_configdirs="${target_configdirs} target-bsp target-cygmon"737 fi738 ;;739 xscale-*-elf)740 noconfigdirs="$noconfigdirs target-libgloss target-libffi target-qthreads"741 if [ x${is_cross_compiler} != xno ] ; then742 target_configdirs="${target_configdirs} target-bsp target-cygmon"743 fi744 ;;745 xscale-*-coff)746 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"747 if [ x${is_cross_compiler} != xno ] ; then748 target_configdirs="${target_configdirs} target-bsp target-cygmon"749 fi750 ;;751 thumb-*-pe)752 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"753 ;;754 arm-*-riscix*)755 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"756 ;;757 373 cris-*-*) 758 374 noconfigdirs="$noconfigdirs ${libgcj}" 759 375 ;; 760 376 d10v-*-*) 761 noconfigdirs="$noconfigdirs target-librx${libstdcxx_version} target-libgloss ${libgcj}"377 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}" 762 378 ;; 763 379 d30v-*-*) … … 766 382 fr30-*-elf*) 767 383 noconfigdirs="$noconfigdirs ${libgcj}" 768 if [ x${is_cross_compiler} != xno ] ; then 769 target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon" 770 fi 771 ;; 772 h8300*-*-* | \ 384 ;; 385 frv-*-*) 386 noconfigdirs="$noconfigdirs ${libgcj}" 387 ;; 388 h8300*-*-*) 389 noconfigdirs="$noconfigdirs target-libgloss" 390 ;; 773 391 h8500-*-*) 774 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-lib rx target-libgloss ${libgcj} target-libf2c"392 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj} target-libf2c" 775 393 ;; 776 394 hppa*64*-*-linux* | parisc*64*-*-linux*) … … 783 401 parisc*-*-linux* | hppa*-*-linux* | \ 784 402 hppa*-*-lites* | \ 403 hppa*-*-openbsd* | \ 785 404 hppa*64*-*-*) 786 405 noconfigdirs="$noconfigdirs ${libgcj}" … … 788 407 ;; 789 408 hppa*-*-*) 790 # HP's C compiler doesn't handle Emacs correctly (but on BSD and Mach791 # cc is gcc, and on any system a user should be able to link cc to792 # whatever they want. FIXME, emacs emacs19).793 case "${CC}" in794 "" | cc*) noconfigdirs="$noconfigdirs emacs emacs19" ;;795 *) ;;796 esac797 409 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't 798 410 # build on HP-UX 10.20. … … 803 415 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb" 804 416 ;; 417 ia64*-**-hpux*) 418 # No gdb or ld support yet. 419 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld" 420 ;; 805 421 i[3456]86-*-coff | i[3456]86-*-elf) 806 422 noconfigdirs="$noconfigdirs ${libgcj}" 807 if [ x${is_cross_compiler} != xno ] ; then808 target_configdirs="${target_configdirs} target-libstub target-cygmon"809 fi810 423 ;; 811 424 i[34567]86-*-freebsd*) 812 425 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 813 426 ;; 814 s390*-*-linux*) 815 # The libffi port is not yet in the GCC tree 816 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 817 # linux has rx in libc 818 skipdirs="$skipdirs target-librx" 819 ;; 820 *-*-linux*) 821 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 822 # linux has rx in libc 823 skipdirs="$skipdirs target-librx" 427 i[3456]86-*-linux*) 428 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's 429 # not build java stuff by default. 430 case "${target}" in 431 *-*-*libc1*) 432 noconfigdirs="$noconfigdirs ${libgcj}";; 433 esac 434 435 # This section makes it possible to build newlib natively on linux. 436 # If we are using a cross compiler then don't configure newlib. 437 if test x${is_cross_compiler} != xno ; then 438 noconfigdirs="$noconfigdirs target-newlib" 439 fi 440 noconfigdirs="$noconfigdirs target-libgloss" 441 # If we are not using a cross compiler, do configure newlib. 442 # Note however, that newlib will only be configured in this situation 443 # if the --with-newlib option has been given, because otherwise 444 # 'target-newlib' will appear in skipdirs. 824 445 ;; 825 446 i[3456]86-*-mingw32*) … … 848 469 ;; 849 470 i[3456]86-*-pe) 850 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-lib rx target-libgloss ${libgcj}"471 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}" 851 472 ;; 852 473 i[3456]86-*-sco3.2v5*) 853 474 # The linker does not yet know about weak symbols in COFF, 854 475 # and is not configured to handle mixed ELF and COFF. 855 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"476 noconfigdirs="$noconfigdirs ld target-libgloss" 856 477 ;; 857 478 i[3456]86-*-sco*) … … 862 483 ;; 863 484 i[3456]86-*-sysv4*) 864 # The SYSV4 C compiler doesn't handle Emacs correctly 865 case "${CC}" in 866 "" | cc*) noconfigdirs="$noconfigdirs emacs emacs19" ;; 867 *) ;; 868 esac 869 # but that's okay since emacs doesn't work anyway 870 noconfigdirs="$noconfigdirs emacs emacs19 target-libgloss ${libgcj}" 485 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 871 486 ;; 872 487 i[3456]86-*-beos*) … … 878 493 m68k-*-elf*) 879 494 noconfigdirs="$noconfigdirs ${libgcj}" 880 if [ x${is_cross_compiler} != xno ] ; then881 target_configdirs="${target_configdirs} target-bsp target-cygmon"882 fi883 495 ;; 884 496 m68k-*-coff*) 885 497 noconfigdirs="$noconfigdirs ${libgcj}" 886 if [ x${is_cross_compiler} != xno ] ; then887 target_configdirs="${target_configdirs} target-bsp target-cygmon"888 fi889 498 ;; 890 499 mcore-*-pe*) … … 898 507 mn10200-*-*) 899 508 noconfigdirs="$noconfigdirs ${libgcj}" 900 if [ x${is_cross_compiler} != xno ] ; then901 target_configdirs="${target_configdirs} target-libstub target-cygmon"902 fi903 509 ;; 904 510 mn10300-*-*) 905 511 noconfigdirs="$noconfigdirs ${libgcj}" 906 if [ x${is_cross_compiler} != xno ] ; then907 target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon"908 fi909 512 ;; 910 513 powerpc-*-aix*) 911 514 # copied from rs6000-*-* entry 912 # The configure and build of ld are currently disabled because 913 # GNU ld is known to be broken for AIX 4.2 and 4.3 (at least) 914 # The symptom is that GDBtk 4.18 fails at startup with a segfault 915 # if linked by GNU ld, but not if linked by the native ld. 916 noconfigdirs="$noconfigdirs gprof cvssrc target-libgloss ${libgcj} ld" 917 use_gnu_ld=no 515 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 918 516 ;; 919 517 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) … … 930 528 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" 931 529 ;; 530 powerpc-*-darwin*) 531 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof ${libgcj}" 532 ;; 932 533 powerpc-*-eabi) 933 534 noconfigdirs="$noconfigdirs ${libgcj}" 934 if [ x${is_cross_compiler} != xno ] ; then 935 target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon" 936 fi 535 ;; 536 powerpc64*-*-linux*) 537 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 538 # not yet ported. 539 noconfigdirs="$noconfigdirs target-libffi" 937 540 ;; 938 541 rs6000-*-lynxos*) 939 # The CVS server code doesn't work on the RS/6000 940 noconfigdirs="$noconfigdirs target-newlib gprof cvssrc ${libgcj}" 542 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" 941 543 ;; 942 544 rs6000-*-aix*) 943 # The configure and build of ld are currently disabled because 944 # GNU ld is known to be broken for AIX 4.2 and 4.3 (at least) 945 # The symptom is that GDBtk 4.18 fails at startup with a segfault 946 # if linked by GNU ld, but not if linked by the native ld. 947 noconfigdirs="$noconfigdirs gprof ld ${libgcj}" 948 use_gnu_ld=no 545 noconfigdirs="$noconfigdirs gprof ${libgcj}" 949 546 ;; 950 547 rs6000-*-*) … … 956 553 mips*-*-irix5*) 957 554 # The GNU linker does not support shared libraries. 958 # emacs is emacs 18, which does not work on Irix 5 (emacs19 does work) 959 noconfigdirs="$noconfigdirs ld gprof emacs target-libgloss ${libgcj}" 555 noconfigdirs="$noconfigdirs ld gprof target-libgloss ${libgcj}" 960 556 ;; 961 557 mips*-*-irix6*) 962 558 # The GNU assembler does not support IRIX 6. 963 # emacs is emacs 18, which does not work on Irix 5 (emacs19 does work)964 559 # Linking libjava exceeds command-line length limits on at least 965 560 # IRIX 6.2, but not on IRIX 6.5. 966 561 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham 967 562 # <oldham@codesourcery.com> 968 noconfigdirs="$noconfigdirs gas gprof emacstarget-libgloss ${libgcj}"563 noconfigdirs="$noconfigdirs gas gprof target-libgloss ${libgcj}" 969 564 ;; 970 565 mips*-dec-bsd*) … … 976 571 mipstx39-*-*) 977 572 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips 978 target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon"979 573 ;; 980 574 mips*-*-linux*) 981 noconfigdirs="$noconfigdirs target- libffi"575 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 982 576 ;; 983 577 mips*-*-*) … … 1000 594 ;; 1001 595 sparc-*-elf*) 1002 if [ x${is_cross_compiler} != xno ] ; then1003 target_configdirs="${target_configdirs} target-libstub target-cygmon"1004 fi1005 596 noconfigdirs="$noconfigdirs ${libgcj}" 1006 597 ;; 1007 598 sparc64-*-elf*) 1008 if [ x${is_cross_compiler} != xno ] ; then1009 target_configdirs="${target_configdirs} target-libstub target-cygmon"1010 fi1011 599 noconfigdirs="$noconfigdirs ${libgcj}" 1012 600 ;; 1013 601 sparclite-*-*) 1014 if [ x${is_cross_compiler} != xno ] ; then1015 target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon"1016 fi1017 602 noconfigdirs="$noconfigdirs ${libgcj}" 1018 603 ;; 1019 604 sparc-*-sunos4*) 1020 605 noconfigdirs="$noconfigdirs ${libgcj}" 1021 if [ x${is_cross_compiler} != xno ]; then1022 noconfigdirs="$noconfigdirs gdb gdbtesttarget-newlib target-libgloss"606 if test x${is_cross_compiler} != xno ; then 607 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" 1023 608 else 1024 609 use_gnu_ld=no … … 1045 630 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1046 631 ;; 632 ip2k-*-*) 633 noconfigdirs="$noconfigdirs target-libiberty ${libstdcxx_version} ${libgcj}" 634 ;; 635 *-*-linux*) 636 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 637 ;; 1047 638 *-*-lynxos*) 1048 639 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1049 640 ;; 1050 *-*-macos* | \1051 *-*-mpw*)1052 # Macs want a resource compiler.1053 configdirs="$configdirs grez"1054 noconfigdirs="$noconfigdirs ${libgcj}"1055 ;;1056 641 *-*-*) 1057 642 noconfigdirs="$noconfigdirs ${libgcj}" … … 1065 650 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; 1066 651 esac 1067 1068 # Make sure we don't let GNU ld be added if we didn't want it.1069 if [ x$with_gnu_ld = xno ]; then1070 use_gnu_ld=no1071 noconfigdirs="$noconfigdirs ld"1072 fi1073 1074 # Make sure we don't let GNU as be added if we didn't want it.1075 if [ x$with_gnu_as = xno ]; then1076 use_gnu_as=no1077 noconfigdirs="$noconfigdirs gas"1078 fi1079 652 1080 653 # Figure out what language subdirectories are present. … … 1172 745 for dir in . $skipdirs $noconfigdirs ; do 1173 746 dirname=`echo $dir | sed -e s/target-//g` 1174 if [ $dir != . ]&& echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then747 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 1175 748 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` 1176 if [ -r $srcdir/$dirname/configure ] \ 1177 || [ -r $srcdir/$dirname/configure.in ]; then 749 if test -r $srcdir/$dirname/configure ; then 1178 750 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 1179 751 true … … 1183 755 fi 1184 756 fi 1185 if [ $dir != . ]&& echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then757 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 1186 758 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` 1187 if [ -r $srcdir/$dirname/configure ] \ 1188 || [ -r $srcdir/$dirname/configure.in ]; then 759 if test -r $srcdir/$dirname/configure ; then 1189 760 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 1190 761 true … … 1198 769 # Sometimes the tools are distributed with libiberty but with no other 1199 770 # libraries. In that case, we don't want to build target-libiberty. 1200 if [ -n "${target_configdirs}" ]; then771 if test -n "${target_configdirs}" ; then 1201 772 others= 1202 773 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do 1203 if [ "$i" != "libiberty" ]; then1204 if [ -r $srcdir/$i/configure ] || [ -r $srcdir/$i/configure.in ]; then774 if test "$i" != "libiberty" ; then 775 if test -r $srcdir/$i/configure ; then 1205 776 others=yes; 1206 777 break; … … 1208 779 fi 1209 780 done 1210 if [ -z "${others}" ]; then781 if test -z "${others}" ; then 1211 782 target_configdirs= 1212 783 fi … … 1216 787 # configuration from one where a subdirectory is supported to one where it 1217 788 # is not. 1218 if [ -z "${norecursion}" ] && [ -n "${configdirs}" ]; then789 if test -z "${norecursion}" && test -n "${configdirs}" ; then 1219 790 for i in `echo ${configdirs} | sed -e s/target-//g` ; do 1220 791 rm -f $i/Makefile 1221 792 done 1222 793 fi 1223 if [ -z "${norecursion}" ] && [ -n "${target_configdirs}" ]; then794 if test -z "${norecursion}" && test -n "${target_configdirs}" ; then 1224 795 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do 1225 796 rm -f ${target_subdir}/$i/Makefile 1226 797 done 1227 798 fi 799 800 # Quietly strip out all directories which aren't configurable in this tree. 801 # This relies on all configurable subdirectories being autoconfiscated, which 802 # is now the case. 803 configdirs_all="$configdirs" 804 configdirs= 805 for i in ${configdirs_all} ; do 806 if test -f ${srcdir}/$i/configure ; then 807 configdirs="${configdirs} $i" 808 fi 809 done 810 target_configdirs_all="$target_configdirs" 811 target_configdirs= 812 for i in ${target_configdirs_all} ; do 813 j=`echo $i | sed -e s/target-//g` 814 if test -f ${srcdir}/$j/configure ; then 815 target_configdirs="${target_configdirs} $i" 816 fi 817 done 1228 818 1229 819 # Produce a warning message for the subdirs we can't configure. … … 1232 822 # supported by the one or two programs in a package. 1233 823 1234 if [ -n "${notsupp}" ] && [ -z "${norecursion}" ]; then824 if test -n "${notsupp}" && test -z "${norecursion}" ; then 1235 825 # If $appdirs is non-empty, at least one of those directories must still 1236 826 # be configured, or we error out. (E.g., if the gas release supports a 1237 827 # specified target in some subdirs but not the gas subdir, we shouldn't 1238 828 # pretend that all is well.) 1239 if [ -n "$appdirs" ]; then829 if test -n "$appdirs" ; then 1240 830 for dir in $appdirs ; do 1241 if [ -r $dir/Makefile.in ]; then831 if test -r $dir/Makefile.in ; then 1242 832 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 1243 833 appdirs="" … … 1250 840 fi 1251 841 done 1252 if [ -n "$appdirs" ]; then842 if test -n "$appdirs" ; then 1253 843 echo "*** This configuration is not supported by this package." 1>&2 1254 844 exit 1 … … 1260 850 echo " ${notsupp}" 1>&2 1261 851 echo " (Any other directories should still work fine.)" 1>&2 852 fi 853 854 case "$host" in 855 *msdosdjgpp*) 856 enable_gdbtk=no ;; 857 esac 858 # Determine whether gdb needs tk/tcl or not. 859 case "$enable_gdbtk" in 860 no) 861 GDB_TK="" ;; 862 *) 863 GDB_TK="all-tcl all-tk all-itcl all-tix all-libgui" ;; 864 esac 865 866 copy_dirs= 867 868 # Handle --with-headers=XXX. If the value is not "yes", the contents of 869 # the named directory are copied to $(tooldir)/sys-include. 870 if test x"${with_headers}" != x ; then 871 if test x${is_cross_compiler} = xno ; then 872 echo 1>&2 '***' --with-headers is only supported when cross compiling 873 exit 1 874 fi 875 if test x"${with_headers}" != xyes ; then 876 case "${exec_prefixoption}" in 877 "") x=${prefix} ;; 878 *) x=${exec_prefix} ;; 879 esac 880 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include" 881 fi 882 fi 883 884 # Handle --with-libs=XXX. If the value is not "yes", the contents of 885 # the name directories are copied to $(tooldir)/lib. Multiple directories 886 # are permitted. 887 if test x"${with_libs}" != x ; then 888 if test x${is_cross_compiler} = xno ; then 889 echo 1>&2 '***' --with-libs is only supported when cross compiling 890 exit 1 891 fi 892 if test x"${with_libs}" != xyes ; then 893 # Copy the libraries in reverse order, so that files in the first named 894 # library override files in subsequent libraries. 895 case "${exec_prefixoption}" in 896 "") x=${prefix} ;; 897 *) x=${exec_prefix} ;; 898 esac 899 for l in ${with_libs}; do 900 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}" 901 done 902 fi 903 fi 904 905 # Handle ${copy_dirs} 906 set fnord ${copy_dirs} 907 shift 908 while test $# != 0 ; do 909 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then 910 : 911 else 912 echo Copying $1 to $2 913 914 # Use the install script to create the directory and all required 915 # parent directories. 916 if test -d $2 ; then 917 : 918 else 919 echo >config.temp 920 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED 921 fi 922 923 # Copy the directory, assuming we have tar. 924 # FIXME: Should we use B in the second tar? Not all systems support it. 925 (cd $1; tar -cf - .) | (cd $2; tar -xpf -) 926 927 # It is the responsibility of the user to correctly adjust all 928 # symlinks. If somebody can figure out how to handle them correctly 929 # here, feel free to add the code. 930 931 echo $1 > $2/COPIED 932 fi 933 shift; shift 934 done 935 936 # Work in distributions that contain no compiler tools, like Autoconf. 937 tentative_cc="" 938 if test -d ${srcdir}/config ; then 939 case "${host}" in 940 m68k-hp-hpux*) 941 # Avoid "too much defining" errors from HPUX compiler. 942 tentative_cc="cc -Wp,-H256000" 943 host_makefile_frag="config/mh-hp300" 944 ;; 945 m68k-apollo-sysv*) 946 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" 947 host_makefile_frag="config/mh-apollo68" 948 ;; 949 m68k-apollo-bsd*) 950 #None of the Apollo compilers can compile gas or binutils. The preprocessor 951 # chokes on bfd, the compiler won't let you assign integers to enums, and 952 # other problems. Defining CC to gcc is a questionable way to say "don't use 953 # the apollo compiler" (the preferred version of GCC could be called cc, 954 # or whatever), but I'm not sure leaving CC as cc is any better... 955 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG 956 tentative_cc=gcc 957 host_makefile_frag="config/mh-a68bsd" 958 ;; 959 m88k-dg-dgux*) 960 tentative_cc="gcc -Wall -ansi -D__using_DGUX" 961 host_makefile_frag="config/mh-dgux" 962 ;; 963 m88k-harris-cxux*) 964 # Under CX/UX, we want to tell the compiler to use ANSI mode. 965 tentative_cc="cc -Xa" 966 host_makefile_frag="config/mh-cxux" 967 ;; 968 m88k-motorola-sysv*) 969 host_makefile_frag="config/mh-delta88" 970 ;; 971 mips*-dec-ultrix*) 972 tentative_cc="cc -Wf,-XNg1000" 973 host_makefile_frag="config/mh-decstation" 974 ;; 975 mips*-nec-sysv4*) 976 # The C compiler on NEC MIPS SVR4 needs bigger tables. 977 tentative_cc="cc -ZXNd=5000 -ZXNg=1000" 978 host_makefile_frag="config/mh-necv4" 979 ;; 980 mips*-sgi-irix6*) 981 host_makefile_frag="config/mh-irix6" 982 ;; 983 mips*-sgi-irix5*) 984 host_makefile_frag="config/mh-irix5" 985 ;; 986 mips*-sgi-irix4*) 987 # Tell compiler to use K&R C. We can't compile under the SGI Ansi 988 # environment. Also bump switch table size so that cp-parse will 989 # compile. Bump string length limit so linker builds. 990 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192" 991 ;; 992 mips*-sgi-irix3*) 993 host_makefile_frag="config/mh-sysv" 994 ;; 995 mips*-*-sysv4*) 996 host_makefile_frag="config/mh-sysv4" 997 ;; 998 mips*-*-sysv*) 999 # This is for a MIPS running RISC/os 4.52C. 1000 1001 # This is needed for GDB, but needs to be in the top-level make because 1002 # if a library is compiled with the bsd headers and gets linked with the 1003 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be 1004 # a different size). 1005 # ptrace(2) apparently has problems in the BSD environment. No workaround is 1006 # known except to select the sysv environment. Could we use /proc instead? 1007 # These "sysv environments" and "bsd environments" often end up being a pain. 1008 # 1009 # This is not part of CFLAGS because perhaps not all C compilers have this 1010 # option. 1011 tentative_cc="cc -systype sysv" 1012 host_makefile_frag="config/mh-riscos" 1013 ;; 1014 i370-ibm-opened*) 1015 tentative_cc="c89" 1016 host_makefile_frag="config/mh-openedition" 1017 ;; 1018 i[3456]86-*-sysv5*) 1019 host_makefile_frag="config/mh-sysv5" 1020 ;; 1021 i[3456]86-*-dgux*) 1022 tentative_cc="gcc -Wall -ansi -D__using_DGUX" 1023 host_makefile_frag="config/mh-dgux386" 1024 ;; 1025 i[3456]86-ncr-sysv4.3*) 1026 # The MetaWare compiler will generate a copyright message unless you 1027 # turn it off by adding the -Hnocopyr flag. 1028 tentative_cc="cc -Hnocopyr" 1029 host_makefile_frag="config/mh-ncrsvr43" 1030 ;; 1031 i[3456]86-ncr-sysv4*) 1032 # for an NCR 3000 (i486/SVR4) system. 1033 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc. 1034 # This compiler not only emits obnoxious copyright messages every time 1035 # you run it, but it chokes and dies on a whole bunch of GNU source 1036 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc. 1037 tentative_cc="/usr/ccs/ATT/cc" 1038 host_makefile_frag="config/mh-ncr3000" 1039 ;; 1040 i[3456]86-*-sco3.2v5*) 1041 host_makefile_frag="config/mh-sysv" 1042 ;; 1043 i[3456]86-*-sco*) 1044 # The native C compiler botches some simple uses of const. Unfortunately, 1045 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. 1046 tentative_cc="cc -Dconst=" 1047 host_makefile_frag="config/mh-sco" 1048 ;; 1049 i[3456]86-*-udk*) 1050 host_makefile_frag="config/mh-sysv5" 1051 ;; 1052 i[3456]86-*-isc*) 1053 host_makefile_frag="config/mh-sysv" 1054 ;; 1055 i[3456]86-*-solaris2*) 1056 host_makefile_frag="config/mh-sysv4" 1057 ;; 1058 i[3456]86-*-aix*) 1059 host_makefile_frag="config/mh-aix386" 1060 ;; 1061 i[3456]86-*-msdosdjgpp*) 1062 host_makefile_frag="config/mh-djgpp" 1063 ;; 1064 *-cygwin*) 1065 host_makefile_frag="config/mh-cygwin" 1066 ;; 1067 *-mingw32*) 1068 host_makefile_frag="config/mh-mingw32" 1069 ;; 1070 *-interix*) 1071 host_makefile_frag="config/mh-interix" 1072 ;; 1073 vax-*-ultrix2*) 1074 # The old BSD pcc isn't up to compiling parts of gdb so use gcc 1075 tentative_cc=gcc 1076 ;; 1077 *-*-solaris2*) 1078 host_makefile_frag="config/mh-solaris" 1079 ;; 1080 m68k-sun-sunos*) 1081 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c 1082 # without overflowing the jump tables (-J says to use a 32 bit table) 1083 tentative_cc="cc -J" 1084 ;; 1085 *-hp-hpux[78]*) 1086 tentative_cc="cc -Wp,-H256000" 1087 host_makefile_frag="config/mh-hpux8" 1088 ;; 1089 *-hp-hpux*) 1090 tentative_cc="cc -Wp,-H256000" 1091 host_makefile_frag="config/mh-hpux" 1092 ;; 1093 *-*-hiux*) 1094 tentative_cc="cc -Wp,-H256000" 1095 host_makefile_frag="config/mh-hpux" 1096 ;; 1097 rs6000-*-lynxos*) 1098 # /bin/cc is less than useful for our purposes. Always use GCC 1099 tentative_cc="/usr/cygnus/progressive/bin/gcc" 1100 host_makefile_frag="config/mh-lynxrs6k" 1101 ;; 1102 *-*-lynxos*) 1103 # /bin/cc is less than useful for our purposes. Always use GCC 1104 tentative_cc="/bin/gcc" 1105 ;; 1106 *-*-sysv4*) 1107 host_makefile_frag="config/mh-sysv4" 1108 ;; 1109 *-*-sysv*) 1110 host_makefile_frag="config/mh-sysv" 1111 ;; 1112 esac 1113 fi 1114 1115 rm -f mh-frag 1116 if test -n "${host_makefile_frag}" ; then 1117 for f in ${host_makefile_frag} 1118 do 1119 cat ${srcdir}/$f >> mh-frag 1120 done 1121 host_makefile_frag=mh-frag 1122 fi 1123 1124 case "${target}" in 1125 v810*) 1126 target_makefile_frag="config/mt-v810" 1127 ;; 1128 i[3456]86-*-netware*) 1129 target_makefile_frag="config/mt-netware" 1130 ;; 1131 powerpc-*-netware*) 1132 target_makefile_frag="config/mt-netware" 1133 ;; 1134 *-*-linux*) 1135 target_makefile_frag="config/mt-linux" 1136 ;; 1137 *-*-aix4.[3456789]* | *-*-aix[56789].*) 1138 target_makefile_frag="config/mt-aix43" 1139 ;; 1140 mips*-*-pe | sh*-*-pe | *arm-wince-pe) 1141 target_makefile_frag="config/mt-wince" 1142 ;; 1143 esac 1144 1145 alphaieee_frag= 1146 case $target in 1147 alpha*-*-*) 1148 # This just makes sure to use the -mieee option to build target libs. 1149 # This should probably be set individually by each library. 1150 alphaieee_frag="config/mt-alphaieee" 1151 ;; 1152 esac 1153 1154 # If --enable-target-optspace always use -Os instead of -O2 to build 1155 # the target libraries, similarly if it is not specified, use -Os 1156 # on selected platforms. 1157 ospace_frag= 1158 case "${enable_target_optspace}:${target}" in 1159 yes:*) 1160 ospace_frag="config/mt-ospace" 1161 ;; 1162 :d30v-*) 1163 ospace_frag="config/mt-d30v" 1164 ;; 1165 :m32r-* | :d10v-* | :fr30-*) 1166 ospace_frag="config/mt-ospace" 1167 ;; 1168 no:* | :*) 1169 ;; 1170 *) 1171 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 1172 ;; 1173 esac 1174 1175 rm -f mt-frag 1176 if test -n "${target_makefile_frag}${alphaieee_frag}${ospace_frag}" ; then 1177 for f in ${target_makefile_frag} ${alphaieee_frag} ${ospace_frag} 1178 do 1179 cat ${srcdir}/$f >> mt-frag 1180 done 1181 target_makefile_frag=mt-frag 1262 1182 fi 1263 1183 … … 1275 1195 # --without-gnu-ld options for the configure script. 1276 1196 1277 if [ x${use_gnu_as} = x ] ; then 1278 if [ x${with_gnu_as} != xno ] && echo " ${configdirs} " | grep " ${gasdir} " > /dev/null 2>&1 && [ -d ${srcdir}/${gasdir} ] ; then 1279 with_gnu_as=yes 1280 withoptions="$withoptions --with-gnu-as" 1281 fi 1282 fi 1283 1284 if [ x${use_gnu_ld} = x ] ; then 1285 if [ x${with_gnu_ld} != xno ] && echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 && [ -d ${srcdir}/ld ] ; then 1286 with_gnu_ld=yes 1287 withoptions="$withoptions --with-gnu-ld" 1288 fi 1197 if test x${use_gnu_as} = x && 1198 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then 1199 with_gnu_as=yes 1200 withoptions="$withoptions --with-gnu-as" 1201 fi 1202 1203 if test x${use_gnu_ld} = x && 1204 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then 1205 with_gnu_ld=yes 1206 withoptions="$withoptions --with-gnu-ld" 1289 1207 fi 1290 1208 … … 1292 1210 # can detect this case. 1293 1211 1294 if [ x${with_newlib} != xno ] && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 && [ -d ${srcdir}/newlib ]; then1212 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then 1295 1213 with_newlib=yes 1296 1214 withoptions="$withoptions --with-newlib" 1297 1215 fi 1298 1216 1299 if [ x${shared} = xyes ]; then 1217 # We default to --with-shared on platforms where -fpic is meaningless. 1218 # Well, we don't yet, but we will. 1219 if false && test "${host}" = "${target}" && test x${enable_shared} = x ; then 1300 1220 case "${target}" in 1301 hppa* | parisc*) 1302 target_makefile_frag="${target_makefile_frag} config/mt-papic" 1303 ;; 1304 i[3456]86-*) 1305 target_makefile_frag="${target_makefile_frag} config/mt-x86pic" 1306 ;; 1307 ia64-*) 1308 target_makefile_frag="${target_makefile_frag} config/mt-ia64pic" 1309 ;; 1310 powerpc*-*-aix*) 1311 # We don't want -fPIC on AIX. 1312 ;; 1313 powerpc*-*) 1314 target_makefile_frag="${target_makefile_frag} config/mt-ppcpic" 1315 ;; 1316 alpha*-*-linux*) 1317 target_makefile_frag="${target_makefile_frag} config/mt-elfalphapic" 1318 ;; 1319 *) 1320 if test -f ${srcdir}/config/mt-${target_cpu}pic; then 1321 target_makefile_frag="${target_makefile_frag} config/mt-${target_cpu}pic" 1322 fi 1323 ;; 1221 alpha*-dec-osf*) enable_shared=yes ;; 1222 alpha*-*-linux*) enable_shared=yes ;; 1223 mips-sgi-irix5*) enable_shared=yes ;; 1224 *) enable_shared=no ;; 1324 1225 esac 1325 1226 fi 1326 1227 1327 rm -f mt-frag 1328 if [ -n "${target_makefile_frag}" ] ; then 1329 for f in ${target_makefile_frag} 1330 do 1331 cat ${srcdir}/$f >> mt-frag 1228 case "${enable_shared}" in 1229 yes) shared=yes ;; 1230 no) shared=no ;; 1231 "") shared=no ;; 1232 *) shared=yes ;; 1233 esac 1234 1235 1236 # Default to using --with-stabs for certain targets. 1237 if test x${with_stabs} = x ; then 1238 case "${target}" in 1239 mips*-*-irix6*) 1240 ;; 1241 mips*-*-* | alpha*-*-osf*) 1242 with_stabs=yes; 1243 withoptions="${withoptions} --with-stabs" 1244 ;; 1245 esac 1246 fi 1247 1248 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find 1249 # them automatically. 1250 case "${host}" in 1251 hppa*64*-*-hpux11*) 1252 withoptions="$withoptions -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" 1253 ;; 1254 esac 1255 1256 # If we aren't going to be using gcc, see if we can extract a definition 1257 # of CC from the fragment. 1258 # Actually, use the 'pre-extracted' version above. 1259 if test -z "${CC}" && test "${build}" = "${host}" ; then 1260 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 1261 found= 1262 for dir in $PATH; do 1263 test -z "$dir" && dir=. 1264 if test -f $dir/gcc; then 1265 found=yes 1266 break 1267 fi 1332 1268 done 1333 target_makefile_frag=mt-frag 1269 IFS="$save_ifs" 1270 if test -z "${found}" && test -n "${tentative_cc}" ; then 1271 CC=$tentative_cc 1272 fi 1334 1273 fi 1335 1274 … … 1340 1279 # executable--we might be using a cross compiler--we only care whether it 1341 1280 # can be created. At this point the main configure script has set CC. 1281 we_are_ok=no 1342 1282 echo "int main () { return 0; }" > conftest.c 1343 1283 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 1344 if [ $? = 0 ] && [ -s conftest -o -s conftest.exe ]; then 1345 : 1346 else 1347 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." 1348 echo 1>&2 "*** You must set the environment variable CC to a working compiler." 1349 rm -f conftest* 1350 exit 1 1351 fi 1284 if test $? = 0 ; then 1285 if test -s conftest || test -s conftest.exe ; then 1286 we_are_ok=yes 1287 fi 1288 fi 1289 case $we_are_ok in 1290 no) 1291 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." 1292 echo 1>&2 "*** You must set the environment variable CC to a working compiler." 1293 rm -f conftest* 1294 exit 1 1295 ;; 1296 esac 1352 1297 rm -f conftest* 1353 1298 … … 1356 1301 sparc-sun-solaris2*) 1357 1302 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" 1358 if [ "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ]; then1303 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then 1359 1304 could_use= 1360 [ -d /opt/SUNWspro/bin ]&& could_use="/opt/SUNWspro/bin"1361 if [ -d /opt/cygnus/bin ]; then1362 if [ "$could_use" = "" ]; then1305 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" 1306 if test -d /opt/cygnus/bin ; then 1307 if test "$could_use" = "" ; then 1363 1308 could_use="/opt/cygnus/bin" 1364 1309 else … … 1366 1311 fi 1367 1312 fi 1368 if [ "$could_use" = "" ]; then1313 if test "$could_use" = "" ; then 1369 1314 echo "Warning: compilation may fail because you're using" 1370 1315 echo "/usr/ucb/cc. You should change your PATH or CC " … … 1382 1327 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the 1383 1328 # binutils tools will find libbfd.so. 1384 if [ "${shared}" = "yes" ]; then 1385 sed -e 's/^SET_LIB_PATH[ ]*=.*$/SET_LIB_PATH = $(REALLY_SET_LIB_PATH)/' \ 1386 Makefile > Makefile.tem 1387 rm -f Makefile 1388 mv -f Makefile.tem Makefile 1389 1390 case "${host}" in 1391 *-*-hpux*) 1392 sed -e 's/^RPATH_ENVVAR[ ]*=.*$/RPATH_ENVVAR = SHLIB_PATH/' \ 1393 Makefile > Makefile.tem 1394 rm -f Makefile 1395 mv -f Makefile.tem Makefile 1396 ;; 1397 esac 1398 fi 1329 if test "${shared}" = "yes" ; then 1330 SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" 1331 else 1332 SET_LIB_PATH= 1333 fi 1334 sed -e "s/@SET_LIB_PATH@/${SET_LIB_PATH}/" Makefile > Makefile.tem 1335 rm -f Makefile 1336 mv -f Makefile.tem Makefile 1337 1338 1339 case "${host}" in 1340 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; 1341 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; 1342 esac 1343 sed -e "s/@RPATH_ENVVAR@/${RPATH_ENVVAR}/" Makefile > Makefile.tem 1344 rm -f Makefile 1345 mv -f Makefile.tem Makefile 1346 1347 1348 # Base args. Strip norecursion, cache-file, srcdir, host, build, target. 1349 # These are the ones we might not want to pass down to subconfigures. 1350 baseargs=`echo "${arguments}" | \ 1351 sed -e 's/--no[^ ]*//' \ 1352 -e 's/--cache[a-z-]*=[^ ]*//' \ 1353 -e 's/--sr[a-z-]*=[^ ]*//' \ 1354 -e 's/--ho[a-z-]*=[^ ]*//' \ 1355 -e 's/--bu[a-z-]*=[^ ]*//' \ 1356 -e 's/--ta[a-z-]*=[^ ]*//'` 1357 1358 # For the build-side libraries, we just need to pretend we're native, 1359 # and not use the same cache file. Multilibs are neither needed nor 1360 # desired. 1361 buildargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}" 1399 1362 1400 1363 # Record target_configdirs and the configure arguments for target and 1401 1364 # build configuration in Makefile. 1402 1365 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` 1403 targargs=`echo "${arguments}" | \ 1404 sed -e 's/--no[^ ]*//' \ 1405 -e 's/--cache[a-z-]*=[^ ]*//' \ 1406 -e 's/--ho[a-z-]*=[^ ]*//' \ 1407 -e 's/--bu[a-z-]*=[^ ]*//' \ 1408 -e 's/--ta[a-z-]*=[^ ]*//'` 1409 1410 # For the build-side libraries, we just need to pretend we're native, 1411 # and not use the same cache file. Multilibs are neither needed nor 1412 # desired. 1413 buildargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${targargs}" 1366 targargs=${baseargs} 1414 1367 1415 1368 # Passing a --with-cross-host argument lets the target libraries know … … 1418 1371 # sorts of decisions they want to make on this basis. Please consider 1419 1372 # this option to be deprecated. FIXME. 1420 if [ x${is_cross_compiler} = xyes ]; then1373 if test x${is_cross_compiler} = xyes ; then 1421 1374 targargs="--with-cross-host=${host_alias} ${targargs}" 1422 1375 fi 1423 1376 1424 1377 # Default to --enable-multilib. 1425 if [ x${enable_multilib} = x ]; then1378 if test x${enable_multilib} = x ; then 1426 1379 targargs="--enable-multilib ${targargs}" 1427 1380 fi … … 1429 1382 # Pass --with-newlib if appropriate. Note that target_configdirs has 1430 1383 # changed from the earlier setting of with_newlib. 1431 if [ x${with_newlib} != xno ] && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && [ -d ${srcdir}/newlib ]; then1384 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then 1432 1385 targargs="--with-newlib ${targargs}" 1433 1386 fi … … 1458 1411 gxx_include_dir='${libsubdir}/include/c++' 1459 1412 else 1460 . ${ topsrcdir}/config.if1461 gxx_include_dir='${prefix}/include/ ${libstdcxx_incdir}'1413 . ${srcdir}/config.if 1414 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} 1462 1415 fi 1463 1416 else … … 1466 1419 1467 1420 FLAGS_FOR_TARGET= 1468 case " $skipdirs " in 1469 *" target-newlib "*) ;; 1470 *) 1471 case " $target_configdirs " in 1421 case " $target_configdirs " in 1472 1422 *" newlib "*) 1473 1423 case " $targargs " in … … 1479 1429 1480 1430 # If we're not building GCC, don't discard standard headers. 1481 if test -d ${ topsrcdir}/gcc; then1431 if test -d ${srcdir}/gcc; then 1482 1432 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' 1483 1433 … … 1501 1451 fi 1502 1452 1503 # If we're building newlib, use its generic headers last, but search 1504 # for any libc-related directories first (so make it the last -B 1505 # switch). 1506 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' 1453 case "${target}-${is_cross_compiler}" in 1454 i[3456]86-*-linux*-no) 1455 # Here host == target, so we don't need to build gcc, 1456 # so we don't want to discard standard headers. 1457 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` 1458 ;; 1459 *) 1460 # If we're building newlib, use its generic headers last, but search 1461 # for any libc-related directories first (so make it the last -B 1462 # switch). 1463 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' 1464 ;; 1465 esac 1507 1466 ;; 1508 1467 esac 1509 1468 ;; 1510 esac1511 ;;1512 1469 esac 1513 1470 … … 1516 1473 # flags for directories within the install tree of the compiler 1517 1474 # being built; programs in there won't even run. 1518 if test "${build}" = "${host}" && test -d ${ topsrcdir}/gcc; then1475 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then 1519 1476 # Search for pre-installed headers if nothing else fits. 1520 1477 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include' 1521 1478 fi 1522 1479 1523 if test "x${use_gnu_ld}" = x && test "x${with_gnu_ld}" != xno && 1524 echo " ${configdirs} " | grep " ld " > /dev/null && 1525 test -d ${srcdir}/ld; then 1480 if test "x${use_gnu_ld}" = x && 1481 echo " ${configdirs} " | grep " ld " > /dev/null ; then 1526 1482 # Arrange for us to find uninstalled linker scripts. 1527 1483 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld' … … 1530 1486 if test "x${CC_FOR_TARGET+set}" = xset; then 1531 1487 : 1532 elif test -d ${ topsrcdir}/gcc; then1488 elif test -d ${srcdir}/gcc; then 1533 1489 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/' 1534 1490 elif test "$host" = "$target"; then … … 1546 1502 if test "x${GCJ_FOR_TARGET+set}" = xset; then 1547 1503 : 1548 elif test -d ${ topsrcdir}/gcc; then1504 elif test -d ${srcdir}/gcc; then 1549 1505 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/' 1550 1506 elif test "$host" = "$target"; then … … 1558 1514 esac 1559 1515 1516 # Don't use libstdc++-v3's flags to configure/build itself. 1517 libstdcxx_flags='`case $$dir in libstdc++-v3 | libjava) ;; *) test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes;; esac` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' 1518 1560 1519 if test "x${CXX_FOR_TARGET+set}" = xset; then 1561 1520 : 1562 elif test -d ${ topsrcdir}/gcc; then1521 elif test -d ${srcdir}/gcc; then 1563 1522 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead 1564 1523 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by … … 1586 1545 sedtemp=sed.$$ 1587 1546 cat >$sedtemp <<EOF 1588 s: ^TARGET_CONFIGDIRS[ ]*=.*$:TARGET_CONFIGDIRS =${target_configdirs}:1589 s% ^TARGET_CONFIGARGS[ ]*=.*$%TARGET_CONFIGARGS =${targargs}%1590 s% ^FLAGS_FOR_TARGET[ ]*=.*$%FLAGS_FOR_TARGET =${FLAGS_FOR_TARGET}%1591 s% ^CC_FOR_TARGET[ ]*=.*$%CC_FOR_TARGET =${CC_FOR_TARGET}%1592 s% ^GCJ_FOR_TARGET[ ]*=.*$%GCJ_FOR_TARGET =${GCJ_FOR_TARGET}%1593 s% ^CXX_FOR_TARGET[ ]*=.*$%CXX_FOR_TARGET =${qCXX_FOR_TARGET}%1594 s% ^CXX_FOR_TARGET_FOR_RECURSIVE_MAKE[ ]*=.*$%CXX_FOR_TARGET_FOR_RECURSIVE_MAKE =${qqCXX_FOR_TARGET}%1595 s% ^TARGET_SUBDIR[ ]*=.*$%TARGET_SUBDIR =${target_subdir}%1596 s% ^BUILD_SUBDIR[ ]*=.*$%BUILD_SUBDIR =${build_subdir}%1597 s% ^BUILD_CONFIGARGS[ ]*=.*$%BUILD_CONFIGARGS =${buildargs}%1598 s% ^gxx_include_dir[ ]*=.*$%gxx_include_dir=${gxx_include_dir}%1547 s:@target_configdirs@:${target_configdirs}: 1548 s%@target_configargs@%${targargs}% 1549 s%@FLAGS_FOR_TARGET@%${FLAGS_FOR_TARGET}% 1550 s%@CC_FOR_TARGET@%\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}% 1551 s%@GCJ_FOR_TARGET@%\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}% 1552 s%@CXX_FOR_TARGET@%\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}% 1553 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}% 1554 s%@target_subdir@%${target_subdir}% 1555 s%@build_subdir@%${build_subdir}% 1556 s%@build_configargs@%${buildargs}% 1557 s%@gxx_include_dir@%${gxx_include_dir}% 1599 1558 EOF 1600 1559 sed -f $sedtemp Makefile > Makefile.tem -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.