config/companion_libs.in
author Bryan Hundven <bryanhundven@gmail.com>
Thu Dec 09 18:54:46 2010 +0100 (2010-12-09)
changeset 2208 5aa0516d6738
parent 2131 469830f72fe7
child 2227 5158aa602e58
permissions -rw-r--r--
complibs: do not prompt for shared libs if static selected

If the global static toolchain option is selected, then do not
prompt the user whether to build shared companion libraries.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
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_NEEDED
     8     bool
     9     default n
    10 
    11 config GMP_NEEDED
    12     bool
    13     default n
    14     select GMP
    15     select COMPLIBS_NEEDED
    16 
    17 config MPFR_NEEDED
    18     bool
    19     default n
    20     select MPFR
    21     select COMPLIBS_NEEDED
    22 
    23 config PPL_NEEDED
    24     bool
    25     default n
    26     select PPL
    27     select COMPLIBS_NEEDED
    28 
    29 config CLOOG_NEEDED
    30     bool
    31     default n
    32     select CLOOG
    33     select COMPLIBS_NEEDED
    34 
    35 config MPC_NEEDED
    36     bool
    37     default n
    38     select MPC
    39     select COMPLIBS_NEEDED
    40 
    41 config LIBELF_NEEDED
    42     bool
    43     default n
    44     select LIBELF
    45     select COMPLIBS_NEEDED
    46 
    47 config COMPLIBS
    48     bool
    49     default n
    50 
    51 config WRAPPER_NEEDED
    52     bool
    53     default n
    54 
    55 config GMP
    56     bool
    57     select COMPLIBS
    58 
    59 config MPFR
    60     bool
    61     select GMP
    62     select COMPLIBS
    63 
    64 config PPL
    65     bool
    66     select GMP
    67     select COMPLIBS
    68 
    69 config CLOOG
    70     bool
    71     select GMP
    72     select PPL
    73     select COMPLIBS
    74 
    75 config MPC
    76     bool
    77     select GMP
    78     select MPFR
    79     select COMPLIBS
    80 
    81 config LIBELF
    82     bool
    83     select COMPLIBS
    84 
    85 config LIBELF_TARGET
    86     bool
    87 
    88 if GMP
    89 source "config/companion_libs/gmp.in"
    90 endif
    91 if MPFR
    92 source "config/companion_libs/mpfr.in"
    93 endif
    94 if PPL
    95 source "config/companion_libs/ppl.in"
    96 endif
    97 if CLOOG
    98 source "config/companion_libs/cloog.in"
    99 endif
   100 if MPC
   101 source "config/companion_libs/mpc.in"
   102 endif
   103 if LIBELF || LIBELF_TARGET
   104 comment "libelf version needed to build for target"
   105     depends on !LIBELF
   106 source "config/companion_libs/libelf.in"
   107 endif
   108 
   109 config FOO
   110     bool
   111 
   112 if COMPLIBS
   113 
   114 comment "Companion libraries common options"
   115 
   116 config COMPLIBS_BACKUP
   117     bool
   118     default y
   119     depends on ! COMPLIBS_SHARED
   120 
   121 config COMPLIBS_CHECK
   122     bool
   123     prompt "Check the companion libraries builds (!!! READ HELP!!!)"
   124     default n
   125     help
   126       It is highly recommended to check the newly built companion libraries.
   127       Unfortunately, this is a very intensive task, and takes a loooong time.
   128       
   129       Checking the newly built companion libraries is thus disabled by default,
   130       but it is suggested that you check them at least once on your machine,
   131       and if they work, disable the check on subsequent builds.
   132       
   133       If you suspect that one (or more) of your companion libraries is the
   134       cause for incorrectly generated code, you should answer 'Y' here.
   135       Note however that this will take a really long time. For example,
   136       building PPL on my machine takes roughly 1'40", while checking it takes
   137       about 1h40'...
   138 
   139 config COMPLIBS_SHARED
   140     bool
   141     prompt "Build shared companion libraries"
   142     default n
   143     depends on COMPLIBS
   144     depends on ! STATIC_TOOLCHAIN
   145     select WRAPPER_NEEDED
   146     help
   147       By default, the companion libraries will be build static. If you want to
   148       build shared libraries, then you can say 'Y' here, but a wrapper will be
   149       needed (see docs/overview.txt,section "Tools wrapper").
   150       
   151       It is highly recommended that you keep static libraries.
   152 
   153 choice
   154     bool
   155     prompt "|  Install tools wrapper as:"
   156     depends on WRAPPER_NEEDED
   157     default TOOLS_WRAPPER_SHELL
   158 
   159 config TOOLS_WRAPPER_SCRIPT
   160     bool
   161     prompt "shell script"
   162     help
   163       If your host has a shell, then you should say 'Y' here, to use
   164       a (very very simple) shell script as wrapper.
   165       
   166       See docs/overview.txt, section "Tools wrapper".
   167 
   168 config TOOLS_WRAPPER_EXEC
   169     bool
   170     prompt "executable"
   171     help
   172       If your host lacks a shell, then you should say 'Y' here, to use
   173       an executable.
   174       
   175       See docs/overview.txt, section "Tools wrapper".
   176 
   177 endchoice
   178 
   179 config TOOLS_WRAPPER
   180     string
   181     default "script" if TOOLS_WRAPPER_SCRIPT
   182     default "exec"   if TOOLS_WRAPPER_EXEC
   183 
   184 endif # COMPLIBS
   185 
   186 endmenu