acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Check for lldiv_t.
2000-12-05 Benjamin Kosnik <bkoz@haight.redhat.com> * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Check for lldiv_t. Allow the use of os-specific defines while checking for long-long functions by the inclusion of os_defines.h. * aclocal.m4: Regenerate. * configure.in: Add comments. * configure: Regenerate. * acconfig.h: Add _GLIBCPP_HAVE_LLDIV_T. * config.h.in: Regenerate. * config/os/gnu-linux/bits/os_defines.h: Fix typos and duplications in comments. From-SVN: r38051
This commit is contained in:
parent
06a3a6db49
commit
f4c79fef19
8 changed files with 1142 additions and 1113 deletions
|
@ -1,3 +1,16 @@
|
|||
2000-12-05 Benjamin Kosnik <bkoz@haight.redhat.com>
|
||||
|
||||
* acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Check for
|
||||
lldiv_t. Allow the use of os-specific defines while checking for
|
||||
long-long functions by the inclusion of os_defines.h.
|
||||
* aclocal.m4: Regenerate.
|
||||
* configure.in: Add comments.
|
||||
* configure: Regenerate.
|
||||
* acconfig.h: Add _GLIBCPP_HAVE_LLDIV_T.
|
||||
* config.h.in: Regenerate.
|
||||
* config/os/gnu-linux/bits/os_defines.h: Fix typos and
|
||||
duplications in comments.
|
||||
|
||||
2000-12-05 Richard Earnshaw <rearnsha@arm.com>
|
||||
|
||||
* config/os/freebsd/bits/ctype_base.h: Update comments about other
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
// Include support for shadow headers, ie --enable-cshadow-headers.
|
||||
#undef _GLIBCPP_USE_SHADOW_HEADERS
|
||||
|
||||
// Define if lldiv_t exists in stdlib.h.
|
||||
#undef _GLIBCPP_HAVE_LLDIV_T
|
||||
|
||||
// Define if the host has a type mbstate_t defined in
|
||||
// wchar.h, as required by 21.1.3.1. Some systems, namely
|
||||
// hppa-hp-hpux10.20 do not meet this requirement, and must be worked
|
||||
|
|
|
@ -276,7 +276,7 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
|
|||
AC_REQUIRE([AC_PROG_LD])
|
||||
|
||||
# Set --gc-sections.
|
||||
if test "$ac_cv_prog_gnu_ld" = "broken"; then
|
||||
if test "$ac_cv_prog_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.
|
||||
|
@ -1440,21 +1440,44 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
|
|||
*) AC_MSG_ERROR([Unknown argument to enable/disable long long]) ;;
|
||||
esac],
|
||||
enable_long_long=GLIBCPP_ENABLE_LONG_LONG_DEFAULT)dnl
|
||||
|
||||
# Allow use of os-dependent settings, so that macros that turn on
|
||||
# C99 capabilities can be defined and used in a consistent way.
|
||||
OS_INC_PATH=${srcdir}/$os_include_dir
|
||||
ac_test_CFLAGS="${CFLAGS+set}"
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="-I$OS_INC_PATH"
|
||||
|
||||
# Check for the existance of functions used if long long is enabled.
|
||||
# Check for the existence of functions used if long long is enabled.
|
||||
AC_CHECK_FUNC(strtoll,,ac_strtoll=no)
|
||||
AC_CHECK_FUNC(strtoull,,ac_strtoull=no)
|
||||
|
||||
# Check for lldiv_t, et. al.
|
||||
AC_MSG_CHECKING([for lldiv_t declaration])
|
||||
AC_CACHE_VAL(glibcpp_lldiv_t_use, [
|
||||
AC_TRY_COMPILE([#include <bits/os_defines.h>
|
||||
#include <stdlib.h>],
|
||||
[ lldiv_t mydivt;],
|
||||
[glibcpp_lldiv_t_use=yes], [glibcpp_lldiv_t_use=no])
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_lldiv_t_use)
|
||||
if test x$glibcpp_lldiv_t_use = x"yes"; then
|
||||
AC_DEFINE(_GLIBCPP_HAVE_LLDIV_T)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([for enabled long long])
|
||||
if test x"$ac_strtoll" = xno || test x"$ac_strtoull" = xno; then
|
||||
enable_long_long=no;
|
||||
fi;
|
||||
AC_MSG_RESULT($enable_long_long)
|
||||
|
||||
dnl Option parsed, now set things appropriately
|
||||
# Option parsed, now set things appropriately
|
||||
if test x"$enable_long_long" = xyes; then
|
||||
AC_DEFINE(_GLIBCPP_USE_LONG_LONG)
|
||||
fi
|
||||
|
||||
# Reset CFLAGS
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
])
|
||||
|
||||
|
||||
|
|
49
libstdc++-v3/aclocal.m4
vendored
49
libstdc++-v3/aclocal.m4
vendored
|
@ -288,7 +288,7 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
|
|||
AC_REQUIRE([AC_PROG_LD])
|
||||
|
||||
# Set --gc-sections.
|
||||
if test "$ac_cv_prog_gnu_ld" = "broken"; then
|
||||
if test "$ac_cv_prog_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.
|
||||
|
@ -829,7 +829,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE_SUPPORT, [
|
|||
ctype_bsd=yes, ctype_bsd=no)
|
||||
AC_MSG_RESULT($ctype_bsd)
|
||||
if test $ctype_bsd = "yes"; then
|
||||
ctype_include_dir="config/os/freebsd"
|
||||
ctype_include_dir="config/os/bsd"
|
||||
ctype_default=no
|
||||
fi
|
||||
fi
|
||||
|
@ -845,23 +845,7 @@ AC_DEFUN(GLIBCPP_CHECK_CTYPE_SUPPORT, [
|
|||
ctype_freebsd34=yes, ctype_freebsd34=no)
|
||||
AC_MSG_RESULT($ctype_freebsd34)
|
||||
if test $ctype_freebsd34 = "yes"; then
|
||||
ctype_include_dir="config/os/freebsd"
|
||||
ctype_default=no
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl Test for <ctype> functionality -- NetBSD
|
||||
if test $ctype_default = "yes"; then
|
||||
AC_MSG_CHECKING([<ctype> for NetBSD])
|
||||
AC_TRY_COMPILE([#include <ctype.h>],
|
||||
[int
|
||||
foo (int a)
|
||||
{ return _S + _C + _U + _L \
|
||||
+ _N + _P + _X + _tolower_tab_[a] + _toupper_tab_[a];}], \
|
||||
ctype_netbsd=yes, ctype_netbsd=no)
|
||||
AC_MSG_RESULT($ctype_netbsd)
|
||||
if test $ctype_netbsd = "yes"; then
|
||||
ctype_include_dir="config/os/netbsd"
|
||||
ctype_include_dir="config/os/bsd"
|
||||
ctype_default=no
|
||||
fi
|
||||
fi
|
||||
|
@ -1468,21 +1452,44 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
|
|||
*) AC_MSG_ERROR([Unknown argument to enable/disable long long]) ;;
|
||||
esac],
|
||||
enable_long_long=GLIBCPP_ENABLE_LONG_LONG_DEFAULT)dnl
|
||||
|
||||
# Allow use of os-dependent settings, so that macros that turn on
|
||||
# C99 capabilities can be defined and used in a consistent way.
|
||||
OS_INC_PATH=${srcdir}/$os_include_dir
|
||||
ac_test_CFLAGS="${CFLAGS+set}"
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="-I$OS_INC_PATH"
|
||||
|
||||
# Check for the existance of functions used if long long is enabled.
|
||||
# Check for the existence of functions used if long long is enabled.
|
||||
AC_CHECK_FUNC(strtoll,,ac_strtoll=no)
|
||||
AC_CHECK_FUNC(strtoull,,ac_strtoull=no)
|
||||
|
||||
# Check for lldiv_t, et. al.
|
||||
AC_MSG_CHECKING([for lldiv_t declaration])
|
||||
AC_CACHE_VAL(glibcpp_lldiv_t_use, [
|
||||
AC_TRY_COMPILE([#include <bits/os_defines.h>
|
||||
#include <stdlib.h>],
|
||||
[ lldiv_t mydivt;],
|
||||
[glibcpp_lldiv_t_use=yes], [glibcpp_lldiv_t_use=no])
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_lldiv_t_use)
|
||||
if test x$glibcpp_lldiv_t_use = x"yes"; then
|
||||
AC_DEFINE(_GLIBCPP_HAVE_LLDIV_T)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([for enabled long long])
|
||||
if test x"$ac_strtoll" = xno || test x"$ac_strtoull" = xno; then
|
||||
enable_long_long=no;
|
||||
fi;
|
||||
AC_MSG_RESULT($enable_long_long)
|
||||
|
||||
dnl Option parsed, now set things appropriately
|
||||
# Option parsed, now set things appropriately
|
||||
if test x"$enable_long_long" = xyes; then
|
||||
AC_DEFINE(_GLIBCPP_USE_LONG_LONG)
|
||||
fi
|
||||
|
||||
# Reset CFLAGS
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
])
|
||||
|
||||
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
// Include support for shadow headers, ie --enable-cshadow-headers.
|
||||
#undef _GLIBCPP_USE_SHADOW_HEADERS
|
||||
|
||||
// Define if lldiv_t exists in stdlib.h.
|
||||
#undef _GLIBCPP_HAVE_LLDIV_T
|
||||
|
||||
// Define if the host has a type mbstate_t defined in
|
||||
// wchar.h, as required by 21.1.3.1. Some systems, namely
|
||||
// hppa-hp-hpux10.20 do not meet this requirement, and must be worked
|
||||
|
@ -282,24 +285,6 @@
|
|||
/* Define if you have the atanl function. */
|
||||
#undef HAVE_ATANL
|
||||
|
||||
/* Define if you have the c_log function. */
|
||||
#undef HAVE_C_LOG
|
||||
|
||||
/* Define if you have the c_logf function. */
|
||||
#undef HAVE_C_LOGF
|
||||
|
||||
/* Define if you have the c_logl function. */
|
||||
#undef HAVE_C_LOGL
|
||||
|
||||
/* Define if you have the carg function. */
|
||||
#undef HAVE_CARG
|
||||
|
||||
/* Define if you have the cargf function. */
|
||||
#undef HAVE_CARGF
|
||||
|
||||
/* Define if you have the cargl function. */
|
||||
#undef HAVE_CARGL
|
||||
|
||||
/* Define if you have the ccos function. */
|
||||
#undef HAVE_CCOS
|
||||
|
||||
|
@ -333,12 +318,6 @@
|
|||
/* Define if you have the cexpl function. */
|
||||
#undef HAVE_CEXPL
|
||||
|
||||
/* Define if you have the clog10 function. */
|
||||
#undef HAVE_CLOG10
|
||||
|
||||
/* Define if you have the clog10f function. */
|
||||
#undef HAVE_CLOG10F
|
||||
|
||||
/* Define if you have the clog10l function. */
|
||||
#undef HAVE_CLOG10L
|
||||
|
||||
|
@ -363,12 +342,6 @@
|
|||
/* Define if you have the cosl function. */
|
||||
#undef HAVE_COSL
|
||||
|
||||
/* Define if you have the cpow function. */
|
||||
#undef HAVE_CPOW
|
||||
|
||||
/* Define if you have the cpowf function. */
|
||||
#undef HAVE_CPOWF
|
||||
|
||||
/* Define if you have the cpowl function. */
|
||||
#undef HAVE_CPOWL
|
||||
|
||||
|
|
|
@ -31,10 +31,10 @@
|
|||
#ifndef _GLIBCPP_OS_DEFINES
|
||||
# define _GLIBCPP_OS_DEFINES
|
||||
|
||||
// By enabling this, all GNU extensions are enabled.
|
||||
// By defining this, all GNU extensions are enabled.
|
||||
#define _GNU_SOURCE 1
|
||||
|
||||
// By enabling this, all ISO C99 functionality is enabled.
|
||||
// By defining this, all ISO C99 functionality is enabled.
|
||||
#define _ISOC99_SOURCE 1
|
||||
|
||||
// This keeps isanum, et al from being propagated as macros.
|
||||
|
|
2115
libstdc++-v3/configure
vendored
2115
libstdc++-v3/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -15,7 +15,10 @@ AC_ARG_WITH(target-subdir,
|
|||
AC_ARG_WITH(cross-host,
|
||||
[ --with-cross-host=HOST configuring with a cross compiler])
|
||||
|
||||
# Runs configure.host and configure.target. Have to run this before
|
||||
# the GLIBCPP_ENABLE_* macros below.
|
||||
GLIBCPP_CONFIGURE(.)
|
||||
|
||||
AC_LIBTOOL_DLOPEN
|
||||
AM_PROG_LIBTOOL
|
||||
AC_SUBST(enable_shared)
|
||||
|
@ -279,9 +282,3 @@ if test ! -f stamp-sanity-warned; then
|
|||
echo "before proceeding with ${_cv_gnu_make_command}."
|
||||
echo ""
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue