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