Ignore:
Timestamp:
Apr 28, 2004, 6:58:06 AM (22 years ago)
Author:
bird
Message:

#1040: Joined the GCC 3.3.3 with the trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/libstdc++-v3/configure.target

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1393 r1394  
    11# configure.target
    2 
     2#
    33# This shell script handles all target based configuration for libstdc++.
    44# It sets various shell variables based on the the target and the
    5 # configuration options.  You can modify this shell script without
    6 # needing to rerun autoconf.
    7 
    8 # This shell script should be invoked as
    9 #   . configure.target
    10 # If it encounters an error, it will exit with a message.
    11 
    12 # It uses the following shell variables:
    13 #   target                The configuration target
     5# configuration options.  You can modify this shell script without needing
     6# to rerun autoconf/aclocal/etc.  This file is "sourced" not executed.
     7#
     8# You should read docs/html/17_intro/porting.* to make sense of this file.
     9#
     10#
     11# It uses the following shell variables as set by config.guess:
     12#   target                The configuration target (full CPU-vendor-OS triplet)
    1413#   target_cpu            The configuration target CPU
    1514#   target_os             The configuration target OS
    16 
    17 # It possibly modifies the following shell variables:
    18 #   cpu_include_dir        CPU-specific include directory, relative to srcdir
    19 #
    20 #   os_include_dir         OS-specific include directory, relative to srcdir
     15#
     16#
     17# It sets the following shell variables:
     18#
     19#   cpu_include_dir        CPU-specific directory, defaults to cpu/generic
     20#                          if cpu/target_cpu doesn't exist.  This is
     21#                          used to set ATOMICITYH.
     22#
     23#   os_include_dir         OS-specific directory, defaults to os/generic.
    2124#
    2225#   c_model                the model to use for "C" headers, defaults to c_std.
    2326#
    24 #   c_compatibility        if "C" compatibility headers are necessary,
    25 #                              defaults to no.
     27#   c_compatibility        if "C" compatibility headers are necessary,
     28#                          defaults to no.
     29#
     30#   abi_baseline_pair      directory name for ABI compat testing,
     31#                          defaults to target (as per config.guess)
     32#
     33#   ATOMICITYH             location of atomicity.h,
     34#                          defaults to cpu_include_dir
     35#
     36# It possibly modifies the following variables:
     37#
     38#   OPT_LDFLAGS            extra flags to pass when linking the library, of
     39#                          the form '-Wl,blah'
     40#                          (defaults to empty in acinclude.m4)
     41#
     42#
     43# If the defaults will not work for your platform, you need only change the
     44# variables that won't work, i.e., you do not need to explicitly set a
     45# working variable to its default.  Most targets only need to change the two
     46# *_include_dir variables.
     47
    2648
    2749# DEFAULTS
     50
     51
     52
    2853c_model=c_std
    2954c_compatibility=no
    30 abi_baseline_triplet=${target}
    31 
    32 
    33 # TARGET-SPECIFIC OVERRIDES
     55
     56
     57# TARGET-SPECIFIC OVERRIDES
    3458# Set any CPU-dependent bits.
     59
     60
    3561# THIS TABLE IS SORTED.  KEEP IT THAT WAY.
     62
    3663case "${target_cpu}" in
    3764  alpha*)
    38     cpu_include_dir="config/cpu/alpha"
    39     ;;
    40   arm*)
    41     cpu_include_dir="config/cpu/arm"
    42     ;;
    43   cris)
    44     cpu_include_dir="config/cpu/cris"
    45     ;;
    46   ia64)
    47     cpu_include_dir="config/cpu/ia64"
    48     ;;
    49   i386)
    50     cpu_include_dir="config/cpu/i386"
    51     ;;
    52   i486 | i586 | i686 | i786)
    53     cpu_include_dir="config/cpu/i486"
    54     ;;
    55   m68k | m680[246]0)
    56     cpu_include_dir="config/cpu/m68k"
    57     ;;
    58   powerpc | rs6000)
    59     cpu_include_dir="config/cpu/powerpc"
    60     ;;
    61   s390 | s390x)
    62     cpu_include_dir="config/cpu/s390"
     65    try_cpu=alpha
     66    ;;
     67  athlon* | i586 | i686 | i786 | x86_64)
     68    try_cpu=i486
     69    ;;
     70  hppa*)
     71    try_cpu=hppa
     72    ;;
     73  m680[246]0)
     74    try_cpu=m68k
     75    ;;
     76  powerpc* | rs6000)
     77    try_cpu=powerpc
     78    ;;
     79  s390x)
     80    try_cpu=s390
    6381    ;;
    6482  sparc* | ultrasparc)
    65     cpu_include_dir="config/cpu/sparc"
    66     ;;
    67   x86_64*)
    68     cpu_include_dir="config/cpu/x86-64"
     83    try_cpu=sparc
    6984    ;;
    7085  *)
    71     cpu_include_dir="config/cpu/generic"
     86    if test -d ${glibcpp_srcdir}/config/cpu/${target_cpu}; then
     87      try_cpu=${target_cpu}
     88    else
     89      try_cpu=generic
     90    fi
    7291    ;;
    7392esac
    7493
    7594
    76 # Set any OS dependent compiler flags.
     95# Now look for the file(s) usually tied to a CPU model, and make
     96# default choices for those if they haven't been explicitly set
     97# already. 
     98cpu_include_dir="cpu/${try_cpu}"
     99ATOMICITYH=$cpu_include_dir
     100abi_baseline_pair=${try_cpu}-${host_os}
     101
     102# Set any OS-dependent bits.
     103# Set the os_include_dir.
     104# Set c_model, c_compatibility here.
     105# If atomic ops and/or numeric limits are OS-specific rather than
     106# CPU-specifc, set those here too.
    77107# THIS TABLE IS SORTED.  KEEP IT THAT WAY.
    78108case "${target_os}" in
    79109  aix4.[3456789]* | aix[56789]*)
    80     os_include_dir="config/os/aix"
     110    # We set os_include_dir to os/aix only on AIX 4.3 and newer, but
     111    # os/aix/atomicity.h works on earlier versions of AIX 4.*, so we
     112    # explicitly duplicate the directory for 4.[<3].
     113    os_include_dir="os/aix"
     114    ATOMICITYH="os/aix"
    81115    OPT_LDFLAGS="-Wl,-G"
    82116    ;;
    83   bsd* | freebsd* )
    84     os_include_dir="config/os/bsd/freebsd"
     117  aix4.*)
     118    ATOMICITYH="os/aix"
     119    ;;
     120  aix*)
     121    ATOMICITYH="cpu/generic"
     122    ;;
     123  bsd*)
     124    # Plain BSD attempts to share FreeBSD files.
     125    os_include_dir="os/bsd/freebsd"
    85126    ;;
    86127  cygwin*)
    87     os_include_dir="config/os/newlib"
    88     ;;
    89   *djgpp*)
    90     os_include_dir="config/os/djgpp"
    91     ;;
    92   linux* | gnu*)
    93     os_include_dir="config/os/gnu-linux"
    94     ;;
    95   irix[1-6] | irix[1-5].* | irix6.[0-4])
    96    # This is known to work on at least IRIX 5.2 and 6.3.
    97    os_include_dir="config/os/irix/irix5.2"
    98    ;;
    99   irix6.5)
    100     os_include_dir="config/os/irix/irix6.5"
     128    os_include_dir="os/newlib"
     129    ;;
     130  *djgpp*)      # leading * picks up "msdosdjgpp"
     131    os_include_dir="os/djgpp"
     132    ;;
     133  freebsd*)
     134    os_include_dir="os/bsd/freebsd"
     135    ;;
     136  gnu* | linux*)
     137    os_include_dir="os/gnu-linux"
     138    ;;
     139  hpux*)
     140    os_include_dir="os/hpux"
     141    ;;
     142  irix[1-6] | irix[1-5].* | irix6.[0-4]*)
     143    # This is known to work on at least IRIX 5.2 and 6.3.
     144    os_include_dir="os/irix/irix5.2"
     145    ATOMICITYH=$os_include_dir
     146    ;;
     147  irix6.5*)
     148    os_include_dir="os/irix/irix6.5"
     149    ATOMICITYH=$os_include_dir
    101150    ;;
    102151  mingw32*)
    103     os_include_dir="config/os/mingw32"
     152    os_include_dir="os/mingw32"
    104153    ;;
    105154  netbsd*)
    106     os_include_dir="config/os/bsd/netbsd"
    107     ;;
    108   solaris2.5*)
    109     os_include_dir="config/os/solaris/solaris2.5"
    110     ;;
    111   solaris2.6*)
    112     os_include_dir="config/os/solaris/solaris2.6"
    113     ;;
    114   solaris2.7* | solaris2.8*)
    115     os_include_dir="config/os/solaris/solaris2.7"
    116     ;;
    117   hpux*)
    118     os_include_dir="config/os/hpux"
     155    os_include_dir="os/bsd/netbsd"
     156    ;;
     157  solaris2.5)
     158    os_include_dir="os/solaris/solaris2.5"
     159    ;;
     160  solaris2.6)
     161    os_include_dir="os/solaris/solaris2.6"
     162    ;;
     163  solaris2.)
     164    os_include_dir="os/solaris/solaris2.7"
     165    ;;
     166  *)
     167    os_include_dir=""
    119168    ;;
    120169  qnx6.[12]*)
    121     os_include_dir="config/os/qnx/qnx6.1"
     170    os_include_dir="os/qnx/qnx6.1"
    122171    c_model=c
    123172    ;;
     
    126175    ;;
    127176  *)
    128     os_include_dir="config/os/generic"
     177    os_include_dir="os/generic"
    129178    ;;
    130179esac
    131180
    132181
    133 # Set any flags dependent on the full target triplet.
     182# Set any .
    134183# THIS TABLE IS SORTED.  KEEP IT THAT WAY.
    135184case "${target}" in
    136    *-*-aix[456789]*)
    137      # We set os_include_dir to config/os/aix only on AIX 4.3 and
    138      # newer, but config/os/aix/bits/atomicity.h works on earlier
    139      # versions of AIX 4.*, so we explicitly duplicate the directory
    140      # here, because os_include_dir.
    141      ATOMICITYH=config/os/aix
    142      ;;
    143    *-*-aix*)
    144      ATOMICITYH=config/cpu/generic
    145      ;;
    146    *-*-irix*)
    147      ATOMICITYH=$os_include_dir
    148      ;;
    149    mcore-*-pe*)
    150      # The EPOC C++ environment does not support exceptions.
    151      if test -z "$enable_cxx_flags"; then
    152        enable_cxx_flags="-frtti -fno-exceptions"
    153      fi
    154      ATOMICITYH=$cpu_include_dir
    155      ;;
    156    *)
    157      ATOMICITYH=$cpu_include_dir
    158      ;;
     185  mips*-*-linux*)
     186    ATOMICITYH="cpu/mips"
     187    ;;
     188  x86_64-*-linux*)
     189    abi_baseline_pair="x86_64-linux-gnu"
     190    ;;
     191  alpha*-*-freebsd5*)
     192    abi_baseline_pair="alpha-freebsd5"
     193    ;;
     194  i*86-*-freebsd4*)
     195    abi_baseline_pair="i386-freebsd4"
     196    ;;
     197  i*86-*-freebsd5*)
     198    abi_baseline_pair="i386-freebsd5"
     199    ;;
     200  sparc*-*-freebsd5*)
     201    abi_baseline_pair="sparc-freebsd5"
     202    ;;
    159203esac
    160 
    161 # Set CPULIMITSH to the directory where the configuration-dependent
    162 # cpu_limits.h can be found.
    163 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
    164 case "${target}" in
    165    *-*-hpux*)
    166      CPULIMITSH=config/os/hpux
    167      ;;
    168    alpha*-*-*osf5*)
    169      CPULIMITSH=config/os/osf/osf5.0
    170      ;;
    171    alpha*-*-*)
    172      CPULIMITSH=config/cpu/alpha
    173      ;;
    174    cris-*-*)
    175      CPULIMITSH=config/cpu/cris
    176      ;;
    177    ia64-*-*)
    178      CPULIMITSH=config/cpu/ia64
    179      ;;
    180    i?86-*-*)
    181      CPULIMITSH=config/cpu/i386
    182      ;;
    183    m68k-*-* | m680[246]0-*-*)
    184      CPULIMITSH=config/cpu/m68k
    185      ;;
    186    mmix-*-*)
    187      CPULIMITSH=config/cpu/mmix
    188      ;;
    189    powerpc-*-* | rs6000-*-*)
    190      CPULIMITSH=config/cpu/powerpc
    191      ;;
    192    s390-*-* | s390x-*-*)
    193      CPULIMITSH=config/cpu/s390
    194      ;;
    195    x86_64-*-*)
    196      CPULIMITSH=config/cpu/x86-64
    197      ;;
    198    *)
    199      CPULIMITSH=config/cpu/generic
    200      ;;
    201 esac
Note: See TracChangeset for help on using the changeset viewer.