Blame sysdeps/x86_64/preconfigure
|
Packit Service |
82fcde |
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
|
|
Packit Service |
82fcde |
# Local preconfigure fragment for sysdeps/x86_64
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
test -n "$base_machine" || case "$machine" in
|
|
Packit Service |
82fcde |
x86_64)
|
|
Packit Service |
82fcde |
base_machine=x86_64
|
|
Packit Service |
82fcde |
# Check if we are building for x32.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC compiles in -mx32 mode by default" >&5
|
|
Packit Service |
82fcde |
$as_echo_n "checking whether $CC compiles in -mx32 mode by default... " >&6; }
|
|
Packit Service |
82fcde |
if ${libc_cv_x32+:} false; then :
|
|
Packit Service |
82fcde |
$as_echo_n "(cached) " >&6
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
Packit Service |
82fcde |
/* end confdefs.h. */
|
|
Packit Service |
82fcde |
#ifndef __ILP32__
|
|
Packit Service |
82fcde |
# error not x32
|
|
Packit Service |
82fcde |
#endif
|
|
Packit Service |
82fcde |
int
|
|
Packit Service |
82fcde |
main ()
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
;
|
|
Packit Service |
82fcde |
return 0;
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
_ACEOF
|
|
Packit Service |
82fcde |
if ac_fn_c_try_compile "$LINENO"; then :
|
|
Packit Service |
82fcde |
libc_cv_x32=yes
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
libc_cv_x32=no
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x32" >&5
|
|
Packit Service |
82fcde |
$as_echo "$libc_cv_x32" >&6; }
|
|
Packit Service |
82fcde |
if test $libc_cv_x32 = yes; then
|
|
Packit Service |
82fcde |
machine=x86_64/x32
|
|
Packit Service |
82fcde |
else
|
|
Packit Service |
82fcde |
machine=x86_64/64
|
|
Packit Service |
82fcde |
fi
|
|
Packit Service |
82fcde |
;;
|
|
Packit Service |
82fcde |
esac
|