From dd79750c58271a30f8b79d055f4ad166f5a00887 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 11 Aug 2008 15:08:20 +0000 Subject: [PATCH] configure.ac: Run GLIBCXX_CHECK_STDIO_MACROS unconditionally. 2008-08-11 Paolo Carlini * configure.ac: Run GLIBCXX_CHECK_STDIO_MACROS unconditionally. * configure: Regenerate. From-SVN: r138954 --- libstdc++-v3/ChangeLog | 5 ++ libstdc++-v3/configure | 143 +++++++++++++++++++------------------- libstdc++-v3/configure.ac | 5 +- 3 files changed, 78 insertions(+), 75 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f674cd6410de..73ca33f88b40 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2008-08-11 Paolo Carlini + + * configure.ac: Run GLIBCXX_CHECK_STDIO_MACROS unconditionally. + * configure: Regenerate. + 2008-08-10 Paolo Carlini * include/tr1_impl/type_traits (_DEFINE_SPEC*): Simplify. diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index fd776092e1f9..67070dd29c76 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -18249,6 +18249,77 @@ fi +# For common values of EOF, SEEK_CUR, SEEK_END. + + + echo "$as_me:$LINENO: checking for EOF == -1, SEEK_CUR == 1, SEEK_END == 2" >&5 +echo $ECHO_N "checking for EOF == -1, SEEK_CUR == 1, SEEK_END == 2... $ECHO_C" >&6 + if test "${glibcxx_cv_stdio_macros+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +#if ((EOF != -1) || (SEEK_CUR != 1) || (SEEK_END != 2)) + unusual values... + #endif + + ; + return 0; +} +_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 + glibcxx_cv_stdio_macros=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_stdio_macros=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + + echo "$as_me:$LINENO: result: $glibcxx_cv_stdio_macros" >&5 +echo "${ECHO_T}$glibcxx_cv_stdio_macros" >&6 + if test x"$glibcxx_cv_stdio_macros" = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_STDIO_MACROS 1 +_ACEOF + + fi + + # Only do link tests if native. Else, hardcode. if $GLIBCXX_IS_NATIVE; then @@ -41812,78 +41883,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu - # - - - echo "$as_me:$LINENO: checking for EOF == -1, SEEK_CUR == 1, SEEK_END == 2" >&5 -echo $ECHO_N "checking for EOF == -1, SEEK_CUR == 1, SEEK_END == 2... $ECHO_C" >&6 - if test "${glibcxx_cv_stdio_macros+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -#if ((EOF != -1) || (SEEK_CUR != 1) || (SEEK_END != 2)) - unusual values... - #endif - - ; - return 0; -} -_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 - glibcxx_cv_stdio_macros=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -glibcxx_cv_stdio_macros=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - - echo "$as_me:$LINENO: result: $glibcxx_cv_stdio_macros" >&5 -echo "${ECHO_T}$glibcxx_cv_stdio_macros" >&6 - if test x"$glibcxx_cv_stdio_macros" = x"yes"; then - -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_STDIO_MACROS 1 -_ACEOF - - fi - - - # For TLS support. # Check whether --enable-tls or --disable-tls was given. diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac index 6f530b3faa4f..ea5f14a4ad19 100644 --- a/libstdc++-v3/configure.ac +++ b/libstdc++-v3/configure.ac @@ -122,6 +122,8 @@ GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING([no]) # Checks for operating systems support that don't require linking. GLIBCXX_CHECK_SYSTEM_ERROR +# For common values of EOF, SEEK_CUR, SEEK_END. +GLIBCXX_CHECK_STDIO_MACROS # Only do link tests if native. Else, hardcode. if $GLIBCXX_IS_NATIVE; then @@ -167,9 +169,6 @@ if $GLIBCXX_IS_NATIVE; then # For gettimeofday support. GLIBCXX_CHECK_GETTIMEOFDAY - # - GLIBCXX_CHECK_STDIO_MACROS - # For TLS support. GCC_CHECK_TLS -- 2.47.2