acinclude.m4: Cosmetic changes only.
[gcc.git] / libstdc++-v3 / configure.target
1 # configure.target
2
3 # This shell script handles all target based configuration for libstdc++.
4 # 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
14 # target_cpu The configuration target CPU
15 # target_os The configuration target OS
16 # target_optspace --enable-target-optspace ("yes", "no", "")
17
18 # It possibly modifies the following shell variables:
19 # glibcpp_cflags Special CFLAGS to use when building
20 # glibcpp_cxxflags Special CXXFLAGS to use when building
21 # cpu_include_dir CPU-specific include directory, relative to srcdir
22 # os_include_dir OS-specific include directory, relative to srcdir
23 # ctype_include_dir Platform-specific (usually OS) ctype include dir
24 # The first two are set in configure.host and modified here.
25
26
27 # These are "local" and should be set in the switch statements below. They
28 # will be appended to their real conterparts once the dust settles.
29 l_glibcpp_cflags=
30 l_glibcpp_cxxflags=
31
32
33 # Set any CPU dependent compiler flags.
34 # THIS TABLE IS SORTED. KEEP IT THAT WAY.
35
36 case "${target_cpu}" in
37 alpha*)
38 cpu_include_dir="config/cpu/alpha"
39 ;;
40 arm*)
41 cpu_include_dir="config/cpu/arm"
42 ;;
43 ia64)
44 cpu_include_dir="config/cpu/ia64"
45 ;;
46 i386)
47 cpu_include_dir="config/cpu/i386"
48 ;;
49 i486 | i586 | i686 | i786)
50 cpu_include_dir="config/cpu/i486"
51 ;;
52 powerpc | rs6000)
53 cpu_include_dir="config/cpu/powerpc"
54 ;;
55 sparc64 | ultrasparc)
56 cpu_include_dir="config/cpu/sparc/sparc64"
57 ;;
58 sparc*)
59 cpu_include_dir="config/cpu/sparc/sparc32"
60 ;;
61 *)
62 cpu_include_dir="config/cpu/generic"
63 ;;
64 esac
65
66
67 # Set any OS dependent compiler flags.
68 # THIS TABLE IS SORTED. KEEP IT THAT WAY.
69
70 case "${target_os}" in
71 aix4.[[3456789]]* | aix[[56789]]*)
72 os_include_dir="config/os/aix"
73 case "$CXX" in
74 *pthread*)
75 enable_threads='posix'
76 ;;
77 *)
78 enable_threads='no'
79 ;;
80 esac
81 ctype_include_dir=${os_include_dir}
82 ;;
83 aix*)
84 os_include_dir="config/os/aix"
85 ctype_include_dir=${os_include_dir}
86 ;;
87 bsd* | freebsd* )
88 os_include_dir="config/os/bsd/freebsd"
89 ctype_include_dir=${os_include_dir}
90 ;;
91 cygwin*)
92 os_include_dir="config/os/newlib"
93 ;;
94 *djgpp*)
95 os_include_dir="config/os/djgpp"
96 ;;
97 linux* | gnu*)
98 os_include_dir="config/os/gnu-linux"
99 ctype_include_dir=${os_include_dir}
100 ;;
101 irix*)
102 os_include_dir="config/os/irix"
103 ctype_include_dir=${os_include_dir}
104 ;;
105 netbsd*)
106 os_include_dir="config/os/bsd/netbsd"
107 ctype_include_dir=${os_include_dir}
108 ;;
109 solaris2.5*)
110 os_include_dir="config/os/solaris/solaris2.5"
111 ctype_include_dir=${os_include_dir}
112 ;;
113 solaris2.6*)
114 os_include_dir="config/os/solaris/solaris2.6"
115 ctype_include_dir=${os_include_dir}
116 ;;
117 solaris2.7* | solaris2.8*)
118 os_include_dir="config/os/solaris/solaris2.7"
119 ctype_include_dir=${os_include_dir}
120 ;;
121 hpux)
122 os_include_dir="config/os/hpux"
123 ;;
124 *)
125 os_include_dir="config/os/generic"
126 ;;
127 esac
128
129
130 # Set any flags dependant on the full target triplet.
131 # THIS TABLE IS SORTED. KEEP IT THAT WAY.
132
133 case "${target}" in
134 *-*-aix*)
135 ATOMICITYH=$os_include_dir
136 ;;
137 *-*-irix*)
138 ATOMICITYH=$os_include_dir
139 ;;
140 *)
141 ATOMICITYH=$cpu_include_dir
142 ;;
143 esac
144
145
146 # Okay, folks, show's over. Move along, move along.
147
148 glibcpp_cflags="${glibcpp_cflags} ${libgcj_flags} ${l_glibcpp_cflags}"
149 glibcpp_cxxflags="${glibcpp_cxxflags} ${libgcj_flags} ${l_glibcpp_cxxflags}"
150
151