Compare commits

...

7 Commits

Author SHA1 Message Date
Ingo Weinhold
9ea2a99edb Moved the old gcc to its new home.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-22 15:53:32 +00:00
Ingo Weinhold
2af2b0d2e0 New home for the gcc 2.95.3 and the old binutils.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-22 15:51:37 +00:00
Ingo Weinhold
30d2be341d Patch by Oliver to allow allow building with gcc 4.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-19 21:01:04 +00:00
Ingo Weinhold
3b60319274 Support for (cross-) building libstdc++. The locale support stuff is
mostly copy'n'pasted from the Linux/FreeBSD configuration.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 16:32:11 +00:00
Ingo Weinhold
b6c3e831b9 Don't tweak the [CROSS_]SYSTEM_HEADER_DIR to .../posix, since it will
cause some headers not to be found. Rather fix the test for finding
<limits.h>.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 16:30:09 +00:00
Ingo Weinhold
05e88697a9 Missed that. Part of patch gcc-3.4.3-BeOS-gthread.diff from Marcin's
gcc 3.4.3 package. Enables thread support for BeOS.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14997 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 16:28:33 +00:00
Ingo Weinhold
418d835d48 Don't generate a libiberty for target beos. It fails and we don't need
it (for building Haiku at least).


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@14996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 16:26:25 +00:00
2803 changed files with 711 additions and 23 deletions

View File

@@ -605,6 +605,26 @@ void print_dependencies (void);
struct expressionS;
struct fix;
typedef struct symbol symbolS;
/* JF moved this here [tc.h] from as.h under the theory that nobody except
MACHINE.c and write.c care about it anyway. */
/* [zooey]: the above no longer holds with gcc4, as it keeps bugging about
incomplete element types in arrays, if relax_type isn't defined
here. So I moved the definition back from tc.h to here. */
struct relax_type
{
/* Forward reach. Signed number. > 0. */
long rlx_forward;
/* Backward reach. Signed number. < 0. */
long rlx_backward;
/* Bytes length of this address. */
unsigned char rlx_length;
/* Next longer relax-state. 0 means there is no 'next' relax-state. */
relax_substateT rlx_more;
};
struct relax_type;
typedef struct frag fragS;

View File

@@ -24,23 +24,6 @@
extern const pseudo_typeS md_pseudo_table[];
/* JF moved this here from as.h under the theory that nobody except MACHINE.c
and write.c care about it anyway. */
struct relax_type
{
/* Forward reach. Signed number. > 0. */
long rlx_forward;
/* Backward reach. Signed number. < 0. */
long rlx_backward;
/* Bytes length of this address. */
unsigned char rlx_length;
/* Next longer relax-state. 0 means there is no 'next' relax-state. */
relax_substateT rlx_more;
};
typedef struct relax_type relax_typeS;
extern const int md_reloc_size; /* Size of a relocation record */

3
gcc4/configure vendored
View File

@@ -1156,6 +1156,9 @@ esac
case "${target}" in
*-*-beos)
noconfigdirs="$noconfigdirs target-libiberty"
;;
*-*-chorusos)
noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
;;

View File

@@ -1,4 +1,4 @@
# There are system headers elsewhere, but these are the ones that
# we are most likely to want to apply any fixes to.
SYSTEM_HEADER_DIR = /boot/develop/headers/posix
CROSS_SYSTEM_HEADER_DIR = $(tooldir)/sys-include/posix
# The LIMITS_H_TEST looks for limits.h in $(SYSTEM_HEADERS_DIR), but it is in
# .../posix.
LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/posix/limits.h ]

2
gcc4/gcc/configure vendored
View File

@@ -12021,7 +12021,7 @@ case ${enable_threads} in
# default
target_thread_file='single'
;;
aix | dce | gnat | irix | posix | posix95 | rtems | \
aix | beos | dce | gnat | irix | posix | posix95 | rtems | \
single | solaris | vxworks | win32 )
target_thread_file=${enable_threads}
;;

View File

@@ -1277,7 +1277,7 @@ case ${enable_threads} in
# default
target_thread_file='single'
;;
aix | dce | gnat | irix | posix | posix95 | rtems | \
aix | beos | dce | gnat | irix | posix | posix95 | rtems | \
single | solaris | vxworks | win32 )
target_thread_file=${enable_threads}
;;

View File

@@ -0,0 +1,56 @@
// Locale support -*- C++ -*-
// Copyright (C) 1997, 1998, 1999, 2000, 2002, 2003
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
// templates or use macros or inline functions from this file, or you compile
// this file and link it with other files to produce an executable, this
// file does not by itself cause the resulting executable to be covered by
// the GNU General Public License. This exception does not however
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
//
// ISO C++ 14882: 22.1 Locales
//
// Information as gleaned from /boot/develop/headers/posix/ctype.h
struct ctype_base
{
// Non-standard typedefs.
typedef const int* __to_type;
// NB: Offsets into ctype<char>::_M_table force a particular size
// on the mask type. Because of this, we don't use an enum.
typedef unsigned short mask;
static const mask upper = _ISupper;
static const mask lower = _ISlower;
static const mask alpha = _ISalpha;
static const mask digit = _ISdigit;
static const mask xdigit = _ISxdigit;
static const mask space = _ISspace;
static const mask print = _ISprint;
static const mask graph = _ISalpha | _ISdigit | _ISpunct;
static const mask cntrl = _IScntrl;
static const mask punct = _ISpunct;
static const mask alnum = _ISalpha | _ISdigit;
};

View File

@@ -0,0 +1,69 @@
// Locale support -*- C++ -*-
// Copyright (C) 2000, 2002 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
// templates or use macros or inline functions from this file, or you compile
// this file and link it with other files to produce an executable, this
// file does not by itself cause the resulting executable to be covered by
// the GNU General Public License. This exception does not however
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
//
// ISO C++ 14882: 22.1 Locales
//
// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*)
// functions go in ctype.cc
bool
ctype<char>::
is(mask __m, char __c) const
{ return _M_table[static_cast<unsigned char>(__c)] & __m; }
const char*
ctype<char>::
is(const char* __low, const char* __high, mask* __vec) const
{
while (__low < __high)
*__vec++ = _M_table[static_cast<unsigned char>(*__low++)];
return __high;
}
const char*
ctype<char>::
scan_is(mask __m, const char* __low, const char* __high) const
{
while (__low < __high
&& !(_M_table[static_cast<unsigned char>(*__low)] & __m))
++__low;
return __low;
}
const char*
ctype<char>::
scan_not(mask __m, const char* __low, const char* __high) const
{
while (__low < __high
&& (_M_table[static_cast<unsigned char>(*__low)] & __m) != 0)
++__low;
return __low;
}

View File

@@ -0,0 +1,131 @@
// Locale support -*- C++ -*-
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
// templates or use macros or inline functions from this file, or you compile
// this file and link it with other files to produce an executable, this
// file does not by itself cause the resulting executable to be covered by
// the GNU General Public License. This exception does not however
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
//
// ISO C++ 14882: 22.1 Locales
//
// Information as gleaned from /boot/develops/headers/posix/ctype.h
#if _GLIBCXX_C_LOCALE_GNU
const ctype_base::mask*
ctype<char>::classic_table() throw()
{ return _S_get_c_locale()->__ctype_b; }
#else
const ctype_base::mask*
ctype<char>::classic_table() throw()
{
const ctype_base::mask* __ret;
__ret = __ctype_b;
return __ret;
}
#endif
#if _GLIBCXX_C_LOCALE_GNU
ctype<char>::ctype(__c_locale __cloc, const mask* __table, bool __del,
size_t __refs)
: facet(__refs), _M_c_locale_ctype(_S_clone_c_locale(__cloc)),
_M_del(__table != 0 && __del),
_M_toupper(_M_c_locale_ctype->__ctype_toupper),
_M_tolower(_M_c_locale_ctype->__ctype_tolower),
_M_table(__table ? __table : _M_c_locale_ctype->__ctype_b),
_M_widen_ok(0), _M_narrow_ok(0)
{
memset(_M_widen, 0, sizeof(_M_widen));
memset(_M_narrow, 0, sizeof(_M_narrow));
}
#else
ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
size_t __refs)
: facet(__refs), _M_c_locale_ctype(_S_get_c_locale()),
_M_del(__table != 0 && __del), _M_widen_ok(0), _M_narrow_ok(0)
{
_M_toupper = __ctype_toupper;
_M_tolower = __ctype_tolower;
_M_table = __table ? __table : __ctype_b;
memset(_M_widen, 0, sizeof(_M_widen));
memset(_M_narrow, 0, sizeof(_M_narrow));
}
#endif
#if _GLIBCXX_C_LOCALE_GNU
ctype<char>::ctype(const mask* __table, bool __del, size_t __refs)
: facet(__refs), _M_c_locale_ctype(_S_get_c_locale()),
_M_del(__table != 0 && __del),
_M_toupper(_M_c_locale_ctype->__ctype_toupper),
_M_tolower(_M_c_locale_ctype->__ctype_tolower),
_M_table(__table ? __table : _M_c_locale_ctype->__ctype_b),
_M_widen_ok(0), _M_narrow_ok(0)
{
memset(_M_widen, 0, sizeof(_M_widen));
memset(_M_narrow, 0, sizeof(_M_narrow));
}
#else
ctype<char>::ctype(const mask* __table, bool __del, size_t __refs)
: facet(__refs), _M_c_locale_ctype(_S_get_c_locale()),
_M_del(__table != 0 && __del), _M_widen_ok(0), _M_narrow_ok(0)
{
_M_toupper = __ctype_toupper;
_M_tolower = __ctype_tolower;
_M_table = __table ? __table : __ctype_b;
memset(_M_widen, 0, sizeof(_M_widen));
memset(_M_narrow, 0, sizeof(_M_narrow));
}
#endif
char
ctype<char>::do_toupper(char __c) const
{ return _M_toupper[static_cast<unsigned char>(__c)]; }
const char*
ctype<char>::do_toupper(char* __low, const char* __high) const
{
while (__low < __high)
{
*__low = _M_toupper[static_cast<unsigned char>(*__low)];
++__low;
}
return __high;
}
char
ctype<char>::do_tolower(char __c) const
{ return _M_tolower[static_cast<unsigned char>(__c)]; }
const char*
ctype<char>::do_tolower(char* __low, const char* __high) const
{
while (__low < __high)
{
*__low = _M_tolower[static_cast<unsigned char>(*__low)];
++__low;
}
return __high;
}

View File

@@ -0,0 +1,41 @@
// Specific definitions for BeOS -*- C++ -*-
// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
// templates or use macros or inline functions from this file, or you compile
// this file and link it with other files to produce an executable, this
// file does not by itself cause the resulting executable to be covered by
// the GNU General Public License. This exception does not however
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
#ifndef _GLIBCXX_OS_DEFINES
#define _GLIBCXX_OS_DEFINES 1
// System-specific #define, typedefs, corrections, etc, go here. This
// file will come before all others.
// This keeps isanum, et al from being propagated as macros.
// #define __NO_CTYPE 1
// bonefish: They are defined as macros and there's no guard macro to
// prevent that.
#endif

View File

@@ -32812,7 +32812,353 @@ case "${host}" in
arm*-*-symbianelf*)
# This is a freestanding configuration; there is nothing to do here.
;;
*beos*)
for ac_header 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 float.h endian.h inttypes.h locale.h float.h stdint.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
## ----------------------------------------- ##
## Report this to the package-unused lists. ##
## ----------------------------------------- ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
eval "$as_ac_Header=\$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
SECTION_FLAGS='-ffunction-sections -fdata-sections'
# GLIBCXX_CHECK_LINKER_FEATURES
# GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
# GLIBCXX_CHECK_WCHAR_T_SUPPORT
# For LFS.
cat >>confdefs.h <<\_ACEOF
#define HAVE_INT64_T 1
_ACEOF
# case "$target" in
# *-uclinux*)
# # Don't enable LFS with uClibc
# ;;
# *)
# AC_DEFINE(_GLIBCXX_USE_LFS)
# esac
# For showmanyc_helper().
# AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)
# GLIBCXX_CHECK_POLL
# GLIBCXX_CHECK_S_ISREG_OR_S_IFREG
# For xsputn_2().
# AC_CHECK_HEADERS(sys/uio.h)
# GLIBCXX_CHECK_WRITEV
cat >>confdefs.h <<\_ACEOF
#define HAVE_ACOSF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_ASINF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_ATANF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_ATAN2F 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_CEILF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_COPYSIGN 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_COPYSIGNF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_COSF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_COSHF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_EXPF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_FABSF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_FINITE 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_FINITEF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_FLOORF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_FMODF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_FREXPF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_HYPOT 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_HYPOTF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_ISINF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_ISINFF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_ISNAN 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_ISNANF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_LOGF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_LOG10F 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_MODFF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_SINF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_SINHF 1
_ACEOF
# AC_DEFINE(HAVE_SINCOS)
# AC_DEFINE(HAVE_SINCOSF)
cat >>confdefs.h <<\_ACEOF
#define HAVE_SQRTF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_TANF 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_TANHF 1
_ACEOF
# if test x"long_double_math_on_this_cpu" = x"yes"; then
# AC_DEFINE(HAVE_ACOSL)
# AC_DEFINE(HAVE_ASINL)
# AC_DEFINE(HAVE_ATANL)
# AC_DEFINE(HAVE_ATAN2L)
# AC_DEFINE(HAVE_CEILL)
# AC_DEFINE(HAVE_COPYSIGNL)
# AC_DEFINE(HAVE_COSL)
# AC_DEFINE(HAVE_COSHL)
# AC_DEFINE(HAVE_EXPL)
# AC_DEFINE(HAVE_FABSL)
# AC_DEFINE(HAVE_FINITEL)
# AC_DEFINE(HAVE_FLOORL)
# AC_DEFINE(HAVE_FMODL)
# AC_DEFINE(HAVE_FREXPL)
# AC_DEFINE(HAVE_HYPOTL)
# AC_DEFINE(HAVE_ISINFL)
# AC_DEFINE(HAVE_ISNANL)
# AC_DEFINE(HAVE_LOGL)
# AC_DEFINE(HAVE_LOG10L)
# AC_DEFINE(HAVE_MODFL)
# AC_DEFINE(HAVE_POWL)
# AC_DEFINE(HAVE_SINL)
# AC_DEFINE(HAVE_SINHL)
# AC_DEFINE(HAVE_SINCOSL)
# AC_DEFINE(HAVE_SQRTL)
# AC_DEFINE(HAVE_TANL)
# AC_DEFINE(HAVE_TANHL)
# fi
;;
*-darwin*)
# Darwin versions vary, but the linker should work in a cross environment,
# so we just check for all the features here.

View File

@@ -7,7 +7,46 @@ case "${host}" in
arm*-*-symbianelf*)
# This is a freestanding configuration; there is nothing to do here.
;;
*beos*)
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 float.h endian.h inttypes.h locale.h float.h stdint.h])
SECTION_FLAGS='-ffunction-sections -fdata-sections'
AC_SUBST(SECTION_FLAGS)
AC_DEFINE(HAVE_INT64_T)
AC_DEFINE(HAVE_ACOSF)
AC_DEFINE(HAVE_ASINF)
AC_DEFINE(HAVE_ATANF)
AC_DEFINE(HAVE_ATAN2F)
AC_DEFINE(HAVE_CEILF)
AC_DEFINE(HAVE_COPYSIGN)
AC_DEFINE(HAVE_COPYSIGNF)
AC_DEFINE(HAVE_COSF)
AC_DEFINE(HAVE_COSHF)
AC_DEFINE(HAVE_EXPF)
AC_DEFINE(HAVE_FABSF)
AC_DEFINE(HAVE_FINITE)
AC_DEFINE(HAVE_FINITEF)
AC_DEFINE(HAVE_FLOORF)
AC_DEFINE(HAVE_FMODF)
AC_DEFINE(HAVE_FREXPF)
AC_DEFINE(HAVE_HYPOT)
AC_DEFINE(HAVE_HYPOTF)
AC_DEFINE(HAVE_ISINF)
AC_DEFINE(HAVE_ISINFF)
AC_DEFINE(HAVE_ISNAN)
AC_DEFINE(HAVE_ISNANF)
AC_DEFINE(HAVE_LOGF)
AC_DEFINE(HAVE_LOG10F)
AC_DEFINE(HAVE_MODFF)
AC_DEFINE(HAVE_SINF)
AC_DEFINE(HAVE_SINHF)
AC_DEFINE(HAVE_SQRTF)
AC_DEFINE(HAVE_TANF)
AC_DEFINE(HAVE_TANHF)
;;
*-darwin*)
# Darwin versions vary, but the linker should work in a cross environment,
# so we just check for all the features here.

Some files were not shown because too many files have changed in this diff Show More