powerpc: Remove power8 strcasestr optimization
[glibc.git] / sysdeps / powerpc / preconfigure
blob4de94089a3f685325f639368a49ff0a03c3cbaa1
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local preconfigure fragment for sysdeps/powerpc
4 case "$machine" in
5 powerpc64le)
6   base_machine=powerpc machine=powerpc/powerpc64/le
7   ;;
8 powerpc64*)
9   base_machine=powerpc machine=powerpc/powerpc64/be
10   ;;
11 powerpc*)
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   ;;
21 esac
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.
30 case "${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 test ${libc_cv_cc_submachine+y}
43 then :
44   printf %s "(cached) " >&6
45 else $as_nop
46   libc_cv_cc_submachine=""
49     ;;
50   405|440|464|476)
51     submachine=${archcpu}
52     if test ${libc_cv_cc_submachine+y}
53 then :
54   printf %s "(cached) " >&6
55 else $as_nop
56   libc_cv_cc_submachine=""
59     ;;
61   a2|970|power[4-9]|power5x|power6+|power10)
62     submachine=${archcpu}
63     if test ${libc_cv_cc_submachine+y}
64 then :
65   printf %s "(cached) " >&6
66 else $as_nop
67   libc_cv_cc_submachine=""
70     ;;
71   *)
72     # We couldn't figure it out, assume none
73     ;;
74   esac
75   ;;
76 esac