1# This file is generated from configure.ac by Autoconf. DO NOT EDIT! 2 # Local preconfigure fragment for sysdeps/powerpc 3 4case "$machine" in 5powerpc64le) 6 base_machine=powerpc machine=powerpc/powerpc64/le 7 ;; 8powerpc64*) 9 base_machine=powerpc machine=powerpc/powerpc64/be 10 ;; 11powerpc*) 12 base_machine=powerpc machine=powerpc/powerpc32 13 with_fp_cond="!defined __NO_FPRS__" 14 case "$host_os" in 15 *gnuspe*) 16 # SPE support was dropped in glibc 2.30. 17 as_fn_error $? "Host system type $host is no longer supported." "$LINENO" 5 18 ;; 19 esac 20 ;; 21esac 22 23# Lets ask the compiler which Power processor we've got, in case the user did 24# not choose a --with-cpu value. Scan a trivial generated assembly program 25# and scrape the first 26# .machine <machine> 27# or 28# .ascii "-mcpu=<machine>" 29# directive which shows up, and try using it. 30case "${machine}:${submachine}" in 31*powerpc*:) 32 archcpu=`echo "int foo () { return 0; }" \ 33 | $CC $CFLAGS $CPPFLAGS -S -frecord-gcc-switches -xc -o - - \ 34 | grep -E "mcpu=|.machine" -m 1 \ 35 | sed -e "s/.*machine //" -e "s/.*mcpu=\(.*\)\"/\1/"` 36 # Note if you add patterns here you must ensure that an appropriate 37 # directory exists in sysdeps/powerpc. Likewise, if we find a 38 # cpu, don't let the generic configure append extra compiler options. 39 case "$archcpu" in 40 405fp|440fp|464fp|476fp) 41 submachine=${archcpu%fp} 42 if ${libc_cv_cc_submachine+:} false; then : 43 $as_echo_n "(cached) " >&6 44else 45 libc_cv_cc_submachine="" 46fi 47 48 ;; 49 405|440|464|476) 50 submachine=${archcpu} 51 if ${libc_cv_cc_submachine+:} false; then : 52 $as_echo_n "(cached) " >&6 53else 54 libc_cv_cc_submachine="" 55fi 56 57 ;; 58 59 a2|970|power[4-9]|power5x|power6+|power10) 60 submachine=${archcpu} 61 if ${libc_cv_cc_submachine+:} false; then : 62 $as_echo_n "(cached) " >&6 63else 64 libc_cv_cc_submachine="" 65fi 66 67 ;; 68 *) 69 # We couldn't figure it out, assume none 70 ;; 71 esac 72 ;; 73esac 74