configure revision 33965
133965Sjdp#! /bin/sh 233965Sjdp 333965Sjdp# Guess values for system-dependent variables and create Makefiles. 433965Sjdp# Generated automatically using autoconf version 2.12 533965Sjdp# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 633965Sjdp# 733965Sjdp# This configure script is free software; the Free Software Foundation 833965Sjdp# gives unlimited permission to copy, distribute and modify it. 933965Sjdp 1033965Sjdp# Defaults: 1133965Sjdpac_help= 1233965Sjdpac_default_prefix=/usr/local 1333965Sjdp# Any additions from configure.in: 1433965Sjdpac_help="$ac_help 1533965Sjdp --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)" 1633965Sjdpac_help="$ac_help 1733965Sjdp --enable-targets alternative target configurations" 1833965Sjdpac_help="$ac_help 1933965Sjdp --enable-shared build shared BFD library" 2033965Sjdpac_help="$ac_help 2133965Sjdp --enable-commonbfdlib build shared BFD/opcodes/libiberty library" 2233965Sjdpac_help="$ac_help 2333965Sjdp --with-mmap try using mmap for BFD input files if available" 2433965Sjdp 2533965Sjdp# Initialize some variables set by options. 2633965Sjdp# The variables have the same names as the options, with 2733965Sjdp# dashes changed to underlines. 2833965Sjdpbuild=NONE 2933965Sjdpcache_file=./config.cache 3033965Sjdpexec_prefix=NONE 3133965Sjdphost=NONE 3233965Sjdpno_create= 3333965Sjdpnonopt=NONE 3433965Sjdpno_recursion= 3533965Sjdpprefix=NONE 3633965Sjdpprogram_prefix=NONE 3733965Sjdpprogram_suffix=NONE 3833965Sjdpprogram_transform_name=s,x,x, 3933965Sjdpsilent= 4033965Sjdpsite= 4133965Sjdpsrcdir= 4233965Sjdptarget=NONE 4333965Sjdpverbose= 4433965Sjdpx_includes=NONE 4533965Sjdpx_libraries=NONE 4633965Sjdpbindir='${exec_prefix}/bin' 4733965Sjdpsbindir='${exec_prefix}/sbin' 4833965Sjdplibexecdir='${exec_prefix}/libexec' 4933965Sjdpdatadir='${prefix}/share' 5033965Sjdpsysconfdir='${prefix}/etc' 5133965Sjdpsharedstatedir='${prefix}/com' 5233965Sjdplocalstatedir='${prefix}/var' 5333965Sjdplibdir='${exec_prefix}/lib' 5433965Sjdpincludedir='${prefix}/include' 5533965Sjdpoldincludedir='/usr/include' 5633965Sjdpinfodir='${prefix}/info' 5733965Sjdpmandir='${prefix}/man' 5833965Sjdp 5933965Sjdp# Initialize some other variables. 6033965Sjdpsubdirs= 6133965SjdpMFLAGS= MAKEFLAGS= 6233965Sjdp# Maximum number of lines to put in a shell here document. 6333965Sjdpac_max_here_lines=12 6433965Sjdp 6533965Sjdpac_prev= 6633965Sjdpfor ac_option 6733965Sjdpdo 6833965Sjdp 6933965Sjdp # If the previous option needs an argument, assign it. 7033965Sjdp if test -n "$ac_prev"; then 7133965Sjdp eval "$ac_prev=\$ac_option" 7233965Sjdp ac_prev= 7333965Sjdp continue 7433965Sjdp fi 7533965Sjdp 7633965Sjdp case "$ac_option" in 7733965Sjdp -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 7833965Sjdp *) ac_optarg= ;; 7933965Sjdp esac 8033965Sjdp 8133965Sjdp # Accept the important Cygnus configure options, so we can diagnose typos. 8233965Sjdp 8333965Sjdp case "$ac_option" in 8433965Sjdp 8533965Sjdp -bindir | --bindir | --bindi | --bind | --bin | --bi) 8633965Sjdp ac_prev=bindir ;; 8733965Sjdp -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 8833965Sjdp bindir="$ac_optarg" ;; 8933965Sjdp 9033965Sjdp -build | --build | --buil | --bui | --bu) 9133965Sjdp ac_prev=build ;; 9233965Sjdp -build=* | --build=* | --buil=* | --bui=* | --bu=*) 9333965Sjdp build="$ac_optarg" ;; 9433965Sjdp 9533965Sjdp -cache-file | --cache-file | --cache-fil | --cache-fi \ 9633965Sjdp | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 9733965Sjdp ac_prev=cache_file ;; 9833965Sjdp -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 9933965Sjdp | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 10033965Sjdp cache_file="$ac_optarg" ;; 10133965Sjdp 10233965Sjdp -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 10333965Sjdp ac_prev=datadir ;; 10433965Sjdp -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 10533965Sjdp | --da=*) 10633965Sjdp datadir="$ac_optarg" ;; 10733965Sjdp 10833965Sjdp -disable-* | --disable-*) 10933965Sjdp ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 11033965Sjdp # Reject names that are not valid shell variable names. 11133965Sjdp if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 11233965Sjdp { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 11333965Sjdp fi 11433965Sjdp ac_feature=`echo $ac_feature| sed 's/-/_/g'` 11533965Sjdp eval "enable_${ac_feature}=no" ;; 11633965Sjdp 11733965Sjdp -enable-* | --enable-*) 11833965Sjdp ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 11933965Sjdp # Reject names that are not valid shell variable names. 12033965Sjdp if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 12133965Sjdp { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 12233965Sjdp fi 12333965Sjdp ac_feature=`echo $ac_feature| sed 's/-/_/g'` 12433965Sjdp case "$ac_option" in 12533965Sjdp *=*) ;; 12633965Sjdp *) ac_optarg=yes ;; 12733965Sjdp esac 12833965Sjdp eval "enable_${ac_feature}='$ac_optarg'" ;; 12933965Sjdp 13033965Sjdp -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 13133965Sjdp | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 13233965Sjdp | --exec | --exe | --ex) 13333965Sjdp ac_prev=exec_prefix ;; 13433965Sjdp -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 13533965Sjdp | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 13633965Sjdp | --exec=* | --exe=* | --ex=*) 13733965Sjdp exec_prefix="$ac_optarg" ;; 13833965Sjdp 13933965Sjdp -gas | --gas | --ga | --g) 14033965Sjdp # Obsolete; use --with-gas. 14133965Sjdp with_gas=yes ;; 14233965Sjdp 14333965Sjdp -help | --help | --hel | --he) 14433965Sjdp # Omit some internal or obsolete options to make the list less imposing. 14533965Sjdp # This message is too long to be a string in the A/UX 3.1 sh. 14633965Sjdp cat << EOF 14733965SjdpUsage: configure [options] [host] 14833965SjdpOptions: [defaults in brackets after descriptions] 14933965SjdpConfiguration: 15033965Sjdp --cache-file=FILE cache test results in FILE 15133965Sjdp --help print this message 15233965Sjdp --no-create do not create output files 15333965Sjdp --quiet, --silent do not print \`checking...' messages 15433965Sjdp --version print the version of autoconf that created configure 15533965SjdpDirectory and file names: 15633965Sjdp --prefix=PREFIX install architecture-independent files in PREFIX 15733965Sjdp [$ac_default_prefix] 15833965Sjdp --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 15933965Sjdp [same as prefix] 16033965Sjdp --bindir=DIR user executables in DIR [EPREFIX/bin] 16133965Sjdp --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 16233965Sjdp --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 16333965Sjdp --datadir=DIR read-only architecture-independent data in DIR 16433965Sjdp [PREFIX/share] 16533965Sjdp --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 16633965Sjdp --sharedstatedir=DIR modifiable architecture-independent data in DIR 16733965Sjdp [PREFIX/com] 16833965Sjdp --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 16933965Sjdp --libdir=DIR object code libraries in DIR [EPREFIX/lib] 17033965Sjdp --includedir=DIR C header files in DIR [PREFIX/include] 17133965Sjdp --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 17233965Sjdp --infodir=DIR info documentation in DIR [PREFIX/info] 17333965Sjdp --mandir=DIR man documentation in DIR [PREFIX/man] 17433965Sjdp --srcdir=DIR find the sources in DIR [configure dir or ..] 17533965Sjdp --program-prefix=PREFIX prepend PREFIX to installed program names 17633965Sjdp --program-suffix=SUFFIX append SUFFIX to installed program names 17733965Sjdp --program-transform-name=PROGRAM 17833965Sjdp run sed PROGRAM on installed program names 17933965SjdpEOF 18033965Sjdp cat << EOF 18133965SjdpHost type: 18233965Sjdp --build=BUILD configure for building on BUILD [BUILD=HOST] 18333965Sjdp --host=HOST configure for HOST [guessed] 18433965Sjdp --target=TARGET configure for TARGET [TARGET=HOST] 18533965SjdpFeatures and packages: 18633965Sjdp --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 18733965Sjdp --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 18833965Sjdp --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 18933965Sjdp --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 19033965Sjdp --x-includes=DIR X include files are in DIR 19133965Sjdp --x-libraries=DIR X library files are in DIR 19233965SjdpEOF 19333965Sjdp if test -n "$ac_help"; then 19433965Sjdp echo "--enable and --with options recognized:$ac_help" 19533965Sjdp fi 19633965Sjdp exit 0 ;; 19733965Sjdp 19833965Sjdp -host | --host | --hos | --ho) 19933965Sjdp ac_prev=host ;; 20033965Sjdp -host=* | --host=* | --hos=* | --ho=*) 20133965Sjdp host="$ac_optarg" ;; 20233965Sjdp 20333965Sjdp -includedir | --includedir | --includedi | --included | --include \ 20433965Sjdp | --includ | --inclu | --incl | --inc) 20533965Sjdp ac_prev=includedir ;; 20633965Sjdp -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 20733965Sjdp | --includ=* | --inclu=* | --incl=* | --inc=*) 20833965Sjdp includedir="$ac_optarg" ;; 20933965Sjdp 21033965Sjdp -infodir | --infodir | --infodi | --infod | --info | --inf) 21133965Sjdp ac_prev=infodir ;; 21233965Sjdp -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 21333965Sjdp infodir="$ac_optarg" ;; 21433965Sjdp 21533965Sjdp -libdir | --libdir | --libdi | --libd) 21633965Sjdp ac_prev=libdir ;; 21733965Sjdp -libdir=* | --libdir=* | --libdi=* | --libd=*) 21833965Sjdp libdir="$ac_optarg" ;; 21933965Sjdp 22033965Sjdp -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 22133965Sjdp | --libexe | --libex | --libe) 22233965Sjdp ac_prev=libexecdir ;; 22333965Sjdp -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 22433965Sjdp | --libexe=* | --libex=* | --libe=*) 22533965Sjdp libexecdir="$ac_optarg" ;; 22633965Sjdp 22733965Sjdp -localstatedir | --localstatedir | --localstatedi | --localstated \ 22833965Sjdp | --localstate | --localstat | --localsta | --localst \ 22933965Sjdp | --locals | --local | --loca | --loc | --lo) 23033965Sjdp ac_prev=localstatedir ;; 23133965Sjdp -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 23233965Sjdp | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 23333965Sjdp | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 23433965Sjdp localstatedir="$ac_optarg" ;; 23533965Sjdp 23633965Sjdp -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 23733965Sjdp ac_prev=mandir ;; 23833965Sjdp -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 23933965Sjdp mandir="$ac_optarg" ;; 24033965Sjdp 24133965Sjdp -nfp | --nfp | --nf) 24233965Sjdp # Obsolete; use --without-fp. 24333965Sjdp with_fp=no ;; 24433965Sjdp 24533965Sjdp -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 24633965Sjdp | --no-cr | --no-c) 24733965Sjdp no_create=yes ;; 24833965Sjdp 24933965Sjdp -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 25033965Sjdp | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 25133965Sjdp no_recursion=yes ;; 25233965Sjdp 25333965Sjdp -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 25433965Sjdp | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 25533965Sjdp | --oldin | --oldi | --old | --ol | --o) 25633965Sjdp ac_prev=oldincludedir ;; 25733965Sjdp -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 25833965Sjdp | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 25933965Sjdp | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 26033965Sjdp oldincludedir="$ac_optarg" ;; 26133965Sjdp 26233965Sjdp -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 26333965Sjdp ac_prev=prefix ;; 26433965Sjdp -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 26533965Sjdp prefix="$ac_optarg" ;; 26633965Sjdp 26733965Sjdp -program-prefix | --program-prefix | --program-prefi | --program-pref \ 26833965Sjdp | --program-pre | --program-pr | --program-p) 26933965Sjdp ac_prev=program_prefix ;; 27033965Sjdp -program-prefix=* | --program-prefix=* | --program-prefi=* \ 27133965Sjdp | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 27233965Sjdp program_prefix="$ac_optarg" ;; 27333965Sjdp 27433965Sjdp -program-suffix | --program-suffix | --program-suffi | --program-suff \ 27533965Sjdp | --program-suf | --program-su | --program-s) 27633965Sjdp ac_prev=program_suffix ;; 27733965Sjdp -program-suffix=* | --program-suffix=* | --program-suffi=* \ 27833965Sjdp | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 27933965Sjdp program_suffix="$ac_optarg" ;; 28033965Sjdp 28133965Sjdp -program-transform-name | --program-transform-name \ 28233965Sjdp | --program-transform-nam | --program-transform-na \ 28333965Sjdp | --program-transform-n | --program-transform- \ 28433965Sjdp | --program-transform | --program-transfor \ 28533965Sjdp | --program-transfo | --program-transf \ 28633965Sjdp | --program-trans | --program-tran \ 28733965Sjdp | --progr-tra | --program-tr | --program-t) 28833965Sjdp ac_prev=program_transform_name ;; 28933965Sjdp -program-transform-name=* | --program-transform-name=* \ 29033965Sjdp | --program-transform-nam=* | --program-transform-na=* \ 29133965Sjdp | --program-transform-n=* | --program-transform-=* \ 29233965Sjdp | --program-transform=* | --program-transfor=* \ 29333965Sjdp | --program-transfo=* | --program-transf=* \ 29433965Sjdp | --program-trans=* | --program-tran=* \ 29533965Sjdp | --progr-tra=* | --program-tr=* | --program-t=*) 29633965Sjdp program_transform_name="$ac_optarg" ;; 29733965Sjdp 29833965Sjdp -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 29933965Sjdp | -silent | --silent | --silen | --sile | --sil) 30033965Sjdp silent=yes ;; 30133965Sjdp 30233965Sjdp -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 30333965Sjdp ac_prev=sbindir ;; 30433965Sjdp -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 30533965Sjdp | --sbi=* | --sb=*) 30633965Sjdp sbindir="$ac_optarg" ;; 30733965Sjdp 30833965Sjdp -sharedstatedir | --sharedstatedir | --sharedstatedi \ 30933965Sjdp | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 31033965Sjdp | --sharedst | --shareds | --shared | --share | --shar \ 31133965Sjdp | --sha | --sh) 31233965Sjdp ac_prev=sharedstatedir ;; 31333965Sjdp -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 31433965Sjdp | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 31533965Sjdp | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 31633965Sjdp | --sha=* | --sh=*) 31733965Sjdp sharedstatedir="$ac_optarg" ;; 31833965Sjdp 31933965Sjdp -site | --site | --sit) 32033965Sjdp ac_prev=site ;; 32133965Sjdp -site=* | --site=* | --sit=*) 32233965Sjdp site="$ac_optarg" ;; 32333965Sjdp 32433965Sjdp -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 32533965Sjdp ac_prev=srcdir ;; 32633965Sjdp -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 32733965Sjdp srcdir="$ac_optarg" ;; 32833965Sjdp 32933965Sjdp -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 33033965Sjdp | --syscon | --sysco | --sysc | --sys | --sy) 33133965Sjdp ac_prev=sysconfdir ;; 33233965Sjdp -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 33333965Sjdp | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 33433965Sjdp sysconfdir="$ac_optarg" ;; 33533965Sjdp 33633965Sjdp -target | --target | --targe | --targ | --tar | --ta | --t) 33733965Sjdp ac_prev=target ;; 33833965Sjdp -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 33933965Sjdp target="$ac_optarg" ;; 34033965Sjdp 34133965Sjdp -v | -verbose | --verbose | --verbos | --verbo | --verb) 34233965Sjdp verbose=yes ;; 34333965Sjdp 34433965Sjdp -version | --version | --versio | --versi | --vers) 34533965Sjdp echo "configure generated by autoconf version 2.12" 34633965Sjdp exit 0 ;; 34733965Sjdp 34833965Sjdp -with-* | --with-*) 34933965Sjdp ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 35033965Sjdp # Reject names that are not valid shell variable names. 35133965Sjdp if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 35233965Sjdp { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 35333965Sjdp fi 35433965Sjdp ac_package=`echo $ac_package| sed 's/-/_/g'` 35533965Sjdp case "$ac_option" in 35633965Sjdp *=*) ;; 35733965Sjdp *) ac_optarg=yes ;; 35833965Sjdp esac 35933965Sjdp eval "with_${ac_package}='$ac_optarg'" ;; 36033965Sjdp 36133965Sjdp -without-* | --without-*) 36233965Sjdp ac_package=`echo $ac_option|sed -e 's/-*without-//'` 36333965Sjdp # Reject names that are not valid shell variable names. 36433965Sjdp if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 36533965Sjdp { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 36633965Sjdp fi 36733965Sjdp ac_package=`echo $ac_package| sed 's/-/_/g'` 36833965Sjdp eval "with_${ac_package}=no" ;; 36933965Sjdp 37033965Sjdp --x) 37133965Sjdp # Obsolete; use --with-x. 37233965Sjdp with_x=yes ;; 37333965Sjdp 37433965Sjdp -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 37533965Sjdp | --x-incl | --x-inc | --x-in | --x-i) 37633965Sjdp ac_prev=x_includes ;; 37733965Sjdp -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 37833965Sjdp | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 37933965Sjdp x_includes="$ac_optarg" ;; 38033965Sjdp 38133965Sjdp -x-libraries | --x-libraries | --x-librarie | --x-librari \ 38233965Sjdp | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 38333965Sjdp ac_prev=x_libraries ;; 38433965Sjdp -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 38533965Sjdp | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 38633965Sjdp x_libraries="$ac_optarg" ;; 38733965Sjdp 38833965Sjdp -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 38933965Sjdp ;; 39033965Sjdp 39133965Sjdp *) 39233965Sjdp if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 39333965Sjdp echo "configure: warning: $ac_option: invalid host type" 1>&2 39433965Sjdp fi 39533965Sjdp if test "x$nonopt" != xNONE; then 39633965Sjdp { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 39733965Sjdp fi 39833965Sjdp nonopt="$ac_option" 39933965Sjdp ;; 40033965Sjdp 40133965Sjdp esac 40233965Sjdpdone 40333965Sjdp 40433965Sjdpif test -n "$ac_prev"; then 40533965Sjdp { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 40633965Sjdpfi 40733965Sjdp 40833965Sjdptrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 40933965Sjdp 41033965Sjdp# File descriptor usage: 41133965Sjdp# 0 standard input 41233965Sjdp# 1 file creation 41333965Sjdp# 2 errors and warnings 41433965Sjdp# 3 some systems may open it to /dev/tty 41533965Sjdp# 4 used on the Kubota Titan 41633965Sjdp# 6 checking for... messages and results 41733965Sjdp# 5 compiler messages saved in config.log 41833965Sjdpif test "$silent" = yes; then 41933965Sjdp exec 6>/dev/null 42033965Sjdpelse 42133965Sjdp exec 6>&1 42233965Sjdpfi 42333965Sjdpexec 5>./config.log 42433965Sjdp 42533965Sjdpecho "\ 42633965SjdpThis file contains any messages produced by compilers while 42733965Sjdprunning configure, to aid debugging if configure makes a mistake. 42833965Sjdp" 1>&5 42933965Sjdp 43033965Sjdp# Strip out --no-create and --no-recursion so they do not pile up. 43133965Sjdp# Also quote any args containing shell metacharacters. 43233965Sjdpac_configure_args= 43333965Sjdpfor ac_arg 43433965Sjdpdo 43533965Sjdp case "$ac_arg" in 43633965Sjdp -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 43733965Sjdp | --no-cr | --no-c) ;; 43833965Sjdp -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 43933965Sjdp | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 44033965Sjdp *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 44133965Sjdp ac_configure_args="$ac_configure_args '$ac_arg'" ;; 44233965Sjdp *) ac_configure_args="$ac_configure_args $ac_arg" ;; 44333965Sjdp esac 44433965Sjdpdone 44533965Sjdp 44633965Sjdp# NLS nuisances. 44733965Sjdp# Only set these to C if already set. These must not be set unconditionally 44833965Sjdp# because not all systems understand e.g. LANG=C (notably SCO). 44933965Sjdp# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 45033965Sjdp# Non-C LC_CTYPE values break the ctype check. 45133965Sjdpif test "${LANG+set}" = set; then LANG=C; export LANG; fi 45233965Sjdpif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 45333965Sjdpif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 45433965Sjdpif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 45533965Sjdp 45633965Sjdp# confdefs.h avoids OS command line length limits that DEFS can exceed. 45733965Sjdprm -rf conftest* confdefs.h 45833965Sjdp# AIX cpp loses on an empty file, so make sure it contains at least a newline. 45933965Sjdpecho > confdefs.h 46033965Sjdp 46133965Sjdp# A filename unique to this package, relative to the directory that 46233965Sjdp# configure is in, which we can look for to find out if srcdir is correct. 46333965Sjdpac_unique_file=libbfd.c 46433965Sjdp 46533965Sjdp# Find the source files, if location was not specified. 46633965Sjdpif test -z "$srcdir"; then 46733965Sjdp ac_srcdir_defaulted=yes 46833965Sjdp # Try the directory containing this script, then its parent. 46933965Sjdp ac_prog=$0 47033965Sjdp ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 47133965Sjdp test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 47233965Sjdp srcdir=$ac_confdir 47333965Sjdp if test ! -r $srcdir/$ac_unique_file; then 47433965Sjdp srcdir=.. 47533965Sjdp fi 47633965Sjdpelse 47733965Sjdp ac_srcdir_defaulted=no 47833965Sjdpfi 47933965Sjdpif test ! -r $srcdir/$ac_unique_file; then 48033965Sjdp if test "$ac_srcdir_defaulted" = yes; then 48133965Sjdp { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 48233965Sjdp else 48333965Sjdp { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 48433965Sjdp fi 48533965Sjdpfi 48633965Sjdpsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 48733965Sjdp 48833965Sjdp# Prefer explicitly selected file to automatically selected ones. 48933965Sjdpif test -z "$CONFIG_SITE"; then 49033965Sjdp if test "x$prefix" != xNONE; then 49133965Sjdp CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 49233965Sjdp else 49333965Sjdp CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 49433965Sjdp fi 49533965Sjdpfi 49633965Sjdpfor ac_site_file in $CONFIG_SITE; do 49733965Sjdp if test -r "$ac_site_file"; then 49833965Sjdp echo "loading site script $ac_site_file" 49933965Sjdp . "$ac_site_file" 50033965Sjdp fi 50133965Sjdpdone 50233965Sjdp 50333965Sjdpif test -r "$cache_file"; then 50433965Sjdp echo "loading cache $cache_file" 50533965Sjdp . $cache_file 50633965Sjdpelse 50733965Sjdp echo "creating cache $cache_file" 50833965Sjdp > $cache_file 50933965Sjdpfi 51033965Sjdp 51133965Sjdpac_ext=c 51233965Sjdp# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 51333965Sjdpac_cpp='$CPP $CPPFLAGS' 51433965Sjdpac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 51533965Sjdpac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 51633965Sjdpcross_compiling=$ac_cv_prog_cc_cross 51733965Sjdp 51833965Sjdpif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 51933965Sjdp # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 52033965Sjdp if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 52133965Sjdp ac_n= ac_c=' 52233965Sjdp' ac_t=' ' 52333965Sjdp else 52433965Sjdp ac_n=-n ac_c= ac_t= 52533965Sjdp fi 52633965Sjdpelse 52733965Sjdp ac_n= ac_c='\c' ac_t= 52833965Sjdpfi 52933965Sjdp 53033965Sjdp 53133965Sjdp 53233965Sjdp# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. 53333965Sjdpif test "${enable_64_bit_bfd+set}" = set; then 53433965Sjdp enableval="$enable_64_bit_bfd" 53533965Sjdp case "${enableval}" in 53633965Sjdp yes) want64=true ;; 53733965Sjdp no) want64=false ;; 53833965Sjdp *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; 53933965Sjdpesac 54033965Sjdpelse 54133965Sjdp want64=false 54233965Sjdpfi 54333965Sjdp# Check whether --enable-targets or --disable-targets was given. 54433965Sjdpif test "${enable_targets+set}" = set; then 54533965Sjdp enableval="$enable_targets" 54633965Sjdp case "${enableval}" in 54733965Sjdp yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } 54833965Sjdp ;; 54933965Sjdp no) enable_targets= ;; 55033965Sjdp *) enable_targets=$enableval ;; 55133965Sjdpesac 55233965Sjdpfi 55333965Sjdp# Check whether --enable-shared or --disable-shared was given. 55433965Sjdpif test "${enable_shared+set}" = set; then 55533965Sjdp enableval="$enable_shared" 55633965Sjdp case "${enableval}" in 55733965Sjdp yes) shared=true ;; 55833965Sjdp no) shared=false ;; 55933965Sjdp *bfd*) shared=true ;; 56033965Sjdp *) shared=false ;; 56133965Sjdpesac 56233965Sjdpfi 56333965Sjdp# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. 56433965Sjdpif test "${enable_commonbfdlib+set}" = set; then 56533965Sjdp enableval="$enable_commonbfdlib" 56633965Sjdp case "${enableval}" in 56733965Sjdp yes) commonbfdlib=true ;; 56833965Sjdp no) commonbfdlib=false ;; 56933965Sjdp *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; 57033965Sjdpesac 57133965Sjdpfi 57233965Sjdp# Check whether --with-mmap or --without-mmap was given. 57333965Sjdpif test "${with_mmap+set}" = set; then 57433965Sjdp withval="$with_mmap" 57533965Sjdp case "${withval}" in 57633965Sjdp yes) want_mmap=true ;; 57733965Sjdp no) want_mmap=false ;; 57833965Sjdp *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;; 57933965Sjdpesac 58033965Sjdpelse 58133965Sjdp want_mmap=false 58233965Sjdpfi 58333965Sjdp 58433965Sjdp 58533965Sjdp 58633965Sjdpac_aux_dir= 58733965Sjdpfor ac_dir in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`; do 58833965Sjdp if test -f $ac_dir/install-sh; then 58933965Sjdp ac_aux_dir=$ac_dir 59033965Sjdp ac_install_sh="$ac_aux_dir/install-sh -c" 59133965Sjdp break 59233965Sjdp elif test -f $ac_dir/install.sh; then 59333965Sjdp ac_aux_dir=$ac_dir 59433965Sjdp ac_install_sh="$ac_aux_dir/install.sh -c" 59533965Sjdp break 59633965Sjdp fi 59733965Sjdpdone 59833965Sjdpif test -z "$ac_aux_dir"; then 59933965Sjdp { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`" 1>&2; exit 1; } 60033965Sjdpfi 60133965Sjdpac_config_guess=$ac_aux_dir/config.guess 60233965Sjdpac_config_sub=$ac_aux_dir/config.sub 60333965Sjdpac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 60433965Sjdp 60533965Sjdp 60633965Sjdp# Do some error checking and defaulting for the host and target type. 60733965Sjdp# The inputs are: 60833965Sjdp# configure --host=HOST --target=TARGET --build=BUILD NONOPT 60933965Sjdp# 61033965Sjdp# The rules are: 61133965Sjdp# 1. You are not allowed to specify --host, --target, and nonopt at the 61233965Sjdp# same time. 61333965Sjdp# 2. Host defaults to nonopt. 61433965Sjdp# 3. If nonopt is not specified, then host defaults to the current host, 61533965Sjdp# as determined by config.guess. 61633965Sjdp# 4. Target and build default to nonopt. 61733965Sjdp# 5. If nonopt is not specified, then target and build default to host. 61833965Sjdp 61933965Sjdp# The aliases save the names the user supplied, while $host etc. 62033965Sjdp# will get canonicalized. 62133965Sjdpcase $host---$target---$nonopt in 62233965SjdpNONE---*---* | *---NONE---* | *---*---NONE) ;; 62333965Sjdp*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 62433965Sjdpesac 62533965Sjdp 62633965Sjdp 62733965Sjdp# Make sure we can run config.sub. 62833965Sjdpif $ac_config_sub sun4 >/dev/null 2>&1; then : 62933965Sjdpelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 63033965Sjdpfi 63133965Sjdp 63233965Sjdpecho $ac_n "checking host system type""... $ac_c" 1>&6 63333965Sjdpecho "configure:634: checking host system type" >&5 63433965Sjdp 63533965Sjdphost_alias=$host 63633965Sjdpcase "$host_alias" in 63733965SjdpNONE) 63833965Sjdp case $nonopt in 63933965Sjdp NONE) 64033965Sjdp if host_alias=`$ac_config_guess`; then : 64133965Sjdp else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 64233965Sjdp fi ;; 64333965Sjdp *) host_alias=$nonopt ;; 64433965Sjdp esac ;; 64533965Sjdpesac 64633965Sjdp 64733965Sjdphost=`$ac_config_sub $host_alias` 64833965Sjdphost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 64933965Sjdphost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 65033965Sjdphost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 65133965Sjdpecho "$ac_t""$host" 1>&6 65233965Sjdp 65333965Sjdpecho $ac_n "checking target system type""... $ac_c" 1>&6 65433965Sjdpecho "configure:655: checking target system type" >&5 65533965Sjdp 65633965Sjdptarget_alias=$target 65733965Sjdpcase "$target_alias" in 65833965SjdpNONE) 65933965Sjdp case $nonopt in 66033965Sjdp NONE) target_alias=$host_alias ;; 66133965Sjdp *) target_alias=$nonopt ;; 66233965Sjdp esac ;; 66333965Sjdpesac 66433965Sjdp 66533965Sjdptarget=`$ac_config_sub $target_alias` 66633965Sjdptarget_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 66733965Sjdptarget_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 66833965Sjdptarget_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 66933965Sjdpecho "$ac_t""$target" 1>&6 67033965Sjdp 67133965Sjdpecho $ac_n "checking build system type""... $ac_c" 1>&6 67233965Sjdpecho "configure:673: checking build system type" >&5 67333965Sjdp 67433965Sjdpbuild_alias=$build 67533965Sjdpcase "$build_alias" in 67633965SjdpNONE) 67733965Sjdp case $nonopt in 67833965Sjdp NONE) build_alias=$host_alias ;; 67933965Sjdp *) build_alias=$nonopt ;; 68033965Sjdp esac ;; 68133965Sjdpesac 68233965Sjdp 68333965Sjdpbuild=`$ac_config_sub $build_alias` 68433965Sjdpbuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 68533965Sjdpbuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 68633965Sjdpbuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 68733965Sjdpecho "$ac_t""$build" 1>&6 68833965Sjdp 68933965Sjdptest "$host_alias" != "$target_alias" && 69033965Sjdp test "$program_prefix$program_suffix$program_transform_name" = \ 69133965Sjdp NONENONEs,x,x, && 69233965Sjdp program_prefix=${target_alias}- 69333965Sjdp 69433965Sjdpif test -z "$target" ; then 69533965Sjdp { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } 69633965Sjdpfi 69733965Sjdpif test "$program_transform_name" = s,x,x,; then 69833965Sjdp program_transform_name= 69933965Sjdpelse 70033965Sjdp # Double any \ or $. echo might interpret backslashes. 70133965Sjdp cat <<\EOF_SED > conftestsed 70233965Sjdps,\\,\\\\,g; s,\$,$$,g 70333965SjdpEOF_SED 70433965Sjdp program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 70533965Sjdp rm -f conftestsed 70633965Sjdpfi 70733965Sjdptest "$program_prefix" != NONE && 70833965Sjdp program_transform_name="s,^,${program_prefix},; $program_transform_name" 70933965Sjdp# Use a double $ so make ignores it. 71033965Sjdptest "$program_suffix" != NONE && 71133965Sjdp program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 71233965Sjdp 71333965Sjdp# sed with no file args requires a program. 71433965Sjdptest "$program_transform_name" = "" && program_transform_name="s,x,x," 71533965Sjdp 71633965Sjdp 71733965Sjdphost64=false 71833965Sjdptarget64=false 71933965Sjdp 72033965Sjdp# host stuff: 72133965Sjdp 72233965SjdpALLLIBS='$(TARGETLIB)' 72333965SjdpPICFLAG= 72433965SjdpSHLIB=unused-shlib 72533965SjdpSHLINK=unused-shlink 72633965Sjdpif test "${shared}" = "true"; then 72733965Sjdp PICFLAG=-fpic 72833965Sjdp if test "${commonbfdlib}" = "true"; then 72933965Sjdp ALLLIBS='$(TARGETLIB)' 73033965Sjdp else 73133965Sjdp ALLLIBS='$(TARGETLIB) $(SHLIB) $(SHLINK)' 73233965Sjdp SHLIB=libbfd.so.`sed -e 's/[^0-9]*\([0-9.]*\).*/\1/' ${srcdir}/VERSION` 73333965Sjdp SHLINK=libbfd.so 73433965Sjdp fi 73533965Sjdpfi 73633965Sjdp 73733965Sjdp# Extract the first word of "gcc", so it can be a program name with args. 73833965Sjdpset dummy gcc; ac_word=$2 73933965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 74033965Sjdpecho "configure:741: checking for $ac_word" >&5 74133965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 74233965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 74333965Sjdpelse 74433965Sjdp if test -n "$CC"; then 74533965Sjdp ac_cv_prog_CC="$CC" # Let the user override the test. 74633965Sjdpelse 74733965Sjdp IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 74833965Sjdp for ac_dir in $PATH; do 74933965Sjdp test -z "$ac_dir" && ac_dir=. 75033965Sjdp if test -f $ac_dir/$ac_word; then 75133965Sjdp ac_cv_prog_CC="gcc" 75233965Sjdp break 75333965Sjdp fi 75433965Sjdp done 75533965Sjdp IFS="$ac_save_ifs" 75633965Sjdpfi 75733965Sjdpfi 75833965SjdpCC="$ac_cv_prog_CC" 75933965Sjdpif test -n "$CC"; then 76033965Sjdp echo "$ac_t""$CC" 1>&6 76133965Sjdpelse 76233965Sjdp echo "$ac_t""no" 1>&6 76333965Sjdpfi 76433965Sjdp 76533965Sjdpif test -z "$CC"; then 76633965Sjdp # Extract the first word of "cc", so it can be a program name with args. 76733965Sjdpset dummy cc; ac_word=$2 76833965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 76933965Sjdpecho "configure:770: checking for $ac_word" >&5 77033965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 77133965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 77233965Sjdpelse 77333965Sjdp if test -n "$CC"; then 77433965Sjdp ac_cv_prog_CC="$CC" # Let the user override the test. 77533965Sjdpelse 77633965Sjdp IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 77733965Sjdp ac_prog_rejected=no 77833965Sjdp for ac_dir in $PATH; do 77933965Sjdp test -z "$ac_dir" && ac_dir=. 78033965Sjdp if test -f $ac_dir/$ac_word; then 78133965Sjdp if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 78233965Sjdp ac_prog_rejected=yes 78333965Sjdp continue 78433965Sjdp fi 78533965Sjdp ac_cv_prog_CC="cc" 78633965Sjdp break 78733965Sjdp fi 78833965Sjdp done 78933965Sjdp IFS="$ac_save_ifs" 79033965Sjdpif test $ac_prog_rejected = yes; then 79133965Sjdp # We found a bogon in the path, so make sure we never use it. 79233965Sjdp set dummy $ac_cv_prog_CC 79333965Sjdp shift 79433965Sjdp if test $# -gt 0; then 79533965Sjdp # We chose a different compiler from the bogus one. 79633965Sjdp # However, it has the same basename, so the bogon will be chosen 79733965Sjdp # first if we set CC to just the basename; use the full file name. 79833965Sjdp shift 79933965Sjdp set dummy "$ac_dir/$ac_word" "$@" 80033965Sjdp shift 80133965Sjdp ac_cv_prog_CC="$@" 80233965Sjdp fi 80333965Sjdpfi 80433965Sjdpfi 80533965Sjdpfi 80633965SjdpCC="$ac_cv_prog_CC" 80733965Sjdpif test -n "$CC"; then 80833965Sjdp echo "$ac_t""$CC" 1>&6 80933965Sjdpelse 81033965Sjdp echo "$ac_t""no" 1>&6 81133965Sjdpfi 81233965Sjdp 81333965Sjdp test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 81433965Sjdpfi 81533965Sjdp 81633965Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 81733965Sjdpecho "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 81833965Sjdp 81933965Sjdpac_ext=c 82033965Sjdp# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 82133965Sjdpac_cpp='$CPP $CPPFLAGS' 82233965Sjdpac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 82333965Sjdpac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 82433965Sjdpcross_compiling=$ac_cv_prog_cc_cross 82533965Sjdp 82633965Sjdpcat > conftest.$ac_ext <<EOF 82733965Sjdp#line 828 "configure" 82833965Sjdp#include "confdefs.h" 82933965Sjdpmain(){return(0);} 83033965SjdpEOF 83133965Sjdpif { (eval echo configure:832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 83233965Sjdp ac_cv_prog_cc_works=yes 83333965Sjdp # If we can't run a trivial program, we are probably using a cross compiler. 83433965Sjdp if (./conftest; exit) 2>/dev/null; then 83533965Sjdp ac_cv_prog_cc_cross=no 83633965Sjdp else 83733965Sjdp ac_cv_prog_cc_cross=yes 83833965Sjdp fi 83933965Sjdpelse 84033965Sjdp echo "configure: failed program was:" >&5 84133965Sjdp cat conftest.$ac_ext >&5 84233965Sjdp ac_cv_prog_cc_works=no 84333965Sjdpfi 84433965Sjdprm -fr conftest* 84533965Sjdp 84633965Sjdpecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 84733965Sjdpif test $ac_cv_prog_cc_works = no; then 84833965Sjdp { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 84933965Sjdpfi 85033965Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 85133965Sjdpecho "configure:852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 85233965Sjdpecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 85333965Sjdpcross_compiling=$ac_cv_prog_cc_cross 85433965Sjdp 85533965Sjdpecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 85633965Sjdpecho "configure:857: checking whether we are using GNU C" >&5 85733965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 85833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 85933965Sjdpelse 86033965Sjdp cat > conftest.c <<EOF 86133965Sjdp#ifdef __GNUC__ 86233965Sjdp yes; 86333965Sjdp#endif 86433965SjdpEOF 86533965Sjdpif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 86633965Sjdp ac_cv_prog_gcc=yes 86733965Sjdpelse 86833965Sjdp ac_cv_prog_gcc=no 86933965Sjdpfi 87033965Sjdpfi 87133965Sjdp 87233965Sjdpecho "$ac_t""$ac_cv_prog_gcc" 1>&6 87333965Sjdp 87433965Sjdpif test $ac_cv_prog_gcc = yes; then 87533965Sjdp GCC=yes 87633965Sjdp ac_test_CFLAGS="${CFLAGS+set}" 87733965Sjdp ac_save_CFLAGS="$CFLAGS" 87833965Sjdp CFLAGS= 87933965Sjdp echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 88033965Sjdpecho "configure:881: checking whether ${CC-cc} accepts -g" >&5 88133965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 88233965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 88333965Sjdpelse 88433965Sjdp echo 'void f(){}' > conftest.c 88533965Sjdpif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 88633965Sjdp ac_cv_prog_cc_g=yes 88733965Sjdpelse 88833965Sjdp ac_cv_prog_cc_g=no 88933965Sjdpfi 89033965Sjdprm -f conftest* 89133965Sjdp 89233965Sjdpfi 89333965Sjdp 89433965Sjdpecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 89533965Sjdp if test "$ac_test_CFLAGS" = set; then 89633965Sjdp CFLAGS="$ac_save_CFLAGS" 89733965Sjdp elif test $ac_cv_prog_cc_g = yes; then 89833965Sjdp CFLAGS="-g -O2" 89933965Sjdp else 90033965Sjdp CFLAGS="-O2" 90133965Sjdp fi 90233965Sjdpelse 90333965Sjdp GCC= 90433965Sjdp test "${CFLAGS+set}" = set || CFLAGS="-g" 90533965Sjdpfi 90633965Sjdp 90733965Sjdp 90833965Sjdpecho $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 90933965Sjdpecho "configure:910: checking for POSIXized ISC" >&5 91033965Sjdpif test -d /etc/conf/kconfig.d && 91133965Sjdp grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 91233965Sjdpthen 91333965Sjdp echo "$ac_t""yes" 1>&6 91433965Sjdp ISC=yes # If later tests want to check for ISC. 91533965Sjdp cat >> confdefs.h <<\EOF 91633965Sjdp#define _POSIX_SOURCE 1 91733965SjdpEOF 91833965Sjdp 91933965Sjdp if test "$GCC" = yes; then 92033965Sjdp CC="$CC -posix" 92133965Sjdp else 92233965Sjdp CC="$CC -Xp" 92333965Sjdp fi 92433965Sjdpelse 92533965Sjdp echo "$ac_t""no" 1>&6 92633965Sjdp ISC= 92733965Sjdpfi 92833965Sjdp 92933965Sjdp 93033965Sjdp# Permit host specific settings. 93133965Sjdp. ${srcdir}/configure.host 93233965Sjdp 93333965Sjdp 93433965Sjdpif test $host != $build; then 93533965Sjdp ac_tool_prefix=${host_alias}- 93633965Sjdpelse 93733965Sjdp ac_tool_prefix= 93833965Sjdpfi 93933965Sjdp 94033965Sjdp# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 94133965Sjdpset dummy ${ac_tool_prefix}ar; ac_word=$2 94233965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 94333965Sjdpecho "configure:944: checking for $ac_word" >&5 94433965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 94533965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 94633965Sjdpelse 94733965Sjdp if test -n "$AR"; then 94833965Sjdp ac_cv_prog_AR="$AR" # Let the user override the test. 94933965Sjdpelse 95033965Sjdp IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 95133965Sjdp for ac_dir in $PATH; do 95233965Sjdp test -z "$ac_dir" && ac_dir=. 95333965Sjdp if test -f $ac_dir/$ac_word; then 95433965Sjdp ac_cv_prog_AR="${ac_tool_prefix}ar" 95533965Sjdp break 95633965Sjdp fi 95733965Sjdp done 95833965Sjdp IFS="$ac_save_ifs" 95933965Sjdp test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 96033965Sjdpfi 96133965Sjdpfi 96233965SjdpAR="$ac_cv_prog_AR" 96333965Sjdpif test -n "$AR"; then 96433965Sjdp echo "$ac_t""$AR" 1>&6 96533965Sjdpelse 96633965Sjdp echo "$ac_t""no" 1>&6 96733965Sjdpfi 96833965Sjdp 96933965Sjdp 97033965Sjdp 97133965Sjdp# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 97233965Sjdpset dummy ${ac_tool_prefix}ranlib; ac_word=$2 97333965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 97433965Sjdpecho "configure:975: checking for $ac_word" >&5 97533965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 97633965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 97733965Sjdpelse 97833965Sjdp if test -n "$RANLIB"; then 97933965Sjdp ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 98033965Sjdpelse 98133965Sjdp IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 98233965Sjdp for ac_dir in $PATH; do 98333965Sjdp test -z "$ac_dir" && ac_dir=. 98433965Sjdp if test -f $ac_dir/$ac_word; then 98533965Sjdp ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 98633965Sjdp break 98733965Sjdp fi 98833965Sjdp done 98933965Sjdp IFS="$ac_save_ifs" 99033965Sjdpfi 99133965Sjdpfi 99233965SjdpRANLIB="$ac_cv_prog_RANLIB" 99333965Sjdpif test -n "$RANLIB"; then 99433965Sjdp echo "$ac_t""$RANLIB" 1>&6 99533965Sjdpelse 99633965Sjdp echo "$ac_t""no" 1>&6 99733965Sjdpfi 99833965Sjdp 99933965Sjdp 100033965Sjdpif test -z "$ac_cv_prog_RANLIB"; then 100133965Sjdpif test -n "$ac_tool_prefix"; then 100233965Sjdp # Extract the first word of "ranlib", so it can be a program name with args. 100333965Sjdpset dummy ranlib; ac_word=$2 100433965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 100533965Sjdpecho "configure:1006: checking for $ac_word" >&5 100633965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 100733965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 100833965Sjdpelse 100933965Sjdp if test -n "$RANLIB"; then 101033965Sjdp ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 101133965Sjdpelse 101233965Sjdp IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 101333965Sjdp for ac_dir in $PATH; do 101433965Sjdp test -z "$ac_dir" && ac_dir=. 101533965Sjdp if test -f $ac_dir/$ac_word; then 101633965Sjdp ac_cv_prog_RANLIB="ranlib" 101733965Sjdp break 101833965Sjdp fi 101933965Sjdp done 102033965Sjdp IFS="$ac_save_ifs" 102133965Sjdp test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 102233965Sjdpfi 102333965Sjdpfi 102433965SjdpRANLIB="$ac_cv_prog_RANLIB" 102533965Sjdpif test -n "$RANLIB"; then 102633965Sjdp echo "$ac_t""$RANLIB" 1>&6 102733965Sjdpelse 102833965Sjdp echo "$ac_t""no" 1>&6 102933965Sjdpfi 103033965Sjdp 103133965Sjdpelse 103233965Sjdp RANLIB=":" 103333965Sjdpfi 103433965Sjdpfi 103533965Sjdp 103633965Sjdp# Find a good install program. We prefer a C program (faster), 103733965Sjdp# so one script is as good as another. But avoid the broken or 103833965Sjdp# incompatible versions: 103933965Sjdp# SysV /etc/install, /usr/sbin/install 104033965Sjdp# SunOS /usr/etc/install 104133965Sjdp# IRIX /sbin/install 104233965Sjdp# AIX /bin/install 104333965Sjdp# AFS /usr/afsws/bin/install, which mishandles nonexistent args 104433965Sjdp# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 104533965Sjdp# ./install, which can be erroneously created by make from ./install.sh. 104633965Sjdpecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 104733965Sjdpecho "configure:1048: checking for a BSD compatible install" >&5 104833965Sjdpif test -z "$INSTALL"; then 104933965Sjdpif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 105033965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 105133965Sjdpelse 105233965Sjdp IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 105333965Sjdp for ac_dir in $PATH; do 105433965Sjdp # Account for people who put trailing slashes in PATH elements. 105533965Sjdp case "$ac_dir/" in 105633965Sjdp /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 105733965Sjdp *) 105833965Sjdp # OSF1 and SCO ODT 3.0 have their own names for install. 105933965Sjdp for ac_prog in ginstall installbsd scoinst install; do 106033965Sjdp if test -f $ac_dir/$ac_prog; then 106133965Sjdp if test $ac_prog = install && 106233965Sjdp grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 106333965Sjdp # AIX install. It has an incompatible calling convention. 106433965Sjdp # OSF/1 installbsd also uses dspmsg, but is usable. 106533965Sjdp : 106633965Sjdp else 106733965Sjdp ac_cv_path_install="$ac_dir/$ac_prog -c" 106833965Sjdp break 2 106933965Sjdp fi 107033965Sjdp fi 107133965Sjdp done 107233965Sjdp ;; 107333965Sjdp esac 107433965Sjdp done 107533965Sjdp IFS="$ac_save_IFS" 107633965Sjdp 107733965Sjdpfi 107833965Sjdp if test "${ac_cv_path_install+set}" = set; then 107933965Sjdp INSTALL="$ac_cv_path_install" 108033965Sjdp else 108133965Sjdp # As a last resort, use the slow shell script. We don't cache a 108233965Sjdp # path for INSTALL within a source directory, because that will 108333965Sjdp # break other packages using the cache if that directory is 108433965Sjdp # removed, or if the path is relative. 108533965Sjdp INSTALL="$ac_install_sh" 108633965Sjdp fi 108733965Sjdpfi 108833965Sjdpecho "$ac_t""$INSTALL" 1>&6 108933965Sjdp 109033965Sjdp# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 109133965Sjdp# It thinks the first close brace ends the variable substitution. 109233965Sjdptest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 109333965Sjdp 109433965Sjdptest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 109533965Sjdp 109633965Sjdp 109733965Sjdpif test "${shared}" = "true"; then 109833965Sjdp if test "${GCC}" != "yes" && test "${shared_non_gcc}" != "yes"; then 109933965Sjdp echo "configure: warning: BFD --enable-shared only supported when using gcc" 1>&2 110033965Sjdp shared=false 110133965Sjdp ALLLIBS='$(TARGETLIB)' 110233965Sjdp PICFLAG= 110333965Sjdp SHLIB=unused-shlib 110433965Sjdp fi 110533965Sjdpfi 110633965Sjdp 110733965Sjdp 110833965Sjdp 110933965Sjdp 111033965Sjdp 111133965Sjdp 111233965Sjdp 111333965Sjdpif test "${commonbfdlib}" = "true"; then 111433965Sjdp COMMON_SHLIB=yes 111533965Sjdp PICLIST=piclist 111633965Sjdpelse 111733965Sjdp COMMON_SHLIB= 111833965Sjdp PICLIST= 111933965Sjdpfi 112033965Sjdp 112133965Sjdp 112233965Sjdp 112333965Sjdp 112433965Sjdp 112533965SjdpVERSION=`cat ${srcdir}/VERSION` 112633965Sjdp 112733965Sjdp 112833965SjdpBFD_HOST_64BIT_LONG=0 112933965SjdpBFD_HOST_64_BIT_DEFINED=0 113033965SjdpBFD_HOST_64_BIT= 113133965SjdpBFD_HOST_U_64_BIT= 113233965Sjdpif test "x${HOST_64BIT_TYPE}" = "xlong"; then 113333965Sjdp BFD_HOST_64BIT_LONG=1 113433965Sjdpelif test "x${HOST_64BIT_TYPE}" != "x"; then 113533965Sjdp BFD_HOST_64_BIT_DEFINED=1 113633965Sjdp BFD_HOST_64_BIT=${HOST_64BIT_TYPE} 113733965Sjdp BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE} 113833965Sjdpfi 113933965Sjdp 114033965Sjdp 114133965Sjdp 114233965Sjdp 114333965Sjdp 114433965Sjdp# Put a plausible default for CC_FOR_BUILD in Makefile. 114533965Sjdpif test -z "$CC_FOR_BUILD"; then 114633965Sjdp if test "x$cross_compiling" = "xno"; then 114733965Sjdp CC_FOR_BUILD='$(CC)' 114833965Sjdp else 114933965Sjdp CC_FOR_BUILD=gcc 115033965Sjdp fi 115133965Sjdpfi 115233965Sjdp 115333965Sjdp 115433965Sjdpecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 115533965Sjdpecho "configure:1156: checking how to run the C preprocessor" >&5 115633965Sjdp# On Suns, sometimes $CPP names a directory. 115733965Sjdpif test -n "$CPP" && test -d "$CPP"; then 115833965Sjdp CPP= 115933965Sjdpfi 116033965Sjdpif test -z "$CPP"; then 116133965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 116233965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 116333965Sjdpelse 116433965Sjdp # This must be in double quotes, not single quotes, because CPP may get 116533965Sjdp # substituted into the Makefile and "${CC-cc}" will confuse make. 116633965Sjdp CPP="${CC-cc} -E" 116733965Sjdp # On the NeXT, cc -E runs the code through the compiler's parser, 116833965Sjdp # not just through cpp. 116933965Sjdp cat > conftest.$ac_ext <<EOF 117033965Sjdp#line 1171 "configure" 117133965Sjdp#include "confdefs.h" 117233965Sjdp#include <assert.h> 117333965SjdpSyntax Error 117433965SjdpEOF 117533965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 117633965Sjdp{ (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 117733965Sjdpac_err=`grep -v '^ *+' conftest.out` 117833965Sjdpif test -z "$ac_err"; then 117933965Sjdp : 118033965Sjdpelse 118133965Sjdp echo "$ac_err" >&5 118233965Sjdp echo "configure: failed program was:" >&5 118333965Sjdp cat conftest.$ac_ext >&5 118433965Sjdp rm -rf conftest* 118533965Sjdp CPP="${CC-cc} -E -traditional-cpp" 118633965Sjdp cat > conftest.$ac_ext <<EOF 118733965Sjdp#line 1188 "configure" 118833965Sjdp#include "confdefs.h" 118933965Sjdp#include <assert.h> 119033965SjdpSyntax Error 119133965SjdpEOF 119233965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 119333965Sjdp{ (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 119433965Sjdpac_err=`grep -v '^ *+' conftest.out` 119533965Sjdpif test -z "$ac_err"; then 119633965Sjdp : 119733965Sjdpelse 119833965Sjdp echo "$ac_err" >&5 119933965Sjdp echo "configure: failed program was:" >&5 120033965Sjdp cat conftest.$ac_ext >&5 120133965Sjdp rm -rf conftest* 120233965Sjdp CPP=/lib/cpp 120333965Sjdpfi 120433965Sjdprm -f conftest* 120533965Sjdpfi 120633965Sjdprm -f conftest* 120733965Sjdp ac_cv_prog_CPP="$CPP" 120833965Sjdpfi 120933965Sjdp CPP="$ac_cv_prog_CPP" 121033965Sjdpelse 121133965Sjdp ac_cv_prog_CPP="$CPP" 121233965Sjdpfi 121333965Sjdpecho "$ac_t""$CPP" 1>&6 121433965Sjdp 121533965Sjdpfor ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h 121633965Sjdpdo 121733965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 121833965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 121933965Sjdpecho "configure:1220: checking for $ac_hdr" >&5 122033965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 122133965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 122233965Sjdpelse 122333965Sjdp cat > conftest.$ac_ext <<EOF 122433965Sjdp#line 1225 "configure" 122533965Sjdp#include "confdefs.h" 122633965Sjdp#include <$ac_hdr> 122733965SjdpEOF 122833965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 122933965Sjdp{ (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 123033965Sjdpac_err=`grep -v '^ *+' conftest.out` 123133965Sjdpif test -z "$ac_err"; then 123233965Sjdp rm -rf conftest* 123333965Sjdp eval "ac_cv_header_$ac_safe=yes" 123433965Sjdpelse 123533965Sjdp echo "$ac_err" >&5 123633965Sjdp echo "configure: failed program was:" >&5 123733965Sjdp cat conftest.$ac_ext >&5 123833965Sjdp rm -rf conftest* 123933965Sjdp eval "ac_cv_header_$ac_safe=no" 124033965Sjdpfi 124133965Sjdprm -f conftest* 124233965Sjdpfi 124333965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 124433965Sjdp echo "$ac_t""yes" 1>&6 124533965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 124633965Sjdp cat >> confdefs.h <<EOF 124733965Sjdp#define $ac_tr_hdr 1 124833965SjdpEOF 124933965Sjdp 125033965Sjdpelse 125133965Sjdp echo "$ac_t""no" 1>&6 125233965Sjdpfi 125333965Sjdpdone 125433965Sjdp 125533965Sjdpfor ac_hdr in fcntl.h sys/file.h sys/time.h 125633965Sjdpdo 125733965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 125833965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 125933965Sjdpecho "configure:1260: checking for $ac_hdr" >&5 126033965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 126133965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 126233965Sjdpelse 126333965Sjdp cat > conftest.$ac_ext <<EOF 126433965Sjdp#line 1265 "configure" 126533965Sjdp#include "confdefs.h" 126633965Sjdp#include <$ac_hdr> 126733965SjdpEOF 126833965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 126933965Sjdp{ (eval echo configure:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 127033965Sjdpac_err=`grep -v '^ *+' conftest.out` 127133965Sjdpif test -z "$ac_err"; then 127233965Sjdp rm -rf conftest* 127333965Sjdp eval "ac_cv_header_$ac_safe=yes" 127433965Sjdpelse 127533965Sjdp echo "$ac_err" >&5 127633965Sjdp echo "configure: failed program was:" >&5 127733965Sjdp cat conftest.$ac_ext >&5 127833965Sjdp rm -rf conftest* 127933965Sjdp eval "ac_cv_header_$ac_safe=no" 128033965Sjdpfi 128133965Sjdprm -f conftest* 128233965Sjdpfi 128333965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 128433965Sjdp echo "$ac_t""yes" 1>&6 128533965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 128633965Sjdp cat >> confdefs.h <<EOF 128733965Sjdp#define $ac_tr_hdr 1 128833965SjdpEOF 128933965Sjdp 129033965Sjdpelse 129133965Sjdp echo "$ac_t""no" 1>&6 129233965Sjdpfi 129333965Sjdpdone 129433965Sjdp 129533965Sjdpecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 129633965Sjdpecho "configure:1297: checking whether time.h and sys/time.h may both be included" >&5 129733965Sjdpif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 129833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 129933965Sjdpelse 130033965Sjdp cat > conftest.$ac_ext <<EOF 130133965Sjdp#line 1302 "configure" 130233965Sjdp#include "confdefs.h" 130333965Sjdp#include <sys/types.h> 130433965Sjdp#include <sys/time.h> 130533965Sjdp#include <time.h> 130633965Sjdpint main() { 130733965Sjdpstruct tm *tp; 130833965Sjdp; return 0; } 130933965SjdpEOF 131033965Sjdpif { (eval echo configure:1311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 131133965Sjdp rm -rf conftest* 131233965Sjdp ac_cv_header_time=yes 131333965Sjdpelse 131433965Sjdp echo "configure: failed program was:" >&5 131533965Sjdp cat conftest.$ac_ext >&5 131633965Sjdp rm -rf conftest* 131733965Sjdp ac_cv_header_time=no 131833965Sjdpfi 131933965Sjdprm -f conftest* 132033965Sjdpfi 132133965Sjdp 132233965Sjdpecho "$ac_t""$ac_cv_header_time" 1>&6 132333965Sjdpif test $ac_cv_header_time = yes; then 132433965Sjdp cat >> confdefs.h <<\EOF 132533965Sjdp#define TIME_WITH_SYS_TIME 1 132633965SjdpEOF 132733965Sjdp 132833965Sjdpfi 132933965Sjdp 133033965Sjdpfor ac_func in fcntl getpagesize setitimer sysconf 133133965Sjdpdo 133233965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 133333965Sjdpecho "configure:1334: checking for $ac_func" >&5 133433965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 133533965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 133633965Sjdpelse 133733965Sjdp cat > conftest.$ac_ext <<EOF 133833965Sjdp#line 1339 "configure" 133933965Sjdp#include "confdefs.h" 134033965Sjdp/* System header to define __stub macros and hopefully few prototypes, 134133965Sjdp which can conflict with char $ac_func(); below. */ 134233965Sjdp#include <assert.h> 134333965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 134433965Sjdp/* We use char because int might match the return type of a gcc2 134533965Sjdp builtin and then its argument prototype would still apply. */ 134633965Sjdpchar $ac_func(); 134733965Sjdp 134833965Sjdpint main() { 134933965Sjdp 135033965Sjdp/* The GNU C library defines this for functions which it implements 135133965Sjdp to always fail with ENOSYS. Some functions are actually named 135233965Sjdp something starting with __ and the normal name is an alias. */ 135333965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 135433965Sjdpchoke me 135533965Sjdp#else 135633965Sjdp$ac_func(); 135733965Sjdp#endif 135833965Sjdp 135933965Sjdp; return 0; } 136033965SjdpEOF 136133965Sjdpif { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 136233965Sjdp rm -rf conftest* 136333965Sjdp eval "ac_cv_func_$ac_func=yes" 136433965Sjdpelse 136533965Sjdp echo "configure: failed program was:" >&5 136633965Sjdp cat conftest.$ac_ext >&5 136733965Sjdp rm -rf conftest* 136833965Sjdp eval "ac_cv_func_$ac_func=no" 136933965Sjdpfi 137033965Sjdprm -f conftest* 137133965Sjdpfi 137233965Sjdp 137333965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 137433965Sjdp echo "$ac_t""yes" 1>&6 137533965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 137633965Sjdp cat >> confdefs.h <<EOF 137733965Sjdp#define $ac_tr_func 1 137833965SjdpEOF 137933965Sjdp 138033965Sjdpelse 138133965Sjdp echo "$ac_t""no" 1>&6 138233965Sjdpfi 138333965Sjdpdone 138433965Sjdp 138533965Sjdp 138633965Sjdp 138733965Sjdpcase "${host}" in 138833965Sjdpi[345]86-*-msdos* | i[345]86-*-go32* | *-*-cygwin32 | *-*-windows) 138933965Sjdp cat >> confdefs.h <<\EOF 139033965Sjdp#define USE_BINARY_FOPEN 1 139133965SjdpEOF 139233965Sjdp ;; 139333965Sjdpesac 139433965Sjdp 139533965Sjdpecho $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 139633965Sjdpecho "configure:1397: checking whether strstr must be declared" >&5 139733965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then 139833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 139933965Sjdpelse 140033965Sjdp cat > conftest.$ac_ext <<EOF 140133965Sjdp#line 1402 "configure" 140233965Sjdp#include "confdefs.h" 140333965Sjdp 140433965Sjdp#include <stdio.h> 140533965Sjdp#ifdef HAVE_STRING_H 140633965Sjdp#include <string.h> 140733965Sjdp#else 140833965Sjdp#ifdef HAVE_STRINGS_H 140933965Sjdp#include <strings.h> 141033965Sjdp#endif 141133965Sjdp#endif 141233965Sjdp#ifdef HAVE_STDLIB_H 141333965Sjdp#include <stdlib.h> 141433965Sjdp#endif 141533965Sjdp#ifdef HAVE_UNISTD_H 141633965Sjdp#include <unistd.h> 141733965Sjdp#endif 141833965Sjdpint main() { 141933965Sjdpchar *(*pfn) = (char *(*)) strstr 142033965Sjdp; return 0; } 142133965SjdpEOF 142233965Sjdpif { (eval echo configure:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 142333965Sjdp rm -rf conftest* 142433965Sjdp bfd_cv_decl_needed_strstr=no 142533965Sjdpelse 142633965Sjdp echo "configure: failed program was:" >&5 142733965Sjdp cat conftest.$ac_ext >&5 142833965Sjdp rm -rf conftest* 142933965Sjdp bfd_cv_decl_needed_strstr=yes 143033965Sjdpfi 143133965Sjdprm -f conftest* 143233965Sjdpfi 143333965Sjdp 143433965Sjdpecho "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6 143533965Sjdpif test $bfd_cv_decl_needed_strstr = yes; then 143633965Sjdp bfd_tr_decl=NEED_DECLARATION_`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 143733965Sjdp cat >> confdefs.h <<EOF 143833965Sjdp#define $bfd_tr_decl 1 143933965SjdpEOF 144033965Sjdp 144133965Sjdpfi 144233965Sjdp 144333965Sjdpecho $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 144433965Sjdpecho "configure:1445: checking whether malloc must be declared" >&5 144533965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then 144633965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 144733965Sjdpelse 144833965Sjdp cat > conftest.$ac_ext <<EOF 144933965Sjdp#line 1450 "configure" 145033965Sjdp#include "confdefs.h" 145133965Sjdp 145233965Sjdp#include <stdio.h> 145333965Sjdp#ifdef HAVE_STRING_H 145433965Sjdp#include <string.h> 145533965Sjdp#else 145633965Sjdp#ifdef HAVE_STRINGS_H 145733965Sjdp#include <strings.h> 145833965Sjdp#endif 145933965Sjdp#endif 146033965Sjdp#ifdef HAVE_STDLIB_H 146133965Sjdp#include <stdlib.h> 146233965Sjdp#endif 146333965Sjdp#ifdef HAVE_UNISTD_H 146433965Sjdp#include <unistd.h> 146533965Sjdp#endif 146633965Sjdpint main() { 146733965Sjdpchar *(*pfn) = (char *(*)) malloc 146833965Sjdp; return 0; } 146933965SjdpEOF 147033965Sjdpif { (eval echo configure:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 147133965Sjdp rm -rf conftest* 147233965Sjdp bfd_cv_decl_needed_malloc=no 147333965Sjdpelse 147433965Sjdp echo "configure: failed program was:" >&5 147533965Sjdp cat conftest.$ac_ext >&5 147633965Sjdp rm -rf conftest* 147733965Sjdp bfd_cv_decl_needed_malloc=yes 147833965Sjdpfi 147933965Sjdprm -f conftest* 148033965Sjdpfi 148133965Sjdp 148233965Sjdpecho "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6 148333965Sjdpif test $bfd_cv_decl_needed_malloc = yes; then 148433965Sjdp bfd_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 148533965Sjdp cat >> confdefs.h <<EOF 148633965Sjdp#define $bfd_tr_decl 1 148733965SjdpEOF 148833965Sjdp 148933965Sjdpfi 149033965Sjdp 149133965Sjdpecho $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 149233965Sjdpecho "configure:1493: checking whether realloc must be declared" >&5 149333965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then 149433965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 149533965Sjdpelse 149633965Sjdp cat > conftest.$ac_ext <<EOF 149733965Sjdp#line 1498 "configure" 149833965Sjdp#include "confdefs.h" 149933965Sjdp 150033965Sjdp#include <stdio.h> 150133965Sjdp#ifdef HAVE_STRING_H 150233965Sjdp#include <string.h> 150333965Sjdp#else 150433965Sjdp#ifdef HAVE_STRINGS_H 150533965Sjdp#include <strings.h> 150633965Sjdp#endif 150733965Sjdp#endif 150833965Sjdp#ifdef HAVE_STDLIB_H 150933965Sjdp#include <stdlib.h> 151033965Sjdp#endif 151133965Sjdp#ifdef HAVE_UNISTD_H 151233965Sjdp#include <unistd.h> 151333965Sjdp#endif 151433965Sjdpint main() { 151533965Sjdpchar *(*pfn) = (char *(*)) realloc 151633965Sjdp; return 0; } 151733965SjdpEOF 151833965Sjdpif { (eval echo configure:1519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 151933965Sjdp rm -rf conftest* 152033965Sjdp bfd_cv_decl_needed_realloc=no 152133965Sjdpelse 152233965Sjdp echo "configure: failed program was:" >&5 152333965Sjdp cat conftest.$ac_ext >&5 152433965Sjdp rm -rf conftest* 152533965Sjdp bfd_cv_decl_needed_realloc=yes 152633965Sjdpfi 152733965Sjdprm -f conftest* 152833965Sjdpfi 152933965Sjdp 153033965Sjdpecho "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6 153133965Sjdpif test $bfd_cv_decl_needed_realloc = yes; then 153233965Sjdp bfd_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 153333965Sjdp cat >> confdefs.h <<EOF 153433965Sjdp#define $bfd_tr_decl 1 153533965SjdpEOF 153633965Sjdp 153733965Sjdpfi 153833965Sjdp 153933965Sjdpecho $ac_n "checking whether free must be declared""... $ac_c" 1>&6 154033965Sjdpecho "configure:1541: checking whether free must be declared" >&5 154133965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then 154233965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 154333965Sjdpelse 154433965Sjdp cat > conftest.$ac_ext <<EOF 154533965Sjdp#line 1546 "configure" 154633965Sjdp#include "confdefs.h" 154733965Sjdp 154833965Sjdp#include <stdio.h> 154933965Sjdp#ifdef HAVE_STRING_H 155033965Sjdp#include <string.h> 155133965Sjdp#else 155233965Sjdp#ifdef HAVE_STRINGS_H 155333965Sjdp#include <strings.h> 155433965Sjdp#endif 155533965Sjdp#endif 155633965Sjdp#ifdef HAVE_STDLIB_H 155733965Sjdp#include <stdlib.h> 155833965Sjdp#endif 155933965Sjdp#ifdef HAVE_UNISTD_H 156033965Sjdp#include <unistd.h> 156133965Sjdp#endif 156233965Sjdpint main() { 156333965Sjdpchar *(*pfn) = (char *(*)) free 156433965Sjdp; return 0; } 156533965SjdpEOF 156633965Sjdpif { (eval echo configure:1567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 156733965Sjdp rm -rf conftest* 156833965Sjdp bfd_cv_decl_needed_free=no 156933965Sjdpelse 157033965Sjdp echo "configure: failed program was:" >&5 157133965Sjdp cat conftest.$ac_ext >&5 157233965Sjdp rm -rf conftest* 157333965Sjdp bfd_cv_decl_needed_free=yes 157433965Sjdpfi 157533965Sjdprm -f conftest* 157633965Sjdpfi 157733965Sjdp 157833965Sjdpecho "$ac_t""$bfd_cv_decl_needed_free" 1>&6 157933965Sjdpif test $bfd_cv_decl_needed_free = yes; then 158033965Sjdp bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 158133965Sjdp cat >> confdefs.h <<EOF 158233965Sjdp#define $bfd_tr_decl 1 158333965SjdpEOF 158433965Sjdp 158533965Sjdpfi 158633965Sjdp 158733965Sjdpecho $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 158833965Sjdpecho "configure:1589: checking whether getenv must be declared" >&5 158933965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then 159033965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 159133965Sjdpelse 159233965Sjdp cat > conftest.$ac_ext <<EOF 159333965Sjdp#line 1594 "configure" 159433965Sjdp#include "confdefs.h" 159533965Sjdp 159633965Sjdp#include <stdio.h> 159733965Sjdp#ifdef HAVE_STRING_H 159833965Sjdp#include <string.h> 159933965Sjdp#else 160033965Sjdp#ifdef HAVE_STRINGS_H 160133965Sjdp#include <strings.h> 160233965Sjdp#endif 160333965Sjdp#endif 160433965Sjdp#ifdef HAVE_STDLIB_H 160533965Sjdp#include <stdlib.h> 160633965Sjdp#endif 160733965Sjdp#ifdef HAVE_UNISTD_H 160833965Sjdp#include <unistd.h> 160933965Sjdp#endif 161033965Sjdpint main() { 161133965Sjdpchar *(*pfn) = (char *(*)) getenv 161233965Sjdp; return 0; } 161333965SjdpEOF 161433965Sjdpif { (eval echo configure:1615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 161533965Sjdp rm -rf conftest* 161633965Sjdp bfd_cv_decl_needed_getenv=no 161733965Sjdpelse 161833965Sjdp echo "configure: failed program was:" >&5 161933965Sjdp cat conftest.$ac_ext >&5 162033965Sjdp rm -rf conftest* 162133965Sjdp bfd_cv_decl_needed_getenv=yes 162233965Sjdpfi 162333965Sjdprm -f conftest* 162433965Sjdpfi 162533965Sjdp 162633965Sjdpecho "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6 162733965Sjdpif test $bfd_cv_decl_needed_getenv = yes; then 162833965Sjdp bfd_tr_decl=NEED_DECLARATION_`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 162933965Sjdp cat >> confdefs.h <<EOF 163033965Sjdp#define $bfd_tr_decl 1 163133965SjdpEOF 163233965Sjdp 163333965Sjdpfi 163433965Sjdp 163533965Sjdp 163633965Sjdp# If we are configured native, pick a core file support file. 163733965SjdpCOREFILE= 163833965SjdpCOREFLAG= 163933965Sjdpif test "${target}" = "${host}"; then 164033965Sjdp case "${host}" in 164133965Sjdp alpha*-*-linux*) 164233965Sjdp COREFILE=trad-core.o 164333965Sjdp cat >> confdefs.h <<\EOF 164433965Sjdp#define TRAD_HEADER "hosts/alphalinux.h" 164533965SjdpEOF 164633965Sjdp 164733965Sjdp ;; 164833965Sjdp alpha*-*-*) COREFILE=osf-core.o ;; 164933965Sjdp arm-*-riscix) COREFILE=trad-core.o ;; 165033965Sjdp hppa*-*-hpux*) COREFILE=hpux-core.o ;; 165133965Sjdp hppa*-*-hiux*) COREFILE=hpux-core.o ;; 165233965Sjdp hppa*-*-bsd*) COREFILE="hpux-core.o hppabsd-core.o" 165333965Sjdp COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 165433965Sjdp i[3456]86-sequent-bsd*) 165533965Sjdp COREFILE=trad-core.o; 165633965Sjdp cat >> confdefs.h <<\EOF 165733965Sjdp#define TRAD_HEADER "hosts/symmetry.h" 165833965SjdpEOF 165933965Sjdp 166033965Sjdp ;; 166133965Sjdp i[3456]86-sequent-sysv4*) ;; 166233965Sjdp i[3456]86-sequent-sysv*) 166333965Sjdp COREFILE=trad-core.o 166433965Sjdp cat >> confdefs.h <<\EOF 166533965Sjdp#define TRAD_HEADER "hosts/symmetry.h" 166633965SjdpEOF 166733965Sjdp 166833965Sjdp ;; 166933965Sjdp i[3456]86-*-bsd* | i[3456]86-*-freebsd*) 167033965Sjdp COREFILE=trad-core.o 167133965Sjdp cat >> confdefs.h <<\EOF 167233965Sjdp#define TRAD_HEADER "hosts/i386bsd.h" 167333965SjdpEOF 167433965Sjdp 167533965Sjdp ;; 167633965Sjdp i[3456]86-*-netbsd* | i[3456]86-*-openbsd*) 167733965Sjdp COREFILE=netbsd-core.o 167833965Sjdp ;; 167933965Sjdp i[3456]86-esix-sysv3*) 168033965Sjdp COREFILE=trad-core.o 168133965Sjdp cat >> confdefs.h <<\EOF 168233965Sjdp#define TRAD_HEADER "hosts/esix.h" 168333965SjdpEOF 168433965Sjdp 168533965Sjdp ;; 168633965Sjdp i[3456]86-*-sco* | i[3456]86-*-isc*) 168733965Sjdp COREFILE=trad-core.o 168833965Sjdp cat >> confdefs.h <<\EOF 168933965Sjdp#define TRAD_HEADER "hosts/i386sco.h" 169033965SjdpEOF 169133965Sjdp 169233965Sjdp ;; 169333965Sjdp i[3456]86-*-mach3*) 169433965Sjdp COREFILE=trad-core.o 169533965Sjdp cat >> confdefs.h <<\EOF 169633965Sjdp#define TRAD_HEADER "hosts/i386mach3.h" 169733965SjdpEOF 169833965Sjdp 169933965Sjdp ;; 170033965Sjdp i[3456]86-*-linux*) 170133965Sjdp COREFILE=trad-core.o 170233965Sjdp cat >> confdefs.h <<\EOF 170333965Sjdp#define TRAD_HEADER "hosts/i386linux.h" 170433965SjdpEOF 170533965Sjdp 170633965Sjdp ;; 170733965Sjdp i[3456]86-*-isc*) COREFILE=trad-core.o ;; 170833965Sjdp i[3456]86-*-aix*) COREFILE=aix386-core.o ;; 170933965Sjdp i860-*-mach3* | i860-*-osf1*) 171033965Sjdp COREFILE=trad-core.o 171133965Sjdp cat >> confdefs.h <<\EOF 171233965Sjdp#define TRAD_HEADER "hosts/i860mach3.h" 171333965SjdpEOF 171433965Sjdp 171533965Sjdp ;; 171633965Sjdp mips-dec-bsd*) 171733965Sjdp COREFILE=trad-core.o 171833965Sjdp cat >> confdefs.h <<\EOF 171933965Sjdp#define TRAD_HEADER "hosts/mipsbsd.h" 172033965SjdpEOF 172133965Sjdp 172233965Sjdp ;; 172333965Sjdp mips-dec-mach3*) 172433965Sjdp COREFILE=trad-core.o 172533965Sjdp cat >> confdefs.h <<\EOF 172633965Sjdp#define TRAD_HEADER "hosts/mipsmach3.h" 172733965SjdpEOF 172833965Sjdp 172933965Sjdp ;; 173033965Sjdp mips-*-netbsd* | mips*-*-openbsd*) 173133965Sjdp COREFILE=netbsd-core.o 173233965Sjdp ;; 173333965Sjdp mips-dec-*) 173433965Sjdp COREFILE=trad-core.o 173533965Sjdp cat >> confdefs.h <<\EOF 173633965Sjdp#define TRAD_HEADER "hosts/decstation.h" 173733965SjdpEOF 173833965Sjdp 173933965Sjdp ;; 174033965Sjdp mips-sgi-irix4*) COREFILE=irix-core.o ;; 174133965Sjdp mips-sgi-irix5*) COREFILE=irix-core.o ;; 174233965Sjdp mips-sgi-irix6*) COREFILE=irix-core.o ;; 174333965Sjdp mips-*-mach3*) 174433965Sjdp COREFILE=trad-core.o 174533965Sjdp cat >> confdefs.h <<\EOF 174633965Sjdp#define TRAD_HEADER "hosts/mipsmach3.h" 174733965SjdpEOF 174833965Sjdp 174933965Sjdp ;; 175033965Sjdp mips-*-sysv4*) ;; 175133965Sjdp mips-*-sysv* | mips-*-riscos*) 175233965Sjdp COREFILE=trad-core.o 175333965Sjdp cat >> confdefs.h <<\EOF 175433965Sjdp#define TRAD_HEADER "hosts/riscos.h" 175533965SjdpEOF 175633965Sjdp 175733965Sjdp ;; 175833965Sjdp mips-sony-bsd*) 175933965Sjdp COREFILE=trad-core.o 176033965Sjdp cat >> confdefs.h <<\EOF 176133965Sjdp#define TRAD_HEADER "hosts/news-mips.h" 176233965SjdpEOF 176333965Sjdp 176433965Sjdp ;; 176533965Sjdp m68*-bull*-sysv*) 176633965Sjdp COREFILE=trad-core.o 176733965Sjdp cat >> confdefs.h <<\EOF 176833965Sjdp#define TRAD_HEADER "hosts/dpx2.h" 176933965SjdpEOF 177033965Sjdp 177133965Sjdp ;; 177233965Sjdp m68*-hp-hpux*) COREFILE=hpux-core.o ;; 177333965Sjdp m68*-hp-bsd*) 177433965Sjdp COREFILE=trad-core.o 177533965Sjdp cat >> confdefs.h <<\EOF 177633965Sjdp#define TRAD_HEADER "hosts/hp300bsd.h" 177733965SjdpEOF 177833965Sjdp 177933965Sjdp ;; 178033965Sjdp m68*-*-linux*) 178133965Sjdp COREFILE=trad-core.o 178233965Sjdp cat >> confdefs.h <<\EOF 178333965Sjdp#define TRAD_HEADER "hosts/m68klinux.h" 178433965SjdpEOF 178533965Sjdp 178633965Sjdp ;; 178733965Sjdp m68*-motorola-sysv*) 178833965Sjdp COREFILE=trad-core.o 178933965Sjdp cat >> confdefs.h <<\EOF 179033965Sjdp#define TRAD_HEADER "hosts/delta68.h" 179133965SjdpEOF 179233965Sjdp 179333965Sjdp ;; 179433965Sjdp m68*-sony-*) 179533965Sjdp COREFILE=trad-core.o 179633965Sjdp cat >> confdefs.h <<\EOF 179733965Sjdp#define TRAD_HEADER "hosts/news.h" 179833965SjdpEOF 179933965Sjdp 180033965Sjdp ;; 180133965Sjdp m68*-*-netbsd* | m68*-*-openbsd*) 180233965Sjdp COREFILE=netbsd-core.o 180333965Sjdp ;; 180433965Sjdp m68*-apple-aux*) 180533965Sjdp COREFILE=trad-core.o 180633965Sjdp cat >> confdefs.h <<\EOF 180733965Sjdp#define TRAD_HEADER "hosts/m68kaux.h" 180833965SjdpEOF 180933965Sjdp 181033965Sjdp ;; 181133965Sjdp m88*-*-sysv4*) ;; 181233965Sjdp m88*-motorola-sysv*) COREFILE=ptrace-core.o ;; 181333965Sjdp m88*-*-mach3*) 181433965Sjdp COREFILE=trad-core.o 181533965Sjdp cat >> confdefs.h <<\EOF 181633965Sjdp#define TRAD_HEADER "hosts/m88kmach3.h" 181733965SjdpEOF 181833965Sjdp 181933965Sjdp ;; 182033965Sjdp ns32k-pc532-mach) 182133965Sjdp COREFILE=trad-core.o 182233965Sjdp cat >> confdefs.h <<\EOF 182333965Sjdp#define TRAD_HEADER "hosts/pc532mach.h" 182433965SjdpEOF 182533965Sjdp 182633965Sjdp ;; 182733965Sjdp ns32k-*-netbsd* | ns32k-*-openbsd*) 182833965Sjdp COREFILE=netbsd-core.o 182933965Sjdp ;; 183033965Sjdp rs6000-*-lynx*) COREFILE=lynx-core.o ;; 183133965Sjdp rs6000-*-aix4*) COREFILE=rs6000-core.o ;; 183233965Sjdp rs6000-*-*) COREFILE=rs6000-core.o ;; 183333965Sjdp powerpc-*-*bsd*) COREFILE=netbsd-core.o ;; 183433965Sjdp powerpc-*-aix4*) COREFILE=rs6000-core.o ;; 183533965Sjdp powerpc-*-aix*) COREFILE=rs6000-core.o ;; 183633965Sjdp powerpc-*-beos*) ;; 183733965Sjdp sparc-*-netbsd* | sparc-*-openbsd*) 183833965Sjdp COREFILE=netbsd-core.o 183933965Sjdp ;; 184033965Sjdp tahoe-*-*) 184133965Sjdp COREFILE=trad-core.o 184233965Sjdp cat >> confdefs.h <<\EOF 184333965Sjdp#define TRAD_HEADER "hosts/tahoe.h" 184433965SjdpEOF 184533965Sjdp 184633965Sjdp ;; 184733965Sjdp vax-*-ultrix2*) 184833965Sjdp COREFILE=trad-core.o 184933965Sjdp cat >> confdefs.h <<\EOF 185033965Sjdp#define TRAD_HEADER "hosts/vaxult2.h" 185133965SjdpEOF 185233965Sjdp 185333965Sjdp ;; 185433965Sjdp vax-*-ultrix*) 185533965Sjdp COREFILE=trad-core.o 185633965Sjdp cat >> confdefs.h <<\EOF 185733965Sjdp#define TRAD_HEADER "hosts/vaxult2.h" 185833965SjdpEOF 185933965Sjdp 186033965Sjdp ;; 186133965Sjdp vax-*-*) 186233965Sjdp COREFILE=trad-core.o 186333965Sjdp cat >> confdefs.h <<\EOF 186433965Sjdp#define TRAD_HEADER "hosts/vaxbsd.h" 186533965SjdpEOF 186633965Sjdp 186733965Sjdp ;; 186833965Sjdp esac 186933965Sjdp 187033965Sjdp case "$COREFILE" in 187133965Sjdp aix386-core.o) COREFLAG=-DAIX386_CORE ;; 187233965Sjdp hppabsd-core.o) COREFLAG=-DHPPABSD_CORE ;; 187333965Sjdp hpux-core.o) COREFLAG=-DHPUX_CORE ;; 187433965Sjdp irix-core.o) COREFLAG=-DIRIX_CORE ;; 187533965Sjdp lynx-core.o) COREFLAG=-DLYNX_CORE ;; 187633965Sjdp osf-core.o) COREFLAG=-DOSF_CORE ;; 187733965Sjdp ptrace-core.o) COREFLAG=-DPTRACE_CORE ;; 187833965Sjdp rs6000-core.o) COREFLAG="$COREFLAG -DAIX_CORE" ;; 187933965Sjdp trad-core.o) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 188033965Sjdp esac 188133965Sjdp 188233965Sjdp # The ELF code uses the native <sys/procfs.h> to handle core files. 188333965Sjdp # Define HAVE_SYS_PROCFS_H if the file exists and defines 188433965Sjdp # prstatus_t. 188533965Sjdp echo $ac_n "checking for sys/procfs.h""... $ac_c" 1>&6 188633965Sjdpecho "configure:1887: checking for sys/procfs.h" >&5 188733965Sjdp if eval "test \"`echo '$''{'bfd_cv_header_sys_procfs_h'+set}'`\" = set"; then 188833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 188933965Sjdpelse 189033965Sjdp cat > conftest.$ac_ext <<EOF 189133965Sjdp#line 1892 "configure" 189233965Sjdp#include "confdefs.h" 189333965Sjdp#include <sys/procfs.h> 189433965Sjdpint main() { 189533965Sjdpprstatus_t t; 189633965Sjdp; return 0; } 189733965SjdpEOF 189833965Sjdpif { (eval echo configure:1899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 189933965Sjdp rm -rf conftest* 190033965Sjdp bfd_cv_header_sys_procfs_h=yes 190133965Sjdpelse 190233965Sjdp echo "configure: failed program was:" >&5 190333965Sjdp cat conftest.$ac_ext >&5 190433965Sjdp rm -rf conftest* 190533965Sjdp bfd_cv_header_sys_procfs_h=no 190633965Sjdpfi 190733965Sjdprm -f conftest* 190833965Sjdpfi 190933965Sjdp 191033965Sjdp echo "$ac_t""$bfd_cv_header_sys_procfs_h" 1>&6 191133965Sjdp if test $bfd_cv_header_sys_procfs_h = yes; then 191233965Sjdp cat >> confdefs.h <<\EOF 191333965Sjdp#define HAVE_SYS_PROCFS_H 1 191433965SjdpEOF 191533965Sjdp 191633965Sjdp fi 191733965Sjdp 191833965Sjdpfi 191933965Sjdp 192033965Sjdp 192133965Sjdp 192233965Sjdp# target stuff: 192333965Sjdp 192433965Sjdp# Canonicalize the secondary target names. 192533965Sjdpif test -n "$enable_targets" ; then 192633965Sjdp for targ in `echo $enable_targets | sed 's/,/ /g'` 192733965Sjdp do 192833965Sjdp result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null` 192933965Sjdp if test -n "$result" ; then 193033965Sjdp canon_targets="$canon_targets $result" 193133965Sjdp else 193233965Sjdp # Allow targets that config.sub doesn't recognize, like "all". 193333965Sjdp canon_targets="$canon_targets $targ" 193433965Sjdp fi 193533965Sjdp done 193633965Sjdpfi 193733965Sjdp 193833965Sjdpall_targets=false 193933965Sjdpdefvec= 194033965Sjdpselvecs= 194133965Sjdpselarchs= 194233965SjdpTDEFINES= 194333965Sjdpfor targ in $target $canon_targets 194433965Sjdpdo 194533965Sjdp if test "x$targ" = "xall"; then 194633965Sjdp all_targets=true 194733965Sjdp else 194833965Sjdp . $srcdir/config.bfd 194933965Sjdp if test "x$targ" = "x$target"; then 195033965Sjdp defvec=$targ_defvec 195133965Sjdp fi 195233965Sjdp selvecs="$selvecs $targ_defvec $targ_selvecs" 195333965Sjdp selarchs="$selarchs $targ_archs" 195433965Sjdp TDEFINES="$TDEFINES $targ_cflags" 195533965Sjdp fi 195633965Sjdpdone 195733965Sjdp 195833965Sjdp 195933965Sjdp# This processing still needs to be done if we're to decide properly whether 196033965Sjdp# 64-bit support needs to be compiled in. Currently, it will be included if 196133965Sjdp# the default or any other explicitly requested target requires it; it 196233965Sjdp# will not be included on a 32-bit host if no 64-bit target is requested, and 196333965Sjdp# no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is 196433965Sjdp# used. 196533965Sjdp 196633965Sjdp# uniq the default and selected vectors in all the configured targets. 196733965Sjdpf="" 196833965Sjdpfor i in $selvecs ; do 196933965Sjdp case " $f " in 197033965Sjdp *" $i "*) ;; 197133965Sjdp *) f="$f $i" ;; 197233965Sjdp esac 197333965Sjdpdone 197433965Sjdpselvecs="$f" 197533965Sjdp 197633965Sjdp# uniq the architectures in all the configured targets. 197733965Sjdpf="" 197833965Sjdpfor i in $selarchs ; do 197933965Sjdp case " $f " in 198033965Sjdp *" $i "*) ;; 198133965Sjdp *) f="$f $i" ;; 198233965Sjdp esac 198333965Sjdpdone 198433965Sjdpselarchs="$f" 198533965Sjdp 198633965Sjdp# Target backend .o files. 198733965Sjdptb= 198833965Sjdp 198933965Sjdpelf="elf.o elflink.o" 199033965Sjdp 199133965Sjdpfor vec in $selvecs 199233965Sjdpdo 199333965Sjdp case "$vec" in 199433965Sjdp # This list is alphabetized to make it easy to compare 199533965Sjdp # with the two vector lists in targets.c. 199633965Sjdp a29kcoff_big_vec) tb="$tb coff-a29k.o cofflink.o" ;; 199733965Sjdp a_out_adobe_vec) tb="$tb aout-adobe.o aout32.o" ;; 199833965Sjdp armcoff_little_vec) tb="$tb coff-arm.o cofflink.o " ;; 199933965Sjdp armcoff_big_vec) tb="$tb coff-arm.o cofflink.o " ;; 200033965Sjdp armpe_little_vec) tb="$tb pe-arm.o cofflink.o " ;; 200133965Sjdp armpe_big_vec) tb="$tb pe-arm.o cofflink.o " ;; 200233965Sjdp armpei_little_vec) tb="$tb pei-arm.o cofflink.o " ;; 200333965Sjdp armpei_big_vec) tb="$tb pei-arm.o cofflink.o " ;; 200433965Sjdp aout0_big_vec) tb="$tb aout0.o aout32.o" ;; 200533965Sjdp aout_arm_big_vec) tb="$tb aout-arm.o aout32.o" ;; 200633965Sjdp aout_arm_little_vec) tb="$tb aout-arm.o aout32.o" ;; 200733965Sjdp aout_mips_big_vec) tb="$tb mipsbsd.o aout32.o" ;; 200833965Sjdp aout_mips_little_vec) tb="$tb mipsbsd.o aout32.o" ;; 200933965Sjdp apollocoff_vec) tb="$tb coff-apollo.o" ;; 201033965Sjdp b_out_vec_big_host) tb="$tb bout.o aout32.o" ;; 201133965Sjdp b_out_vec_little_host) tb="$tb bout.o aout32.o" ;; 201233965Sjdp bfd_elf64_alpha_vec) tb="$tb elf64-alpha.o elf64.o $elf" 201333965Sjdp target64=true ;; 201433965Sjdp bfd_elf32_big_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;; 201533965Sjdp bfd_elf32_bigmips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;; 201633965Sjdp bfd_elf64_bigmips_vec) tb="$tb elf64-mips.o elf64.o elf32-mips.o elf32.o $elf ecofflink.o" 201733965Sjdp target64=true ;; 201833965Sjdp bfd_elf32_d10v_vec) tb="$tb elf32-d10v.o elf32.o $elf" ;; 201933965Sjdp bfd_elf32_hppa_vec) tb="$tb elf32-hppa.o elf32.o $elf" ;; 202033965Sjdp bfd_elf32_i386_vec) tb="$tb elf32-i386.o elf32.o $elf" ;; 202133965Sjdp bfd_elf32_i860_vec) tb="$tb elf32-i860.o elf32.o $elf" ;; 202233965Sjdp bfd_elf32_little_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;; 202333965Sjdp bfd_elf32_littlemips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;; 202433965Sjdp bfd_elf64_littlemips_vec) tb="$tb elf64-mips.o elf64.o elf32-mips.o elf32.o $elf ecofflink.o" 202533965Sjdp target64=true ;; 202633965Sjdp bfd_elf32_m32r_vec) tb="$tb elf32-m32r.o elf32.o $elf" ;; 202733965Sjdp bfd_elf32_m68k_vec) tb="$tb elf32-m68k.o elf32.o $elf" ;; 202833965Sjdp bfd_elf32_m88k_vec) tb="$tb elf32-m88k.o elf32.o $elf" ;; 202933965Sjdp bfd_elf32_mn10200_vec) tb="$tb elf-m10200.o elf32.o $elf" ;; 203033965Sjdp bfd_elf32_mn10300_vec) tb="$tb elf-m10300.o elf32.o $elf" ;; 203133965Sjdp bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;; 203233965Sjdp bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;; 203333965Sjdp bfd_elf32_sh_vec) tb="$tb elf32-sh.o elf32.o $elf coff-sh.o" ;; 203433965Sjdp bfd_elf32_shl_vec) tb="$tb elf32-sh.o elf32.o $elf coff-sh.o" ;; 203533965Sjdp bfd_elf32_sparc_vec) tb="$tb elf32-sparc.o elf32.o $elf" ;; 203633965Sjdp bfd_elf64_big_generic_vec) tb="$tb elf64-gen.o elf64.o $elf" 203733965Sjdp target64=true ;; 203833965Sjdp bfd_elf64_little_generic_vec) tb="$tb elf64-gen.o elf64.o $elf" 203933965Sjdp target64=true ;; 204033965Sjdp bfd_elf64_sparc_vec) tb="$tb elf64-sparc.o elf64.o $elf" 204133965Sjdp target64=true ;; 204233965Sjdp cisco_core_vec) tb="$tb cisco-core.o" ;; 204333965Sjdp demo_64_vec) tb="$tb demo64.o aout64.o" 204433965Sjdp target64=true ;; 204533965Sjdp ecoff_big_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;; 204633965Sjdp ecoff_little_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;; 204733965Sjdp ecoff_biglittle_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;; 204833965Sjdp ecoffalpha_little_vec) tb="$tb coff-alpha.o ecoff.o ecofflink.o" 204933965Sjdp target64=true ;; 205033965Sjdp evax_alpha_vec) tb="$tb evax-alpha.o evax-emh.o evax-egsd.o evax-etir.o evax-misc.o" 205133965Sjdp target64=true ;; 205233965Sjdp h8300coff_vec) tb="$tb coff-h8300.o reloc16.o" ;; 205333965Sjdp h8500coff_vec) tb="$tb coff-h8500.o reloc16.o" ;; 205433965Sjdp host_aout_vec) tb="$tb host-aout.o aout32.o" ;; 205533965Sjdp hp300bsd_vec) tb="$tb hp300bsd.o aout32.o" ;; 205633965Sjdp hp300hpux_vec) tb="$tb hp300hpux.o aout32.o" ;; 205733965Sjdp i386aout_vec) tb="$tb i386aout.o aout32.o" ;; 205833965Sjdp i386bsd_vec) tb="$tb i386bsd.o aout32.o" ;; 205933965Sjdp i386coff_vec) tb="$tb coff-i386.o cofflink.o" ;; 206033965Sjdp i386dynix_vec) tb="$tb i386dynix.o aout32.o" ;; 206133965Sjdp i386freebsd_vec) tb="$tb i386freebsd.o aout32.o" ;; 206233965Sjdp i386msdos_vec) tb="$tb i386msdos.o" ;; 206333965Sjdp i386pe_vec) tb="$tb pe-i386.o cofflink.o " ;; 206433965Sjdp i386pei_vec) tb="$tb pei-i386.o cofflink.o" ;; 206533965Sjdp i386linux_vec) tb="$tb i386linux.o aout32.o" ;; 206633965Sjdp i386lynx_aout_vec) tb="$tb i386lynx.o lynx-core.o aout32.o" ;; 206733965Sjdp i386lynx_coff_vec) tb="$tb cf-i386lynx.o cofflink.o lynx-core.o" ;; 206833965Sjdp i386mach3_vec) tb="$tb i386mach3.o aout32.o" ;; 206933965Sjdp i386netbsd_vec) tb="$tb i386netbsd.o aout32.o" ;; 207033965Sjdp i386os9k_vec) tb="$tb i386os9k.o aout32.o" ;; 207133965Sjdp i860coff_vec) tb="$tb coff-i860.o cofflink.o" ;; 207233965Sjdp icoff_big_vec) tb="$tb coff-i960.o cofflink.o" ;; 207333965Sjdp icoff_little_vec) tb="$tb coff-i960.o cofflink.o" ;; 207433965Sjdp ieee_vec) tb="$tb ieee.o" ;; 207533965Sjdp m68kcoff_vec) tb="$tb coff-m68k.o cofflink.o" ;; 207633965Sjdp m68kcoffun_vec) tb="$tb coff-u68k.o coff-m68k.o cofflink.o" ;; 207733965Sjdp m68klinux_vec) tb="$tb m68klinux.o aout32.o" ;; 207833965Sjdp m68klynx_aout_vec) tb="$tb m68klynx.o lynx-core.o aout32.o" ;; 207933965Sjdp m68klynx_coff_vec) tb="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o" ;; 208033965Sjdp m68knetbsd_vec) tb="$tb m68knetbsd.o aout32.o" ;; 208133965Sjdp m68k4knetbsd_vec) tb="$tb m68k4knetbsd.o aout32.o" ;; 208233965Sjdp m68kaux_coff_vec) tb="$tb coff-aux.o coff-m68k.o cofflink.o" ;; 208333965Sjdp m68ksysvcoff_vec) tb="$tb coff-svm68k.o cofflink.o" ;; 208433965Sjdp m88kbcs_vec) tb="$tb coff-m88k.o" ;; 208533965Sjdp newsos3_vec) tb="$tb newsos3.o aout32.o" ;; 208633965Sjdp nlm32_i386_vec) tb="$tb nlm32-i386.o nlm32.o nlm.o" ;; 208733965Sjdp nlm32_sparc_vec) tb="$tb nlm32-sparc.o nlm32.o nlm.o" ;; 208833965Sjdp nlm32_alpha_vec) tb="$tb nlm32-alpha.o nlm32.o nlm.o" 208933965Sjdp target64=true ;; 209033965Sjdp riscix_vec) tb="$tb aout32.o riscix.o" ;; 209133965Sjdp nlm32_powerpc_vec) tb="$tb nlm32-ppc.o nlm32.o nlm.o" ;; 209233965Sjdp pc532netbsd_vec) tb="$tb ns32knetbsd.o aout-ns32k.o" ;; 209333965Sjdp pc532machaout_vec) tb="$tb pc532-mach.o aout-ns32k.o" ;; 209433965Sjdp pmac_xcoff_vec) tb="$tb coff-pmac.o xcofflink.o" ;; 209533965Sjdp rs6000coff_vec) tb="$tb coff-rs6000.o xcofflink.o" ;; 209633965Sjdp bfd_powerpc_pe_vec) tb="$tb pe-ppc.o cofflink.o" ;; 209733965Sjdp bfd_powerpcle_pe_vec) tb="$tb pe-ppc.o cofflink.o" ;; 209833965Sjdp bfd_powerpc_pei_vec) tb="$tb pei-ppc.o cofflink.o" ;; 209933965Sjdp bfd_powerpcle_pei_vec) tb="$tb pei-ppc.o cofflink.o" ;; 210033965Sjdp ppcboot_vec) tb="$tb ppcboot.o" ;; 210133965Sjdp shcoff_vec) tb="$tb coff-sh.o cofflink.o" ;; 210233965Sjdp shlcoff_vec) tb="$tb coff-sh.o cofflink.o" ;; 210333965Sjdp som_vec) tb="$tb som.o" ;; 210433965Sjdp sparcle_aout_vec) tb="$tb aout-sparcle.o aout32.o" ;; 210533965Sjdp sparclinux_vec) tb="$tb sparclinux.o aout32.o stab-syms.o" ;; 210633965Sjdp sparclynx_aout_vec) tb="$tb sparclynx.o lynx-core.o aout32.o" ;; 210733965Sjdp sparclynx_coff_vec) tb="$tb cf-sparclynx.o lynx-core.o" ;; 210833965Sjdp sparcnetbsd_vec) tb="$tb sparcnetbsd.o aout32.o" ;; 210933965Sjdp sparccoff_vec) tb="$tb coff-sparc.o" ;; 211033965Sjdp srec_vec) tb="$tb srec.o" ;; 211133965Sjdp sunos_big_vec) tb="$tb sunos.o aout32.o" ;; 211233965Sjdp symbolsrec_vec) tb="$tb srec.o" ;; 211333965Sjdp tekhex_vec) tb="$tb tekhex.o" ;; 211433965Sjdp we32kcoff_vec) tb="$tb coff-we32k.o" ;; 211533965Sjdp z8kcoff_vec) tb="$tb coff-z8k.o reloc16.o" ;; 211633965Sjdp w65_vec) tb="$tb coff-w65.o reloc16.o" ;; 211733965Sjdp versados_vec) tb="$tb versados.o" ;; 211833965Sjdp 211933965Sjdp "") ;; 212033965Sjdp *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;; 212133965Sjdp esac 212233965Sjdpdone 212333965Sjdp 212433965Sjdp# Target architecture .o files. 212533965Sjdp# A couple of CPUs use shorter file names to avoid problems on DOS 212633965Sjdp# filesystems. 212733965Sjdpta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.o/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 212833965Sjdp 212933965Sjdp# Weed out duplicate .o files. 213033965Sjdpf="" 213133965Sjdpfor i in $tb ; do 213233965Sjdp case " $f " in 213333965Sjdp *" $i "*) ;; 213433965Sjdp *) f="$f $i" ;; 213533965Sjdp esac 213633965Sjdpdone 213733965Sjdptb="$f" 213833965Sjdp 213933965Sjdpf="" 214033965Sjdpfor i in $ta ; do 214133965Sjdp case " $f " in 214233965Sjdp *" $i "*) ;; 214333965Sjdp *) f="$f $i" ;; 214433965Sjdp esac 214533965Sjdpdone 214633965Sjdpta="$f" 214733965Sjdp 214833965Sjdpbfd_backends="$tb" 214933965Sjdpbfd_machines="$ta" 215033965Sjdp 215133965Sjdpif test x${all_targets} = xtrue ; then 215233965Sjdp bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 215333965Sjdp bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 215433965Sjdp selvecs= 215533965Sjdp havevecs= 215633965Sjdp selarchs= 215733965Sjdpelse # all_targets is true 215833965Sjdp # Only set these if they will be nonempty, for the clever echo. 215933965Sjdp havevecs= 216033965Sjdp test -n "$selvecs" && 216133965Sjdp havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 216233965Sjdp test -n "$selvecs" && 216333965Sjdp selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 216433965Sjdp test -n "$selarchs" && 216533965Sjdp selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 216633965Sjdpfi # all_targets is true 216733965Sjdp 216833965Sjdpcase ${host64}-${target64}-${want64} in 216933965Sjdp *true*) 217033965Sjdp wordsize=64 217133965Sjdp all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 217233965Sjdp if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then 217333965Sjdp echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2 217433965Sjdp echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2 217533965Sjdp fi 217633965Sjdp ;; 217733965Sjdp false-false-false) 217833965Sjdp wordsize=32 217933965Sjdp all_backends='$(BFD32_BACKENDS)' 218033965Sjdp ;; 218133965Sjdpesac 218233965Sjdp 218333965Sjdp 218433965Sjdp 218533965Sjdp 218633965Sjdp 218733965Sjdp 218833965Sjdptdefaults="" 218933965Sjdptest -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 219033965Sjdptest -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 219133965Sjdptest -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 219233965Sjdptest -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" 219333965Sjdp 219433965Sjdp 219533965Sjdpfor ac_hdr in unistd.h 219633965Sjdpdo 219733965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 219833965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 219933965Sjdpecho "configure:2200: checking for $ac_hdr" >&5 220033965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 220133965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 220233965Sjdpelse 220333965Sjdp cat > conftest.$ac_ext <<EOF 220433965Sjdp#line 2205 "configure" 220533965Sjdp#include "confdefs.h" 220633965Sjdp#include <$ac_hdr> 220733965SjdpEOF 220833965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 220933965Sjdp{ (eval echo configure:2210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 221033965Sjdpac_err=`grep -v '^ *+' conftest.out` 221133965Sjdpif test -z "$ac_err"; then 221233965Sjdp rm -rf conftest* 221333965Sjdp eval "ac_cv_header_$ac_safe=yes" 221433965Sjdpelse 221533965Sjdp echo "$ac_err" >&5 221633965Sjdp echo "configure: failed program was:" >&5 221733965Sjdp cat conftest.$ac_ext >&5 221833965Sjdp rm -rf conftest* 221933965Sjdp eval "ac_cv_header_$ac_safe=no" 222033965Sjdpfi 222133965Sjdprm -f conftest* 222233965Sjdpfi 222333965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 222433965Sjdp echo "$ac_t""yes" 1>&6 222533965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 222633965Sjdp cat >> confdefs.h <<EOF 222733965Sjdp#define $ac_tr_hdr 1 222833965SjdpEOF 222933965Sjdp 223033965Sjdpelse 223133965Sjdp echo "$ac_t""no" 1>&6 223233965Sjdpfi 223333965Sjdpdone 223433965Sjdp 223533965Sjdpfor ac_func in getpagesize 223633965Sjdpdo 223733965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 223833965Sjdpecho "configure:2239: checking for $ac_func" >&5 223933965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 224033965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 224133965Sjdpelse 224233965Sjdp cat > conftest.$ac_ext <<EOF 224333965Sjdp#line 2244 "configure" 224433965Sjdp#include "confdefs.h" 224533965Sjdp/* System header to define __stub macros and hopefully few prototypes, 224633965Sjdp which can conflict with char $ac_func(); below. */ 224733965Sjdp#include <assert.h> 224833965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 224933965Sjdp/* We use char because int might match the return type of a gcc2 225033965Sjdp builtin and then its argument prototype would still apply. */ 225133965Sjdpchar $ac_func(); 225233965Sjdp 225333965Sjdpint main() { 225433965Sjdp 225533965Sjdp/* The GNU C library defines this for functions which it implements 225633965Sjdp to always fail with ENOSYS. Some functions are actually named 225733965Sjdp something starting with __ and the normal name is an alias. */ 225833965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 225933965Sjdpchoke me 226033965Sjdp#else 226133965Sjdp$ac_func(); 226233965Sjdp#endif 226333965Sjdp 226433965Sjdp; return 0; } 226533965SjdpEOF 226633965Sjdpif { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 226733965Sjdp rm -rf conftest* 226833965Sjdp eval "ac_cv_func_$ac_func=yes" 226933965Sjdpelse 227033965Sjdp echo "configure: failed program was:" >&5 227133965Sjdp cat conftest.$ac_ext >&5 227233965Sjdp rm -rf conftest* 227333965Sjdp eval "ac_cv_func_$ac_func=no" 227433965Sjdpfi 227533965Sjdprm -f conftest* 227633965Sjdpfi 227733965Sjdp 227833965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 227933965Sjdp echo "$ac_t""yes" 1>&6 228033965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 228133965Sjdp cat >> confdefs.h <<EOF 228233965Sjdp#define $ac_tr_func 1 228333965SjdpEOF 228433965Sjdp 228533965Sjdpelse 228633965Sjdp echo "$ac_t""no" 1>&6 228733965Sjdpfi 228833965Sjdpdone 228933965Sjdp 229033965Sjdpecho $ac_n "checking for working mmap""... $ac_c" 1>&6 229133965Sjdpecho "configure:2292: checking for working mmap" >&5 229233965Sjdpif eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 229333965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 229433965Sjdpelse 229533965Sjdp if test "$cross_compiling" = yes; then 229633965Sjdp ac_cv_func_mmap_fixed_mapped=no 229733965Sjdpelse 229833965Sjdp cat > conftest.$ac_ext <<EOF 229933965Sjdp#line 2300 "configure" 230033965Sjdp#include "confdefs.h" 230133965Sjdp 230233965Sjdp/* Thanks to Mike Haertel and Jim Avera for this test. 230333965Sjdp Here is a matrix of mmap possibilities: 230433965Sjdp mmap private not fixed 230533965Sjdp mmap private fixed at somewhere currently unmapped 230633965Sjdp mmap private fixed at somewhere already mapped 230733965Sjdp mmap shared not fixed 230833965Sjdp mmap shared fixed at somewhere currently unmapped 230933965Sjdp mmap shared fixed at somewhere already mapped 231033965Sjdp For private mappings, we should verify that changes cannot be read() 231133965Sjdp back from the file, nor mmap's back from the file at a different 231233965Sjdp address. (There have been systems where private was not correctly 231333965Sjdp implemented like the infamous i386 svr4.0, and systems where the 231433965Sjdp VM page cache was not coherent with the filesystem buffer cache 231533965Sjdp like early versions of FreeBSD and possibly contemporary NetBSD.) 231633965Sjdp For shared mappings, we should conversely verify that changes get 231733965Sjdp propogated back to all the places they're supposed to be. 231833965Sjdp 231933965Sjdp Grep wants private fixed already mapped. 232033965Sjdp The main things grep needs to know about mmap are: 232133965Sjdp * does it exist and is it safe to write into the mmap'd area 232233965Sjdp * how to use it (BSD variants) */ 232333965Sjdp#include <sys/types.h> 232433965Sjdp#include <fcntl.h> 232533965Sjdp#include <sys/mman.h> 232633965Sjdp 232733965Sjdp/* This mess was copied from the GNU getpagesize.h. */ 232833965Sjdp#ifndef HAVE_GETPAGESIZE 232933965Sjdp# ifdef HAVE_UNISTD_H 233033965Sjdp# include <unistd.h> 233133965Sjdp# endif 233233965Sjdp 233333965Sjdp/* Assume that all systems that can run configure have sys/param.h. */ 233433965Sjdp# ifndef HAVE_SYS_PARAM_H 233533965Sjdp# define HAVE_SYS_PARAM_H 1 233633965Sjdp# endif 233733965Sjdp 233833965Sjdp# ifdef _SC_PAGESIZE 233933965Sjdp# define getpagesize() sysconf(_SC_PAGESIZE) 234033965Sjdp# else /* no _SC_PAGESIZE */ 234133965Sjdp# ifdef HAVE_SYS_PARAM_H 234233965Sjdp# include <sys/param.h> 234333965Sjdp# ifdef EXEC_PAGESIZE 234433965Sjdp# define getpagesize() EXEC_PAGESIZE 234533965Sjdp# else /* no EXEC_PAGESIZE */ 234633965Sjdp# ifdef NBPG 234733965Sjdp# define getpagesize() NBPG * CLSIZE 234833965Sjdp# ifndef CLSIZE 234933965Sjdp# define CLSIZE 1 235033965Sjdp# endif /* no CLSIZE */ 235133965Sjdp# else /* no NBPG */ 235233965Sjdp# ifdef NBPC 235333965Sjdp# define getpagesize() NBPC 235433965Sjdp# else /* no NBPC */ 235533965Sjdp# ifdef PAGESIZE 235633965Sjdp# define getpagesize() PAGESIZE 235733965Sjdp# endif /* PAGESIZE */ 235833965Sjdp# endif /* no NBPC */ 235933965Sjdp# endif /* no NBPG */ 236033965Sjdp# endif /* no EXEC_PAGESIZE */ 236133965Sjdp# else /* no HAVE_SYS_PARAM_H */ 236233965Sjdp# define getpagesize() 8192 /* punt totally */ 236333965Sjdp# endif /* no HAVE_SYS_PARAM_H */ 236433965Sjdp# endif /* no _SC_PAGESIZE */ 236533965Sjdp 236633965Sjdp#endif /* no HAVE_GETPAGESIZE */ 236733965Sjdp 236833965Sjdp#ifdef __cplusplus 236933965Sjdpextern "C" { void *malloc(unsigned); } 237033965Sjdp#else 237133965Sjdpchar *malloc(); 237233965Sjdp#endif 237333965Sjdp 237433965Sjdpint 237533965Sjdpmain() 237633965Sjdp{ 237733965Sjdp char *data, *data2, *data3; 237833965Sjdp int i, pagesize; 237933965Sjdp int fd; 238033965Sjdp 238133965Sjdp pagesize = getpagesize(); 238233965Sjdp 238333965Sjdp /* 238433965Sjdp * First, make a file with some known garbage in it. 238533965Sjdp */ 238633965Sjdp data = malloc(pagesize); 238733965Sjdp if (!data) 238833965Sjdp exit(1); 238933965Sjdp for (i = 0; i < pagesize; ++i) 239033965Sjdp *(data + i) = rand(); 239133965Sjdp umask(0); 239233965Sjdp fd = creat("conftestmmap", 0600); 239333965Sjdp if (fd < 0) 239433965Sjdp exit(1); 239533965Sjdp if (write(fd, data, pagesize) != pagesize) 239633965Sjdp exit(1); 239733965Sjdp close(fd); 239833965Sjdp 239933965Sjdp /* 240033965Sjdp * Next, try to mmap the file at a fixed address which 240133965Sjdp * already has something else allocated at it. If we can, 240233965Sjdp * also make sure that we see the same garbage. 240333965Sjdp */ 240433965Sjdp fd = open("conftestmmap", O_RDWR); 240533965Sjdp if (fd < 0) 240633965Sjdp exit(1); 240733965Sjdp data2 = malloc(2 * pagesize); 240833965Sjdp if (!data2) 240933965Sjdp exit(1); 241033965Sjdp data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 241133965Sjdp if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 241233965Sjdp MAP_PRIVATE | MAP_FIXED, fd, 0L)) 241333965Sjdp exit(1); 241433965Sjdp for (i = 0; i < pagesize; ++i) 241533965Sjdp if (*(data + i) != *(data2 + i)) 241633965Sjdp exit(1); 241733965Sjdp 241833965Sjdp /* 241933965Sjdp * Finally, make sure that changes to the mapped area 242033965Sjdp * do not percolate back to the file as seen by read(). 242133965Sjdp * (This is a bug on some variants of i386 svr4.0.) 242233965Sjdp */ 242333965Sjdp for (i = 0; i < pagesize; ++i) 242433965Sjdp *(data2 + i) = *(data2 + i) + 1; 242533965Sjdp data3 = malloc(pagesize); 242633965Sjdp if (!data3) 242733965Sjdp exit(1); 242833965Sjdp if (read(fd, data3, pagesize) != pagesize) 242933965Sjdp exit(1); 243033965Sjdp for (i = 0; i < pagesize; ++i) 243133965Sjdp if (*(data + i) != *(data3 + i)) 243233965Sjdp exit(1); 243333965Sjdp close(fd); 243433965Sjdp unlink("conftestmmap"); 243533965Sjdp exit(0); 243633965Sjdp} 243733965Sjdp 243833965SjdpEOF 243933965Sjdpif { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 244033965Sjdpthen 244133965Sjdp ac_cv_func_mmap_fixed_mapped=yes 244233965Sjdpelse 244333965Sjdp echo "configure: failed program was:" >&5 244433965Sjdp cat conftest.$ac_ext >&5 244533965Sjdp rm -fr conftest* 244633965Sjdp ac_cv_func_mmap_fixed_mapped=no 244733965Sjdpfi 244833965Sjdprm -fr conftest* 244933965Sjdpfi 245033965Sjdp 245133965Sjdpfi 245233965Sjdp 245333965Sjdpecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 245433965Sjdpif test $ac_cv_func_mmap_fixed_mapped = yes; then 245533965Sjdp cat >> confdefs.h <<\EOF 245633965Sjdp#define HAVE_MMAP 1 245733965SjdpEOF 245833965Sjdp 245933965Sjdpfi 246033965Sjdp 246133965Sjdpfor ac_func in madvise mprotect 246233965Sjdpdo 246333965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 246433965Sjdpecho "configure:2465: checking for $ac_func" >&5 246533965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 246633965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 246733965Sjdpelse 246833965Sjdp cat > conftest.$ac_ext <<EOF 246933965Sjdp#line 2470 "configure" 247033965Sjdp#include "confdefs.h" 247133965Sjdp/* System header to define __stub macros and hopefully few prototypes, 247233965Sjdp which can conflict with char $ac_func(); below. */ 247333965Sjdp#include <assert.h> 247433965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 247533965Sjdp/* We use char because int might match the return type of a gcc2 247633965Sjdp builtin and then its argument prototype would still apply. */ 247733965Sjdpchar $ac_func(); 247833965Sjdp 247933965Sjdpint main() { 248033965Sjdp 248133965Sjdp/* The GNU C library defines this for functions which it implements 248233965Sjdp to always fail with ENOSYS. Some functions are actually named 248333965Sjdp something starting with __ and the normal name is an alias. */ 248433965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 248533965Sjdpchoke me 248633965Sjdp#else 248733965Sjdp$ac_func(); 248833965Sjdp#endif 248933965Sjdp 249033965Sjdp; return 0; } 249133965SjdpEOF 249233965Sjdpif { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 249333965Sjdp rm -rf conftest* 249433965Sjdp eval "ac_cv_func_$ac_func=yes" 249533965Sjdpelse 249633965Sjdp echo "configure: failed program was:" >&5 249733965Sjdp cat conftest.$ac_ext >&5 249833965Sjdp rm -rf conftest* 249933965Sjdp eval "ac_cv_func_$ac_func=no" 250033965Sjdpfi 250133965Sjdprm -f conftest* 250233965Sjdpfi 250333965Sjdp 250433965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 250533965Sjdp echo "$ac_t""yes" 1>&6 250633965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 250733965Sjdp cat >> confdefs.h <<EOF 250833965Sjdp#define $ac_tr_func 1 250933965SjdpEOF 251033965Sjdp 251133965Sjdpelse 251233965Sjdp echo "$ac_t""no" 1>&6 251333965Sjdpfi 251433965Sjdpdone 251533965Sjdp 251633965Sjdpcase ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 251733965Sjdp true+yes ) cat >> confdefs.h <<\EOF 251833965Sjdp#define USE_MMAP 1 251933965SjdpEOF 252033965Sjdp ;; 252133965Sjdpesac 252233965Sjdp 252333965Sjdprm -f doc/config.status 252433965Sjdptrap '' 1 2 15 252533965Sjdpcat > confcache <<\EOF 252633965Sjdp# This file is a shell script that caches the results of configure 252733965Sjdp# tests run on this system so they can be shared between configure 252833965Sjdp# scripts and configure runs. It is not useful on other systems. 252933965Sjdp# If it contains results you don't want to keep, you may remove or edit it. 253033965Sjdp# 253133965Sjdp# By default, configure uses ./config.cache as the cache file, 253233965Sjdp# creating it if it does not exist already. You can give configure 253333965Sjdp# the --cache-file=FILE option to use a different cache file; that is 253433965Sjdp# what configure does when it calls configure scripts in 253533965Sjdp# subdirectories, so they share the cache. 253633965Sjdp# Giving --cache-file=/dev/null disables caching, for debugging configure. 253733965Sjdp# config.status only pays attention to the cache file if you give it the 253833965Sjdp# --recheck option to rerun configure. 253933965Sjdp# 254033965SjdpEOF 254133965Sjdp# The following way of writing the cache mishandles newlines in values, 254233965Sjdp# but we know of no workaround that is simple, portable, and efficient. 254333965Sjdp# So, don't put newlines in cache variables' values. 254433965Sjdp# Ultrix sh set writes to stderr and can't be redirected directly, 254533965Sjdp# and sets the high bit in the cache file unless we assign to the vars. 254633965Sjdp(set) 2>&1 | 254733965Sjdp case `(ac_space=' '; set) 2>&1` in 254833965Sjdp *ac_space=\ *) 254933965Sjdp # `set' does not quote correctly, so add quotes (double-quote substitution 255033965Sjdp # turns \\\\ into \\, and sed turns \\ into \). 255133965Sjdp sed -n \ 255233965Sjdp -e "s/'/'\\\\''/g" \ 255333965Sjdp -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 255433965Sjdp ;; 255533965Sjdp *) 255633965Sjdp # `set' quotes correctly as required by POSIX, so do not add quotes. 255733965Sjdp sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 255833965Sjdp ;; 255933965Sjdp esac >> confcache 256033965Sjdpif cmp -s $cache_file confcache; then 256133965Sjdp : 256233965Sjdpelse 256333965Sjdp if test -w $cache_file; then 256433965Sjdp echo "updating cache $cache_file" 256533965Sjdp cat confcache > $cache_file 256633965Sjdp else 256733965Sjdp echo "not updating unwritable cache $cache_file" 256833965Sjdp fi 256933965Sjdpfi 257033965Sjdprm -f confcache 257133965Sjdp 257233965Sjdptrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 257333965Sjdp 257433965Sjdptest "x$prefix" = xNONE && prefix=$ac_default_prefix 257533965Sjdp# Let make expand exec_prefix. 257633965Sjdptest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 257733965Sjdp 257833965Sjdp# Any assignment to VPATH causes Sun make to only execute 257933965Sjdp# the first set of double-colon rules, so remove it if not needed. 258033965Sjdp# If there is a colon in the path, we need to keep it. 258133965Sjdpif test "x$srcdir" = x.; then 258233965Sjdp ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 258333965Sjdpfi 258433965Sjdp 258533965Sjdptrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 258633965Sjdp 258733965SjdpDEFS=-DHAVE_CONFIG_H 258833965Sjdp 258933965Sjdp# Without the "./", some shells look in PATH for config.status. 259033965Sjdp: ${CONFIG_STATUS=./config.status} 259133965Sjdp 259233965Sjdpecho creating $CONFIG_STATUS 259333965Sjdprm -f $CONFIG_STATUS 259433965Sjdpcat > $CONFIG_STATUS <<EOF 259533965Sjdp#! /bin/sh 259633965Sjdp# Generated automatically by configure. 259733965Sjdp# Run this file to recreate the current configuration. 259833965Sjdp# This directory was configured as follows, 259933965Sjdp# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 260033965Sjdp# 260133965Sjdp# $0 $ac_configure_args 260233965Sjdp# 260333965Sjdp# Compiler output produced by configure, useful for debugging 260433965Sjdp# configure, is in ./config.log if it exists. 260533965Sjdp 260633965Sjdpac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 260733965Sjdpfor ac_option 260833965Sjdpdo 260933965Sjdp case "\$ac_option" in 261033965Sjdp -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 261133965Sjdp echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 261233965Sjdp exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 261333965Sjdp -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 261433965Sjdp echo "$CONFIG_STATUS generated by autoconf version 2.12" 261533965Sjdp exit 0 ;; 261633965Sjdp -help | --help | --hel | --he | --h) 261733965Sjdp echo "\$ac_cs_usage"; exit 0 ;; 261833965Sjdp *) echo "\$ac_cs_usage"; exit 1 ;; 261933965Sjdp esac 262033965Sjdpdone 262133965Sjdp 262233965Sjdpac_given_srcdir=$srcdir 262333965Sjdpac_given_INSTALL="$INSTALL" 262433965Sjdp 262533965Sjdptrap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 262633965SjdpEOF 262733965Sjdpcat >> $CONFIG_STATUS <<EOF 262833965Sjdp 262933965Sjdp# Protect against being on the right side of a sed subst in config.status. 263033965Sjdpsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 263133965Sjdp s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 263233965Sjdp$ac_vpsub 263333965Sjdp$extrasub 263433965Sjdps%@CFLAGS@%$CFLAGS%g 263533965Sjdps%@CPPFLAGS@%$CPPFLAGS%g 263633965Sjdps%@CXXFLAGS@%$CXXFLAGS%g 263733965Sjdps%@DEFS@%$DEFS%g 263833965Sjdps%@LDFLAGS@%$LDFLAGS%g 263933965Sjdps%@LIBS@%$LIBS%g 264033965Sjdps%@exec_prefix@%$exec_prefix%g 264133965Sjdps%@prefix@%$prefix%g 264233965Sjdps%@program_transform_name@%$program_transform_name%g 264333965Sjdps%@bindir@%$bindir%g 264433965Sjdps%@sbindir@%$sbindir%g 264533965Sjdps%@libexecdir@%$libexecdir%g 264633965Sjdps%@datadir@%$datadir%g 264733965Sjdps%@sysconfdir@%$sysconfdir%g 264833965Sjdps%@sharedstatedir@%$sharedstatedir%g 264933965Sjdps%@localstatedir@%$localstatedir%g 265033965Sjdps%@libdir@%$libdir%g 265133965Sjdps%@includedir@%$includedir%g 265233965Sjdps%@oldincludedir@%$oldincludedir%g 265333965Sjdps%@infodir@%$infodir%g 265433965Sjdps%@mandir@%$mandir%g 265533965Sjdps%@host@%$host%g 265633965Sjdps%@host_alias@%$host_alias%g 265733965Sjdps%@host_cpu@%$host_cpu%g 265833965Sjdps%@host_vendor@%$host_vendor%g 265933965Sjdps%@host_os@%$host_os%g 266033965Sjdps%@target@%$target%g 266133965Sjdps%@target_alias@%$target_alias%g 266233965Sjdps%@target_cpu@%$target_cpu%g 266333965Sjdps%@target_vendor@%$target_vendor%g 266433965Sjdps%@target_os@%$target_os%g 266533965Sjdps%@build@%$build%g 266633965Sjdps%@build_alias@%$build_alias%g 266733965Sjdps%@build_cpu@%$build_cpu%g 266833965Sjdps%@build_vendor@%$build_vendor%g 266933965Sjdps%@build_os@%$build_os%g 267033965Sjdps%@CC@%$CC%g 267133965Sjdps%@HDEFINES@%$HDEFINES%g 267233965Sjdps%@AR@%$AR%g 267333965Sjdps%@RANLIB@%$RANLIB%g 267433965Sjdps%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 267533965Sjdps%@INSTALL_DATA@%$INSTALL_DATA%g 267633965Sjdps%@ALLLIBS@%$ALLLIBS%g 267733965Sjdps%@PICFLAG@%$PICFLAG%g 267833965Sjdps%@SHLIB@%$SHLIB%g 267933965Sjdps%@SHLIB_CC@%$SHLIB_CC%g 268033965Sjdps%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g 268133965Sjdps%@SHLIB_LIBS@%$SHLIB_LIBS%g 268233965Sjdps%@COMMON_SHLIB@%$COMMON_SHLIB%g 268333965Sjdps%@PICLIST@%$PICLIST%g 268433965Sjdps%@SHLINK@%$SHLINK%g 268533965Sjdps%@INSTALL_SHLIB@%$INSTALL_SHLIB%g 268633965Sjdps%@VERSION@%$VERSION%g 268733965Sjdps%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g 268833965Sjdps%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g 268933965Sjdps%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g 269033965Sjdps%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g 269133965Sjdps%@CC_FOR_BUILD@%$CC_FOR_BUILD%g 269233965Sjdps%@CPP@%$CPP%g 269333965Sjdps%@COREFILE@%$COREFILE%g 269433965Sjdps%@COREFLAG@%$COREFLAG%g 269533965Sjdps%@TDEFINES@%$TDEFINES%g 269633965Sjdps%@wordsize@%$wordsize%g 269733965Sjdps%@all_backends@%$all_backends%g 269833965Sjdps%@bfd_backends@%$bfd_backends%g 269933965Sjdps%@bfd_machines@%$bfd_machines%g 270033965Sjdps%@tdefaults@%$tdefaults%g 270133965Sjdp 270233965SjdpCEOF 270333965SjdpEOF 270433965Sjdp 270533965Sjdpcat >> $CONFIG_STATUS <<\EOF 270633965Sjdp 270733965Sjdp# Split the substitutions into bite-sized pieces for seds with 270833965Sjdp# small command number limits, like on Digital OSF/1 and HP-UX. 270933965Sjdpac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 271033965Sjdpac_file=1 # Number of current file. 271133965Sjdpac_beg=1 # First line for current file. 271233965Sjdpac_end=$ac_max_sed_cmds # Line after last line for current file. 271333965Sjdpac_more_lines=: 271433965Sjdpac_sed_cmds="" 271533965Sjdpwhile $ac_more_lines; do 271633965Sjdp if test $ac_beg -gt 1; then 271733965Sjdp sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 271833965Sjdp else 271933965Sjdp sed "${ac_end}q" conftest.subs > conftest.s$ac_file 272033965Sjdp fi 272133965Sjdp if test ! -s conftest.s$ac_file; then 272233965Sjdp ac_more_lines=false 272333965Sjdp rm -f conftest.s$ac_file 272433965Sjdp else 272533965Sjdp if test -z "$ac_sed_cmds"; then 272633965Sjdp ac_sed_cmds="sed -f conftest.s$ac_file" 272733965Sjdp else 272833965Sjdp ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 272933965Sjdp fi 273033965Sjdp ac_file=`expr $ac_file + 1` 273133965Sjdp ac_beg=$ac_end 273233965Sjdp ac_end=`expr $ac_end + $ac_max_sed_cmds` 273333965Sjdp fi 273433965Sjdpdone 273533965Sjdpif test -z "$ac_sed_cmds"; then 273633965Sjdp ac_sed_cmds=cat 273733965Sjdpfi 273833965SjdpEOF 273933965Sjdp 274033965Sjdpcat >> $CONFIG_STATUS <<EOF 274133965Sjdp 274233965SjdpCONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h"} 274333965SjdpEOF 274433965Sjdpcat >> $CONFIG_STATUS <<\EOF 274533965Sjdpfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 274633965Sjdp # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 274733965Sjdp case "$ac_file" in 274833965Sjdp *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 274933965Sjdp ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 275033965Sjdp *) ac_file_in="${ac_file}.in" ;; 275133965Sjdp esac 275233965Sjdp 275333965Sjdp # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 275433965Sjdp 275533965Sjdp # Remove last slash and all that follows it. Not all systems have dirname. 275633965Sjdp ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 275733965Sjdp if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 275833965Sjdp # The file is in a subdirectory. 275933965Sjdp test ! -d "$ac_dir" && mkdir "$ac_dir" 276033965Sjdp ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 276133965Sjdp # A "../" for each directory in $ac_dir_suffix. 276233965Sjdp ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 276333965Sjdp else 276433965Sjdp ac_dir_suffix= ac_dots= 276533965Sjdp fi 276633965Sjdp 276733965Sjdp case "$ac_given_srcdir" in 276833965Sjdp .) srcdir=. 276933965Sjdp if test -z "$ac_dots"; then top_srcdir=. 277033965Sjdp else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 277133965Sjdp /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 277233965Sjdp *) # Relative path. 277333965Sjdp srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 277433965Sjdp top_srcdir="$ac_dots$ac_given_srcdir" ;; 277533965Sjdp esac 277633965Sjdp 277733965Sjdp case "$ac_given_INSTALL" in 277833965Sjdp [/$]*) INSTALL="$ac_given_INSTALL" ;; 277933965Sjdp *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 278033965Sjdp esac 278133965Sjdp 278233965Sjdp echo creating "$ac_file" 278333965Sjdp rm -f "$ac_file" 278433965Sjdp configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 278533965Sjdp case "$ac_file" in 278633965Sjdp *Makefile*) ac_comsub="1i\\ 278733965Sjdp# $configure_input" ;; 278833965Sjdp *) ac_comsub= ;; 278933965Sjdp esac 279033965Sjdp 279133965Sjdp ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 279233965Sjdp sed -e "$ac_comsub 279333965Sjdps%@configure_input@%$configure_input%g 279433965Sjdps%@srcdir@%$srcdir%g 279533965Sjdps%@top_srcdir@%$top_srcdir%g 279633965Sjdps%@INSTALL@%$INSTALL%g 279733965Sjdp" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 279833965Sjdpfi; done 279933965Sjdprm -f conftest.s* 280033965Sjdp 280133965Sjdp# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 280233965Sjdp# NAME is the cpp macro being defined and VALUE is the value it is being given. 280333965Sjdp# 280433965Sjdp# ac_d sets the value in "#define NAME VALUE" lines. 280533965Sjdpac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 280633965Sjdpac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 280733965Sjdpac_dC='\3' 280833965Sjdpac_dD='%g' 280933965Sjdp# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 281033965Sjdpac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 281133965Sjdpac_uB='\([ ]\)%\1#\2define\3' 281233965Sjdpac_uC=' ' 281333965Sjdpac_uD='\4%g' 281433965Sjdp# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 281533965Sjdpac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 281633965Sjdpac_eB='$%\1#\2define\3' 281733965Sjdpac_eC=' ' 281833965Sjdpac_eD='%g' 281933965Sjdp 282033965Sjdpif test "${CONFIG_HEADERS+set}" != set; then 282133965SjdpEOF 282233965Sjdpcat >> $CONFIG_STATUS <<EOF 282333965Sjdp CONFIG_HEADERS="config.h:config.in" 282433965SjdpEOF 282533965Sjdpcat >> $CONFIG_STATUS <<\EOF 282633965Sjdpfi 282733965Sjdpfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 282833965Sjdp # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 282933965Sjdp case "$ac_file" in 283033965Sjdp *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 283133965Sjdp ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 283233965Sjdp *) ac_file_in="${ac_file}.in" ;; 283333965Sjdp esac 283433965Sjdp 283533965Sjdp echo creating $ac_file 283633965Sjdp 283733965Sjdp rm -f conftest.frag conftest.in conftest.out 283833965Sjdp ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 283933965Sjdp cat $ac_file_inputs > conftest.in 284033965Sjdp 284133965SjdpEOF 284233965Sjdp 284333965Sjdp# Transform confdefs.h into a sed script conftest.vals that substitutes 284433965Sjdp# the proper values into config.h.in to produce config.h. And first: 284533965Sjdp# Protect against being on the right side of a sed subst in config.status. 284633965Sjdp# Protect against being in an unquoted here document in config.status. 284733965Sjdprm -f conftest.vals 284833965Sjdpcat > conftest.hdr <<\EOF 284933965Sjdps/[\\&%]/\\&/g 285033965Sjdps%[\\$`]%\\&%g 285133965Sjdps%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 285233965Sjdps%ac_d%ac_u%gp 285333965Sjdps%ac_u%ac_e%gp 285433965SjdpEOF 285533965Sjdpsed -n -f conftest.hdr confdefs.h > conftest.vals 285633965Sjdprm -f conftest.hdr 285733965Sjdp 285833965Sjdp# This sed command replaces #undef with comments. This is necessary, for 285933965Sjdp# example, in the case of _POSIX_SOURCE, which is predefined and required 286033965Sjdp# on some systems where configure will not decide to define it. 286133965Sjdpcat >> conftest.vals <<\EOF 286233965Sjdps%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 286333965SjdpEOF 286433965Sjdp 286533965Sjdp# Break up conftest.vals because some shells have a limit on 286633965Sjdp# the size of here documents, and old seds have small limits too. 286733965Sjdp 286833965Sjdprm -f conftest.tail 286933965Sjdpwhile : 287033965Sjdpdo 287133965Sjdp ac_lines=`grep -c . conftest.vals` 287233965Sjdp # grep -c gives empty output for an empty file on some AIX systems. 287333965Sjdp if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 287433965Sjdp # Write a limited-size here document to conftest.frag. 287533965Sjdp echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 287633965Sjdp sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 287733965Sjdp echo 'CEOF 287833965Sjdp sed -f conftest.frag conftest.in > conftest.out 287933965Sjdp rm -f conftest.in 288033965Sjdp mv conftest.out conftest.in 288133965Sjdp' >> $CONFIG_STATUS 288233965Sjdp sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 288333965Sjdp rm -f conftest.vals 288433965Sjdp mv conftest.tail conftest.vals 288533965Sjdpdone 288633965Sjdprm -f conftest.vals 288733965Sjdp 288833965Sjdpcat >> $CONFIG_STATUS <<\EOF 288933965Sjdp rm -f conftest.frag conftest.h 289033965Sjdp echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 289133965Sjdp cat conftest.in >> conftest.h 289233965Sjdp rm -f conftest.in 289333965Sjdp if cmp -s $ac_file conftest.h 2>/dev/null; then 289433965Sjdp echo "$ac_file is unchanged" 289533965Sjdp rm -f conftest.h 289633965Sjdp else 289733965Sjdp # Remove last slash and all that follows it. Not all systems have dirname. 289833965Sjdp ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 289933965Sjdp if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 290033965Sjdp # The file is in a subdirectory. 290133965Sjdp test ! -d "$ac_dir" && mkdir "$ac_dir" 290233965Sjdp fi 290333965Sjdp rm -f $ac_file 290433965Sjdp mv conftest.h $ac_file 290533965Sjdp fi 290633965Sjdpfi; done 290733965Sjdp 290833965SjdpEOF 290933965Sjdpcat >> $CONFIG_STATUS <<EOF 291033965Sjdp 291133965SjdpEOF 291233965Sjdpcat >> $CONFIG_STATUS <<\EOF 291333965Sjdpcase x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac 291433965Sjdpexit 0 291533965SjdpEOF 291633965Sjdpchmod +x $CONFIG_STATUS 291733965Sjdprm -fr confdefs* $ac_clean_files 291833965Sjdptest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 291933965Sjdp 2920