1# This file is generated from configure.ac by Autoconf. DO NOT EDIT! 2 # Local configure fragment for sysdeps/powerpc/powerpc64. 3 4{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for support for overlapping .opd entries" >&5 5$as_echo_n "checking for support for overlapping .opd entries... " >&6; } 6if ${libc_cv_overlapping_opd+:} false; then : 7 $as_echo_n "(cached) " >&6 8else 9 libc_cv_overlapping_opd=no 10echo 'void foo (void) {}' > conftest.c 11if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s 1>&5' 12 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 13 (eval $ac_try) 2>&5 14 ac_status=$? 15 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16 test $ac_status = 0; }; }; then 17 if grep '\.TOC\.@tocbase' conftest.s > /dev/null; then 18 if grep '\.TOC\.@tocbase[ ]*,[ ]*0' conftest.s > /dev/null; then 19 : 20 else 21 libc_cv_overlapping_opd=yes 22 fi 23 fi 24fi 25rm -f conftest.c conftest.s 26 27fi 28{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_overlapping_opd" >&5 29$as_echo "$libc_cv_overlapping_opd" >&6; } 30if test x$libc_cv_overlapping_opd = xyes; then 31 $as_echo "#define USE_PPC64_OVERLAPPING_OPD 1" >>confdefs.h 32 33fi 34 35# We check if compiler supports @notoc generation since there is no 36# gain by enabling it if it will be optimized away by the linker. 37# It also helps linkers that might not optimize it and end up 38# generating stubs with ISA 3.1 instruction even targetting older ISA. 39{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports @notoc" >&5 40$as_echo_n "checking if the compiler supports @notoc... " >&6; } 41if ${libc_cv_ppc64_notoc+:} false; then : 42 $as_echo_n "(cached) " >&6 43else 44 cat > conftest.c <<EOF 45int bar (void); 46int foo (void) { return bar () + 1; } 47EOF 48 libc_cv_ppc64_notoc=no 49 if { ac_try='${CC-cc} $libc_cv_cc_submachine $CFLAGS $CPPFLAGS -S -o conftest.s conftest.c' 50 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 51 (eval $ac_try) 2>&5 52 ac_status=$? 53 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 54 test $ac_status = 0; }; } \ 55 && { ac_try='grep -q -E 'bar@notoc' conftest.s' 56 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 57 (eval $ac_try) 2>&5 58 ac_status=$? 59 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 60 test $ac_status = 0; }; } 61 then 62 libc_cv_ppc64_notoc=yes 63 fi 64 rm -rf conftest.* 65fi 66{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_notoc" >&5 67$as_echo "$libc_cv_ppc64_notoc" >&6; } 68if test x$libc_cv_ppc64_notoc = xyes; then : 69 $as_echo "#define USE_PPC64_NOTOC 1" >>confdefs.h 70 71fi 72