configure.host revision 77298
1219224Srwatson# This file is a shell script that overrides some of the tools and 2219224Srwatson# flags used on a host specific basis. 3219224Srwatson 4219224Srwatson# Since the "bfd/hosts" directory is shared by the bfd, opcodes, and 5219224Srwatson# binutils directories (at least), the index to it is also shared. 6219224Srwatson# This is that index. Each configure.in file should source this file 7219224Srwatson# in its per-host part. 8219224Srwatson 9219224Srwatson# This sets the following shell variables: 10219224Srwatson# HDEFINES host specific compiler options 11219224Srwatson# host64 set to true if 64 bit types are as fast as 32 bit 12219224Srwatson# HOST_64BIT_TYPE host 64 bit type 13219224Srwatson# HOST_U_64BIT_TYPE unsigned 64 bit type (not needed if 64BIT_TYPE is long) 14219224Srwatson 15219224SrwatsonHDEFINES= 16219224Srwatsonhost64=false 17219224SrwatsonHOST_64BIT_TYPE= 18219224SrwatsonHOST_U_64BIT_TYPE= 19219224Srwatson 20219224Srwatsoncase "${host}" in 21219224Srwatson 22219224Srwatsonalpha*-*-*) host64=true; HOST_64BIT_TYPE=long ;; 23219224Srwatson 24219224Srwatsonhppa*-*-hpux*) HDEFINES=-DHOST_HPPAHPUX ;; 25219224Srwatsonhppa*-*-hiux*) HDEFINES=-DHOST_HPPAHPUX ;; 26219224Srwatsonhppa*-*-mpeix*) HDEFINES=-DHOST_HPPAMPEIX ;; 27219224Srwatsonhppa*-*-bsd*) HDEFINES=-DHOST_HPPABSD ;; 28219224Srwatsonhppa*-*-osf*) HDEFINES=-DHOST_HPPAOSF ;; 29219224Srwatson 30219224Srwatsonia64-*-linux*) host64=true; HOST_64BIT_TYPE=long ;; 31321145Sngie 32219224Srwatsoni[3456]86-sequent-bsd*) HDEFINES=-Dshared=genshared ;; 33219224Srwatsoni[3456]86-sequent-sysv4*) ;; 34219224Srwatsoni[3456]86-sequent-sysv*) HDEFINES=-Dshared=genshared ;; 35219224Srwatson 36219224Srwatsonmips*-dec-netbsd*) ;; 37219224Srwatsonmips*-*-openbsd*) ;; 38219224Srwatsonmips*-dec-*) HDEFINES="-G 4" ;; 39219224Srwatsonmips*-sgi-irix3*) HDEFINES="-G 4" ;; 40219224Srwatsonmips*-sgi-irix4*) HDEFINES="-G 4" ;; 41263842Srwatsonmips*-sgi-irix6*) host64=true 42219224Srwatson HOST_64BIT_TYPE="long long"; 43219224Srwatson HOST_U_64BIT_TYPE="unsigned long long"; 44219224Srwatson ;; 45219224Srwatsonmips*-*-sysv4*) ;; 46219224Srwatsonmips*-*-sysv*) HDEFINES="-G 4" ;; 47219224Srwatsonmips*-*-riscos*) HDEFINES="-G 4" ;; 48219224Srwatson 49219224Srwatsonm68*-hp-hpux*) HDEFINES=-DHOST_HP300HPUX ;; 50219224Srwatson 51219224Srwatson*-*-aix*) HOST_64BIT_TYPE="long long" 52219224Srwatson HOST_U_64BIT_TYPE="unsigned long long" 53219224Srwatson ;; 54219224Srwatson 55261447Sbrueffer*-*-solaris*) HOST_64BIT_TYPE="long long" 56219224Srwatson HOST_U_64BIT_TYPE="unsigned long long" 57219224Srwatson ;; 58219224Srwatson 59219224Srwatson*-*-windows*) 60219224Srwatson HOST_64BIT_TYPE=__int64 61247602Spjd HOST_U_64BIT_TYPE="unsigned __int64" 62247602Spjd# The following krock is necessary because we can't run the build compiler 63247602Spjd# (MSVC) on the configure host, so we have to explicitly set the values here. 64247602Spjd# Note that this file is never run through autoconf, so we can't use any 65219224Srwatson# autoconf macros here. Because of this, we have to muck with autoconf 66219224Srwatson# variables explicitly. 67219224Srwatson ac_cv_func_mmap_fixed_mapped=no 68219224Srwatson ac_cv_header_time=no 69219224Srwatson ac_cv_func_getpagesize=no 70219224Srwatson ac_cv_func_madvise=no 71219224Srwatson ac_cv_func_mprotect=no 72306399Skib ac_cv_func_getuid=no 73306399Skib ac_cv_func_getgid=no 74306399Skib ac_cv_header_sys_file_h=no 75306399Skib ac_cv_header_sys_time_h=no 76306624Skib ac_cv_header_unistd_h=no 77306399Skib ;; 78306399Skibesac 79306399Skib