1405 lines
44 KiB
Diff
1405 lines
44 KiB
Diff
diff -uNr gcc-3.2.3.org/boehm-gc/config.sub gcc-3.2.3/boehm-gc/config.sub
|
|
--- gcc-3.2.3.org/boehm-gc/config.sub 2002-02-12 05:37:53.000000000 +0100
|
|
+++ gcc-3.2.3/boehm-gc/config.sub 2005-02-16 23:24:34.744310776 +0100
|
|
@@ -118,7 +118,7 @@
|
|
# Here we must recognize all the valid KERNEL-OS combinations.
|
|
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
|
case $maybe_os in
|
|
- nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
|
|
+ nto-qnx* | linux-gnu* | linux-uclibc* | storm-chaos* | os2-emx* | windows32-*)
|
|
os=-$maybe_os
|
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
|
;;
|
|
@@ -1089,7 +1089,7 @@
|
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
|
| -chorusos* | -chorusrdb* \
|
|
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
|
- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
|
|
+ | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
|
|
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
|
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
|
diff -uNr gcc-3.2.3.org/boehm-gc/configure gcc-3.2.3/boehm-gc/configure
|
|
--- gcc-3.2.3.org/boehm-gc/configure 2003-04-22 08:56:18.000000000 +0200
|
|
+++ gcc-3.2.3/boehm-gc/configure 2005-02-16 23:25:33.047447352 +0100
|
|
@@ -1931,6 +1931,11 @@
|
|
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|
;;
|
|
|
|
+linux-uclibc*)
|
|
+ lt_cv_deplibs_check_method=pass_all
|
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
|
+ ;;
|
|
+
|
|
netbsd*)
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|
diff -uNr gcc-3.2.3.org/config.sub gcc-3.2.3/config.sub
|
|
--- gcc-3.2.3.org/config.sub 2003-01-30 23:32:36.000000000 +0100
|
|
+++ gcc-3.2.3/config.sub 2005-02-16 23:26:36.015874696 +0100
|
|
@@ -118,7 +118,7 @@
|
|
# Here we must recognize all the valid KERNEL-OS combinations.
|
|
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
|
case $maybe_os in
|
|
- nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
|
|
+ nto-qnx* | linux-gnu* | linux-uclibc* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
|
|
os=-$maybe_os
|
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
|
;;
|
|
@@ -1112,7 +1112,7 @@
|
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
|
| -chorusos* | -chorusrdb* \
|
|
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
|
- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
|
|
+ | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
|
|
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
|
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
|
diff -uNr gcc-3.2.3.org/gcc/config/mips/linux.h gcc-3.2.3/gcc/config/mips/linux.h
|
|
--- gcc-3.2.3.org/gcc/config/mips/linux.h 2002-04-15 22:27:33.000000000 +0200
|
|
+++ gcc-3.2.3/gcc/config/mips/linux.h 2005-02-16 23:29:05.088212256 +0100
|
|
@@ -204,6 +204,17 @@
|
|
|
|
/* Borrowed from sparc/linux.h */
|
|
#undef LINK_SPEC
|
|
+#ifdef USE_UCLIBC
|
|
+#define LINK_SPEC \
|
|
+ "%(endian_spec) \
|
|
+ %{shared:-shared} \
|
|
+ %{!shared: \
|
|
+ %{!ibcs: \
|
|
+ %{!static: \
|
|
+ %{rdynamic:-export-dynamic} \
|
|
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
|
+ %{static:-static}}}"
|
|
+#else
|
|
#define LINK_SPEC \
|
|
"%(endian_spec) \
|
|
%{shared:-shared} \
|
|
@@ -213,7 +224,7 @@
|
|
%{rdynamic:-export-dynamic} \
|
|
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
|
%{static:-static}}}"
|
|
-
|
|
+#endif
|
|
|
|
#undef SUBTARGET_ASM_SPEC
|
|
#define SUBTARGET_ASM_SPEC "\
|
|
diff -uNr gcc-3.2.3.org/gcc/config/t-linux-uclibc gcc-3.2.3/gcc/config/t-linux-uclibc
|
|
--- gcc-3.2.3.org/gcc/config/t-linux-uclibc 1970-01-01 01:00:00.000000000 +0100
|
|
+++ gcc-3.2.3/gcc/config/t-linux-uclibc 2005-02-16 23:31:19.602762936 +0100
|
|
@@ -0,0 +1,13 @@
|
|
+T_CFLAGS = -DUSE_UCLIBC
|
|
+
|
|
+# Don't run fixproto
|
|
+STMP_FIXPROTO =
|
|
+
|
|
+# Compile crtbeginS.o and crtendS.o with pic.
|
|
+CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
|
|
+# Compile libgcc2.a with pic.
|
|
+TARGET_LIBGCC2_CFLAGS = -fPIC
|
|
+
|
|
+# Override t-slibgcc-elf-ver to export some libgcc symbols with
|
|
+# the symbol versions that glibc used.
|
|
+SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
|
|
diff -uNr gcc-3.2.3.org/gcc/config.gcc gcc-3.2.3/gcc/config.gcc
|
|
--- gcc-3.2.3.org/gcc/config.gcc 2003-02-28 19:38:19.000000000 +0100
|
|
+++ gcc-3.2.3/gcc/config.gcc 2005-02-16 23:32:57.842828176 +0100
|
|
@@ -2372,6 +2372,22 @@
|
|
esac
|
|
tmake_file="${tmake_file} mips/t-netbsd"
|
|
;;
|
|
+mips*-*-linux-uclibc*) # Linux MIPS, either endian. uClibc
|
|
+ tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h"
|
|
+ case $machine in
|
|
+ mipsisa32*-*)
|
|
+ target_cpu_default="MASK_SOFT_FLOAT"
|
|
+ tm_defines="MIPS_ISA_DEFAULT=32"
|
|
+ ;;
|
|
+ esac
|
|
+ case $machine in
|
|
+ mips*el-*)
|
|
+ tm_file="mips/little.h $tm_file"
|
|
+ ;;
|
|
+ esac
|
|
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc mips/t-linux"
|
|
+ extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
|
|
+ ;;
|
|
mips*-*-linux*) # Linux MIPS, either endian.
|
|
tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h"
|
|
case $machine in
|
|
diff -uNr gcc-3.2.3.org/libstdc++-v3/aclocal.m4 gcc-3.2.3/libstdc++-v3/aclocal.m4
|
|
--- gcc-3.2.3.org/libstdc++-v3/aclocal.m4 2003-02-05 17:36:40.000000000 +0100
|
|
+++ gcc-3.2.3/libstdc++-v3/aclocal.m4 2005-02-16 23:35:26.000000000 +0100
|
|
@@ -1176,6 +1176,9 @@
|
|
dnl Default to "generic"
|
|
if test x$enable_clocale_flag = xno; then
|
|
case x${target_os} in
|
|
+ xlinux-uclibc*)
|
|
+ enable_clocale_flag=uclibc
|
|
+ ;;
|
|
xlinux* | xgnu*)
|
|
AC_EGREP_CPP([_GLIBCPP_ok], [
|
|
#include <features.h>
|
|
@@ -1299,6 +1302,41 @@
|
|
CTIME_CC=config/locale/generic/time_members.cc
|
|
CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
|
|
;;
|
|
+ xuclibc)
|
|
+ AC_MSG_RESULT(uclibc)
|
|
+
|
|
+ # Declare intention to use gettext, and add support for specific
|
|
+ # languages.
|
|
+ # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
|
|
+ ALL_LINGUAS="de fr"
|
|
+
|
|
+ # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
|
|
+ AC_CHECK_PROG(check_msgfmt, msgfmt, yes, no)
|
|
+ if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
|
|
+ USE_NLS=yes
|
|
+ fi
|
|
+ # Export the build objects.
|
|
+ for ling in $ALL_LINGUAS; do \
|
|
+ glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
|
|
+ glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
|
|
+ done
|
|
+ AC_SUBST(glibcpp_MOFILES)
|
|
+ AC_SUBST(glibcpp_POFILES)
|
|
+
|
|
+ CLOCALE_H=config/locale/uclibc/c_locale.h
|
|
+ CLOCALE_CC=config/locale/uclibc/c_locale.cc
|
|
+ CCODECVT_H=config/locale/uclibc/codecvt_specializations.h
|
|
+ CCODECVT_CC=config/locale/uclibc/codecvt_members.cc
|
|
+ CCOLLATE_CC=config/locale/uclibc/collate_members.cc
|
|
+ CCTYPE_CC=config/locale/uclibc/ctype_members.cc
|
|
+ CMESSAGES_H=config/locale/uclibc/messages_members.h
|
|
+ CMESSAGES_CC=config/locale/uclibc/messages_members.cc
|
|
+ CMONEY_CC=config/locale/uclibc/monetary_members.cc
|
|
+ CNUMERIC_CC=config/locale/uclibc/numeric_members.cc
|
|
+ CTIME_H=config/locale/uclibc/time_members.h
|
|
+ CTIME_CC=config/locale/uclibc/time_members.cc
|
|
+ CLOCALE_INTERNAL_H=config/locale/uclibc/c++locale_internal.h
|
|
+ ;;
|
|
*)
|
|
echo "$enable_clocale is an unknown locale package" 1>&2
|
|
exit 1
|
|
diff -uNr gcc-3.2.3.org/libstdc++-v3/configure gcc-3.2.3/libstdc++-v3/configure
|
|
--- gcc-3.2.3.org/libstdc++-v3/configure 2003-02-05 17:36:41.000000000 +0100
|
|
+++ gcc-3.2.3/libstdc++-v3/configure 2005-02-16 23:42:07.000000000 +0100
|
|
@@ -1991,6 +1991,11 @@
|
|
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|
;;
|
|
|
|
+linux-uclibc*)
|
|
+ lt_cv_deplibs_check_method=pass_all
|
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
|
+ ;;
|
|
+
|
|
netbsd*)
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|
@@ -2927,6 +2932,9 @@
|
|
|
|
if test x$enable_clocale_flag = xno; then
|
|
case x${target_os} in
|
|
+ xlinux-uclibc*)
|
|
+ enable_clocale_flag=uclibc
|
|
+ ;;
|
|
xlinux* | xgnu*)
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 2933 "configure"
|
|
@@ -3113,6 +3121,70 @@
|
|
CTIME_CC=config/locale/generic/time_members.cc
|
|
CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
|
|
;;
|
|
+ xuclibc)
|
|
+ echo "$ac_t""uclibc" 1>&6
|
|
+
|
|
+ # Declare intention to use gettext, and add support for specific
|
|
+ # languages.
|
|
+ # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
|
|
+ ALL_LINGUAS="de fr"
|
|
+
|
|
+ # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
|
|
+ # Extract the first word of "msgfmt", so it can be a program name with args.
|
|
+set dummy msgfmt; ac_word=$2
|
|
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
+echo "configure:3117: checking for $ac_word" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ if test -n "$check_msgfmt"; then
|
|
+ ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
|
|
+else
|
|
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
+ ac_dummy="$PATH"
|
|
+ for ac_dir in $ac_dummy; do
|
|
+ test -z "$ac_dir" && ac_dir=.
|
|
+ if test -f $ac_dir/$ac_word; then
|
|
+ ac_cv_prog_check_msgfmt="yes"
|
|
+ break
|
|
+ fi
|
|
+ done
|
|
+ IFS="$ac_save_ifs"
|
|
+ test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
|
|
+fi
|
|
+fi
|
|
+check_msgfmt="$ac_cv_prog_check_msgfmt"
|
|
+if test -n "$check_msgfmt"; then
|
|
+ echo "$ac_t""$check_msgfmt" 1>&6
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+fi
|
|
+
|
|
+ if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
|
|
+ USE_NLS=yes
|
|
+ fi
|
|
+ # Export the build objects.
|
|
+ for ling in $ALL_LINGUAS; do \
|
|
+ glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
|
|
+ glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
|
|
+ done
|
|
+
|
|
+
|
|
+
|
|
+ CLOCALE_H=config/locale/uclibc/c_locale.h
|
|
+ CLOCALE_CC=config/locale/uclibc/c_locale.cc
|
|
+ CCODECVT_H=config/locale/uclibc/codecvt_specializations.h
|
|
+ CCODECVT_CC=config/locale/uclibc/codecvt_members.cc
|
|
+ CCOLLATE_CC=config/locale/uclibc/collate_members.cc
|
|
+ CCTYPE_CC=config/locale/uclibc/ctype_members.cc
|
|
+ CMESSAGES_H=config/locale/uclibc/messages_members.h
|
|
+ CMESSAGES_CC=config/locale/uclibc/messages_members.cc
|
|
+ CMONEY_CC=config/locale/uclibc/monetary_members.cc
|
|
+ CNUMERIC_CC=config/locale/uclibc/numeric_members.cc
|
|
+ CTIME_H=config/locale/uclibc/time_members.h
|
|
+ CTIME_CC=config/locale/uclibc/time_members.cc
|
|
+ CLOCALE_INTERNAL_H=config/locale/uclibc/c++locale_internal.h
|
|
+ ;;
|
|
*)
|
|
echo "$enable_clocale is an unknown locale package" 1>&2
|
|
exit 1
|
|
@@ -4085,6 +4157,968 @@
|
|
# GLIBCPP_CHECK_MATH_SUPPORT
|
|
|
|
case "$target" in
|
|
+ *-uclibc*)
|
|
+ os_include_dir="config/os/uclibc"
|
|
+ for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
|
|
+ machine/endian.h machine/param.h sys/machine.h sys/types.h \
|
|
+ fp.h locale.h float.h inttypes.h
|
|
+do
|
|
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
+echo "configure:4224: checking for $ac_hdr" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4229 "configure"
|
|
+#include "confdefs.h"
|
|
+#include <$ac_hdr>
|
|
+EOF
|
|
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
+{ (eval echo configure:4234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
+if test -z "$ac_err"; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_header_$ac_safe=yes"
|
|
+else
|
|
+ echo "$ac_err" >&5
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_header_$ac_safe=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
+ cat >> confdefs.h <<EOF
|
|
+#define $ac_tr_hdr 1
|
|
+EOF
|
|
+
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+fi
|
|
+done
|
|
+
|
|
+ SECTION_FLAGS='-ffunction-sections -fdata-sections'
|
|
+
|
|
+
|
|
+ # If we're not using GNU ld, then there's no point in even trying these
|
|
+ # tests. Check for that first. We should have already tested for gld
|
|
+ # by now (in libtool), but require it now just to be safe...
|
|
+ test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
|
|
+ test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
|
|
+
|
|
+
|
|
+ # The name set by libtool depends on the version of libtool. Shame on us
|
|
+ # for depending on an impl detail, but c'est la vie. Older versions used
|
|
+ # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
|
|
+ # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
|
|
+ # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
|
|
+ # set (hence we're using an older libtool), then set it.
|
|
+ if test x${with_gnu_ld+set} != xset; then
|
|
+ if test x${ac_cv_prog_gnu_ld+set} != xset; then
|
|
+ # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
|
|
+ with_gnu_ld=no
|
|
+ else
|
|
+ with_gnu_ld=$ac_cv_prog_gnu_ld
|
|
+ fi
|
|
+ fi
|
|
+
|
|
+ # Start by getting the version number. I think the libtool test already
|
|
+ # does some of this, but throws away the result.
|
|
+
|
|
+ ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
+ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
|
+
|
|
+ glibcpp_gnu_ld_version=`echo $ldver | \
|
|
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
|
+
|
|
+ # Set --gc-sections.
|
|
+ if test "$with_gnu_ld" = "notbroken"; then
|
|
+ # GNU ld it is! Joy and bunny rabbits!
|
|
+
|
|
+ # All these tests are for C++; save the language and the compiler flags.
|
|
+ # Need to do this so that g++ won't try to link in libstdc++
|
|
+ ac_test_CFLAGS="${CFLAGS+set}"
|
|
+ ac_save_CFLAGS="$CFLAGS"
|
|
+ CFLAGS='-x c++ -Wl,--gc-sections'
|
|
+
|
|
+ # Check for -Wl,--gc-sections
|
|
+ # XXX This test is broken at the moment, as symbols required for
|
|
+ # linking are now in libsupc++ (not built yet.....). In addition,
|
|
+ # this test has cored on solaris in the past. In addition,
|
|
+ # --gc-sections doesn't really work at the moment (keeps on discarding
|
|
+ # used sections, first .eh_frame and now some of the glibc sections for
|
|
+ # iconv). Bzzzzt. Thanks for playing, maybe next time.
|
|
+ echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
|
|
+echo "configure:4312: checking for ld that supports -Wl,--gc-sections" >&5
|
|
+ if test "$cross_compiling" = yes; then
|
|
+ ac_sectionLDflags=yes
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4317 "configure"
|
|
+#include "confdefs.h"
|
|
+
|
|
+ int main(void)
|
|
+ {
|
|
+ try { throw 1; }
|
|
+ catch (...) { };
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
+EOF
|
|
+if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
+then
|
|
+ ac_sectionLDflags=yes
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -fr conftest*
|
|
+ ac_sectionLDflags=no
|
|
+fi
|
|
+rm -fr conftest*
|
|
+fi
|
|
+
|
|
+ if test "$ac_test_CFLAGS" = set; then
|
|
+ CFLAGS="$ac_save_CFLAGS"
|
|
+ else
|
|
+ # this is the suspicious part
|
|
+ CFLAGS=''
|
|
+ fi
|
|
+ if test "$ac_sectionLDflags" = "yes"; then
|
|
+ SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
|
|
+ fi
|
|
+ echo "$ac_t""$ac_sectionLDflags" 1>&6
|
|
+ fi
|
|
+
|
|
+ # Set linker optimization flags.
|
|
+ if test x"$with_gnu_ld" = x"yes"; then
|
|
+ OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
|
|
+ fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+ echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
|
+echo "configure:4362: checking for main in -lm" >&5
|
|
+ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
|
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ ac_save_LIBS="$LIBS"
|
|
+LIBS="-lm $LIBS"
|
|
+cat > conftest.$ac_ext <<EOF
|
|
+#line 4370 "configure"
|
|
+#include "confdefs.h"
|
|
+
|
|
+int main() {
|
|
+main()
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_lib_$ac_lib_var=yes"
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_lib_$ac_lib_var=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+LIBS="$ac_save_LIBS"
|
|
+
|
|
+fi
|
|
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
+ cat >> confdefs.h <<EOF
|
|
+#define $ac_tr_lib 1
|
|
+EOF
|
|
+
|
|
+ LIBS="-lm $LIBS"
|
|
+
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+fi
|
|
+
|
|
+ for ac_func in nan copysignf
|
|
+do
|
|
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
+echo "configure:4407: checking for $ac_func" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4412 "configure"
|
|
+#include "confdefs.h"
|
|
+/* System header to define __stub macros and hopefully few prototypes,
|
|
+ which can conflict with char $ac_func(); below. */
|
|
+#include <assert.h>
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char $ac_func();
|
|
+
|
|
+int main() {
|
|
+
|
|
+/* The GNU C library defines this for functions which it implements
|
|
+ to always fail with ENOSYS. Some functions are actually named
|
|
+ something starting with __ and the normal name is an alias. */
|
|
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
+choke me
|
|
+#else
|
|
+$ac_func();
|
|
+#endif
|
|
+
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=yes"
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+
|
|
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
+ cat >> confdefs.h <<EOF
|
|
+#define $ac_tr_func 1
|
|
+EOF
|
|
+
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
|
|
+fi
|
|
+done
|
|
+
|
|
+
|
|
+ for ac_func in __signbit
|
|
+do
|
|
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
+echo "configure:4464: checking for $ac_func" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4469 "configure"
|
|
+#include "confdefs.h"
|
|
+/* System header to define __stub macros and hopefully few prototypes,
|
|
+ which can conflict with char $ac_func(); below. */
|
|
+#include <assert.h>
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char $ac_func();
|
|
+
|
|
+int main() {
|
|
+
|
|
+/* The GNU C library defines this for functions which it implements
|
|
+ to always fail with ENOSYS. Some functions are actually named
|
|
+ something starting with __ and the normal name is an alias. */
|
|
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
+choke me
|
|
+#else
|
|
+$ac_func();
|
|
+#endif
|
|
+
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=yes"
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+
|
|
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
+ cat >> confdefs.h <<EOF
|
|
+#define $ac_tr_func 1
|
|
+EOF
|
|
+
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
|
|
+fi
|
|
+done
|
|
+
|
|
+ for ac_func in __signbitf
|
|
+do
|
|
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
+echo "configure:4520: checking for $ac_func" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4525 "configure"
|
|
+#include "confdefs.h"
|
|
+/* System header to define __stub macros and hopefully few prototypes,
|
|
+ which can conflict with char $ac_func(); below. */
|
|
+#include <assert.h>
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char $ac_func();
|
|
+
|
|
+int main() {
|
|
+
|
|
+/* The GNU C library defines this for functions which it implements
|
|
+ to always fail with ENOSYS. Some functions are actually named
|
|
+ something starting with __ and the normal name is an alias. */
|
|
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
+choke me
|
|
+#else
|
|
+$ac_func();
|
|
+#endif
|
|
+
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=yes"
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+
|
|
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
+ cat >> confdefs.h <<EOF
|
|
+#define $ac_tr_func 1
|
|
+EOF
|
|
+
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
|
|
+fi
|
|
+done
|
|
+
|
|
+
|
|
+ if test x$ac_cv_func_copysignl = x"yes"; then
|
|
+ for ac_func in __signbitl
|
|
+do
|
|
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
+echo "configure:4578: checking for $ac_func" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4583 "configure"
|
|
+#include "confdefs.h"
|
|
+/* System header to define __stub macros and hopefully few prototypes,
|
|
+ which can conflict with char $ac_func(); below. */
|
|
+#include <assert.h>
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char $ac_func();
|
|
+
|
|
+int main() {
|
|
+
|
|
+/* The GNU C library defines this for functions which it implements
|
|
+ to always fail with ENOSYS. Some functions are actually named
|
|
+ something starting with __ and the normal name is an alias. */
|
|
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
+choke me
|
|
+#else
|
|
+$ac_func();
|
|
+#endif
|
|
+
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=yes"
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+
|
|
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
+ cat >> confdefs.h <<EOF
|
|
+#define $ac_tr_func 1
|
|
+EOF
|
|
+
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
|
|
+fi
|
|
+done
|
|
+
|
|
+ fi
|
|
+
|
|
+ if test -n "$LIBMATHOBJS"; then
|
|
+ need_libmath=yes
|
|
+ fi
|
|
+
|
|
+
|
|
+
|
|
+if test "$need_libmath" = yes; then
|
|
+ GLIBCPP_BUILD_LIBMATH_TRUE=
|
|
+ GLIBCPP_BUILD_LIBMATH_FALSE='#'
|
|
+else
|
|
+ GLIBCPP_BUILD_LIBMATH_TRUE='#'
|
|
+ GLIBCPP_BUILD_LIBMATH_FALSE=
|
|
+fi
|
|
+
|
|
+
|
|
+ enable_wchar_t=no
|
|
+
|
|
+ echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
|
|
+echo "configure:4651: checking for mbstate_t" >&5
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4653 "configure"
|
|
+#include "confdefs.h"
|
|
+#include <wchar.h>
|
|
+int main() {
|
|
+mbstate_t teststate;
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:4660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
+ rm -rf conftest*
|
|
+ have_mbstate_t=yes
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ have_mbstate_t=no
|
|
+fi
|
|
+rm -f conftest*
|
|
+ echo "$ac_t""$have_mbstate_t" 1>&6
|
|
+ if test x"$have_mbstate_t" = xyes; then
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define HAVE_MBSTATE_T 1
|
|
+EOF
|
|
+
|
|
+ fi
|
|
+
|
|
+ for ac_hdr in wchar.h
|
|
+do
|
|
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
+echo "configure:4682: checking for $ac_hdr" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4687 "configure"
|
|
+#include "confdefs.h"
|
|
+#include <$ac_hdr>
|
|
+EOF
|
|
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
+{ (eval echo configure:4692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
+if test -z "$ac_err"; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_header_$ac_safe=yes"
|
|
+else
|
|
+ echo "$ac_err" >&5
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_header_$ac_safe=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
+ cat >> confdefs.h <<EOF
|
|
+#define $ac_tr_hdr 1
|
|
+EOF
|
|
+ ac_has_wchar_h=yes
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+ac_has_wchar_h=no
|
|
+fi
|
|
+done
|
|
+
|
|
+ for ac_hdr in wctype.h
|
|
+do
|
|
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
+echo "configure:4723: checking for $ac_hdr" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4728 "configure"
|
|
+#include "confdefs.h"
|
|
+#include <$ac_hdr>
|
|
+EOF
|
|
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
+{ (eval echo configure:4733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
+if test -z "$ac_err"; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_header_$ac_safe=yes"
|
|
+else
|
|
+ echo "$ac_err" >&5
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_header_$ac_safe=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
+ cat >> confdefs.h <<EOF
|
|
+#define $ac_tr_hdr 1
|
|
+EOF
|
|
+ ac_has_wctype_h=yes
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+ac_has_wctype_h=no
|
|
+fi
|
|
+done
|
|
+
|
|
+
|
|
+ if test x"$ac_has_wchar_h" = xyes &&
|
|
+ test x"$ac_has_wctype_h" = xyes &&
|
|
+ test x"$enable_c_mbchar" != xno; then
|
|
+
|
|
+ echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
|
|
+echo "configure:4766: checking for WCHAR_MIN and WCHAR_MAX" >&5
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4768 "configure"
|
|
+#include "confdefs.h"
|
|
+#include <wchar.h>
|
|
+int main() {
|
|
+int i = WCHAR_MIN; int j = WCHAR_MAX;
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:4775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
+ rm -rf conftest*
|
|
+ has_wchar_minmax=yes
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ has_wchar_minmax=no
|
|
+fi
|
|
+rm -f conftest*
|
|
+ echo "$ac_t""$has_wchar_minmax" 1>&6
|
|
+
|
|
+ echo $ac_n "checking for WEOF""... $ac_c" 1>&6
|
|
+echo "configure:4788: checking for WEOF" >&5
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4790 "configure"
|
|
+#include "confdefs.h"
|
|
+
|
|
+ #include <wchar.h>
|
|
+ #include <stddef.h>
|
|
+int main() {
|
|
+wint_t i = WEOF;
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:4799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
+ rm -rf conftest*
|
|
+ has_weof=yes
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ has_weof=no
|
|
+fi
|
|
+rm -f conftest*
|
|
+ echo "$ac_t""$has_weof" 1>&6
|
|
+
|
|
+ ac_wfuncs=yes
|
|
+ for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
|
|
+do
|
|
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
+echo "configure:4815: checking for $ac_func" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4820 "configure"
|
|
+#include "confdefs.h"
|
|
+/* System header to define __stub macros and hopefully few prototypes,
|
|
+ which can conflict with char $ac_func(); below. */
|
|
+#include <assert.h>
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char $ac_func();
|
|
+
|
|
+int main() {
|
|
+
|
|
+/* The GNU C library defines this for functions which it implements
|
|
+ to always fail with ENOSYS. Some functions are actually named
|
|
+ something starting with __ and the normal name is an alias. */
|
|
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
+choke me
|
|
+#else
|
|
+$ac_func();
|
|
+#endif
|
|
+
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=yes"
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+
|
|
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
+ cat >> confdefs.h <<EOF
|
|
+#define $ac_tr_func 1
|
|
+EOF
|
|
+
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+\
|
|
+ ac_wfuncs=no
|
|
+fi
|
|
+done
|
|
+
|
|
+
|
|
+ for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
|
|
+ fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
|
|
+ vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
|
|
+ mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
|
|
+ wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
|
|
+ wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
|
|
+do
|
|
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
+echo "configure:4878: checking for $ac_func" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4883 "configure"
|
|
+#include "confdefs.h"
|
|
+/* System header to define __stub macros and hopefully few prototypes,
|
|
+ which can conflict with char $ac_func(); below. */
|
|
+#include <assert.h>
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char $ac_func();
|
|
+
|
|
+int main() {
|
|
+
|
|
+/* The GNU C library defines this for functions which it implements
|
|
+ to always fail with ENOSYS. Some functions are actually named
|
|
+ something starting with __ and the normal name is an alias. */
|
|
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
+choke me
|
|
+#else
|
|
+$ac_func();
|
|
+#endif
|
|
+
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=yes"
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+
|
|
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
+ cat >> confdefs.h <<EOF
|
|
+#define $ac_tr_func 1
|
|
+EOF
|
|
+
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+\
|
|
+ ac_wfuncs=no
|
|
+fi
|
|
+done
|
|
+
|
|
+
|
|
+ echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
|
|
+echo "configure:4934: checking for ISO C99 wchar_t support" >&5
|
|
+ if test x"$has_weof" = xyes &&
|
|
+ test x"$has_wchar_minmax" = xyes &&
|
|
+ test x"$ac_wfuncs" = xyes; then
|
|
+ ac_isoC99_wchar_t=yes
|
|
+ else
|
|
+ ac_isoC99_wchar_t=no
|
|
+ fi
|
|
+ echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
|
|
+
|
|
+ ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
|
|
+echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
|
|
+echo "configure:4946: checking for iconv.h" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4951 "configure"
|
|
+#include "confdefs.h"
|
|
+#include <iconv.h>
|
|
+EOF
|
|
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
+{ (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
+if test -z "$ac_err"; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_header_$ac_safe=yes"
|
|
+else
|
|
+ echo "$ac_err" >&5
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_header_$ac_safe=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_has_iconv_h=yes
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+ac_has_iconv_h=no
|
|
+fi
|
|
+
|
|
+ ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
|
|
+echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
|
|
+echo "configure:4980: checking for langinfo.h" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 4985 "configure"
|
|
+#include "confdefs.h"
|
|
+#include <langinfo.h>
|
|
+EOF
|
|
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
+{ (eval echo configure:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
+if test -z "$ac_err"; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_header_$ac_safe=yes"
|
|
+else
|
|
+ echo "$ac_err" >&5
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_header_$ac_safe=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_has_langinfo_h=yes
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+ac_has_langinfo_h=no
|
|
+fi
|
|
+
|
|
+
|
|
+ echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
|
|
+echo "configure:5014: checking for iconv in -liconv" >&5
|
|
+ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
|
|
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ ac_save_LIBS="$LIBS"
|
|
+LIBS="-liconv $LIBS"
|
|
+cat > conftest.$ac_ext <<EOF
|
|
+#line 5022 "configure"
|
|
+#include "confdefs.h"
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char iconv();
|
|
+
|
|
+int main() {
|
|
+iconv()
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_lib_$ac_lib_var=yes"
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_lib_$ac_lib_var=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+LIBS="$ac_save_LIBS"
|
|
+
|
|
+fi
|
|
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ libiconv="-liconv"
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+fi
|
|
+
|
|
+ ac_save_LIBS="$LIBS"
|
|
+ LIBS="$LIBS $libiconv"
|
|
+
|
|
+ for ac_func in iconv_open iconv_close iconv nl_langinfo
|
|
+do
|
|
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
+echo "configure:5059: checking for $ac_func" >&5
|
|
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
+else
|
|
+ cat > conftest.$ac_ext <<EOF
|
|
+#line 5064 "configure"
|
|
+#include "confdefs.h"
|
|
+/* System header to define __stub macros and hopefully few prototypes,
|
|
+ which can conflict with char $ac_func(); below. */
|
|
+#include <assert.h>
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char $ac_func();
|
|
+
|
|
+int main() {
|
|
+
|
|
+/* The GNU C library defines this for functions which it implements
|
|
+ to always fail with ENOSYS. Some functions are actually named
|
|
+ something starting with __ and the normal name is an alias. */
|
|
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
+choke me
|
|
+#else
|
|
+$ac_func();
|
|
+#endif
|
|
+
|
|
+; return 0; }
|
|
+EOF
|
|
+if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=yes"
|
|
+else
|
|
+ echo "configure: failed program was:" >&5
|
|
+ cat conftest.$ac_ext >&5
|
|
+ rm -rf conftest*
|
|
+ eval "ac_cv_func_$ac_func=no"
|
|
+fi
|
|
+rm -f conftest*
|
|
+fi
|
|
+
|
|
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
+ echo "$ac_t""yes" 1>&6
|
|
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
+ cat >> confdefs.h <<EOF
|
|
+#define $ac_tr_func 1
|
|
+EOF
|
|
+ \
|
|
+ ac_XPG2funcs=yes
|
|
+else
|
|
+ echo "$ac_t""no" 1>&6
|
|
+ac_XPG2funcs=no
|
|
+fi
|
|
+done
|
|
+
|
|
+
|
|
+ LIBS="$ac_save_LIBS"
|
|
+
|
|
+ echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
|
|
+echo "configure:5117: checking for XPG2 wchar_t support" >&5
|
|
+ if test x"$ac_has_iconv_h" = xyes &&
|
|
+ test x"$ac_has_langinfo_h" = xyes &&
|
|
+ test x"$ac_XPG2funcs" = xyes; then
|
|
+ ac_XPG2_wchar_t=yes
|
|
+ else
|
|
+ ac_XPG2_wchar_t=no
|
|
+ fi
|
|
+ echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
|
|
+
|
|
+ if test x"$ac_isoC99_wchar_t" = xyes &&
|
|
+ test x"$ac_XPG2_wchar_t" = xyes; then
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define _GLIBCPP_USE_WCHAR_T 1
|
|
+EOF
|
|
+
|
|
+ enable_wchar_t=yes
|
|
+ fi
|
|
+ fi
|
|
+ echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
|
|
+echo "configure:5137: checking for enabled wchar_t specializations" >&5
|
|
+ echo "$ac_t""$enable_wchar_t" 1>&6
|
|
+
|
|
+
|
|
+if test "$enable_wchar_t" = yes; then
|
|
+ GLIBCPP_TEST_WCHAR_T_TRUE=
|
|
+ GLIBCPP_TEST_WCHAR_T_FALSE='#'
|
|
+else
|
|
+ GLIBCPP_TEST_WCHAR_T_TRUE='#'
|
|
+ GLIBCPP_TEST_WCHAR_T_FALSE=
|
|
+fi
|
|
+
|
|
+
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define HAVE_COPYSIGN 1
|
|
+EOF
|
|
+
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define HAVE_FINITE 1
|
|
+EOF
|
|
+
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define HAVE_FINITEF 1
|
|
+EOF
|
|
+
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define HAVE_ISINF 1
|
|
+EOF
|
|
+
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define HAVE_ISINFF 1
|
|
+EOF
|
|
+
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define HAVE_ISNAN 1
|
|
+EOF
|
|
+
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define HAVE_ISNANF 1
|
|
+EOF
|
|
+ ;;
|
|
*-linux*)
|
|
# Check for available headers.
|
|
for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
|
|
@@ -22587,6 +22587,7 @@
|
|
s%@glibcpp_localedir@%$glibcpp_localedir%g
|
|
s%@USE_NLS@%$USE_NLS%g
|
|
s%@CLOCALE_H@%$CLOCALE_H%g
|
|
+s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
|
|
s%@CCODECVT_H@%$CCODECVT_H%g
|
|
s%@CMESSAGES_H@%$CMESSAGES_H%g
|
|
s%@CTIME_H@%$CTIME_H%g
|
|
diff -uNr gcc-3.2.3.org/libstdc++-v3/configure.in gcc-3.2.3/libstdc++-v3/configure.in
|
|
--- gcc-3.2.3.org/libstdc++-v3/configure.in 2003-02-05 17:37:00.000000000 +0100
|
|
+++ gcc-3.2.3/libstdc++-v3/configure.in 2005-02-16 23:43:06.000000000 +0100
|
|
@@ -92,6 +92,36 @@
|
|
# GLIBCPP_CHECK_MATH_SUPPORT
|
|
|
|
case "$target" in
|
|
+ *-uclibc*)
|
|
+ os_include_dir="os/uclibc"
|
|
+ AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
|
|
+ machine/endian.h machine/param.h sys/machine.h sys/types.h \
|
|
+ fp.h locale.h float.h inttypes.h])
|
|
+ SECTION_FLAGS='-ffunction-sections -fdata-sections'
|
|
+ AC_SUBST(SECTION_FLAGS)
|
|
+ GLIBCPP_CHECK_LINKER_FEATURES
|
|
+ GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
|
|
+ GLIBCPP_CHECK_WCHAR_T_SUPPORT
|
|
+
|
|
+ AC_DEFINE(HAVE_COPYSIGN)
|
|
+ #AC_DEFINE(HAVE_COPYSIGNF)
|
|
+ AC_DEFINE(HAVE_FINITE)
|
|
+ AC_DEFINE(HAVE_FINITEF)
|
|
+ #AC_DEFINE(HAVE_FREXPF)
|
|
+ #AC_DEFINE(HAVE_HYPOTF)
|
|
+ AC_DEFINE(HAVE_ISINF)
|
|
+ AC_DEFINE(HAVE_ISINFF)
|
|
+ AC_DEFINE(HAVE_ISNAN)
|
|
+ AC_DEFINE(HAVE_ISNANF)
|
|
+ #AC_DEFINE(HAVE_SINCOS)
|
|
+ #AC_DEFINE(HAVE_SINCOSF)
|
|
+ #if test x"long_double_math_on_this_cpu" = x"yes"; then
|
|
+ #AC_DEFINE(HAVE_FINITEL)
|
|
+ #AC_DEFINE(HAVE_HYPOTL)
|
|
+ #AC_DEFINE(HAVE_ISINFL)
|
|
+ #AC_DEFINE(HAVE_ISNANL)
|
|
+ #fi
|
|
+ ;;
|
|
*-linux*)
|
|
# Check for available headers.
|
|
AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
|
|
diff -uNr gcc-3.2.3.org/libstdc++-v3/configure.target gcc-3.2.3/libstdc++-v3/configure.target
|
|
--- gcc-3.2.3.org/libstdc++-v3/configure.target 2002-09-06 20:32:08.000000000 +0200
|
|
+++ gcc-3.2.3/libstdc++-v3/configure.target 2005-02-16 23:45:16.000000000 +0100
|
|
@@ -89,6 +89,9 @@
|
|
*djgpp*)
|
|
os_include_dir="config/os/djgpp"
|
|
;;
|
|
+ linux-uclibc*)
|
|
+ os_include_dir="config/os/uclibc"
|
|
+ ;;
|
|
linux* | gnu*)
|
|
os_include_dir="config/os/gnu-linux"
|
|
;;
|
|
diff -uNr gcc-3.2.3.org/libstdc++-v3/include/c_std/std_cstdlib.h gcc-3.2.3/libstdc++-v3/include/c_std/std_cstdlib.h
|
|
--- gcc-3.2.3.org/libstdc++-v3/include/c_std/std_cstdlib.h 2002-03-27 05:49:33.000000000 +0100
|
|
+++ gcc-3.2.3/libstdc++-v3/include/c_std/std_cstdlib.h 2005-02-16 23:47:16.000000000 +0100
|
|
@@ -101,9 +101,11 @@
|
|
using ::labs;
|
|
using ::ldiv;
|
|
using ::malloc;
|
|
+#if _GLIBCPP_USE_WCHAR_T
|
|
using ::mblen;
|
|
using ::mbstowcs;
|
|
using ::mbtowc;
|
|
+#endif
|
|
using ::qsort;
|
|
using ::rand;
|
|
using ::realloc;
|
|
@@ -112,8 +114,10 @@
|
|
using ::strtol;
|
|
using ::strtoul;
|
|
using ::system;
|
|
+#if _GLIBCPP_USE_WCHAR_T
|
|
using ::wcstombs;
|
|
using ::wctomb;
|
|
+#endif
|
|
|
|
inline long
|
|
abs(long __i) { return labs(__i); }
|
|
diff -uNr gcc-3.2.3.org/libstdc++-v3/include/c_std/std_cwchar.h gcc-3.2.3/libstdc++-v3/include/c_std/std_cwchar.h
|
|
--- gcc-3.2.3.org/libstdc++-v3/include/c_std/std_cwchar.h 2002-03-27 05:49:33.000000000 +0100
|
|
+++ gcc-3.2.3/libstdc++-v3/include/c_std/std_cwchar.h 2005-02-16 23:48:05.000000000 +0100
|
|
@@ -165,7 +165,9 @@
|
|
using ::wcscoll;
|
|
using ::wcscpy;
|
|
using ::wcscspn;
|
|
+#ifdef HAVE_WCSFTIME
|
|
using ::wcsftime;
|
|
+#endif
|
|
using ::wcslen;
|
|
using ::wcsncat;
|
|
using ::wcsncmp;
|
|
diff -uNr gcc-3.2.3.org/libstdc++-v3/include/Makefile.in gcc-3.2.3.mod/libstdc++-v3/include/Makefile.in
|
|
--- gcc-3.2.3.org/libstdc++-v3/include/Makefile.in 2005-02-27 19:59:52.000000000 +0100
|
|
+++ gcc-3.2.3.mod/libstdc++-v3/include/Makefile.in 2003-01-28 22:51:30.000000000 +0100
|
|
@@ -631,6 +631,7 @@
|
|
@LN_S@ ${glibcpp_srcdir}/@BASIC_FILE_H@ basic_file.h || true ;\
|
|
@LN_S@ ${glibcpp_srcdir}/@CSTDIO_H@ c++io.h || true ;\
|
|
@LN_S@ ${glibcpp_srcdir}/@CLOCALE_H@ c++locale.h || true ;\
|
|
+ @LN_S@ ${glibcpp_srcdir}/@CLOCALE_INTERNAL_H@ c++locale_internal.h || true ;\
|
|
@LN_S@ ${glibcpp_srcdir}/@CMESSAGES_H@ messages_members.h || true ;\
|
|
@LN_S@ ${glibcpp_srcdir}/@CTIME_H@ time_members.h || true ;\
|
|
@LN_S@ ${glibcpp_srcdir}/@CCODECVT_H@ codecvt_specializations.h || true ;\
|
|
diff -uNr gcc-3.2.3.org/libtool.m4 gcc-3.2.3/libtool.m4
|
|
--- gcc-3.2.3.org/libtool.m4 2001-05-20 20:55:56.000000000 +0200
|
|
+++ gcc-3.2.3/libtool.m4 2005-02-16 23:49:13.000000000 +0100
|
|
@@ -606,6 +606,11 @@
|
|
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|
;;
|
|
|
|
+linux-uclibc*)
|
|
+ lt_cv_deplibs_check_method=pass_all
|
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
|
+ ;;
|
|
+
|
|
netbsd*)
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
|
|
diff -uNr gcc-3.2.3.org/ltconfig gcc-3.2.3/ltconfig
|
|
--- gcc-3.2.3.org/ltconfig 2001-09-01 02:47:19.000000000 +0200
|
|
+++ gcc-3.2.3/ltconfig 2005-02-16 23:49:42.000000000 +0100
|
|
@@ -1221,6 +1221,24 @@
|
|
dynamic_linker='GNU/Linux ld.so'
|
|
;;
|
|
|
|
+linux-uclibc*)
|
|
+ version_type=linux
|
|
+ need_lib_prefix=no
|
|
+ need_version=no
|
|
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
|
+ soname_spec='${libname}${release}.so$major'
|
|
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
|
+ shlibpath_var=LD_LIBRARY_PATH
|
|
+ shlibpath_overrides_runpath=no
|
|
+ # This implies no fast_install, which is unacceptable.
|
|
+ # Some rework will be needed to allow for fast_install
|
|
+ # before this can be enabled.
|
|
+ # Note: copied from linux-gnu, and may not be appropriate.
|
|
+ hardcode_into_libs=yes
|
|
+ # Assume using the uClibc dynamic linker.
|
|
+ dynamic_linker="uClibc ld.so"
|
|
+ ;;
|
|
+
|
|
netbsd*)
|
|
need_lib_prefix=no
|
|
need_version=no
|