Fix libnldbl_nonshared.a references to internal libm symbols (bug 23735).
[glibc.git] / sysdeps / x86 / configure
blobb1ff2812497151cc8ca14b40798bab6a2878f722
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/x86.
4 if test x"$enable_cet" = xyes; then
5   # Check if CET can be enabled.
6   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CET can be enabled" >&5
7 $as_echo_n "checking whether CET can be enabled... " >&6; }
8 if ${libc_cv_x86_cet_available+:} false; then :
9   $as_echo_n "(cached) " >&6
10 else
11   cat > conftest.c <<EOF
12 #if !defined __CET__ || __CET__ != 3
13 # error CET isn't available.
14 #endif
15 EOF
16                  if { ac_try='${CC-cc} -c $CFLAGS -fcf-protection -include cet.h conftest.c 1>&5'
17   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18   (eval $ac_try) 2>&5
19   ac_status=$?
20   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21   test $ac_status = 0; }; }; then
22                    libc_cv_x86_cet_available=yes
23                  else
24                    libc_cv_x86_cet_available=no
25                  fi
26                  rm -rf conftest*
28 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_available" >&5
29 $as_echo "$libc_cv_x86_cet_available" >&6; }
30   if test $libc_cv_x86_cet_available = yes; then
31     enable_cet=yes
32   else
33     if test x"$enable_cet" = xdefault; then
34       enable_cet=no
35     else
36       as_fn_error $? "$CC doesn't support CET" "$LINENO" 5
37     fi
38   fi
40 if test $enable_cet = yes; then
41   # Check if assembler supports CET.
42   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS supports CET" >&5
43 $as_echo_n "checking whether $AS supports CET... " >&6; }
44 if ${libc_cv_x86_cet_as+:} false; then :
45   $as_echo_n "(cached) " >&6
46 else
47   cat > conftest.s <<EOF
48         incsspd %ecx
49 EOF
50                  if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest.o 1>&5'
51   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
52   (eval $ac_try) 2>&5
53   ac_status=$?
54   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55   test $ac_status = 0; }; }; then
56                    libc_cv_x86_cet_as=yes
57                  else
58                    libc_cv_x86_cet_as=no
59                  fi
60                  rm -rf conftest*
62 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_as" >&5
63 $as_echo "$libc_cv_x86_cet_as" >&6; }
64   if test $libc_cv_x86_cet_as = no; then
65     as_fn_error $? "$AS doesn't support CET" "$LINENO" 5
66   fi
68 config_vars="$config_vars
69 enable-cet = $enable_cet"