Home | History | Annotate | Line # | Download | only in bfd
configure.host revision 1.1
      1  1.1  christos # This file is a shell script that overrides some of the tools and
      2  1.1  christos # flags used on a host specific basis.
      3  1.1  christos 
      4  1.1  christos # Since the "bfd/hosts" directory is shared by the bfd, opcodes, and
      5  1.1  christos # binutils directories (at least), the index to it is also shared.
      6  1.1  christos # This is that index.  Each configure.in file should source this file
      7  1.1  christos # in its per-host part.
      8  1.1  christos 
      9  1.1  christos # This sets the following shell variables:
     10  1.1  christos #  HDEFINES		host specific compiler options
     11  1.1  christos #  host64		set to true if 64 bit types are as fast as 32 bit
     12  1.1  christos #  HOST_64BIT_TYPE	host 64 bit type
     13  1.1  christos #  HOST_U_64BIT_TYPE	unsigned 64 bit type (not needed if 64BIT_TYPE is long)
     14  1.1  christos 
     15  1.1  christos HDEFINES=
     16  1.1  christos host64=false
     17  1.1  christos HOST_64BIT_TYPE=
     18  1.1  christos HOST_U_64BIT_TYPE=
     19  1.1  christos 
     20  1.1  christos case "${host}" in
     21  1.1  christos 
     22  1.1  christos hppa*64*-*-hpux*)	# HP/UX's ftello64 et.al. declarations are only
     23  1.1  christos 			# visible when _LARGEFILE64_SOURCE is defined.
     24  1.1  christos 			# Without those declarations, real_ftell et.al.
     25  1.1  christos 			# get mis-compiled.
     26  1.1  christos 			HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE"
     27  1.1  christos 			host64=true;;
     28  1.1  christos hppa*-*-hpux*)		HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE" ;;
     29  1.1  christos hppa*-*-hiux*)		HDEFINES=-DHOST_HPPAHPUX ;;
     30  1.1  christos hppa*-*-mpeix*)		HDEFINES=-DHOST_HPPAMPEIX ;;
     31  1.1  christos hppa*-*-bsd*)		HDEFINES=-DHOST_HPPABSD ;;
     32  1.1  christos hppa*-*-osf*)		HDEFINES=-DHOST_HPPAOSF ;;
     33  1.1  christos 
     34  1.1  christos ia64-*-hpux*)		HDEFINES=-D_LARGEFILE64_SOURCE
     35  1.1  christos 			host64=true;;
     36  1.1  christos ia64-*-*)		host64=true;;
     37  1.1  christos 
     38  1.1  christos # Workaround for limitations on win9x where file contents are
     39  1.1  christos # not zero'd out if you seek past the end and then write.
     40  1.1  christos i[3-7]86-*-mingw32*)	HDEFINES=-D__USE_MINGW_FSEEK;;
     41  1.1  christos 
     42  1.1  christos i[3-7]86-sequent-bsd*)	HDEFINES=-Dshared=genshared ;;
     43  1.1  christos i[3-7]86-sequent-sysv4*) ;;
     44  1.1  christos i[3-7]86-sequent-sysv*)	HDEFINES=-Dshared=genshared ;;
     45  1.1  christos 
     46  1.1  christos mips*-*-netbsd*)	;;
     47  1.1  christos mips*-*-openbsd*)	;;
     48  1.1  christos mips*-dec-*)		HDEFINES="-G 4"	;;
     49  1.1  christos mips*-sgi-irix3*)	HDEFINES="-G 4" ;;
     50  1.1  christos mips*-sgi-irix4*)	HDEFINES="-G 4" ;;
     51  1.1  christos mips*-sgi-irix6*)	host64=true;;
     52  1.1  christos mips64*-*-linux*)	host64=true;;
     53  1.1  christos mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu) host64=true;;
     54  1.1  christos mips*-*-sysv4*)		;;
     55  1.1  christos mips*-*-sysv*)		HDEFINES="-G 4" ;;
     56  1.1  christos mips*-*-riscos*)	HDEFINES="-G 4" ;;
     57  1.1  christos 
     58  1.1  christos m68*-hp-hpux*)		HDEFINES=-DHOST_HP300HPUX ;;
     59  1.1  christos 
     60  1.1  christos # Some Solaris systems (osol0906 at least) have a libc that doesn't recognise
     61  1.1  christos # the "MS-ANSI" code page name, so we define an override for CP_ACP (sets the
     62  1.1  christos # default code page used by windres/windmc when not specified by a commandline
     63  1.1  christos # option) to select the "WINDOWS-1252" name instead.  See PR11280 for details.
     64  1.1  christos *-*-solaris2.11)	HDEFINES=-DCP_ACP=1 ;;
     65  1.1  christos 
     66  1.1  christos *-*-windows*)
     67  1.1  christos 			HOST_64BIT_TYPE=__int64
     68  1.1  christos 			HOST_U_64BIT_TYPE="unsigned __int64"
     69  1.1  christos # The following krock is necessary because we can't run the build compiler
     70  1.1  christos # (MSVC) on the configure host, so we have to explicitly set the values here.
     71  1.1  christos # Note that this file is never run through autoconf, so we can't use any
     72  1.1  christos # autoconf macros here.  Because of this, we have to muck with autoconf
     73  1.1  christos # variables explicitly.
     74  1.1  christos 			ac_cv_func_mmap_fixed_mapped=no
     75  1.1  christos 			ac_cv_header_time=no
     76  1.1  christos 			ac_cv_func_getpagesize=no
     77  1.1  christos 			ac_cv_func_madvise=no
     78  1.1  christos 			ac_cv_func_mprotect=no
     79  1.1  christos 			ac_cv_func_getuid=no
     80  1.1  christos 			ac_cv_func_getgid=no
     81  1.1  christos 			ac_cv_header_sys_file_h=no
     82  1.1  christos 			ac_cv_header_sys_time_h=no
     83  1.1  christos 			ac_cv_header_unistd_h=no
     84  1.1  christos 			;;
     85  1.1  christos esac
     86