1 diff -urN gcc-3.3.3-dist/boehm-gc/config.sub gcc-3.3.3/boehm-gc/config.sub
2 --- gcc-3.3.3-dist/boehm-gc/config.sub 2002-02-11 22:37:53.000000000 -0600
3 +++ gcc-3.3.3/boehm-gc/config.sub 2004-08-12 04:47:51.000000000 -0500
5 # Here we must recognize all the valid KERNEL-OS combinations.
6 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
8 - nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
9 + nto-qnx* | linux-gnu* | linux-uclibc* | storm-chaos* | os2-emx* | windows32-*)
11 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
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-dist/boehm-gc/configure gcc-3.3.3/boehm-gc/configure
24 --- gcc-3.3.3-dist/boehm-gc/configure 2004-02-14 14:34:20.000000000 -0600
25 +++ gcc-3.3.3/boehm-gc/configure 2004-08-12 04:47:51.000000000 -0500
26 @@ -1940,6 +1940,11 @@
27 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
31 + lt_cv_deplibs_check_method=pass_all
32 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
36 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
37 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
38 diff -urN gcc-3.3.3-dist/config.sub gcc-3.3.3/config.sub
39 --- gcc-3.3.3-dist/config.sub 2003-01-30 17:25:36.000000000 -0600
40 +++ gcc-3.3.3/config.sub 2004-08-12 04:47:51.000000000 -0500
42 # Here we must recognize all the valid KERNEL-OS combinations.
43 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
45 - nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
46 + nto-qnx* | linux-gnu* | linux-uclibc* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
48 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
51 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
52 | -chorusos* | -chorusrdb* \
53 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
54 - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
55 + | -mingw32* | -linux-gnu* | -linux-uclibc* \
56 + | -uxpv* | -beos* | -mpeix* | -udk* \
57 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
58 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
59 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
60 diff -urN gcc-3.3.3-dist/gcc/config/arm/linux-elf.h gcc-3.3.3/gcc/config/arm/linux-elf.h
61 --- gcc-3.3.3-dist/gcc/config/arm/linux-elf.h 2003-09-16 10:39:23.000000000 -0500
62 +++ gcc-3.3.3/gcc/config/arm/linux-elf.h 2004-08-12 04:47:51.000000000 -0500
64 "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
68 +#define LINK_SPEC "%{h*} %{version:-v} \
70 + %{static:-Bstatic} \
72 + %{symbolic:-Bsymbolic} \
73 + %{rdynamic:-export-dynamic} \
74 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
76 + %{mbig-endian:-EB}" \
77 + SUBTARGET_EXTRA_LINK_SPEC
79 #define LINK_SPEC "%{h*} %{version:-v} \
85 SUBTARGET_EXTRA_LINK_SPEC
88 #define TARGET_OS_CPP_BUILTINS() \
90 diff -urN gcc-3.3.3-dist/gcc/config/cris/linux.h gcc-3.3.3/gcc/config/cris/linux.h
91 --- gcc-3.3.3-dist/gcc/config/cris/linux.h 2003-03-10 21:01:35.000000000 -0600
92 +++ gcc-3.3.3/gcc/config/cris/linux.h 2004-08-12 04:47:51.000000000 -0500
94 #undef CRIS_DEFAULT_CPU_VERSION
95 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
99 +#undef CRIS_SUBTARGET_VERSION
100 +#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
102 +#undef CRIS_LINK_SUBTARGET_SPEC
103 +#define CRIS_LINK_SUBTARGET_SPEC \
105 + -rpath-link include/asm/../..%s\
106 + %{shared} %{static}\
107 + %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
110 + %{rdynamic:-export-dynamic} \
111 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
112 + %{!r:%{O2|O3: --gc-sections}}"
114 +#else /* USE_UCLIBC */
116 #undef CRIS_SUBTARGET_VERSION
117 #define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
120 %{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
121 %{!r:%{O2|O3: --gc-sections}}"
123 +#endif /* USE_UCLIBC */
126 /* Node: Run-time Target */
128 diff -urN gcc-3.3.3-dist/gcc/config/cris/t-linux-uclibc gcc-3.3.3/gcc/config/cris/t-linux-uclibc
129 --- gcc-3.3.3-dist/gcc/config/cris/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
130 +++ gcc-3.3.3/gcc/config/cris/t-linux-uclibc 2004-08-12 04:47:51.000000000 -0500
132 +T_CFLAGS = -DUSE_UCLIBC
133 +TARGET_LIBGCC2_CFLAGS += -fPIC
134 +CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_CFLAGS)
135 diff -urN gcc-3.3.3-dist/gcc/config/i386/linux.h gcc-3.3.3/gcc/config/i386/linux.h
136 --- gcc-3.3.3-dist/gcc/config/i386/linux.h 2003-11-14 00:46:12.000000000 -0600
137 +++ gcc-3.3.3/gcc/config/i386/linux.h 2004-08-12 04:47:51.000000000 -0500
142 +#if defined USE_UCLIBC
143 +#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
147 + %{rdynamic:-export-dynamic} \
148 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
149 + %{static:-static}}}"
151 #define LINK_SPEC "-m elf_i386 %{shared:-shared} \
155 %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
160 /* A C statement (sans semicolon) to output to the stdio stream
161 FILE the assembler definition of uninitialized global DECL named
162 diff -urN gcc-3.3.3-dist/gcc/config/mips/linux.h gcc-3.3.3/gcc/config/mips/linux.h
163 --- gcc-3.3.3-dist/gcc/config/mips/linux.h 2003-12-23 02:58:00.000000000 -0600
164 +++ gcc-3.3.3/gcc/config/mips/linux.h 2004-08-12 04:47:51.000000000 -0500
167 /* Borrowed from sparc/linux.h */
172 + %{shared:-shared} \
176 + %{rdynamic:-export-dynamic} \
177 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
178 + %{static:-static}}}"
184 %{rdynamic:-export-dynamic} \
185 %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
189 #undef SUBTARGET_ASM_SPEC
190 #define SUBTARGET_ASM_SPEC "\
191 diff -urN gcc-3.3.3-dist/gcc/config/sh/linux.h gcc-3.3.3/gcc/config/sh/linux.h
192 --- gcc-3.3.3-dist/gcc/config/sh/linux.h 2003-11-06 17:13:33.000000000 -0600
193 +++ gcc-3.3.3/gcc/config/sh/linux.h 2004-08-12 04:47:51.000000000 -0500
195 #undef SUBTARGET_LINK_EMUL_SUFFIX
196 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
197 #undef SUBTARGET_LINK_SPEC
199 +#define SUBTARGET_LINK_SPEC \
200 + "%{shared:-shared} \
202 + %{rdynamic:-export-dynamic} \
203 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
206 #define SUBTARGET_LINK_SPEC \
209 %{rdynamic:-export-dynamic} \
210 %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
214 /* The GNU C++ standard library requires that these macros be defined. */
215 #undef CPLUSPLUS_CPP_SPEC
216 diff -urN gcc-3.3.3-dist/gcc/config/sh/t-linux-uclibc gcc-3.3.3/gcc/config/sh/t-linux-uclibc
217 --- gcc-3.3.3-dist/gcc/config/sh/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
218 +++ gcc-3.3.3/gcc/config/sh/t-linux-uclibc 2004-08-12 04:47:51.000000000 -0500
220 +T_CFLAGS = -DUSE_UCLIBC
222 +# Don't run fixproto
225 +TARGET_LIBGCC2_CFLAGS = -fpic
226 +LIB1ASMFUNCS_CACHE = _ic_invalidate
230 +MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4
233 +MULTILIB_EXCEPTIONS=
235 +EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o crtbeginS.o crtendS.o
236 diff -urN gcc-3.3.3-dist/gcc/config/sh/t-sh64-uclibc gcc-3.3.3/gcc/config/sh/t-sh64-uclibc
237 --- gcc-3.3.3-dist/gcc/config/sh/t-sh64-uclibc 1969-12-31 18:00:00.000000000 -0600
238 +++ gcc-3.3.3/gcc/config/sh/t-sh64-uclibc 2004-08-12 04:47:51.000000000 -0500
240 +EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o
243 + _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
244 + _shcompact_call_trampoline _shcompact_return_trampoline \
245 + _shcompact_incoming_args _ic_invalidate _nested_trampoline \
246 + _push_pop_shmedia_regs \
247 + _udivdi3 _divdi3 _umoddi3 _moddi3
249 +MULTILIB_OPTIONS = $(MULTILIB_ENDIAN) m5-32media-nofpu/m5-compact/m5-compact-nofpu/m5-64media/m5-64media-nofpu
250 +MULTILIB_DIRNAMES= $(MULTILIB_ENDIAN) nofpu compact nofpu/compact media64 nofpu/media64
252 +MULTILIB_EXCEPTIONS=
253 diff -urN gcc-3.3.3-dist/gcc/config/t-linux-uclibc gcc-3.3.3/gcc/config/t-linux-uclibc
254 --- gcc-3.3.3-dist/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
255 +++ gcc-3.3.3/gcc/config/t-linux-uclibc 2004-08-12 04:47:51.000000000 -0500
257 +T_CFLAGS = -DUSE_UCLIBC
259 +# Don't run fixproto
262 +# Compile crtbeginS.o and crtendS.o with pic.
263 +CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
264 +# Compile libgcc2.a with pic.
265 +TARGET_LIBGCC2_CFLAGS = -fPIC
267 +# Override t-slibgcc-elf-ver to export some libgcc symbols with
268 +# the symbol versions that glibc used.
269 +SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
271 +# Use unwind-dw2-fde-glibc
272 +#LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \
273 +# $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
274 +#LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
276 +# Use unwind-dw2-fde
277 +LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
278 + $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
279 +LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
280 diff -urN gcc-3.3.3-dist/gcc/config.gcc gcc-3.3.3/gcc/config.gcc
281 --- gcc-3.3.3-dist/gcc/config.gcc 2004-01-21 00:06:00.000000000 -0600
282 +++ gcc-3.3.3/gcc/config.gcc 2004-08-12 04:47:51.000000000 -0500
287 +arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
288 + 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"
289 + tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
290 + extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
292 + case x${enable_threads} in
293 + x | xyes | xpthreads | xposix)
294 + thread_file='posix'
298 arm*-*-linux*) # ARM GNU/Linux with ELF
299 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"
300 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
302 tmake_file="cris/t-cris cris/t-elfmulti"
305 +cris-*-linux-uclibc*)
306 + tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
307 + tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux-uclibc"
310 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
311 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
312 @@ -1173,6 +1188,11 @@
316 +i[34567]86-*-linux*uclibc*) # Intel 80386's running GNU/Linux
317 + # with ELF format using uClibc
318 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
319 + tmake_file="t-slibgcc-elf-ver t-linux-uclibc i386/t-crtstuff"
321 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
322 # with ELF format using glibc 2
323 # aka GNU/Linux C library 6
324 @@ -1883,6 +1903,16 @@
325 tm_file="elfos.h ${tm_file} mips/netbsd.h"
326 tmake_file="${tmake_file} mips/t-netbsd"
328 +mips*-*-linux-uclibc*) # Linux MIPS, either endian. uClibc
329 + tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
332 + target_cpu_default="MASK_SOFT_FLOAT"
333 + tm_defines="MIPS_ISA_DEFAULT=32"
336 + tmake_file="t-slibgcc-elf-ver t-linux-uclibc mips/t-linux"
338 mips*-*-linux*) # Linux MIPS, either endian.
339 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
341 @@ -2129,6 +2159,11 @@
342 out_file=rs6000/rs6000.c
343 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
345 +powerpc-*-linux-uclibc*)
346 + tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
347 + out_file=rs6000/rs6000.c
348 + tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux-uclibc rs6000/t-ppccomm"
351 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
352 out_file=rs6000/rs6000.c
353 @@ -2313,10 +2348,18 @@
354 tmake_file="${tmake_file} sh/t-le"
357 - tmake_file="${tmake_file} sh/t-linux"
359 + *-*-linux-uclibc*) tmake_file="${tmake_file} sh/t-linux-uclibc" ;;
360 + *) tmake_file="${tmake_file} sh/t-linux" ;;
362 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
365 + sh64*-*-linux-uclibc*)
366 + tmake_file="${tmake_file} sh/t-sh64-uclibc"
367 + tm_file="${tm_file} sh/sh64.h"
368 + extra_headers="shmedia.h ushmedia.h sshmedia.h"
371 tmake_file="${tmake_file} sh/t-sh64"
372 tm_file="${tm_file} sh/sh64.h"
373 diff -urN gcc-3.3.3-dist/libstdc++-v3/aclocal.m4 gcc-3.3.3/libstdc++-v3/aclocal.m4
374 --- gcc-3.3.3-dist/libstdc++-v3/aclocal.m4 2004-01-12 10:18:44.000000000 -0600
375 +++ gcc-3.3.3/libstdc++-v3/aclocal.m4 2004-08-12 04:47:51.000000000 -0500
376 @@ -1216,6 +1216,9 @@
377 dnl Default to "generic"
378 if test x$enable_clocale_flag = xno; then
379 case x${target_os} in
381 + enable_clocale_flag=uclibc
384 AC_EGREP_CPP([_GLIBCPP_ok], [
385 #include <features.h>
386 @@ -1339,6 +1342,41 @@
387 CTIME_CC=config/locale/generic/time_members.cc
388 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
391 + AC_MSG_RESULT(uclibc)
393 + # Declare intention to use gettext, and add support for specific
395 + # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
396 + ALL_LINGUAS="de fr"
398 + # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
399 + AC_CHECK_PROG(check_msgfmt, msgfmt, yes, no)
400 + if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
403 + # Export the build objects.
404 + for ling in $ALL_LINGUAS; do \
405 + glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
406 + glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
408 + AC_SUBST(glibcpp_MOFILES)
409 + AC_SUBST(glibcpp_POFILES)
411 + CLOCALE_H=config/locale/uclibc/c_locale.h
412 + CLOCALE_CC=config/locale/uclibc/c_locale.cc
413 + CCODECVT_H=config/locale/uclibc/codecvt_specializations.h
414 + CCODECVT_CC=config/locale/uclibc/codecvt_members.cc
415 + CCOLLATE_CC=config/locale/uclibc/collate_members.cc
416 + CCTYPE_CC=config/locale/uclibc/ctype_members.cc
417 + CMESSAGES_H=config/locale/uclibc/messages_members.h
418 + CMESSAGES_CC=config/locale/uclibc/messages_members.cc
419 + CMONEY_CC=config/locale/uclibc/monetary_members.cc
420 + CNUMERIC_CC=config/locale/uclibc/numeric_members.cc
421 + CTIME_H=config/locale/uclibc/time_members.h
422 + CTIME_CC=config/locale/uclibc/time_members.cc
423 + CLOCALE_INTERNAL_H=config/locale/uclibc/c++locale_internal.h
426 echo "$enable_clocale is an unknown locale package" 1>&2
428 diff -urN gcc-3.3.3-dist/libstdc++-v3/configure gcc-3.3.3/libstdc++-v3/configure
429 --- gcc-3.3.3-dist/libstdc++-v3/configure 2004-01-12 10:18:45.000000000 -0600
430 +++ gcc-3.3.3/libstdc++-v3/configure 2004-08-12 04:49:13.000000000 -0500
431 @@ -2010,6 +2010,11 @@
432 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
436 + lt_cv_deplibs_check_method=pass_all
437 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
441 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
442 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
443 @@ -2996,6 +3001,9 @@
445 if test x$enable_clocale_flag = xno; then
446 case x${target_os} in
448 + enable_clocale_flag=uclibc
451 cat > conftest.$ac_ext <<EOF
452 #line 3002 "configure"
453 @@ -3182,6 +3190,70 @@
454 CTIME_CC=config/locale/generic/time_members.cc
455 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
458 + echo "$ac_t""uclibc" 1>&6
460 + # Declare intention to use gettext, and add support for specific
462 + # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
463 + ALL_LINGUAS="de fr"
465 + # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
466 + # Extract the first word of "msgfmt", so it can be a program name with args.
467 +set dummy msgfmt; ac_word=$2
468 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
469 +echo "configure:3117: checking for $ac_word" >&5
470 +if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
471 + echo $ac_n "(cached) $ac_c" 1>&6
473 + if test -n "$check_msgfmt"; then
474 + ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
476 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
478 + for ac_dir in $ac_dummy; do
479 + test -z "$ac_dir" && ac_dir=.
480 + if test -f $ac_dir/$ac_word; then
481 + ac_cv_prog_check_msgfmt="yes"
486 + test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
489 +check_msgfmt="$ac_cv_prog_check_msgfmt"
490 +if test -n "$check_msgfmt"; then
491 + echo "$ac_t""$check_msgfmt" 1>&6
493 + echo "$ac_t""no" 1>&6
496 + if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
499 + # Export the build objects.
500 + for ling in $ALL_LINGUAS; do \
501 + glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
502 + glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
507 + CLOCALE_H=config/locale/uclibc/c_locale.h
508 + CLOCALE_CC=config/locale/uclibc/c_locale.cc
509 + CCODECVT_H=config/locale/uclibc/codecvt_specializations.h
510 + CCODECVT_CC=config/locale/uclibc/codecvt_members.cc
511 + CCOLLATE_CC=config/locale/uclibc/collate_members.cc
512 + CCTYPE_CC=config/locale/uclibc/ctype_members.cc
513 + CMESSAGES_H=config/locale/uclibc/messages_members.h
514 + CMESSAGES_CC=config/locale/uclibc/messages_members.cc
515 + CMONEY_CC=config/locale/uclibc/monetary_members.cc
516 + CNUMERIC_CC=config/locale/uclibc/numeric_members.cc
517 + CTIME_H=config/locale/uclibc/time_members.h
518 + CTIME_CC=config/locale/uclibc/time_members.cc
519 + CLOCALE_INTERNAL_H=config/locale/uclibc/c++locale_internal.h
522 echo "$enable_clocale is an unknown locale package" 1>&2
524 @@ -4212,6 +4284,968 @@
525 # GLIBCPP_CHECK_MATH_SUPPORT
529 + os_include_dir="os/uclibc"
530 + for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
531 + machine/endian.h machine/param.h sys/machine.h sys/types.h \
532 + fp.h locale.h float.h inttypes.h
534 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
535 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
536 +echo "configure:4224: checking for $ac_hdr" >&5
537 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
538 + echo $ac_n "(cached) $ac_c" 1>&6
540 + cat > conftest.$ac_ext <<EOF
541 +#line 4229 "configure"
542 +#include "confdefs.h"
545 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
546 +{ (eval echo configure:4234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
547 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
548 +if test -z "$ac_err"; then
550 + eval "ac_cv_header_$ac_safe=yes"
553 + echo "configure: failed program was:" >&5
554 + cat conftest.$ac_ext >&5
556 + eval "ac_cv_header_$ac_safe=no"
560 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
561 + echo "$ac_t""yes" 1>&6
562 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
563 + cat >> confdefs.h <<EOF
564 +#define $ac_tr_hdr 1
568 + echo "$ac_t""no" 1>&6
572 + SECTION_FLAGS='-ffunction-sections -fdata-sections'
575 + # If we're not using GNU ld, then there's no point in even trying these
576 + # tests. Check for that first. We should have already tested for gld
577 + # by now (in libtool), but require it now just to be safe...
578 + test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
579 + test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
582 + # The name set by libtool depends on the version of libtool. Shame on us
583 + # for depending on an impl detail, but c'est la vie. Older versions used
584 + # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
585 + # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
586 + # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
587 + # set (hence we're using an older libtool), then set it.
588 + if test x${with_gnu_ld+set} != xset; then
589 + if test x${ac_cv_prog_gnu_ld+set} != xset; then
590 + # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
593 + with_gnu_ld=$ac_cv_prog_gnu_ld
597 + # Start by getting the version number. I think the libtool test already
598 + # does some of this, but throws away the result.
600 + ldver=`$LD --version 2>/dev/null | head -1 | \
601 + sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
603 + glibcpp_gnu_ld_version=`echo $ldver | \
604 + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
606 + # Set --gc-sections.
607 + if test "$with_gnu_ld" = "notbroken"; then
608 + # GNU ld it is! Joy and bunny rabbits!
610 + # All these tests are for C++; save the language and the compiler flags.
611 + # Need to do this so that g++ won't try to link in libstdc++
612 + ac_test_CFLAGS="${CFLAGS+set}"
613 + ac_save_CFLAGS="$CFLAGS"
614 + CFLAGS='-x c++ -Wl,--gc-sections'
616 + # Check for -Wl,--gc-sections
617 + # XXX This test is broken at the moment, as symbols required for
618 + # linking are now in libsupc++ (not built yet.....). In addition,
619 + # this test has cored on solaris in the past. In addition,
620 + # --gc-sections doesn't really work at the moment (keeps on discarding
621 + # used sections, first .eh_frame and now some of the glibc sections for
622 + # iconv). Bzzzzt. Thanks for playing, maybe next time.
623 + echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
624 +echo "configure:4312: checking for ld that supports -Wl,--gc-sections" >&5
625 + if test "$cross_compiling" = yes; then
626 + ac_sectionLDflags=yes
628 + cat > conftest.$ac_ext <<EOF
629 +#line 4317 "configure"
630 +#include "confdefs.h"
640 +if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
642 + ac_sectionLDflags=yes
644 + echo "configure: failed program was:" >&5
645 + cat conftest.$ac_ext >&5
647 + ac_sectionLDflags=no
652 + if test "$ac_test_CFLAGS" = set; then
653 + CFLAGS="$ac_save_CFLAGS"
655 + # this is the suspicious part
658 + if test "$ac_sectionLDflags" = "yes"; then
659 + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
661 + echo "$ac_t""$ac_sectionLDflags" 1>&6
664 + # Set linker optimization flags.
665 + if test x"$with_gnu_ld" = x"yes"; then
666 + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
673 + echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
674 +echo "configure:4362: checking for main in -lm" >&5
675 +ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
676 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
677 + echo $ac_n "(cached) $ac_c" 1>&6
679 + ac_save_LIBS="$LIBS"
681 +cat > conftest.$ac_ext <<EOF
682 +#line 4370 "configure"
683 +#include "confdefs.h"
689 +if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
691 + eval "ac_cv_lib_$ac_lib_var=yes"
693 + echo "configure: failed program was:" >&5
694 + cat conftest.$ac_ext >&5
696 + eval "ac_cv_lib_$ac_lib_var=no"
699 +LIBS="$ac_save_LIBS"
702 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
703 + echo "$ac_t""yes" 1>&6
704 + ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
705 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
706 + cat >> confdefs.h <<EOF
707 +#define $ac_tr_lib 1
713 + echo "$ac_t""no" 1>&6
716 + for ac_func in nan copysignf
718 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
719 +echo "configure:4407: checking for $ac_func" >&5
720 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
721 + echo $ac_n "(cached) $ac_c" 1>&6
723 + cat > conftest.$ac_ext <<EOF
724 +#line 4412 "configure"
725 +#include "confdefs.h"
726 +/* System header to define __stub macros and hopefully few prototypes,
727 + which can conflict with char $ac_func(); below. */
729 +/* Override any gcc2 internal prototype to avoid an error. */
730 +/* We use char because int might match the return type of a gcc2
731 + builtin and then its argument prototype would still apply. */
736 +/* The GNU C library defines this for functions which it implements
737 + to always fail with ENOSYS. Some functions are actually named
738 + something starting with __ and the normal name is an alias. */
739 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
747 +if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
749 + eval "ac_cv_func_$ac_func=yes"
751 + echo "configure: failed program was:" >&5
752 + cat conftest.$ac_ext >&5
754 + eval "ac_cv_func_$ac_func=no"
759 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
760 + echo "$ac_t""yes" 1>&6
761 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
762 + cat >> confdefs.h <<EOF
763 +#define $ac_tr_func 1
767 + echo "$ac_t""no" 1>&6
768 +LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
773 + for ac_func in __signbit
775 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
776 +echo "configure:4464: checking for $ac_func" >&5
777 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
778 + echo $ac_n "(cached) $ac_c" 1>&6
780 + cat > conftest.$ac_ext <<EOF
781 +#line 4469 "configure"
782 +#include "confdefs.h"
783 +/* System header to define __stub macros and hopefully few prototypes,
784 + which can conflict with char $ac_func(); below. */
786 +/* Override any gcc2 internal prototype to avoid an error. */
787 +/* We use char because int might match the return type of a gcc2
788 + builtin and then its argument prototype would still apply. */
793 +/* The GNU C library defines this for functions which it implements
794 + to always fail with ENOSYS. Some functions are actually named
795 + something starting with __ and the normal name is an alias. */
796 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
804 +if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
806 + eval "ac_cv_func_$ac_func=yes"
808 + echo "configure: failed program was:" >&5
809 + cat conftest.$ac_ext >&5
811 + eval "ac_cv_func_$ac_func=no"
816 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
817 + echo "$ac_t""yes" 1>&6
818 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
819 + cat >> confdefs.h <<EOF
820 +#define $ac_tr_func 1
824 + echo "$ac_t""no" 1>&6
825 +LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
829 + for ac_func in __signbitf
831 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
832 +echo "configure:4520: checking for $ac_func" >&5
833 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
834 + echo $ac_n "(cached) $ac_c" 1>&6
836 + cat > conftest.$ac_ext <<EOF
837 +#line 4525 "configure"
838 +#include "confdefs.h"
839 +/* System header to define __stub macros and hopefully few prototypes,
840 + which can conflict with char $ac_func(); below. */
842 +/* Override any gcc2 internal prototype to avoid an error. */
843 +/* We use char because int might match the return type of a gcc2
844 + builtin and then its argument prototype would still apply. */
849 +/* The GNU C library defines this for functions which it implements
850 + to always fail with ENOSYS. Some functions are actually named
851 + something starting with __ and the normal name is an alias. */
852 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
860 +if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
862 + eval "ac_cv_func_$ac_func=yes"
864 + echo "configure: failed program was:" >&5
865 + cat conftest.$ac_ext >&5
867 + eval "ac_cv_func_$ac_func=no"
872 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
873 + echo "$ac_t""yes" 1>&6
874 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
875 + cat >> confdefs.h <<EOF
876 +#define $ac_tr_func 1
880 + echo "$ac_t""no" 1>&6
881 +LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
886 + if test x$ac_cv_func_copysignl = x"yes"; then
887 + for ac_func in __signbitl
889 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
890 +echo "configure:4578: checking for $ac_func" >&5
891 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
892 + echo $ac_n "(cached) $ac_c" 1>&6
894 + cat > conftest.$ac_ext <<EOF
895 +#line 4583 "configure"
896 +#include "confdefs.h"
897 +/* System header to define __stub macros and hopefully few prototypes,
898 + which can conflict with char $ac_func(); below. */
900 +/* Override any gcc2 internal prototype to avoid an error. */
901 +/* We use char because int might match the return type of a gcc2
902 + builtin and then its argument prototype would still apply. */
907 +/* The GNU C library defines this for functions which it implements
908 + to always fail with ENOSYS. Some functions are actually named
909 + something starting with __ and the normal name is an alias. */
910 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
918 +if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
920 + eval "ac_cv_func_$ac_func=yes"
922 + echo "configure: failed program was:" >&5
923 + cat conftest.$ac_ext >&5
925 + eval "ac_cv_func_$ac_func=no"
930 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
931 + echo "$ac_t""yes" 1>&6
932 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
933 + cat >> confdefs.h <<EOF
934 +#define $ac_tr_func 1
938 + echo "$ac_t""no" 1>&6
939 +LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
945 + if test -n "$LIBMATHOBJS"; then
951 +if test "$need_libmath" = yes; then
952 + GLIBCPP_BUILD_LIBMATH_TRUE=
953 + GLIBCPP_BUILD_LIBMATH_FALSE='#'
955 + GLIBCPP_BUILD_LIBMATH_TRUE='#'
956 + GLIBCPP_BUILD_LIBMATH_FALSE=
962 + echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
963 +echo "configure:4651: checking for mbstate_t" >&5
964 + cat > conftest.$ac_ext <<EOF
965 +#line 4653 "configure"
966 +#include "confdefs.h"
969 +mbstate_t teststate;
972 +if { (eval echo configure:4660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
976 + echo "configure: failed program was:" >&5
977 + cat conftest.$ac_ext >&5
982 + echo "$ac_t""$have_mbstate_t" 1>&6
983 + if test x"$have_mbstate_t" = xyes; then
984 + cat >> confdefs.h <<\EOF
985 +#define HAVE_MBSTATE_T 1
990 + for ac_hdr in wchar.h
992 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
993 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
994 +echo "configure:4682: checking for $ac_hdr" >&5
995 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
996 + echo $ac_n "(cached) $ac_c" 1>&6
998 + cat > conftest.$ac_ext <<EOF
999 +#line 4687 "configure"
1000 +#include "confdefs.h"
1003 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1004 +{ (eval echo configure:4692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1005 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1006 +if test -z "$ac_err"; then
1008 + eval "ac_cv_header_$ac_safe=yes"
1010 + echo "$ac_err" >&5
1011 + echo "configure: failed program was:" >&5
1012 + cat conftest.$ac_ext >&5
1014 + eval "ac_cv_header_$ac_safe=no"
1018 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1019 + echo "$ac_t""yes" 1>&6
1020 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1021 + cat >> confdefs.h <<EOF
1022 +#define $ac_tr_hdr 1
1024 + ac_has_wchar_h=yes
1026 + echo "$ac_t""no" 1>&6
1031 + for ac_hdr in wctype.h
1033 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1034 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1035 +echo "configure:4723: checking for $ac_hdr" >&5
1036 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1037 + echo $ac_n "(cached) $ac_c" 1>&6
1039 + cat > conftest.$ac_ext <<EOF
1040 +#line 4728 "configure"
1041 +#include "confdefs.h"
1044 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1045 +{ (eval echo configure:4733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1046 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1047 +if test -z "$ac_err"; then
1049 + eval "ac_cv_header_$ac_safe=yes"
1051 + echo "$ac_err" >&5
1052 + echo "configure: failed program was:" >&5
1053 + cat conftest.$ac_ext >&5
1055 + eval "ac_cv_header_$ac_safe=no"
1059 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1060 + echo "$ac_t""yes" 1>&6
1061 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1062 + cat >> confdefs.h <<EOF
1063 +#define $ac_tr_hdr 1
1065 + ac_has_wctype_h=yes
1067 + echo "$ac_t""no" 1>&6
1073 + if test x"$ac_has_wchar_h" = xyes &&
1074 + test x"$ac_has_wctype_h" = xyes &&
1075 + test x"$enable_c_mbchar" != xno; then
1077 + echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
1078 +echo "configure:4766: checking for WCHAR_MIN and WCHAR_MAX" >&5
1079 + cat > conftest.$ac_ext <<EOF
1080 +#line 4768 "configure"
1081 +#include "confdefs.h"
1084 +int i = WCHAR_MIN; int j = WCHAR_MAX;
1087 +if { (eval echo configure:4775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1089 + has_wchar_minmax=yes
1091 + echo "configure: failed program was:" >&5
1092 + cat conftest.$ac_ext >&5
1094 + has_wchar_minmax=no
1097 + echo "$ac_t""$has_wchar_minmax" 1>&6
1099 + echo $ac_n "checking for WEOF""... $ac_c" 1>&6
1100 +echo "configure:4788: checking for WEOF" >&5
1101 + cat > conftest.$ac_ext <<EOF
1102 +#line 4790 "configure"
1103 +#include "confdefs.h"
1105 + #include <wchar.h>
1106 + #include <stddef.h>
1111 +if { (eval echo configure:4799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1115 + echo "configure: failed program was:" >&5
1116 + cat conftest.$ac_ext >&5
1121 + echo "$ac_t""$has_weof" 1>&6
1124 + for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
1126 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1127 +echo "configure:4815: checking for $ac_func" >&5
1128 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1129 + echo $ac_n "(cached) $ac_c" 1>&6
1131 + cat > conftest.$ac_ext <<EOF
1132 +#line 4820 "configure"
1133 +#include "confdefs.h"
1134 +/* System header to define __stub macros and hopefully few prototypes,
1135 + which can conflict with char $ac_func(); below. */
1136 +#include <assert.h>
1137 +/* Override any gcc2 internal prototype to avoid an error. */
1138 +/* We use char because int might match the return type of a gcc2
1139 + builtin and then its argument prototype would still apply. */
1144 +/* The GNU C library defines this for functions which it implements
1145 + to always fail with ENOSYS. Some functions are actually named
1146 + something starting with __ and the normal name is an alias. */
1147 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1155 +if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1157 + eval "ac_cv_func_$ac_func=yes"
1159 + echo "configure: failed program was:" >&5
1160 + cat conftest.$ac_ext >&5
1162 + eval "ac_cv_func_$ac_func=no"
1167 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1168 + echo "$ac_t""yes" 1>&6
1169 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1170 + cat >> confdefs.h <<EOF
1171 +#define $ac_tr_func 1
1175 + echo "$ac_t""no" 1>&6
1182 + for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
1183 + fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
1184 + vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
1185 + mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
1186 + wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
1187 + wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
1189 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1190 +echo "configure:4878: checking for $ac_func" >&5
1191 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1192 + echo $ac_n "(cached) $ac_c" 1>&6
1194 + cat > conftest.$ac_ext <<EOF
1195 +#line 4883 "configure"
1196 +#include "confdefs.h"
1197 +/* System header to define __stub macros and hopefully few prototypes,
1198 + which can conflict with char $ac_func(); below. */
1199 +#include <assert.h>
1200 +/* Override any gcc2 internal prototype to avoid an error. */
1201 +/* We use char because int might match the return type of a gcc2
1202 + builtin and then its argument prototype would still apply. */
1207 +/* The GNU C library defines this for functions which it implements
1208 + to always fail with ENOSYS. Some functions are actually named
1209 + something starting with __ and the normal name is an alias. */
1210 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1218 +if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1220 + eval "ac_cv_func_$ac_func=yes"
1222 + echo "configure: failed program was:" >&5
1223 + cat conftest.$ac_ext >&5
1225 + eval "ac_cv_func_$ac_func=no"
1230 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1231 + echo "$ac_t""yes" 1>&6
1232 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1233 + cat >> confdefs.h <<EOF
1234 +#define $ac_tr_func 1
1238 + echo "$ac_t""no" 1>&6
1245 + echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
1246 +echo "configure:4934: checking for ISO C99 wchar_t support" >&5
1247 + if test x"$has_weof" = xyes &&
1248 + test x"$has_wchar_minmax" = xyes &&
1249 + test x"$ac_wfuncs" = xyes; then
1250 + ac_isoC99_wchar_t=yes
1252 + ac_isoC99_wchar_t=no
1254 + echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
1256 + ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
1257 +echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
1258 +echo "configure:4946: checking for iconv.h" >&5
1259 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1260 + echo $ac_n "(cached) $ac_c" 1>&6
1262 + cat > conftest.$ac_ext <<EOF
1263 +#line 4951 "configure"
1264 +#include "confdefs.h"
1267 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1268 +{ (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1269 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1270 +if test -z "$ac_err"; then
1272 + eval "ac_cv_header_$ac_safe=yes"
1274 + echo "$ac_err" >&5
1275 + echo "configure: failed program was:" >&5
1276 + cat conftest.$ac_ext >&5
1278 + eval "ac_cv_header_$ac_safe=no"
1282 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1283 + echo "$ac_t""yes" 1>&6
1284 + ac_has_iconv_h=yes
1286 + echo "$ac_t""no" 1>&6
1290 + ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
1291 +echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
1292 +echo "configure:4980: checking for langinfo.h" >&5
1293 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1294 + echo $ac_n "(cached) $ac_c" 1>&6
1296 + cat > conftest.$ac_ext <<EOF
1297 +#line 4985 "configure"
1298 +#include "confdefs.h"
1299 +#include <langinfo.h>
1301 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1302 +{ (eval echo configure:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1303 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1304 +if test -z "$ac_err"; then
1306 + eval "ac_cv_header_$ac_safe=yes"
1308 + echo "$ac_err" >&5
1309 + echo "configure: failed program was:" >&5
1310 + cat conftest.$ac_ext >&5
1312 + eval "ac_cv_header_$ac_safe=no"
1316 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1317 + echo "$ac_t""yes" 1>&6
1318 + ac_has_langinfo_h=yes
1320 + echo "$ac_t""no" 1>&6
1321 +ac_has_langinfo_h=no
1325 + echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
1326 +echo "configure:5014: checking for iconv in -liconv" >&5
1327 +ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
1328 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1329 + echo $ac_n "(cached) $ac_c" 1>&6
1331 + ac_save_LIBS="$LIBS"
1332 +LIBS="-liconv $LIBS"
1333 +cat > conftest.$ac_ext <<EOF
1334 +#line 5022 "configure"
1335 +#include "confdefs.h"
1336 +/* Override any gcc2 internal prototype to avoid an error. */
1337 +/* We use char because int might match the return type of a gcc2
1338 + builtin and then its argument prototype would still apply. */
1345 +if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1347 + eval "ac_cv_lib_$ac_lib_var=yes"
1349 + echo "configure: failed program was:" >&5
1350 + cat conftest.$ac_ext >&5
1352 + eval "ac_cv_lib_$ac_lib_var=no"
1355 +LIBS="$ac_save_LIBS"
1358 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1359 + echo "$ac_t""yes" 1>&6
1360 + libiconv="-liconv"
1362 + echo "$ac_t""no" 1>&6
1365 + ac_save_LIBS="$LIBS"
1366 + LIBS="$LIBS $libiconv"
1368 + for ac_func in iconv_open iconv_close iconv nl_langinfo
1370 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1371 +echo "configure:5059: checking for $ac_func" >&5
1372 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1373 + echo $ac_n "(cached) $ac_c" 1>&6
1375 + cat > conftest.$ac_ext <<EOF
1376 +#line 5064 "configure"
1377 +#include "confdefs.h"
1378 +/* System header to define __stub macros and hopefully few prototypes,
1379 + which can conflict with char $ac_func(); below. */
1380 +#include <assert.h>
1381 +/* Override any gcc2 internal prototype to avoid an error. */
1382 +/* We use char because int might match the return type of a gcc2
1383 + builtin and then its argument prototype would still apply. */
1388 +/* The GNU C library defines this for functions which it implements
1389 + to always fail with ENOSYS. Some functions are actually named
1390 + something starting with __ and the normal name is an alias. */
1391 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1399 +if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1401 + eval "ac_cv_func_$ac_func=yes"
1403 + echo "configure: failed program was:" >&5
1404 + cat conftest.$ac_ext >&5
1406 + eval "ac_cv_func_$ac_func=no"
1411 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1412 + echo "$ac_t""yes" 1>&6
1413 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1414 + cat >> confdefs.h <<EOF
1415 +#define $ac_tr_func 1
1420 + echo "$ac_t""no" 1>&6
1426 + LIBS="$ac_save_LIBS"
1428 + echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
1429 +echo "configure:5117: checking for XPG2 wchar_t support" >&5
1430 + if test x"$ac_has_iconv_h" = xyes &&
1431 + test x"$ac_has_langinfo_h" = xyes &&
1432 + test x"$ac_XPG2funcs" = xyes; then
1433 + ac_XPG2_wchar_t=yes
1435 + ac_XPG2_wchar_t=no
1437 + echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
1439 + if test x"$ac_isoC99_wchar_t" = xyes &&
1440 + test x"$ac_XPG2_wchar_t" = xyes; then
1441 + cat >> confdefs.h <<\EOF
1442 +#define _GLIBCPP_USE_WCHAR_T 1
1445 + enable_wchar_t=yes
1448 + echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
1449 +echo "configure:5137: checking for enabled wchar_t specializations" >&5
1450 + echo "$ac_t""$enable_wchar_t" 1>&6
1453 +if test "$enable_wchar_t" = yes; then
1454 + GLIBCPP_TEST_WCHAR_T_TRUE=
1455 + GLIBCPP_TEST_WCHAR_T_FALSE='#'
1457 + GLIBCPP_TEST_WCHAR_T_TRUE='#'
1458 + GLIBCPP_TEST_WCHAR_T_FALSE=
1462 + cat >> confdefs.h <<\EOF
1463 +#define HAVE_COPYSIGN 1
1466 + cat >> confdefs.h <<\EOF
1467 +#define HAVE_FINITE 1
1470 + cat >> confdefs.h <<\EOF
1471 +#define HAVE_FINITEF 1
1474 + cat >> confdefs.h <<\EOF
1475 +#define HAVE_ISINF 1
1478 + cat >> confdefs.h <<\EOF
1479 +#define HAVE_ISINFF 1
1482 + cat >> confdefs.h <<\EOF
1483 +#define HAVE_ISNAN 1
1486 + cat >> confdefs.h <<\EOF
1487 +#define HAVE_ISNANF 1
1491 os_include_dir="os/gnu-linux"
1492 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
1493 diff -urN gcc-3.3.3-dist/libstdc++-v3/configure.in gcc-3.3.3/libstdc++-v3/configure.in
1494 --- gcc-3.3.3-dist/libstdc++-v3/configure.in 2004-01-12 10:19:22.000000000 -0600
1495 +++ gcc-3.3.3/libstdc++-v3/configure.in 2004-08-12 04:47:51.000000000 -0500
1496 @@ -117,6 +117,36 @@
1497 # GLIBCPP_CHECK_MATH_SUPPORT
1501 + os_include_dir="os/uclibc"
1502 + AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
1503 + machine/endian.h machine/param.h sys/machine.h sys/types.h \
1504 + fp.h locale.h float.h inttypes.h])
1505 + SECTION_FLAGS='-ffunction-sections -fdata-sections'
1506 + AC_SUBST(SECTION_FLAGS)
1507 + GLIBCPP_CHECK_LINKER_FEATURES
1508 + GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
1509 + GLIBCPP_CHECK_WCHAR_T_SUPPORT
1511 + AC_DEFINE(HAVE_COPYSIGN)
1512 + #AC_DEFINE(HAVE_COPYSIGNF)
1513 + AC_DEFINE(HAVE_FINITE)
1514 + AC_DEFINE(HAVE_FINITEF)
1515 + #AC_DEFINE(HAVE_FREXPF)
1516 + #AC_DEFINE(HAVE_HYPOTF)
1517 + AC_DEFINE(HAVE_ISINF)
1518 + AC_DEFINE(HAVE_ISINFF)
1519 + AC_DEFINE(HAVE_ISNAN)
1520 + AC_DEFINE(HAVE_ISNANF)
1521 + #AC_DEFINE(HAVE_SINCOS)
1522 + #AC_DEFINE(HAVE_SINCOSF)
1523 + #if test x"long_double_math_on_this_cpu" = x"yes"; then
1524 + #AC_DEFINE(HAVE_FINITEL)
1525 + #AC_DEFINE(HAVE_HYPOTL)
1526 + #AC_DEFINE(HAVE_ISINFL)
1527 + #AC_DEFINE(HAVE_ISNANL)
1531 os_include_dir="os/gnu-linux"
1532 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
1533 diff -urN gcc-3.3.3-dist/libstdc++-v3/configure.target gcc-3.3.3/libstdc++-v3/configure.target
1534 --- gcc-3.3.3-dist/libstdc++-v3/configure.target 2003-10-01 14:07:07.000000000 -0500
1535 +++ gcc-3.3.3/libstdc++-v3/configure.target 2004-08-12 04:47:51.000000000 -0500
1538 os_include_dir="os/bsd/freebsd"
1541 + os_include_dir="os/uclibc"
1544 os_include_dir="os/gnu-linux"
1546 diff -urN gcc-3.3.3-dist/libstdc++-v3/include/c_std/std_cstdlib.h gcc-3.3.3/libstdc++-v3/include/c_std/std_cstdlib.h
1547 --- gcc-3.3.3-dist/libstdc++-v3/include/c_std/std_cstdlib.h 2003-04-18 05:08:05.000000000 -0500
1548 +++ gcc-3.3.3/libstdc++-v3/include/c_std/std_cstdlib.h 2004-08-12 04:47:51.000000000 -0500
1549 @@ -101,9 +101,11 @@
1553 +#if _GLIBCPP_USE_WCHAR_T
1561 @@ -112,8 +114,10 @@
1565 +#if _GLIBCPP_USE_WCHAR_T
1571 abs(long __i) { return labs(__i); }
1572 diff -urN gcc-3.3.3-dist/libstdc++-v3/include/c_std/std_cwchar.h gcc-3.3.3/libstdc++-v3/include/c_std/std_cwchar.h
1573 --- gcc-3.3.3-dist/libstdc++-v3/include/c_std/std_cwchar.h 2003-04-18 05:08:05.000000000 -0500
1574 +++ gcc-3.3.3/libstdc++-v3/include/c_std/std_cwchar.h 2004-08-12 04:47:51.000000000 -0500
1579 +#ifdef HAVE_WCSFTIME
1585 diff -urN gcc-3.3.3-dist/libtool.m4 gcc-3.3.3/libtool.m4
1586 --- gcc-3.3.3-dist/libtool.m4 2003-09-09 03:04:17.000000000 -0500
1587 +++ gcc-3.3.3/libtool.m4 2004-08-12 04:47:51.000000000 -0500
1588 @@ -687,6 +687,11 @@
1589 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1593 + lt_cv_deplibs_check_method=pass_all
1594 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
1598 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1599 [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
1600 diff -urN gcc-3.3.3-dist/ltconfig gcc-3.3.3/ltconfig
1601 --- gcc-3.3.3-dist/ltconfig 2003-02-19 20:10:02.000000000 -0600
1602 +++ gcc-3.3.3/ltconfig 2004-08-12 04:47:51.000000000 -0500
1604 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
1608 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
1611 @@ -1247,6 +1248,24 @@
1612 dynamic_linker='GNU/Linux ld.so'
1616 + version_type=linux
1617 + need_lib_prefix=no
1619 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
1620 + soname_spec='${libname}${release}.so$major'
1621 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1622 + shlibpath_var=LD_LIBRARY_PATH
1623 + shlibpath_overrides_runpath=no
1624 + # This implies no fast_install, which is unacceptable.
1625 + # Some rework will be needed to allow for fast_install
1626 + # before this can be enabled.
1627 + # Note: copied from linux-gnu, and may not be appropriate.
1628 + hardcode_into_libs=yes
1629 + # Assume using the uClibc dynamic linker.
1630 + dynamic_linker="uClibc ld.so"