|
Packit |
6c4009 |
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
|
|
Packit |
6c4009 |
# Local configure fragment for sysdeps/x86.
|
|
Packit |
6c4009 |
|
|
Packit Bot |
0c2104 |
if test x"$enable_cet" = xyes; then
|
|
Packit |
6c4009 |
# Check if CET can be enabled.
|
|
Packit |
6c4009 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CET can be enabled" >&5
|
|
Packit |
6c4009 |
$as_echo_n "checking whether CET can be enabled... " >&6; }
|
|
Packit |
6c4009 |
if ${libc_cv_x86_cet_available+:} false; then :
|
|
Packit |
6c4009 |
$as_echo_n "(cached) " >&6
|
|
Packit |
6c4009 |
else
|
|
Packit |
6c4009 |
cat > conftest.c <
|
|
Packit |
6c4009 |
#if !defined __CET__ || __CET__ != 3
|
|
Packit |
6c4009 |
# error CET isn't available.
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
EOF
|
|
Packit |
6c4009 |
if { ac_try='${CC-cc} -c $CFLAGS -fcf-protection -include cet.h conftest.c 1>&5'
|
|
Packit |
6c4009 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
|
Packit |
6c4009 |
(eval $ac_try) 2>&5
|
|
Packit |
6c4009 |
ac_status=$?
|
|
Packit |
6c4009 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
Packit |
6c4009 |
test $ac_status = 0; }; }; then
|
|
Packit |
6c4009 |
libc_cv_x86_cet_available=yes
|
|
Packit |
6c4009 |
else
|
|
Packit |
6c4009 |
libc_cv_x86_cet_available=no
|
|
Packit |
6c4009 |
fi
|
|
Packit |
6c4009 |
rm -rf conftest*
|
|
Packit |
6c4009 |
fi
|
|
Packit |
6c4009 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_available" >&5
|
|
Packit |
6c4009 |
$as_echo "$libc_cv_x86_cet_available" >&6; }
|
|
Packit Bot |
0c2104 |
if test $libc_cv_x86_cet_available = yes; then
|
|
Packit Bot |
0c2104 |
enable_cet=yes
|
|
Packit Bot |
0c2104 |
else
|
|
Packit Bot |
0c2104 |
if test x"$enable_cet" = xdefault; then
|
|
Packit Bot |
0c2104 |
enable_cet=no
|
|
Packit Bot |
0c2104 |
else
|
|
Packit Bot |
0c2104 |
as_fn_error $? "$CC doesn't support CET" "$LINENO" 5
|
|
Packit Bot |
0c2104 |
fi
|
|
Packit |
6c4009 |
fi
|
|
Packit |
6c4009 |
fi
|
|
Packit Bot |
0c2104 |
if test $enable_cet = yes; then
|
|
Packit |
6c4009 |
# Check if assembler supports CET.
|
|
Packit |
6c4009 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS supports CET" >&5
|
|
Packit |
6c4009 |
$as_echo_n "checking whether $AS supports CET... " >&6; }
|
|
Packit |
6c4009 |
if ${libc_cv_x86_cet_as+:} false; then :
|
|
Packit |
6c4009 |
$as_echo_n "(cached) " >&6
|
|
Packit |
6c4009 |
else
|
|
Packit |
6c4009 |
cat > conftest.s <
|
|
Packit |
6c4009 |
incsspd %ecx
|
|
Packit |
6c4009 |
EOF
|
|
Packit |
6c4009 |
if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest.o 1>&5'
|
|
Packit |
6c4009 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
|
Packit |
6c4009 |
(eval $ac_try) 2>&5
|
|
Packit |
6c4009 |
ac_status=$?
|
|
Packit |
6c4009 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
Packit |
6c4009 |
test $ac_status = 0; }; }; then
|
|
Packit |
6c4009 |
libc_cv_x86_cet_as=yes
|
|
Packit |
6c4009 |
else
|
|
Packit |
6c4009 |
libc_cv_x86_cet_as=no
|
|
Packit |
6c4009 |
fi
|
|
Packit |
6c4009 |
rm -rf conftest*
|
|
Packit |
6c4009 |
fi
|
|
Packit |
6c4009 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_as" >&5
|
|
Packit |
6c4009 |
$as_echo "$libc_cv_x86_cet_as" >&6; }
|
|
Packit |
6c4009 |
if test $libc_cv_x86_cet_as = no; then
|
|
Packit |
6c4009 |
as_fn_error $? "$AS doesn't support CET" "$LINENO" 5
|
|
Packit |
6c4009 |
fi
|
|
Packit |
6c4009 |
fi
|
|
Packit |
6c4009 |
config_vars="$config_vars
|
|
Packit |
6c4009 |
enable-cet = $enable_cet"
|