acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Test for GNU ld before trying to use any of its options.
2000-07-26 Phil Edwards <pme@sourceware.cygnus.com> * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Test for GNU ld before trying to use any of its options. (CHECK_MATH_DECL*,CHECK_BUILTIN_MATH_DECL*): Cache tests. * aclocal.m4: Regenerate. * configure.in: Having found GNU make, name it. * configure: Regenerate. * docs/install.html: Mention possible problems with caching. * src/Makefile.am (CXXLINK): Use new OPT_LDFLAGS. * src/Makefile.in: Regenerate. * libio/Makefile.in: Regenerate. * math/Makefile.in: Regenerate. * Makefile.in: Regenerate. From-SVN: r35269
This commit is contained in:
parent
79d1334242
commit
421173e6d3
@ -1,3 +1,18 @@
|
||||
2000-07-26 Phil Edwards <pme@sourceware.cygnus.com>
|
||||
|
||||
* acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Test for GNU ld
|
||||
before trying to use any of its options.
|
||||
(CHECK_MATH_DECL*,CHECK_BUILTIN_MATH_DECL*): Cache tests.
|
||||
* aclocal.m4: Regenerate.
|
||||
* configure.in: Having found GNU make, name it.
|
||||
* configure: Regenerate.
|
||||
* docs/install.html: Mention possible problems with caching.
|
||||
* src/Makefile.am (CXXLINK): Use new OPT_LDFLAGS.
|
||||
* src/Makefile.in: Regenerate.
|
||||
* libio/Makefile.in: Regenerate.
|
||||
* math/Makefile.in: Regenerate.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2000-07-26 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
|
||||
|
||||
* src/misc-inst.cc (std): Remove instantiations.
|
||||
|
@ -85,6 +85,7 @@ LN_S = @LN_S@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OPT_LDFLAGS = @OPT_LDFLAGS@
|
||||
PACKAGE = @PACKAGE@
|
||||
RANLIB = @RANLIB@
|
||||
SECTION_FLAGS = @SECTION_FLAGS@
|
||||
|
@ -253,39 +253,56 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check to see if tricky linker opts can be used.
|
||||
dnl If GNU ld is in use, check to see if tricky linker opts can be used. If
|
||||
dnl the native linker is in use, all variables will be defined to something
|
||||
dnl safe (like an empty string).
|
||||
dnl
|
||||
dnl Define SECTION_LDFLAGS='-Wl,--gc-sections' if possible.
|
||||
dnl Define OPT_LDFLAGS='-Wl,-O1' if possible.
|
||||
dnl
|
||||
dnl Define SECTION_LDFLAGS='-Wl,--gc-sections' if possible
|
||||
dnl GLIBCPP_CHECK_LINKER_FEATURES
|
||||
AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
|
||||
# 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'
|
||||
# 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...
|
||||
AC_REQUIRE([AC_PROG_LD])
|
||||
if test "$ac_cv_prog_gnu_ld" = "no"; then
|
||||
SECTION_LDFLAGS=''
|
||||
OPT_LDFLAGS=''
|
||||
|
||||
# Check for -Wl,--gc-sections
|
||||
AC_MSG_CHECKING([for ld that supports -Wl,--gc-sections])
|
||||
AC_TRY_RUN([
|
||||
int main(void)
|
||||
{
|
||||
try { throw 1; }
|
||||
catch (...) { };
|
||||
return 0;
|
||||
}
|
||||
], [ac_sectionLDflags=yes], [ac_sectionLFflags=no], [ac_sectionLDflags=yes])
|
||||
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'
|
||||
fi
|
||||
AC_MSG_RESULT($ac_sectionLDflags)
|
||||
else # 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
|
||||
AC_MSG_CHECKING([for ld that supports -Wl,--gc-sections])
|
||||
AC_TRY_RUN([
|
||||
int main(void)
|
||||
{
|
||||
try { throw 1; }
|
||||
catch (...) { };
|
||||
return 0;
|
||||
}
|
||||
], [ac_sectionLDflags=yes], [ac_sectionLFflags=no], [ac_sectionLDflags=yes])
|
||||
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'
|
||||
fi
|
||||
AC_MSG_RESULT($ac_sectionLDflags)
|
||||
OPT_LDFLAGS='-Wl,-O1'
|
||||
|
||||
fi
|
||||
AC_SUBST(SECTION_LDFLAGS)
|
||||
AC_SUBST(OPT_LDFLAGS)
|
||||
])
|
||||
|
||||
|
||||
@ -302,15 +319,17 @@ dnl ASSUMES argument is a math function with ONE parameter
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1
|
||||
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_MSG_CHECKING([for $1 declaration])
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0);],
|
||||
[use_$1=yes], [use_$1=no])
|
||||
AC_MSG_RESULT($use_$1)
|
||||
AC_LANG_RESTORE
|
||||
if test x$use_$1 = x"yes"; then
|
||||
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0);],
|
||||
[glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
|
||||
if test x$glibcpp_cv_func_$1_use = x"yes"; then
|
||||
AC_CHECK_FUNCS($1)
|
||||
fi
|
||||
])
|
||||
@ -329,15 +348,17 @@ dnl ASSUMES argument is a math function with TWO parameters
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2
|
||||
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_MSG_CHECKING([for $1 declaration])
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0, 0);],
|
||||
[use_$1=yes], [use_$1=no])
|
||||
AC_MSG_RESULT($use_$1)
|
||||
AC_LANG_RESTORE
|
||||
if test x$use_$1 = x"yes"; then
|
||||
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0, 0);],
|
||||
[glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
|
||||
if test x$glibcpp_cv_func_$1_use = x"yes"; then
|
||||
AC_CHECK_FUNCS($1)
|
||||
fi
|
||||
])
|
||||
@ -356,15 +377,17 @@ dnl ASSUMES argument is a math function with THREE parameters
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3
|
||||
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_MSG_CHECKING([for $1 declaration])
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0, 0, 0);],
|
||||
[use_$1=yes], [use_$1=no])
|
||||
AC_MSG_RESULT($use_$1)
|
||||
AC_LANG_RESTORE
|
||||
if test x$use_$1 = x"yes"; then
|
||||
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0, 0, 0);],
|
||||
[glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
|
||||
if test x$glibcpp_cv_func_$1_use = x"yes"; then
|
||||
AC_CHECK_FUNCS($1)
|
||||
fi
|
||||
])
|
||||
@ -385,21 +408,25 @@ dnl ASSUMES argument is a math function with ONE parameter
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_BUILTIN_MATH_DECL_LINKAGE_1
|
||||
AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_MSG_CHECKING([for $1 declaration])
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0);],
|
||||
[use_$1=yes], [use_$1=no])
|
||||
AC_MSG_RESULT($use_$1)
|
||||
AC_LANG_RESTORE
|
||||
if test x$use_$1 = x"yes"; then
|
||||
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0);],
|
||||
[glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
|
||||
if test x$glibcpp_cv_func_$1_use = x"yes"; then
|
||||
AC_MSG_CHECKING([for $1 linkage])
|
||||
AC_CACHE_VAL(glibcpp_cv_func_$1_link, [
|
||||
AC_TRY_LINK([#include <math.h>],
|
||||
[ $1(0);],
|
||||
[link_$1=yes], [link_$1=no])
|
||||
AC_MSG_RESULT($link_$1)
|
||||
if test x$link_$1 = x"yes"; then
|
||||
[ $1(0);],
|
||||
[glibcpp_cv_func_$1_link=yes], [glibcpp_cv_func_$1_link=no])
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_cv_func_$1_link)
|
||||
if test x$glibcpp_cv_func_$1_link = x"yes"; then
|
||||
ac_tr_func=HAVE_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
||||
AC_DEFINE_UNQUOTED(${ac_tr_func})
|
||||
fi
|
||||
@ -1521,7 +1548,7 @@ dnl Then, if any (well almost any) other make is called, and GNU make also
|
||||
dnl exists, then the other make wraps the GNU make.
|
||||
dnl
|
||||
dnl @author John Darrington <j.darrington@elvis.murdoch.edu.au>
|
||||
dnl @version $Id: acinclude.m4,v 1.47 2000/07/26 06:51:37 bkoz Exp $
|
||||
dnl @version 1.1 #### replaced Id string now that Id is for lib-v3; pme
|
||||
dnl
|
||||
dnl #### Changes for libstdc++-v3: reformatting and linewrapping; prepending
|
||||
dnl #### GLIBCPP_ to the macro name; adding the :-make fallback in the
|
||||
|
155
libstdc++-v3/aclocal.m4
vendored
155
libstdc++-v3/aclocal.m4
vendored
@ -265,39 +265,56 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check to see if tricky linker opts can be used.
|
||||
dnl If GNU ld is in use, check to see if tricky linker opts can be used. If
|
||||
dnl the native linker is in use, all variables will be defined to something
|
||||
dnl safe (like an empty string).
|
||||
dnl
|
||||
dnl Define SECTION_LDFLAGS='-Wl,--gc-sections' if possible.
|
||||
dnl Define OPT_LDFLAGS='-Wl,-O1' if possible.
|
||||
dnl
|
||||
dnl Define SECTION_LDFLAGS='-Wl,--gc-sections' if possible
|
||||
dnl GLIBCPP_CHECK_LINKER_FEATURES
|
||||
AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
|
||||
# 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'
|
||||
# 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...
|
||||
AC_REQUIRE([AC_PROG_LD])
|
||||
if test "$ac_cv_prog_gnu_ld" = "no"; then
|
||||
SECTION_LDFLAGS=''
|
||||
OPT_LDFLAGS=''
|
||||
|
||||
# Check for -Wl,--gc-sections
|
||||
AC_MSG_CHECKING([for ld that supports -Wl,--gc-sections])
|
||||
AC_TRY_RUN([
|
||||
int main(void)
|
||||
{
|
||||
try { throw 1; }
|
||||
catch (...) { };
|
||||
return 0;
|
||||
}
|
||||
], [ac_sectionLDflags=yes], [ac_sectionLFflags=no], [ac_sectionLDflags=yes])
|
||||
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'
|
||||
fi
|
||||
AC_MSG_RESULT($ac_sectionLDflags)
|
||||
else # 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
|
||||
AC_MSG_CHECKING([for ld that supports -Wl,--gc-sections])
|
||||
AC_TRY_RUN([
|
||||
int main(void)
|
||||
{
|
||||
try { throw 1; }
|
||||
catch (...) { };
|
||||
return 0;
|
||||
}
|
||||
], [ac_sectionLDflags=yes], [ac_sectionLFflags=no], [ac_sectionLDflags=yes])
|
||||
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'
|
||||
fi
|
||||
AC_MSG_RESULT($ac_sectionLDflags)
|
||||
OPT_LDFLAGS='-Wl,-O1'
|
||||
|
||||
fi
|
||||
AC_SUBST(SECTION_LDFLAGS)
|
||||
AC_SUBST(OPT_LDFLAGS)
|
||||
])
|
||||
|
||||
|
||||
@ -314,15 +331,17 @@ dnl ASSUMES argument is a math function with ONE parameter
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1
|
||||
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_MSG_CHECKING([for $1 declaration])
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0);],
|
||||
[use_$1=yes], [use_$1=no])
|
||||
AC_MSG_RESULT($use_$1)
|
||||
AC_LANG_RESTORE
|
||||
if test x$use_$1 = x"yes"; then
|
||||
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0);],
|
||||
[glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
|
||||
if test x$glibcpp_cv_func_$1_use = x"yes"; then
|
||||
AC_CHECK_FUNCS($1)
|
||||
fi
|
||||
])
|
||||
@ -341,15 +360,17 @@ dnl ASSUMES argument is a math function with TWO parameters
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2
|
||||
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_MSG_CHECKING([for $1 declaration])
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0, 0);],
|
||||
[use_$1=yes], [use_$1=no])
|
||||
AC_MSG_RESULT($use_$1)
|
||||
AC_LANG_RESTORE
|
||||
if test x$use_$1 = x"yes"; then
|
||||
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0, 0);],
|
||||
[glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
|
||||
if test x$glibcpp_cv_func_$1_use = x"yes"; then
|
||||
AC_CHECK_FUNCS($1)
|
||||
fi
|
||||
])
|
||||
@ -368,15 +389,17 @@ dnl ASSUMES argument is a math function with THREE parameters
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3
|
||||
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_MSG_CHECKING([for $1 declaration])
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0, 0, 0);],
|
||||
[use_$1=yes], [use_$1=no])
|
||||
AC_MSG_RESULT($use_$1)
|
||||
AC_LANG_RESTORE
|
||||
if test x$use_$1 = x"yes"; then
|
||||
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0, 0, 0);],
|
||||
[glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
|
||||
if test x$glibcpp_cv_func_$1_use = x"yes"; then
|
||||
AC_CHECK_FUNCS($1)
|
||||
fi
|
||||
])
|
||||
@ -397,21 +420,25 @@ dnl ASSUMES argument is a math function with ONE parameter
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_BUILTIN_MATH_DECL_LINKAGE_1
|
||||
AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_MSG_CHECKING([for $1 declaration])
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0);],
|
||||
[use_$1=yes], [use_$1=no])
|
||||
AC_MSG_RESULT($use_$1)
|
||||
AC_LANG_RESTORE
|
||||
if test x$use_$1 = x"yes"; then
|
||||
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_TRY_COMPILE([#include <math.h>],
|
||||
[ $1(0);],
|
||||
[glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
|
||||
if test x$glibcpp_cv_func_$1_use = x"yes"; then
|
||||
AC_MSG_CHECKING([for $1 linkage])
|
||||
AC_CACHE_VAL(glibcpp_cv_func_$1_link, [
|
||||
AC_TRY_LINK([#include <math.h>],
|
||||
[ $1(0);],
|
||||
[link_$1=yes], [link_$1=no])
|
||||
AC_MSG_RESULT($link_$1)
|
||||
if test x$link_$1 = x"yes"; then
|
||||
[ $1(0);],
|
||||
[glibcpp_cv_func_$1_link=yes], [glibcpp_cv_func_$1_link=no])
|
||||
])
|
||||
AC_MSG_RESULT($glibcpp_cv_func_$1_link)
|
||||
if test x$glibcpp_cv_func_$1_link = x"yes"; then
|
||||
ac_tr_func=HAVE_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
||||
AC_DEFINE_UNQUOTED(${ac_tr_func})
|
||||
fi
|
||||
@ -1533,7 +1560,7 @@ dnl Then, if any (well almost any) other make is called, and GNU make also
|
||||
dnl exists, then the other make wraps the GNU make.
|
||||
dnl
|
||||
dnl @author John Darrington <j.darrington@elvis.murdoch.edu.au>
|
||||
dnl @version $Id: acinclude.m4,v 1.47 2000/07/26 06:51:37 bkoz Exp $
|
||||
dnl @version 1.1 #### replaced Id string now that Id is for lib-v3; pme
|
||||
dnl
|
||||
dnl #### Changes for libstdc++-v3: reformatting and linewrapping; prepending
|
||||
dnl #### GLIBCPP_ to the macro name; adding the :-make fallback in the
|
||||
|
5948
libstdc++-v3/configure
vendored
5948
libstdc++-v3/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -200,7 +200,7 @@ if test ! -f stamp-sanity-warned; then
|
||||
echo " faster => ${srcdir}/docs/configopts.html"
|
||||
echo " slower => <URL:http://sources.redhat.com/libstdc++/configopts.html>"
|
||||
echo ""
|
||||
echo "before proceeding with make."
|
||||
echo "before proceeding with ${_cv_gnu_make_command}."
|
||||
echo ""
|
||||
fi
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
<TITLE>libstdc++-v3 Installation Instructions</TITLE>
|
||||
<LINK REL="home" HREF="http://sources.redhat.com/libstdc++/">
|
||||
<LINK REL=StyleSheet HREF="lib3styles.css">
|
||||
<!-- $Id: install.html,v 1.4 2000/06/27 15:56:17 pme Exp $ -->
|
||||
<!-- $Id: install.html,v 1.5 2000/07/11 21:45:07 pme Exp $ -->
|
||||
</HEAD>
|
||||
<BODY>
|
||||
|
||||
@ -268,6 +268,15 @@
|
||||
message when compiling stringMAIN.cc, see <A HREF="#Werror">the
|
||||
resolution at the end of this document</A>.
|
||||
</P>
|
||||
<P>If you are rebuilding from a previous build [attempt], some
|
||||
information is kept in a cache file. This is stored in
|
||||
<EM>gccbuilddir/cpu-vendor-OS/</EM> if you are building with
|
||||
multilibs (the default), or in
|
||||
<EM>gccbuilddir/cpu-vendor-OS/</EM>libstdc++-v3 if you have
|
||||
multilibs disabled. The filename is config.cache; if previous
|
||||
information is causing problems, you can delete it entirely, or
|
||||
simply edit it and remove lines.
|
||||
</P>
|
||||
<P>You're done. Now install the rebuilt pieces with
|
||||
<PRE>
|
||||
make install</PRE>
|
||||
@ -383,7 +392,7 @@
|
||||
Comments and suggestions are welcome, and may be sent to
|
||||
<A HREF="mailto:pme@sources.redhat.com">Phil Edwards</A> or
|
||||
<A HREF="mailto:gdr@egcs.cygnus.com">Gabriel Dos Reis</A>.
|
||||
<BR> $Id: install.html,v 1.4 2000/06/27 15:56:17 pme Exp $
|
||||
<BR> $Id: install.html,v 1.5 2000/07/11 21:45:07 pme Exp $
|
||||
</EM></P>
|
||||
|
||||
|
||||
|
@ -85,6 +85,7 @@ LN_S = @LN_S@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OPT_LDFLAGS = @OPT_LDFLAGS@
|
||||
PACKAGE = @PACKAGE@
|
||||
RANLIB = @RANLIB@
|
||||
SECTION_FLAGS = @SECTION_FLAGS@
|
||||
|
@ -85,6 +85,7 @@ LN_S = @LN_S@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OPT_LDFLAGS = @OPT_LDFLAGS@
|
||||
PACKAGE = @PACKAGE@
|
||||
RANLIB = @RANLIB@
|
||||
SECTION_FLAGS = @SECTION_FLAGS@
|
||||
|
@ -21,6 +21,8 @@
|
||||
## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
## USA.
|
||||
|
||||
## $Id$
|
||||
|
||||
AUTOMAKE_OPTIONS = 1.3 gnits
|
||||
MAINT_CHARSET = latin1
|
||||
|
||||
@ -98,7 +100,7 @@ LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) \
|
||||
# rules automake generates would be used. We cannot allow CXX to be used
|
||||
# in libtool since this would add -lstdc++ to the link line which of
|
||||
# course is impossible.
|
||||
CXXLINK = $(LIBTOOL) --mode=link "$(CC)" -Wl,-O1 @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
||||
CXXLINK = $(LIBTOOL) --mode=link "$(CC)" @OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
|
||||
headers = \
|
||||
|
@ -84,6 +84,7 @@ LN_S = @LN_S@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OPT_LDFLAGS = @OPT_LDFLAGS@
|
||||
PACKAGE = @PACKAGE@
|
||||
RANLIB = @RANLIB@
|
||||
SECTION_FLAGS = @SECTION_FLAGS@
|
||||
@ -169,7 +170,7 @@ LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) \
|
||||
# rules automake generates would be used. We cannot allow CXX to be used
|
||||
# in libtool since this would add -lstdc++ to the link line which of
|
||||
# course is impossible.
|
||||
CXXLINK = $(LIBTOOL) --mode=link "$(CC)" -Wl,-O1 @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
||||
CXXLINK = $(LIBTOOL) --mode=link "$(CC)" @OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
headers = \
|
||||
bits/cpp_type_traits.h \
|
||||
|
Loading…
Reference in New Issue
Block a user