modify SIOCSIWAP call to associate with a specific bssid when in managed mode
[openwrt.git] / obsolete-buildroot / sources / gcc-uclibc-3.3-100-conf.patch
1 diff -urN gcc-3.3.3/boehm-gc/config.sub gcc-3.3.3-new/boehm-gc/config.sub
2 --- gcc-3.3.3/boehm-gc/config.sub 2002-02-11 22:37:53.000000000 -0600
3 +++ gcc-3.3.3-new/boehm-gc/config.sub 2004-02-16 21:12:16.000000000 -0600
4 @@ -118,7 +118,7 @@
5 # Here we must recognize all the valid KERNEL-OS combinations.
6 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
7 case $maybe_os in
8 - nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
9 + nto-qnx* | linux-gnu* | linux-uclibc* | storm-chaos* | os2-emx* | windows32-*)
10 os=-$maybe_os
11 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
12 ;;
13 @@ -1089,7 +1089,8 @@
14 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
15 | -chorusos* | -chorusrdb* \
16 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
17 - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
18 + | -mingw32* | -linux-gnu* | -linux-uclibc* \
19 + | -uxpv* | -beos* | -mpeix* | -udk* \
20 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
21 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
22 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
23 diff -urN gcc-3.3.3/config.sub gcc-3.3.3-new/config.sub
24 --- gcc-3.3.3/config.sub 2003-01-30 17:25:36.000000000 -0600
25 +++ gcc-3.3.3-new/config.sub 2004-02-16 21:12:16.000000000 -0600
26 @@ -118,7 +118,7 @@
27 # Here we must recognize all the valid KERNEL-OS combinations.
28 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
29 case $maybe_os in
30 - nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
31 + nto-qnx* | linux-gnu* | linux-uclibc* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
32 os=-$maybe_os
33 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
34 ;;
35 @@ -1112,7 +1112,8 @@
36 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
37 | -chorusos* | -chorusrdb* \
38 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
39 - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
40 + | -mingw32* | -linux-gnu* | -linux-uclibc* \
41 + | -uxpv* | -beos* | -mpeix* | -udk* \
42 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
43 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
44 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
45 diff -urN gcc-3.3.3/gcc/config/arm/linux-elf.h gcc-3.3.3-new/gcc/config/arm/linux-elf.h
46 --- gcc-3.3.3/gcc/config/arm/linux-elf.h 2003-09-16 10:39:23.000000000 -0500
47 +++ gcc-3.3.3-new/gcc/config/arm/linux-elf.h 2004-02-16 21:12:16.000000000 -0600
48 @@ -78,6 +78,18 @@
49 "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
50
51 #undef LINK_SPEC
52 +#ifdef USE_UCLIBC
53 +#define LINK_SPEC "%{h*} %{version:-v} \
54 + %{b} %{Wl,*:%*} \
55 + %{static:-Bstatic} \
56 + %{shared:-shared} \
57 + %{symbolic:-Bsymbolic} \
58 + %{rdynamic:-export-dynamic} \
59 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
60 + -X \
61 + %{mbig-endian:-EB}" \
62 + SUBTARGET_EXTRA_LINK_SPEC
63 +#else
64 #define LINK_SPEC "%{h*} %{version:-v} \
65 %{b} %{Wl,*:%*} \
66 %{static:-Bstatic} \
67 @@ -88,6 +100,7 @@
68 -X \
69 %{mbig-endian:-EB}" \
70 SUBTARGET_EXTRA_LINK_SPEC
71 +#endif
72
73 #define TARGET_OS_CPP_BUILTINS() \
74 do { \
75 diff -urN gcc-3.3.3/gcc/config/cris/linux.h gcc-3.3.3-new/gcc/config/cris/linux.h
76 --- gcc-3.3.3/gcc/config/cris/linux.h 2003-03-10 21:01:35.000000000 -0600
77 +++ gcc-3.3.3-new/gcc/config/cris/linux.h 2004-02-16 21:12:16.000000000 -0600
78 @@ -81,6 +81,25 @@
79 #undef CRIS_DEFAULT_CPU_VERSION
80 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
81
82 +#ifdef USE_UCLIBC
83 +
84 +#undef CRIS_SUBTARGET_VERSION
85 +#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
86 +
87 +#undef CRIS_LINK_SUBTARGET_SPEC
88 +#define CRIS_LINK_SUBTARGET_SPEC \
89 + "-mcrislinux\
90 + -rpath-link include/asm/../..%s\
91 + %{shared} %{static}\
92 + %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
93 + %{!shared: \
94 + %{!static: \
95 + %{rdynamic:-export-dynamic} \
96 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
97 + %{!r:%{O2|O3: --gc-sections}}"
98 +
99 +#else /* USE_UCLIBC */
100 +
101 #undef CRIS_SUBTARGET_VERSION
102 #define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
103
104 @@ -95,6 +114,8 @@
105 %{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
106 %{!r:%{O2|O3: --gc-sections}}"
107
108 +#endif /* USE_UCLIBC */
109 +
110
111 /* Node: Run-time Target */
112
113 diff -urN gcc-3.3.3/gcc/config/cris/t-linux-uclibc gcc-3.3.3-new/gcc/config/cris/t-linux-uclibc
114 --- gcc-3.3.3/gcc/config/cris/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
115 +++ gcc-3.3.3-new/gcc/config/cris/t-linux-uclibc 2004-02-16 21:12:16.000000000 -0600
116 @@ -0,0 +1,3 @@
117 +T_CFLAGS = -DUSE_UCLIBC
118 +TARGET_LIBGCC2_CFLAGS += -fPIC
119 +CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_CFLAGS)
120 diff -urN gcc-3.3.3/gcc/config/i386/linux.h gcc-3.3.3-new/gcc/config/i386/linux.h
121 --- gcc-3.3.3/gcc/config/i386/linux.h 2003-11-14 00:46:12.000000000 -0600
122 +++ gcc-3.3.3-new/gcc/config/i386/linux.h 2004-02-16 21:12:16.000000000 -0600
123 @@ -136,6 +136,15 @@
124 %{static:-static}}}"
125 #endif
126 #else
127 +#if defined USE_UCLIBC
128 +#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
129 + %{!shared: \
130 + %{!ibcs: \
131 + %{!static: \
132 + %{rdynamic:-export-dynamic} \
133 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
134 + %{static:-static}}}"
135 +#else
136 #define LINK_SPEC "-m elf_i386 %{shared:-shared} \
137 %{!shared: \
138 %{!ibcs: \
139 @@ -144,6 +153,7 @@
140 %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
141 %{static:-static}}}"
142 #endif
143 +#endif
144
145 /* A C statement (sans semicolon) to output to the stdio stream
146 FILE the assembler definition of uninitialized global DECL named
147 diff -urN gcc-3.3.3/gcc/config/mips/linux.h gcc-3.3.3-new/gcc/config/mips/linux.h
148 --- gcc-3.3.3/gcc/config/mips/linux.h 2003-12-23 02:58:00.000000000 -0600
149 +++ gcc-3.3.3-new/gcc/config/mips/linux.h 2004-02-16 21:12:16.000000000 -0600
150 @@ -175,6 +175,17 @@
151
152 /* Borrowed from sparc/linux.h */
153 #undef LINK_SPEC
154 +#ifdef USE_UCLIBC
155 +#define LINK_SPEC \
156 + "%(endian_spec) \
157 + %{shared:-shared} \
158 + %{!shared: \
159 + %{!ibcs: \
160 + %{!static: \
161 + %{rdynamic:-export-dynamic} \
162 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
163 + %{static:-static}}}"
164 +#else
165 #define LINK_SPEC \
166 "%(endian_spec) \
167 %{shared:-shared} \
168 @@ -184,6 +195,7 @@
169 %{rdynamic:-export-dynamic} \
170 %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
171 %{static:-static}}}"
172 +#endif
173
174 #undef SUBTARGET_ASM_SPEC
175 #define SUBTARGET_ASM_SPEC "\
176 diff -urN gcc-3.3.3/gcc/config/sh/linux.h gcc-3.3.3-new/gcc/config/sh/linux.h
177 --- gcc-3.3.3/gcc/config/sh/linux.h 2003-11-06 17:13:33.000000000 -0600
178 +++ gcc-3.3.3-new/gcc/config/sh/linux.h 2004-02-16 21:12:16.000000000 -0600
179 @@ -44,12 +44,21 @@
180 #undef SUBTARGET_LINK_EMUL_SUFFIX
181 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
182 #undef SUBTARGET_LINK_SPEC
183 +#ifdef USE_UCLIBC
184 +#define SUBTARGET_LINK_SPEC \
185 + "%{shared:-shared} \
186 + %{!static: \
187 + %{rdynamic:-export-dynamic} \
188 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
189 + %{static:-static}"
190 +#else
191 #define SUBTARGET_LINK_SPEC \
192 "%{shared:-shared} \
193 %{!static: \
194 %{rdynamic:-export-dynamic} \
195 %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
196 %{static:-static}"
197 +#endif
198
199 /* The GNU C++ standard library requires that these macros be defined. */
200 #undef CPLUSPLUS_CPP_SPEC
201 diff -urN gcc-3.3.3/gcc/config/sh/t-linux-uclibc gcc-3.3.3-new/gcc/config/sh/t-linux-uclibc
202 --- gcc-3.3.3/gcc/config/sh/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
203 +++ gcc-3.3.3-new/gcc/config/sh/t-linux-uclibc 2004-02-16 21:12:16.000000000 -0600
204 @@ -0,0 +1,16 @@
205 +T_CFLAGS = -DUSE_UCLIBC
206 +
207 +# Don't run fixproto
208 +STMP_FIXPROTO =
209 +
210 +TARGET_LIBGCC2_CFLAGS = -fpic
211 +LIB1ASMFUNCS_CACHE = _ic_invalidate
212 +
213 +LIB2FUNCS_EXTRA=
214 +
215 +MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4
216 +MULTILIB_DIRNAMES=
217 +MULTILIB_MATCHES =
218 +MULTILIB_EXCEPTIONS=
219 +
220 +EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o crtbeginS.o crtendS.o
221 diff -urN gcc-3.3.3/gcc/config/sh/t-sh64-uclibc gcc-3.3.3-new/gcc/config/sh/t-sh64-uclibc
222 --- gcc-3.3.3/gcc/config/sh/t-sh64-uclibc 1969-12-31 18:00:00.000000000 -0600
223 +++ gcc-3.3.3-new/gcc/config/sh/t-sh64-uclibc 2004-02-16 21:12:16.000000000 -0600
224 @@ -0,0 +1,13 @@
225 +EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o
226 +
227 +LIB1ASMFUNCS = \
228 + _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
229 + _shcompact_call_trampoline _shcompact_return_trampoline \
230 + _shcompact_incoming_args _ic_invalidate _nested_trampoline \
231 + _push_pop_shmedia_regs \
232 + _udivdi3 _divdi3 _umoddi3 _moddi3
233 +
234 +MULTILIB_OPTIONS = $(MULTILIB_ENDIAN) m5-32media-nofpu/m5-compact/m5-compact-nofpu/m5-64media/m5-64media-nofpu
235 +MULTILIB_DIRNAMES= $(MULTILIB_ENDIAN) nofpu compact nofpu/compact media64 nofpu/media64
236 +MULTILIB_MATCHES=
237 +MULTILIB_EXCEPTIONS=
238 diff -urN gcc-3.3.3/gcc/config/t-linux-uclibc gcc-3.3.3-new/gcc/config/t-linux-uclibc
239 --- gcc-3.3.3/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
240 +++ gcc-3.3.3-new/gcc/config/t-linux-uclibc 2004-02-16 21:12:16.000000000 -0600
241 @@ -0,0 +1,23 @@
242 +T_CFLAGS = -DUSE_UCLIBC
243 +
244 +# Don't run fixproto
245 +STMP_FIXPROTO =
246 +
247 +# Compile crtbeginS.o and crtendS.o with pic.
248 +CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
249 +# Compile libgcc2.a with pic.
250 +TARGET_LIBGCC2_CFLAGS = -fPIC
251 +
252 +# Override t-slibgcc-elf-ver to export some libgcc symbols with
253 +# the symbol versions that glibc used.
254 +SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
255 +
256 +# Use unwind-dw2-fde-glibc
257 +#LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \
258 +# $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
259 +#LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
260 +
261 +# Use unwind-dw2-fde
262 +LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
263 + $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
264 +LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
265 diff -urN gcc-3.3.3/gcc/config.gcc gcc-3.3.3-new/gcc/config.gcc
266 --- gcc-3.3.3/gcc/config.gcc 2004-01-21 00:06:00.000000000 -0600
267 +++ gcc-3.3.3-new/gcc/config.gcc 2004-02-16 21:12:16.000000000 -0600
268 @@ -697,6 +697,17 @@
269 extra_parts=""
270 use_collect2=yes
271 ;;
272 +arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
273 + tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"
274 + tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
275 + extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
276 + gnu_ld=yes
277 + case x${enable_threads} in
278 + x | xyes | xpthreads | xposix)
279 + thread_file='posix'
280 + ;;
281 + esac
282 + ;;
283 arm*-*-linux*) # ARM GNU/Linux with ELF
284 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"
285 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
286 @@ -772,6 +783,10 @@
287 tmake_file="cris/t-cris cris/t-elfmulti"
288 gas=yes
289 ;;
290 +cris-*-linux-uclibc*)
291 + tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
292 + tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux-uclibc"
293 + ;;
294 cris-*-linux*)
295 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
296 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
297 @@ -1173,6 +1188,11 @@
298 thread_file='single'
299 fi
300 ;;
301 +i[34567]86-*-linux*uclibc*) # Intel 80386's running GNU/Linux
302 + # with ELF format using uClibc
303 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
304 + tmake_file="t-slibgcc-elf-ver t-linux-uclibc i386/t-crtstuff"
305 + ;;
306 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
307 # with ELF format using glibc 2
308 # aka GNU/Linux C library 6
309 @@ -1883,6 +1903,16 @@
310 tm_file="elfos.h ${tm_file} mips/netbsd.h"
311 tmake_file="${tmake_file} mips/t-netbsd"
312 ;;
313 +mips*-*-linux-uclibc*) # Linux MIPS, either endian. uClibc
314 + tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
315 + case $machine in
316 + mipsisa32*-*)
317 + target_cpu_default="MASK_SOFT_FLOAT"
318 + tm_defines="MIPS_ISA_DEFAULT=32"
319 + ;;
320 + esac
321 + tmake_file="t-slibgcc-elf-ver t-linux-uclibc mips/t-linux"
322 + ;;
323 mips*-*-linux*) # Linux MIPS, either endian.
324 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
325 case $machine in
326 @@ -2129,6 +2159,11 @@
327 out_file=rs6000/rs6000.c
328 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
329 ;;
330 +powerpc-*-linux-uclibc*)
331 + tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
332 + out_file=rs6000/rs6000.c
333 + tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux-uclibc rs6000/t-ppccomm"
334 + ;;
335 powerpc-*-linux*)
336 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
337 out_file=rs6000/rs6000.c
338 @@ -2313,10 +2348,18 @@
339 tmake_file="${tmake_file} sh/t-le"
340 ;;
341 esac
342 - tmake_file="${tmake_file} sh/t-linux"
343 + case $machine in
344 + *-*-linux-uclibc*) tmake_file="${tmake_file} sh/t-linux-uclibc" ;;
345 + *) tmake_file="${tmake_file} sh/t-linux" ;;
346 + esac
347 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
348 gas=yes gnu_ld=yes
349 case $machine in
350 + sh64*-*-linux-uclibc*)
351 + tmake_file="${tmake_file} sh/t-sh64-uclibc"
352 + tm_file="${tm_file} sh/sh64.h"
353 + extra_headers="shmedia.h ushmedia.h sshmedia.h"
354 + ;;
355 sh64*)
356 tmake_file="${tmake_file} sh/t-sh64"
357 tm_file="${tm_file} sh/sh64.h"
358 diff -urN gcc-3.3.3/libstdc++-v3/aclocal.m4 gcc-3.3.3-new/libstdc++-v3/aclocal.m4
359 --- gcc-3.3.3/libstdc++-v3/aclocal.m4 2004-01-12 10:18:44.000000000 -0600
360 +++ gcc-3.3.3-new/libstdc++-v3/aclocal.m4 2004-02-16 21:12:16.000000000 -0600
361 @@ -1216,6 +1216,9 @@
362 dnl Default to "generic"
363 if test x$enable_clocale_flag = xno; then
364 case x${target_os} in
365 + xlinux-uclibc*)
366 + enable_clocale_flag=uclibc
367 + ;;
368 xlinux* | xgnu*)
369 AC_EGREP_CPP([_GLIBCPP_ok], [
370 #include <features.h>
371 @@ -1339,6 +1342,41 @@
372 CTIME_CC=config/locale/generic/time_members.cc
373 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
374 ;;
375 + xuclibc)
376 + AC_MSG_RESULT(uclibc)
377 +
378 + # Declare intention to use gettext, and add support for specific
379 + # languages.
380 + # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
381 + ALL_LINGUAS="de fr"
382 +
383 + # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
384 + AC_CHECK_PROG(check_msgfmt, msgfmt, yes, no)
385 + if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
386 + USE_NLS=yes
387 + fi
388 + # Export the build objects.
389 + for ling in $ALL_LINGUAS; do \
390 + glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
391 + glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
392 + done
393 + AC_SUBST(glibcpp_MOFILES)
394 + AC_SUBST(glibcpp_POFILES)
395 +
396 + CLOCALE_H=config/locale/uclibc/c_locale.h
397 + CLOCALE_CC=config/locale/uclibc/c_locale.cc
398 + CCODECVT_H=config/locale/uclibc/codecvt_specializations.h
399 + CCODECVT_CC=config/locale/uclibc/codecvt_members.cc
400 + CCOLLATE_CC=config/locale/uclibc/collate_members.cc
401 + CCTYPE_CC=config/locale/uclibc/ctype_members.cc
402 + CMESSAGES_H=config/locale/uclibc/messages_members.h
403 + CMESSAGES_CC=config/locale/uclibc/messages_members.cc
404 + CMONEY_CC=config/locale/uclibc/monetary_members.cc
405 + CNUMERIC_CC=config/locale/uclibc/numeric_members.cc
406 + CTIME_H=config/locale/uclibc/time_members.h
407 + CTIME_CC=config/locale/uclibc/time_members.cc
408 + CLOCALE_INTERNAL_H=config/locale/uclibc/c++locale_internal.h
409 + ;;
410 *)
411 echo "$enable_clocale is an unknown locale package" 1>&2
412 exit 1
413 diff -urN gcc-3.3.3/libstdc++-v3/configure gcc-3.3.3-new/libstdc++-v3/configure
414 --- gcc-3.3.3/libstdc++-v3/configure 2004-01-12 10:18:45.000000000 -0600
415 +++ gcc-3.3.3-new/libstdc++-v3/configure 2004-02-17 00:21:12.000000000 -0600
416 @@ -2996,6 +2996,9 @@
417
418 if test x$enable_clocale_flag = xno; then
419 case x${target_os} in
420 + xlinux-uclibc*)
421 + enable_clocale_flag=uclibc
422 + ;;
423 xlinux* | xgnu*)
424 cat > conftest.$ac_ext <<EOF
425 #line 3002 "configure"
426 @@ -3182,6 +3185,70 @@
427 CTIME_CC=config/locale/generic/time_members.cc
428 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
429 ;;
430 + xuclibc)
431 + echo "$ac_t""uclibc" 1>&6
432 +
433 + # Declare intention to use gettext, and add support for specific
434 + # languages.
435 + # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
436 + ALL_LINGUAS="de fr"
437 +
438 + # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
439 + # Extract the first word of "msgfmt", so it can be a program name with args.
440 +set dummy msgfmt; ac_word=$2
441 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
442 +echo "configure:3117: checking for $ac_word" >&5
443 +if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
444 + echo $ac_n "(cached) $ac_c" 1>&6
445 +else
446 + if test -n "$check_msgfmt"; then
447 + ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
448 +else
449 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
450 + ac_dummy="$PATH"
451 + for ac_dir in $ac_dummy; do
452 + test -z "$ac_dir" && ac_dir=.
453 + if test -f $ac_dir/$ac_word; then
454 + ac_cv_prog_check_msgfmt="yes"
455 + break
456 + fi
457 + done
458 + IFS="$ac_save_ifs"
459 + test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
460 +fi
461 +fi
462 +check_msgfmt="$ac_cv_prog_check_msgfmt"
463 +if test -n "$check_msgfmt"; then
464 + echo "$ac_t""$check_msgfmt" 1>&6
465 +else
466 + echo "$ac_t""no" 1>&6
467 +fi
468 +
469 + if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
470 + USE_NLS=yes
471 + fi
472 + # Export the build objects.
473 + for ling in $ALL_LINGUAS; do \
474 + glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
475 + glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
476 + done
477 +
478 +
479 +
480 + CLOCALE_H=config/locale/uclibc/c_locale.h
481 + CLOCALE_CC=config/locale/uclibc/c_locale.cc
482 + CCODECVT_H=config/locale/uclibc/codecvt_specializations.h
483 + CCODECVT_CC=config/locale/uclibc/codecvt_members.cc
484 + CCOLLATE_CC=config/locale/uclibc/collate_members.cc
485 + CCTYPE_CC=config/locale/uclibc/ctype_members.cc
486 + CMESSAGES_H=config/locale/uclibc/messages_members.h
487 + CMESSAGES_CC=config/locale/uclibc/messages_members.cc
488 + CMONEY_CC=config/locale/uclibc/monetary_members.cc
489 + CNUMERIC_CC=config/locale/uclibc/numeric_members.cc
490 + CTIME_H=config/locale/uclibc/time_members.h
491 + CTIME_CC=config/locale/uclibc/time_members.cc
492 + CLOCALE_INTERNAL_H=config/locale/uclibc/c++locale_internal.h
493 + ;;
494 *)
495 echo "$enable_clocale is an unknown locale package" 1>&2
496 exit 1
497 @@ -4212,6 +4279,968 @@
498 # GLIBCPP_CHECK_MATH_SUPPORT
499
500 case "$target" in
501 + *-uclibc*)
502 + os_include_dir="os/uclibc"
503 + for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
504 + machine/endian.h machine/param.h sys/machine.h sys/types.h \
505 + fp.h locale.h float.h inttypes.h
506 +do
507 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
508 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
509 +echo "configure:4224: checking for $ac_hdr" >&5
510 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
511 + echo $ac_n "(cached) $ac_c" 1>&6
512 +else
513 + cat > conftest.$ac_ext <<EOF
514 +#line 4229 "configure"
515 +#include "confdefs.h"
516 +#include <$ac_hdr>
517 +EOF
518 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
519 +{ (eval echo configure:4234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
520 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
521 +if test -z "$ac_err"; then
522 + rm -rf conftest*
523 + eval "ac_cv_header_$ac_safe=yes"
524 +else
525 + echo "$ac_err" >&5
526 + echo "configure: failed program was:" >&5
527 + cat conftest.$ac_ext >&5
528 + rm -rf conftest*
529 + eval "ac_cv_header_$ac_safe=no"
530 +fi
531 +rm -f conftest*
532 +fi
533 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
534 + echo "$ac_t""yes" 1>&6
535 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
536 + cat >> confdefs.h <<EOF
537 +#define $ac_tr_hdr 1
538 +EOF
539 +
540 +else
541 + echo "$ac_t""no" 1>&6
542 +fi
543 +done
544 +
545 + SECTION_FLAGS='-ffunction-sections -fdata-sections'
546 +
547 +
548 + # If we're not using GNU ld, then there's no point in even trying these
549 + # tests. Check for that first. We should have already tested for gld
550 + # by now (in libtool), but require it now just to be safe...
551 + test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
552 + test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
553 +
554 +
555 + # The name set by libtool depends on the version of libtool. Shame on us
556 + # for depending on an impl detail, but c'est la vie. Older versions used
557 + # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
558 + # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
559 + # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
560 + # set (hence we're using an older libtool), then set it.
561 + if test x${with_gnu_ld+set} != xset; then
562 + if test x${ac_cv_prog_gnu_ld+set} != xset; then
563 + # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
564 + with_gnu_ld=no
565 + else
566 + with_gnu_ld=$ac_cv_prog_gnu_ld
567 + fi
568 + fi
569 +
570 + # Start by getting the version number. I think the libtool test already
571 + # does some of this, but throws away the result.
572 +
573 + ldver=`$LD --version 2>/dev/null | head -1 | \
574 + sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
575 +
576 + glibcpp_gnu_ld_version=`echo $ldver | \
577 + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
578 +
579 + # Set --gc-sections.
580 + if test "$with_gnu_ld" = "notbroken"; then
581 + # GNU ld it is! Joy and bunny rabbits!
582 +
583 + # All these tests are for C++; save the language and the compiler flags.
584 + # Need to do this so that g++ won't try to link in libstdc++
585 + ac_test_CFLAGS="${CFLAGS+set}"
586 + ac_save_CFLAGS="$CFLAGS"
587 + CFLAGS='-x c++ -Wl,--gc-sections'
588 +
589 + # Check for -Wl,--gc-sections
590 + # XXX This test is broken at the moment, as symbols required for
591 + # linking are now in libsupc++ (not built yet.....). In addition,
592 + # this test has cored on solaris in the past. In addition,
593 + # --gc-sections doesn't really work at the moment (keeps on discarding
594 + # used sections, first .eh_frame and now some of the glibc sections for
595 + # iconv). Bzzzzt. Thanks for playing, maybe next time.
596 + echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
597 +echo "configure:4312: checking for ld that supports -Wl,--gc-sections" >&5
598 + if test "$cross_compiling" = yes; then
599 + ac_sectionLDflags=yes
600 +else
601 + cat > conftest.$ac_ext <<EOF
602 +#line 4317 "configure"
603 +#include "confdefs.h"
604 +
605 + int main(void)
606 + {
607 + try { throw 1; }
608 + catch (...) { };
609 + return 0;
610 + }
611 +
612 +EOF
613 +if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
614 +then
615 + ac_sectionLDflags=yes
616 +else
617 + echo "configure: failed program was:" >&5
618 + cat conftest.$ac_ext >&5
619 + rm -fr conftest*
620 + ac_sectionLDflags=no
621 +fi
622 +rm -fr conftest*
623 +fi
624 +
625 + if test "$ac_test_CFLAGS" = set; then
626 + CFLAGS="$ac_save_CFLAGS"
627 + else
628 + # this is the suspicious part
629 + CFLAGS=''
630 + fi
631 + if test "$ac_sectionLDflags" = "yes"; then
632 + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
633 + fi
634 + echo "$ac_t""$ac_sectionLDflags" 1>&6
635 + fi
636 +
637 + # Set linker optimization flags.
638 + if test x"$with_gnu_ld" = x"yes"; then
639 + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
640 + fi
641 +
642 +
643 +
644 +
645 +
646 + echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
647 +echo "configure:4362: checking for main in -lm" >&5
648 +ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
649 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
650 + echo $ac_n "(cached) $ac_c" 1>&6
651 +else
652 + ac_save_LIBS="$LIBS"
653 +LIBS="-lm $LIBS"
654 +cat > conftest.$ac_ext <<EOF
655 +#line 4370 "configure"
656 +#include "confdefs.h"
657 +
658 +int main() {
659 +main()
660 +; return 0; }
661 +EOF
662 +if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
663 + rm -rf conftest*
664 + eval "ac_cv_lib_$ac_lib_var=yes"
665 +else
666 + echo "configure: failed program was:" >&5
667 + cat conftest.$ac_ext >&5
668 + rm -rf conftest*
669 + eval "ac_cv_lib_$ac_lib_var=no"
670 +fi
671 +rm -f conftest*
672 +LIBS="$ac_save_LIBS"
673 +
674 +fi
675 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
676 + echo "$ac_t""yes" 1>&6
677 + ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
678 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
679 + cat >> confdefs.h <<EOF
680 +#define $ac_tr_lib 1
681 +EOF
682 +
683 + LIBS="-lm $LIBS"
684 +
685 +else
686 + echo "$ac_t""no" 1>&6
687 +fi
688 +
689 + for ac_func in nan copysignf
690 +do
691 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
692 +echo "configure:4407: checking for $ac_func" >&5
693 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
694 + echo $ac_n "(cached) $ac_c" 1>&6
695 +else
696 + cat > conftest.$ac_ext <<EOF
697 +#line 4412 "configure"
698 +#include "confdefs.h"
699 +/* System header to define __stub macros and hopefully few prototypes,
700 + which can conflict with char $ac_func(); below. */
701 +#include <assert.h>
702 +/* Override any gcc2 internal prototype to avoid an error. */
703 +/* We use char because int might match the return type of a gcc2
704 + builtin and then its argument prototype would still apply. */
705 +char $ac_func();
706 +
707 +int main() {
708 +
709 +/* The GNU C library defines this for functions which it implements
710 + to always fail with ENOSYS. Some functions are actually named
711 + something starting with __ and the normal name is an alias. */
712 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
713 +choke me
714 +#else
715 +$ac_func();
716 +#endif
717 +
718 +; return 0; }
719 +EOF
720 +if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
721 + rm -rf conftest*
722 + eval "ac_cv_func_$ac_func=yes"
723 +else
724 + echo "configure: failed program was:" >&5
725 + cat conftest.$ac_ext >&5
726 + rm -rf conftest*
727 + eval "ac_cv_func_$ac_func=no"
728 +fi
729 +rm -f conftest*
730 +fi
731 +
732 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
733 + echo "$ac_t""yes" 1>&6
734 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
735 + cat >> confdefs.h <<EOF
736 +#define $ac_tr_func 1
737 +EOF
738 +
739 +else
740 + echo "$ac_t""no" 1>&6
741 +LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
742 +fi
743 +done
744 +
745 +
746 + for ac_func in __signbit
747 +do
748 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
749 +echo "configure:4464: checking for $ac_func" >&5
750 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
751 + echo $ac_n "(cached) $ac_c" 1>&6
752 +else
753 + cat > conftest.$ac_ext <<EOF
754 +#line 4469 "configure"
755 +#include "confdefs.h"
756 +/* System header to define __stub macros and hopefully few prototypes,
757 + which can conflict with char $ac_func(); below. */
758 +#include <assert.h>
759 +/* Override any gcc2 internal prototype to avoid an error. */
760 +/* We use char because int might match the return type of a gcc2
761 + builtin and then its argument prototype would still apply. */
762 +char $ac_func();
763 +
764 +int main() {
765 +
766 +/* The GNU C library defines this for functions which it implements
767 + to always fail with ENOSYS. Some functions are actually named
768 + something starting with __ and the normal name is an alias. */
769 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
770 +choke me
771 +#else
772 +$ac_func();
773 +#endif
774 +
775 +; return 0; }
776 +EOF
777 +if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
778 + rm -rf conftest*
779 + eval "ac_cv_func_$ac_func=yes"
780 +else
781 + echo "configure: failed program was:" >&5
782 + cat conftest.$ac_ext >&5
783 + rm -rf conftest*
784 + eval "ac_cv_func_$ac_func=no"
785 +fi
786 +rm -f conftest*
787 +fi
788 +
789 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
790 + echo "$ac_t""yes" 1>&6
791 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
792 + cat >> confdefs.h <<EOF
793 +#define $ac_tr_func 1
794 +EOF
795 +
796 +else
797 + echo "$ac_t""no" 1>&6
798 +LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
799 +fi
800 +done
801 +
802 + for ac_func in __signbitf
803 +do
804 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
805 +echo "configure:4520: checking for $ac_func" >&5
806 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
807 + echo $ac_n "(cached) $ac_c" 1>&6
808 +else
809 + cat > conftest.$ac_ext <<EOF
810 +#line 4525 "configure"
811 +#include "confdefs.h"
812 +/* System header to define __stub macros and hopefully few prototypes,
813 + which can conflict with char $ac_func(); below. */
814 +#include <assert.h>
815 +/* Override any gcc2 internal prototype to avoid an error. */
816 +/* We use char because int might match the return type of a gcc2
817 + builtin and then its argument prototype would still apply. */
818 +char $ac_func();
819 +
820 +int main() {
821 +
822 +/* The GNU C library defines this for functions which it implements
823 + to always fail with ENOSYS. Some functions are actually named
824 + something starting with __ and the normal name is an alias. */
825 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
826 +choke me
827 +#else
828 +$ac_func();
829 +#endif
830 +
831 +; return 0; }
832 +EOF
833 +if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
834 + rm -rf conftest*
835 + eval "ac_cv_func_$ac_func=yes"
836 +else
837 + echo "configure: failed program was:" >&5
838 + cat conftest.$ac_ext >&5
839 + rm -rf conftest*
840 + eval "ac_cv_func_$ac_func=no"
841 +fi
842 +rm -f conftest*
843 +fi
844 +
845 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
846 + echo "$ac_t""yes" 1>&6
847 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
848 + cat >> confdefs.h <<EOF
849 +#define $ac_tr_func 1
850 +EOF
851 +
852 +else
853 + echo "$ac_t""no" 1>&6
854 +LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
855 +fi
856 +done
857 +
858 +
859 + if test x$ac_cv_func_copysignl = x"yes"; then
860 + for ac_func in __signbitl
861 +do
862 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
863 +echo "configure:4578: checking for $ac_func" >&5
864 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
865 + echo $ac_n "(cached) $ac_c" 1>&6
866 +else
867 + cat > conftest.$ac_ext <<EOF
868 +#line 4583 "configure"
869 +#include "confdefs.h"
870 +/* System header to define __stub macros and hopefully few prototypes,
871 + which can conflict with char $ac_func(); below. */
872 +#include <assert.h>
873 +/* Override any gcc2 internal prototype to avoid an error. */
874 +/* We use char because int might match the return type of a gcc2
875 + builtin and then its argument prototype would still apply. */
876 +char $ac_func();
877 +
878 +int main() {
879 +
880 +/* The GNU C library defines this for functions which it implements
881 + to always fail with ENOSYS. Some functions are actually named
882 + something starting with __ and the normal name is an alias. */
883 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
884 +choke me
885 +#else
886 +$ac_func();
887 +#endif
888 +
889 +; return 0; }
890 +EOF
891 +if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
892 + rm -rf conftest*
893 + eval "ac_cv_func_$ac_func=yes"
894 +else
895 + echo "configure: failed program was:" >&5
896 + cat conftest.$ac_ext >&5
897 + rm -rf conftest*
898 + eval "ac_cv_func_$ac_func=no"
899 +fi
900 +rm -f conftest*
901 +fi
902 +
903 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
904 + echo "$ac_t""yes" 1>&6
905 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
906 + cat >> confdefs.h <<EOF
907 +#define $ac_tr_func 1
908 +EOF
909 +
910 +else
911 + echo "$ac_t""no" 1>&6
912 +LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
913 +fi
914 +done
915 +
916 + fi
917 +
918 + if test -n "$LIBMATHOBJS"; then
919 + need_libmath=yes
920 + fi
921 +
922 +
923 +
924 +if test "$need_libmath" = yes; then
925 + GLIBCPP_BUILD_LIBMATH_TRUE=
926 + GLIBCPP_BUILD_LIBMATH_FALSE='#'
927 +else
928 + GLIBCPP_BUILD_LIBMATH_TRUE='#'
929 + GLIBCPP_BUILD_LIBMATH_FALSE=
930 +fi
931 +
932 +
933 + enable_wchar_t=no
934 +
935 + echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
936 +echo "configure:4651: checking for mbstate_t" >&5
937 + cat > conftest.$ac_ext <<EOF
938 +#line 4653 "configure"
939 +#include "confdefs.h"
940 +#include <wchar.h>
941 +int main() {
942 +mbstate_t teststate;
943 +; return 0; }
944 +EOF
945 +if { (eval echo configure:4660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
946 + rm -rf conftest*
947 + have_mbstate_t=yes
948 +else
949 + echo "configure: failed program was:" >&5
950 + cat conftest.$ac_ext >&5
951 + rm -rf conftest*
952 + have_mbstate_t=no
953 +fi
954 +rm -f conftest*
955 + echo "$ac_t""$have_mbstate_t" 1>&6
956 + if test x"$have_mbstate_t" = xyes; then
957 + cat >> confdefs.h <<\EOF
958 +#define HAVE_MBSTATE_T 1
959 +EOF
960 +
961 + fi
962 +
963 + for ac_hdr in wchar.h
964 +do
965 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
966 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
967 +echo "configure:4682: checking for $ac_hdr" >&5
968 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
969 + echo $ac_n "(cached) $ac_c" 1>&6
970 +else
971 + cat > conftest.$ac_ext <<EOF
972 +#line 4687 "configure"
973 +#include "confdefs.h"
974 +#include <$ac_hdr>
975 +EOF
976 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
977 +{ (eval echo configure:4692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
978 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
979 +if test -z "$ac_err"; then
980 + rm -rf conftest*
981 + eval "ac_cv_header_$ac_safe=yes"
982 +else
983 + echo "$ac_err" >&5
984 + echo "configure: failed program was:" >&5
985 + cat conftest.$ac_ext >&5
986 + rm -rf conftest*
987 + eval "ac_cv_header_$ac_safe=no"
988 +fi
989 +rm -f conftest*
990 +fi
991 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
992 + echo "$ac_t""yes" 1>&6
993 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
994 + cat >> confdefs.h <<EOF
995 +#define $ac_tr_hdr 1
996 +EOF
997 + ac_has_wchar_h=yes
998 +else
999 + echo "$ac_t""no" 1>&6
1000 +ac_has_wchar_h=no
1001 +fi
1002 +done
1003 +
1004 + for ac_hdr in wctype.h
1005 +do
1006 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1007 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1008 +echo "configure:4723: checking for $ac_hdr" >&5
1009 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1010 + echo $ac_n "(cached) $ac_c" 1>&6
1011 +else
1012 + cat > conftest.$ac_ext <<EOF
1013 +#line 4728 "configure"
1014 +#include "confdefs.h"
1015 +#include <$ac_hdr>
1016 +EOF
1017 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1018 +{ (eval echo configure:4733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1019 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1020 +if test -z "$ac_err"; then
1021 + rm -rf conftest*
1022 + eval "ac_cv_header_$ac_safe=yes"
1023 +else
1024 + echo "$ac_err" >&5
1025 + echo "configure: failed program was:" >&5
1026 + cat conftest.$ac_ext >&5
1027 + rm -rf conftest*
1028 + eval "ac_cv_header_$ac_safe=no"
1029 +fi
1030 +rm -f conftest*
1031 +fi
1032 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1033 + echo "$ac_t""yes" 1>&6
1034 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1035 + cat >> confdefs.h <<EOF
1036 +#define $ac_tr_hdr 1
1037 +EOF
1038 + ac_has_wctype_h=yes
1039 +else
1040 + echo "$ac_t""no" 1>&6
1041 +ac_has_wctype_h=no
1042 +fi
1043 +done
1044 +
1045 +
1046 + if test x"$ac_has_wchar_h" = xyes &&
1047 + test x"$ac_has_wctype_h" = xyes &&
1048 + test x"$enable_c_mbchar" != xno; then
1049 +
1050 + echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
1051 +echo "configure:4766: checking for WCHAR_MIN and WCHAR_MAX" >&5
1052 + cat > conftest.$ac_ext <<EOF
1053 +#line 4768 "configure"
1054 +#include "confdefs.h"
1055 +#include <wchar.h>
1056 +int main() {
1057 +int i = WCHAR_MIN; int j = WCHAR_MAX;
1058 +; return 0; }
1059 +EOF
1060 +if { (eval echo configure:4775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1061 + rm -rf conftest*
1062 + has_wchar_minmax=yes
1063 +else
1064 + echo "configure: failed program was:" >&5
1065 + cat conftest.$ac_ext >&5
1066 + rm -rf conftest*
1067 + has_wchar_minmax=no
1068 +fi
1069 +rm -f conftest*
1070 + echo "$ac_t""$has_wchar_minmax" 1>&6
1071 +
1072 + echo $ac_n "checking for WEOF""... $ac_c" 1>&6
1073 +echo "configure:4788: checking for WEOF" >&5
1074 + cat > conftest.$ac_ext <<EOF
1075 +#line 4790 "configure"
1076 +#include "confdefs.h"
1077 +
1078 + #include <wchar.h>
1079 + #include <stddef.h>
1080 +int main() {
1081 +wint_t i = WEOF;
1082 +; return 0; }
1083 +EOF
1084 +if { (eval echo configure:4799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1085 + rm -rf conftest*
1086 + has_weof=yes
1087 +else
1088 + echo "configure: failed program was:" >&5
1089 + cat conftest.$ac_ext >&5
1090 + rm -rf conftest*
1091 + has_weof=no
1092 +fi
1093 +rm -f conftest*
1094 + echo "$ac_t""$has_weof" 1>&6
1095 +
1096 + ac_wfuncs=yes
1097 + for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
1098 +do
1099 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1100 +echo "configure:4815: checking for $ac_func" >&5
1101 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1102 + echo $ac_n "(cached) $ac_c" 1>&6
1103 +else
1104 + cat > conftest.$ac_ext <<EOF
1105 +#line 4820 "configure"
1106 +#include "confdefs.h"
1107 +/* System header to define __stub macros and hopefully few prototypes,
1108 + which can conflict with char $ac_func(); below. */
1109 +#include <assert.h>
1110 +/* Override any gcc2 internal prototype to avoid an error. */
1111 +/* We use char because int might match the return type of a gcc2
1112 + builtin and then its argument prototype would still apply. */
1113 +char $ac_func();
1114 +
1115 +int main() {
1116 +
1117 +/* The GNU C library defines this for functions which it implements
1118 + to always fail with ENOSYS. Some functions are actually named
1119 + something starting with __ and the normal name is an alias. */
1120 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1121 +choke me
1122 +#else
1123 +$ac_func();
1124 +#endif
1125 +
1126 +; return 0; }
1127 +EOF
1128 +if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1129 + rm -rf conftest*
1130 + eval "ac_cv_func_$ac_func=yes"
1131 +else
1132 + echo "configure: failed program was:" >&5
1133 + cat conftest.$ac_ext >&5
1134 + rm -rf conftest*
1135 + eval "ac_cv_func_$ac_func=no"
1136 +fi
1137 +rm -f conftest*
1138 +fi
1139 +
1140 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1141 + echo "$ac_t""yes" 1>&6
1142 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1143 + cat >> confdefs.h <<EOF
1144 +#define $ac_tr_func 1
1145 +EOF
1146 +
1147 +else
1148 + echo "$ac_t""no" 1>&6
1149 +\
1150 + ac_wfuncs=no
1151 +fi
1152 +done
1153 +
1154 +
1155 + for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
1156 + fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
1157 + vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
1158 + mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
1159 + wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
1160 + wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
1161 +do
1162 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1163 +echo "configure:4878: checking for $ac_func" >&5
1164 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1165 + echo $ac_n "(cached) $ac_c" 1>&6
1166 +else
1167 + cat > conftest.$ac_ext <<EOF
1168 +#line 4883 "configure"
1169 +#include "confdefs.h"
1170 +/* System header to define __stub macros and hopefully few prototypes,
1171 + which can conflict with char $ac_func(); below. */
1172 +#include <assert.h>
1173 +/* Override any gcc2 internal prototype to avoid an error. */
1174 +/* We use char because int might match the return type of a gcc2
1175 + builtin and then its argument prototype would still apply. */
1176 +char $ac_func();
1177 +
1178 +int main() {
1179 +
1180 +/* The GNU C library defines this for functions which it implements
1181 + to always fail with ENOSYS. Some functions are actually named
1182 + something starting with __ and the normal name is an alias. */
1183 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1184 +choke me
1185 +#else
1186 +$ac_func();
1187 +#endif
1188 +
1189 +; return 0; }
1190 +EOF
1191 +if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1192 + rm -rf conftest*
1193 + eval "ac_cv_func_$ac_func=yes"
1194 +else
1195 + echo "configure: failed program was:" >&5
1196 + cat conftest.$ac_ext >&5
1197 + rm -rf conftest*
1198 + eval "ac_cv_func_$ac_func=no"
1199 +fi
1200 +rm -f conftest*
1201 +fi
1202 +
1203 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1204 + echo "$ac_t""yes" 1>&6
1205 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1206 + cat >> confdefs.h <<EOF
1207 +#define $ac_tr_func 1
1208 +EOF
1209 +
1210 +else
1211 + echo "$ac_t""no" 1>&6
1212 +\
1213 + ac_wfuncs=no
1214 +fi
1215 +done
1216 +
1217 +
1218 + echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
1219 +echo "configure:4934: checking for ISO C99 wchar_t support" >&5
1220 + if test x"$has_weof" = xyes &&
1221 + test x"$has_wchar_minmax" = xyes &&
1222 + test x"$ac_wfuncs" = xyes; then
1223 + ac_isoC99_wchar_t=yes
1224 + else
1225 + ac_isoC99_wchar_t=no
1226 + fi
1227 + echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
1228 +
1229 + ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
1230 +echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
1231 +echo "configure:4946: checking for iconv.h" >&5
1232 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1233 + echo $ac_n "(cached) $ac_c" 1>&6
1234 +else
1235 + cat > conftest.$ac_ext <<EOF
1236 +#line 4951 "configure"
1237 +#include "confdefs.h"
1238 +#include <iconv.h>
1239 +EOF
1240 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1241 +{ (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1242 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1243 +if test -z "$ac_err"; then
1244 + rm -rf conftest*
1245 + eval "ac_cv_header_$ac_safe=yes"
1246 +else
1247 + echo "$ac_err" >&5
1248 + echo "configure: failed program was:" >&5
1249 + cat conftest.$ac_ext >&5
1250 + rm -rf conftest*
1251 + eval "ac_cv_header_$ac_safe=no"
1252 +fi
1253 +rm -f conftest*
1254 +fi
1255 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1256 + echo "$ac_t""yes" 1>&6
1257 + ac_has_iconv_h=yes
1258 +else
1259 + echo "$ac_t""no" 1>&6
1260 +ac_has_iconv_h=no
1261 +fi
1262 +
1263 + ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
1264 +echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
1265 +echo "configure:4980: checking for langinfo.h" >&5
1266 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1267 + echo $ac_n "(cached) $ac_c" 1>&6
1268 +else
1269 + cat > conftest.$ac_ext <<EOF
1270 +#line 4985 "configure"
1271 +#include "confdefs.h"
1272 +#include <langinfo.h>
1273 +EOF
1274 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1275 +{ (eval echo configure:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1276 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1277 +if test -z "$ac_err"; then
1278 + rm -rf conftest*
1279 + eval "ac_cv_header_$ac_safe=yes"
1280 +else
1281 + echo "$ac_err" >&5
1282 + echo "configure: failed program was:" >&5
1283 + cat conftest.$ac_ext >&5
1284 + rm -rf conftest*
1285 + eval "ac_cv_header_$ac_safe=no"
1286 +fi
1287 +rm -f conftest*
1288 +fi
1289 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1290 + echo "$ac_t""yes" 1>&6
1291 + ac_has_langinfo_h=yes
1292 +else
1293 + echo "$ac_t""no" 1>&6
1294 +ac_has_langinfo_h=no
1295 +fi
1296 +
1297 +
1298 + echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
1299 +echo "configure:5014: checking for iconv in -liconv" >&5
1300 +ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
1301 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1302 + echo $ac_n "(cached) $ac_c" 1>&6
1303 +else
1304 + ac_save_LIBS="$LIBS"
1305 +LIBS="-liconv $LIBS"
1306 +cat > conftest.$ac_ext <<EOF
1307 +#line 5022 "configure"
1308 +#include "confdefs.h"
1309 +/* Override any gcc2 internal prototype to avoid an error. */
1310 +/* We use char because int might match the return type of a gcc2
1311 + builtin and then its argument prototype would still apply. */
1312 +char iconv();
1313 +
1314 +int main() {
1315 +iconv()
1316 +; return 0; }
1317 +EOF
1318 +if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1319 + rm -rf conftest*
1320 + eval "ac_cv_lib_$ac_lib_var=yes"
1321 +else
1322 + echo "configure: failed program was:" >&5
1323 + cat conftest.$ac_ext >&5
1324 + rm -rf conftest*
1325 + eval "ac_cv_lib_$ac_lib_var=no"
1326 +fi
1327 +rm -f conftest*
1328 +LIBS="$ac_save_LIBS"
1329 +
1330 +fi
1331 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1332 + echo "$ac_t""yes" 1>&6
1333 + libiconv="-liconv"
1334 +else
1335 + echo "$ac_t""no" 1>&6
1336 +fi
1337 +
1338 + ac_save_LIBS="$LIBS"
1339 + LIBS="$LIBS $libiconv"
1340 +
1341 + for ac_func in iconv_open iconv_close iconv nl_langinfo
1342 +do
1343 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1344 +echo "configure:5059: checking for $ac_func" >&5
1345 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1346 + echo $ac_n "(cached) $ac_c" 1>&6
1347 +else
1348 + cat > conftest.$ac_ext <<EOF
1349 +#line 5064 "configure"
1350 +#include "confdefs.h"
1351 +/* System header to define __stub macros and hopefully few prototypes,
1352 + which can conflict with char $ac_func(); below. */
1353 +#include <assert.h>
1354 +/* Override any gcc2 internal prototype to avoid an error. */
1355 +/* We use char because int might match the return type of a gcc2
1356 + builtin and then its argument prototype would still apply. */
1357 +char $ac_func();
1358 +
1359 +int main() {
1360 +
1361 +/* The GNU C library defines this for functions which it implements
1362 + to always fail with ENOSYS. Some functions are actually named
1363 + something starting with __ and the normal name is an alias. */
1364 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1365 +choke me
1366 +#else
1367 +$ac_func();
1368 +#endif
1369 +
1370 +; return 0; }
1371 +EOF
1372 +if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1373 + rm -rf conftest*
1374 + eval "ac_cv_func_$ac_func=yes"
1375 +else
1376 + echo "configure: failed program was:" >&5
1377 + cat conftest.$ac_ext >&5
1378 + rm -rf conftest*
1379 + eval "ac_cv_func_$ac_func=no"
1380 +fi
1381 +rm -f conftest*
1382 +fi
1383 +
1384 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1385 + echo "$ac_t""yes" 1>&6
1386 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1387 + cat >> confdefs.h <<EOF
1388 +#define $ac_tr_func 1
1389 +EOF
1390 + \
1391 + ac_XPG2funcs=yes
1392 +else
1393 + echo "$ac_t""no" 1>&6
1394 +ac_XPG2funcs=no
1395 +fi
1396 +done
1397 +
1398 +
1399 + LIBS="$ac_save_LIBS"
1400 +
1401 + echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
1402 +echo "configure:5117: checking for XPG2 wchar_t support" >&5
1403 + if test x"$ac_has_iconv_h" = xyes &&
1404 + test x"$ac_has_langinfo_h" = xyes &&
1405 + test x"$ac_XPG2funcs" = xyes; then
1406 + ac_XPG2_wchar_t=yes
1407 + else
1408 + ac_XPG2_wchar_t=no
1409 + fi
1410 + echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
1411 +
1412 + if test x"$ac_isoC99_wchar_t" = xyes &&
1413 + test x"$ac_XPG2_wchar_t" = xyes; then
1414 + cat >> confdefs.h <<\EOF
1415 +#define _GLIBCPP_USE_WCHAR_T 1
1416 +EOF
1417 +
1418 + enable_wchar_t=yes
1419 + fi
1420 + fi
1421 + echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
1422 +echo "configure:5137: checking for enabled wchar_t specializations" >&5
1423 + echo "$ac_t""$enable_wchar_t" 1>&6
1424 +
1425 +
1426 +if test "$enable_wchar_t" = yes; then
1427 + GLIBCPP_TEST_WCHAR_T_TRUE=
1428 + GLIBCPP_TEST_WCHAR_T_FALSE='#'
1429 +else
1430 + GLIBCPP_TEST_WCHAR_T_TRUE='#'
1431 + GLIBCPP_TEST_WCHAR_T_FALSE=
1432 +fi
1433 +
1434 +
1435 + cat >> confdefs.h <<\EOF
1436 +#define HAVE_COPYSIGN 1
1437 +EOF
1438 +
1439 + cat >> confdefs.h <<\EOF
1440 +#define HAVE_FINITE 1
1441 +EOF
1442 +
1443 + cat >> confdefs.h <<\EOF
1444 +#define HAVE_FINITEF 1
1445 +EOF
1446 +
1447 + cat >> confdefs.h <<\EOF
1448 +#define HAVE_ISINF 1
1449 +EOF
1450 +
1451 + cat >> confdefs.h <<\EOF
1452 +#define HAVE_ISINFF 1
1453 +EOF
1454 +
1455 + cat >> confdefs.h <<\EOF
1456 +#define HAVE_ISNAN 1
1457 +EOF
1458 +
1459 + cat >> confdefs.h <<\EOF
1460 +#define HAVE_ISNANF 1
1461 +EOF
1462 + ;;
1463 *-linux*)
1464 os_include_dir="os/gnu-linux"
1465 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
1466 diff -urN gcc-3.3.3/libstdc++-v3/configure.in gcc-3.3.3-new/libstdc++-v3/configure.in
1467 --- gcc-3.3.3/libstdc++-v3/configure.in 2004-01-12 10:19:22.000000000 -0600
1468 +++ gcc-3.3.3-new/libstdc++-v3/configure.in 2004-02-16 23:13:45.000000000 -0600
1469 @@ -117,6 +117,36 @@
1470 # GLIBCPP_CHECK_MATH_SUPPORT
1471
1472 case "$target" in
1473 + *-uclibc*)
1474 + os_include_dir="os/uclibc"
1475 + AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
1476 + machine/endian.h machine/param.h sys/machine.h sys/types.h \
1477 + fp.h locale.h float.h inttypes.h])
1478 + SECTION_FLAGS='-ffunction-sections -fdata-sections'
1479 + AC_SUBST(SECTION_FLAGS)
1480 + GLIBCPP_CHECK_LINKER_FEATURES
1481 + GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
1482 + GLIBCPP_CHECK_WCHAR_T_SUPPORT
1483 +
1484 + AC_DEFINE(HAVE_COPYSIGN)
1485 + #AC_DEFINE(HAVE_COPYSIGNF)
1486 + AC_DEFINE(HAVE_FINITE)
1487 + AC_DEFINE(HAVE_FINITEF)
1488 + #AC_DEFINE(HAVE_FREXPF)
1489 + #AC_DEFINE(HAVE_HYPOTF)
1490 + AC_DEFINE(HAVE_ISINF)
1491 + AC_DEFINE(HAVE_ISINFF)
1492 + AC_DEFINE(HAVE_ISNAN)
1493 + AC_DEFINE(HAVE_ISNANF)
1494 + #AC_DEFINE(HAVE_SINCOS)
1495 + #AC_DEFINE(HAVE_SINCOSF)
1496 + #if test x"long_double_math_on_this_cpu" = x"yes"; then
1497 + #AC_DEFINE(HAVE_FINITEL)
1498 + #AC_DEFINE(HAVE_HYPOTL)
1499 + #AC_DEFINE(HAVE_ISINFL)
1500 + #AC_DEFINE(HAVE_ISNANL)
1501 + #fi
1502 + ;;
1503 *-linux*)
1504 os_include_dir="os/gnu-linux"
1505 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
1506 diff -urN gcc-3.3.3/libstdc++-v3/configure.target gcc-3.3.3-new/libstdc++-v3/configure.target
1507 --- gcc-3.3.3/libstdc++-v3/configure.target 2003-10-01 14:07:07.000000000 -0500
1508 +++ gcc-3.3.3-new/libstdc++-v3/configure.target 2004-02-16 21:12:16.000000000 -0600
1509 @@ -133,6 +133,9 @@
1510 freebsd*)
1511 os_include_dir="os/bsd/freebsd"
1512 ;;
1513 + linux-uclibc*)
1514 + os_include_dir="os/uclibc"
1515 + ;;
1516 gnu* | linux*)
1517 os_include_dir="os/gnu-linux"
1518 ;;
1519 diff -urN gcc-3.3.3/libstdc++-v3/include/c_std/std_cstdlib.h gcc-3.3.3-new/libstdc++-v3/include/c_std/std_cstdlib.h
1520 --- gcc-3.3.3/libstdc++-v3/include/c_std/std_cstdlib.h 2003-04-18 05:08:05.000000000 -0500
1521 +++ gcc-3.3.3-new/libstdc++-v3/include/c_std/std_cstdlib.h 2004-02-16 21:12:16.000000000 -0600
1522 @@ -101,9 +101,11 @@
1523 using ::labs;
1524 using ::ldiv;
1525 using ::malloc;
1526 +#if _GLIBCPP_USE_WCHAR_T
1527 using ::mblen;
1528 using ::mbstowcs;
1529 using ::mbtowc;
1530 +#endif
1531 using ::qsort;
1532 using ::rand;
1533 using ::realloc;
1534 @@ -112,8 +114,10 @@
1535 using ::strtol;
1536 using ::strtoul;
1537 using ::system;
1538 +#if _GLIBCPP_USE_WCHAR_T
1539 using ::wcstombs;
1540 using ::wctomb;
1541 +#endif
1542
1543 inline long
1544 abs(long __i) { return labs(__i); }
1545 diff -urN gcc-3.3.3/libstdc++-v3/include/c_std/std_cwchar.h gcc-3.3.3-new/libstdc++-v3/include/c_std/std_cwchar.h
1546 --- gcc-3.3.3/libstdc++-v3/include/c_std/std_cwchar.h 2003-04-18 05:08:05.000000000 -0500
1547 +++ gcc-3.3.3-new/libstdc++-v3/include/c_std/std_cwchar.h 2004-02-16 21:12:16.000000000 -0600
1548 @@ -165,7 +165,9 @@
1549 using ::wcscoll;
1550 using ::wcscpy;
1551 using ::wcscspn;
1552 +#ifdef HAVE_WCSFTIME
1553 using ::wcsftime;
1554 +#endif
1555 using ::wcslen;
1556 using ::wcsncat;
1557 using ::wcsncmp;
1558 diff -urN gcc-3.3.3/ltconfig gcc-3.3.3-new/ltconfig
1559 --- gcc-3.3.3/ltconfig 2003-02-19 20:10:02.000000000 -0600
1560 +++ gcc-3.3.3-new/ltconfig 2004-02-16 21:12:16.000000000 -0600
1561 @@ -603,6 +603,7 @@
1562 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
1563 case $host_os in
1564 linux-gnu*) ;;
1565 +linux-uclibc*) ;;
1566 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
1567 esac
1568
1569 @@ -1247,6 +1248,24 @@
1570 dynamic_linker='GNU/Linux ld.so'
1571 ;;
1572
1573 +linux-uclibc*)
1574 + version_type=linux
1575 + need_lib_prefix=no
1576 + need_version=no
1577 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
1578 + soname_spec='${libname}${release}.so$major'
1579 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1580 + shlibpath_var=LD_LIBRARY_PATH
1581 + shlibpath_overrides_runpath=no
1582 + # This implies no fast_install, which is unacceptable.
1583 + # Some rework will be needed to allow for fast_install
1584 + # before this can be enabled.
1585 + # Note: copied from linux-gnu, and may not be appropriate.
1586 + hardcode_into_libs=yes
1587 + # Assume using the uClibc dynamic linker.
1588 + dynamic_linker="uClibc ld.so"
1589 + ;;
1590 +
1591 netbsd*)
1592 need_lib_prefix=no
1593 need_version=no
This page took 0.107381 seconds and 5 git commands to generate.