configure: Move nm, objdump, and readelf to LIBC_PROG_BINUTILS
[glibc.git] / sysdeps / riscv / configure
blob2372225a260b9476a8a9a258980b42f3ad462578
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/riscv/elf.
4 # Check if static linker supports R_RISCV_ALIGN
5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for R_RISCV_ALIGN linker relaxation support" >&5
6 $as_echo_n "checking for R_RISCV_ALIGN linker relaxation support... " >&6; }
7 if ${libc_cv_riscv_r_align+:} false; then :
8   $as_echo_n "(cached) " >&6
9 else
10     cat > conftest.S <<EOF
11 .align 3
12 foo:
13   li a0,42
14   ret
15 EOF
16   libc_cv_riscv_r_align=no
17   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles $no_ssp -shared -fPIC -o contests.o conftest.S'
18   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19   (eval $ac_try) 2>&5
20   ac_status=$?
21   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22   test $ac_status = 0; }; }
23   then
24     libc_cv_riscv_r_align=yes
25   fi
26   rm -rf conftest.*
28 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_riscv_r_align" >&5
29 $as_echo "$libc_cv_riscv_r_align" >&6; }
30 config_vars="$config_vars
31 riscv-r-align = $libc_cv_riscv_r_align"