summaryrefslogtreecommitdiffstats
path: root/gnu/gcc/DEPENDS
blob: f25e201eb3eb8fb2747d2a2bf0c16ce848a95ff6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
. "$GRIMOIRE/FUNCTIONS" &&
. "$GRIMOIRE/libcompat" &&
depends perl &&
depends  diffutils       &&
depends  gmp             &&
depends  libmpc          &&
depends  mpfr            &&
depends  smgl-fhs        &&
depends  smgl-archspecs  &&
depends  zlib "--with-system-zlib" &&

optional_depends GETTEXT \
                 "--enable-nls" \
                 "--disable-nls" \
                 "for Native Language Support" &&


if is_version_less $(installed_version $SPELL) 4.9.0; then
  depends gcc49
fi &&

if is_version_less $(installed_version gmp) 4.3.2; then
  force_depends  mpfr
fi &&
if is_version_less $(installed_version mpfr) 2.4.2; then
  force_depends  mpfr
fi &&

if spell_ok gmp; then
  persistent_read gmp GMP_BUILD_ARCH GMP_BUILD_ARCH || true
fi                                                        &&
if spell_ok mpfr; then
  persistent_read mpfr MPFR_BUILD_ARCH MPFR_BUILD_ARCH || true
fi                                                        &&
if [[ $GMP_BUILD_ARCH  != ${SMGL_COMPAT_ARCHS[4]}
   || $MPFR_BUILD_ARCH != ${SMGL_COMPAT_ARCHS[4]} ]]; then
  force_depends gmp &&
  force_depends mpfr
fi &&


if is_version_less $(installed_version libmpc) 0.8.1; then
  force_depends libmpc
fi &&


if [[ "$GCC_CLOOG" == "y" ]]; then
  depends isl "--with-isl" &&
  if is_version_less $(installed_version isl) 0.15; then
    force_depends isl
  fi
fi