Update copyright notices with scripts/update-copyrights
[glibc.git] / sysdeps / x86_64 / preconfigure
blobc8f1e0e132c0ba360675b1f2b0b4d8eb747d1f77
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local preconfigure fragment for sysdeps/x86_64
4 test -n "$base_machine" || case "$machine" in
5 x86_64)
6   base_machine=x86_64
7   # Check if we are building for x32.
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; }
11 if ${libc_cv_x32+:} false; then :
12   $as_echo_n "(cached) " >&6
13 else
14     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15 /* end confdefs.h.  */
16 #ifndef __ILP32__
17 # error not x32
18 #endif
19 int
20 main ()
23   ;
24   return 0;
26 _ACEOF
27 if ac_fn_c_try_compile "$LINENO"; then :
28   libc_cv_x32=yes
29 else
30   libc_cv_x32=no
32 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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   ;;
42 esac