config/cc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Mar 12 18:59:31 2007 +0000 (2007-03-12)
changeset 19 d80e6dedcc13
child 41 fd6ad5721f77
permissions -rw-r--r--
Auto-detect Darwin (MacOS-X) and disable libintl for during build for this platform.
A bit of help tweaking.
     1 # Compiler options
     2 
     3 menu "C compiler"
     4 
     5 comment "Core C Compiler (used to build the C library)"
     6 
     7 config CC_USE_CORE
     8     bool
     9     prompt "Use a different core C compiler"
    10     default n
    11     help
    12       Use a different compiler to build the C library than the one
    13       in the final toolchain.
    14       
    15       You can change the compiler used, or only the version used.
    16 
    17       You most probably don't need that.
    18 
    19 config CC_CORE_GCC
    20     bool
    21     default y if ! CC_USE_CORE && CC_GCC
    22     default n if CC_USE_CORE || ! CC_GCC
    23 
    24 config CC_CORE_TCC
    25     bool
    26     default y if ! CC_USE_CORE && CC_TCC
    27     default n if CC_USE_CORE || ! CC_TCC
    28 
    29 choice
    30     bool
    31     prompt "Core C compiler:"
    32     depends on CC_USE_CORE
    33 
    34 config CC_CORE_GCC
    35     bool
    36     prompt "gcc"
    37 
    38 #config CC_CORE_TCC
    39 #    bool
    40 #    prompt "tcc (EXPERIMENTAL)"
    41 
    42 endchoice
    43 
    44 config CC_CORE_VERSION
    45     string
    46 
    47 config CC_CORE
    48     string
    49     default "gcc" if CC_CORE_GCC
    50     default "tcc" if CC_CORE_TCC
    51 
    52 if CC_CORE_GCC && CC_USE_CORE
    53 source config/cc_core_gcc.in
    54 endif
    55 
    56 if CC_CORE_TCC && CC_USE_CORE
    57 source config/cc_core_tcc.in
    58 endif
    59 
    60 comment "Final C compiler"
    61 
    62 choice
    63     bool
    64     prompt "Final C compiler"
    65     default CC_GCC
    66 
    67 config CC_GCC
    68     bool
    69     prompt "gcc"
    70     select CC_SUPPORT_CXX
    71     select CC_SUPPORT_FORTRAN
    72     select CC_SUPPORT_JAVA
    73     select CC_SUPPORT_ADA
    74     select CC_SUPPORT_OBJC
    75     select CC_SUPPORT_OBJCXX
    76 
    77 #config CC_TCC
    78 #    bool
    79 #    prompt "tcc (EXPERIMENTAL)"
    80 #    select CC_LANG_C
    81 
    82 endchoice
    83 
    84 config CC_VERSION
    85     string
    86 
    87 config CC
    88     string
    89     default "gcc" if CC_GCC
    90     default "tcc" if CC_TCC
    91 
    92 if CC_GCC
    93 source config/cc_gcc.in
    94 endif
    95 
    96 if CC_GCC
    97 source config/cc_tcc.in
    98 endif
    99 
   100 config CC_SUPPORT_CXX
   101     bool
   102 
   103 config CC_SUPPORT_FORTRAN
   104     bool
   105 
   106 config CC_SUPPORT_JAVA
   107     bool
   108 
   109 config CC_SUPPORT_ADA
   110     bool
   111 
   112 config CC_SUPPORT_OBJC
   113     bool
   114 
   115 config CC_SUPPORT_OBJCXX
   116     bool
   117 
   118 comment "Additionnal supported languages:"
   119 
   120 config CC_LANG_CXX
   121     bool
   122     prompt "C++"
   123     default n
   124     depends on CC_SUPPORT_CXX
   125     help
   126       Only select this if you know that your specific combination of
   127       compiler and its version does support this language.
   128 
   129 config CC_LANG_FORTRAN
   130     bool
   131     prompt "Fortran"
   132     default n
   133     depends on CC_SUPPORT_FORTRAN
   134     help
   135       Only select this if you know that your specific combination of
   136       compiler and its version does support this language.
   137 
   138 config CC_LANG_JAVA
   139     bool
   140     prompt "Java"
   141     default n
   142     depends on CC_SUPPORT_JAVA
   143     help
   144       Only select this if you know that your specific combination of
   145       compiler and its version does support this language.
   146 
   147 config CC_LANG_ADA
   148     bool
   149     prompt "ADA"
   150     default n
   151     depends on CC_SUPPORT_ADA
   152     help
   153       Only select this if you know that your specific combination of
   154       compiler and its version does support this language.
   155 
   156 config CC_LANG_OBJC
   157     bool
   158     prompt "Objective-C"
   159     default n
   160     depends on CC_SUPPORT_OBJC
   161     help
   162       Only select this if you know that your specific combination of
   163       compiler and its version does support this language.
   164 
   165 config CC_LANG_OBJCXX
   166     bool
   167     prompt "Objective-C++"
   168     default n
   169     depends on CC_SUPPORT_OBJCXX
   170     help
   171       Only select this if you know that your specific combination of
   172       compiler and its version does support this language.
   173 
   174 config CC_LANG_OTHERS
   175     string
   176     prompt "Other languages"
   177     default ""
   178     help
   179       Enter here a comma-separated list of languages that you know your compiler
   180       supports, besides those listed above.
   181 
   182       Eg. gcc-4.1+ has a toy programming language, treelang. As it is not usefull
   183       in real life, it is not available in the selection above.
   184 
   185 endmenu