1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/powerpc/powerpc64.
4 # The Aix ld uses global .symbol_names instead of symbol_names
5 # and unfortunately early Linux PPC64 linkers use it as well.
6 echo "$as_me:$LINENO: checking for support for omitting dot symbols" >&5
7 echo $ECHO_N "checking for support for omitting dot symbols... $ECHO_C" >&6
8 if test "${libc_cv_omit_dot_syms+set}" = set; then
9 echo $ECHO_N "(cached) $ECHO_C" >&6
11 libc_cv_omit_dot_syms=no
12 echo 'void foo (void) {}' > conftest.c
13 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s 1>&5'
14 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18 (exit $ac_status); }; }; then
19 if grep -w '\.foo' conftest.s > /dev/null; then
22 libc_cv_omit_dot_syms=yes
25 rm -f conftest.c conftest.s
28 echo "$as_me:$LINENO: result: $libc_cv_omit_dot_syms" >&5
29 echo "${ECHO_T}$libc_cv_omit_dot_syms" >&6
30 if test x$libc_cv_omit_dot_syms != xyes; then
31 cat >>confdefs.h <<\_ACEOF
32 #define HAVE_ASM_GLOBAL_DOT_NAME 1
37 echo "$as_me:$LINENO: checking for linker support for overlapping .opd entries" >&5
38 echo $ECHO_N "checking for linker support for overlapping .opd entries... $ECHO_C" >&6
39 if test "${libc_cv_overlapping_opd+set}" = set; then
40 echo $ECHO_N "(cached) $ECHO_C" >&6
42 libc_cv_overlapping_opd=no
43 echo 'void foo (void) {}' > conftest.c
44 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s 1>&5'
45 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49 (exit $ac_status); }; }; then
50 if grep '\.TOC\.@tocbase' conftest.s > /dev/null; then
51 if grep '\.TOC\.@tocbase[ ]*,[ ]*0' conftest.s > /dev/null; then
54 libc_cv_overlapping_opd=yes
58 rm -f conftest.c conftest.s
61 echo "$as_me:$LINENO: result: $libc_cv_overlapping_opd" >&5
62 echo "${ECHO_T}$libc_cv_overlapping_opd" >&6
63 if test x$libc_cv_overlapping_opd = xyes; then
64 cat >>confdefs.h <<\_ACEOF
65 #define USE_PPC64_OVERLAPPING_OPD 1