Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | # This file is a shell script that overrides some of the tools and |
2 | # flags used on a host specific basis. | |
3 | ||
4 | # Since the "bfd/hosts" directory is shared by the bfd, opcodes, and | |
5 | # binutils directories (at least), the index to it is also shared. | |
6 | # This is that index. Each configure.in file should source this file | |
7 | # in its per-host part. | |
8 | ||
9 | # This sets the following shell variables: | |
10 | # HDEFINES host specific compiler options | |
11 | # host64 set to true if 64 bit types are as fast as 32 bit | |
12 | # HOST_64BIT_TYPE host 64 bit type | |
13 | # HOST_U_64BIT_TYPE unsigned 64 bit type (not needed if 64BIT_TYPE is long) | |
14 | ||
15 | HDEFINES= | |
16 | host64=false | |
17 | HOST_64BIT_TYPE= | |
18 | HOST_U_64BIT_TYPE= | |
19 | ||
20 | case "${host}" in | |
21 | ||
22 | alpha*-*-*) host64=true; HOST_64BIT_TYPE=long ;; | |
23 | ||
64328b46 AM |
24 | hppa*64*-*-hpux*) HDEFINES=-DHOST_HPPAHPUX; |
25 | host64=true; HOST_64BIT_TYPE=long ;; | |
252b5132 RH |
26 | hppa*-*-hpux*) HDEFINES=-DHOST_HPPAHPUX ;; |
27 | hppa*-*-hiux*) HDEFINES=-DHOST_HPPAHPUX ;; | |
64328b46 | 28 | hppa*64*-*-linux*) host64=true; HOST_64BIT_TYPE=long ;; |
252b5132 RH |
29 | hppa*-*-mpeix*) HDEFINES=-DHOST_HPPAMPEIX ;; |
30 | hppa*-*-bsd*) HDEFINES=-DHOST_HPPABSD ;; | |
31 | hppa*-*-osf*) HDEFINES=-DHOST_HPPAOSF ;; | |
32 | ||
800eeca4 | 33 | ia64-*-linux*) host64=true; HOST_64BIT_TYPE=long ;; |
7b6dab7f | 34 | ia64-*-aix*) host64=true; HOST_64BIT_TYPE=long ;; |
1b3e3744 AM |
35 | ia64-*-hpux*) host64=true |
36 | HOST_64BIT_TYPE="long long"; | |
37 | HOST_U_64BIT_TYPE="unsigned long long"; | |
38 | ;; | |
800eeca4 | 39 | |
252b5132 RH |
40 | i[3456]86-sequent-bsd*) HDEFINES=-Dshared=genshared ;; |
41 | i[3456]86-sequent-sysv4*) ;; | |
42 | i[3456]86-sequent-sysv*) HDEFINES=-Dshared=genshared ;; | |
43 | ||
3dc70b57 | 44 | mips*-*-netbsd*) ;; |
252b5132 RH |
45 | mips*-*-openbsd*) ;; |
46 | mips*-dec-*) HDEFINES="-G 4" ;; | |
47 | mips*-sgi-irix3*) HDEFINES="-G 4" ;; | |
48 | mips*-sgi-irix4*) HDEFINES="-G 4" ;; | |
49 | mips*-sgi-irix6*) host64=true | |
50 | HOST_64BIT_TYPE="long long"; | |
51 | HOST_U_64BIT_TYPE="unsigned long long"; | |
cbb1fd50 | 52 | ;; |
89084430 | 53 | mips64*-*-linux*) host64=true |
cbb1fd50 NC |
54 | HOST_64BIT_TYPE="long long"; |
55 | HOST_U_64BIT_TYPE="unsigned long long"; | |
252b5132 RH |
56 | ;; |
57 | mips*-*-sysv4*) ;; | |
58 | mips*-*-sysv*) HDEFINES="-G 4" ;; | |
59 | mips*-*-riscos*) HDEFINES="-G 4" ;; | |
60 | ||
61 | m68*-hp-hpux*) HDEFINES=-DHOST_HP300HPUX ;; | |
62 | ||
adfdf838 GK |
63 | *-*-aix*) HOST_64BIT_TYPE="long long" |
64 | HOST_U_64BIT_TYPE="unsigned long long" | |
65 | ;; | |
66 | ||
252b5132 RH |
67 | *-*-solaris*) HOST_64BIT_TYPE="long long" |
68 | HOST_U_64BIT_TYPE="unsigned long long" | |
69 | ;; | |
70 | ||
71 | *-*-windows*) | |
72 | HOST_64BIT_TYPE=__int64 | |
73 | HOST_U_64BIT_TYPE="unsigned __int64" | |
74 | # The following krock is necessary because we can't run the build compiler | |
75 | # (MSVC) on the configure host, so we have to explicitly set the values here. | |
76 | # Note that this file is never run through autoconf, so we can't use any | |
77 | # autoconf macros here. Because of this, we have to muck with autoconf | |
78 | # variables explicitly. | |
79 | ac_cv_func_mmap_fixed_mapped=no | |
80 | ac_cv_header_time=no | |
81 | ac_cv_func_getpagesize=no | |
82 | ac_cv_func_madvise=no | |
83 | ac_cv_func_mprotect=no | |
633fd09f ILT |
84 | ac_cv_func_getuid=no |
85 | ac_cv_func_getgid=no | |
252b5132 RH |
86 | ac_cv_header_sys_file_h=no |
87 | ac_cv_header_sys_time_h=no | |
88 | ac_cv_header_unistd_h=no | |
89 | ;; | |
90 | esac |