This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Fix / clean-up config vs crosses (3/n)
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 17 Aug 2008 14:33:49 +0200
- Subject: [v3] Fix / clean-up config vs crosses (3/n)
Hi,
another straightforward bit, checking for LC_MESSAGES doesn't require
linking. Tested x64_64-linux, committed to mainline.
Paolo.
/////////////////
2008-08-17 Paolo Carlini <paolo.carlini@oracle.com>
* acinclude.m4 ([AC_LC_MESSAGES]): Use AC_TRY_COMPILE instead of
AC_TRY_LINK.
* configure.ac: Run unconditionally AC_LC_MESSAGES.
* crossconfig.m4: Adjust.
* configure: Regenerate.
Index: configure.ac
===================================================================
*** configure.ac (revision 139168)
--- configure.ac (working copy)
*************** GLIBCXX_CHECK_C99_TR1
*** 143,148 ****
--- 143,150 ----
# For common values of EOF, SEEK_CUR, SEEK_END.
GLIBCXX_CHECK_STDIO_MACROS
+ AC_LC_MESSAGES
+
# Check for available headers.
AC_CHECK_HEADERS([endian.h float.h fp.h ieeefp.h inttypes.h locale.h \
machine/endian.h machine/param.h nan.h stdint.h stdlib.h string.h \
*************** if $GLIBCXX_IS_NATIVE; then
*** 177,184 ****
# For _Unwind_GetIPInfo.
GCC_CHECK_UNWIND_GETIPINFO
- AC_LC_MESSAGES
-
# For iconv support.
AM_ICONV
--- 179,184 ----
Index: crossconfig.m4
===================================================================
*** crossconfig.m4 (revision 139168)
--- crossconfig.m4 (working copy)
*************** case "${host}" in
*** 42,49 ****
GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
GLIBCXX_CHECK_STDLIB_SUPPORT
-
- AC_DEFINE(HAVE_LC_MESSAGES)
;;
*djgpp)
--- 42,47 ----
*************** case "${host}" in
*** 81,87 ****
AC_SUBST(SECTION_FLAGS)
GLIBCXX_CHECK_LINKER_FEATURES
GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
- AC_DEFINE(HAVE_LC_MESSAGES)
AC_DEFINE(HAVE_SETENV)
AC_DEFINE(HAVE_COPYSIGN)
AC_DEFINE(HAVE_COPYSIGNF)
--- 79,84 ----
*************** case "${host}" in
*** 156,163 ****
AC_DEFINE(_GLIBCXX_USE_RANDOM_TR1)
- AC_LC_MESSAGES
-
# For iconv support.
AM_ICONV
;;
--- 153,158 ----
*************** case "${host}" in
*** 220,226 ****
*-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
GLIBCXX_CHECK_LINKER_FEATURES
AC_DEFINE(HAVE_MBSTATE_T)
- AC_DEFINE(HAVE_LC_MESSAGES)
AC_DEFINE(HAVE_FINITE)
AC_DEFINE(HAVE_FPCLASS)
# All of the dependencies for wide character support are here, so
--- 215,220 ----
Index: acinclude.m4
===================================================================
*** acinclude.m4 (revision 139168)
--- acinclude.m4 (working copy)
*************** AC_DEFUN([GLIBCXX_ENABLE_THREADS], [
*** 2743,2749 ****
AC_DEFUN([AC_LC_MESSAGES], [
AC_CHECK_HEADER(locale.h, [
AC_CACHE_CHECK([for LC_MESSAGES], ac_cv_val_LC_MESSAGES,
! [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
ac_cv_val_LC_MESSAGES=yes, ac_cv_val_LC_MESSAGES=no)])
if test $ac_cv_val_LC_MESSAGES = yes; then
AC_DEFINE(HAVE_LC_MESSAGES, 1,
--- 2743,2749 ----
AC_DEFUN([AC_LC_MESSAGES], [
AC_CHECK_HEADER(locale.h, [
AC_CACHE_CHECK([for LC_MESSAGES], ac_cv_val_LC_MESSAGES,
! [AC_TRY_COMPILE([#include <locale.h>], [return LC_MESSAGES],
ac_cv_val_LC_MESSAGES=yes, ac_cv_val_LC_MESSAGES=no)])
if test $ac_cv_val_LC_MESSAGES = yes; then
AC_DEFINE(HAVE_LC_MESSAGES, 1,