config/companion_libs.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Sep 10 01:16:26 2010 +0200 (2010-09-10)
changeset 2121 ea11e149ec23
parent 2102 62834fa05290
child 2130 b46ecc90d3ab
permissions -rw-r--r--
complibs: fix dependencies

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@1318
     1
# Companion libraries config options
yann@1318
     2
# Those libraries are required for different versions of gcc,
yann@1318
     3
# and can be used by binutils and gdb (maybe others as well).
yann@602
     4
yann@1318
     5
menu "Companion libraries"
yann@602
     6
yann@1809
     7
config COMPLIBS
yann@1809
     8
    bool
yann@1809
     9
    default n
yann@1809
    10
yann@1495
    11
config WRAPPER_NEEDED
yann@1495
    12
    bool
yann@1495
    13
    default n
yann@1495
    14
yann@1808
    15
config GMP
yann@602
    16
    bool
yann@1809
    17
    select COMPLIBS
yann@602
    18
yann@1808
    19
config MPFR
yann@1808
    20
    bool
yann@1808
    21
    select GMP
yann@1809
    22
    select COMPLIBS
yann@1808
    23
yann@1808
    24
config PPL
yann@1808
    25
    bool
yann@1808
    26
    select GMP
yann@1809
    27
    select COMPLIBS
yann@1808
    28
yann@1808
    29
config CLOOG
yann@1808
    30
    bool
yann@1808
    31
    select GMP
yann@1808
    32
    select PPL
yann@1809
    33
    select COMPLIBS
yann@1808
    34
yann@1808
    35
config MPC
yann@1808
    36
    bool
yann@1808
    37
    select GMP
yann@1808
    38
    select MPFR
yann@1809
    39
    select COMPLIBS
yann@1808
    40
yann@1811
    41
config LIBELF
yann@1811
    42
    bool
yann@1811
    43
    select COMPLIBS
yann@1811
    44
yann@1811
    45
config LIBELF_TARGET
yann@1811
    46
    bool
yann@1811
    47
yann@2099
    48
if GMP
yann@1870
    49
source "config/companion_libs/gmp.in"
yann@1808
    50
endif
yann@2099
    51
if MPFR
yann@1870
    52
source "config/companion_libs/mpfr.in"
yann@602
    53
endif
yann@2099
    54
if PPL
yann@1870
    55
source "config/companion_libs/ppl.in"
yann@1808
    56
endif
yann@2099
    57
if CLOOG
yann@1870
    58
source "config/companion_libs/cloog.in"
yann@1808
    59
endif
yann@2099
    60
if MPC
yann@1870
    61
source "config/companion_libs/mpc.in"
yann@1324
    62
endif
yann@1811
    63
if LIBELF || LIBELF_TARGET
yann@1811
    64
comment "libelf version needed to build for target"
yann@1811
    65
    depends on !LIBELF
yann@1870
    66
source "config/companion_libs/libelf.in"
yann@1811
    67
endif
yann@1324
    68
yann@1398
    69
config FOO
yann@1398
    70
    bool
yann@1398
    71
yann@1892
    72
if COMPLIBS
yann@1892
    73
yann@1398
    74
comment "Companion libraries common options"
yann@1809
    75
yann@1890
    76
config COMPLIBS_CHECK
yann@1386
    77
    bool
yann@1892
    78
    prompt "Check the companion libraries builds (!!! READ HELP!!!)"
yann@1386
    79
    default n
yann@1386
    80
    help
yann@1386
    81
      It is highly recommended to check the newly built companion libraries.
yann@1386
    82
      Unfortunately, this is a very intensive task, and takes a loooong time.
Yann@1407
    83
      
yann@1386
    84
      Checking the newly built companion libraries is thus disabled by default,
yann@1388
    85
      but it is suggested that you check them at least once on your machine,
yann@1386
    86
      and if they work, disable the check on subsequent builds.
Yann@1407
    87
      
yann@1386
    88
      If you suspect that one (or more) of your companion libraries is the
yann@1386
    89
      cause for incorrectly generated code, you should answer 'Y' here.
yann@1386
    90
      Note however that this will take a really long time. For example,
yann@1386
    91
      building PPL on my machine takes roughly 1'40", while checking it takes
yann@1398
    92
      about 1h40'...
yann@1386
    93
yann@1892
    94
config COMPLIBS_SHARED
yann@1892
    95
    bool
yann@1892
    96
    prompt "Build shared companion libraries"
yann@1892
    97
    default n
yann@1892
    98
    depends on COMPLIBS
yann@1892
    99
    select WRAPPER_NEEDED
yann@1892
   100
    help
yann@1892
   101
      By default, the companion libraries will be build static. If you want to
yann@1892
   102
      build shared libraries, then you can say 'Y' here, but a wrapper will be
yann@1892
   103
      needed (see docs/overview.txt,section "Tools wrapper").
yann@1892
   104
      
yann@1892
   105
      It is highly recommended that you keep static libraries.
yann@1892
   106
yann@1515
   107
choice
yann@1515
   108
    bool
yann@1515
   109
    prompt "|  Install tools wrapper as:"
yann@1515
   110
    depends on WRAPPER_NEEDED
yann@1515
   111
    default TOOLS_WRAPPER_SHELL
yann@1515
   112
yann@1515
   113
config TOOLS_WRAPPER_SCRIPT
yann@1515
   114
    bool
yann@1515
   115
    prompt "shell script"
yann@1515
   116
    help
yann@1515
   117
      If your host has a shell, then you should say 'Y' here, to use
yann@1515
   118
      a (very very simple) shell script as wrapper.
yann@1515
   119
      
yann@1515
   120
      See docs/overview.txt, section "Tools wrapper".
yann@1515
   121
yann@1515
   122
config TOOLS_WRAPPER_EXEC
yann@1515
   123
    bool
yann@1515
   124
    prompt "executable"
yann@1515
   125
    help
yann@1515
   126
      If your host lacks a shell, then you should say 'Y' here, to use
yann@1515
   127
      an executable.
yann@1515
   128
      
yann@1515
   129
      See docs/overview.txt, section "Tools wrapper".
yann@1515
   130
yann@1515
   131
endchoice
yann@1515
   132
yann@1515
   133
config TOOLS_WRAPPER
yann@1515
   134
    string
yann@1515
   135
    default "script" if TOOLS_WRAPPER_SCRIPT
yann@1515
   136
    default "exec"   if TOOLS_WRAPPER_EXEC
yann@1515
   137
yann@1892
   138
endif # COMPLIBS
yann@1892
   139
yann@602
   140
endmenu