blob: 9abbeec935e7abb069e4cf7fd0c14676784150ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# This file is generated from preconfigure.ac by Autoconf. DO NOT EDIT!
# Local preconfigure fragment for cpu/sysdeps/x86_64.
test -n "$base_machine" || case "$machine" in
x86_64)
base_machine=x86_64
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC uses the x86_64 x32 data model by default" >&5
printf %s "checking whether $CC uses the x86_64 x32 data model by default... " >&6; }
if test ${mcpu_cv_x86_64_x32+y}
then :
printf %s "(cached) " >&6
else case e in #(
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifndef __ILP32__
# error not x32
#endif
int main( void ) { return 0; }
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
mcpu_cv_x86_64_x32=yes
else case e in #(
e) mcpu_cv_x86_64_x32=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mcpu_cv_x86_64_x32" >&5
printf "%s\n" "$mcpu_cv_x86_64_x32" >&6; }
if test "$mcpu_cv_x86_64_x32" = yes; then
machine=x86_64/x32
MCPU_HOST_DATA_MODEL=ILP32
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC uses the x86_64 LP64 data model" >&5
printf %s "checking whether $CC uses the x86_64 LP64 data model... " >&6; }
if test ${mcpu_cv_x86_64_lp64+y}
then :
printf %s "(cached) " >&6
else case e in #(
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
typedef char mcpu_int_must_be_4[(sizeof(int) == 4) ? 1 : -1];
typedef char mcpu_long_must_be_8[(sizeof(long) == 8) ? 1 : -1];
typedef char mcpu_ptr_must_be_8[(sizeof(void *) == 8) ? 1 : -1];
int main( void ) { return 0; }
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
mcpu_cv_x86_64_lp64=yes
else case e in #(
e) mcpu_cv_x86_64_lp64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mcpu_cv_x86_64_lp64" >&5
printf "%s\n" "$mcpu_cv_x86_64_lp64" >&6; }
if test "$mcpu_cv_x86_64_lp64" != yes; then
as_fn_error $? "Not supported HOST $host: unsupported x86_64 data model" "$LINENO" 5
fi
machine=x86_64/64
MCPU_HOST_DATA_MODEL=LP64
fi
;;
esac
|