2013-10-30 03:20:52 +00:00
|
|
|
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
|
2012-03-22 15:28:39 +00:00
|
|
|
# Local preconfigure fragment for sysdeps/x86_64
|
|
|
|
|
|
|
|
test -n "$base_machine" || case "$machine" in
|
|
|
|
x86_64)
|
|
|
|
base_machine=x86_64
|
|
|
|
# Check if we are building for x32.
|
|
|
|
|
2023-06-29 18:34:16 +00:00
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC compiles in -mx32 mode by default" >&5
|
|
|
|
printf %s "checking whether $CC compiles in -mx32 mode by default... " >&6; }
|
|
|
|
if test ${libc_cv_x32+y}
|
|
|
|
then :
|
|
|
|
printf %s "(cached) " >&6
|
|
|
|
else $as_nop
|
2012-03-22 15:28:39 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
/* end confdefs.h. */
|
2012-04-13 23:24:17 +00:00
|
|
|
#ifndef __ILP32__
|
2012-03-22 15:28:39 +00:00
|
|
|
# error not x32
|
|
|
|
#endif
|
|
|
|
int
|
2023-06-29 18:34:16 +00:00
|
|
|
main (void)
|
2012-03-22 15:28:39 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
2023-06-29 18:34:16 +00:00
|
|
|
if ac_fn_c_try_compile "$LINENO"
|
|
|
|
then :
|
2012-03-22 15:28:39 +00:00
|
|
|
libc_cv_x32=yes
|
2023-06-29 18:34:16 +00:00
|
|
|
else $as_nop
|
2012-03-22 15:28:39 +00:00
|
|
|
libc_cv_x32=no
|
|
|
|
fi
|
2023-06-29 18:34:16 +00:00
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
2012-03-22 15:28:39 +00:00
|
|
|
fi
|
2023-06-29 18:34:16 +00:00
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x32" >&5
|
|
|
|
printf "%s\n" "$libc_cv_x32" >&6; }
|
2012-03-22 15:28:39 +00:00
|
|
|
if test $libc_cv_x32 = yes; then
|
|
|
|
machine=x86_64/x32
|
|
|
|
else
|
|
|
|
machine=x86_64/64
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
2023-06-29 18:34:16 +00:00
|
|
|
|