1# This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2 # Local preconfigure fragment for sysdeps/x86_64
3
4test -n "$base_machine" || case "$machine" in
5x86_64)
6  base_machine=x86_64
7  # Check if we are building for x32.
8
9{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC compiles in -mx32 mode by default" >&5
10$as_echo_n "checking whether $CC compiles in -mx32 mode by default... " >&6; }
11if ${libc_cv_x32+:} false; then :
12  $as_echo_n "(cached) " >&6
13else
14    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15/* end confdefs.h.  */
16#ifndef __ILP32__
17# error not x32
18#endif
19int
20main ()
21{
22
23  ;
24  return 0;
25}
26_ACEOF
27if ac_fn_c_try_compile "$LINENO"; then :
28  libc_cv_x32=yes
29else
30  libc_cv_x32=no
31fi
32rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33fi
34{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x32" >&5
35$as_echo "$libc_cv_x32" >&6; }
36  if test $libc_cv_x32 = yes; then
37    machine=x86_64/x32
38  else
39    machine=x86_64/64
40  fi
41  ;;
42esac
43