Commit fed6d628 by Bernhard Fischer Committed by Bernhard Reutner-Fischer

configure.ac (__stack_chk_fail): Add detecion for availability of SSP in uClibc by checking if...

2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>

	* configure.ac (__stack_chk_fail): Add detecion for availability
	of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
	* configure: Regenerate.

From-SVN: r131884
parent e5df4fb1
2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
* configure.ac (__stack_chk_fail): Add detecion for availability
of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
* configure: Regenerate.
2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com> 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
PR middle-end/34688 PR middle-end/34688
......
...@@ -16662,8 +16662,14 @@ else ...@@ -16662,8 +16662,14 @@ else
&& $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \ && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
$glibc_header_dir/features.h > /dev/null; then $glibc_header_dir/features.h > /dev/null; then
gcc_cv_libc_provides_ssp=yes gcc_cv_libc_provides_ssp=yes
elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
$glibc_header_dir/features.h > /dev/null && \
test -f $glibc_header_dir/bits/uClibc_config.h && \
$EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
$glibc_header_dir/bits/uClibc_config.h > /dev/null; then
gcc_cv_libc_provides_ssp=yes
fi fi
fi fi
;; ;;
*-*-darwin*) *-*-darwin*)
echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
......
...@@ -3398,8 +3398,14 @@ AC_CACHE_CHECK(__stack_chk_fail in target C library, ...@@ -3398,8 +3398,14 @@ AC_CACHE_CHECK(__stack_chk_fail in target C library,
&& $EGREP '^@<:@ @:>@*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \ && $EGREP '^@<:@ @:>@*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
$glibc_header_dir/features.h > /dev/null; then $glibc_header_dir/features.h > /dev/null; then
gcc_cv_libc_provides_ssp=yes gcc_cv_libc_provides_ssp=yes
elif $EGREP '^@<:@ @:>@*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
$glibc_header_dir/features.h > /dev/null && \
test -f $glibc_header_dir/bits/uClibc_config.h && \
$EGREP '^@<:@ @:>@*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
$glibc_header_dir/bits/uClibc_config.h > /dev/null; then
gcc_cv_libc_provides_ssp=yes
fi fi
fi fi
;; ;;
*-*-darwin*) *-*-darwin*)
AC_CHECK_FUNC(__stack_chk_fail,[gcc_cv_libc_provides_ssp=yes], AC_CHECK_FUNC(__stack_chk_fail,[gcc_cv_libc_provides_ssp=yes],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment