configure.host revision 89857
133965Sjdp# This file is a shell script that overrides some of the tools and
233965Sjdp# flags used on a host specific basis.
333965Sjdp
433965Sjdp# Since the "bfd/hosts" directory is shared by the bfd, opcodes, and
533965Sjdp# binutils directories (at least), the index to it is also shared.
633965Sjdp# This is that index.  Each configure.in file should source this file
733965Sjdp# in its per-host part.
833965Sjdp
933965Sjdp# This sets the following shell variables:
1033965Sjdp#  HDEFINES		host specific compiler options
1133965Sjdp#  host64		set to true if 64 bit types are as fast as 32 bit
1233965Sjdp#  HOST_64BIT_TYPE	host 64 bit type
1333965Sjdp#  HOST_U_64BIT_TYPE	unsigned 64 bit type (not needed if 64BIT_TYPE is long)
1433965Sjdp
1533965SjdpHDEFINES=
1633965Sjdphost64=false
1733965SjdpHOST_64BIT_TYPE=
1838889SjdpHOST_U_64BIT_TYPE=
1933965Sjdp
2033965Sjdpcase "${host}" in
2133965Sjdp
2238889Sjdpalpha*-*-*)		host64=true; HOST_64BIT_TYPE=long ;;
2333965Sjdp
2489857Sobrienhppa*64*-*-hpux*)	HDEFINES=-DHOST_HPPAHPUX;
2589857Sobrien			host64=true; HOST_64BIT_TYPE=long ;;
2633965Sjdphppa*-*-hpux*)		HDEFINES=-DHOST_HPPAHPUX ;;
2733965Sjdphppa*-*-hiux*)		HDEFINES=-DHOST_HPPAHPUX ;;
2889857Sobrienhppa*64*-*-linux*)	host64=true; HOST_64BIT_TYPE=long ;;
2960484Sobrienhppa*-*-mpeix*)		HDEFINES=-DHOST_HPPAMPEIX ;;
3033965Sjdphppa*-*-bsd*)		HDEFINES=-DHOST_HPPABSD ;;
3133965Sjdphppa*-*-osf*)		HDEFINES=-DHOST_HPPAOSF ;;
3233965Sjdp
3377298Sobrienia64-*-linux*)		host64=true; HOST_64BIT_TYPE=long ;;
3489857Sobrienia64-*-aix*)		host64=true; HOST_64BIT_TYPE=long ;;
3577298Sobrien
3633965Sjdpi[3456]86-sequent-bsd*)	HDEFINES=-Dshared=genshared ;;
3733965Sjdpi[3456]86-sequent-sysv4*) ;;
3833965Sjdpi[3456]86-sequent-sysv*)	HDEFINES=-Dshared=genshared ;;
3933965Sjdp
4089857Sobrienmips*-*-netbsd*)	;;
4133965Sjdpmips*-*-openbsd*)	;;
4233965Sjdpmips*-dec-*)		HDEFINES="-G 4"	;;
4333965Sjdpmips*-sgi-irix3*)	HDEFINES="-G 4" ;;
4433965Sjdpmips*-sgi-irix4*)	HDEFINES="-G 4" ;;
4533965Sjdpmips*-sgi-irix6*)	host64=true
4633965Sjdp			HOST_64BIT_TYPE="long long";
4733965Sjdp			HOST_U_64BIT_TYPE="unsigned long long";
4833965Sjdp			;;
4989857Sobrienmips64*-*-linux*)	host64=true
5089857Sobrien			HOST_64BIT_TYPE="long long";
5189857Sobrien			HOST_U_64BIT_TYPE="unsigned long long";
5289857Sobrien			;;
5333965Sjdpmips*-*-sysv4*)		;;
5433965Sjdpmips*-*-sysv*)		HDEFINES="-G 4" ;;
5533965Sjdpmips*-*-riscos*)	HDEFINES="-G 4" ;;
5633965Sjdp
5733965Sjdpm68*-hp-hpux*)		HDEFINES=-DHOST_HP300HPUX ;;
5833965Sjdp
5977298Sobrien*-*-aix*)		HOST_64BIT_TYPE="long long"
6077298Sobrien			HOST_U_64BIT_TYPE="unsigned long long"
6177298Sobrien			;;
6277298Sobrien
6333965Sjdp*-*-solaris*)		HOST_64BIT_TYPE="long long"
6433965Sjdp			HOST_U_64BIT_TYPE="unsigned long long"
6533965Sjdp			;;
6633965Sjdp
6733965Sjdp*-*-windows*)
6833965Sjdp			HOST_64BIT_TYPE=__int64
6933965Sjdp			HOST_U_64BIT_TYPE="unsigned __int64"
7033965Sjdp# The following krock is necessary because we can't run the build compiler
7133965Sjdp# (MSVC) on the configure host, so we have to explicitly set the values here.
7233965Sjdp# Note that this file is never run through autoconf, so we can't use any
7333965Sjdp# autoconf macros here.  Because of this, we have to muck with autoconf
7433965Sjdp# variables explicitly.
7533965Sjdp			ac_cv_func_mmap_fixed_mapped=no
7633965Sjdp			ac_cv_header_time=no
7733965Sjdp			ac_cv_func_getpagesize=no
7833965Sjdp			ac_cv_func_madvise=no
7933965Sjdp			ac_cv_func_mprotect=no
8060484Sobrien			ac_cv_func_getuid=no
8160484Sobrien			ac_cv_func_getgid=no
8233965Sjdp			ac_cv_header_sys_file_h=no
8333965Sjdp			ac_cv_header_sys_time_h=no
8433965Sjdp			ac_cv_header_unistd_h=no
8533965Sjdp			;;
8633965Sjdpesac
87