glibc/sysdeps/x86_64/preconfigure

46 lines
1.0 KiB
Plaintext
Raw Normal View History

# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2012-03-22 23:28:39 +08: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.
{ 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 23:28:39 +08:00
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifndef __ILP32__
2012-03-22 23:28:39 +08:00
# error not x32
#endif
int
main (void)
2012-03-22 23:28:39 +08:00
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
2012-03-22 23:28:39 +08:00
libc_cv_x32=yes
else $as_nop
2012-03-22 23:28:39 +08:00
libc_cv_x32=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2012-03-22 23:28:39 +08:00
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x32" >&5
printf "%s\n" "$libc_cv_x32" >&6; }
2012-03-22 23:28:39 +08:00
if test $libc_cv_x32 = yes; then
machine=x86_64/x32
else
machine=x86_64/64
fi
;;
esac