mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 05:58:56 +08:00
acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT_ancilliary): Reorder and include all required headers for test against older POSIX standard.
* acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT_ancilliary): Reorder and include all required headers for test against older POSIX standard. (GLIBCPP_CHECK_SETRLIMIT): Likewise. (ac_setrlimit): Likewise. * aclocal.m4: Regenerate. * configure: Regenerate. * testsuite/testsuite_hooks.cc: Reorder and include all required headers for use against older POSIX standard. From-SVN: r54452
This commit is contained in:
parent
fce5a9f29b
commit
158d04aa28
@ -1,3 +1,14 @@
|
||||
2002-06-10 Loren J. Rittle <ljrittle@acm.org>
|
||||
|
||||
* acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT_ancilliary): Reorder and
|
||||
include all required headers for test against older POSIX standard.
|
||||
(GLIBCPP_CHECK_SETRLIMIT): Likewise.
|
||||
(ac_setrlimit): Likewise.
|
||||
* aclocal.m4: Regenerate.
|
||||
* configure: Regenerate.
|
||||
* testsuite/testsuite_hooks.cc: Reorder and include all
|
||||
required headers for use against older POSIX standard.
|
||||
|
||||
2002-06-08 Paolo Carlini <pcarlini@unitus.it>
|
||||
|
||||
* testsuite/backwards/strstream_members.cc: New.
|
||||
|
@ -1971,8 +1971,9 @@ dnl string, '#' otherwise
|
||||
dnl Check for headers for, and arguments to, the setrlimit() function.
|
||||
dnl Used only in testsuite_hooks.h.
|
||||
AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT_ancilliary, [
|
||||
AC_TRY_COMPILE([#include <sys/resource.h>
|
||||
#include <unistd.h>
|
||||
AC_TRY_COMPILE([#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
], [ int f = RLIMIT_$1 ; ],
|
||||
[glibcpp_mresult=1], [glibcpp_mresult=0])
|
||||
AC_DEFINE_UNQUOTED(HAVE_MEMLIMIT_$1, $glibcpp_mresult,
|
||||
@ -1980,7 +1981,7 @@ AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT_ancilliary, [
|
||||
])
|
||||
AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT, [
|
||||
setrlimit_have_headers=yes
|
||||
AC_CHECK_HEADERS(sys/resource.h unistd.h,
|
||||
AC_CHECK_HEADERS(unistd.h sys/time.h sys/resource.h,
|
||||
[],
|
||||
setrlimit_have_headers=no)
|
||||
# If don't have the headers, then we can't run the tests now, and we
|
||||
@ -1994,8 +1995,9 @@ AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT, [
|
||||
|
||||
# Check for rlimit, setrlimit.
|
||||
AC_CACHE_VAL(ac_setrlimit, [
|
||||
AC_TRY_COMPILE([#include <sys/resource.h>
|
||||
#include <unistd.h>
|
||||
AC_TRY_COMPILE([#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
],
|
||||
[ struct rlimit r; setrlimit(0, &r);],
|
||||
[ac_setrlimit=yes], [ac_setrlimit=no])
|
||||
|
37
libstdc++-v3/aclocal.m4
vendored
37
libstdc++-v3/aclocal.m4
vendored
@ -1983,8 +1983,9 @@ dnl string, '#' otherwise
|
||||
dnl Check for headers for, and arguments to, the setrlimit() function.
|
||||
dnl Used only in testsuite_hooks.h.
|
||||
AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT_ancilliary, [
|
||||
AC_TRY_COMPILE([#include <sys/resource.h>
|
||||
#include <unistd.h>
|
||||
AC_TRY_COMPILE([#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
], [ int f = RLIMIT_$1 ; ],
|
||||
[glibcpp_mresult=1], [glibcpp_mresult=0])
|
||||
AC_DEFINE_UNQUOTED(HAVE_MEMLIMIT_$1, $glibcpp_mresult,
|
||||
@ -1992,7 +1993,7 @@ AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT_ancilliary, [
|
||||
])
|
||||
AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT, [
|
||||
setrlimit_have_headers=yes
|
||||
AC_CHECK_HEADERS(sys/resource.h unistd.h,
|
||||
AC_CHECK_HEADERS(unistd.h sys/time.h sys/resource.h,
|
||||
[],
|
||||
setrlimit_have_headers=no)
|
||||
# If don't have the headers, then we can't run the tests now, and we
|
||||
@ -2006,8 +2007,9 @@ AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT, [
|
||||
|
||||
# Check for rlimit, setrlimit.
|
||||
AC_CACHE_VAL(ac_setrlimit, [
|
||||
AC_TRY_COMPILE([#include <sys/resource.h>
|
||||
#include <unistd.h>
|
||||
AC_TRY_COMPILE([#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
],
|
||||
[ struct rlimit r; setrlimit(0, &r);],
|
||||
[ac_setrlimit=yes], [ac_setrlimit=no])
|
||||
@ -2196,31 +2198,6 @@ AC_MSG_RESULT($enable_symvers)
|
||||
])
|
||||
|
||||
|
||||
# isc-posix.m4 serial 1 (gettext-0.10.40)
|
||||
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
|
||||
dnl This file is free software, distributed under the terms of the GNU
|
||||
dnl General Public License. As a special exception to the GNU General
|
||||
dnl Public License, this file may be distributed as part of a program
|
||||
dnl that contains a configuration script generated by Autoconf, under
|
||||
dnl the same distribution terms as the rest of that program.
|
||||
|
||||
# This test replaces the one in autoconf.
|
||||
# Currently this macro should have the same name as the autoconf macro
|
||||
# because gettext's gettext.m4 (distributed in the automake package)
|
||||
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
|
||||
# give these diagnostics:
|
||||
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
|
||||
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
|
||||
|
||||
undefine([AC_ISC_POSIX])
|
||||
|
||||
AC_DEFUN([AC_ISC_POSIX],
|
||||
[
|
||||
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
|
||||
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
|
||||
]
|
||||
)
|
||||
|
||||
# Add --enable-maintainer-mode option to configure.
|
||||
# From Jim Meyering
|
||||
|
||||
|
2285
libstdc++-v3/configure
vendored
2285
libstdc++-v3/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -30,8 +30,9 @@
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
#ifdef _GLIBCPP_MEM_LIMITS
|
||||
#include <sys/resource.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
|
||||
void
|
||||
__set_testsuite_memlimit(float __size)
|
||||
|
Loading…
Reference in New Issue
Block a user