3 # Download some prerequisites needed by gcc.
4 # Run this from the top level of the gcc source tree and the gcc
5 # build will do the right thing.
7 # (C) 2010-2016 Free Software Foundation
9 # This program is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see http://www.gnu.org/licenses/.
22 # If you want to disable Graphite loop optimizations while building GCC,
23 # DO NOT set GRAPHITE_LOOP_OPT as yes so that the isl package will not
27 if [ ! -e gcc
/BASE-VER
] ; then
28 echo "You must run this script in the top level GCC source directory."
32 # Necessary to build GCC.
37 wget
ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/$MPFR.
tar.bz2 ||
exit 1
38 tar xjf
$MPFR.
tar.bz2 ||
exit 1
39 if test -L mpfr
; then rm -f mpfr
; fi
40 ln -sf $MPFR mpfr ||
exit 1
42 wget
ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/$GMP.
tar.bz2 ||
exit 1
43 tar xjf
$GMP.
tar.bz2 ||
exit 1
44 if test -L gmp
; then rm -f gmp
; fi
45 ln -sf $GMP gmp ||
exit 1
47 wget
ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/$MPC.
tar.gz ||
exit 1
48 tar xzf
$MPC.
tar.gz ||
exit 1
49 if test -L mpc
; then rm -f mpc
; fi
50 ln -sf $MPC mpc ||
exit 1
52 # Necessary to build GCC with the Graphite loop optimizations.
53 if [ "$GRAPHITE_LOOP_OPT" = "yes" ] ; then
56 wget
ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/$ISL.
tar.bz2 ||
exit 1
57 tar xjf
$ISL.
tar.bz2 ||
exit 1
58 if test -L isl
; then rm -f isl
; fi
59 ln -sf $ISL isl ||
exit 1