powerpc64 configure message
[glibc.git] / sysdeps / powerpc / powerpc64 / configure.ac
blobf309ba35a8144a93477e11f86853358aadae413c
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/powerpc/powerpc64.
4 AC_CACHE_CHECK(for support for overlapping .opd entries,
5 libc_cv_overlapping_opd, [dnl
6 libc_cv_overlapping_opd=no
7 echo 'void foo (void) {}' > conftest.c
8 if AC_TRY_COMMAND(${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then
9 changequote(,)dnl
10   if grep '\.TOC\.@tocbase' conftest.s > /dev/null; then
11     if grep '\.TOC\.@tocbase[   ]*,[    ]*0' conftest.s > /dev/null; then
12       :
13     else
14       libc_cv_overlapping_opd=yes
15     fi
16   fi
17 changequote([,])dnl
19 rm -f conftest.c conftest.s
21 if test x$libc_cv_overlapping_opd = xyes; then
22   AC_DEFINE(USE_PPC64_OVERLAPPING_OPD)