i386: Ignore --enable-cet
[platform/upstream/glibc.git] / sysdeps / x86_64 / configure
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/x86_64.
3
4 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -mprefer-vector-width=128" >&5
5 printf %s "checking -mprefer-vector-width=128... " >&6; }
6 if test ${libc_cv_cc_mprefer_vector_width+y}
7 then :
8   printf %s "(cached) " >&6
9 else $as_nop
10   if { ac_try='${CC-cc} -mprefer-vector-width=128 -xc /dev/null -S -o /dev/null'
11   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12   (eval $ac_try) 2>&5
13   ac_status=$?
14   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15   test $ac_status = 0; }; }
16 then :
17   libc_cv_cc_mprefer_vector_width=yes
18 else $as_nop
19   libc_cv_cc_mprefer_vector_width=no
20 fi
21
22 fi
23 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_mprefer_vector_width" >&5
24 printf "%s\n" "$libc_cv_cc_mprefer_vector_width" >&6; }
25 config_vars="$config_vars
26 config-cflags-mprefer-vector-width = $libc_cv_cc_mprefer_vector_width"
27
28 if test x"$build_mathvec" = xnotset; then
29   build_mathvec=yes
30 fi
31
32 if test $enable_cet != no; then
33   # Check if CET can be enabled.
34   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CET can be enabled" >&5
35 printf %s "checking whether CET can be enabled... " >&6; }
36 if test ${libc_cv_x86_cet_available+y}
37 then :
38   printf %s "(cached) " >&6
39 else $as_nop
40   cat > conftest.c <<EOF
41 #if !defined __CET__ || __CET__ != 3
42 # error CET isn't available.
43 #endif
44 EOF
45                  if { ac_try='${CC-cc} -c $CFLAGS -fcf-protection -include cet.h conftest.c 1>&5'
46   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
47   (eval $ac_try) 2>&5
48   ac_status=$?
49   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50   test $ac_status = 0; }; }; then
51                    libc_cv_x86_cet_available=yes
52                  else
53                    libc_cv_x86_cet_available=no
54                  fi
55                  rm -rf conftest*
56 fi
57 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_available" >&5
58 printf "%s\n" "$libc_cv_x86_cet_available" >&6; }
59   if test $libc_cv_x86_cet_available != yes; then
60     as_fn_error $? "$CC doesn't support CET" "$LINENO" 5
61   fi
62 fi
63 if test $enable_cet != no; then
64   # Check if assembler supports CET.
65   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CET" >&5
66 printf %s "checking whether assembler supports CET... " >&6; }
67 if test ${libc_cv_x86_cet_as+y}
68 then :
69   printf %s "(cached) " >&6
70 else $as_nop
71   cat > conftest.s <<EOF
72         incsspd %ecx
73 EOF
74                  if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest.o 1>&5'
75   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
76   (eval $ac_try) 2>&5
77   ac_status=$?
78   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79   test $ac_status = 0; }; }; then
80                    libc_cv_x86_cet_as=yes
81                  else
82                    libc_cv_x86_cet_as=no
83                  fi
84                  rm -rf conftest*
85 fi
86 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_as" >&5
87 printf "%s\n" "$libc_cv_x86_cet_as" >&6; }
88   if test $libc_cv_x86_cet_as = no; then
89     as_fn_error $? "$AS doesn't support CET" "$LINENO" 5
90   fi
91 fi
92 if test $enable_cet = yes; then
93   printf "%s\n" "#define DEFAULT_DL_X86_CET_CONTROL cet_elf_property" >>confdefs.h
94
95 elif test $enable_cet = permissive; then
96   printf "%s\n" "#define DEFAULT_DL_X86_CET_CONTROL cet_permissive" >>confdefs.h
97
98 fi
99 config_vars="$config_vars
100 enable-cet = $enable_cet"
101
102 test -n "$critic_missing" && as_fn_error $? "
103 *** $critic_missing" "$LINENO" 5
104