Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: configure.ac

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « configure ('k') | cpu/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 1 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2 # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 2 # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 # Free Software Foundation, Inc. 3 # Free Software Foundation, Inc.
4 # 4 #
5 # This file is free software; you can redistribute it and/or modify it 5 # This file is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by 6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or 7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version. 8 # (at your option) any later version.
9 # 9 #
10 # This program is distributed in the hope that it will be useful, but 10 # This program is distributed in the hope that it will be useful, but
(...skipping 10 matching lines...) Expand all
21 21
22 m4_include(config/acx.m4) 22 m4_include(config/acx.m4)
23 m4_include(config/override.m4) 23 m4_include(config/override.m4)
24 m4_include(config/proginstall.m4) 24 m4_include(config/proginstall.m4)
25 m4_include(config/elf.m4) 25 m4_include(config/elf.m4)
26 m4_include([libtool.m4]) 26 m4_include([libtool.m4])
27 m4_include([ltoptions.m4]) 27 m4_include([ltoptions.m4])
28 m4_include([ltsugar.m4]) 28 m4_include([ltsugar.m4])
29 m4_include([ltversion.m4]) 29 m4_include([ltversion.m4])
30 m4_include([lt~obsolete.m4]) 30 m4_include([lt~obsolete.m4])
31 m4_include([config/isl.m4])
31 m4_include([config/cloog.m4]) 32 m4_include([config/cloog.m4])
32 33
33 AC_INIT(move-if-change) 34 AC_INIT(move-if-change)
34 AC_PREREQ(2.64) 35 AC_PREREQ(2.64)
35 AC_DISABLE_OPTION_CHECKING 36 AC_DISABLE_OPTION_CHECKING
36 37
37 progname=$0 38 progname=$0
38 # if PWD already has a value, it is probably wrong. 39 # if PWD already has a value, it is probably wrong.
39 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi 40 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
40 41
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 fi 106 fi
106 107
107 topsrcdir=$srcpwd 108 topsrcdir=$srcpwd
108 109
109 extra_host_args= 110 extra_host_args=
110 111
111 ### To add a new directory to the tree, first choose whether it is a target 112 ### To add a new directory to the tree, first choose whether it is a target
112 ### or a host dependent tool. Then put it into the appropriate list 113 ### or a host dependent tool. Then put it into the appropriate list
113 ### (library or tools, host or target), doing a dependency sort. 114 ### (library or tools, host or target), doing a dependency sort.
114 115
115 # Subdirs will be configured in the order listed in build_configdirs, 116 # Subdirs will be configured in the order listed in build_configdirs,
116 # configdirs, or target_configdirs; see the serialization section below. 117 # configdirs, or target_configdirs; see the serialization section below.
117 118
118 # Dependency sorting is only needed when *configuration* must be done in 119 # Dependency sorting is only needed when *configuration* must be done in
119 # a particular order. In all cases a dependency should be specified in 120 # a particular order. In all cases a dependency should be specified in
120 # the Makefile, whether or not it's implicitly specified here. 121 # the Makefile, whether or not it's implicitly specified here.
121 122
122 # Double entries in build_configdirs, configdirs, or target_configdirs may 123 # Double entries in build_configdirs, configdirs, or target_configdirs may
123 # cause circular dependencies and break everything horribly. 124 # cause circular dependencies and break everything horribly.
124 125
125 # these library is used by various programs built for the build 126 # these library is used by various programs built for the build
126 # environment 127 # environment
127 # 128 #
128 build_libs="build-libiberty" 129 build_libs="build-libiberty"
129 130
130 # these tools are built for the build environment 131 # these tools are built for the build environment
131 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" 132 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
132 133
133 # these libraries are used by various programs built for the host environment 134 # these libraries are used by various programs built for the host environment
134 # 135 #
135 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp li bdecnumber gmp mpfr mpc ppl cloog libelf libiconv" 136 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktr ace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
136 137
137 # these tools are built for the host environment 138 # these tools are built for the host environment
138 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to 139 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
139 # know that we are building the simulator. 140 # know that we are building the simulator.
140 # binutils, gas and ld appear in that order because it makes sense to run 141 # binutils, gas and ld appear in that order because it makes sense to run
141 # "make check" in that particular order. 142 # "make check" in that particular order.
142 # If --enable-gold is used, "gold" may replace "ld". 143 # If --enable-gold is used, "gold" may replace "ld".
143 host_tools="flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof et c expect dejagnu m4 utils guile fastjar gnattools" 144 host_tools="flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof et c expect dejagnu m4 utils guile fastjar gnattools"
144 145
145 # libgcj represents the runtime libraries only used by gcj. 146 # libgcj represents the runtime libraries only used by gcj.
146 libgcj="target-libffi \ 147 libgcj="target-libffi \
147 target-zlib \ 148 target-zlib \
148 target-libjava" 149 target-libjava"
149 150
150 # these libraries are built for the target environment, and are built after 151 # these libraries are built for the target environment, and are built after
151 # the host libraries and the host tools (which may be a cross compiler) 152 # the host libraries and the host tools (which may be a cross compiler)
152 # Note that libiberty is not a target library. 153 # Note that libiberty is not a target library.
153 target_libraries="target-libgcc \ 154 target_libraries="target-libgcc \
155 target-libbacktrace \
154 target-libgloss \ 156 target-libgloss \
155 target-newlib \ 157 target-newlib \
156 target-libgomp \ 158 target-libgomp \
159 target-libcilkrts \
160 target-libatomic \
157 target-libitm \ 161 target-libitm \
158 target-libstdc++-v3 \ 162 target-libstdc++-v3 \
159 » » target-libmudflap \ 163 » » target-libsanitizer \
164 » » target-libvtv \
160 target-libssp \ 165 target-libssp \
161 target-libquadmath \ 166 target-libquadmath \
162 target-libgfortran \ 167 target-libgfortran \
163 target-boehm-gc \ 168 target-boehm-gc \
164 ${libgcj} \ 169 ${libgcj} \
165 target-libobjc \ 170 target-libobjc \
166 target-libada \ 171 target-libada \
167 target-libgo" 172 target-libgo"
168 173
169 # these tools are built using the target libraries, and are intended to 174 # these tools are built using the target libraries, and are intended to
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 207
203 # This gets set non-empty for some net releases of packages. 208 # This gets set non-empty for some net releases of packages.
204 appdirs="" 209 appdirs=""
205 210
206 # Define is_cross_compiler to save on calls to 'test'. 211 # Define is_cross_compiler to save on calls to 'test'.
207 is_cross_compiler= 212 is_cross_compiler=
208 if test x"${host}" = x"${target}" ; then 213 if test x"${host}" = x"${target}" ; then
209 is_cross_compiler=no 214 is_cross_compiler=no
210 else 215 else
211 is_cross_compiler=yes 216 is_cross_compiler=yes
212 fi 217 fi»
213 218
214 # Find the build and target subdir names. 219 # Find the build and target subdir names.
215 GCC_TOPLEV_SUBDIRS 220 GCC_TOPLEV_SUBDIRS
216 # Be sure to cover against remnants of an in-tree build. 221 # Be sure to cover against remnants of an in-tree build.
217 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then 222 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
218 AC_MSG_ERROR([building out of tree but $srcdir contains host-${host_noncanonic al}. 223 AC_MSG_ERROR([building out of tree but $srcdir contains host-${host_noncanonic al}.
219 Use a pristine source tree when building in a separate tree]) 224 Use a pristine source tree when building in a separate tree])
220 fi 225 fi
221 226
222 # Skipdirs are removed silently. 227 # Skipdirs are removed silently.
(...skipping 15 matching lines...) Expand all
238 noconfigdirs="$noconfigdirs gas" 243 noconfigdirs="$noconfigdirs gas"
239 fi 244 fi
240 245
241 use_included_zlib= 246 use_included_zlib=
242 # Make sure we don't let ZLIB be added if we didn't want it. 247 # Make sure we don't let ZLIB be added if we didn't want it.
243 if test x$with_system_zlib = xyes ; then 248 if test x$with_system_zlib = xyes ; then
244 use_included_zlib=no 249 use_included_zlib=no
245 noconfigdirs="$noconfigdirs zlib" 250 noconfigdirs="$noconfigdirs zlib"
246 fi 251 fi
247 252
248 # some tools are so dependent upon X11 that if we're not building with X, 253 # some tools are so dependent upon X11 that if we're not building with X,
249 # it's not even worth trying to configure, much less build, that tool. 254 # it's not even worth trying to configure, much less build, that tool.
250 255
251 case ${with_x} in 256 case ${with_x} in
252 yes | "") ;; # the default value for this tree is that X11 is available 257 yes | "") ;; # the default value for this tree is that X11 is available
253 no) 258 no)
254 skipdirs="${skipdirs} tk itcl libgui" 259 skipdirs="${skipdirs} tk itcl libgui"
255 # We won't be able to build gdbtk without X. 260 # We won't be able to build gdbtk without X.
256 enable_gdbtk=no 261 enable_gdbtk=no
257 ;; 262 ;;
258 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; 263 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
259 esac 264 esac
260 265
261 # Some are only suitable for cross toolchains. 266 # Some are only suitable for cross toolchains.
262 # Remove these if host=target. 267 # Remove these if host=target.
263 cross_only="target-libgloss target-newlib target-opcodes" 268 cross_only="target-libgloss target-newlib target-opcodes"
264 269
265 case $is_cross_compiler in 270 case $is_cross_compiler in
266 no) skipdirs="${skipdirs} ${cross_only}" ;; 271 no) skipdirs="${skipdirs} ${cross_only}" ;;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 [AS_HELP_STRING([[--enable-gold[=ARG]]], 309 [AS_HELP_STRING([[--enable-gold[=ARG]]],
305 [build gold @<:@ARG={default,yes,no}@:>@])], 310 [build gold @<:@ARG={default,yes,no}@:>@])],
306 ENABLE_GOLD=$enableval, 311 ENABLE_GOLD=$enableval,
307 ENABLE_GOLD=no) 312 ENABLE_GOLD=no)
308 case "${ENABLE_GOLD}" in 313 case "${ENABLE_GOLD}" in
309 yes|default) 314 yes|default)
310 # Check for ELF target. 315 # Check for ELF target.
311 is_elf=no 316 is_elf=no
312 case "${target}" in 317 case "${target}" in
313 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ 318 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
314 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ 319 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
315 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ 320 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
316 | *-*-solaris2* | *-*-nto* | *-*-nacl*) 321 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
317 case "${target}" in 322 case "${target}" in
318 *-*-linux*aout* | *-*-linux*oldld*) 323 *-*-linux*aout* | *-*-linux*oldld*)
319 ;; 324 ;;
320 *) 325 *)
321 is_elf=yes 326 is_elf=yes
322 ;; 327 ;;
323 esac 328 esac
324 esac 329 esac
325 330
326 if test "$is_elf" = "yes"; then 331 if test "$is_elf" = "yes"; then
327 # Check for target supported by gold. 332 # Check for target supported by gold.
328 case "${target}" in 333 case "${target}" in
329 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) 334 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-* -*)
330 configdirs="$configdirs gold" 335 configdirs="$configdirs gold"
331 if test x${ENABLE_GOLD} = xdefault; then 336 if test x${ENABLE_GOLD} = xdefault; then
332 default_ld=gold 337 default_ld=gold
333 fi 338 fi
334 ENABLE_GOLD=yes 339 ENABLE_GOLD=yes
335 ;; 340 ;;
336 esac 341 esac
337 fi 342 fi
338 ;; 343 ;;
339 no) 344 no)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 377
373 case "${host}" in 378 case "${host}" in
374 *-cygwin*) 379 *-cygwin*)
375 configdirs="$configdirs libtermcap" ;; 380 configdirs="$configdirs libtermcap" ;;
376 esac 381 esac
377 382
378 # A target can indicate whether a language isn't supported for some reason. 383 # A target can indicate whether a language isn't supported for some reason.
379 # Only spaces may be used in this macro; not newlines or tabs. 384 # Only spaces may be used in this macro; not newlines or tabs.
380 unsupported_languages= 385 unsupported_languages=
381 386
382 # Remove more programs from consideration, based on the host or 387 # Remove more programs from consideration, based on the host or
383 # target this usually means that a port of the program doesn't 388 # target this usually means that a port of the program doesn't
384 # exist yet. 389 # exist yet.
385 390
386 case "${host}" in 391 case "${host}" in
387 i[[3456789]]86-*-msdosdjgpp*) 392 i[[3456789]]86-*-msdosdjgpp*)
388 noconfigdirs="$noconfigdirs tcl tk itcl" 393 noconfigdirs="$noconfigdirs tcl tk itcl"
389 ;; 394 ;;
390 esac 395 esac
391 396
392 397
(...skipping 24 matching lines...) Expand all
417 ENABLE_LIBADA=yes) 422 ENABLE_LIBADA=yes)
418 if test "${ENABLE_LIBADA}" != "yes" ; then 423 if test "${ENABLE_LIBADA}" != "yes" ; then
419 noconfigdirs="$noconfigdirs gnattools" 424 noconfigdirs="$noconfigdirs gnattools"
420 fi 425 fi
421 426
422 AC_ARG_ENABLE(libssp, 427 AC_ARG_ENABLE(libssp,
423 [AS_HELP_STRING([--enable-libssp], [build libssp directory])], 428 [AS_HELP_STRING([--enable-libssp], [build libssp directory])],
424 ENABLE_LIBSSP=$enableval, 429 ENABLE_LIBSSP=$enableval,
425 ENABLE_LIBSSP=yes) 430 ENABLE_LIBSSP=yes)
426 431
432 AC_ARG_ENABLE(libstdcxx,
433 AS_HELP_STRING([--disable-libstdcxx],
434 [do not build libstdc++-v3 directory]),
435 ENABLE_LIBSTDCXX=$enableval,
436 ENABLE_LIBSTDCXX=default)
437 [if test "${ENABLE_LIBSTDCXX}" = "no" ; then
438 noconfigdirs="$noconfigdirs libstdc++-v3"
439 fi]
440
427 # Save it here so that, even in case of --enable-libgcj, if the Java 441 # Save it here so that, even in case of --enable-libgcj, if the Java
428 # front-end isn't enabled, we still get libgcj disabled. 442 # front-end isn't enabled, we still get libgcj disabled.
429 libgcj_saved=$libgcj 443 libgcj_saved=$libgcj
430 case $enable_libgcj in 444 case $enable_libgcj in
431 yes) 445 yes)
432 # If we reset it here, it won't get added to noconfigdirs in the 446 # If we reset it here, it won't get added to noconfigdirs in the
433 # target-specific build rules, so it will be forcibly enabled 447 # target-specific build rules, so it will be forcibly enabled
434 # (unless the Java language itself isn't enabled). 448 # (unless the Java language itself isn't enabled).
435 libgcj= 449 libgcj=
436 ;; 450 ;;
(...skipping 15 matching lines...) Expand all
452 enable_static_libjava= 466 enable_static_libjava=
453 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then 467 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
454 enable_static_libjava=yes 468 enable_static_libjava=yes
455 fi 469 fi
456 470
457 if test x$enable_static_libjava != xyes ; then 471 if test x$enable_static_libjava != xyes ; then
458 EXTRA_CONFIGARGS_LIBJAVA=--disable-static 472 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
459 fi 473 fi
460 AC_SUBST(EXTRA_CONFIGARGS_LIBJAVA) 474 AC_SUBST(EXTRA_CONFIGARGS_LIBJAVA)
461 475
462 # Disable libmudflap on some systems.
463 if test x$enable_libmudflap = x ; then
464 case "${target}" in
465 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris *-gnu)
466 # Enable libmudflap by default in GNU and friends.
467 ;;
468 *-*-freebsd*)
469 # Enable libmudflap by default in FreeBSD.
470 ;;
471 *)
472 # Disable it by default everywhere else.
473 noconfigdirs="$noconfigdirs target-libmudflap"
474 ;;
475 esac
476 fi
477
478 # Disable libgomp on non POSIX hosted systems. 476 # Disable libgomp on non POSIX hosted systems.
479 if test x$enable_libgomp = x ; then 477 if test x$enable_libgomp = x ; then
480 # Enable libgomp by default on hosted POSIX systems. 478 # Enable libgomp by default on hosted POSIX systems.
481 case "${target}" in 479 case "${target}" in
482 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 480 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
483 ;; 481 ;;
484 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) 482 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
485 ;; 483 ;;
486 *-*-solaris2* | *-*-hpux11*) 484 *-*-solaris2* | *-*-hpux11*)
487 ;; 485 ;;
488 *-*-darwin* | *-*-aix*) 486 *-*-darwin* | *-*-aix*)
489 ;; 487 ;;
490 *) 488 *)
491 noconfigdirs="$noconfigdirs target-libgomp" 489 noconfigdirs="$noconfigdirs target-libgomp"
492 ;; 490 ;;
493 esac 491 esac
494 fi 492 fi
495 493
494 # Disable libatomic on unsupported systems.
495 if test -d ${srcdir}/libatomic; then
496 if test x$enable_libatomic = x; then
497 AC_MSG_CHECKING([for libatomic support])
498 if (srcdir=${srcdir}/libatomic; \
499 . ${srcdir}/configure.tgt; \
500 test -n "$UNSUPPORTED")
501 then
502 AC_MSG_RESULT([no])
503 noconfigdirs="$noconfigdirs target-libatomic"
504 else
505 AC_MSG_RESULT([yes])
506 fi
507 fi
508 fi
509
510 # Disable libcilkrts on unsupported systems.
511 if test -d ${srcdir}/libcilkrts; then
512 if test x$enable_libcilkrts = x; then
513 AC_MSG_CHECKING([for libcilkrts support])
514 if (srcdir=${srcdir}/libcilkrts; \
515 . ${srcdir}/configure.tgt; \
516 test -n "$UNSUPPORTED")
517 then
518 AC_MSG_RESULT([no])
519 noconfigdirs="$noconfigdirs target-libcilkrts"
520 else
521 AC_MSG_RESULT([yes])
522 fi
523 fi
524 fi
525
496 # Disable libitm on unsupported systems. 526 # Disable libitm on unsupported systems.
497 if test -d ${srcdir}/libitm; then 527 if test -d ${srcdir}/libitm; then
498 if test x$enable_libitm = x; then 528 if test x$enable_libitm = x; then
499 AC_MSG_CHECKING([for libitm support]) 529 AC_MSG_CHECKING([for libitm support])
500 if (srcdir=${srcdir}/libitm; \ 530 if (srcdir=${srcdir}/libitm; \
501 . ${srcdir}/configure.tgt; \ 531 . ${srcdir}/configure.tgt; \
502 test -n "$UNSUPPORTED") 532 test -n "$UNSUPPORTED")
503 then 533 then
504 AC_MSG_RESULT([no]) 534 AC_MSG_RESULT([no])
505 noconfigdirs="$noconfigdirs target-libitm" 535 noconfigdirs="$noconfigdirs target-libitm"
506 else 536 else
507 AC_MSG_RESULT([yes]) 537 AC_MSG_RESULT([yes])
508 fi 538 fi
509 fi 539 fi
510 fi 540 fi
511 541
542 # Disable libsanitizer on unsupported systems.
543 if test -d ${srcdir}/libsanitizer; then
544 if test x$enable_libsanitizer = x; then
545 AC_MSG_CHECKING([for libsanitizer support])
546 if (srcdir=${srcdir}/libsanitizer; \
547 . ${srcdir}/configure.tgt; \
548 test -n "$UNSUPPORTED")
549 then
550 AC_MSG_RESULT([no])
551 noconfigdirs="$noconfigdirs target-libsanitizer"
552 else
553 AC_MSG_RESULT([yes])
554 fi
555 fi
556 fi
557
558 # Disable libvtv on unsupported systems.
559 if test -d ${srcdir}/libvtv; then
560 if test x$enable_libvtv = x; then
561 AC_MSG_CHECKING([for libvtv support])
562 if (srcdir=${srcdir}/libvtv; \
563 . ${srcdir}/configure.tgt; \
564 test "$VTV_SUPPORTED" != "yes")
565 then
566 AC_MSG_RESULT([no])
567 noconfigdirs="$noconfigdirs target-libvtv"
568 else
569 AC_MSG_RESULT([yes])
570 fi
571 fi
572 fi
573
574 # Disable libquadmath for some systems.
575 case "${target}" in
576 avr-*-*)
577 noconfigdirs="$noconfigdirs target-libquadmath"
578 ;;
579 # libquadmath is unused on AIX and libquadmath build process use of
580 # LD_LIBRARY_PATH can break AIX bootstrap.
581 powerpc-*-aix* | rs6000-*-aix*)
582 noconfigdirs="$noconfigdirs target-libquadmath"
583 ;;
584 esac
585
512 # Disable libssp for some systems. 586 # Disable libssp for some systems.
513 case "${target}" in 587 case "${target}" in
514 avr-*-*) 588 avr-*-*)
515 # No hosted I/O support. 589 # No hosted I/O support.
516 noconfigdirs="$noconfigdirs target-libssp" 590 noconfigdirs="$noconfigdirs target-libssp"
517 ;; 591 ;;
518 powerpc-*-aix* | rs6000-*-aix*) 592 powerpc-*-aix* | rs6000-*-aix*)
519 noconfigdirs="$noconfigdirs target-libssp" 593 noconfigdirs="$noconfigdirs target-libssp"
520 ;; 594 ;;
521 rl78-*-*) 595 rl78-*-*)
522 # libssp uses a misaligned load to trigger a fault, but the RL78 596 # libssp uses a misaligned load to trigger a fault, but the RL78
523 # doesn't fault for those - instead, it gives a build-time error 597 # doesn't fault for those - instead, it gives a build-time error
524 # for explicit misaligned loads. 598 # for explicit misaligned loads.
525 noconfigdirs="$noconfigdirs target-libssp" 599 noconfigdirs="$noconfigdirs target-libssp"
526 ;; 600 ;;
527 esac 601 esac
528 602
529 # Disable libstdc++-v3 for some systems. 603 # Disable libstdc++-v3 for some systems.
530 case "${target}" in 604 # Allow user to override this if they pass --enable-libstdc++-v3
531 *-*-vxworks*) 605 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
532 # VxWorks uses the Dinkumware C++ library. 606 case "${target}" in
533 noconfigdirs="$noconfigdirs target-libstdc++-v3" 607 *-*-vxworks*)
534 ;; 608 # VxWorks uses the Dinkumware C++ library.
535 arm*-wince-pe*) 609 noconfigdirs="$noconfigdirs target-libstdc++-v3"
536 # the C++ libraries don't build on top of CE's C libraries 610 ;;
537 noconfigdirs="$noconfigdirs target-libstdc++-v3" 611 arm*-wince-pe*)
538 ;; 612 # the C++ libraries don't build on top of CE's C libraries
539 avr-*-*) 613 noconfigdirs="$noconfigdirs target-libstdc++-v3"
540 noconfigdirs="$noconfigdirs target-libstdc++-v3" 614 ;;
541 ;; 615 avr-*-*)
542 esac 616 noconfigdirs="$noconfigdirs target-libstdc++-v3"
617 ;;
618 esac
619 fi
543 620
544 # Disable Fortran for some systems. 621 # Disable Fortran for some systems.
545 case "${target}" in 622 case "${target}" in
546 mmix-*-*) 623 mmix-*-*)
547 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. 624 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
548 unsupported_languages="$unsupported_languages fortran" 625 unsupported_languages="$unsupported_languages fortran"
549 ;; 626 ;;
550 esac 627 esac
551 628
552 # Disable Java if libffi is not supported. 629 # Disable Java if libffi is not supported.
553 case "${target}" in 630 case "${target}" in
631 aarch64-*-*)
632 ;;
554 alpha*-*-*) 633 alpha*-*-*)
555 ;; 634 ;;
556 arm*-*-*) 635 arm*-*-*)
557 ;; 636 ;;
558 cris-*-*) 637 cris-*-*)
559 ;; 638 ;;
560 frv-*-*) 639 frv-*-*)
561 ;; 640 ;;
562 hppa*-*-linux*) 641 hppa*-*-linux*)
563 ;; 642 ;;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 ;; 761 ;;
683 powerpc-*-aix*) 762 powerpc-*-aix*)
684 # copied from rs6000-*-* entry 763 # copied from rs6000-*-* entry
685 noconfigdirs="$noconfigdirs ${libgcj}" 764 noconfigdirs="$noconfigdirs ${libgcj}"
686 ;; 765 ;;
687 rs6000-*-aix*) 766 rs6000-*-aix*)
688 noconfigdirs="$noconfigdirs ${libgcj}" 767 noconfigdirs="$noconfigdirs ${libgcj}"
689 ;; 768 ;;
690 *-*-lynxos*) 769 *-*-lynxos*)
691 noconfigdirs="$noconfigdirs ${libgcj}" 770 noconfigdirs="$noconfigdirs ${libgcj}"
692 ;; 771 ;;
693 esac 772 esac
694 773
774 # Disable libgo for some systems where it is known to not work.
775 # For testing, you can easily override this with --enable-libgo.
776 if test x$enable_libgo = x; then
777 case "${target}" in
778 *-*-darwin*)
779 # PR 46986
780 noconfigdirs="$noconfigdirs target-libgo"
781 ;;
782 *-*-cygwin* | *-*-mingw*)
783 noconfigdirs="$noconfigdirs target-libgo"
784 ;;
785 *-*-aix*)
786 noconfigdirs="$noconfigdirs target-libgo"
787 ;;
788 esac
789 fi
790
695 # Default libgloss CPU subdirectory. 791 # Default libgloss CPU subdirectory.
696 libgloss_dir="$target_cpu" 792 libgloss_dir="$target_cpu"
697 793
698 case "${target}" in 794 case "${target}" in
699 sh*-*-pe|mips*-*-pe|*arm-wince-pe) 795 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
700 libgloss_dir=wince 796 libgloss_dir=wince
701 ;; 797 ;;
798 aarch64*-*-* )
799 libgloss_dir=aarch64
800 ;;
702 arm*-*-*) 801 arm*-*-*)
703 libgloss_dir=arm 802 libgloss_dir=arm
704 ;; 803 ;;
705 cris-*-* | crisv32-*-*) 804 cris-*-* | crisv32-*-*)
706 libgloss_dir=cris 805 libgloss_dir=cris
707 ;; 806 ;;
708 hppa*-*-*) 807 hppa*-*-*)
709 libgloss_dir=pa 808 libgloss_dir=pa
710 ;; 809 ;;
711 i[[3456789]]86-*-*) 810 i[[3456789]]86-*-*)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 866 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
768 ;; 867 ;;
769 *-*-freebsd*) 868 *-*-freebsd*)
770 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 869 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
771 ;; 870 ;;
772 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 871 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
773 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 872 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
774 ;; 873 ;;
775 *-*-lynxos*) 874 *-*-lynxos*)
776 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 875 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
777 ;; 876 ;;
778 *-*-mingw*) 877 *-*-mingw*)
779 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 878 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
780 ;; 879 ;;
781 *-*-netbsd*) 880 *-*-netbsd*)
782 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 881 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
783 ;; 882 ;;
784 *-*-netware*) 883 *-*-netware*)
785 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 884 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
786 ;; 885 ;;
787 *-*-tpf*) 886 *-*-tpf*)
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 alpha*-*-*vms*) 949 alpha*-*-*vms*)
851 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" 950 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
852 ;; 951 ;;
853 alpha*-*-*) 952 alpha*-*-*)
854 # newlib is not 64 bit ready 953 # newlib is not 64 bit ready
855 noconfigdirs="$noconfigdirs target-newlib target-libgloss" 954 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
856 ;; 955 ;;
857 sh*-*-pe|mips*-*-pe|*arm-wince-pe) 956 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
858 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" 957 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
859 ;; 958 ;;
860 arc-*-*) 959 arc-*-*|arceb-*-*)
861 noconfigdirs="$noconfigdirs target-libgloss" 960 noconfigdirs="$noconfigdirs target-libgloss"
862 ;; 961 ;;
863 arm-*-pe*) 962 arm-*-pe*)
864 noconfigdirs="$noconfigdirs target-libgloss" 963 noconfigdirs="$noconfigdirs target-libgloss"
865 ;; 964 ;;
866 arm-*-riscix*) 965 arm-*-riscix*)
867 noconfigdirs="$noconfigdirs ld target-libgloss" 966 noconfigdirs="$noconfigdirs ld target-libgloss"
868 ;; 967 ;;
968 avr-*-rtems*)
969 ;;
970 avr-*-*)
971 if test x${with_avrlibc} != xno; then
972 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
973 fi
974 ;;
869 c4x-*-* | tic4x-*-*) 975 c4x-*-* | tic4x-*-*)
870 noconfigdirs="$noconfigdirs target-libgloss" 976 noconfigdirs="$noconfigdirs target-libgloss"
871 ;; 977 ;;
872 tic54x-*-*) 978 tic54x-*-*)
873 noconfigdirs="$noconfigdirs target-libgloss gdb" 979 noconfigdirs="$noconfigdirs target-libgloss gdb"
874 ;; 980 ;;
875 cr16-*-*)
876 noconfigdirs="$noconfigdirs gdb"
877 ;;
878 d10v-*-*) 981 d10v-*-*)
879 noconfigdirs="$noconfigdirs target-libgloss" 982 noconfigdirs="$noconfigdirs target-libgloss"
880 ;; 983 ;;
881 d30v-*-*) 984 d30v-*-*)
882 noconfigdirs="$noconfigdirs gdb" 985 noconfigdirs="$noconfigdirs gdb"
883 ;; 986 ;;
884 fr30-*-elf*) 987 fr30-*-elf*)
885 noconfigdirs="$noconfigdirs gdb" 988 noconfigdirs="$noconfigdirs gdb"
886 ;; 989 ;;
887 moxie-*-*) 990 moxie-*-*)
(...skipping 29 matching lines...) Expand all
917 ;; 1020 ;;
918 ia64*-*-elf*) 1021 ia64*-*-elf*)
919 # No gdb support yet. 1022 # No gdb support yet.
920 noconfigdirs="$noconfigdirs readline libgui itcl gdb" 1023 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
921 ;; 1024 ;;
922 ia64*-**-hpux*) 1025 ia64*-**-hpux*)
923 # No ld support yet. 1026 # No ld support yet.
924 noconfigdirs="$noconfigdirs libgui itcl ld" 1027 noconfigdirs="$noconfigdirs libgui itcl ld"
925 ;; 1028 ;;
926 ia64*-*-*vms*) 1029 ia64*-*-*vms*)
927 noconfigdirs="$noconfigdirs libgui itcl" 1030 # No ld support yet.
1031 noconfigdirs="$noconfigdirs libgui itcl ld"
928 ;; 1032 ;;
929 i[[3456789]]86-w64-mingw*) 1033 i[[3456789]]86-w64-mingw*)
930 ;; 1034 ;;
931 i[[3456789]]86-*-mingw*) 1035 i[[3456789]]86-*-mingw*)
932 target_configdirs="$target_configdirs target-winsup" 1036 target_configdirs="$target_configdirs target-winsup"
933 ;; 1037 ;;
934 *-*-cygwin*) 1038 *-*-cygwin*)
935 target_configdirs="$target_configdirs target-libtermcap target-winsup" 1039 target_configdirs="$target_configdirs target-libtermcap target-winsup"
936 noconfigdirs="$noconfigdirs target-libgloss" 1040 noconfigdirs="$noconfigdirs target-libgloss"
937 # always build newlib if winsup directory is present. 1041 # always build newlib if winsup directory is present.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 ;; 1099 ;;
996 rs6000-*-*) 1100 rs6000-*-*)
997 noconfigdirs="$noconfigdirs gprof" 1101 noconfigdirs="$noconfigdirs gprof"
998 ;; 1102 ;;
999 m68k-apollo-*) 1103 m68k-apollo-*)
1000 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" 1104 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
1001 ;; 1105 ;;
1002 microblaze*) 1106 microblaze*)
1003 noconfigdirs="$noconfigdirs gprof" 1107 noconfigdirs="$noconfigdirs gprof"
1004 ;; 1108 ;;
1005 mips*-sde-elf*) 1109 mips*-sde-elf* | mips*-mti-elf*)
1006 if test x$with_newlib = xyes; then 1110 if test x$with_newlib = xyes; then
1007 noconfigdirs="$noconfigdirs gprof" 1111 noconfigdirs="$noconfigdirs gprof"
1008 fi 1112 fi
1009 ;; 1113 ;;
1010 mips*-*-irix5*) 1114 mips*-*-irix5*)
1011 noconfigdirs="$noconfigdirs gprof target-libgloss" 1115 noconfigdirs="$noconfigdirs gprof target-libgloss"
1012 ;; 1116 ;;
1013 mips*-*-irix6*) 1117 mips*-*-irix6*)
1014 noconfigdirs="$noconfigdirs gprof target-libgloss" 1118 noconfigdirs="$noconfigdirs gprof target-libgloss"
1015 ;; 1119 ;;
1016 mips*-*-bsd*) 1120 mips*-*-bsd*)
1017 noconfigdirs="$noconfigdirs gprof target-libgloss" 1121 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
1018 ;; 1122 ;;
1019 mips*-*-linux*) 1123 mips*-*-linux*)
1020 ;; 1124 ;;
1125 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
1126 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
1127 noconfigdirs="$noconfigdirs ld gas gprof"
1128 ;;
1021 mips*-*-*) 1129 mips*-*-*)
1022 noconfigdirs="$noconfigdirs gprof" 1130 noconfigdirs="$noconfigdirs gprof"
1023 ;; 1131 ;;
1024 sh-*-* | sh64-*-*) 1132 sh-*-* | sh64-*-*)
1025 case "${target}" in 1133 case "${target}" in
1026 sh*-*-elf) 1134 sh*-*-elf)
1027 ;; 1135 ;;
1028 *) 1136 *)
1029 noconfigdirs="$noconfigdirs target-libgloss" ;; 1137 noconfigdirs="$noconfigdirs target-libgloss" ;;
1030 esac 1138 esac
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 i[[3456789]]86-*-msdosdjgpp*) 1170 i[[3456789]]86-*-msdosdjgpp*)
1063 host_makefile_frag="config/mh-djgpp" 1171 host_makefile_frag="config/mh-djgpp"
1064 ;; 1172 ;;
1065 *-cygwin*) 1173 *-cygwin*)
1066 ACX_CHECK_CYGWIN_CAT_WORKS 1174 ACX_CHECK_CYGWIN_CAT_WORKS
1067 host_makefile_frag="config/mh-cygwin" 1175 host_makefile_frag="config/mh-cygwin"
1068 ;; 1176 ;;
1069 *-mingw*) 1177 *-mingw*)
1070 host_makefile_frag="config/mh-mingw" 1178 host_makefile_frag="config/mh-mingw"
1071 ;; 1179 ;;
1072 *-interix*)
1073 host_makefile_frag="config/mh-interix"
1074 ;;
1075 hppa*-hp-hpux10*) 1180 hppa*-hp-hpux10*)
1076 host_makefile_frag="config/mh-pa-hpux10" 1181 host_makefile_frag="config/mh-pa-hpux10"
1077 ;; 1182 ;;
1078 hppa*-hp-hpux*) 1183 hppa*-hp-hpux*)
1079 host_makefile_frag="config/mh-pa" 1184 host_makefile_frag="config/mh-pa"
1080 ;; 1185 ;;
1081 hppa*-*) 1186 hppa*-*)»
1082 host_makefile_frag="config/mh-pa" 1187 host_makefile_frag="config/mh-pa"
1083 ;; 1188 ;;
1084 *-*-darwin*) 1189 *-*-darwin*)
1085 host_makefile_frag="config/mh-darwin" 1190 host_makefile_frag="config/mh-darwin"
1086 ;; 1191 ;;
1087 powerpc-*-aix*) 1192 powerpc-*-aix*)
1088 host_makefile_frag="config/mh-ppc-aix" 1193 host_makefile_frag="config/mh-ppc-aix"
1089 ;; 1194 ;;
1090 rs6000-*-aix*) 1195 rs6000-*-aix*)
1091 host_makefile_frag="config/mh-ppc-aix" 1196 host_makefile_frag="config/mh-ppc-aix"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; 1243 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
1139 esac 1244 esac
1140 case $gcc_prog_ld in 1245 case $gcc_prog_ld in
1141 # Accept absolute paths. 1246 # Accept absolute paths.
1142 [[\\/]* | [A-Za-z]:[\\/]*)] 1247 [[\\/]* | [A-Za-z]:[\\/]*)]
1143 LD="$gcc_prog_ld" ;; 1248 LD="$gcc_prog_ld" ;;
1144 esac 1249 esac
1145 fi 1250 fi
1146 fi 1251 fi
1147 1252
1253 # Check whether -static-libstdc++ -static-libgcc is supported.
1254 have_static_libs=no
1255 if test "$GCC" = yes; then
1256 saved_LDFLAGS="$LDFLAGS"
1257
1258 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
1259 AC_MSG_CHECKING([whether g++ accepts -static-libstdc++ -static-libgcc])
1260 AC_LANG_PUSH(C++)
1261 AC_LINK_IFELSE([
1262 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
1263 #error -static-libstdc++ not implemented
1264 #endif
1265 int main() {}],
1266 [AC_MSG_RESULT([yes]); have_static_libs=yes],
1267 [AC_MSG_RESULT([no])])
1268 AC_LANG_POP(C++)
1269
1270 LDFLAGS="$saved_LDFLAGS"
1271 fi
1272
1148 ACX_PROG_GNAT 1273 ACX_PROG_GNAT
1149 ACX_PROG_CMP_IGNORE_INITIAL 1274 ACX_PROG_CMP_IGNORE_INITIAL
1150 1275
1151 AC_ARG_ENABLE([bootstrap], 1276 AC_ARG_ENABLE([bootstrap],
1152 [AS_HELP_STRING([--enable-bootstrap], 1277 [AS_HELP_STRING([--enable-bootstrap],
1153 [enable bootstrapping @<:@yes if native build@:>@])],, 1278 [enable bootstrapping @<:@yes if native build@:>@])],,
1154 enable_bootstrap=default) 1279 enable_bootstrap=default)
1155 1280
1156 # Issue errors and warnings for invalid/strange bootstrap combinations. 1281 # Issue errors and warnings for invalid/strange bootstrap combinations.
1157 if test -r $srcdir/gcc/configure; then 1282 if test -r $srcdir/gcc/configure; then
(...skipping 26 matching lines...) Expand all
1184 # No compiler: if they passed --enable-bootstrap explicitly, fail 1309 # No compiler: if they passed --enable-bootstrap explicitly, fail
1185 no:*:*:yes) 1310 no:*:*:yes)
1186 AC_MSG_ERROR([cannot bootstrap without a compiler]) ;; 1311 AC_MSG_ERROR([cannot bootstrap without a compiler]) ;;
1187 1312
1188 # Fail if wrong command line 1313 # Fail if wrong command line
1189 *) 1314 *)
1190 AC_MSG_ERROR([invalid option for --enable-bootstrap]) 1315 AC_MSG_ERROR([invalid option for --enable-bootstrap])
1191 ;; 1316 ;;
1192 esac 1317 esac
1193 1318
1194 # See if we are building gcc with C++.
1195 AC_ARG_ENABLE(build-with-cxx,
1196 [AS_HELP_STRING([--enable-build-with-cxx],
1197 [build with C++ compiler instead of C compiler])],
1198 ENABLE_BUILD_WITH_CXX=$enableval,
1199 ENABLE_BUILD_WITH_CXX=no)
1200
1201 # Build stage1 with C and build stages 2 and 3 with C++.
1202 AC_ARG_ENABLE(build-poststage1-with-cxx,
1203 [AS_HELP_STRING([--enable-build-poststage1-with-cxx],
1204 [build stages 2 and 3 with C++, not C])],
1205 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval,
1206 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes)
1207
1208 # Used for setting $lt_cv_objdir 1319 # Used for setting $lt_cv_objdir
1209 _LT_CHECK_OBJDIR 1320 _LT_CHECK_OBJDIR
1210 1321
1211 # Check for GMP, MPFR and MPC 1322 # Check for GMP, MPFR and MPC
1212 gmplibs="-lmpc -lmpfr -lgmp" 1323 gmplibs="-lmpc -lmpfr -lgmp"
1213 gmpinc= 1324 gmpinc=
1214 have_gmp=no 1325 have_gmp=no
1215 1326
1216 # Specify a location for mpc 1327 # Specify a location for mpc
1217 # check for this first so it ends up on the link line before mpfr. 1328 # check for this first so it ends up on the link line before mpfr.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 gmpinc="-I$with_gmp_include $gmpinc" 1432 gmpinc="-I$with_gmp_include $gmpinc"
1322 fi 1433 fi
1323 if test "x$with_gmp_lib" != x; then 1434 if test "x$with_gmp_lib" != x; then
1324 gmplibs="-L$with_gmp_lib $gmplibs" 1435 gmplibs="-L$with_gmp_lib $gmplibs"
1325 fi 1436 fi
1326 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then 1437 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
1327 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" 1438 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
1328 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" 1439 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
1329 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-g mp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" 1440 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-g mp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
1330 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --wit h-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" 1441 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --wit h-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
1442 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
1331 # Do not test the gmp version. Assume that it is sufficient, since 1443 # Do not test the gmp version. Assume that it is sufficient, since
1332 # it is in the source tree, and the library has not been built yet 1444 # it is in the source tree, and the library has not been built yet
1333 # but it would be included on the link line in the version check below 1445 # but it would be included on the link line in the version check below
1334 # hence making the test fail. 1446 # hence making the test fail.
1335 have_gmp=yes 1447 have_gmp=yes
1336 fi 1448 fi
1337 1449
1338 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then 1450 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
1339 have_gmp=yes 1451 have_gmp=yes
1340 saved_CFLAGS="$CFLAGS" 1452 saved_CFLAGS="$CFLAGS"
1341 CFLAGS="$CFLAGS $gmpinc" 1453 CFLAGS="$CFLAGS $gmpinc"
1342 # Check for the recommended and required versions of GMP. 1454 # Check for the recommended and required versions of GMP.
1343 AC_MSG_CHECKING([for the correct version of gmp.h]) 1455 AC_MSG_CHECKING([for the correct version of gmp.h])
1344 AC_TRY_COMPILE([#include "gmp.h"],[ 1456 AC_TRY_COMPILE([#include "gmp.h"],[
1345 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) 1457 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
1346 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_ MINOR,__GNU_MP_VERSION_PATCHLEVEL) 1458 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_ MINOR,__GNU_MP_VERSION_PATCHLEVEL)
1347 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) 1459 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
1348 choke me 1460 choke me
1349 #endif 1461 #endif
1350 ], [AC_TRY_COMPILE([#include <gmp.h>],[ 1462 ], [AC_TRY_COMPILE([#include <gmp.h>],[
1351 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) 1463 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
1352 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_ MINOR,__GNU_MP_VERSION_PATCHLEVEL) 1464 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_ MINOR,__GNU_MP_VERSION_PATCHLEVEL)
1353 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) 1465 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
1354 choke me 1466 choke me
1355 #endif 1467 #endif
1356 ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])])], 1468 ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])])],
1357 [AC_MSG_RESULT([no]); have_gmp=no]) 1469 [AC_MSG_RESULT([no]); have_gmp=no])
1358 1470
1359 # If we have GMP, check the MPFR version. 1471 # If we have GMP, check the MPFR version.
1360 if test x"$have_gmp" = xyes; then 1472 if test x"$have_gmp" = xyes; then
1361 # Check for the recommended and required versions of MPFR. 1473 # Check for the recommended and required versions of MPFR.
1362 AC_MSG_CHECKING([for the correct version of mpfr.h]) 1474 AC_MSG_CHECKING([for the correct version of mpfr.h])
1363 AC_TRY_COMPILE([#include <gmp.h> 1475 AC_TRY_COMPILE([#include <gmp.h>
1364 #include <mpfr.h>],[ 1476 #include <mpfr.h>],[
1365 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1) 1477 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
1366 choke me 1478 choke me
1367 #endif 1479 #endif
1368 ], [AC_TRY_COMPILE([#include <gmp.h> 1480 ], [AC_TRY_COMPILE([#include <gmp.h>
1369 #include <mpfr.h>],[ 1481 #include <mpfr.h>],[
1370 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) 1482 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
1371 choke me 1483 choke me
1372 #endif 1484 #endif
1373 ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])])], 1485 ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])])],
1374 [AC_MSG_RESULT([no]); have_gmp=no]) 1486 [AC_MSG_RESULT([no]); have_gmp=no])
1375 fi 1487 fi
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 mpc_clear (c); 1527 mpc_clear (c);
1416 ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); have_gmp=no]) 1528 ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); have_gmp=no])
1417 LIBS="$saved_LIBS" 1529 LIBS="$saved_LIBS"
1418 fi 1530 fi
1419 1531
1420 CFLAGS="$saved_CFLAGS" 1532 CFLAGS="$saved_CFLAGS"
1421 1533
1422 # The library versions listed in the error message below should match 1534 # The library versions listed in the error message below should match
1423 # the HARD-minimums enforced above. 1535 # the HARD-minimums enforced above.
1424 if test x$have_gmp != xyes; then 1536 if test x$have_gmp != xyes; then
1425 AC_MSG_ERROR([Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+. 1537 AC_MSG_ERROR([Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
1426 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify 1538 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
1427 their locations. Source code for these libraries can be found at 1539 their locations. Source code for these libraries can be found at
1428 their respective hosting sites as well as at 1540 their respective hosting sites as well as at
1429 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also 1541 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
1430 http://gcc.gnu.org/install/prerequisites.html for additional info. If 1542 http://gcc.gnu.org/install/prerequisites.html for additional info. If
1431 you obtained GMP, MPFR and/or MPC from a vendor distribution package, 1543 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
1432 make sure that you have installed both the libraries and the header 1544 make sure that you have installed both the libraries and the header
1433 files. They may be located in separate packages.]) 1545 files. They may be located in separate packages.])
1434 fi 1546 fi
1435 fi 1547 fi
1436 1548
1437 # Flags needed for both GMP, MPFR and/or MPC. 1549 # Flags needed for both GMP, MPFR and/or MPC.
1438 AC_SUBST(gmplibs) 1550 AC_SUBST(gmplibs)
1439 AC_SUBST(gmpinc) 1551 AC_SUBST(gmpinc)
1440 AC_SUBST(extra_mpfr_configure_flags) 1552 AC_SUBST(extra_mpfr_configure_flags)
1441 AC_SUBST(extra_mpc_gmp_configure_flags) 1553 AC_SUBST(extra_mpc_gmp_configure_flags)
1442 AC_SUBST(extra_mpc_mpfr_configure_flags) 1554 AC_SUBST(extra_mpc_mpfr_configure_flags)
1555 AC_SUBST(extra_isl_gmp_configure_flags)
1443 1556
1444 # Allow host libstdc++ to be specified for static linking with PPL. 1557 # Allow host libstdc++ to be specified for static linking with PPL.
1445 AC_ARG_WITH(host-libstdcxx, 1558 AC_ARG_WITH(host-libstdcxx,
1446 [AS_HELP_STRING([--with-host-libstdcxx=L], 1559 [AS_HELP_STRING([--with-host-libstdcxx=L],
1447 [use linker arguments L to link with libstdc++ 1560 [use linker arguments L to link with libstdc++
1448 when linking with PPL])]) 1561 when linking with PPL])])
1449 1562
1450 case $with_host_libstdcxx in 1563 case $with_host_libstdcxx in
1451 no|yes) 1564 no|yes)
1452 AC_MSG_ERROR([-with-host-libstdcxx needs an argument]) 1565 AC_MSG_ERROR([-with-host-libstdcxx needs an argument])
1453 ;; 1566 ;;
1454 esac 1567 esac
1455 1568
1456 # Linker flags to use for stage1 or when not boostrapping.
1457 AC_ARG_WITH(stage1-ldflags,
1458 [AS_HELP_STRING([--with-stage1-ldflags=FLAGS], [linker flags for stage1])],
1459 [if test "$withval" = "no" -o "$withval" = "yes"; then
1460 stage1_ldflags=
1461 else
1462 stage1_ldflags=$withval
1463 fi],
1464 [stage1_ldflags=])
1465 AC_SUBST(stage1_ldflags)
1466
1467 # Libraries to use for stage1 or when not bootstrapping. 1569 # Libraries to use for stage1 or when not bootstrapping.
1468 AC_ARG_WITH(stage1-libs, 1570 AC_ARG_WITH(stage1-libs,
1469 [AS_HELP_STRING([--with-stage1-libs=LIBS], [libraries for stage1])], 1571 [AS_HELP_STRING([--with-stage1-libs=LIBS], [libraries for stage1])],
1470 [if test "$withval" = "no" -o "$withval" = "yes"; then 1572 [if test "$withval" = "no" -o "$withval" = "yes"; then
1471 stage1_libs= 1573 stage1_libs=
1472 else 1574 else
1473 stage1_libs=$withval 1575 stage1_libs=$withval
1474 fi], 1576 fi],
1475 [stage1_libs=$with_host_libstdcxx]) 1577 [stage1_libs=$with_host_libstdcxx])
1476 AC_SUBST(stage1_libs) 1578 AC_SUBST(stage1_libs)
1477 1579
1580 # Linker flags to use for stage1 or when not bootstrapping.
1581 AC_ARG_WITH(stage1-ldflags,
1582 [AS_HELP_STRING([--with-stage1-ldflags=FLAGS], [linker flags for stage1])],
1583 [if test "$withval" = "no" -o "$withval" = "yes"; then
1584 stage1_ldflags=
1585 else
1586 stage1_ldflags=$withval
1587 fi],
1588 [stage1_ldflags=
1589 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
1590 # if supported. But if the user explicitly specified the libraries to use,
1591 # trust that they are doing what they want.
1592 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
1593 stage1_ldflags="-static-libstdc++ -static-libgcc"
1594 fi])
1595 AC_SUBST(stage1_ldflags)
1596
1478 # Libraries to use for stage2 and later builds. This defaults to the 1597 # Libraries to use for stage2 and later builds. This defaults to the
1479 # argument passed to --with-host-libstdcxx. 1598 # argument passed to --with-host-libstdcxx.
1480 AC_ARG_WITH(boot-libs, 1599 AC_ARG_WITH(boot-libs,
1481 [AS_HELP_STRING([--with-boot-libs=LIBS], [libraries for stage2 and later])], 1600 [AS_HELP_STRING([--with-boot-libs=LIBS], [libraries for stage2 and later])],
1482 [if test "$withval" = "no" -o "$withval" = "yes"; then 1601 [if test "$withval" = "no" -o "$withval" = "yes"; then
1483 poststage1_libs= 1602 poststage1_libs=
1484 else 1603 else
1485 poststage1_libs=$withval 1604 poststage1_libs=$withval
1486 fi], 1605 fi],
1487 [poststage1_libs=$with_host_libstdcxx]) 1606 [poststage1_libs=$with_host_libstdcxx])
(...skipping 10 matching lines...) Expand all
1498 fi], 1617 fi],
1499 [poststage1_ldflags= 1618 [poststage1_ldflags=
1500 # In stages 2 and 3, default to linking libstdc++ and libgcc 1619 # In stages 2 and 3, default to linking libstdc++ and libgcc
1501 # statically. But if the user explicitly specified the libraries to 1620 # statically. But if the user explicitly specified the libraries to
1502 # use, trust that they are doing what they want. 1621 # use, trust that they are doing what they want.
1503 if test "$poststage1_libs" = ""; then 1622 if test "$poststage1_libs" = ""; then
1504 poststage1_ldflags="-static-libstdc++ -static-libgcc" 1623 poststage1_ldflags="-static-libstdc++ -static-libgcc"
1505 fi]) 1624 fi])
1506 AC_SUBST(poststage1_ldflags) 1625 AC_SUBST(poststage1_ldflags)
1507 1626
1508 # Check for PPL 1627 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
1509 ppllibs= 1628 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
1510 pplinc= 1629 # config/isl.m4
1511 pwllib=
1512 1630
1513 AC_ARG_WITH(ppl, 1631 AC_ARG_WITH(cloog,
1514 [AS_HELP_STRING([--with-ppl=PATH], 1632 [AS_HELP_STRING(
1515 » » [specify prefix directory for the installed PPL package. 1633 [--with-cloog=PATH],
1516 » » Equivalent to --with-ppl-include=PATH/include 1634 [Specify prefix directory for the installed CLooG-ISL package.
1517 » » plus --with-ppl-lib=PATH/lib])]) 1635 Equivalent to --with-cloog-include=PATH/include
1518 AC_ARG_WITH(ppl-include, 1636 plus --with-cloog-lib=PATH/lib])])
1519 [AS_HELP_STRING([--with-ppl-include=PATH], 1637 AC_ARG_WITH(isl,
1520 » » [specify directory for installed PPL include files])]) 1638 [AS_HELP_STRING(
1521 AC_ARG_WITH(ppl-lib, 1639 [--with-isl=PATH],
1522 [AS_HELP_STRING([--with-ppl-lib=PATH], 1640 [Specify prefix directory for the installed ISL package.
1523 » » [specify directory for the installed PPL library])]) 1641 Equivalent to --with-isl-include=PATH/include
1642 plus --with-isl-lib=PATH/lib])])
1524 1643
1525 AC_ARG_ENABLE(ppl-version-check, 1644 # Treat either --without-cloog or --without-isl as a request to disable
1526 [AS_HELP_STRING([--disable-ppl-version-check], 1645 # GRAPHITE support and skip all following checks.
1527 » » [disable check for PPL version])]) 1646 if test "x$with_isl" != "xno" &&
1647 test "x$with_cloog" != "xno"; then
1648 # Check for ISL
1649 dnl Provide configure switches and initialize islinc & isllibs
1650 dnl with user input.
1651 ISL_INIT_FLAGS
1652 dnl The versions of ISL that work for Graphite
1653 ISL_CHECK_VERSION(0,10)
1654 if test "${gcc_cv_isl}" = no ; then
1655 ISL_CHECK_VERSION(0,11)
1656 if test "${gcc_cv_isl}" = no ; then
1657 ISL_CHECK_VERSION(0,12)
1658 fi
1659 fi
1660 dnl Only execute fail-action, if ISL has been requested.
1661 ISL_IF_FAILED([
1662 AC_MSG_ERROR([Unable to find a usable ISL. See config.log for details.])])
1528 1663
1529 case $with_ppl in 1664 if test "x$gcc_cv_isl" != "xno"; then
1530 yes | no | "") 1665 # Check for CLOOG
1531 ;; 1666 dnl Provide configure switches and initialize clooginc & clooglibs
1532 *) 1667 dnl with user input.
1533 ppllibs="-L$with_ppl/lib" 1668 CLOOG_INIT_FLAGS
1534 pplinc="-I$with_ppl/include $pplinc" 1669 dnl The versions of CLooG that work for Graphite.
1535 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then 1670 CLOOG_CHECK_VERSION(0,17,0)
1536 with_ppl=yes 1671 if test "${gcc_cv_cloog}" = no ; then
1537 else 1672 CLOOG_CHECK_VERSION(0,18,0)
1538 AC_MSG_ERROR([cannot find directories "$with_ppl/lib" or "$with_ppl/includ e"])
1539 fi 1673 fi
1540 ;;
1541 esac
1542 1674
1543 if test x"$with_ppl_include" != x; then 1675 dnl Only execute fail-action, if CLooG has been requested.
1544 pplinc="-I$with_ppl_include $pplinc" 1676 CLOOG_IF_FAILED([
1545 with_ppl=yes 1677 AC_MSG_ERROR([Unable to find a usable CLooG. See config.log for details.] )])
1546 fi
1547
1548 if test "x$with_ppl_lib" != x; then
1549 ppllibs="-L$with_ppl_lib"
1550 with_ppl=yes
1551 fi
1552
1553 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
1554 if test x"$enable_watchdog" = xyes; then
1555 pwllib="-lpwl"
1556 fi
1557 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_ SUBDIR)/ppl/src/'"$lt_cv_objdir"
1558 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
1559 enable_ppl_version_check=no
1560 with_ppl=yes
1561 fi
1562
1563 if test "x$with_ppl" != xno; then
1564 if test "x$pwllib" = x; then
1565 saved_LIBS="$LIBS"
1566 LIBS="$LIBS $ppllibs -lstdc++ -lm"
1567 AC_CHECK_LIB(pwl, PWL_handle_timeout, [pwllib="-lpwl"])
1568 LIBS="$saved_LIBS"
1569 fi
1570
1571 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
1572
1573 if test "$enable_ppl_version_check" != no; then
1574 saved_CFLAGS="$CFLAGS"
1575 CFLAGS="$CFLAGS $pplinc $gmpinc"
1576 AC_MSG_CHECKING([for version 0.11 (revision 0 or later) of PPL])
1577 AC_TRY_COMPILE([#include "ppl_c.h"],[
1578 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
1579 choke me
1580 #endif
1581 ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); ppllibs= ; pplinc= ; with_p pl=no ])
1582 CFLAGS="$saved_CFLAGS"
1583 fi 1678 fi
1584 fi 1679 fi
1585 1680
1586 # Flags needed for PPL 1681 # If either the ISL or the CLooG check failed, disable builds of in-tree
1587 AC_SUBST(ppllibs) 1682 # variants of both
1588 AC_SUBST(pplinc) 1683 if test "x$with_isl" = xno ||
1684 test "x$with_cloog" = xno ||
1685 test "x$gcc_cv_cloog" = xno ||
1686 test "x$gcc_cv_isl" = xno; then
1687 noconfigdirs="$noconfigdirs cloog isl"
1688 islinc=
1689 clooginc=
1690 clooglibs=
1691 fi
1589 1692
1693 AC_SUBST(islinc)
1694 AC_SUBST(clooglibs)
1695 AC_SUBST(clooginc)
1590 1696
1591 # Check for CLOOG
1592
1593 dnl Provide configure switches and initialize clooginc & clooglibs
1594 dnl with user input.
1595 CLOOG_INIT_FLAGS
1596 if test "x$with_ppl" = "xno"; then
1597 dnl Only execute fail-action, if CLooG has been requested.
1598 CLOOG_REQUESTED([graphite_requested=yes], [graphite_requested=no])
1599 if test "${graphite_requested}" = yes; then
1600 AC_MSG_ERROR([Unable to find a usable PPL. See config.log for details.])
1601 fi
1602 with_cloog=no
1603 fi
1604 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
1605 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
1606 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
1607 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
1608 fi
1609 if test "x$with_cloog" != "xno"; then
1610 dnl The minimal version of CLooG required for Graphite.
1611 dnl
1612 dnl If we use CLooG-Legacy, the provided version information is
1613 dnl ignored.
1614 CLOOG_CHECK_VERSION(0,16,1)
1615
1616 dnl Only execute fail-action, if CLooG has been requested.
1617 CLOOG_IF_FAILED([
1618 AC_MSG_ERROR([Unable to find a usable CLooG. See config.log for details.])] )
1619 fi
1620 1697
1621 # Check for LTO support. 1698 # Check for LTO support.
1622 AC_ARG_ENABLE(lto, 1699 AC_ARG_ENABLE(lto,
1623 [AS_HELP_STRING([--enable-lto], [enable link time optimization support])], 1700 [AS_HELP_STRING([--enable-lto], [enable link time optimization support])],
1624 enable_lto=$enableval, 1701 enable_lto=$enableval,
1625 enable_lto=yes; default_enable_lto=yes) 1702 enable_lto=yes; default_enable_lto=yes)
1626 1703
1627 ACX_ELF_TARGET_IFELSE([# ELF platforms build the lto-plugin always. 1704 ACX_ELF_TARGET_IFELSE([# ELF platforms build the lto-plugin always.
1628 build_lto_plugin=yes 1705 build_lto_plugin=yes
1629 ],[if test x"$default_enable_lto" = x"yes" ; then 1706 ],[if test x"$default_enable_lto" = x"yes" ; then
(...skipping 18 matching lines...) Expand all
1648 fi 1725 fi
1649 # Among non-ELF, only Windows platforms support the lto-plugin so far. 1726 # Among non-ELF, only Windows platforms support the lto-plugin so far.
1650 # Build it unless LTO was explicitly disabled. 1727 # Build it unless LTO was explicitly disabled.
1651 case $target in 1728 case $target in
1652 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; 1729 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1653 *) ;; 1730 *) ;;
1654 esac 1731 esac
1655 ]) 1732 ])
1656 1733
1657 1734
1658 # By default, C is the only stage 1 language. 1735 # By default, C and C++ are the only stage 1 languages.
1659 stage1_languages=,c, 1736 stage1_languages=,c,
1660 1737
1661 # Target libraries that we bootstrap. 1738 # Target libraries that we bootstrap.
1662 bootstrap_target_libs=,target-libgcc, 1739 bootstrap_target_libs=,target-libgcc,
1663 1740
1664 # Figure out what language subdirectories are present. 1741 # Figure out what language subdirectories are present.
1665 # Look if the user specified --enable-languages="..."; if not, use 1742 # Look if the user specified --enable-languages="..."; if not, use
1666 # the environment variable $LANGUAGES if defined. $LANGUAGES might 1743 # the environment variable $LANGUAGES if defined. $LANGUAGES might
1667 # go away some day. 1744 # go away some day.
1668 # NB: embedded tabs in this IF block -- do not untabify 1745 # NB: embedded tabs in this IF block -- do not untabify
(...skipping 17 matching lines...) Expand all
1686 1763
1687 # 'f95' is the old name for the 'fortran' language. We issue a warning 1764 # 'f95' is the old name for the 'fortran' language. We issue a warning
1688 # and make the substitution. 1765 # and make the substitution.
1689 case ,${enable_languages}, in 1766 case ,${enable_languages}, in
1690 *,f95,*) 1767 *,f95,*)
1691 echo configure.in: warning: 'f95' as language name is deprecated, use 'for tran' instead 1>&2 1768 echo configure.in: warning: 'f95' as language name is deprecated, use 'for tran' instead 1>&2
1692 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` 1769 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
1693 ;; 1770 ;;
1694 esac 1771 esac
1695 1772
1696 # If bootstrapping, then using --enable-build-with-cxx or 1773 # If bootstrapping, C++ must be enabled.
1697 # --enable-build-poststage1-with-cxx requires enabling C++. 1774 case ",$enable_languages,:$enable_bootstrap" in
1698 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WIT H_CXX,:$enable_bootstrap" in 1775 *,c++,*:*) ;;
1699 *,c++,*:*:*) ;; 1776 *:yes)
1700 *:*,yes,*:yes)
1701 if test -f ${srcdir}/gcc/cp/config-lang.in; then 1777 if test -f ${srcdir}/gcc/cp/config-lang.in; then
1702 enable_languages="${enable_languages},c++" 1778 enable_languages="${enable_languages},c++"
1703 else 1779 else
1704 AC_MSG_ERROR([bootstrapping with --enable-build-with-cxx or --enable-bui ld-poststage1-with-cxx requires c++ sources]) 1780 AC_MSG_ERROR([bootstrapping requires c++ sources])
1705 fi 1781 fi
1706 ;; 1782 ;;
1707 esac 1783 esac
1708 1784
1709 # First scan to see if an enabled language requires some other language. 1785 # First scan to see if an enabled language requires some other language.
1710 # We assume that a given config-lang.in will list all the language 1786 # We assume that a given config-lang.in will list all the language
1711 # front ends it requires, even if some are required indirectly. 1787 # front ends it requires, even if some are required indirectly.
1712 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 1788 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
1713 case ${lang_frag} in 1789 case ${lang_frag} in
1714 ..) ;; 1790 ..) ;;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1774 enabled_target_libs= 1850 enabled_target_libs=
1775 disabled_target_libs= 1851 disabled_target_libs=
1776 1852
1777 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 1853 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
1778 case ${lang_frag} in 1854 case ${lang_frag} in
1779 ..) ;; 1855 ..) ;;
1780 # The odd quoting in the next line works around 1856 # The odd quoting in the next line works around
1781 # an apparent bug in bash 1.12 on linux. 1857 # an apparent bug in bash 1.12 on linux.
1782 ${srcdir}/gcc/[[*]]/config-lang.in) ;; 1858 ${srcdir}/gcc/[[*]]/config-lang.in) ;;
1783 *) 1859 *)
1784 # From the config-lang.in, get $language, $target_libs, 1860 # From the config-lang.in, get $language, $target_libs,
1785 # $lang_dirs, $boot_language, and $build_by_default 1861 # $lang_dirs, $boot_language, and $build_by_default
1786 language= 1862 language=
1787 target_libs= 1863 target_libs=
1788 lang_dirs= 1864 lang_dirs=
1789 subdir_requires= 1865 subdir_requires=
1790 boot_language=no 1866 boot_language=no
1791 build_by_default=yes 1867 build_by_default=yes
1792 . ${lang_frag} 1868 . ${lang_frag}
1793 if test x${language} = x; then 1869 if test x${language} = x; then
1794 echo "${lang_frag} doesn't set \$language." 1>&2 1870 echo "${lang_frag} doesn't set \$language." 1>&2
1795 exit 1 1871 exit 1
1796 fi 1872 fi
1797 1873
1798 if test "$language" = "c++"; then 1874 if test "$language" = "c++"; then
1799 » if test "$ENABLE_BUILD_WITH_CXX" = "yes" \ 1875 » boot_language=yes
1800 » || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
1801 » boot_language=yes
1802 » fi
1803 fi 1876 fi
1804 1877
1878 add_this_lang=no
1805 case ,${enable_languages}, in 1879 case ,${enable_languages}, in
1806 *,${language},*) 1880 *,${language},*)
1807 # Language was explicitly selected; include it. 1881 # Language was explicitly selected; include it
1808 add_this_lang=yes 1882 » # unless it is C, which is enabled by default.
1883 » if test "$language" != "c"; then
1884 » add_this_lang=yes
1885 » fi
1809 ;; 1886 ;;
1810 *,all,*) 1887 *,all,*)
1811 # 'all' was selected, select it if it is a default language 1888 # 'all' was selected, select it if it is a default language
1812 add_this_lang=${build_by_default} 1889 » if test "$language" != "c"; then
1813 ;; 1890 » add_this_lang=${build_by_default}
1814 *) 1891 » fi
1815 add_this_lang=no
1816 ;; 1892 ;;
1817 esac 1893 esac
1818 1894
1819 # Disable languages that need other directories if these aren't availabl e. 1895 # Disable languages that need other directories if these aren't availabl e.
1820 for i in $subdir_requires; do 1896 for i in $subdir_requires; do
1821 test -f "$srcdir/gcc/$i/config-lang.in" && continue 1897 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1822 case ,${enable_languages}, in 1898 case ,${enable_languages}, in
1823 *,${language},*) 1899 *,${language},*)
1824 # Specifically requested language; tell them. 1900 # Specifically requested language; tell them.
1825 AC_MSG_ERROR([The gcc/$i directory contains parts of $language but is missing]) 1901 AC_MSG_ERROR([The gcc/$i directory contains parts of $language but is missing])
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 # Keep target-boehm-gc if requested for Objective-C. 2050 # Keep target-boehm-gc if requested for Objective-C.
1975 ;; 2051 ;;
1976 *) 2052 *)
1977 # Otherwise remove target-boehm-gc depending on target-libjava. 2053 # Otherwise remove target-boehm-gc depending on target-libjava.
1978 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then 2054 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
1979 noconfigdirs="$noconfigdirs target-boehm-gc" 2055 noconfigdirs="$noconfigdirs target-boehm-gc"
1980 fi 2056 fi
1981 ;; 2057 ;;
1982 esac 2058 esac
1983 2059
2060 # Disable libitm, libsanitizer, libvtv if we're not building C++
2061 case ,${enable_languages}, in
2062 *,c++,*) ;;
2063 *)
2064 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsaniti zer target-libvtv"
2065 ;;
2066 esac
2067
1984 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, 2068 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
1985 # $build_configdirs and $target_configdirs. 2069 # $build_configdirs and $target_configdirs.
1986 # If we have the source for $noconfigdirs entries, add them to $notsupp. 2070 # If we have the source for $noconfigdirs entries, add them to $notsupp.
1987 2071
1988 notsupp="" 2072 notsupp=""
1989 for dir in . $skipdirs $noconfigdirs ; do 2073 for dir in . $skipdirs $noconfigdirs ; do
1990 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` 2074 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
1991 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1 ; then 2075 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1 ; then
1992 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` 2076 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
1993 if test -r $srcdir/$dirname/configure ; then 2077 if test -r $srcdir/$dirname/configure ; then
(...skipping 25 matching lines...) Expand all
2019 fi 2103 fi
2020 fi 2104 fi
2021 done 2105 done
2022 2106
2023 # Quietly strip out all directories which aren't configurable in this tree. 2107 # Quietly strip out all directories which aren't configurable in this tree.
2024 # This relies on all configurable subdirectories being autoconfiscated, which 2108 # This relies on all configurable subdirectories being autoconfiscated, which
2025 # is now the case. 2109 # is now the case.
2026 build_configdirs_all="$build_configdirs" 2110 build_configdirs_all="$build_configdirs"
2027 build_configdirs= 2111 build_configdirs=
2028 for i in ${build_configdirs_all} ; do 2112 for i in ${build_configdirs_all} ; do
2029 j=`echo $i | sed -e s/build-//g` 2113 j=`echo $i | sed -e s/build-//g`
2030 if test -f ${srcdir}/$j/configure ; then 2114 if test -f ${srcdir}/$j/configure ; then
2031 build_configdirs="${build_configdirs} $i" 2115 build_configdirs="${build_configdirs} $i"
2032 fi 2116 fi
2033 done 2117 done
2034 2118
2035 configdirs_all="$configdirs" 2119 configdirs_all="$configdirs"
2036 configdirs= 2120 configdirs=
2037 for i in ${configdirs_all} ; do 2121 for i in ${configdirs_all} ; do
2038 if test -f ${srcdir}/$i/configure ; then 2122 if test -f ${srcdir}/$i/configure ; then
2039 configdirs="${configdirs} $i" 2123 configdirs="${configdirs} $i"
2040 fi 2124 fi
2041 done 2125 done
2042 2126
2043 target_configdirs_all="$target_configdirs" 2127 target_configdirs_all="$target_configdirs"
2044 target_configdirs= 2128 target_configdirs=
2045 for i in ${target_configdirs_all} ; do 2129 for i in ${target_configdirs_all} ; do
2046 j=`echo $i | sed -e s/target-//g` 2130 j=`echo $i | sed -e s/target-//g`
2047 if test -f ${srcdir}/$j/configure ; then 2131 if test -f ${srcdir}/$j/configure ; then
2048 target_configdirs="${target_configdirs} $i" 2132 target_configdirs="${target_configdirs} $i"
2049 fi 2133 fi
2050 done 2134 done
2051 2135
2052 # Produce a warning message for the subdirs we can't configure. 2136 # Produce a warning message for the subdirs we can't configure.
2053 # This isn't especially interesting in the Cygnus tree, but in the individual 2137 # This isn't especially interesting in the Cygnus tree, but in the individual
2054 # FSF releases, it's important to let people know when their machine isn't 2138 # FSF releases, it's important to let people know when their machine isn't
2055 # supported by the one or two programs in a package. 2139 # supported by the one or two programs in a package.
2056 2140
(...skipping 30 matching lines...) Expand all
2087 case "$host" in 2171 case "$host" in
2088 *msdosdjgpp*) 2172 *msdosdjgpp*)
2089 enable_gdbtk=no ;; 2173 enable_gdbtk=no ;;
2090 esac 2174 esac
2091 2175
2092 # To find our prefix, in gcc_cv_tool_prefix. 2176 # To find our prefix, in gcc_cv_tool_prefix.
2093 ACX_TOOL_DIRS 2177 ACX_TOOL_DIRS
2094 2178
2095 copy_dirs= 2179 copy_dirs=
2096 2180
2097 AC_ARG_WITH([build-sysroot], 2181 AC_ARG_WITH([build-sysroot],
2098 [AS_HELP_STRING([--with-build-sysroot=SYSROOT], 2182 [AS_HELP_STRING([--with-build-sysroot=SYSROOT],
2099 [use sysroot as the system root during the build])], 2183 [use sysroot as the system root during the build])],
2100 [if test x"$withval" != x ; then 2184 [if test x"$withval" != x ; then
2101 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" 2185 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2102 fi], 2186 fi],
2103 [SYSROOT_CFLAGS_FOR_TARGET=]) 2187 [SYSROOT_CFLAGS_FOR_TARGET=])
2104 AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET) 2188 AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)
2105 2189
2106 AC_ARG_WITH([debug-prefix-map], 2190 AC_ARG_WITH([debug-prefix-map],
2107 [AS_HELP_STRING([--with-debug-prefix-map='A=B C=D ...'], 2191 [AS_HELP_STRING([--with-debug-prefix-map='A=B C=D ...'],
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2178 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" 2262 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
2179 done 2263 done
2180 fi 2264 fi
2181 fi 2265 fi
2182 2266
2183 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. 2267 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2184 # 2268 #
2185 # This is done by determining whether or not the appropriate directory 2269 # This is done by determining whether or not the appropriate directory
2186 # is available, and by checking whether or not specific configurations 2270 # is available, and by checking whether or not specific configurations
2187 # have requested that this magic not happen. 2271 # have requested that this magic not happen.
2188 # 2272 #
2189 # The command line options always override the explicit settings in 2273 # The command line options always override the explicit settings in
2190 # configure.in, and the settings in configure.in override this magic. 2274 # configure.in, and the settings in configure.in override this magic.
2191 # 2275 #
2192 # If the default for a toolchain is to use GNU as and ld, and you don't 2276 # If the default for a toolchain is to use GNU as and ld, and you don't
2193 # want to do that, then you should use the --without-gnu-as and 2277 # want to do that, then you should use the --without-gnu-as and
2194 # --without-gnu-ld options for the configure script. Similarly, if 2278 # --without-gnu-ld options for the configure script. Similarly, if
2195 # the default is to use the included zlib and you don't want to do that, 2279 # the default is to use the included zlib and you don't want to do that,
2196 # you should use the --with-system-zlib option for the configure script. 2280 # you should use the --with-system-zlib option for the configure script.
2197 2281
2198 if test x${use_gnu_as} = x && 2282 if test x${use_gnu_as} = x &&
2199 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then 2283 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2200 with_gnu_as=yes 2284 with_gnu_as=yes
2201 extra_host_args="$extra_host_args --with-gnu-as" 2285 extra_host_args="$extra_host_args --with-gnu-as"
2202 fi 2286 fi
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
2270 esac 2354 esac
2271 2355
2272 extra_arflags_for_target= 2356 extra_arflags_for_target=
2273 extra_nmflags_for_target= 2357 extra_nmflags_for_target=
2274 extra_ranlibflags_for_target= 2358 extra_ranlibflags_for_target=
2275 target_makefile_frag=/dev/null 2359 target_makefile_frag=/dev/null
2276 case "${target}" in 2360 case "${target}" in
2277 spu-*-*) 2361 spu-*-*)
2278 target_makefile_frag="config/mt-spu" 2362 target_makefile_frag="config/mt-spu"
2279 ;; 2363 ;;
2280 mips*-sde-elf*) 2364 mips*-sde-elf* | mips*-mti-elf*)
2281 target_makefile_frag="config/mt-sde" 2365 target_makefile_frag="config/mt-sde"
2282 ;; 2366 ;;
2283 mipsisa*-*-elfoabi*) 2367 mipsisa*-*-elfoabi*)
2284 target_makefile_frag="config/mt-mips-elfoabi" 2368 target_makefile_frag="config/mt-mips-elfoabi"
2285 ;; 2369 ;;
2286 mips*-*-*linux* | mips*-*-gnu*) 2370 mips*-*-*linux* | mips*-*-gnu*)
2287 target_makefile_frag="config/mt-mips-gnu" 2371 target_makefile_frag="config/mt-mips-gnu"
2288 ;; 2372 ;;
2289 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 2373 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2290 target_makefile_frag="config/mt-gnu" 2374 target_makefile_frag="config/mt-gnu"
2291 ;; 2375 ;;
2292 *-*-aix4.[[3456789]]* | *-*-aix[[56789]].*) 2376 *-*-aix4.[[3456789]]* | *-*-aix[[56789]].*)
2293 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm 2377 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2294 # commands to handle both 32-bit and 64-bit objects. These flags are 2378 # commands to handle both 32-bit and 64-bit objects. These flags are
2295 # harmless if we're using GNU nm or ar. 2379 # harmless if we're using GNU nm or ar.
2296 extra_arflags_for_target=" -X32_64" 2380 extra_arflags_for_target=" -X32_64"
2297 extra_nmflags_for_target=" -B -X32_64" 2381 extra_nmflags_for_target=" -B -X32_64"
2298 ;; 2382 ;;
2299 *-*-darwin[[3-9]]*)
2300 # ranlib before Darwin10 requires the -c flag to look at common symbols.
2301 extra_ranlibflags_for_target=" -c"
2302 ;;
2303 esac 2383 esac
2304 2384
2305 alphaieee_frag=/dev/null 2385 alphaieee_frag=/dev/null
2306 case $target in 2386 case $target in
2307 alpha*-*-*) 2387 alpha*-*-*)
2308 # This just makes sure to use the -mieee option to build target libs. 2388 # This just makes sure to use the -mieee option to build target libs.
2309 # This should probably be set individually by each library. 2389 # This should probably be set individually by each library.
2310 alphaieee_frag="config/mt-alphaieee" 2390 alphaieee_frag="config/mt-alphaieee"
2311 ;; 2391 ;;
2312 esac 2392 esac
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2357 # can't, we are probably in trouble. We don't care whether we can run the 2437 # can't, we are probably in trouble. We don't care whether we can run the
2358 # executable--we might be using a cross compiler--we only care whether it 2438 # executable--we might be using a cross compiler--we only care whether it
2359 # can be created. At this point the main configure script has set CC. 2439 # can be created. At this point the main configure script has set CC.
2360 we_are_ok=no 2440 we_are_ok=no
2361 echo "int main () { return 0; }" > conftest.c 2441 echo "int main () { return 0; }" > conftest.c
2362 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 2442 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2363 if test $? = 0 ; then 2443 if test $? = 0 ; then
2364 if test -s conftest || test -s conftest.exe ; then 2444 if test -s conftest || test -s conftest.exe ; then
2365 we_are_ok=yes 2445 we_are_ok=yes
2366 fi 2446 fi
2367 fi 2447 fi
2368 case $we_are_ok in 2448 case $we_are_ok in
2369 no) 2449 no)
2370 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAG S} conftest.c' failed." 2450 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAG S} conftest.c' failed."
2371 echo 1>&2 "*** You must set the environment variable CC to a working compile r." 2451 echo 1>&2 "*** You must set the environment variable CC to a working compile r."
2372 rm -f conftest* 2452 rm -f conftest*
2373 exit 1 2453 exit 1
2374 ;; 2454 ;;
2375 esac 2455 esac
2376 rm -f conftest* 2456 rm -f conftest*
2377 2457
(...skipping 17 matching lines...) Expand all
2395 # Record target_configdirs and the configure arguments for target and 2475 # Record target_configdirs and the configure arguments for target and
2396 # build configuration in Makefile. 2476 # build configuration in Makefile.
2397 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` 2477 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2398 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` 2478 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
2399 2479
2400 # If we are building libgomp, bootstrap it. 2480 # If we are building libgomp, bootstrap it.
2401 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then 2481 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
2402 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, 2482 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
2403 fi 2483 fi
2404 2484
2485 # If we are building libsanitizer, bootstrap it.
2486 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then
2487 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
2488 fi
2489
2490 # If we are building libvtv, bootstrap it.
2491 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 ; then
2492 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
2493 fi
2494
2405 # Determine whether gdb needs tk/tcl or not. 2495 # Determine whether gdb needs tk/tcl or not.
2406 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available 2496 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2407 # and in that case we want gdb to be built without tk. Ugh! 2497 # and in that case we want gdb to be built without tk. Ugh!
2408 # In fact I believe gdb is the *only* package directly dependent on tk, 2498 # In fact I believe gdb is the *only* package directly dependent on tk,
2409 # so we should be able to put the 'maybe's in unconditionally and 2499 # so we should be able to put the 'maybe's in unconditionally and
2410 # leave out the maybe dependencies when enable_gdbtk is false. I'm not 2500 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2411 # 100% sure that that's safe though. 2501 # 100% sure that that's safe though.
2412 2502
2413 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" 2503 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
2414 case "$enable_gdbtk" in 2504 case "$enable_gdbtk" in
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 *[-_]lib) 2748 *[-_]lib)
2659 lib=`echo "$libopt" | sed 's,[-_]lib$,,'` 2749 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
2660 ;; 2750 ;;
2661 *) 2751 *)
2662 lib=$libopt 2752 lib=$libopt
2663 ;; 2753 ;;
2664 esac 2754 esac
2665 changequote([,]) 2755 changequote([,])
2666 2756
2667 case $lib in 2757 case $lib in
2668 mpc | mpfr | gmp | ppl | cloog) 2758 mpc | mpfr | gmp | cloog)
2669 # If we're processing --with-$lib, --with-$lib-include or 2759 # If we're processing --with-$lib, --with-$lib-include or
2670 # --with-$lib-lib, for one of the libs above, and target is 2760 # --with-$lib-lib, for one of the libs above, and target is
2671 # different from host, don't pass the current argument to any 2761 # different from host, don't pass the current argument to any
2672 # target library's configure. 2762 # target library's configure.
2673 if test x$is_cross_compiler = xyes; then 2763 if test x$is_cross_compiler = xyes; then
2674 skip_targ=yes 2764 skip_targ=yes
2675 fi 2765 fi
2676 ;; 2766 ;;
2677 esac 2767 esac
2678 ;; 2768 ;;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 esac 2817 esac
2728 done 2818 done
2729 # Remove the initial space we just introduced and, as these will be 2819 # Remove the initial space we just introduced and, as these will be
2730 # expanded by make, quote '$'. 2820 # expanded by make, quote '$'.
2731 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` 2821 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2732 2822
2733 # Add in --program-transform-name, after --program-prefix and 2823 # Add in --program-transform-name, after --program-prefix and
2734 # --program-suffix have been applied to it. Autoconf has already 2824 # --program-suffix have been applied to it. Autoconf has already
2735 # doubled dollar signs and backslashes in program_transform_name; we want 2825 # doubled dollar signs and backslashes in program_transform_name; we want
2736 # the backslashes un-doubled, and then the entire thing wrapped in single 2826 # the backslashes un-doubled, and then the entire thing wrapped in single
2737 # quotes, because this will be expanded first by make and then by the shell. 2827 # quotes, because this will be expanded first by make and then by the shell.
2738 # Also, because we want to override the logic in subdir configure scripts to 2828 # Also, because we want to override the logic in subdir configure scripts to
2739 # choose program_transform_name, replace any s,x,x, with s,y,y,. 2829 # choose program_transform_name, replace any s,x,x, with s,y,y,.
2740 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftest sed.out 2830 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftest sed.out
2741 ${program_transform_name} 2831 ${program_transform_name}
2742 EOF_SED 2832 EOF_SED
2743 gcc_transform_name=`cat conftestsed.out` 2833 gcc_transform_name=`cat conftestsed.out`
2744 rm -f conftestsed.out 2834 rm -f conftestsed.out
2745 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" 2835 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2746 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" 2836 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2747 if test "$silent" = yes; then 2837 if test "$silent" = yes; then
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
2814 # for target_alias and gcc doesn't manage it consistently. 2904 # for target_alias and gcc doesn't manage it consistently.
2815 target_configargs="--cache-file=./config.cache ${target_configargs}" 2905 target_configargs="--cache-file=./config.cache ${target_configargs}"
2816 2906
2817 FLAGS_FOR_TARGET= 2907 FLAGS_FOR_TARGET=
2818 case " $target_configdirs " in 2908 case " $target_configdirs " in
2819 *" newlib "*) 2909 *" newlib "*)
2820 case " $target_configargs " in 2910 case " $target_configargs " in
2821 *" --with-newlib "*) 2911 *" --with-newlib "*)
2822 case "$target" in 2912 case "$target" in
2823 *-cygwin*) 2913 *-cygwin*)
2824 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$( TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $ $s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/ include' 2914 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin - isystem $$s/winsup/cygwin/include'
2825 ;; 2915 ;;
2826 esac 2916 esac
2827 2917
2828 # If we're not building GCC, don't discard standard headers. 2918 # If we're not building GCC, don't discard standard headers.
2829 if test -d ${srcdir}/gcc; then 2919 if test -d ${srcdir}/gcc; then
2830 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' 2920 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
2831 2921
2832 if test "${build}" != "${host}"; then 2922 if test "${build}" != "${host}"; then
2833 # On Canadian crosses, CC_FOR_TARGET will have already been set 2923 # On Canadian crosses, CC_FOR_TARGET will have already been set
2834 # by `configure', so we won't have an opportunity to add -Bgcc/ 2924 # by `configure', so we won't have an opportunity to add -Bgcc/
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
3052 NCN_STRICT_CHECK_TOOLS(WINDMC, windmc) 3142 NCN_STRICT_CHECK_TOOLS(WINDMC, windmc)
3053 NCN_STRICT_CHECK_TOOLS(OBJCOPY, objcopy) 3143 NCN_STRICT_CHECK_TOOLS(OBJCOPY, objcopy)
3054 NCN_STRICT_CHECK_TOOLS(OBJDUMP, objdump) 3144 NCN_STRICT_CHECK_TOOLS(OBJDUMP, objdump)
3055 NCN_STRICT_CHECK_TOOLS(READELF, readelf) 3145 NCN_STRICT_CHECK_TOOLS(READELF, readelf)
3056 AC_SUBST(CC) 3146 AC_SUBST(CC)
3057 AC_SUBST(CXX) 3147 AC_SUBST(CXX)
3058 AC_SUBST(CFLAGS) 3148 AC_SUBST(CFLAGS)
3059 AC_SUBST(CXXFLAGS) 3149 AC_SUBST(CXXFLAGS)
3060 3150
3061 # Target tools. 3151 # Target tools.
3062 AC_ARG_WITH([build-time-tools], 3152 AC_ARG_WITH([build-time-tools],
3063 [AS_HELP_STRING([--with-build-time-tools=PATH], 3153 [AS_HELP_STRING([--with-build-time-tools=PATH],
3064 [use given path to find target tools during the build])], 3154 [use given path to find target tools during the build])],
3065 [case x"$withval" in 3155 [case x"$withval" in
3066 x/*) ;; 3156 x/*) ;;
3067 *) 3157 *)
3068 with_build_time_tools= 3158 with_build_time_tools=
3069 AC_MSG_WARN([argument to --with-build-time-tools must be an absolute path ]) 3159 AC_MSG_WARN([argument to --with-build-time-tools must be an absolute path ])
3070 ;; 3160 ;;
3071 esac], 3161 esac],
3072 [with_build_time_tools=]) 3162 [with_build_time_tools=])
(...skipping 18 matching lines...) Expand all
3091 ACX_CHECK_INSTALLED_TARGET_TOOL(WINDRES_FOR_TARGET, windres) 3181 ACX_CHECK_INSTALLED_TARGET_TOOL(WINDRES_FOR_TARGET, windres)
3092 ACX_CHECK_INSTALLED_TARGET_TOOL(WINDMC_FOR_TARGET, windmc) 3182 ACX_CHECK_INSTALLED_TARGET_TOOL(WINDMC_FOR_TARGET, windmc)
3093 3183
3094 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" 3184 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
3095 3185
3096 GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar]) 3186 GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar])
3097 GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new]) 3187 GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new])
3098 GCC_TARGET_TOOL(cc, CC_FOR_TARGET, CC, [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/]) 3188 GCC_TARGET_TOOL(cc, CC_FOR_TARGET, CC, [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/])
3099 dnl see comments for CXX_FOR_TARGET_FLAG_TO_PASS 3189 dnl see comments for CXX_FOR_TARGET_FLAG_TO_PASS
3100 GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX, 3190 GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX,
3101 » » [gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$ (TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET _SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funco nfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARG ET_SUBDIR)/libstdc++-v3/src/.libs], 3191 » » [gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/ $(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGE T_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -func onfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TAR GET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++ /.libs],
3102 c++) 3192 c++)
3103 GCC_TARGET_TOOL(c++ for libstdc++, RAW_CXX_FOR_TARGET, CXX, 3193 GCC_TARGET_TOOL(c++ for libstdc++, RAW_CXX_FOR_TARGET, CXX,
3104 » » [gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L $$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.l ibs], 3194 » » [gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L $$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.l ibs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs],
3105 c++) 3195 c++)
3106 GCC_TARGET_TOOL(dlltool, DLLTOOL_FOR_TARGET, DLLTOOL, [binutils/dlltool]) 3196 GCC_TARGET_TOOL(dlltool, DLLTOOL_FOR_TARGET, DLLTOOL, [binutils/dlltool])
3107 GCC_TARGET_TOOL(gcc, GCC_FOR_TARGET, , [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/]) 3197 GCC_TARGET_TOOL(gcc, GCC_FOR_TARGET, , [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/])
3108 GCC_TARGET_TOOL(gcj, GCJ_FOR_TARGET, GCJ, 3198 GCC_TARGET_TOOL(gcj, GCJ_FOR_TARGET, GCJ,
3109 [gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/], java) 3199 [gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/], java)
3110 GCC_TARGET_TOOL(gfortran, GFORTRAN_FOR_TARGET, GFORTRAN, 3200 GCC_TARGET_TOOL(gfortran, GFORTRAN_FOR_TARGET, GFORTRAN,
3111 [gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/], fortran) 3201 [gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/], fortran)
3112 GCC_TARGET_TOOL(gccgo, GOC_FOR_TARGET, GOC, 3202 GCC_TARGET_TOOL(gccgo, GOC_FOR_TARGET, GOC,
3113 [gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/], go) 3203 [gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/], go)
3114 GCC_TARGET_TOOL(ld, LD_FOR_TARGET, LD, [ld/ld-new]) 3204 GCC_TARGET_TOOL(ld, LD_FOR_TARGET, LD, [ld/ld-new])
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
3157 USE_MAINTAINER_MODE=no) 3247 USE_MAINTAINER_MODE=no)
3158 AC_MSG_RESULT($USE_MAINTAINER_MODE) 3248 AC_MSG_RESULT($USE_MAINTAINER_MODE)
3159 AC_SUBST(MAINTAINER_MODE_TRUE) 3249 AC_SUBST(MAINTAINER_MODE_TRUE)
3160 AC_SUBST(MAINTAINER_MODE_FALSE) 3250 AC_SUBST(MAINTAINER_MODE_FALSE)
3161 if test "$USE_MAINTAINER_MODE" = yes; then 3251 if test "$USE_MAINTAINER_MODE" = yes; then
3162 MAINTAINER_MODE_TRUE= 3252 MAINTAINER_MODE_TRUE=
3163 MAINTAINER_MODE_FALSE='#' 3253 MAINTAINER_MODE_FALSE='#'
3164 else 3254 else
3165 MAINTAINER_MODE_TRUE='#' 3255 MAINTAINER_MODE_TRUE='#'
3166 MAINTAINER_MODE_FALSE= 3256 MAINTAINER_MODE_FALSE=
3167 fi 3257 fi»
3168 MAINT=$MAINTAINER_MODE_TRUE 3258 MAINT=$MAINTAINER_MODE_TRUE
3169 AC_SUBST(MAINT)dnl 3259 AC_SUBST(MAINT)dnl
3170 3260
3171 # --------------------- 3261 # ---------------------
3172 # GCC bootstrap support 3262 # GCC bootstrap support
3173 # --------------------- 3263 # ---------------------
3174 3264
3175 # Stage specific cflags for build. 3265 # Stage specific cflags for build.
3176 stage1_cflags="-g" 3266 stage1_cflags="-g"
3177 case $build in 3267 case $build in
3178 vax-*-*) 3268 vax-*-*)
3179 case ${GCC} in 3269 case ${GCC} in
3180 yes) stage1_cflags="-g -Wa,-J" ;; 3270 yes) stage1_cflags="-g -Wa,-J" ;;
3181 *) stage1_cflags="-g -J" ;; 3271 *) stage1_cflags="-g -J" ;;
3182 esac ;; 3272 esac ;;
3183 esac 3273 esac
3184 3274
3185 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
3186 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
3187 saved_CFLAGS="$CFLAGS"
3188
3189 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
3190 CFLAGS="$CFLAGS -fkeep-inline-functions"
3191 AC_MSG_CHECKING([whether -fkeep-inline-functions is supported])
3192 AC_TRY_COMPILE([
3193 #if (__GNUC__ < 3) \
3194 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
3195 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
3196 #error http://gcc.gnu.org/PR29382
3197 #endif
3198 ],,
3199 [AC_MSG_RESULT([yes]); stage1_cflags="$stage1_cflags -fkeep-inline-functions "],
3200 [AC_MSG_RESULT([no])])
3201
3202 CFLAGS="$saved_CFLAGS"
3203 fi
3204
3205 AC_SUBST(stage1_cflags) 3275 AC_SUBST(stage1_cflags)
3206 3276
3207 # Enable --enable-checking in stage1 of the compiler. 3277 # Enable --enable-checking in stage1 of the compiler.
3208 AC_ARG_ENABLE(stage1-checking, 3278 AC_ARG_ENABLE(stage1-checking,
3209 [AS_HELP_STRING([[--enable-stage1-checking[=all]]], 3279 [AS_HELP_STRING([[--enable-stage1-checking[=all]]],
3210 [choose additional checking for stage1 of the compiler])], 3280 [choose additional checking for stage1 of the compiler])],
3211 [stage1_checking=--enable-checking=${enable_stage1_checking}], 3281 [stage1_checking=--enable-checking=${enable_stage1_checking}],
3212 [if test "x$enable_checking" = xno || test "x$enable_checking" = x; then 3282 [if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
3213 stage1_checking=--enable-checking=yes,types 3283 stage1_checking=--enable-checking=yes,types
3214 else 3284 else
3215 stage1_checking=--enable-checking=$enable_checking,types 3285 stage1_checking=--enable-checking=$enable_checking,types
3216 fi]) 3286 fi])
3217 AC_SUBST(stage1_checking) 3287 AC_SUBST(stage1_checking)
3218 3288
3219 # Enable -Werror in bootstrap stage2 and later. 3289 # Enable -Werror in bootstrap stage2 and later.
3220 AC_ARG_ENABLE(werror, 3290 AC_ARG_ENABLE(werror,
3221 [AS_HELP_STRING([--enable-werror], 3291 [AS_HELP_STRING([--enable-werror],
3222 [enable -Werror in bootstrap stage2 and later])], [], 3292 [enable -Werror in bootstrap stage2 and later])], [],
3223 [if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental ; then 3293 [if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental ; then
3224 enable_werror=yes 3294 enable_werror=yes
3225 else 3295 else
3226 enable_werror=no 3296 enable_werror=no
3227 fi]) 3297 fi])
3228 case ${enable_werror} in 3298 case ${enable_werror} in
3229 yes) stage2_werror_flag="--enable-werror-always" ;; 3299 yes) stage2_werror_flag="--enable-werror-always" ;;
3230 *) stage2_werror_flag="" ;; 3300 *) stage2_werror_flag="" ;;
3231 esac 3301 esac
3232 AC_SUBST(stage2_werror_flag) 3302 AC_SUBST(stage2_werror_flag)
3233 3303
3234 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass 3304 # Enable --enable-host-shared.
3235 # --enable-build-with-cxx after stage1. 3305 AC_ARG_ENABLE(host-shared,
3236 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then 3306 [AS_HELP_STRING([--enable-host-shared],
3237 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx 3307 » » [build host code as shared libraries])],
3238 else 3308 [host_shared=$enableval], [host_shared=no])
3239 POSTSTAGE1_CONFIGURE_FLAGS= 3309 AC_SUBST(host_shared)
3240 fi
3241 AC_SUBST(POSTSTAGE1_CONFIGURE_FLAGS)
3242 3310
3243 # Specify what files to not compare during bootstrap. 3311 # Specify what files to not compare during bootstrap.
3244 3312
3245 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" 3313 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
3246 case "$target" in 3314 case "$target" in
3247 hppa*64*-*-hpux*) ;; 3315 hppa*64*-*-hpux*) ;;
3248 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2f uncs* | gcc/ada/*tools/*" ;; 3316 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2f uncs* | gcc/ada/*tools/*" ;;
3249 esac 3317 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*t ools/* | *libgomp*\$(objext)" ;;
3250 case " $configdirs " in
3251 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
3252 esac 3318 esac
3253 AC_SUBST(compare_exclusions) 3319 AC_SUBST(compare_exclusions)
3254 3320
3255 AC_CONFIG_FILES([Makefile], 3321 AC_CONFIG_FILES([Makefile],
3256 [sed "$extrasub_build" Makefile | 3322 [sed "$extrasub_build" Makefile |
3257 sed "$extrasub_host" | 3323 sed "$extrasub_host" |
3258 sed "$extrasub_target" > mf$$ 3324 sed "$extrasub_target" > mf$$
3259 mv -f mf$$ Makefile], 3325 mv -f mf$$ Makefile],
3260 [extrasub_build="$extrasub_build" 3326 [extrasub_build="$extrasub_build"
3261 extrasub_host="$extrasub_host" 3327 extrasub_host="$extrasub_host"
3262 extrasub_target="$extrasub_target"]) 3328 extrasub_target="$extrasub_target"])
3263 AC_OUTPUT 3329 AC_OUTPUT
OLDNEW
« no previous file with comments | « configure ('k') | cpu/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698