configure revision 78828
133965Sjdp#! /bin/sh 233965Sjdp 333965Sjdp# Guess values for system-dependent variables and create Makefiles. 460484Sobrien# Generated automatically using autoconf version 2.13 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 1560484Sobrien --enable-shared[=PKGS] build shared libraries [default=no]" 1638889Sjdpac_help="$ac_help 1760484Sobrien --enable-static[=PKGS] build static libraries [default=yes]" 1838889Sjdpac_help="$ac_help 1960484Sobrien --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 2060484Sobrienac_help="$ac_help 2138889Sjdp --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 2238889Sjdpac_help="$ac_help 2360484Sobrien --disable-libtool-lock avoid locking (might break parallel builds)" 2460484Sobrienac_help="$ac_help 2577298Sobrien --with-pic try to use only PIC/non-PIC objects [default=use both]" 2677298Sobrienac_help="$ac_help 2733965Sjdp --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)" 2833965Sjdpac_help="$ac_help 2933965Sjdp --enable-targets alternative target configurations" 3033965Sjdpac_help="$ac_help 3133965Sjdp --enable-commonbfdlib build shared BFD/opcodes/libiberty library" 3233965Sjdpac_help="$ac_help 3333965Sjdp --with-mmap try using mmap for BFD input files if available" 3438889Sjdpac_help="$ac_help 3577298Sobrien --enable-build-warnings Enable build-time compiler warnings if gcc is used" 3677298Sobrienac_help="$ac_help 3738889Sjdp --enable-maintainer-mode enable make rules and dependencies not useful 3838889Sjdp (and sometimes confusing) to the casual installer" 3960484Sobrienac_help="$ac_help 4060484Sobrien --disable-nls do not use Native Language Support" 4160484Sobrienac_help="$ac_help 4260484Sobrien --with-included-gettext use the GNU gettext library included here" 4333965Sjdp 4433965Sjdp# Initialize some variables set by options. 4533965Sjdp# The variables have the same names as the options, with 4633965Sjdp# dashes changed to underlines. 4733965Sjdpbuild=NONE 4833965Sjdpcache_file=./config.cache 4933965Sjdpexec_prefix=NONE 5033965Sjdphost=NONE 5133965Sjdpno_create= 5233965Sjdpnonopt=NONE 5333965Sjdpno_recursion= 5433965Sjdpprefix=NONE 5533965Sjdpprogram_prefix=NONE 5633965Sjdpprogram_suffix=NONE 5733965Sjdpprogram_transform_name=s,x,x, 5833965Sjdpsilent= 5933965Sjdpsite= 6077298Sobriensitefile= 6133965Sjdpsrcdir= 6233965Sjdptarget=NONE 6333965Sjdpverbose= 6433965Sjdpx_includes=NONE 6533965Sjdpx_libraries=NONE 6633965Sjdpbindir='${exec_prefix}/bin' 6733965Sjdpsbindir='${exec_prefix}/sbin' 6833965Sjdplibexecdir='${exec_prefix}/libexec' 6933965Sjdpdatadir='${prefix}/share' 7033965Sjdpsysconfdir='${prefix}/etc' 7133965Sjdpsharedstatedir='${prefix}/com' 7233965Sjdplocalstatedir='${prefix}/var' 7333965Sjdplibdir='${exec_prefix}/lib' 7433965Sjdpincludedir='${prefix}/include' 7533965Sjdpoldincludedir='/usr/include' 7633965Sjdpinfodir='${prefix}/info' 7733965Sjdpmandir='${prefix}/man' 7833965Sjdp 7933965Sjdp# Initialize some other variables. 8033965Sjdpsubdirs= 8133965SjdpMFLAGS= MAKEFLAGS= 8238889SjdpSHELL=${CONFIG_SHELL-/bin/sh} 8333965Sjdp# Maximum number of lines to put in a shell here document. 8433965Sjdpac_max_here_lines=12 8533965Sjdp 8633965Sjdpac_prev= 8733965Sjdpfor ac_option 8833965Sjdpdo 8933965Sjdp 9033965Sjdp # If the previous option needs an argument, assign it. 9133965Sjdp if test -n "$ac_prev"; then 9233965Sjdp eval "$ac_prev=\$ac_option" 9333965Sjdp ac_prev= 9433965Sjdp continue 9533965Sjdp fi 9633965Sjdp 9733965Sjdp case "$ac_option" in 9833965Sjdp -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 9933965Sjdp *) ac_optarg= ;; 10033965Sjdp esac 10133965Sjdp 10233965Sjdp # Accept the important Cygnus configure options, so we can diagnose typos. 10333965Sjdp 10433965Sjdp case "$ac_option" in 10533965Sjdp 10633965Sjdp -bindir | --bindir | --bindi | --bind | --bin | --bi) 10733965Sjdp ac_prev=bindir ;; 10833965Sjdp -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 10933965Sjdp bindir="$ac_optarg" ;; 11033965Sjdp 11133965Sjdp -build | --build | --buil | --bui | --bu) 11233965Sjdp ac_prev=build ;; 11333965Sjdp -build=* | --build=* | --buil=* | --bui=* | --bu=*) 11433965Sjdp build="$ac_optarg" ;; 11533965Sjdp 11633965Sjdp -cache-file | --cache-file | --cache-fil | --cache-fi \ 11733965Sjdp | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 11833965Sjdp ac_prev=cache_file ;; 11933965Sjdp -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 12033965Sjdp | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 12133965Sjdp cache_file="$ac_optarg" ;; 12233965Sjdp 12333965Sjdp -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 12433965Sjdp ac_prev=datadir ;; 12533965Sjdp -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 12633965Sjdp | --da=*) 12733965Sjdp datadir="$ac_optarg" ;; 12833965Sjdp 12933965Sjdp -disable-* | --disable-*) 13033965Sjdp ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 13133965Sjdp # Reject names that are not valid shell variable names. 13233965Sjdp if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 13333965Sjdp { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 13433965Sjdp fi 13533965Sjdp ac_feature=`echo $ac_feature| sed 's/-/_/g'` 13633965Sjdp eval "enable_${ac_feature}=no" ;; 13733965Sjdp 13833965Sjdp -enable-* | --enable-*) 13933965Sjdp ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 14033965Sjdp # Reject names that are not valid shell variable names. 14133965Sjdp if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 14233965Sjdp { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 14333965Sjdp fi 14433965Sjdp ac_feature=`echo $ac_feature| sed 's/-/_/g'` 14533965Sjdp case "$ac_option" in 14633965Sjdp *=*) ;; 14733965Sjdp *) ac_optarg=yes ;; 14833965Sjdp esac 14933965Sjdp eval "enable_${ac_feature}='$ac_optarg'" ;; 15033965Sjdp 15133965Sjdp -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 15233965Sjdp | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 15333965Sjdp | --exec | --exe | --ex) 15433965Sjdp ac_prev=exec_prefix ;; 15533965Sjdp -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 15633965Sjdp | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 15733965Sjdp | --exec=* | --exe=* | --ex=*) 15833965Sjdp exec_prefix="$ac_optarg" ;; 15933965Sjdp 16033965Sjdp -gas | --gas | --ga | --g) 16133965Sjdp # Obsolete; use --with-gas. 16233965Sjdp with_gas=yes ;; 16333965Sjdp 16433965Sjdp -help | --help | --hel | --he) 16533965Sjdp # Omit some internal or obsolete options to make the list less imposing. 16633965Sjdp # This message is too long to be a string in the A/UX 3.1 sh. 16733965Sjdp cat << EOF 16833965SjdpUsage: configure [options] [host] 16933965SjdpOptions: [defaults in brackets after descriptions] 17033965SjdpConfiguration: 17133965Sjdp --cache-file=FILE cache test results in FILE 17233965Sjdp --help print this message 17333965Sjdp --no-create do not create output files 17433965Sjdp --quiet, --silent do not print \`checking...' messages 17577298Sobrien --site-file=FILE use FILE as the site file 17633965Sjdp --version print the version of autoconf that created configure 17733965SjdpDirectory and file names: 17833965Sjdp --prefix=PREFIX install architecture-independent files in PREFIX 17933965Sjdp [$ac_default_prefix] 18033965Sjdp --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 18133965Sjdp [same as prefix] 18233965Sjdp --bindir=DIR user executables in DIR [EPREFIX/bin] 18333965Sjdp --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 18433965Sjdp --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 18533965Sjdp --datadir=DIR read-only architecture-independent data in DIR 18633965Sjdp [PREFIX/share] 18733965Sjdp --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 18833965Sjdp --sharedstatedir=DIR modifiable architecture-independent data in DIR 18933965Sjdp [PREFIX/com] 19033965Sjdp --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 19133965Sjdp --libdir=DIR object code libraries in DIR [EPREFIX/lib] 19233965Sjdp --includedir=DIR C header files in DIR [PREFIX/include] 19333965Sjdp --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 19433965Sjdp --infodir=DIR info documentation in DIR [PREFIX/info] 19533965Sjdp --mandir=DIR man documentation in DIR [PREFIX/man] 19633965Sjdp --srcdir=DIR find the sources in DIR [configure dir or ..] 19733965Sjdp --program-prefix=PREFIX prepend PREFIX to installed program names 19833965Sjdp --program-suffix=SUFFIX append SUFFIX to installed program names 19933965Sjdp --program-transform-name=PROGRAM 20033965Sjdp run sed PROGRAM on installed program names 20133965SjdpEOF 20233965Sjdp cat << EOF 20333965SjdpHost type: 20433965Sjdp --build=BUILD configure for building on BUILD [BUILD=HOST] 20533965Sjdp --host=HOST configure for HOST [guessed] 20633965Sjdp --target=TARGET configure for TARGET [TARGET=HOST] 20733965SjdpFeatures and packages: 20833965Sjdp --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 20933965Sjdp --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 21033965Sjdp --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 21133965Sjdp --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 21233965Sjdp --x-includes=DIR X include files are in DIR 21333965Sjdp --x-libraries=DIR X library files are in DIR 21433965SjdpEOF 21533965Sjdp if test -n "$ac_help"; then 21633965Sjdp echo "--enable and --with options recognized:$ac_help" 21733965Sjdp fi 21833965Sjdp exit 0 ;; 21933965Sjdp 22033965Sjdp -host | --host | --hos | --ho) 22133965Sjdp ac_prev=host ;; 22233965Sjdp -host=* | --host=* | --hos=* | --ho=*) 22333965Sjdp host="$ac_optarg" ;; 22433965Sjdp 22533965Sjdp -includedir | --includedir | --includedi | --included | --include \ 22633965Sjdp | --includ | --inclu | --incl | --inc) 22733965Sjdp ac_prev=includedir ;; 22833965Sjdp -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 22933965Sjdp | --includ=* | --inclu=* | --incl=* | --inc=*) 23033965Sjdp includedir="$ac_optarg" ;; 23133965Sjdp 23233965Sjdp -infodir | --infodir | --infodi | --infod | --info | --inf) 23333965Sjdp ac_prev=infodir ;; 23433965Sjdp -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 23533965Sjdp infodir="$ac_optarg" ;; 23633965Sjdp 23733965Sjdp -libdir | --libdir | --libdi | --libd) 23833965Sjdp ac_prev=libdir ;; 23933965Sjdp -libdir=* | --libdir=* | --libdi=* | --libd=*) 24033965Sjdp libdir="$ac_optarg" ;; 24133965Sjdp 24233965Sjdp -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 24333965Sjdp | --libexe | --libex | --libe) 24433965Sjdp ac_prev=libexecdir ;; 24533965Sjdp -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 24633965Sjdp | --libexe=* | --libex=* | --libe=*) 24733965Sjdp libexecdir="$ac_optarg" ;; 24833965Sjdp 24933965Sjdp -localstatedir | --localstatedir | --localstatedi | --localstated \ 25033965Sjdp | --localstate | --localstat | --localsta | --localst \ 25133965Sjdp | --locals | --local | --loca | --loc | --lo) 25233965Sjdp ac_prev=localstatedir ;; 25333965Sjdp -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 25433965Sjdp | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 25533965Sjdp | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 25633965Sjdp localstatedir="$ac_optarg" ;; 25733965Sjdp 25833965Sjdp -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 25933965Sjdp ac_prev=mandir ;; 26033965Sjdp -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 26133965Sjdp mandir="$ac_optarg" ;; 26233965Sjdp 26333965Sjdp -nfp | --nfp | --nf) 26433965Sjdp # Obsolete; use --without-fp. 26533965Sjdp with_fp=no ;; 26633965Sjdp 26733965Sjdp -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 26833965Sjdp | --no-cr | --no-c) 26933965Sjdp no_create=yes ;; 27033965Sjdp 27133965Sjdp -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 27233965Sjdp | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 27333965Sjdp no_recursion=yes ;; 27433965Sjdp 27533965Sjdp -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 27633965Sjdp | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 27733965Sjdp | --oldin | --oldi | --old | --ol | --o) 27833965Sjdp ac_prev=oldincludedir ;; 27933965Sjdp -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 28033965Sjdp | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 28133965Sjdp | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 28233965Sjdp oldincludedir="$ac_optarg" ;; 28333965Sjdp 28433965Sjdp -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 28533965Sjdp ac_prev=prefix ;; 28633965Sjdp -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 28733965Sjdp prefix="$ac_optarg" ;; 28833965Sjdp 28933965Sjdp -program-prefix | --program-prefix | --program-prefi | --program-pref \ 29033965Sjdp | --program-pre | --program-pr | --program-p) 29133965Sjdp ac_prev=program_prefix ;; 29233965Sjdp -program-prefix=* | --program-prefix=* | --program-prefi=* \ 29333965Sjdp | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 29433965Sjdp program_prefix="$ac_optarg" ;; 29533965Sjdp 29633965Sjdp -program-suffix | --program-suffix | --program-suffi | --program-suff \ 29733965Sjdp | --program-suf | --program-su | --program-s) 29833965Sjdp ac_prev=program_suffix ;; 29933965Sjdp -program-suffix=* | --program-suffix=* | --program-suffi=* \ 30033965Sjdp | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 30133965Sjdp program_suffix="$ac_optarg" ;; 30233965Sjdp 30333965Sjdp -program-transform-name | --program-transform-name \ 30433965Sjdp | --program-transform-nam | --program-transform-na \ 30533965Sjdp | --program-transform-n | --program-transform- \ 30633965Sjdp | --program-transform | --program-transfor \ 30733965Sjdp | --program-transfo | --program-transf \ 30833965Sjdp | --program-trans | --program-tran \ 30933965Sjdp | --progr-tra | --program-tr | --program-t) 31033965Sjdp ac_prev=program_transform_name ;; 31133965Sjdp -program-transform-name=* | --program-transform-name=* \ 31233965Sjdp | --program-transform-nam=* | --program-transform-na=* \ 31333965Sjdp | --program-transform-n=* | --program-transform-=* \ 31433965Sjdp | --program-transform=* | --program-transfor=* \ 31533965Sjdp | --program-transfo=* | --program-transf=* \ 31633965Sjdp | --program-trans=* | --program-tran=* \ 31733965Sjdp | --progr-tra=* | --program-tr=* | --program-t=*) 31833965Sjdp program_transform_name="$ac_optarg" ;; 31933965Sjdp 32033965Sjdp -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 32133965Sjdp | -silent | --silent | --silen | --sile | --sil) 32233965Sjdp silent=yes ;; 32333965Sjdp 32433965Sjdp -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 32533965Sjdp ac_prev=sbindir ;; 32633965Sjdp -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 32733965Sjdp | --sbi=* | --sb=*) 32833965Sjdp sbindir="$ac_optarg" ;; 32933965Sjdp 33033965Sjdp -sharedstatedir | --sharedstatedir | --sharedstatedi \ 33133965Sjdp | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 33233965Sjdp | --sharedst | --shareds | --shared | --share | --shar \ 33333965Sjdp | --sha | --sh) 33433965Sjdp ac_prev=sharedstatedir ;; 33533965Sjdp -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 33633965Sjdp | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 33733965Sjdp | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 33833965Sjdp | --sha=* | --sh=*) 33933965Sjdp sharedstatedir="$ac_optarg" ;; 34033965Sjdp 34133965Sjdp -site | --site | --sit) 34233965Sjdp ac_prev=site ;; 34333965Sjdp -site=* | --site=* | --sit=*) 34433965Sjdp site="$ac_optarg" ;; 34533965Sjdp 34677298Sobrien -site-file | --site-file | --site-fil | --site-fi | --site-f) 34777298Sobrien ac_prev=sitefile ;; 34877298Sobrien -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) 34977298Sobrien sitefile="$ac_optarg" ;; 35077298Sobrien 35133965Sjdp -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 35233965Sjdp ac_prev=srcdir ;; 35333965Sjdp -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 35433965Sjdp srcdir="$ac_optarg" ;; 35533965Sjdp 35633965Sjdp -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 35733965Sjdp | --syscon | --sysco | --sysc | --sys | --sy) 35833965Sjdp ac_prev=sysconfdir ;; 35933965Sjdp -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 36033965Sjdp | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 36133965Sjdp sysconfdir="$ac_optarg" ;; 36233965Sjdp 36333965Sjdp -target | --target | --targe | --targ | --tar | --ta | --t) 36433965Sjdp ac_prev=target ;; 36533965Sjdp -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 36633965Sjdp target="$ac_optarg" ;; 36733965Sjdp 36833965Sjdp -v | -verbose | --verbose | --verbos | --verbo | --verb) 36933965Sjdp verbose=yes ;; 37033965Sjdp 37133965Sjdp -version | --version | --versio | --versi | --vers) 37260484Sobrien echo "configure generated by autoconf version 2.13" 37333965Sjdp exit 0 ;; 37433965Sjdp 37533965Sjdp -with-* | --with-*) 37633965Sjdp ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 37733965Sjdp # Reject names that are not valid shell variable names. 37833965Sjdp if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 37933965Sjdp { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 38033965Sjdp fi 38133965Sjdp ac_package=`echo $ac_package| sed 's/-/_/g'` 38233965Sjdp case "$ac_option" in 38333965Sjdp *=*) ;; 38433965Sjdp *) ac_optarg=yes ;; 38533965Sjdp esac 38633965Sjdp eval "with_${ac_package}='$ac_optarg'" ;; 38733965Sjdp 38833965Sjdp -without-* | --without-*) 38933965Sjdp ac_package=`echo $ac_option|sed -e 's/-*without-//'` 39033965Sjdp # Reject names that are not valid shell variable names. 39133965Sjdp if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 39233965Sjdp { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 39333965Sjdp fi 39433965Sjdp ac_package=`echo $ac_package| sed 's/-/_/g'` 39533965Sjdp eval "with_${ac_package}=no" ;; 39633965Sjdp 39733965Sjdp --x) 39833965Sjdp # Obsolete; use --with-x. 39933965Sjdp with_x=yes ;; 40033965Sjdp 40133965Sjdp -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 40233965Sjdp | --x-incl | --x-inc | --x-in | --x-i) 40333965Sjdp ac_prev=x_includes ;; 40433965Sjdp -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 40533965Sjdp | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 40633965Sjdp x_includes="$ac_optarg" ;; 40733965Sjdp 40833965Sjdp -x-libraries | --x-libraries | --x-librarie | --x-librari \ 40933965Sjdp | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 41033965Sjdp ac_prev=x_libraries ;; 41133965Sjdp -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 41233965Sjdp | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 41333965Sjdp x_libraries="$ac_optarg" ;; 41433965Sjdp 41533965Sjdp -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 41633965Sjdp ;; 41733965Sjdp 41833965Sjdp *) 41933965Sjdp if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 42033965Sjdp echo "configure: warning: $ac_option: invalid host type" 1>&2 42133965Sjdp fi 42233965Sjdp if test "x$nonopt" != xNONE; then 42333965Sjdp { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 42433965Sjdp fi 42533965Sjdp nonopt="$ac_option" 42633965Sjdp ;; 42733965Sjdp 42833965Sjdp esac 42933965Sjdpdone 43033965Sjdp 43133965Sjdpif test -n "$ac_prev"; then 43233965Sjdp { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 43333965Sjdpfi 43433965Sjdp 43533965Sjdptrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 43633965Sjdp 43733965Sjdp# File descriptor usage: 43833965Sjdp# 0 standard input 43933965Sjdp# 1 file creation 44033965Sjdp# 2 errors and warnings 44133965Sjdp# 3 some systems may open it to /dev/tty 44233965Sjdp# 4 used on the Kubota Titan 44333965Sjdp# 6 checking for... messages and results 44433965Sjdp# 5 compiler messages saved in config.log 44533965Sjdpif test "$silent" = yes; then 44633965Sjdp exec 6>/dev/null 44733965Sjdpelse 44833965Sjdp exec 6>&1 44933965Sjdpfi 45033965Sjdpexec 5>./config.log 45133965Sjdp 45233965Sjdpecho "\ 45333965SjdpThis file contains any messages produced by compilers while 45433965Sjdprunning configure, to aid debugging if configure makes a mistake. 45533965Sjdp" 1>&5 45633965Sjdp 45733965Sjdp# Strip out --no-create and --no-recursion so they do not pile up. 45833965Sjdp# Also quote any args containing shell metacharacters. 45933965Sjdpac_configure_args= 46033965Sjdpfor ac_arg 46133965Sjdpdo 46233965Sjdp case "$ac_arg" in 46333965Sjdp -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 46433965Sjdp | --no-cr | --no-c) ;; 46533965Sjdp -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 46633965Sjdp | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 46733965Sjdp *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 46833965Sjdp ac_configure_args="$ac_configure_args '$ac_arg'" ;; 46933965Sjdp *) ac_configure_args="$ac_configure_args $ac_arg" ;; 47033965Sjdp esac 47133965Sjdpdone 47233965Sjdp 47333965Sjdp# NLS nuisances. 47433965Sjdp# Only set these to C if already set. These must not be set unconditionally 47533965Sjdp# because not all systems understand e.g. LANG=C (notably SCO). 47633965Sjdp# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 47733965Sjdp# Non-C LC_CTYPE values break the ctype check. 47833965Sjdpif test "${LANG+set}" = set; then LANG=C; export LANG; fi 47933965Sjdpif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 48033965Sjdpif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 48133965Sjdpif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 48233965Sjdp 48333965Sjdp# confdefs.h avoids OS command line length limits that DEFS can exceed. 48433965Sjdprm -rf conftest* confdefs.h 48533965Sjdp# AIX cpp loses on an empty file, so make sure it contains at least a newline. 48633965Sjdpecho > confdefs.h 48733965Sjdp 48833965Sjdp# A filename unique to this package, relative to the directory that 48933965Sjdp# configure is in, which we can look for to find out if srcdir is correct. 49033965Sjdpac_unique_file=libbfd.c 49133965Sjdp 49233965Sjdp# Find the source files, if location was not specified. 49333965Sjdpif test -z "$srcdir"; then 49433965Sjdp ac_srcdir_defaulted=yes 49533965Sjdp # Try the directory containing this script, then its parent. 49633965Sjdp ac_prog=$0 49733965Sjdp ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 49833965Sjdp test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 49933965Sjdp srcdir=$ac_confdir 50033965Sjdp if test ! -r $srcdir/$ac_unique_file; then 50133965Sjdp srcdir=.. 50233965Sjdp fi 50333965Sjdpelse 50433965Sjdp ac_srcdir_defaulted=no 50533965Sjdpfi 50633965Sjdpif test ! -r $srcdir/$ac_unique_file; then 50733965Sjdp if test "$ac_srcdir_defaulted" = yes; then 50833965Sjdp { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 50933965Sjdp else 51033965Sjdp { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 51133965Sjdp fi 51233965Sjdpfi 51333965Sjdpsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 51433965Sjdp 51533965Sjdp# Prefer explicitly selected file to automatically selected ones. 51677298Sobrienif test -z "$sitefile"; then 51777298Sobrien if test -z "$CONFIG_SITE"; then 51877298Sobrien if test "x$prefix" != xNONE; then 51977298Sobrien CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 52077298Sobrien else 52177298Sobrien CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 52277298Sobrien fi 52333965Sjdp fi 52477298Sobrienelse 52577298Sobrien CONFIG_SITE="$sitefile" 52633965Sjdpfi 52733965Sjdpfor ac_site_file in $CONFIG_SITE; do 52833965Sjdp if test -r "$ac_site_file"; then 52933965Sjdp echo "loading site script $ac_site_file" 53033965Sjdp . "$ac_site_file" 53133965Sjdp fi 53233965Sjdpdone 53333965Sjdp 53433965Sjdpif test -r "$cache_file"; then 53533965Sjdp echo "loading cache $cache_file" 53633965Sjdp . $cache_file 53733965Sjdpelse 53833965Sjdp echo "creating cache $cache_file" 53933965Sjdp > $cache_file 54033965Sjdpfi 54133965Sjdp 54233965Sjdpac_ext=c 54333965Sjdp# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 54433965Sjdpac_cpp='$CPP $CPPFLAGS' 54533965Sjdpac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 54660484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 54733965Sjdpcross_compiling=$ac_cv_prog_cc_cross 54833965Sjdp 54960484Sobrienac_exeext= 55060484Sobrienac_objext=o 55133965Sjdpif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 55233965Sjdp # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 55333965Sjdp if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 55433965Sjdp ac_n= ac_c=' 55533965Sjdp' ac_t=' ' 55633965Sjdp else 55733965Sjdp ac_n=-n ac_c= ac_t= 55833965Sjdp fi 55933965Sjdpelse 56033965Sjdp ac_n= ac_c='\c' ac_t= 56133965Sjdpfi 56233965Sjdp 56377298Sobrienecho $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 56477298Sobrienecho "configure:565: checking for Cygwin environment" >&5 56577298Sobrienif eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 56677298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 56777298Sobrienelse 56877298Sobrien cat > conftest.$ac_ext <<EOF 56977298Sobrien#line 570 "configure" 57077298Sobrien#include "confdefs.h" 57133965Sjdp 57277298Sobrienint main() { 57333965Sjdp 57477298Sobrien#ifndef __CYGWIN__ 57577298Sobrien#define __CYGWIN__ __CYGWIN32__ 57677298Sobrien#endif 57777298Sobrienreturn __CYGWIN__; 57877298Sobrien; return 0; } 57977298SobrienEOF 58077298Sobrienif { (eval echo configure:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 58177298Sobrien rm -rf conftest* 58277298Sobrien ac_cv_cygwin=yes 58377298Sobrienelse 58477298Sobrien echo "configure: failed program was:" >&5 58577298Sobrien cat conftest.$ac_ext >&5 58677298Sobrien rm -rf conftest* 58777298Sobrien ac_cv_cygwin=no 58877298Sobrienfi 58977298Sobrienrm -f conftest* 59077298Sobrienrm -f conftest* 59177298Sobrienfi 59277298Sobrien 59377298Sobrienecho "$ac_t""$ac_cv_cygwin" 1>&6 59477298SobrienCYGWIN= 59577298Sobrientest "$ac_cv_cygwin" = yes && CYGWIN=yes 59677298Sobrienecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 59777298Sobrienecho "configure:598: checking for mingw32 environment" >&5 59877298Sobrienif eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 59977298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 60077298Sobrienelse 60177298Sobrien cat > conftest.$ac_ext <<EOF 60277298Sobrien#line 603 "configure" 60377298Sobrien#include "confdefs.h" 60477298Sobrien 60577298Sobrienint main() { 60677298Sobrienreturn __MINGW32__; 60777298Sobrien; return 0; } 60877298SobrienEOF 60977298Sobrienif { (eval echo configure:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 61077298Sobrien rm -rf conftest* 61177298Sobrien ac_cv_mingw32=yes 61277298Sobrienelse 61377298Sobrien echo "configure: failed program was:" >&5 61477298Sobrien cat conftest.$ac_ext >&5 61577298Sobrien rm -rf conftest* 61677298Sobrien ac_cv_mingw32=no 61777298Sobrienfi 61877298Sobrienrm -f conftest* 61977298Sobrienrm -f conftest* 62077298Sobrienfi 62177298Sobrien 62277298Sobrienecho "$ac_t""$ac_cv_mingw32" 1>&6 62377298SobrienMINGW32= 62477298Sobrientest "$ac_cv_mingw32" = yes && MINGW32=yes 62577298Sobrien 62677298Sobrien 62733965Sjdpac_aux_dir= 62838889Sjdpfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 62933965Sjdp if test -f $ac_dir/install-sh; then 63033965Sjdp ac_aux_dir=$ac_dir 63133965Sjdp ac_install_sh="$ac_aux_dir/install-sh -c" 63233965Sjdp break 63333965Sjdp elif test -f $ac_dir/install.sh; then 63433965Sjdp ac_aux_dir=$ac_dir 63533965Sjdp ac_install_sh="$ac_aux_dir/install.sh -c" 63633965Sjdp break 63733965Sjdp fi 63833965Sjdpdone 63933965Sjdpif test -z "$ac_aux_dir"; then 64038889Sjdp { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 64133965Sjdpfi 64233965Sjdpac_config_guess=$ac_aux_dir/config.guess 64333965Sjdpac_config_sub=$ac_aux_dir/config.sub 64433965Sjdpac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 64533965Sjdp 64633965Sjdp 64733965Sjdp# Do some error checking and defaulting for the host and target type. 64833965Sjdp# The inputs are: 64933965Sjdp# configure --host=HOST --target=TARGET --build=BUILD NONOPT 65033965Sjdp# 65133965Sjdp# The rules are: 65233965Sjdp# 1. You are not allowed to specify --host, --target, and nonopt at the 65333965Sjdp# same time. 65433965Sjdp# 2. Host defaults to nonopt. 65533965Sjdp# 3. If nonopt is not specified, then host defaults to the current host, 65633965Sjdp# as determined by config.guess. 65733965Sjdp# 4. Target and build default to nonopt. 65833965Sjdp# 5. If nonopt is not specified, then target and build default to host. 65933965Sjdp 66033965Sjdp# The aliases save the names the user supplied, while $host etc. 66133965Sjdp# will get canonicalized. 66233965Sjdpcase $host---$target---$nonopt in 66333965SjdpNONE---*---* | *---NONE---* | *---*---NONE) ;; 66433965Sjdp*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 66533965Sjdpesac 66633965Sjdp 66733965Sjdp 66833965Sjdp# Make sure we can run config.sub. 66938889Sjdpif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 67033965Sjdpelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 67133965Sjdpfi 67233965Sjdp 67333965Sjdpecho $ac_n "checking host system type""... $ac_c" 1>&6 67477298Sobrienecho "configure:675: checking host system type" >&5 67533965Sjdp 67633965Sjdphost_alias=$host 67733965Sjdpcase "$host_alias" in 67833965SjdpNONE) 67933965Sjdp case $nonopt in 68033965Sjdp NONE) 68138889Sjdp if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 68233965Sjdp else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 68333965Sjdp fi ;; 68433965Sjdp *) host_alias=$nonopt ;; 68533965Sjdp esac ;; 68633965Sjdpesac 68733965Sjdp 68838889Sjdphost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 68933965Sjdphost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 69033965Sjdphost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 69133965Sjdphost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 69233965Sjdpecho "$ac_t""$host" 1>&6 69333965Sjdp 69433965Sjdpecho $ac_n "checking target system type""... $ac_c" 1>&6 69577298Sobrienecho "configure:696: checking target system type" >&5 69633965Sjdp 69733965Sjdptarget_alias=$target 69833965Sjdpcase "$target_alias" in 69933965SjdpNONE) 70033965Sjdp case $nonopt in 70133965Sjdp NONE) target_alias=$host_alias ;; 70233965Sjdp *) target_alias=$nonopt ;; 70333965Sjdp esac ;; 70433965Sjdpesac 70533965Sjdp 70638889Sjdptarget=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 70733965Sjdptarget_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 70833965Sjdptarget_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 70933965Sjdptarget_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 71033965Sjdpecho "$ac_t""$target" 1>&6 71133965Sjdp 71233965Sjdpecho $ac_n "checking build system type""... $ac_c" 1>&6 71377298Sobrienecho "configure:714: checking build system type" >&5 71433965Sjdp 71533965Sjdpbuild_alias=$build 71633965Sjdpcase "$build_alias" in 71733965SjdpNONE) 71833965Sjdp case $nonopt in 71933965Sjdp NONE) build_alias=$host_alias ;; 72033965Sjdp *) build_alias=$nonopt ;; 72133965Sjdp esac ;; 72233965Sjdpesac 72333965Sjdp 72438889Sjdpbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 72533965Sjdpbuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 72633965Sjdpbuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 72733965Sjdpbuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 72833965Sjdpecho "$ac_t""$build" 1>&6 72933965Sjdp 73033965Sjdptest "$host_alias" != "$target_alias" && 73133965Sjdp test "$program_prefix$program_suffix$program_transform_name" = \ 73233965Sjdp NONENONEs,x,x, && 73333965Sjdp program_prefix=${target_alias}- 73433965Sjdp 73578828Sobrien# Extract the first word of "gcc", so it can be a program name with args. 73678828Sobrienset dummy gcc; ac_word=$2 73778828Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 73878828Sobrienecho "configure:739: checking for $ac_word" >&5 73978828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 74078828Sobrien echo $ac_n "(cached) $ac_c" 1>&6 74178828Sobrienelse 74278828Sobrien if test -n "$CC"; then 74378828Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 74478828Sobrienelse 74578828Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 74678828Sobrien ac_dummy="$PATH" 74778828Sobrien for ac_dir in $ac_dummy; do 74878828Sobrien test -z "$ac_dir" && ac_dir=. 74978828Sobrien if test -f $ac_dir/$ac_word; then 75078828Sobrien ac_cv_prog_CC="gcc" 75178828Sobrien break 75278828Sobrien fi 75378828Sobrien done 75478828Sobrien IFS="$ac_save_ifs" 75578828Sobrienfi 75678828Sobrienfi 75778828SobrienCC="$ac_cv_prog_CC" 75878828Sobrienif test -n "$CC"; then 75978828Sobrien echo "$ac_t""$CC" 1>&6 76078828Sobrienelse 76178828Sobrien echo "$ac_t""no" 1>&6 76278828Sobrienfi 76333965Sjdp 76478828Sobrienif test -z "$CC"; then 76578828Sobrien # Extract the first word of "cc", so it can be a program name with args. 76678828Sobrienset dummy cc; ac_word=$2 76778828Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 76878828Sobrienecho "configure:769: checking for $ac_word" >&5 76978828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 77033965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 77133965Sjdpelse 77278828Sobrien if test -n "$CC"; then 77378828Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 77478828Sobrienelse 77578828Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 77678828Sobrien ac_prog_rejected=no 77778828Sobrien ac_dummy="$PATH" 77878828Sobrien for ac_dir in $ac_dummy; do 77978828Sobrien test -z "$ac_dir" && ac_dir=. 78078828Sobrien if test -f $ac_dir/$ac_word; then 78178828Sobrien if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 78278828Sobrien ac_prog_rejected=yes 78378828Sobrien continue 78478828Sobrien fi 78578828Sobrien ac_cv_prog_CC="cc" 78678828Sobrien break 78778828Sobrien fi 78878828Sobrien done 78978828Sobrien IFS="$ac_save_ifs" 79078828Sobrienif test $ac_prog_rejected = yes; then 79178828Sobrien # We found a bogon in the path, so make sure we never use it. 79278828Sobrien set dummy $ac_cv_prog_CC 79378828Sobrien shift 79478828Sobrien if test $# -gt 0; then 79578828Sobrien # We chose a different compiler from the bogus one. 79678828Sobrien # However, it has the same basename, so the bogon will be chosen 79778828Sobrien # first if we set CC to just the basename; use the full file name. 79878828Sobrien shift 79978828Sobrien set dummy "$ac_dir/$ac_word" "$@" 80078828Sobrien shift 80178828Sobrien ac_cv_prog_CC="$@" 80278828Sobrien fi 80378828Sobrienfi 80478828Sobrienfi 80578828Sobrienfi 80678828SobrienCC="$ac_cv_prog_CC" 80778828Sobrienif test -n "$CC"; then 80878828Sobrien echo "$ac_t""$CC" 1>&6 80978828Sobrienelse 81078828Sobrien echo "$ac_t""no" 1>&6 81178828Sobrienfi 81278828Sobrien 81378828Sobrien if test -z "$CC"; then 81478828Sobrien case "`uname -s`" in 81578828Sobrien *win32* | *WIN32*) 81678828Sobrien # Extract the first word of "cl", so it can be a program name with args. 81778828Sobrienset dummy cl; ac_word=$2 81878828Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 81978828Sobrienecho "configure:820: checking for $ac_word" >&5 82078828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 82178828Sobrien echo $ac_n "(cached) $ac_c" 1>&6 82278828Sobrienelse 82378828Sobrien if test -n "$CC"; then 82478828Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 82578828Sobrienelse 82678828Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 82778828Sobrien ac_dummy="$PATH" 82878828Sobrien for ac_dir in $ac_dummy; do 82978828Sobrien test -z "$ac_dir" && ac_dir=. 83078828Sobrien if test -f $ac_dir/$ac_word; then 83178828Sobrien ac_cv_prog_CC="cl" 83278828Sobrien break 83378828Sobrien fi 83478828Sobrien done 83578828Sobrien IFS="$ac_save_ifs" 83678828Sobrienfi 83778828Sobrienfi 83878828SobrienCC="$ac_cv_prog_CC" 83978828Sobrienif test -n "$CC"; then 84078828Sobrien echo "$ac_t""$CC" 1>&6 84178828Sobrienelse 84278828Sobrien echo "$ac_t""no" 1>&6 84378828Sobrienfi 84478828Sobrien ;; 84578828Sobrien esac 84678828Sobrien fi 84778828Sobrien test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 84878828Sobrienfi 84978828Sobrien 85078828Sobrienecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 85178828Sobrienecho "configure:852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 85278828Sobrien 85378828Sobrienac_ext=c 85478828Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 85578828Sobrienac_cpp='$CPP $CPPFLAGS' 85678828Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 85778828Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 85878828Sobriencross_compiling=$ac_cv_prog_cc_cross 85978828Sobrien 86078828Sobriencat > conftest.$ac_ext << EOF 86178828Sobrien 86278828Sobrien#line 863 "configure" 86333965Sjdp#include "confdefs.h" 86460484Sobrien 86578828Sobrienmain(){return(0);} 86633965SjdpEOF 86778828Sobrienif { (eval echo configure:868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 86878828Sobrien ac_cv_prog_cc_works=yes 86978828Sobrien # If we can't run a trivial program, we are probably using a cross compiler. 87078828Sobrien if (./conftest; exit) 2>/dev/null; then 87178828Sobrien ac_cv_prog_cc_cross=no 87278828Sobrien else 87378828Sobrien ac_cv_prog_cc_cross=yes 87478828Sobrien fi 87533965Sjdpelse 87633965Sjdp echo "configure: failed program was:" >&5 87733965Sjdp cat conftest.$ac_ext >&5 87878828Sobrien ac_cv_prog_cc_works=no 87933965Sjdpfi 88078828Sobrienrm -fr conftest* 88178828Sobrienac_ext=c 88278828Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 88378828Sobrienac_cpp='$CPP $CPPFLAGS' 88478828Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 88578828Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 88678828Sobriencross_compiling=$ac_cv_prog_cc_cross 88778828Sobrien 88878828Sobrienecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 88978828Sobrienif test $ac_cv_prog_cc_works = no; then 89078828Sobrien { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 89178828Sobrienfi 89278828Sobrienecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 89378828Sobrienecho "configure:894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 89478828Sobrienecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 89578828Sobriencross_compiling=$ac_cv_prog_cc_cross 89678828Sobrien 89778828Sobrienecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 89878828Sobrienecho "configure:899: checking whether we are using GNU C" >&5 89978828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 90078828Sobrien echo $ac_n "(cached) $ac_c" 1>&6 90178828Sobrienelse 90278828Sobrien cat > conftest.c <<EOF 90378828Sobrien#ifdef __GNUC__ 90478828Sobrien yes; 90578828Sobrien#endif 90678828SobrienEOF 90778828Sobrienif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 90878828Sobrien ac_cv_prog_gcc=yes 90978828Sobrienelse 91078828Sobrien ac_cv_prog_gcc=no 91178828Sobrienfi 91278828Sobrienfi 91378828Sobrien 91478828Sobrienecho "$ac_t""$ac_cv_prog_gcc" 1>&6 91578828Sobrien 91678828Sobrienif test $ac_cv_prog_gcc = yes; then 91778828Sobrien GCC=yes 91878828Sobrienelse 91978828Sobrien GCC= 92078828Sobrienfi 92178828Sobrien 92278828Sobrienac_test_CFLAGS="${CFLAGS+set}" 92378828Sobrienac_save_CFLAGS="$CFLAGS" 92478828SobrienCFLAGS= 92578828Sobrienecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 92678828Sobrienecho "configure:927: checking whether ${CC-cc} accepts -g" >&5 92778828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 92878828Sobrien echo $ac_n "(cached) $ac_c" 1>&6 92978828Sobrienelse 93078828Sobrien echo 'void f(){}' > conftest.c 93178828Sobrienif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 93278828Sobrien ac_cv_prog_cc_g=yes 93378828Sobrienelse 93478828Sobrien ac_cv_prog_cc_g=no 93578828Sobrienfi 93633965Sjdprm -f conftest* 93733965Sjdp 93833965Sjdpfi 93978828Sobrien 94078828Sobrienecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 94178828Sobrienif test "$ac_test_CFLAGS" = set; then 94278828Sobrien CFLAGS="$ac_save_CFLAGS" 94378828Sobrienelif test $ac_cv_prog_cc_g = yes; then 94478828Sobrien if test "$GCC" = yes; then 94578828Sobrien CFLAGS="-g -O2" 94678828Sobrien else 94778828Sobrien CFLAGS="-g" 94878828Sobrien fi 94978828Sobrienelse 95078828Sobrien if test "$GCC" = yes; then 95178828Sobrien CFLAGS="-O2" 95278828Sobrien else 95378828Sobrien CFLAGS= 95478828Sobrien fi 95578828Sobrienfi 95678828Sobrien 95778828Sobrienecho $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 95878828Sobrienecho "configure:959: checking for POSIXized ISC" >&5 95978828Sobrienif test -d /etc/conf/kconfig.d && 96078828Sobrien grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 96178828Sobrienthen 96233965Sjdp echo "$ac_t""yes" 1>&6 96378828Sobrien ISC=yes # If later tests want to check for ISC. 96478828Sobrien cat >> confdefs.h <<\EOF 96578828Sobrien#define _POSIX_SOURCE 1 96678828SobrienEOF 96778828Sobrien 96878828Sobrien if test "$GCC" = yes; then 96978828Sobrien CC="$CC -posix" 97078828Sobrien else 97178828Sobrien CC="$CC -Xp" 97278828Sobrien fi 97333965Sjdpelse 97433965Sjdp echo "$ac_t""no" 1>&6 97578828Sobrien ISC= 97633965Sjdpfi 97733965Sjdp 97833965Sjdp 97938889Sjdp# Find a good install program. We prefer a C program (faster), 98038889Sjdp# so one script is as good as another. But avoid the broken or 98138889Sjdp# incompatible versions: 98238889Sjdp# SysV /etc/install, /usr/sbin/install 98338889Sjdp# SunOS /usr/etc/install 98438889Sjdp# IRIX /sbin/install 98538889Sjdp# AIX /bin/install 98638889Sjdp# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 98738889Sjdp# AFS /usr/afsws/bin/install, which mishandles nonexistent args 98838889Sjdp# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 98938889Sjdp# ./install, which can be erroneously created by make from ./install.sh. 99038889Sjdpecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 99178828Sobrienecho "configure:992: checking for a BSD compatible install" >&5 99238889Sjdpif test -z "$INSTALL"; then 99338889Sjdpif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 99438889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 99538889Sjdpelse 99660484Sobrien IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 99738889Sjdp for ac_dir in $PATH; do 99838889Sjdp # Account for people who put trailing slashes in PATH elements. 99938889Sjdp case "$ac_dir/" in 100038889Sjdp /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 100138889Sjdp *) 100238889Sjdp # OSF1 and SCO ODT 3.0 have their own names for install. 100338889Sjdp # Don't use installbsd from OSF since it installs stuff as root 100438889Sjdp # by default. 100538889Sjdp for ac_prog in ginstall scoinst install; do 100638889Sjdp if test -f $ac_dir/$ac_prog; then 100738889Sjdp if test $ac_prog = install && 100838889Sjdp grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 100938889Sjdp # AIX install. It has an incompatible calling convention. 101038889Sjdp : 101138889Sjdp else 101238889Sjdp ac_cv_path_install="$ac_dir/$ac_prog -c" 101338889Sjdp break 2 101438889Sjdp fi 101538889Sjdp fi 101638889Sjdp done 101738889Sjdp ;; 101838889Sjdp esac 101938889Sjdp done 102038889Sjdp IFS="$ac_save_IFS" 102133965Sjdp 102238889Sjdpfi 102338889Sjdp if test "${ac_cv_path_install+set}" = set; then 102438889Sjdp INSTALL="$ac_cv_path_install" 102538889Sjdp else 102638889Sjdp # As a last resort, use the slow shell script. We don't cache a 102738889Sjdp # path for INSTALL within a source directory, because that will 102838889Sjdp # break other packages using the cache if that directory is 102938889Sjdp # removed, or if the path is relative. 103038889Sjdp INSTALL="$ac_install_sh" 103138889Sjdp fi 103238889Sjdpfi 103338889Sjdpecho "$ac_t""$INSTALL" 1>&6 103433965Sjdp 103538889Sjdp# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 103638889Sjdp# It thinks the first close brace ends the variable substitution. 103738889Sjdptest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 103838889Sjdp 103960484Sobrientest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 104060484Sobrien 104138889Sjdptest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 104238889Sjdp 104338889Sjdpecho $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 104478828Sobrienecho "configure:1045: checking whether build environment is sane" >&5 104538889Sjdp# Just in case 104638889Sjdpsleep 1 104738889Sjdpecho timestamp > conftestfile 104838889Sjdp# Do `set' in a subshell so we don't clobber the current shell's 104938889Sjdp# arguments. Must try -L first in case configure is actually a 105038889Sjdp# symlink; some systems play weird games with the mod time of symlinks 105138889Sjdp# (eg FreeBSD returns the mod time of the symlink's containing 105238889Sjdp# directory). 105338889Sjdpif ( 105438889Sjdp set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 105538889Sjdp if test "$*" = "X"; then 105638889Sjdp # -L didn't work. 105738889Sjdp set X `ls -t $srcdir/configure conftestfile` 105838889Sjdp fi 105938889Sjdp if test "$*" != "X $srcdir/configure conftestfile" \ 106038889Sjdp && test "$*" != "X conftestfile $srcdir/configure"; then 106138889Sjdp 106238889Sjdp # If neither matched, then we have a broken ls. This can happen 106338889Sjdp # if, for instance, CONFIG_SHELL is bash and it inherits a 106438889Sjdp # broken ls alias from the environment. This has actually 106538889Sjdp # happened. Such a system could not be considered "sane". 106638889Sjdp { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 106738889Sjdpalias in your environment" 1>&2; exit 1; } 106838889Sjdp fi 106938889Sjdp 107038889Sjdp test "$2" = conftestfile 107138889Sjdp ) 107238889Sjdpthen 107338889Sjdp # Ok. 107438889Sjdp : 107538889Sjdpelse 107638889Sjdp { echo "configure: error: newly created file is older than distributed files! 107738889SjdpCheck your system clock" 1>&2; exit 1; } 107838889Sjdpfi 107938889Sjdprm -f conftest* 108038889Sjdpecho "$ac_t""yes" 1>&6 108138889Sjdpif test "$program_transform_name" = s,x,x,; then 108238889Sjdp program_transform_name= 108338889Sjdpelse 108438889Sjdp # Double any \ or $. echo might interpret backslashes. 108538889Sjdp cat <<\EOF_SED > conftestsed 108638889Sjdps,\\,\\\\,g; s,\$,$$,g 108738889SjdpEOF_SED 108838889Sjdp program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 108938889Sjdp rm -f conftestsed 109038889Sjdpfi 109138889Sjdptest "$program_prefix" != NONE && 109238889Sjdp program_transform_name="s,^,${program_prefix},; $program_transform_name" 109338889Sjdp# Use a double $ so make ignores it. 109438889Sjdptest "$program_suffix" != NONE && 109538889Sjdp program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 109638889Sjdp 109738889Sjdp# sed with no file args requires a program. 109838889Sjdptest "$program_transform_name" = "" && program_transform_name="s,x,x," 109938889Sjdp 110038889Sjdpecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 110178828Sobrienecho "configure:1102: checking whether ${MAKE-make} sets \${MAKE}" >&5 110238889Sjdpset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 110338889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 110438889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 110538889Sjdpelse 110638889Sjdp cat > conftestmake <<\EOF 110738889Sjdpall: 110838889Sjdp @echo 'ac_maketemp="${MAKE}"' 110938889SjdpEOF 111038889Sjdp# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 111138889Sjdpeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 111238889Sjdpif test -n "$ac_maketemp"; then 111338889Sjdp eval ac_cv_prog_make_${ac_make}_set=yes 111438889Sjdpelse 111538889Sjdp eval ac_cv_prog_make_${ac_make}_set=no 111638889Sjdpfi 111738889Sjdprm -f conftestmake 111838889Sjdpfi 111938889Sjdpif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 112038889Sjdp echo "$ac_t""yes" 1>&6 112138889Sjdp SET_MAKE= 112238889Sjdpelse 112338889Sjdp echo "$ac_t""no" 1>&6 112438889Sjdp SET_MAKE="MAKE=${MAKE-make}" 112538889Sjdpfi 112638889Sjdp 112738889Sjdp 112838889SjdpPACKAGE=bfd 112938889Sjdp 113078828SobrienVERSION=2.11.2 113138889Sjdp 113238889Sjdpif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 113338889Sjdp { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 113438889Sjdpfi 113538889Sjdpcat >> confdefs.h <<EOF 113638889Sjdp#define PACKAGE "$PACKAGE" 113738889SjdpEOF 113838889Sjdp 113938889Sjdpcat >> confdefs.h <<EOF 114038889Sjdp#define VERSION "$VERSION" 114138889SjdpEOF 114238889Sjdp 114338889Sjdp 114438889Sjdp 114538889Sjdpmissing_dir=`cd $ac_aux_dir && pwd` 114638889Sjdpecho $ac_n "checking for working aclocal""... $ac_c" 1>&6 114778828Sobrienecho "configure:1148: checking for working aclocal" >&5 114838889Sjdp# Run test in a subshell; some versions of sh will print an error if 114938889Sjdp# an executable is not found, even if stderr is redirected. 115038889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 115138889Sjdpif (aclocal --version) < /dev/null > /dev/null 2>&1; then 115238889Sjdp ACLOCAL=aclocal 115338889Sjdp echo "$ac_t""found" 1>&6 115438889Sjdpelse 115538889Sjdp ACLOCAL="$missing_dir/missing aclocal" 115638889Sjdp echo "$ac_t""missing" 1>&6 115738889Sjdpfi 115838889Sjdp 115938889Sjdpecho $ac_n "checking for working autoconf""... $ac_c" 1>&6 116078828Sobrienecho "configure:1161: checking for working autoconf" >&5 116138889Sjdp# Run test in a subshell; some versions of sh will print an error if 116238889Sjdp# an executable is not found, even if stderr is redirected. 116338889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 116438889Sjdpif (autoconf --version) < /dev/null > /dev/null 2>&1; then 116538889Sjdp AUTOCONF=autoconf 116638889Sjdp echo "$ac_t""found" 1>&6 116738889Sjdpelse 116838889Sjdp AUTOCONF="$missing_dir/missing autoconf" 116938889Sjdp echo "$ac_t""missing" 1>&6 117038889Sjdpfi 117138889Sjdp 117238889Sjdpecho $ac_n "checking for working automake""... $ac_c" 1>&6 117378828Sobrienecho "configure:1174: checking for working automake" >&5 117438889Sjdp# Run test in a subshell; some versions of sh will print an error if 117538889Sjdp# an executable is not found, even if stderr is redirected. 117638889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 117738889Sjdpif (automake --version) < /dev/null > /dev/null 2>&1; then 117838889Sjdp AUTOMAKE=automake 117938889Sjdp echo "$ac_t""found" 1>&6 118038889Sjdpelse 118138889Sjdp AUTOMAKE="$missing_dir/missing automake" 118238889Sjdp echo "$ac_t""missing" 1>&6 118338889Sjdpfi 118438889Sjdp 118538889Sjdpecho $ac_n "checking for working autoheader""... $ac_c" 1>&6 118678828Sobrienecho "configure:1187: checking for working autoheader" >&5 118738889Sjdp# Run test in a subshell; some versions of sh will print an error if 118838889Sjdp# an executable is not found, even if stderr is redirected. 118938889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 119038889Sjdpif (autoheader --version) < /dev/null > /dev/null 2>&1; then 119138889Sjdp AUTOHEADER=autoheader 119238889Sjdp echo "$ac_t""found" 1>&6 119338889Sjdpelse 119438889Sjdp AUTOHEADER="$missing_dir/missing autoheader" 119538889Sjdp echo "$ac_t""missing" 1>&6 119638889Sjdpfi 119738889Sjdp 119838889Sjdpecho $ac_n "checking for working makeinfo""... $ac_c" 1>&6 119978828Sobrienecho "configure:1200: checking for working makeinfo" >&5 120038889Sjdp# Run test in a subshell; some versions of sh will print an error if 120138889Sjdp# an executable is not found, even if stderr is redirected. 120238889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 120338889Sjdpif (makeinfo --version) < /dev/null > /dev/null 2>&1; then 120438889Sjdp MAKEINFO=makeinfo 120538889Sjdp echo "$ac_t""found" 1>&6 120638889Sjdpelse 120738889Sjdp MAKEINFO="$missing_dir/missing makeinfo" 120838889Sjdp echo "$ac_t""missing" 1>&6 120938889Sjdpfi 121038889Sjdp 121138889Sjdp 121238889Sjdp 121333965Sjdpif test $host != $build; then 121433965Sjdp ac_tool_prefix=${host_alias}- 121533965Sjdpelse 121633965Sjdp ac_tool_prefix= 121733965Sjdpfi 121833965Sjdp 121933965Sjdp# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 122033965Sjdpset dummy ${ac_tool_prefix}ar; ac_word=$2 122133965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 122278828Sobrienecho "configure:1223: checking for $ac_word" >&5 122333965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 122433965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 122533965Sjdpelse 122633965Sjdp if test -n "$AR"; then 122733965Sjdp ac_cv_prog_AR="$AR" # Let the user override the test. 122833965Sjdpelse 122960484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 123060484Sobrien ac_dummy="$PATH" 123160484Sobrien for ac_dir in $ac_dummy; do 123233965Sjdp test -z "$ac_dir" && ac_dir=. 123333965Sjdp if test -f $ac_dir/$ac_word; then 123433965Sjdp ac_cv_prog_AR="${ac_tool_prefix}ar" 123533965Sjdp break 123633965Sjdp fi 123733965Sjdp done 123833965Sjdp IFS="$ac_save_ifs" 123933965Sjdp test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 124033965Sjdpfi 124133965Sjdpfi 124233965SjdpAR="$ac_cv_prog_AR" 124333965Sjdpif test -n "$AR"; then 124433965Sjdp echo "$ac_t""$AR" 1>&6 124533965Sjdpelse 124633965Sjdp echo "$ac_t""no" 1>&6 124733965Sjdpfi 124833965Sjdp 124933965Sjdp 125033965Sjdp 125133965Sjdp# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 125233965Sjdpset dummy ${ac_tool_prefix}ranlib; ac_word=$2 125333965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 125478828Sobrienecho "configure:1255: checking for $ac_word" >&5 125533965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 125633965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 125733965Sjdpelse 125833965Sjdp if test -n "$RANLIB"; then 125933965Sjdp ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 126033965Sjdpelse 126160484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 126260484Sobrien ac_dummy="$PATH" 126360484Sobrien for ac_dir in $ac_dummy; do 126433965Sjdp test -z "$ac_dir" && ac_dir=. 126533965Sjdp if test -f $ac_dir/$ac_word; then 126633965Sjdp ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 126733965Sjdp break 126833965Sjdp fi 126933965Sjdp done 127033965Sjdp IFS="$ac_save_ifs" 127133965Sjdpfi 127233965Sjdpfi 127333965SjdpRANLIB="$ac_cv_prog_RANLIB" 127433965Sjdpif test -n "$RANLIB"; then 127533965Sjdp echo "$ac_t""$RANLIB" 1>&6 127633965Sjdpelse 127733965Sjdp echo "$ac_t""no" 1>&6 127833965Sjdpfi 127933965Sjdp 128033965Sjdp 128133965Sjdpif test -z "$ac_cv_prog_RANLIB"; then 128233965Sjdpif test -n "$ac_tool_prefix"; then 128333965Sjdp # Extract the first word of "ranlib", so it can be a program name with args. 128433965Sjdpset dummy ranlib; ac_word=$2 128533965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 128678828Sobrienecho "configure:1287: checking for $ac_word" >&5 128733965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 128833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 128933965Sjdpelse 129033965Sjdp if test -n "$RANLIB"; then 129133965Sjdp ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 129233965Sjdpelse 129360484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 129460484Sobrien ac_dummy="$PATH" 129560484Sobrien for ac_dir in $ac_dummy; do 129633965Sjdp test -z "$ac_dir" && ac_dir=. 129733965Sjdp if test -f $ac_dir/$ac_word; then 129833965Sjdp ac_cv_prog_RANLIB="ranlib" 129933965Sjdp break 130033965Sjdp fi 130133965Sjdp done 130233965Sjdp IFS="$ac_save_ifs" 130333965Sjdp test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 130433965Sjdpfi 130533965Sjdpfi 130633965SjdpRANLIB="$ac_cv_prog_RANLIB" 130733965Sjdpif test -n "$RANLIB"; then 130833965Sjdp echo "$ac_t""$RANLIB" 1>&6 130933965Sjdpelse 131033965Sjdp echo "$ac_t""no" 1>&6 131133965Sjdpfi 131233965Sjdp 131333965Sjdpelse 131433965Sjdp RANLIB=":" 131533965Sjdpfi 131633965Sjdpfi 131733965Sjdp 131838889Sjdp 131938889Sjdp# Check whether --enable-shared or --disable-shared was given. 132038889Sjdpif test "${enable_shared+set}" = set; then 132138889Sjdp enableval="$enable_shared" 132238889Sjdp p=${PACKAGE-default} 132338889Sjdpcase "$enableval" in 132438889Sjdpyes) enable_shared=yes ;; 132538889Sjdpno) enable_shared=no ;; 132638889Sjdp*) 132738889Sjdp enable_shared=no 132838889Sjdp # Look at the argument we got. We use all the common list separators. 132938889Sjdp IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 133038889Sjdp for pkg in $enableval; do 133138889Sjdp if test "X$pkg" = "X$p"; then 133238889Sjdp enable_shared=yes 133338889Sjdp fi 133438889Sjdp done 133538889Sjdp IFS="$ac_save_ifs" 133638889Sjdp ;; 133738889Sjdpesac 133838889Sjdpelse 133938889Sjdp enable_shared=no 134038889Sjdpfi 134138889Sjdp 134238889Sjdp 134338889Sjdp# Check whether --enable-static or --disable-static was given. 134438889Sjdpif test "${enable_static+set}" = set; then 134538889Sjdp enableval="$enable_static" 134638889Sjdp p=${PACKAGE-default} 134738889Sjdpcase "$enableval" in 134838889Sjdpyes) enable_static=yes ;; 134938889Sjdpno) enable_static=no ;; 135038889Sjdp*) 135138889Sjdp enable_static=no 135238889Sjdp # Look at the argument we got. We use all the common list separators. 135338889Sjdp IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 135438889Sjdp for pkg in $enableval; do 135538889Sjdp if test "X$pkg" = "X$p"; then 135638889Sjdp enable_static=yes 135738889Sjdp fi 135838889Sjdp done 135938889Sjdp IFS="$ac_save_ifs" 136038889Sjdp ;; 136138889Sjdpesac 136238889Sjdpelse 136338889Sjdp enable_static=yes 136438889Sjdpfi 136538889Sjdp 136660484Sobrien# Check whether --enable-fast-install or --disable-fast-install was given. 136760484Sobrienif test "${enable_fast_install+set}" = set; then 136860484Sobrien enableval="$enable_fast_install" 136960484Sobrien p=${PACKAGE-default} 137060484Sobriencase "$enableval" in 137160484Sobrienyes) enable_fast_install=yes ;; 137260484Sobrienno) enable_fast_install=no ;; 137360484Sobrien*) 137460484Sobrien enable_fast_install=no 137560484Sobrien # Look at the argument we got. We use all the common list separators. 137660484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 137760484Sobrien for pkg in $enableval; do 137860484Sobrien if test "X$pkg" = "X$p"; then 137960484Sobrien enable_fast_install=yes 138060484Sobrien fi 138160484Sobrien done 138260484Sobrien IFS="$ac_save_ifs" 138360484Sobrien ;; 138460484Sobrienesac 138560484Sobrienelse 138660484Sobrien enable_fast_install=yes 138760484Sobrienfi 138860484Sobrien 138938889Sjdp# Check whether --with-gnu-ld or --without-gnu-ld was given. 139038889Sjdpif test "${with_gnu_ld+set}" = set; then 139138889Sjdp withval="$with_gnu_ld" 139238889Sjdp test "$withval" = no || with_gnu_ld=yes 139338889Sjdpelse 139438889Sjdp with_gnu_ld=no 139538889Sjdpfi 139638889Sjdp 139738889Sjdpac_prog=ld 139838889Sjdpif test "$ac_cv_prog_gcc" = yes; then 139938889Sjdp # Check if gcc -print-prog-name=ld gives a path. 140038889Sjdp echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 140178828Sobrienecho "configure:1402: checking for ld used by GCC" >&5 140277298Sobrien case $host in 140377298Sobrien *-*-mingw*) 140477298Sobrien # gcc leaves a trailing carriage return which upsets mingw 140577298Sobrien ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 140677298Sobrien *) 140777298Sobrien ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 140877298Sobrien esac 140938889Sjdp case "$ac_prog" in 141060484Sobrien # Accept absolute paths. 141160484Sobrien [\\/]* | [A-Za-z]:[\\/]*) 141260484Sobrien re_direlt='/[^/][^/]*/\.\./' 141360484Sobrien # Canonicalize the path of ld 141460484Sobrien ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 141560484Sobrien while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 141660484Sobrien ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 141760484Sobrien done 141860484Sobrien test -z "$LD" && LD="$ac_prog" 141960484Sobrien ;; 142038889Sjdp "") 142138889Sjdp # If it fails, then pretend we aren't using GCC. 142238889Sjdp ac_prog=ld 142338889Sjdp ;; 142438889Sjdp *) 142538889Sjdp # If it is relative, then search for the first ld in PATH. 142638889Sjdp with_gnu_ld=unknown 142738889Sjdp ;; 142838889Sjdp esac 142938889Sjdpelif test "$with_gnu_ld" = yes; then 143038889Sjdp echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 143178828Sobrienecho "configure:1432: checking for GNU ld" >&5 143238889Sjdpelse 143338889Sjdp echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 143478828Sobrienecho "configure:1435: checking for non-GNU ld" >&5 143538889Sjdpfi 143638889Sjdpif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 143738889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 143838889Sjdpelse 143938889Sjdp if test -z "$LD"; then 144060484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 144138889Sjdp for ac_dir in $PATH; do 144238889Sjdp test -z "$ac_dir" && ac_dir=. 144360484Sobrien if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 144438889Sjdp ac_cv_path_LD="$ac_dir/$ac_prog" 144538889Sjdp # Check to see if the program is GNU ld. I'd rather use --version, 144638889Sjdp # but apparently some GNU ld's only accept -v. 144738889Sjdp # Break only if it was the GNU/non-GNU ld that we prefer. 144838889Sjdp if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 144938889Sjdp test "$with_gnu_ld" != no && break 145038889Sjdp else 145160484Sobrien test "$with_gnu_ld" != yes && break 145238889Sjdp fi 145338889Sjdp fi 145438889Sjdp done 145538889Sjdp IFS="$ac_save_ifs" 145638889Sjdpelse 145738889Sjdp ac_cv_path_LD="$LD" # Let the user override the test with a path. 145838889Sjdpfi 145938889Sjdpfi 146038889Sjdp 146138889SjdpLD="$ac_cv_path_LD" 146238889Sjdpif test -n "$LD"; then 146338889Sjdp echo "$ac_t""$LD" 1>&6 146438889Sjdpelse 146538889Sjdp echo "$ac_t""no" 1>&6 146638889Sjdpfi 146738889Sjdptest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 146838889Sjdpecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 146978828Sobrienecho "configure:1470: checking if the linker ($LD) is GNU ld" >&5 147038889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 147138889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 147238889Sjdpelse 147338889Sjdp # I'd rather use --version here, but apparently some GNU ld's only accept -v. 147438889Sjdpif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 147538889Sjdp ac_cv_prog_gnu_ld=yes 147638889Sjdpelse 147738889Sjdp ac_cv_prog_gnu_ld=no 147838889Sjdpfi 147938889Sjdpfi 148038889Sjdp 148138889Sjdpecho "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 148277298Sobrienwith_gnu_ld=$ac_cv_prog_gnu_ld 148338889Sjdp 148438889Sjdp 148577298Sobrienecho $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 148678828Sobrienecho "configure:1487: checking for $LD option to reload object files" >&5 148777298Sobrienif eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 148877298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 148977298Sobrienelse 149077298Sobrien lt_cv_ld_reload_flag='-r' 149177298Sobrienfi 149277298Sobrien 149377298Sobrienecho "$ac_t""$lt_cv_ld_reload_flag" 1>&6 149477298Sobrienreload_flag=$lt_cv_ld_reload_flag 149577298Sobrientest -n "$reload_flag" && reload_flag=" $reload_flag" 149677298Sobrien 149738889Sjdpecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 149878828Sobrienecho "configure:1499: checking for BSD-compatible nm" >&5 149938889Sjdpif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 150038889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 150138889Sjdpelse 150260484Sobrien if test -n "$NM"; then 150360484Sobrien # Let the user override the test. 150460484Sobrien ac_cv_path_NM="$NM" 150560484Sobrienelse 150660484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 150760484Sobrien for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 150838889Sjdp test -z "$ac_dir" && ac_dir=. 150977298Sobrien tmp_nm=$ac_dir/${ac_tool_prefix}nm 151077298Sobrien if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 151138889Sjdp # Check to see if the nm accepts a BSD-compat flag. 151238889Sjdp # Adding the `sed 1q' prevents false positives on HP-UX, which says: 151338889Sjdp # nm: unknown option "B" ignored 151477298Sobrien # Tru64's nm complains that /dev/null is an invalid object file 151577298Sobrien if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 151677298Sobrien ac_cv_path_NM="$tmp_nm -B" 151760484Sobrien break 151877298Sobrien elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 151977298Sobrien ac_cv_path_NM="$tmp_nm -p" 152060484Sobrien break 152138889Sjdp else 152277298Sobrien ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but 152360484Sobrien continue # so that we can try to find one that supports BSD flags 152438889Sjdp fi 152538889Sjdp fi 152638889Sjdp done 152738889Sjdp IFS="$ac_save_ifs" 152838889Sjdp test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 152938889Sjdpfi 153060484Sobrienfi 153138889Sjdp 153238889SjdpNM="$ac_cv_path_NM" 153338889Sjdpecho "$ac_t""$NM" 1>&6 153438889Sjdp 153538889Sjdpecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6 153678828Sobrienecho "configure:1537: checking whether ln -s works" >&5 153738889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 153838889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 153938889Sjdpelse 154038889Sjdp rm -f conftestdata 154138889Sjdpif ln -s X conftestdata 2>/dev/null 154238889Sjdpthen 154338889Sjdp rm -f conftestdata 154438889Sjdp ac_cv_prog_LN_S="ln -s" 154538889Sjdpelse 154638889Sjdp ac_cv_prog_LN_S=ln 154738889Sjdpfi 154838889Sjdpfi 154938889SjdpLN_S="$ac_cv_prog_LN_S" 155038889Sjdpif test "$ac_cv_prog_LN_S" = "ln -s"; then 155138889Sjdp echo "$ac_t""yes" 1>&6 155238889Sjdpelse 155338889Sjdp echo "$ac_t""no" 1>&6 155438889Sjdpfi 155538889Sjdp 155677298Sobrienecho $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 155778828Sobrienecho "configure:1558: checking how to recognise dependant libraries" >&5 155877298Sobrienif eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 155977298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 156077298Sobrienelse 156177298Sobrien lt_cv_file_magic_cmd='$MAGIC_CMD' 156277298Sobrienlt_cv_file_magic_test_file= 156377298Sobrienlt_cv_deplibs_check_method='unknown' 156477298Sobrien# Need to set the preceding variable on all platforms that support 156577298Sobrien# interlibrary dependencies. 156677298Sobrien# 'none' -- dependencies not supported. 156777298Sobrien# `unknown' -- same as none, but documents that we really don't know. 156877298Sobrien# 'pass_all' -- all dependencies passed with no checks. 156977298Sobrien# 'test_compile' -- check by making test program. 157077298Sobrien# 'file_magic [regex]' -- check by looking for files in library path 157177298Sobrien# which responds to the $file_magic_cmd with a given egrep regex. 157277298Sobrien# If you have `file' or equivalent on your system and you're not sure 157377298Sobrien# whether `pass_all' will *always* work, you probably want this one. 157438889Sjdp 157577298Sobriencase "$host_os" in 157677298Sobrienaix4*) 157777298Sobrien lt_cv_deplibs_check_method=pass_all 157877298Sobrien ;; 157977298Sobrien 158077298Sobrienbeos*) 158177298Sobrien lt_cv_deplibs_check_method=pass_all 158277298Sobrien ;; 158377298Sobrien 158477298Sobrienbsdi4*) 158577298Sobrien lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 158677298Sobrien lt_cv_file_magic_cmd='/usr/bin/file -L' 158777298Sobrien lt_cv_file_magic_test_file=/shlib/libc.so 158877298Sobrien ;; 158977298Sobrien 159077298Sobriencygwin* | mingw* |pw32*) 159177298Sobrien lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 159277298Sobrien lt_cv_file_magic_cmd='$OBJDUMP -f' 159377298Sobrien ;; 159477298Sobrien 159577298Sobrienfreebsd* ) 159677298Sobrien if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 159777298Sobrien case "$host_cpu" in 159877298Sobrien i*86 ) 159977298Sobrien # Not sure whether the presence of OpenBSD here was a mistake. 160077298Sobrien # Let's accept both of them until this is cleared up. 160177298Sobrien lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 160277298Sobrien lt_cv_file_magic_cmd=/usr/bin/file 160377298Sobrien lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 160477298Sobrien ;; 160577298Sobrien esac 160677298Sobrien else 160777298Sobrien lt_cv_deplibs_check_method=pass_all 160877298Sobrien fi 160977298Sobrien ;; 161077298Sobrien 161177298Sobriengnu*) 161277298Sobrien lt_cv_deplibs_check_method=pass_all 161377298Sobrien ;; 161477298Sobrien 161577298Sobrienhpux10.20*) 161677298Sobrien # TODO: Does this work for hpux-11 too? 161777298Sobrien lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library' 161877298Sobrien lt_cv_file_magic_cmd=/usr/bin/file 161977298Sobrien lt_cv_file_magic_test_file=/usr/lib/libc.sl 162077298Sobrien ;; 162177298Sobrien 162277298Sobrienirix5* | irix6*) 162377298Sobrien case "$host_os" in 162477298Sobrien irix5*) 162577298Sobrien # this will be overridden with pass_all, but let us keep it just in case 162677298Sobrien lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 162777298Sobrien ;; 162877298Sobrien *) 162977298Sobrien case "$LD" in 163077298Sobrien *-32|*"-32 ") libmagic=32-bit;; 163177298Sobrien *-n32|*"-n32 ") libmagic=N32;; 163277298Sobrien *-64|*"-64 ") libmagic=64-bit;; 163377298Sobrien *) libmagic=never-match;; 163477298Sobrien esac 163577298Sobrien # this will be overridden with pass_all, but let us keep it just in case 163677298Sobrien lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 163777298Sobrien ;; 163877298Sobrien esac 163977298Sobrien lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 164077298Sobrien lt_cv_deplibs_check_method=pass_all 164177298Sobrien ;; 164277298Sobrien 164377298Sobrien# This must be Linux ELF. 164477298Sobrienlinux-gnu*) 164577298Sobrien case "$host_cpu" in 164677298Sobrien alpha* | i*86 | powerpc* | sparc* | ia64* ) 164777298Sobrien lt_cv_deplibs_check_method=pass_all ;; 164877298Sobrien *) 164977298Sobrien # glibc up to 2.1.1 does not perform some relocations on ARM 165077298Sobrien lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 165177298Sobrien esac 165277298Sobrien lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 165377298Sobrien ;; 165477298Sobrien 165577298Sobriennetbsd*) 165677298Sobrien if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then : 165777298Sobrien else 165877298Sobrien lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 165977298Sobrien lt_cv_file_magic_cmd='/usr/bin/file -L' 166077298Sobrien lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 166177298Sobrien fi 166277298Sobrien ;; 166377298Sobrien 166477298Sobrienosf3* | osf4* | osf5*) 166577298Sobrien # this will be overridden with pass_all, but let us keep it just in case 166677298Sobrien lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 166777298Sobrien lt_cv_file_magic_test_file=/shlib/libc.so 166877298Sobrien lt_cv_deplibs_check_method=pass_all 166977298Sobrien ;; 167077298Sobrien 167177298Sobriensco3.2v5*) 167277298Sobrien lt_cv_deplibs_check_method=pass_all 167377298Sobrien ;; 167477298Sobrien 167577298Sobriensolaris*) 167677298Sobrien lt_cv_deplibs_check_method=pass_all 167777298Sobrien lt_cv_file_magic_test_file=/lib/libc.so 167877298Sobrien ;; 167977298Sobrien 168077298Sobriensysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 168177298Sobrien case "$host_vendor" in 168277298Sobrien ncr) 168377298Sobrien lt_cv_deplibs_check_method=pass_all 168477298Sobrien ;; 168577298Sobrien motorola) 168677298Sobrien lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 168777298Sobrien lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 168877298Sobrien ;; 168977298Sobrien esac 169077298Sobrien ;; 169160484Sobrienesac 169260484Sobrien 169377298Sobrienfi 169477298Sobrien 169577298Sobrienecho "$ac_t""$lt_cv_deplibs_check_method" 1>&6 169677298Sobrienfile_magic_cmd=$lt_cv_file_magic_cmd 169777298Sobriendeplibs_check_method=$lt_cv_deplibs_check_method 169877298Sobrien 169977298Sobrienecho $ac_n "checking for object suffix""... $ac_c" 1>&6 170078828Sobrienecho "configure:1701: checking for object suffix" >&5 170177298Sobrienif eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 170277298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 170377298Sobrienelse 170477298Sobrien rm -f conftest* 170577298Sobrienecho 'int i = 1;' > conftest.$ac_ext 170678828Sobrienif { (eval echo configure:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 170777298Sobrien for ac_file in conftest.*; do 170877298Sobrien case $ac_file in 170977298Sobrien *.c) ;; 171077298Sobrien *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 171177298Sobrien esac 171277298Sobrien done 171377298Sobrienelse 171477298Sobrien { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 171577298Sobrienfi 171677298Sobrienrm -f conftest* 171777298Sobrienfi 171877298Sobrien 171977298Sobrienecho "$ac_t""$ac_cv_objext" 1>&6 172077298SobrienOBJEXT=$ac_cv_objext 172177298Sobrienac_objext=$ac_cv_objext 172277298Sobrien 172377298Sobrien 172477298Sobrien 172577298Sobrienecho $ac_n "checking for executable suffix""... $ac_c" 1>&6 172678828Sobrienecho "configure:1727: checking for executable suffix" >&5 172777298Sobrienif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 172877298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 172977298Sobrienelse 173077298Sobrien if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 173177298Sobrien ac_cv_exeext=.exe 173277298Sobrienelse 173377298Sobrien rm -f conftest* 173477298Sobrien echo 'int main () { return 0; }' > conftest.$ac_ext 173577298Sobrien ac_cv_exeext= 173678828Sobrien if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 173777298Sobrien for file in conftest.*; do 173877298Sobrien case $file in 173977298Sobrien *.c | *.o | *.obj | *.ilk | *.pdb) ;; 174077298Sobrien *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 174177298Sobrien esac 174277298Sobrien done 174377298Sobrien else 174477298Sobrien { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 174577298Sobrien fi 174677298Sobrien rm -f conftest* 174777298Sobrien test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 174877298Sobrienfi 174977298Sobrienfi 175077298Sobrien 175177298SobrienEXEEXT="" 175277298Sobrientest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 175377298Sobrienecho "$ac_t""${ac_cv_exeext}" 1>&6 175477298Sobrienac_exeext=$EXEEXT 175577298Sobrien 175677298Sobrien# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 175777298Sobrien 175877298Sobrien# Only perform the check for file, if the check method requires it 175977298Sobriencase "$deplibs_check_method" in 176077298Sobrienfile_magic*) 176177298Sobrien if test "$file_magic_cmd" = '$MAGIC_CMD'; then 176277298Sobrien echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 176378828Sobrienecho "configure:1764: checking for ${ac_tool_prefix}file" >&5 176477298Sobrienif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 176577298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 176677298Sobrienelse 176777298Sobrien case "$MAGIC_CMD" in 176877298Sobrien /*) 176977298Sobrien lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 177077298Sobrien ;; 177177298Sobrien ?:/*) 177277298Sobrien lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 177377298Sobrien ;; 177477298Sobrien *) 177577298Sobrien ac_save_MAGIC_CMD="$MAGIC_CMD" 177677298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 177777298Sobrien ac_dummy="/usr/bin:$PATH" 177877298Sobrien for ac_dir in $ac_dummy; do 177977298Sobrien test -z "$ac_dir" && ac_dir=. 178077298Sobrien if test -f $ac_dir/${ac_tool_prefix}file; then 178177298Sobrien lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 178277298Sobrien if test -n "$file_magic_test_file"; then 178377298Sobrien case "$deplibs_check_method" in 178477298Sobrien "file_magic "*) 178577298Sobrien file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 178677298Sobrien MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 178777298Sobrien if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 178877298Sobrien egrep "$file_magic_regex" > /dev/null; then 178977298Sobrien : 179077298Sobrien else 179177298Sobrien cat <<EOF 1>&2 179277298Sobrien 179377298Sobrien*** Warning: the command libtool uses to detect shared libraries, 179477298Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize. 179577298Sobrien*** The result is that libtool may fail to recognize shared libraries 179677298Sobrien*** as such. This will affect the creation of libtool libraries that 179777298Sobrien*** depend on shared libraries, but programs linked with such libtool 179877298Sobrien*** libraries will work regardless of this problem. Nevertheless, you 179977298Sobrien*** may want to report the problem to your system manager and/or to 180077298Sobrien*** bug-libtool@gnu.org 180177298Sobrien 180277298SobrienEOF 180377298Sobrien fi ;; 180477298Sobrien esac 180577298Sobrien fi 180677298Sobrien break 180777298Sobrien fi 180877298Sobrien done 180977298Sobrien IFS="$ac_save_ifs" 181077298Sobrien MAGIC_CMD="$ac_save_MAGIC_CMD" 181177298Sobrien ;; 181277298Sobrienesac 181377298Sobrienfi 181477298Sobrien 181577298SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 181677298Sobrienif test -n "$MAGIC_CMD"; then 181777298Sobrien echo "$ac_t""$MAGIC_CMD" 1>&6 181877298Sobrienelse 181977298Sobrien echo "$ac_t""no" 1>&6 182077298Sobrienfi 182177298Sobrien 182277298Sobrienif test -z "$lt_cv_path_MAGIC_CMD"; then 182377298Sobrien if test -n "$ac_tool_prefix"; then 182477298Sobrien echo $ac_n "checking for file""... $ac_c" 1>&6 182578828Sobrienecho "configure:1826: checking for file" >&5 182677298Sobrienif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 182777298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 182877298Sobrienelse 182977298Sobrien case "$MAGIC_CMD" in 183077298Sobrien /*) 183177298Sobrien lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 183277298Sobrien ;; 183377298Sobrien ?:/*) 183477298Sobrien lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 183577298Sobrien ;; 183677298Sobrien *) 183777298Sobrien ac_save_MAGIC_CMD="$MAGIC_CMD" 183877298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 183977298Sobrien ac_dummy="/usr/bin:$PATH" 184077298Sobrien for ac_dir in $ac_dummy; do 184177298Sobrien test -z "$ac_dir" && ac_dir=. 184277298Sobrien if test -f $ac_dir/file; then 184377298Sobrien lt_cv_path_MAGIC_CMD="$ac_dir/file" 184477298Sobrien if test -n "$file_magic_test_file"; then 184577298Sobrien case "$deplibs_check_method" in 184677298Sobrien "file_magic "*) 184777298Sobrien file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 184877298Sobrien MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 184977298Sobrien if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 185077298Sobrien egrep "$file_magic_regex" > /dev/null; then 185177298Sobrien : 185277298Sobrien else 185377298Sobrien cat <<EOF 1>&2 185477298Sobrien 185577298Sobrien*** Warning: the command libtool uses to detect shared libraries, 185677298Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize. 185777298Sobrien*** The result is that libtool may fail to recognize shared libraries 185877298Sobrien*** as such. This will affect the creation of libtool libraries that 185977298Sobrien*** depend on shared libraries, but programs linked with such libtool 186077298Sobrien*** libraries will work regardless of this problem. Nevertheless, you 186177298Sobrien*** may want to report the problem to your system manager and/or to 186277298Sobrien*** bug-libtool@gnu.org 186377298Sobrien 186477298SobrienEOF 186577298Sobrien fi ;; 186677298Sobrien esac 186777298Sobrien fi 186877298Sobrien break 186977298Sobrien fi 187077298Sobrien done 187177298Sobrien IFS="$ac_save_ifs" 187277298Sobrien MAGIC_CMD="$ac_save_MAGIC_CMD" 187377298Sobrien ;; 187477298Sobrienesac 187577298Sobrienfi 187677298Sobrien 187777298SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 187877298Sobrienif test -n "$MAGIC_CMD"; then 187977298Sobrien echo "$ac_t""$MAGIC_CMD" 1>&6 188077298Sobrienelse 188177298Sobrien echo "$ac_t""no" 1>&6 188277298Sobrienfi 188377298Sobrien 188477298Sobrien else 188577298Sobrien MAGIC_CMD=: 188677298Sobrien fi 188777298Sobrienfi 188877298Sobrien 188977298Sobrien fi 189077298Sobrien ;; 189177298Sobrienesac 189277298Sobrien 189377298Sobrien# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 189477298Sobrienset dummy ${ac_tool_prefix}ranlib; ac_word=$2 189577298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 189678828Sobrienecho "configure:1897: checking for $ac_word" >&5 189777298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 189877298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 189977298Sobrienelse 190077298Sobrien if test -n "$RANLIB"; then 190177298Sobrien ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 190277298Sobrienelse 190377298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 190477298Sobrien ac_dummy="$PATH" 190577298Sobrien for ac_dir in $ac_dummy; do 190677298Sobrien test -z "$ac_dir" && ac_dir=. 190777298Sobrien if test -f $ac_dir/$ac_word; then 190877298Sobrien ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 190977298Sobrien break 191077298Sobrien fi 191177298Sobrien done 191277298Sobrien IFS="$ac_save_ifs" 191377298Sobrienfi 191477298Sobrienfi 191577298SobrienRANLIB="$ac_cv_prog_RANLIB" 191677298Sobrienif test -n "$RANLIB"; then 191777298Sobrien echo "$ac_t""$RANLIB" 1>&6 191877298Sobrienelse 191977298Sobrien echo "$ac_t""no" 1>&6 192077298Sobrienfi 192177298Sobrien 192277298Sobrien 192377298Sobrienif test -z "$ac_cv_prog_RANLIB"; then 192477298Sobrienif test -n "$ac_tool_prefix"; then 192577298Sobrien # Extract the first word of "ranlib", so it can be a program name with args. 192677298Sobrienset dummy ranlib; ac_word=$2 192777298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 192878828Sobrienecho "configure:1929: checking for $ac_word" >&5 192977298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 193077298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 193177298Sobrienelse 193277298Sobrien if test -n "$RANLIB"; then 193377298Sobrien ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 193477298Sobrienelse 193577298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 193677298Sobrien ac_dummy="$PATH" 193777298Sobrien for ac_dir in $ac_dummy; do 193877298Sobrien test -z "$ac_dir" && ac_dir=. 193977298Sobrien if test -f $ac_dir/$ac_word; then 194077298Sobrien ac_cv_prog_RANLIB="ranlib" 194177298Sobrien break 194277298Sobrien fi 194377298Sobrien done 194477298Sobrien IFS="$ac_save_ifs" 194577298Sobrien test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 194677298Sobrienfi 194777298Sobrienfi 194877298SobrienRANLIB="$ac_cv_prog_RANLIB" 194977298Sobrienif test -n "$RANLIB"; then 195077298Sobrien echo "$ac_t""$RANLIB" 1>&6 195177298Sobrienelse 195277298Sobrien echo "$ac_t""no" 1>&6 195377298Sobrienfi 195477298Sobrien 195577298Sobrienelse 195677298Sobrien RANLIB=":" 195777298Sobrienfi 195877298Sobrienfi 195977298Sobrien 196077298Sobrien# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 196177298Sobrienset dummy ${ac_tool_prefix}strip; ac_word=$2 196277298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 196378828Sobrienecho "configure:1964: checking for $ac_word" >&5 196477298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 196577298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 196677298Sobrienelse 196777298Sobrien if test -n "$STRIP"; then 196877298Sobrien ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 196977298Sobrienelse 197077298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 197177298Sobrien ac_dummy="$PATH" 197277298Sobrien for ac_dir in $ac_dummy; do 197377298Sobrien test -z "$ac_dir" && ac_dir=. 197477298Sobrien if test -f $ac_dir/$ac_word; then 197577298Sobrien ac_cv_prog_STRIP="${ac_tool_prefix}strip" 197677298Sobrien break 197777298Sobrien fi 197877298Sobrien done 197977298Sobrien IFS="$ac_save_ifs" 198077298Sobrienfi 198177298Sobrienfi 198277298SobrienSTRIP="$ac_cv_prog_STRIP" 198377298Sobrienif test -n "$STRIP"; then 198477298Sobrien echo "$ac_t""$STRIP" 1>&6 198577298Sobrienelse 198677298Sobrien echo "$ac_t""no" 1>&6 198777298Sobrienfi 198877298Sobrien 198977298Sobrien 199077298Sobrienif test -z "$ac_cv_prog_STRIP"; then 199177298Sobrienif test -n "$ac_tool_prefix"; then 199277298Sobrien # Extract the first word of "strip", so it can be a program name with args. 199377298Sobrienset dummy strip; ac_word=$2 199477298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 199578828Sobrienecho "configure:1996: checking for $ac_word" >&5 199677298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 199777298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 199877298Sobrienelse 199977298Sobrien if test -n "$STRIP"; then 200077298Sobrien ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 200177298Sobrienelse 200277298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 200377298Sobrien ac_dummy="$PATH" 200477298Sobrien for ac_dir in $ac_dummy; do 200577298Sobrien test -z "$ac_dir" && ac_dir=. 200677298Sobrien if test -f $ac_dir/$ac_word; then 200777298Sobrien ac_cv_prog_STRIP="strip" 200877298Sobrien break 200977298Sobrien fi 201077298Sobrien done 201177298Sobrien IFS="$ac_save_ifs" 201277298Sobrien test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 201377298Sobrienfi 201477298Sobrienfi 201577298SobrienSTRIP="$ac_cv_prog_STRIP" 201677298Sobrienif test -n "$STRIP"; then 201777298Sobrien echo "$ac_t""$STRIP" 1>&6 201877298Sobrienelse 201977298Sobrien echo "$ac_t""no" 1>&6 202077298Sobrienfi 202177298Sobrien 202277298Sobrienelse 202377298Sobrien STRIP=":" 202477298Sobrienfi 202577298Sobrienfi 202677298Sobrien 202777298Sobrien 202838889Sjdp# Check for any special flags to pass to ltconfig. 202960484Sobrienlibtool_flags="--cache-file=$cache_file" 203038889Sjdptest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 203138889Sjdptest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 203260484Sobrientest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 203338889Sjdptest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" 203438889Sjdptest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 203538889Sjdp 203660484Sobrien 203760484Sobrien# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 203860484Sobrienif test "${enable_libtool_lock+set}" = set; then 203960484Sobrien enableval="$enable_libtool_lock" 204060484Sobrien : 204160484Sobrienfi 204260484Sobrien 204360484Sobrientest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 204460484Sobrientest x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 204560484Sobrien 204677298Sobrien# Check whether --with-pic or --without-pic was given. 204777298Sobrienif test "${with_pic+set}" = set; then 204877298Sobrien withval="$with_pic" 204977298Sobrien pic_mode="$withval" 205077298Sobrienelse 205177298Sobrien pic_mode=default 205277298Sobrienfi 205377298Sobrien 205477298Sobrientest x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" 205577298Sobrientest x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" 205677298Sobrien 205738889Sjdp# Some flags need to be propagated to the compiler or linker for good 205838889Sjdp# libtool support. 205977298Sobriencase "$host" in 206038889Sjdp*-*-irix6*) 206138889Sjdp # Find out which ABI we are using. 206278828Sobrien echo '#line 2063 "configure"' > conftest.$ac_ext 206378828Sobrien if { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 206438889Sjdp case "`/usr/bin/file conftest.o`" in 206538889Sjdp *32-bit*) 206638889Sjdp LD="${LD-ld} -32" 206733965Sjdp ;; 206838889Sjdp *N32*) 206938889Sjdp LD="${LD-ld} -n32" 207038889Sjdp ;; 207138889Sjdp *64-bit*) 207238889Sjdp LD="${LD-ld} -64" 207338889Sjdp ;; 207433965Sjdp esac 207538889Sjdp fi 207638889Sjdp rm -rf conftest* 207738889Sjdp ;; 207833965Sjdp 207938889Sjdp*-*-sco3.2v5*) 208038889Sjdp # On SCO OpenServer 5, we need -belf to get full-featured binaries. 208160484Sobrien SAVE_CFLAGS="$CFLAGS" 208238889Sjdp CFLAGS="$CFLAGS -belf" 208360484Sobrien echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 208478828Sobrienecho "configure:2085: checking whether the C compiler needs -belf" >&5 208560484Sobrienif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 208660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 208760484Sobrienelse 208877298Sobrien 208977298Sobrien ac_ext=c 209077298Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 209177298Sobrienac_cpp='$CPP $CPPFLAGS' 209277298Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 209377298Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 209477298Sobriencross_compiling=$ac_cv_prog_cc_cross 209577298Sobrien 209677298Sobrien cat > conftest.$ac_ext <<EOF 209778828Sobrien#line 2098 "configure" 209860484Sobrien#include "confdefs.h" 209960484Sobrien 210060484Sobrienint main() { 210160484Sobrien 210260484Sobrien; return 0; } 210360484SobrienEOF 210478828Sobrienif { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 210560484Sobrien rm -rf conftest* 210660484Sobrien lt_cv_cc_needs_belf=yes 210760484Sobrienelse 210860484Sobrien echo "configure: failed program was:" >&5 210960484Sobrien cat conftest.$ac_ext >&5 211060484Sobrien rm -rf conftest* 211160484Sobrien lt_cv_cc_needs_belf=no 211260484Sobrienfi 211360484Sobrienrm -f conftest* 211477298Sobrien ac_ext=c 211577298Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 211677298Sobrienac_cpp='$CPP $CPPFLAGS' 211777298Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 211877298Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 211977298Sobriencross_compiling=$ac_cv_prog_cc_cross 212077298Sobrien 212160484Sobrienfi 212260484Sobrien 212360484Sobrienecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6 212460484Sobrien if test x"$lt_cv_cc_needs_belf" != x"yes"; then 212560484Sobrien # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 212660484Sobrien CFLAGS="$SAVE_CFLAGS" 212760484Sobrien fi 212838889Sjdp ;; 212960484Sobrien 213060484Sobrien 213138889Sjdpesac 213238889Sjdp 213360484Sobrien 213460484Sobrien# Save cache, so that ltconfig can load it 213560484Sobriencat > confcache <<\EOF 213660484Sobrien# This file is a shell script that caches the results of configure 213760484Sobrien# tests run on this system so they can be shared between configure 213860484Sobrien# scripts and configure runs. It is not useful on other systems. 213960484Sobrien# If it contains results you don't want to keep, you may remove or edit it. 214060484Sobrien# 214160484Sobrien# By default, configure uses ./config.cache as the cache file, 214260484Sobrien# creating it if it does not exist already. You can give configure 214360484Sobrien# the --cache-file=FILE option to use a different cache file; that is 214460484Sobrien# what configure does when it calls configure scripts in 214560484Sobrien# subdirectories, so they share the cache. 214660484Sobrien# Giving --cache-file=/dev/null disables caching, for debugging configure. 214760484Sobrien# config.status only pays attention to the cache file if you give it the 214860484Sobrien# --recheck option to rerun configure. 214960484Sobrien# 215060484SobrienEOF 215160484Sobrien# The following way of writing the cache mishandles newlines in values, 215260484Sobrien# but we know of no workaround that is simple, portable, and efficient. 215360484Sobrien# So, don't put newlines in cache variables' values. 215460484Sobrien# Ultrix sh set writes to stderr and can't be redirected directly, 215560484Sobrien# and sets the high bit in the cache file unless we assign to the vars. 215660484Sobrien(set) 2>&1 | 215760484Sobrien case `(ac_space=' '; set | grep ac_space) 2>&1` in 215860484Sobrien *ac_space=\ *) 215960484Sobrien # `set' does not quote correctly, so add quotes (double-quote substitution 216060484Sobrien # turns \\\\ into \\, and sed turns \\ into \). 216160484Sobrien sed -n \ 216260484Sobrien -e "s/'/'\\\\''/g" \ 216360484Sobrien -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 216460484Sobrien ;; 216560484Sobrien *) 216660484Sobrien # `set' quotes correctly as required by POSIX, so do not add quotes. 216760484Sobrien sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 216860484Sobrien ;; 216960484Sobrien esac >> confcache 217060484Sobrienif cmp -s $cache_file confcache; then 217160484Sobrien : 217260484Sobrienelse 217360484Sobrien if test -w $cache_file; then 217460484Sobrien echo "updating cache $cache_file" 217560484Sobrien cat confcache > $cache_file 217660484Sobrien else 217760484Sobrien echo "not updating unwritable cache $cache_file" 217860484Sobrien fi 217960484Sobrienfi 218060484Sobrienrm -f confcache 218160484Sobrien 218260484Sobrien 218338889Sjdp# Actually configure libtool. ac_aux_dir is where install-sh is found. 218477298SobrienAR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 218577298SobrienMAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 218677298SobrienLN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 218777298SobrienAS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 218877298Sobrienobjext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 218977298Sobriendeplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 219060484Sobrien${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 219177298Sobrien$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ 219238889Sjdp|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 219338889Sjdp 219460484Sobrien# Reload cache, that may have been modified by ltconfig 219560484Sobrienif test -r "$cache_file"; then 219660484Sobrien echo "loading cache $cache_file" 219760484Sobrien . $cache_file 219860484Sobrienelse 219960484Sobrien echo "creating cache $cache_file" 220060484Sobrien > $cache_file 220160484Sobrienfi 220238889Sjdp 220360484Sobrien 220460484Sobrien# This can be used to rebuild libtool when needed 220577298SobrienLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" 220660484Sobrien 220760484Sobrien# Always use our own libtool. 220860484SobrienLIBTOOL='$(SHELL) $(top_builddir)/libtool' 220960484Sobrien 221060484Sobrien# Redirect the config.log output again, so that the ltconfig log is not 221160484Sobrien# clobbered by the next message. 221260484Sobrienexec 5>>./config.log 221360484Sobrien 221460484Sobrien 221577298Sobrien 221677298Sobrien 221777298Sobrien 221877298Sobrien 221977298Sobrien 222077298Sobrien 222138889Sjdp# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. 222238889Sjdpif test "${enable_64_bit_bfd+set}" = set; then 222338889Sjdp enableval="$enable_64_bit_bfd" 222438889Sjdp case "${enableval}" in 222538889Sjdp yes) want64=true ;; 222638889Sjdp no) want64=false ;; 222738889Sjdp *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; 222838889Sjdpesac 222938889Sjdpelse 223038889Sjdp want64=false 223133965Sjdpfi 223238889Sjdp# Check whether --enable-targets or --disable-targets was given. 223338889Sjdpif test "${enable_targets+set}" = set; then 223438889Sjdp enableval="$enable_targets" 223538889Sjdp case "${enableval}" in 223638889Sjdp yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } 223738889Sjdp ;; 223838889Sjdp no) enable_targets= ;; 223938889Sjdp *) enable_targets=$enableval ;; 224038889Sjdpesac 224138889Sjdpfi 224238889Sjdp# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. 224338889Sjdpif test "${enable_commonbfdlib+set}" = set; then 224438889Sjdp enableval="$enable_commonbfdlib" 224538889Sjdp case "${enableval}" in 224638889Sjdp yes) commonbfdlib=true ;; 224738889Sjdp no) commonbfdlib=false ;; 224838889Sjdp *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; 224938889Sjdpesac 225038889Sjdpfi 225138889Sjdp# Check whether --with-mmap or --without-mmap was given. 225238889Sjdpif test "${with_mmap+set}" = set; then 225338889Sjdp withval="$with_mmap" 225438889Sjdp case "${withval}" in 225538889Sjdp yes) want_mmap=true ;; 225638889Sjdp no) want_mmap=false ;; 225738889Sjdp *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;; 225838889Sjdpesac 225938889Sjdpelse 226038889Sjdp want_mmap=false 226138889Sjdpfi 226238889Sjdp 226377298Sobrienbuild_warnings="-W -Wall" 226477298Sobrien# Check whether --enable-build-warnings or --disable-build-warnings was given. 226577298Sobrienif test "${enable_build_warnings+set}" = set; then 226677298Sobrien enableval="$enable_build_warnings" 226777298Sobrien case "${enableval}" in 226877298Sobrien yes) ;; 226977298Sobrien no) build_warnings="-w";; 227077298Sobrien ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 227177298Sobrien build_warnings="${build_warnings} ${t}";; 227277298Sobrien *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 227377298Sobrien build_warnings="${t} ${build_warnings}";; 227477298Sobrien *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 227577298Sobrienesac 227677298Sobrienif test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 227777298Sobrien echo "Setting warning flags = $build_warnings" 6>&1 227877298Sobrienfi 227977298Sobrienfi 228077298SobrienWARN_CFLAGS="" 228177298Sobrienif test "x${build_warnings}" != x -a "x$GCC" = xyes ; then 228277298Sobrien WARN_CFLAGS="${build_warnings}" 228377298Sobrienfi 228438889Sjdp 228538889Sjdp 228638889Sjdp 228738889Sjdp 228877298Sobrien 228977298Sobrien 229038889Sjdpif test -z "$target" ; then 229138889Sjdp { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } 229238889Sjdpfi 229338889Sjdpif test "$program_transform_name" = s,x,x,; then 229438889Sjdp program_transform_name= 229538889Sjdpelse 229638889Sjdp # Double any \ or $. echo might interpret backslashes. 229738889Sjdp cat <<\EOF_SED > conftestsed 229838889Sjdps,\\,\\\\,g; s,\$,$$,g 229938889SjdpEOF_SED 230038889Sjdp program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 230138889Sjdp rm -f conftestsed 230238889Sjdpfi 230338889Sjdptest "$program_prefix" != NONE && 230438889Sjdp program_transform_name="s,^,${program_prefix},; $program_transform_name" 230538889Sjdp# Use a double $ so make ignores it. 230638889Sjdptest "$program_suffix" != NONE && 230738889Sjdp program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 230838889Sjdp 230938889Sjdp# sed with no file args requires a program. 231038889Sjdptest "$program_transform_name" = "" && program_transform_name="s,x,x," 231138889Sjdp 231238889Sjdp 231338889Sjdpecho $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 231478828Sobrienecho "configure:2315: checking whether to enable maintainer-specific portions of Makefiles" >&5 231538889Sjdp # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 231638889Sjdpif test "${enable_maintainer_mode+set}" = set; then 231738889Sjdp enableval="$enable_maintainer_mode" 231838889Sjdp USE_MAINTAINER_MODE=$enableval 231938889Sjdpelse 232038889Sjdp USE_MAINTAINER_MODE=no 232138889Sjdpfi 232238889Sjdp 232338889Sjdp echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 232438889Sjdp 232538889Sjdp 232660484Sobrienif test $USE_MAINTAINER_MODE = yes; then 232760484Sobrien MAINTAINER_MODE_TRUE= 232860484Sobrien MAINTAINER_MODE_FALSE='#' 232960484Sobrienelse 233060484Sobrien MAINTAINER_MODE_TRUE='#' 233160484Sobrien MAINTAINER_MODE_FALSE= 233260484Sobrienfi 233360484Sobrien MAINT=$MAINTAINER_MODE_TRUE 233460484Sobrien 233560484Sobrien 233638889Sjdp 233760484Sobrien 233838889Sjdpecho $ac_n "checking for executable suffix""... $ac_c" 1>&6 233978828Sobrienecho "configure:2340: checking for executable suffix" >&5 234060484Sobrienif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 234138889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 234238889Sjdpelse 234360484Sobrien if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 234460484Sobrien ac_cv_exeext=.exe 234538889Sjdpelse 234660484Sobrien rm -f conftest* 234760484Sobrien echo 'int main () { return 0; }' > conftest.$ac_ext 234860484Sobrien ac_cv_exeext= 234978828Sobrien if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 235060484Sobrien for file in conftest.*; do 235160484Sobrien case $file in 235277298Sobrien *.c | *.o | *.obj | *.ilk | *.pdb) ;; 235360484Sobrien *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 235460484Sobrien esac 235560484Sobrien done 235660484Sobrien else 235760484Sobrien { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 235860484Sobrien fi 235960484Sobrien rm -f conftest* 236060484Sobrien test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 236138889Sjdpfi 236260484Sobrienfi 236338889Sjdp 236438889SjdpEXEEXT="" 236560484Sobrientest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 236660484Sobrienecho "$ac_t""${ac_cv_exeext}" 1>&6 236760484Sobrienac_exeext=$EXEEXT 236838889Sjdp 236938889Sjdp 237038889Sjdphost64=false 237138889Sjdptarget64=false 237238889Sjdp 237338889Sjdp# host stuff: 237438889Sjdp 237538889Sjdp# Extract the first word of "gcc", so it can be a program name with args. 237638889Sjdpset dummy gcc; ac_word=$2 237738889Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 237878828Sobrienecho "configure:2379: checking for $ac_word" >&5 237938889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 238038889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 238138889Sjdpelse 238238889Sjdp if test -n "$CC"; then 238338889Sjdp ac_cv_prog_CC="$CC" # Let the user override the test. 238438889Sjdpelse 238560484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 238660484Sobrien ac_dummy="$PATH" 238760484Sobrien for ac_dir in $ac_dummy; do 238838889Sjdp test -z "$ac_dir" && ac_dir=. 238938889Sjdp if test -f $ac_dir/$ac_word; then 239038889Sjdp ac_cv_prog_CC="gcc" 239138889Sjdp break 239238889Sjdp fi 239338889Sjdp done 239438889Sjdp IFS="$ac_save_ifs" 239538889Sjdpfi 239638889Sjdpfi 239738889SjdpCC="$ac_cv_prog_CC" 239838889Sjdpif test -n "$CC"; then 239938889Sjdp echo "$ac_t""$CC" 1>&6 240038889Sjdpelse 240138889Sjdp echo "$ac_t""no" 1>&6 240238889Sjdpfi 240338889Sjdp 240438889Sjdpif test -z "$CC"; then 240538889Sjdp # Extract the first word of "cc", so it can be a program name with args. 240638889Sjdpset dummy cc; ac_word=$2 240738889Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 240878828Sobrienecho "configure:2409: checking for $ac_word" >&5 240938889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 241038889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 241138889Sjdpelse 241238889Sjdp if test -n "$CC"; then 241338889Sjdp ac_cv_prog_CC="$CC" # Let the user override the test. 241438889Sjdpelse 241560484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 241638889Sjdp ac_prog_rejected=no 241760484Sobrien ac_dummy="$PATH" 241860484Sobrien for ac_dir in $ac_dummy; do 241938889Sjdp test -z "$ac_dir" && ac_dir=. 242038889Sjdp if test -f $ac_dir/$ac_word; then 242138889Sjdp if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 242238889Sjdp ac_prog_rejected=yes 242338889Sjdp continue 242438889Sjdp fi 242538889Sjdp ac_cv_prog_CC="cc" 242638889Sjdp break 242738889Sjdp fi 242838889Sjdp done 242938889Sjdp IFS="$ac_save_ifs" 243038889Sjdpif test $ac_prog_rejected = yes; then 243138889Sjdp # We found a bogon in the path, so make sure we never use it. 243238889Sjdp set dummy $ac_cv_prog_CC 243338889Sjdp shift 243438889Sjdp if test $# -gt 0; then 243538889Sjdp # We chose a different compiler from the bogus one. 243638889Sjdp # However, it has the same basename, so the bogon will be chosen 243738889Sjdp # first if we set CC to just the basename; use the full file name. 243838889Sjdp shift 243938889Sjdp set dummy "$ac_dir/$ac_word" "$@" 244038889Sjdp shift 244138889Sjdp ac_cv_prog_CC="$@" 244233965Sjdp fi 244333965Sjdpfi 244438889Sjdpfi 244538889Sjdpfi 244638889SjdpCC="$ac_cv_prog_CC" 244738889Sjdpif test -n "$CC"; then 244838889Sjdp echo "$ac_t""$CC" 1>&6 244938889Sjdpelse 245038889Sjdp echo "$ac_t""no" 1>&6 245138889Sjdpfi 245233965Sjdp 245360484Sobrien if test -z "$CC"; then 245460484Sobrien case "`uname -s`" in 245560484Sobrien *win32* | *WIN32*) 245660484Sobrien # Extract the first word of "cl", so it can be a program name with args. 245760484Sobrienset dummy cl; ac_word=$2 245860484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 245978828Sobrienecho "configure:2460: checking for $ac_word" >&5 246060484Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 246160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 246260484Sobrienelse 246360484Sobrien if test -n "$CC"; then 246460484Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 246560484Sobrienelse 246660484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 246760484Sobrien ac_dummy="$PATH" 246860484Sobrien for ac_dir in $ac_dummy; do 246960484Sobrien test -z "$ac_dir" && ac_dir=. 247060484Sobrien if test -f $ac_dir/$ac_word; then 247160484Sobrien ac_cv_prog_CC="cl" 247260484Sobrien break 247360484Sobrien fi 247460484Sobrien done 247560484Sobrien IFS="$ac_save_ifs" 247660484Sobrienfi 247760484Sobrienfi 247860484SobrienCC="$ac_cv_prog_CC" 247960484Sobrienif test -n "$CC"; then 248060484Sobrien echo "$ac_t""$CC" 1>&6 248160484Sobrienelse 248260484Sobrien echo "$ac_t""no" 1>&6 248360484Sobrienfi 248460484Sobrien ;; 248560484Sobrien esac 248660484Sobrien fi 248738889Sjdp test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 248838889Sjdpfi 248933965Sjdp 249038889Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 249178828Sobrienecho "configure:2492: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 249233965Sjdp 249338889Sjdpac_ext=c 249438889Sjdp# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 249538889Sjdpac_cpp='$CPP $CPPFLAGS' 249638889Sjdpac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 249760484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 249838889Sjdpcross_compiling=$ac_cv_prog_cc_cross 249933965Sjdp 250060484Sobriencat > conftest.$ac_ext << EOF 250160484Sobrien 250278828Sobrien#line 2503 "configure" 250338889Sjdp#include "confdefs.h" 250460484Sobrien 250538889Sjdpmain(){return(0);} 250638889SjdpEOF 250778828Sobrienif { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 250838889Sjdp ac_cv_prog_cc_works=yes 250938889Sjdp # If we can't run a trivial program, we are probably using a cross compiler. 251038889Sjdp if (./conftest; exit) 2>/dev/null; then 251138889Sjdp ac_cv_prog_cc_cross=no 251238889Sjdp else 251338889Sjdp ac_cv_prog_cc_cross=yes 251438889Sjdp fi 251538889Sjdpelse 251638889Sjdp echo "configure: failed program was:" >&5 251738889Sjdp cat conftest.$ac_ext >&5 251838889Sjdp ac_cv_prog_cc_works=no 251938889Sjdpfi 252038889Sjdprm -fr conftest* 252160484Sobrienac_ext=c 252260484Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 252360484Sobrienac_cpp='$CPP $CPPFLAGS' 252460484Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 252560484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 252660484Sobriencross_compiling=$ac_cv_prog_cc_cross 252733965Sjdp 252838889Sjdpecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 252938889Sjdpif test $ac_cv_prog_cc_works = no; then 253038889Sjdp { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 253138889Sjdpfi 253238889Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 253378828Sobrienecho "configure:2534: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 253438889Sjdpecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 253538889Sjdpcross_compiling=$ac_cv_prog_cc_cross 253633965Sjdp 253738889Sjdpecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 253878828Sobrienecho "configure:2539: checking whether we are using GNU C" >&5 253938889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 254038889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 254138889Sjdpelse 254238889Sjdp cat > conftest.c <<EOF 254338889Sjdp#ifdef __GNUC__ 254438889Sjdp yes; 254538889Sjdp#endif 254638889SjdpEOF 254778828Sobrienif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 254838889Sjdp ac_cv_prog_gcc=yes 254938889Sjdpelse 255038889Sjdp ac_cv_prog_gcc=no 255138889Sjdpfi 255238889Sjdpfi 255333965Sjdp 255438889Sjdpecho "$ac_t""$ac_cv_prog_gcc" 1>&6 255538889Sjdp 255638889Sjdpif test $ac_cv_prog_gcc = yes; then 255738889Sjdp GCC=yes 255860484Sobrienelse 255960484Sobrien GCC= 256060484Sobrienfi 256160484Sobrien 256260484Sobrienac_test_CFLAGS="${CFLAGS+set}" 256360484Sobrienac_save_CFLAGS="$CFLAGS" 256460484SobrienCFLAGS= 256560484Sobrienecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 256678828Sobrienecho "configure:2567: checking whether ${CC-cc} accepts -g" >&5 256738889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 256838889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 256933965Sjdpelse 257038889Sjdp echo 'void f(){}' > conftest.c 257138889Sjdpif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 257238889Sjdp ac_cv_prog_cc_g=yes 257338889Sjdpelse 257438889Sjdp ac_cv_prog_cc_g=no 257533965Sjdpfi 257638889Sjdprm -f conftest* 257733965Sjdp 257838889Sjdpfi 257933965Sjdp 258038889Sjdpecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 258160484Sobrienif test "$ac_test_CFLAGS" = set; then 258260484Sobrien CFLAGS="$ac_save_CFLAGS" 258360484Sobrienelif test $ac_cv_prog_cc_g = yes; then 258460484Sobrien if test "$GCC" = yes; then 258538889Sjdp CFLAGS="-g -O2" 258638889Sjdp else 258760484Sobrien CFLAGS="-g" 258860484Sobrien fi 258960484Sobrienelse 259060484Sobrien if test "$GCC" = yes; then 259138889Sjdp CFLAGS="-O2" 259260484Sobrien else 259360484Sobrien CFLAGS= 259438889Sjdp fi 259560484Sobrienfi 259660484Sobrien 259760484Sobrien 259860484SobrienALL_LINGUAS= 259960484Sobrienecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 260078828Sobrienecho "configure:2601: checking how to run the C preprocessor" >&5 260160484Sobrien# On Suns, sometimes $CPP names a directory. 260260484Sobrienif test -n "$CPP" && test -d "$CPP"; then 260360484Sobrien CPP= 260460484Sobrienfi 260560484Sobrienif test -z "$CPP"; then 260660484Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 260760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 260838889Sjdpelse 260960484Sobrien # This must be in double quotes, not single quotes, because CPP may get 261060484Sobrien # substituted into the Makefile and "${CC-cc}" will confuse make. 261160484Sobrien CPP="${CC-cc} -E" 261260484Sobrien # On the NeXT, cc -E runs the code through the compiler's parser, 261360484Sobrien # not just through cpp. 261460484Sobrien cat > conftest.$ac_ext <<EOF 261578828Sobrien#line 2616 "configure" 261660484Sobrien#include "confdefs.h" 261760484Sobrien#include <assert.h> 261860484SobrienSyntax Error 261960484SobrienEOF 262060484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 262178828Sobrien{ (eval echo configure:2622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 262260484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 262360484Sobrienif test -z "$ac_err"; then 262460484Sobrien : 262560484Sobrienelse 262660484Sobrien echo "$ac_err" >&5 262760484Sobrien echo "configure: failed program was:" >&5 262860484Sobrien cat conftest.$ac_ext >&5 262960484Sobrien rm -rf conftest* 263060484Sobrien CPP="${CC-cc} -E -traditional-cpp" 263160484Sobrien cat > conftest.$ac_ext <<EOF 263278828Sobrien#line 2633 "configure" 263360484Sobrien#include "confdefs.h" 263460484Sobrien#include <assert.h> 263560484SobrienSyntax Error 263660484SobrienEOF 263760484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 263878828Sobrien{ (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 263960484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 264060484Sobrienif test -z "$ac_err"; then 264160484Sobrien : 264260484Sobrienelse 264360484Sobrien echo "$ac_err" >&5 264460484Sobrien echo "configure: failed program was:" >&5 264560484Sobrien cat conftest.$ac_ext >&5 264660484Sobrien rm -rf conftest* 264760484Sobrien CPP="${CC-cc} -nologo -E" 264860484Sobrien cat > conftest.$ac_ext <<EOF 264978828Sobrien#line 2650 "configure" 265060484Sobrien#include "confdefs.h" 265160484Sobrien#include <assert.h> 265260484SobrienSyntax Error 265360484SobrienEOF 265460484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 265578828Sobrien{ (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 265660484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 265760484Sobrienif test -z "$ac_err"; then 265860484Sobrien : 265960484Sobrienelse 266060484Sobrien echo "$ac_err" >&5 266160484Sobrien echo "configure: failed program was:" >&5 266260484Sobrien cat conftest.$ac_ext >&5 266360484Sobrien rm -rf conftest* 266460484Sobrien CPP=/lib/cpp 266538889Sjdpfi 266660484Sobrienrm -f conftest* 266760484Sobrienfi 266860484Sobrienrm -f conftest* 266960484Sobrienfi 267060484Sobrienrm -f conftest* 267160484Sobrien ac_cv_prog_CPP="$CPP" 267260484Sobrienfi 267360484Sobrien CPP="$ac_cv_prog_CPP" 267460484Sobrienelse 267560484Sobrien ac_cv_prog_CPP="$CPP" 267660484Sobrienfi 267760484Sobrienecho "$ac_t""$CPP" 1>&6 267833965Sjdp 267977298Sobrien# Extract the first word of "ranlib", so it can be a program name with args. 268077298Sobrienset dummy ranlib; ac_word=$2 268177298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 268278828Sobrienecho "configure:2683: checking for $ac_word" >&5 268377298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 268477298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 268577298Sobrienelse 268677298Sobrien if test -n "$RANLIB"; then 268777298Sobrien ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 268877298Sobrienelse 268977298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 269077298Sobrien ac_dummy="$PATH" 269177298Sobrien for ac_dir in $ac_dummy; do 269277298Sobrien test -z "$ac_dir" && ac_dir=. 269377298Sobrien if test -f $ac_dir/$ac_word; then 269477298Sobrien ac_cv_prog_RANLIB="ranlib" 269577298Sobrien break 269677298Sobrien fi 269777298Sobrien done 269877298Sobrien IFS="$ac_save_ifs" 269977298Sobrien test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 270077298Sobrienfi 270177298Sobrienfi 270277298SobrienRANLIB="$ac_cv_prog_RANLIB" 270377298Sobrienif test -n "$RANLIB"; then 270477298Sobrien echo "$ac_t""$RANLIB" 1>&6 270577298Sobrienelse 270677298Sobrien echo "$ac_t""no" 1>&6 270777298Sobrienfi 270877298Sobrien 270960484Sobrienecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 271078828Sobrienecho "configure:2711: checking for ANSI C header files" >&5 271160484Sobrienif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 271260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 271360484Sobrienelse 271460484Sobrien cat > conftest.$ac_ext <<EOF 271578828Sobrien#line 2716 "configure" 271660484Sobrien#include "confdefs.h" 271760484Sobrien#include <stdlib.h> 271860484Sobrien#include <stdarg.h> 271960484Sobrien#include <string.h> 272060484Sobrien#include <float.h> 272160484SobrienEOF 272260484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 272378828Sobrien{ (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 272460484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 272560484Sobrienif test -z "$ac_err"; then 272660484Sobrien rm -rf conftest* 272760484Sobrien ac_cv_header_stdc=yes 272860484Sobrienelse 272960484Sobrien echo "$ac_err" >&5 273060484Sobrien echo "configure: failed program was:" >&5 273160484Sobrien cat conftest.$ac_ext >&5 273260484Sobrien rm -rf conftest* 273360484Sobrien ac_cv_header_stdc=no 273460484Sobrienfi 273560484Sobrienrm -f conftest* 273633965Sjdp 273760484Sobrienif test $ac_cv_header_stdc = yes; then 273860484Sobrien # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 273960484Sobriencat > conftest.$ac_ext <<EOF 274078828Sobrien#line 2741 "configure" 274160484Sobrien#include "confdefs.h" 274260484Sobrien#include <string.h> 274360484SobrienEOF 274460484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 274560484Sobrien egrep "memchr" >/dev/null 2>&1; then 274660484Sobrien : 274760484Sobrienelse 274860484Sobrien rm -rf conftest* 274960484Sobrien ac_cv_header_stdc=no 275060484Sobrienfi 275160484Sobrienrm -f conftest* 275233965Sjdp 275360484Sobrienfi 275433965Sjdp 275560484Sobrienif test $ac_cv_header_stdc = yes; then 275660484Sobrien # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 275760484Sobriencat > conftest.$ac_ext <<EOF 275878828Sobrien#line 2759 "configure" 275960484Sobrien#include "confdefs.h" 276060484Sobrien#include <stdlib.h> 276160484SobrienEOF 276260484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 276360484Sobrien egrep "free" >/dev/null 2>&1; then 276460484Sobrien : 276560484Sobrienelse 276660484Sobrien rm -rf conftest* 276760484Sobrien ac_cv_header_stdc=no 276860484Sobrienfi 276960484Sobrienrm -f conftest* 277033965Sjdp 277160484Sobrienfi 277238889Sjdp 277360484Sobrienif test $ac_cv_header_stdc = yes; then 277460484Sobrien # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 277560484Sobrienif test "$cross_compiling" = yes; then 277660484Sobrien : 277760484Sobrienelse 277860484Sobrien cat > conftest.$ac_ext <<EOF 277978828Sobrien#line 2780 "configure" 278060484Sobrien#include "confdefs.h" 278160484Sobrien#include <ctype.h> 278260484Sobrien#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 278360484Sobrien#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 278460484Sobrien#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 278560484Sobrienint main () { int i; for (i = 0; i < 256; i++) 278660484Sobrienif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 278760484Sobrienexit (0); } 278838889Sjdp 278960484SobrienEOF 279078828Sobrienif { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 279160484Sobrienthen 279260484Sobrien : 279360484Sobrienelse 279460484Sobrien echo "configure: failed program was:" >&5 279560484Sobrien cat conftest.$ac_ext >&5 279660484Sobrien rm -fr conftest* 279760484Sobrien ac_cv_header_stdc=no 279833965Sjdpfi 279960484Sobrienrm -fr conftest* 280060484Sobrienfi 280133965Sjdp 280260484Sobrienfi 280360484Sobrienfi 280433965Sjdp 280560484Sobrienecho "$ac_t""$ac_cv_header_stdc" 1>&6 280660484Sobrienif test $ac_cv_header_stdc = yes; then 280760484Sobrien cat >> confdefs.h <<\EOF 280860484Sobrien#define STDC_HEADERS 1 280960484SobrienEOF 281033965Sjdp 281160484Sobrienfi 281233965Sjdp 281360484Sobrienecho $ac_n "checking for working const""... $ac_c" 1>&6 281478828Sobrienecho "configure:2815: checking for working const" >&5 281560484Sobrienif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 281660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 281760484Sobrienelse 281860484Sobrien cat > conftest.$ac_ext <<EOF 281978828Sobrien#line 2820 "configure" 282060484Sobrien#include "confdefs.h" 282133965Sjdp 282260484Sobrienint main() { 282360484Sobrien 282460484Sobrien/* Ultrix mips cc rejects this. */ 282577298Sobrientypedef int charset[2]; const charset x; 282660484Sobrien/* SunOS 4.1.1 cc rejects this. */ 282760484Sobrienchar const *const *ccp; 282860484Sobrienchar **p; 282960484Sobrien/* NEC SVR4.0.2 mips cc rejects this. */ 283060484Sobrienstruct point {int x, y;}; 283160484Sobrienstatic struct point const zero = {0,0}; 283260484Sobrien/* AIX XL C 1.02.0.0 rejects this. 283360484Sobrien It does not let you subtract one const X* pointer from another in an arm 283460484Sobrien of an if-expression whose if-part is not a constant expression */ 283560484Sobrienconst char *g = "string"; 283660484Sobrienccp = &g + (g ? g-g : 0); 283760484Sobrien/* HPUX 7.0 cc rejects these. */ 283860484Sobrien++ccp; 283960484Sobrienp = (char**) ccp; 284060484Sobrienccp = (char const *const *) p; 284160484Sobrien{ /* SCO 3.2v4 cc rejects this. */ 284260484Sobrien char *t; 284360484Sobrien char const *s = 0 ? (char *) 0 : (char const *) 0; 284460484Sobrien 284560484Sobrien *t++ = 0; 284660484Sobrien} 284760484Sobrien{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 284860484Sobrien int x[] = {25, 17}; 284960484Sobrien const int *foo = &x[0]; 285060484Sobrien ++foo; 285160484Sobrien} 285260484Sobrien{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 285360484Sobrien typedef const int *iptr; 285460484Sobrien iptr p = 0; 285560484Sobrien ++p; 285660484Sobrien} 285760484Sobrien{ /* AIX XL C 1.02.0.0 rejects this saying 285860484Sobrien "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 285960484Sobrien struct s { int j; const int *ap[3]; }; 286060484Sobrien struct s *b; b->j = 5; 286160484Sobrien} 286260484Sobrien{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 286360484Sobrien const int foo = 10; 286460484Sobrien} 286560484Sobrien 286660484Sobrien; return 0; } 286760484SobrienEOF 286878828Sobrienif { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 286960484Sobrien rm -rf conftest* 287060484Sobrien ac_cv_c_const=yes 287160484Sobrienelse 287260484Sobrien echo "configure: failed program was:" >&5 287360484Sobrien cat conftest.$ac_ext >&5 287460484Sobrien rm -rf conftest* 287560484Sobrien ac_cv_c_const=no 287633965Sjdpfi 287760484Sobrienrm -f conftest* 287860484Sobrienfi 287933965Sjdp 288060484Sobrienecho "$ac_t""$ac_cv_c_const" 1>&6 288160484Sobrienif test $ac_cv_c_const = no; then 288260484Sobrien cat >> confdefs.h <<\EOF 288360484Sobrien#define const 288460484SobrienEOF 288560484Sobrien 288660484Sobrienfi 288760484Sobrien 288860484Sobrienecho $ac_n "checking for inline""... $ac_c" 1>&6 288978828Sobrienecho "configure:2890: checking for inline" >&5 289060484Sobrienif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 289160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 289238889Sjdpelse 289360484Sobrien ac_cv_c_inline=no 289460484Sobrienfor ac_kw in inline __inline__ __inline; do 289560484Sobrien cat > conftest.$ac_ext <<EOF 289678828Sobrien#line 2897 "configure" 289760484Sobrien#include "confdefs.h" 289860484Sobrien 289960484Sobrienint main() { 290077298Sobrien} $ac_kw foo() { 290160484Sobrien; return 0; } 290260484SobrienEOF 290378828Sobrienif { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 290460484Sobrien rm -rf conftest* 290560484Sobrien ac_cv_c_inline=$ac_kw; break 290660484Sobrienelse 290760484Sobrien echo "configure: failed program was:" >&5 290860484Sobrien cat conftest.$ac_ext >&5 290960484Sobrienfi 291060484Sobrienrm -f conftest* 291160484Sobriendone 291260484Sobrien 291360484Sobrienfi 291460484Sobrien 291560484Sobrienecho "$ac_t""$ac_cv_c_inline" 1>&6 291660484Sobriencase "$ac_cv_c_inline" in 291760484Sobrien inline | yes) ;; 291860484Sobrien no) cat >> confdefs.h <<\EOF 291960484Sobrien#define inline 292060484SobrienEOF 292160484Sobrien ;; 292260484Sobrien *) cat >> confdefs.h <<EOF 292360484Sobrien#define inline $ac_cv_c_inline 292460484SobrienEOF 292560484Sobrien ;; 292660484Sobrienesac 292760484Sobrien 292860484Sobrienecho $ac_n "checking for off_t""... $ac_c" 1>&6 292978828Sobrienecho "configure:2930: checking for off_t" >&5 293060484Sobrienif eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 293138889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 293238889Sjdpelse 293360484Sobrien cat > conftest.$ac_ext <<EOF 293478828Sobrien#line 2935 "configure" 293560484Sobrien#include "confdefs.h" 293660484Sobrien#include <sys/types.h> 293760484Sobrien#if STDC_HEADERS 293860484Sobrien#include <stdlib.h> 293960484Sobrien#include <stddef.h> 294060484Sobrien#endif 294160484SobrienEOF 294260484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 294360484Sobrien egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 294460484Sobrien rm -rf conftest* 294560484Sobrien ac_cv_type_off_t=yes 294660484Sobrienelse 294760484Sobrien rm -rf conftest* 294860484Sobrien ac_cv_type_off_t=no 294960484Sobrienfi 295060484Sobrienrm -f conftest* 295160484Sobrien 295260484Sobrienfi 295360484Sobrienecho "$ac_t""$ac_cv_type_off_t" 1>&6 295460484Sobrienif test $ac_cv_type_off_t = no; then 295560484Sobrien cat >> confdefs.h <<\EOF 295660484Sobrien#define off_t long 295760484SobrienEOF 295860484Sobrien 295960484Sobrienfi 296060484Sobrien 296160484Sobrienecho $ac_n "checking for size_t""... $ac_c" 1>&6 296278828Sobrienecho "configure:2963: checking for size_t" >&5 296360484Sobrienif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 296460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 296560484Sobrienelse 296660484Sobrien cat > conftest.$ac_ext <<EOF 296778828Sobrien#line 2968 "configure" 296860484Sobrien#include "confdefs.h" 296960484Sobrien#include <sys/types.h> 297060484Sobrien#if STDC_HEADERS 297160484Sobrien#include <stdlib.h> 297260484Sobrien#include <stddef.h> 297360484Sobrien#endif 297460484SobrienEOF 297560484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 297660484Sobrien egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 297760484Sobrien rm -rf conftest* 297860484Sobrien ac_cv_type_size_t=yes 297960484Sobrienelse 298060484Sobrien rm -rf conftest* 298160484Sobrien ac_cv_type_size_t=no 298260484Sobrienfi 298360484Sobrienrm -f conftest* 298460484Sobrien 298560484Sobrienfi 298660484Sobrienecho "$ac_t""$ac_cv_type_size_t" 1>&6 298760484Sobrienif test $ac_cv_type_size_t = no; then 298860484Sobrien cat >> confdefs.h <<\EOF 298960484Sobrien#define size_t unsigned 299060484SobrienEOF 299160484Sobrien 299260484Sobrienfi 299360484Sobrien 299460484Sobrien# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 299560484Sobrien# for constant arguments. Useless! 299660484Sobrienecho $ac_n "checking for working alloca.h""... $ac_c" 1>&6 299778828Sobrienecho "configure:2998: checking for working alloca.h" >&5 299860484Sobrienif eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 299960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 300060484Sobrienelse 300160484Sobrien cat > conftest.$ac_ext <<EOF 300278828Sobrien#line 3003 "configure" 300360484Sobrien#include "confdefs.h" 300460484Sobrien#include <alloca.h> 300538889Sjdpint main() { 300677298Sobrienchar *p = alloca(2 * sizeof(int)); 300760484Sobrien; return 0; } 300860484SobrienEOF 300978828Sobrienif { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 301060484Sobrien rm -rf conftest* 301160484Sobrien ac_cv_header_alloca_h=yes 301260484Sobrienelse 301360484Sobrien echo "configure: failed program was:" >&5 301460484Sobrien cat conftest.$ac_ext >&5 301560484Sobrien rm -rf conftest* 301660484Sobrien ac_cv_header_alloca_h=no 301760484Sobrienfi 301860484Sobrienrm -f conftest* 301960484Sobrienfi 302060484Sobrien 302160484Sobrienecho "$ac_t""$ac_cv_header_alloca_h" 1>&6 302260484Sobrienif test $ac_cv_header_alloca_h = yes; then 302360484Sobrien cat >> confdefs.h <<\EOF 302460484Sobrien#define HAVE_ALLOCA_H 1 302560484SobrienEOF 302660484Sobrien 302760484Sobrienfi 302860484Sobrien 302960484Sobrienecho $ac_n "checking for alloca""... $ac_c" 1>&6 303078828Sobrienecho "configure:3031: checking for alloca" >&5 303160484Sobrienif eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 303260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 303360484Sobrienelse 303460484Sobrien cat > conftest.$ac_ext <<EOF 303578828Sobrien#line 3036 "configure" 303660484Sobrien#include "confdefs.h" 303760484Sobrien 303860484Sobrien#ifdef __GNUC__ 303960484Sobrien# define alloca __builtin_alloca 304060484Sobrien#else 304160484Sobrien# ifdef _MSC_VER 304260484Sobrien# include <malloc.h> 304360484Sobrien# define alloca _alloca 304460484Sobrien# else 304560484Sobrien# if HAVE_ALLOCA_H 304660484Sobrien# include <alloca.h> 304760484Sobrien# else 304860484Sobrien# ifdef _AIX 304960484Sobrien #pragma alloca 305060484Sobrien# else 305160484Sobrien# ifndef alloca /* predefined by HP cc +Olibcalls */ 305260484Sobrienchar *alloca (); 305360484Sobrien# endif 305460484Sobrien# endif 305560484Sobrien# endif 305660484Sobrien# endif 305760484Sobrien#endif 305860484Sobrien 305960484Sobrienint main() { 306060484Sobrienchar *p = (char *) alloca(1); 306160484Sobrien; return 0; } 306260484SobrienEOF 306378828Sobrienif { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 306460484Sobrien rm -rf conftest* 306560484Sobrien ac_cv_func_alloca_works=yes 306660484Sobrienelse 306760484Sobrien echo "configure: failed program was:" >&5 306860484Sobrien cat conftest.$ac_ext >&5 306960484Sobrien rm -rf conftest* 307060484Sobrien ac_cv_func_alloca_works=no 307160484Sobrienfi 307260484Sobrienrm -f conftest* 307360484Sobrienfi 307460484Sobrien 307560484Sobrienecho "$ac_t""$ac_cv_func_alloca_works" 1>&6 307660484Sobrienif test $ac_cv_func_alloca_works = yes; then 307760484Sobrien cat >> confdefs.h <<\EOF 307860484Sobrien#define HAVE_ALLOCA 1 307960484SobrienEOF 308060484Sobrien 308160484Sobrienfi 308260484Sobrien 308360484Sobrienif test $ac_cv_func_alloca_works = no; then 308460484Sobrien # The SVR3 libPW and SVR4 libucb both contain incompatible functions 308560484Sobrien # that cause trouble. Some versions do not even contain alloca or 308660484Sobrien # contain a buggy version. If you still want to use their alloca, 308760484Sobrien # use ar to extract alloca.o from them instead of compiling alloca.c. 308860484Sobrien ALLOCA=alloca.${ac_objext} 308960484Sobrien cat >> confdefs.h <<\EOF 309060484Sobrien#define C_ALLOCA 1 309160484SobrienEOF 309260484Sobrien 309360484Sobrien 309460484Sobrienecho $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 309578828Sobrienecho "configure:3096: checking whether alloca needs Cray hooks" >&5 309660484Sobrienif eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 309760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 309860484Sobrienelse 309960484Sobrien cat > conftest.$ac_ext <<EOF 310078828Sobrien#line 3101 "configure" 310160484Sobrien#include "confdefs.h" 310260484Sobrien#if defined(CRAY) && ! defined(CRAY2) 310360484Sobrienwebecray 310460484Sobrien#else 310560484Sobrienwenotbecray 310660484Sobrien#endif 310760484Sobrien 310860484SobrienEOF 310960484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 311060484Sobrien egrep "webecray" >/dev/null 2>&1; then 311160484Sobrien rm -rf conftest* 311260484Sobrien ac_cv_os_cray=yes 311360484Sobrienelse 311460484Sobrien rm -rf conftest* 311560484Sobrien ac_cv_os_cray=no 311660484Sobrienfi 311760484Sobrienrm -f conftest* 311860484Sobrien 311960484Sobrienfi 312060484Sobrien 312160484Sobrienecho "$ac_t""$ac_cv_os_cray" 1>&6 312260484Sobrienif test $ac_cv_os_cray = yes; then 312360484Sobrienfor ac_func in _getb67 GETB67 getb67; do 312460484Sobrien echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 312578828Sobrienecho "configure:3126: checking for $ac_func" >&5 312660484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 312760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 312860484Sobrienelse 312960484Sobrien cat > conftest.$ac_ext <<EOF 313078828Sobrien#line 3131 "configure" 313160484Sobrien#include "confdefs.h" 313260484Sobrien/* System header to define __stub macros and hopefully few prototypes, 313360484Sobrien which can conflict with char $ac_func(); below. */ 313460484Sobrien#include <assert.h> 313560484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 313660484Sobrien/* We use char because int might match the return type of a gcc2 313760484Sobrien builtin and then its argument prototype would still apply. */ 313860484Sobrienchar $ac_func(); 313960484Sobrien 314060484Sobrienint main() { 314160484Sobrien 314260484Sobrien/* The GNU C library defines this for functions which it implements 314360484Sobrien to always fail with ENOSYS. Some functions are actually named 314460484Sobrien something starting with __ and the normal name is an alias. */ 314560484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 314660484Sobrienchoke me 314760484Sobrien#else 314860484Sobrien$ac_func(); 314960484Sobrien#endif 315060484Sobrien 315160484Sobrien; return 0; } 315260484SobrienEOF 315378828Sobrienif { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 315460484Sobrien rm -rf conftest* 315560484Sobrien eval "ac_cv_func_$ac_func=yes" 315660484Sobrienelse 315760484Sobrien echo "configure: failed program was:" >&5 315860484Sobrien cat conftest.$ac_ext >&5 315960484Sobrien rm -rf conftest* 316060484Sobrien eval "ac_cv_func_$ac_func=no" 316160484Sobrienfi 316260484Sobrienrm -f conftest* 316360484Sobrienfi 316460484Sobrien 316560484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 316660484Sobrien echo "$ac_t""yes" 1>&6 316760484Sobrien cat >> confdefs.h <<EOF 316860484Sobrien#define CRAY_STACKSEG_END $ac_func 316960484SobrienEOF 317060484Sobrien 317160484Sobrien break 317260484Sobrienelse 317360484Sobrien echo "$ac_t""no" 1>&6 317460484Sobrienfi 317560484Sobrien 317660484Sobriendone 317760484Sobrienfi 317860484Sobrien 317960484Sobrienecho $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 318078828Sobrienecho "configure:3181: checking stack direction for C alloca" >&5 318160484Sobrienif eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 318260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 318360484Sobrienelse 318460484Sobrien if test "$cross_compiling" = yes; then 318560484Sobrien ac_cv_c_stack_direction=0 318660484Sobrienelse 318760484Sobrien cat > conftest.$ac_ext <<EOF 318878828Sobrien#line 3189 "configure" 318960484Sobrien#include "confdefs.h" 319060484Sobrienfind_stack_direction () 319160484Sobrien{ 319260484Sobrien static char *addr = 0; 319360484Sobrien auto char dummy; 319460484Sobrien if (addr == 0) 319560484Sobrien { 319660484Sobrien addr = &dummy; 319760484Sobrien return find_stack_direction (); 319860484Sobrien } 319960484Sobrien else 320060484Sobrien return (&dummy > addr) ? 1 : -1; 320138889Sjdp} 320260484Sobrienmain () 320360484Sobrien{ 320460484Sobrien exit (find_stack_direction() < 0); 320560484Sobrien} 320638889SjdpEOF 320778828Sobrienif { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 320860484Sobrienthen 320960484Sobrien ac_cv_c_stack_direction=1 321060484Sobrienelse 321160484Sobrien echo "configure: failed program was:" >&5 321260484Sobrien cat conftest.$ac_ext >&5 321360484Sobrien rm -fr conftest* 321460484Sobrien ac_cv_c_stack_direction=-1 321538889Sjdpfi 321660484Sobrienrm -fr conftest* 321760484Sobrienfi 321833965Sjdp 321938889Sjdpfi 322038889Sjdp 322160484Sobrienecho "$ac_t""$ac_cv_c_stack_direction" 1>&6 322260484Sobriencat >> confdefs.h <<EOF 322360484Sobrien#define STACK_DIRECTION $ac_cv_c_stack_direction 322460484SobrienEOF 322538889Sjdp 322633965Sjdpfi 322760484Sobrien 322860484Sobrienfor ac_hdr in unistd.h 322960484Sobriendo 323060484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 323160484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 323278828Sobrienecho "configure:3233: checking for $ac_hdr" >&5 323360484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 323433965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 323533965Sjdpelse 323633965Sjdp cat > conftest.$ac_ext <<EOF 323778828Sobrien#line 3238 "configure" 323833965Sjdp#include "confdefs.h" 323960484Sobrien#include <$ac_hdr> 324060484SobrienEOF 324160484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 324278828Sobrien{ (eval echo configure:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 324360484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 324460484Sobrienif test -z "$ac_err"; then 324560484Sobrien rm -rf conftest* 324660484Sobrien eval "ac_cv_header_$ac_safe=yes" 324760484Sobrienelse 324860484Sobrien echo "$ac_err" >&5 324960484Sobrien echo "configure: failed program was:" >&5 325060484Sobrien cat conftest.$ac_ext >&5 325160484Sobrien rm -rf conftest* 325260484Sobrien eval "ac_cv_header_$ac_safe=no" 325360484Sobrienfi 325460484Sobrienrm -f conftest* 325560484Sobrienfi 325660484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 325760484Sobrien echo "$ac_t""yes" 1>&6 325860484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 325960484Sobrien cat >> confdefs.h <<EOF 326060484Sobrien#define $ac_tr_hdr 1 326160484SobrienEOF 326260484Sobrien 326360484Sobrienelse 326460484Sobrien echo "$ac_t""no" 1>&6 326560484Sobrienfi 326660484Sobriendone 326760484Sobrien 326860484Sobrienfor ac_func in getpagesize 326960484Sobriendo 327060484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 327178828Sobrienecho "configure:3272: checking for $ac_func" >&5 327260484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 327360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 327460484Sobrienelse 327560484Sobrien cat > conftest.$ac_ext <<EOF 327678828Sobrien#line 3277 "configure" 327760484Sobrien#include "confdefs.h" 327860484Sobrien/* System header to define __stub macros and hopefully few prototypes, 327960484Sobrien which can conflict with char $ac_func(); below. */ 328033965Sjdp#include <assert.h> 328160484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 328260484Sobrien/* We use char because int might match the return type of a gcc2 328360484Sobrien builtin and then its argument prototype would still apply. */ 328460484Sobrienchar $ac_func(); 328560484Sobrien 328660484Sobrienint main() { 328760484Sobrien 328860484Sobrien/* The GNU C library defines this for functions which it implements 328960484Sobrien to always fail with ENOSYS. Some functions are actually named 329060484Sobrien something starting with __ and the normal name is an alias. */ 329160484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 329260484Sobrienchoke me 329360484Sobrien#else 329460484Sobrien$ac_func(); 329560484Sobrien#endif 329660484Sobrien 329760484Sobrien; return 0; } 329833965SjdpEOF 329978828Sobrienif { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 330060484Sobrien rm -rf conftest* 330160484Sobrien eval "ac_cv_func_$ac_func=yes" 330260484Sobrienelse 330360484Sobrien echo "configure: failed program was:" >&5 330460484Sobrien cat conftest.$ac_ext >&5 330560484Sobrien rm -rf conftest* 330660484Sobrien eval "ac_cv_func_$ac_func=no" 330760484Sobrienfi 330860484Sobrienrm -f conftest* 330960484Sobrienfi 331060484Sobrien 331160484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 331260484Sobrien echo "$ac_t""yes" 1>&6 331360484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 331460484Sobrien cat >> confdefs.h <<EOF 331560484Sobrien#define $ac_tr_func 1 331660484SobrienEOF 331760484Sobrien 331860484Sobrienelse 331960484Sobrien echo "$ac_t""no" 1>&6 332060484Sobrienfi 332160484Sobriendone 332260484Sobrien 332360484Sobrienecho $ac_n "checking for working mmap""... $ac_c" 1>&6 332478828Sobrienecho "configure:3325: checking for working mmap" >&5 332560484Sobrienif eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 332660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 332760484Sobrienelse 332860484Sobrien if test "$cross_compiling" = yes; then 332960484Sobrien ac_cv_func_mmap_fixed_mapped=no 333060484Sobrienelse 333160484Sobrien cat > conftest.$ac_ext <<EOF 333278828Sobrien#line 3333 "configure" 333360484Sobrien#include "confdefs.h" 333460484Sobrien 333560484Sobrien/* Thanks to Mike Haertel and Jim Avera for this test. 333660484Sobrien Here is a matrix of mmap possibilities: 333760484Sobrien mmap private not fixed 333860484Sobrien mmap private fixed at somewhere currently unmapped 333960484Sobrien mmap private fixed at somewhere already mapped 334060484Sobrien mmap shared not fixed 334160484Sobrien mmap shared fixed at somewhere currently unmapped 334260484Sobrien mmap shared fixed at somewhere already mapped 334360484Sobrien For private mappings, we should verify that changes cannot be read() 334460484Sobrien back from the file, nor mmap's back from the file at a different 334560484Sobrien address. (There have been systems where private was not correctly 334660484Sobrien implemented like the infamous i386 svr4.0, and systems where the 334760484Sobrien VM page cache was not coherent with the filesystem buffer cache 334860484Sobrien like early versions of FreeBSD and possibly contemporary NetBSD.) 334960484Sobrien For shared mappings, we should conversely verify that changes get 335060484Sobrien propogated back to all the places they're supposed to be. 335160484Sobrien 335260484Sobrien Grep wants private fixed already mapped. 335360484Sobrien The main things grep needs to know about mmap are: 335460484Sobrien * does it exist and is it safe to write into the mmap'd area 335560484Sobrien * how to use it (BSD variants) */ 335660484Sobrien#include <sys/types.h> 335760484Sobrien#include <fcntl.h> 335860484Sobrien#include <sys/mman.h> 335960484Sobrien 336060484Sobrien/* This mess was copied from the GNU getpagesize.h. */ 336160484Sobrien#ifndef HAVE_GETPAGESIZE 336277298Sobrien# ifdef HAVE_UNISTD_H 336377298Sobrien# include <unistd.h> 336477298Sobrien# endif 336560484Sobrien 336660484Sobrien/* Assume that all systems that can run configure have sys/param.h. */ 336760484Sobrien# ifndef HAVE_SYS_PARAM_H 336860484Sobrien# define HAVE_SYS_PARAM_H 1 336960484Sobrien# endif 337060484Sobrien 337160484Sobrien# ifdef _SC_PAGESIZE 337260484Sobrien# define getpagesize() sysconf(_SC_PAGESIZE) 337360484Sobrien# else /* no _SC_PAGESIZE */ 337460484Sobrien# ifdef HAVE_SYS_PARAM_H 337560484Sobrien# include <sys/param.h> 337660484Sobrien# ifdef EXEC_PAGESIZE 337760484Sobrien# define getpagesize() EXEC_PAGESIZE 337860484Sobrien# else /* no EXEC_PAGESIZE */ 337960484Sobrien# ifdef NBPG 338060484Sobrien# define getpagesize() NBPG * CLSIZE 338160484Sobrien# ifndef CLSIZE 338260484Sobrien# define CLSIZE 1 338360484Sobrien# endif /* no CLSIZE */ 338460484Sobrien# else /* no NBPG */ 338560484Sobrien# ifdef NBPC 338660484Sobrien# define getpagesize() NBPC 338760484Sobrien# else /* no NBPC */ 338860484Sobrien# ifdef PAGESIZE 338960484Sobrien# define getpagesize() PAGESIZE 339060484Sobrien# endif /* PAGESIZE */ 339160484Sobrien# endif /* no NBPC */ 339260484Sobrien# endif /* no NBPG */ 339360484Sobrien# endif /* no EXEC_PAGESIZE */ 339460484Sobrien# else /* no HAVE_SYS_PARAM_H */ 339560484Sobrien# define getpagesize() 8192 /* punt totally */ 339660484Sobrien# endif /* no HAVE_SYS_PARAM_H */ 339760484Sobrien# endif /* no _SC_PAGESIZE */ 339860484Sobrien 339960484Sobrien#endif /* no HAVE_GETPAGESIZE */ 340060484Sobrien 340160484Sobrien#ifdef __cplusplus 340260484Sobrienextern "C" { void *malloc(unsigned); } 340360484Sobrien#else 340460484Sobrienchar *malloc(); 340560484Sobrien#endif 340660484Sobrien 340760484Sobrienint 340860484Sobrienmain() 340960484Sobrien{ 341060484Sobrien char *data, *data2, *data3; 341160484Sobrien int i, pagesize; 341260484Sobrien int fd; 341360484Sobrien 341460484Sobrien pagesize = getpagesize(); 341560484Sobrien 341660484Sobrien /* 341760484Sobrien * First, make a file with some known garbage in it. 341860484Sobrien */ 341977298Sobrien data = malloc(pagesize); 342060484Sobrien if (!data) 342160484Sobrien exit(1); 342260484Sobrien for (i = 0; i < pagesize; ++i) 342360484Sobrien *(data + i) = rand(); 342460484Sobrien umask(0); 342560484Sobrien fd = creat("conftestmmap", 0600); 342660484Sobrien if (fd < 0) 342760484Sobrien exit(1); 342860484Sobrien if (write(fd, data, pagesize) != pagesize) 342960484Sobrien exit(1); 343060484Sobrien close(fd); 343160484Sobrien 343260484Sobrien /* 343360484Sobrien * Next, try to mmap the file at a fixed address which 343460484Sobrien * already has something else allocated at it. If we can, 343560484Sobrien * also make sure that we see the same garbage. 343660484Sobrien */ 343760484Sobrien fd = open("conftestmmap", O_RDWR); 343860484Sobrien if (fd < 0) 343960484Sobrien exit(1); 344077298Sobrien data2 = malloc(2 * pagesize); 344160484Sobrien if (!data2) 344260484Sobrien exit(1); 344360484Sobrien data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 344460484Sobrien if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 344560484Sobrien MAP_PRIVATE | MAP_FIXED, fd, 0L)) 344660484Sobrien exit(1); 344760484Sobrien for (i = 0; i < pagesize; ++i) 344860484Sobrien if (*(data + i) != *(data2 + i)) 344960484Sobrien exit(1); 345060484Sobrien 345160484Sobrien /* 345260484Sobrien * Finally, make sure that changes to the mapped area 345360484Sobrien * do not percolate back to the file as seen by read(). 345460484Sobrien * (This is a bug on some variants of i386 svr4.0.) 345560484Sobrien */ 345660484Sobrien for (i = 0; i < pagesize; ++i) 345760484Sobrien *(data2 + i) = *(data2 + i) + 1; 345877298Sobrien data3 = malloc(pagesize); 345960484Sobrien if (!data3) 346060484Sobrien exit(1); 346160484Sobrien if (read(fd, data3, pagesize) != pagesize) 346260484Sobrien exit(1); 346360484Sobrien for (i = 0; i < pagesize; ++i) 346460484Sobrien if (*(data + i) != *(data3 + i)) 346560484Sobrien exit(1); 346660484Sobrien close(fd); 346760484Sobrien unlink("conftestmmap"); 346860484Sobrien exit(0); 346960484Sobrien} 347060484Sobrien 347160484SobrienEOF 347278828Sobrienif { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 347360484Sobrienthen 347460484Sobrien ac_cv_func_mmap_fixed_mapped=yes 347560484Sobrienelse 347660484Sobrien echo "configure: failed program was:" >&5 347760484Sobrien cat conftest.$ac_ext >&5 347860484Sobrien rm -fr conftest* 347960484Sobrien ac_cv_func_mmap_fixed_mapped=no 348060484Sobrienfi 348160484Sobrienrm -fr conftest* 348260484Sobrienfi 348360484Sobrien 348460484Sobrienfi 348560484Sobrien 348660484Sobrienecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 348760484Sobrienif test $ac_cv_func_mmap_fixed_mapped = yes; then 348860484Sobrien cat >> confdefs.h <<\EOF 348960484Sobrien#define HAVE_MMAP 1 349060484SobrienEOF 349160484Sobrien 349260484Sobrienfi 349360484Sobrien 349460484Sobrien 349560484Sobrien for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 349660484Sobrienunistd.h values.h sys/param.h 349760484Sobriendo 349860484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 349960484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 350078828Sobrienecho "configure:3501: checking for $ac_hdr" >&5 350160484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 350260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 350360484Sobrienelse 350460484Sobrien cat > conftest.$ac_ext <<EOF 350578828Sobrien#line 3506 "configure" 350660484Sobrien#include "confdefs.h" 350760484Sobrien#include <$ac_hdr> 350860484SobrienEOF 350933965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 351078828Sobrien{ (eval echo configure:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 351160484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 351233965Sjdpif test -z "$ac_err"; then 351360484Sobrien rm -rf conftest* 351460484Sobrien eval "ac_cv_header_$ac_safe=yes" 351533965Sjdpelse 351633965Sjdp echo "$ac_err" >&5 351733965Sjdp echo "configure: failed program was:" >&5 351833965Sjdp cat conftest.$ac_ext >&5 351933965Sjdp rm -rf conftest* 352060484Sobrien eval "ac_cv_header_$ac_safe=no" 352160484Sobrienfi 352260484Sobrienrm -f conftest* 352360484Sobrienfi 352460484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 352560484Sobrien echo "$ac_t""yes" 1>&6 352660484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 352760484Sobrien cat >> confdefs.h <<EOF 352860484Sobrien#define $ac_tr_hdr 1 352960484SobrienEOF 353060484Sobrien 353160484Sobrienelse 353260484Sobrien echo "$ac_t""no" 1>&6 353360484Sobrienfi 353460484Sobriendone 353560484Sobrien 353660484Sobrien for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 353760484Sobrien__argz_count __argz_stringify __argz_next 353860484Sobriendo 353960484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 354078828Sobrienecho "configure:3541: checking for $ac_func" >&5 354160484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 354260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 354360484Sobrienelse 354433965Sjdp cat > conftest.$ac_ext <<EOF 354578828Sobrien#line 3546 "configure" 354633965Sjdp#include "confdefs.h" 354760484Sobrien/* System header to define __stub macros and hopefully few prototypes, 354860484Sobrien which can conflict with char $ac_func(); below. */ 354933965Sjdp#include <assert.h> 355060484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 355160484Sobrien/* We use char because int might match the return type of a gcc2 355260484Sobrien builtin and then its argument prototype would still apply. */ 355360484Sobrienchar $ac_func(); 355460484Sobrien 355560484Sobrienint main() { 355660484Sobrien 355760484Sobrien/* The GNU C library defines this for functions which it implements 355860484Sobrien to always fail with ENOSYS. Some functions are actually named 355960484Sobrien something starting with __ and the normal name is an alias. */ 356060484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 356160484Sobrienchoke me 356260484Sobrien#else 356360484Sobrien$ac_func(); 356460484Sobrien#endif 356560484Sobrien 356660484Sobrien; return 0; } 356733965SjdpEOF 356878828Sobrienif { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 356960484Sobrien rm -rf conftest* 357060484Sobrien eval "ac_cv_func_$ac_func=yes" 357160484Sobrienelse 357260484Sobrien echo "configure: failed program was:" >&5 357360484Sobrien cat conftest.$ac_ext >&5 357460484Sobrien rm -rf conftest* 357560484Sobrien eval "ac_cv_func_$ac_func=no" 357660484Sobrienfi 357760484Sobrienrm -f conftest* 357860484Sobrienfi 357960484Sobrien 358060484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 358160484Sobrien echo "$ac_t""yes" 1>&6 358260484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 358360484Sobrien cat >> confdefs.h <<EOF 358460484Sobrien#define $ac_tr_func 1 358560484SobrienEOF 358660484Sobrien 358760484Sobrienelse 358860484Sobrien echo "$ac_t""no" 1>&6 358960484Sobrienfi 359060484Sobriendone 359160484Sobrien 359260484Sobrien 359360484Sobrien if test "${ac_cv_func_stpcpy+set}" != "set"; then 359460484Sobrien for ac_func in stpcpy 359560484Sobriendo 359660484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 359778828Sobrienecho "configure:3598: checking for $ac_func" >&5 359860484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 359960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 360060484Sobrienelse 360160484Sobrien cat > conftest.$ac_ext <<EOF 360278828Sobrien#line 3603 "configure" 360360484Sobrien#include "confdefs.h" 360460484Sobrien/* System header to define __stub macros and hopefully few prototypes, 360560484Sobrien which can conflict with char $ac_func(); below. */ 360660484Sobrien#include <assert.h> 360760484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 360860484Sobrien/* We use char because int might match the return type of a gcc2 360960484Sobrien builtin and then its argument prototype would still apply. */ 361060484Sobrienchar $ac_func(); 361160484Sobrien 361260484Sobrienint main() { 361360484Sobrien 361460484Sobrien/* The GNU C library defines this for functions which it implements 361560484Sobrien to always fail with ENOSYS. Some functions are actually named 361660484Sobrien something starting with __ and the normal name is an alias. */ 361760484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 361860484Sobrienchoke me 361960484Sobrien#else 362060484Sobrien$ac_func(); 362160484Sobrien#endif 362260484Sobrien 362360484Sobrien; return 0; } 362460484SobrienEOF 362578828Sobrienif { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 362660484Sobrien rm -rf conftest* 362760484Sobrien eval "ac_cv_func_$ac_func=yes" 362860484Sobrienelse 362960484Sobrien echo "configure: failed program was:" >&5 363060484Sobrien cat conftest.$ac_ext >&5 363160484Sobrien rm -rf conftest* 363260484Sobrien eval "ac_cv_func_$ac_func=no" 363360484Sobrienfi 363460484Sobrienrm -f conftest* 363560484Sobrienfi 363660484Sobrien 363760484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 363860484Sobrien echo "$ac_t""yes" 1>&6 363960484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 364060484Sobrien cat >> confdefs.h <<EOF 364160484Sobrien#define $ac_tr_func 1 364260484SobrienEOF 364360484Sobrien 364460484Sobrienelse 364560484Sobrien echo "$ac_t""no" 1>&6 364660484Sobrienfi 364760484Sobriendone 364860484Sobrien 364960484Sobrien fi 365060484Sobrien if test "${ac_cv_func_stpcpy}" = "yes"; then 365160484Sobrien cat >> confdefs.h <<\EOF 365260484Sobrien#define HAVE_STPCPY 1 365360484SobrienEOF 365460484Sobrien 365560484Sobrien fi 365660484Sobrien 365760484Sobrien if test $ac_cv_header_locale_h = yes; then 365860484Sobrien echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 365978828Sobrienecho "configure:3660: checking for LC_MESSAGES" >&5 366060484Sobrienif eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then 366160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 366260484Sobrienelse 366360484Sobrien cat > conftest.$ac_ext <<EOF 366478828Sobrien#line 3665 "configure" 366560484Sobrien#include "confdefs.h" 366660484Sobrien#include <locale.h> 366760484Sobrienint main() { 366860484Sobrienreturn LC_MESSAGES 366960484Sobrien; return 0; } 367060484SobrienEOF 367178828Sobrienif { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 367260484Sobrien rm -rf conftest* 367360484Sobrien am_cv_val_LC_MESSAGES=yes 367460484Sobrienelse 367560484Sobrien echo "configure: failed program was:" >&5 367660484Sobrien cat conftest.$ac_ext >&5 367760484Sobrien rm -rf conftest* 367860484Sobrien am_cv_val_LC_MESSAGES=no 367960484Sobrienfi 368060484Sobrienrm -f conftest* 368160484Sobrienfi 368260484Sobrien 368360484Sobrienecho "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 368460484Sobrien if test $am_cv_val_LC_MESSAGES = yes; then 368560484Sobrien cat >> confdefs.h <<\EOF 368660484Sobrien#define HAVE_LC_MESSAGES 1 368760484SobrienEOF 368860484Sobrien 368960484Sobrien fi 369060484Sobrien fi 369160484Sobrien echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 369278828Sobrienecho "configure:3693: checking whether NLS is requested" >&5 369360484Sobrien # Check whether --enable-nls or --disable-nls was given. 369460484Sobrienif test "${enable_nls+set}" = set; then 369560484Sobrien enableval="$enable_nls" 369660484Sobrien USE_NLS=$enableval 369760484Sobrienelse 369860484Sobrien USE_NLS=yes 369960484Sobrienfi 370060484Sobrien 370160484Sobrien echo "$ac_t""$USE_NLS" 1>&6 370260484Sobrien 370360484Sobrien 370460484Sobrien USE_INCLUDED_LIBINTL=no 370560484Sobrien 370660484Sobrien if test "$USE_NLS" = "yes"; then 370760484Sobrien cat >> confdefs.h <<\EOF 370860484Sobrien#define ENABLE_NLS 1 370960484SobrienEOF 371060484Sobrien 371160484Sobrien echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 371278828Sobrienecho "configure:3713: checking whether included gettext is requested" >&5 371360484Sobrien # Check whether --with-included-gettext or --without-included-gettext was given. 371460484Sobrienif test "${with_included_gettext+set}" = set; then 371560484Sobrien withval="$with_included_gettext" 371660484Sobrien nls_cv_force_use_gnu_gettext=$withval 371760484Sobrienelse 371860484Sobrien nls_cv_force_use_gnu_gettext=no 371960484Sobrienfi 372060484Sobrien 372160484Sobrien echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 372260484Sobrien 372360484Sobrien nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 372460484Sobrien if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 372560484Sobrien nls_cv_header_intl= 372660484Sobrien nls_cv_header_libgt= 372760484Sobrien CATOBJEXT=NONE 372860484Sobrien 372960484Sobrien ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` 373060484Sobrienecho $ac_n "checking for libintl.h""... $ac_c" 1>&6 373178828Sobrienecho "configure:3732: checking for libintl.h" >&5 373260484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 373360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 373460484Sobrienelse 373560484Sobrien cat > conftest.$ac_ext <<EOF 373678828Sobrien#line 3737 "configure" 373760484Sobrien#include "confdefs.h" 373860484Sobrien#include <libintl.h> 373960484SobrienEOF 374033965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 374178828Sobrien{ (eval echo configure:3742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 374260484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 374333965Sjdpif test -z "$ac_err"; then 374460484Sobrien rm -rf conftest* 374560484Sobrien eval "ac_cv_header_$ac_safe=yes" 374633965Sjdpelse 374733965Sjdp echo "$ac_err" >&5 374833965Sjdp echo "configure: failed program was:" >&5 374933965Sjdp cat conftest.$ac_ext >&5 375033965Sjdp rm -rf conftest* 375160484Sobrien eval "ac_cv_header_$ac_safe=no" 375233965Sjdpfi 375333965Sjdprm -f conftest* 375433965Sjdpfi 375560484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 375660484Sobrien echo "$ac_t""yes" 1>&6 375760484Sobrien echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 375878828Sobrienecho "configure:3759: checking for gettext in libc" >&5 375960484Sobrienif eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then 376060484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 376160484Sobrienelse 376260484Sobrien cat > conftest.$ac_ext <<EOF 376378828Sobrien#line 3764 "configure" 376460484Sobrien#include "confdefs.h" 376560484Sobrien#include <libintl.h> 376660484Sobrienint main() { 376760484Sobrienreturn (int) gettext ("") 376860484Sobrien; return 0; } 376960484SobrienEOF 377078828Sobrienif { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 377160484Sobrien rm -rf conftest* 377260484Sobrien gt_cv_func_gettext_libc=yes 377360484Sobrienelse 377460484Sobrien echo "configure: failed program was:" >&5 377560484Sobrien cat conftest.$ac_ext >&5 377660484Sobrien rm -rf conftest* 377760484Sobrien gt_cv_func_gettext_libc=no 377860484Sobrienfi 377933965Sjdprm -f conftest* 378033965Sjdpfi 378160484Sobrien 378260484Sobrienecho "$ac_t""$gt_cv_func_gettext_libc" 1>&6 378360484Sobrien 378460484Sobrien if test "$gt_cv_func_gettext_libc" != "yes"; then 378560484Sobrien echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 378678828Sobrienecho "configure:3787: checking for bindtextdomain in -lintl" >&5 378760484Sobrienac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` 378860484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 378960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 379033965Sjdpelse 379160484Sobrien ac_save_LIBS="$LIBS" 379260484SobrienLIBS="-lintl $LIBS" 379360484Sobriencat > conftest.$ac_ext <<EOF 379478828Sobrien#line 3795 "configure" 379560484Sobrien#include "confdefs.h" 379660484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 379760484Sobrien/* We use char because int might match the return type of a gcc2 379860484Sobrien builtin and then its argument prototype would still apply. */ 379960484Sobrienchar bindtextdomain(); 380060484Sobrien 380160484Sobrienint main() { 380260484Sobrienbindtextdomain() 380360484Sobrien; return 0; } 380460484SobrienEOF 380578828Sobrienif { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 380660484Sobrien rm -rf conftest* 380760484Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 380860484Sobrienelse 380960484Sobrien echo "configure: failed program was:" >&5 381060484Sobrien cat conftest.$ac_ext >&5 381160484Sobrien rm -rf conftest* 381260484Sobrien eval "ac_cv_lib_$ac_lib_var=no" 381333965Sjdpfi 381460484Sobrienrm -f conftest* 381560484SobrienLIBS="$ac_save_LIBS" 381633965Sjdp 381760484Sobrienfi 381860484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 381960484Sobrien echo "$ac_t""yes" 1>&6 382060484Sobrien echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 382178828Sobrienecho "configure:3822: checking for gettext in libintl" >&5 382260484Sobrienif eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then 382360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 382460484Sobrienelse 382560484Sobrien cat > conftest.$ac_ext <<EOF 382678828Sobrien#line 3827 "configure" 382760484Sobrien#include "confdefs.h" 382860484Sobrien 382960484Sobrienint main() { 383060484Sobrienreturn (int) gettext ("") 383160484Sobrien; return 0; } 383260484SobrienEOF 383378828Sobrienif { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 383460484Sobrien rm -rf conftest* 383560484Sobrien gt_cv_func_gettext_libintl=yes 383660484Sobrienelse 383760484Sobrien echo "configure: failed program was:" >&5 383860484Sobrien cat conftest.$ac_ext >&5 383960484Sobrien rm -rf conftest* 384060484Sobrien gt_cv_func_gettext_libintl=no 384160484Sobrienfi 384260484Sobrienrm -f conftest* 384360484Sobrienfi 384460484Sobrien 384560484Sobrienecho "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 384660484Sobrienelse 384760484Sobrien echo "$ac_t""no" 1>&6 384860484Sobrienfi 384960484Sobrien 385060484Sobrien fi 385160484Sobrien 385260484Sobrien if test "$gt_cv_func_gettext_libc" = "yes" \ 385360484Sobrien || test "$gt_cv_func_gettext_libintl" = "yes"; then 385460484Sobrien cat >> confdefs.h <<\EOF 385560484Sobrien#define HAVE_GETTEXT 1 385660484SobrienEOF 385760484Sobrien 385860484Sobrien # Extract the first word of "msgfmt", so it can be a program name with args. 385960484Sobrienset dummy msgfmt; ac_word=$2 386060484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 386178828Sobrienecho "configure:3862: checking for $ac_word" >&5 386260484Sobrienif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 386360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 386460484Sobrienelse 386560484Sobrien case "$MSGFMT" in 386660484Sobrien /*) 386760484Sobrien ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 386860484Sobrien ;; 386960484Sobrien *) 387060484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 387160484Sobrien for ac_dir in $PATH; do 387260484Sobrien test -z "$ac_dir" && ac_dir=. 387360484Sobrien if test -f $ac_dir/$ac_word; then 387460484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 387560484Sobrien ac_cv_path_MSGFMT="$ac_dir/$ac_word" 387660484Sobrien break 387760484Sobrien fi 387860484Sobrien fi 387960484Sobrien done 388060484Sobrien IFS="$ac_save_ifs" 388160484Sobrien test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 388260484Sobrien ;; 388360484Sobrienesac 388460484Sobrienfi 388560484SobrienMSGFMT="$ac_cv_path_MSGFMT" 388660484Sobrienif test -n "$MSGFMT"; then 388760484Sobrien echo "$ac_t""$MSGFMT" 1>&6 388860484Sobrienelse 388960484Sobrien echo "$ac_t""no" 1>&6 389060484Sobrienfi 389160484Sobrien if test "$MSGFMT" != "no"; then 389260484Sobrien for ac_func in dcgettext 389360484Sobriendo 389460484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 389578828Sobrienecho "configure:3896: checking for $ac_func" >&5 389660484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 389760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 389860484Sobrienelse 389960484Sobrien cat > conftest.$ac_ext <<EOF 390078828Sobrien#line 3901 "configure" 390160484Sobrien#include "confdefs.h" 390260484Sobrien/* System header to define __stub macros and hopefully few prototypes, 390360484Sobrien which can conflict with char $ac_func(); below. */ 390460484Sobrien#include <assert.h> 390560484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 390660484Sobrien/* We use char because int might match the return type of a gcc2 390760484Sobrien builtin and then its argument prototype would still apply. */ 390860484Sobrienchar $ac_func(); 390960484Sobrien 391060484Sobrienint main() { 391160484Sobrien 391260484Sobrien/* The GNU C library defines this for functions which it implements 391360484Sobrien to always fail with ENOSYS. Some functions are actually named 391460484Sobrien something starting with __ and the normal name is an alias. */ 391560484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 391660484Sobrienchoke me 391760484Sobrien#else 391860484Sobrien$ac_func(); 391960484Sobrien#endif 392060484Sobrien 392160484Sobrien; return 0; } 392260484SobrienEOF 392378828Sobrienif { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 392460484Sobrien rm -rf conftest* 392560484Sobrien eval "ac_cv_func_$ac_func=yes" 392660484Sobrienelse 392760484Sobrien echo "configure: failed program was:" >&5 392860484Sobrien cat conftest.$ac_ext >&5 392960484Sobrien rm -rf conftest* 393060484Sobrien eval "ac_cv_func_$ac_func=no" 393160484Sobrienfi 393260484Sobrienrm -f conftest* 393360484Sobrienfi 393460484Sobrien 393560484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 393660484Sobrien echo "$ac_t""yes" 1>&6 393760484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 393860484Sobrien cat >> confdefs.h <<EOF 393960484Sobrien#define $ac_tr_func 1 394060484SobrienEOF 394160484Sobrien 394260484Sobrienelse 394360484Sobrien echo "$ac_t""no" 1>&6 394460484Sobrienfi 394560484Sobriendone 394660484Sobrien 394760484Sobrien # Extract the first word of "gmsgfmt", so it can be a program name with args. 394860484Sobrienset dummy gmsgfmt; ac_word=$2 394960484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 395078828Sobrienecho "configure:3951: checking for $ac_word" >&5 395160484Sobrienif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 395260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 395360484Sobrienelse 395460484Sobrien case "$GMSGFMT" in 395560484Sobrien /*) 395660484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 395760484Sobrien ;; 395860484Sobrien ?:/*) 395960484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 396060484Sobrien ;; 396160484Sobrien *) 396260484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 396360484Sobrien ac_dummy="$PATH" 396460484Sobrien for ac_dir in $ac_dummy; do 396560484Sobrien test -z "$ac_dir" && ac_dir=. 396660484Sobrien if test -f $ac_dir/$ac_word; then 396760484Sobrien ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 396860484Sobrien break 396960484Sobrien fi 397060484Sobrien done 397160484Sobrien IFS="$ac_save_ifs" 397260484Sobrien test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 397360484Sobrien ;; 397460484Sobrienesac 397560484Sobrienfi 397660484SobrienGMSGFMT="$ac_cv_path_GMSGFMT" 397760484Sobrienif test -n "$GMSGFMT"; then 397860484Sobrien echo "$ac_t""$GMSGFMT" 1>&6 397960484Sobrienelse 398060484Sobrien echo "$ac_t""no" 1>&6 398160484Sobrienfi 398260484Sobrien 398360484Sobrien # Extract the first word of "xgettext", so it can be a program name with args. 398460484Sobrienset dummy xgettext; ac_word=$2 398560484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 398678828Sobrienecho "configure:3987: checking for $ac_word" >&5 398760484Sobrienif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 398860484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 398960484Sobrienelse 399060484Sobrien case "$XGETTEXT" in 399160484Sobrien /*) 399260484Sobrien ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 399360484Sobrien ;; 399460484Sobrien *) 399560484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 399660484Sobrien for ac_dir in $PATH; do 399760484Sobrien test -z "$ac_dir" && ac_dir=. 399860484Sobrien if test -f $ac_dir/$ac_word; then 399960484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 400060484Sobrien ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 400160484Sobrien break 400260484Sobrien fi 400360484Sobrien fi 400460484Sobrien done 400560484Sobrien IFS="$ac_save_ifs" 400660484Sobrien test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 400760484Sobrien ;; 400860484Sobrienesac 400960484Sobrienfi 401060484SobrienXGETTEXT="$ac_cv_path_XGETTEXT" 401160484Sobrienif test -n "$XGETTEXT"; then 401260484Sobrien echo "$ac_t""$XGETTEXT" 1>&6 401360484Sobrienelse 401460484Sobrien echo "$ac_t""no" 1>&6 401560484Sobrienfi 401660484Sobrien 401760484Sobrien cat > conftest.$ac_ext <<EOF 401878828Sobrien#line 4019 "configure" 401960484Sobrien#include "confdefs.h" 402060484Sobrien 402160484Sobrienint main() { 402260484Sobrienextern int _nl_msg_cat_cntr; 402360484Sobrien return _nl_msg_cat_cntr 402460484Sobrien; return 0; } 402560484SobrienEOF 402678828Sobrienif { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 402760484Sobrien rm -rf conftest* 402860484Sobrien CATOBJEXT=.gmo 402960484Sobrien DATADIRNAME=share 403060484Sobrienelse 403160484Sobrien echo "configure: failed program was:" >&5 403260484Sobrien cat conftest.$ac_ext >&5 403360484Sobrien rm -rf conftest* 403460484Sobrien CATOBJEXT=.mo 403560484Sobrien DATADIRNAME=lib 403660484Sobrienfi 403760484Sobrienrm -f conftest* 403860484Sobrien INSTOBJEXT=.mo 403960484Sobrien fi 404060484Sobrien fi 404160484Sobrien 404260484Sobrienelse 404360484Sobrien echo "$ac_t""no" 1>&6 404460484Sobrienfi 404560484Sobrien 404660484Sobrien 404760484Sobrien 404860484Sobrien if test "$CATOBJEXT" = "NONE"; then 404960484Sobrien nls_cv_use_gnu_gettext=yes 405060484Sobrien fi 405160484Sobrien fi 405260484Sobrien 405360484Sobrien if test "$nls_cv_use_gnu_gettext" = "yes"; then 405460484Sobrien INTLOBJS="\$(GETTOBJS)" 405560484Sobrien # Extract the first word of "msgfmt", so it can be a program name with args. 405660484Sobrienset dummy msgfmt; ac_word=$2 405760484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 405878828Sobrienecho "configure:4059: checking for $ac_word" >&5 405960484Sobrienif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 406060484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 406160484Sobrienelse 406260484Sobrien case "$MSGFMT" in 406360484Sobrien /*) 406460484Sobrien ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 406560484Sobrien ;; 406660484Sobrien *) 406760484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 406860484Sobrien for ac_dir in $PATH; do 406960484Sobrien test -z "$ac_dir" && ac_dir=. 407060484Sobrien if test -f $ac_dir/$ac_word; then 407160484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 407260484Sobrien ac_cv_path_MSGFMT="$ac_dir/$ac_word" 407360484Sobrien break 407460484Sobrien fi 407560484Sobrien fi 407660484Sobrien done 407760484Sobrien IFS="$ac_save_ifs" 407860484Sobrien test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 407960484Sobrien ;; 408060484Sobrienesac 408160484Sobrienfi 408260484SobrienMSGFMT="$ac_cv_path_MSGFMT" 408360484Sobrienif test -n "$MSGFMT"; then 408460484Sobrien echo "$ac_t""$MSGFMT" 1>&6 408560484Sobrienelse 408660484Sobrien echo "$ac_t""no" 1>&6 408760484Sobrienfi 408860484Sobrien 408960484Sobrien # Extract the first word of "gmsgfmt", so it can be a program name with args. 409060484Sobrienset dummy gmsgfmt; ac_word=$2 409160484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 409278828Sobrienecho "configure:4093: checking for $ac_word" >&5 409360484Sobrienif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 409460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 409560484Sobrienelse 409660484Sobrien case "$GMSGFMT" in 409760484Sobrien /*) 409860484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 409960484Sobrien ;; 410060484Sobrien ?:/*) 410160484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 410260484Sobrien ;; 410360484Sobrien *) 410460484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 410560484Sobrien ac_dummy="$PATH" 410660484Sobrien for ac_dir in $ac_dummy; do 410760484Sobrien test -z "$ac_dir" && ac_dir=. 410860484Sobrien if test -f $ac_dir/$ac_word; then 410960484Sobrien ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 411060484Sobrien break 411160484Sobrien fi 411260484Sobrien done 411360484Sobrien IFS="$ac_save_ifs" 411460484Sobrien test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 411560484Sobrien ;; 411660484Sobrienesac 411760484Sobrienfi 411860484SobrienGMSGFMT="$ac_cv_path_GMSGFMT" 411960484Sobrienif test -n "$GMSGFMT"; then 412060484Sobrien echo "$ac_t""$GMSGFMT" 1>&6 412160484Sobrienelse 412260484Sobrien echo "$ac_t""no" 1>&6 412360484Sobrienfi 412460484Sobrien 412560484Sobrien # Extract the first word of "xgettext", so it can be a program name with args. 412660484Sobrienset dummy xgettext; ac_word=$2 412760484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 412878828Sobrienecho "configure:4129: checking for $ac_word" >&5 412960484Sobrienif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 413060484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 413160484Sobrienelse 413260484Sobrien case "$XGETTEXT" in 413360484Sobrien /*) 413460484Sobrien ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 413560484Sobrien ;; 413660484Sobrien *) 413760484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 413860484Sobrien for ac_dir in $PATH; do 413960484Sobrien test -z "$ac_dir" && ac_dir=. 414060484Sobrien if test -f $ac_dir/$ac_word; then 414160484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 414260484Sobrien ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 414360484Sobrien break 414460484Sobrien fi 414560484Sobrien fi 414660484Sobrien done 414760484Sobrien IFS="$ac_save_ifs" 414860484Sobrien test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 414960484Sobrien ;; 415060484Sobrienesac 415160484Sobrienfi 415260484SobrienXGETTEXT="$ac_cv_path_XGETTEXT" 415360484Sobrienif test -n "$XGETTEXT"; then 415460484Sobrien echo "$ac_t""$XGETTEXT" 1>&6 415560484Sobrienelse 415660484Sobrien echo "$ac_t""no" 1>&6 415760484Sobrienfi 415860484Sobrien 415960484Sobrien 416060484Sobrien USE_INCLUDED_LIBINTL=yes 416160484Sobrien CATOBJEXT=.gmo 416260484Sobrien INSTOBJEXT=.mo 416360484Sobrien DATADIRNAME=share 416460484Sobrien INTLDEPS='$(top_builddir)/../intl/libintl.a' 416560484Sobrien INTLLIBS=$INTLDEPS 416660484Sobrien LIBS=`echo $LIBS | sed -e 's/-lintl//'` 416760484Sobrien nls_cv_header_intl=libintl.h 416860484Sobrien nls_cv_header_libgt=libgettext.h 416960484Sobrien fi 417060484Sobrien 417160484Sobrien if test "$XGETTEXT" != ":"; then 417260484Sobrien if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 417360484Sobrien : ; 417460484Sobrien else 417560484Sobrien echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 417660484Sobrien XGETTEXT=":" 417760484Sobrien fi 417860484Sobrien fi 417960484Sobrien 418060484Sobrien # We need to process the po/ directory. 418160484Sobrien POSUB=po 418260484Sobrien else 418360484Sobrien DATADIRNAME=share 418460484Sobrien nls_cv_header_intl=libintl.h 418560484Sobrien nls_cv_header_libgt=libgettext.h 418660484Sobrien fi 418760484Sobrien 418860484Sobrien # If this is used in GNU gettext we have to set USE_NLS to `yes' 418960484Sobrien # because some of the sources are only built for this goal. 419060484Sobrien if test "$PACKAGE" = gettext; then 419160484Sobrien USE_NLS=yes 419260484Sobrien USE_INCLUDED_LIBINTL=yes 419360484Sobrien fi 419460484Sobrien 419560484Sobrien for lang in $ALL_LINGUAS; do 419660484Sobrien GMOFILES="$GMOFILES $lang.gmo" 419760484Sobrien POFILES="$POFILES $lang.po" 419860484Sobrien done 419960484Sobrien 420060484Sobrien 420160484Sobrien 420260484Sobrien 420360484Sobrien 420460484Sobrien 420560484Sobrien 420660484Sobrien 420760484Sobrien 420860484Sobrien 420960484Sobrien 421060484Sobrien 421160484Sobrien 421260484Sobrien 421360484Sobrien if test "x$CATOBJEXT" != "x"; then 421460484Sobrien if test "x$ALL_LINGUAS" = "x"; then 421560484Sobrien LINGUAS= 421660484Sobrien else 421760484Sobrien echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 421878828Sobrienecho "configure:4219: checking for catalogs to be installed" >&5 421960484Sobrien NEW_LINGUAS= 422060484Sobrien for lang in ${LINGUAS=$ALL_LINGUAS}; do 422160484Sobrien case "$ALL_LINGUAS" in 422260484Sobrien *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 422360484Sobrien esac 422460484Sobrien done 422560484Sobrien LINGUAS=$NEW_LINGUAS 422660484Sobrien echo "$ac_t""$LINGUAS" 1>&6 422760484Sobrien fi 422860484Sobrien 422960484Sobrien if test -n "$LINGUAS"; then 423060484Sobrien for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 423160484Sobrien fi 423260484Sobrien fi 423360484Sobrien 423460484Sobrien if test $ac_cv_header_locale_h = yes; then 423560484Sobrien INCLUDE_LOCALE_H="#include <locale.h>" 423660484Sobrien else 423760484Sobrien INCLUDE_LOCALE_H="\ 423860484Sobrien/* The system does not provide the header <locale.h>. Take care yourself. */" 423960484Sobrien fi 424060484Sobrien 424160484Sobrien 424260484Sobrien if test -f $srcdir/po2tbl.sed.in; then 424360484Sobrien if test "$CATOBJEXT" = ".cat"; then 424460484Sobrien ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` 424560484Sobrienecho $ac_n "checking for linux/version.h""... $ac_c" 1>&6 424678828Sobrienecho "configure:4247: checking for linux/version.h" >&5 424760484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 424860484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 424960484Sobrienelse 425060484Sobrien cat > conftest.$ac_ext <<EOF 425178828Sobrien#line 4252 "configure" 425260484Sobrien#include "confdefs.h" 425360484Sobrien#include <linux/version.h> 425460484SobrienEOF 425560484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 425678828Sobrien{ (eval echo configure:4257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 425760484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 425860484Sobrienif test -z "$ac_err"; then 425960484Sobrien rm -rf conftest* 426060484Sobrien eval "ac_cv_header_$ac_safe=yes" 426160484Sobrienelse 426260484Sobrien echo "$ac_err" >&5 426360484Sobrien echo "configure: failed program was:" >&5 426460484Sobrien cat conftest.$ac_ext >&5 426560484Sobrien rm -rf conftest* 426660484Sobrien eval "ac_cv_header_$ac_safe=no" 426760484Sobrienfi 426860484Sobrienrm -f conftest* 426960484Sobrienfi 427060484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 427160484Sobrien echo "$ac_t""yes" 1>&6 427260484Sobrien msgformat=linux 427360484Sobrienelse 427460484Sobrien echo "$ac_t""no" 1>&6 427560484Sobrienmsgformat=xopen 427660484Sobrienfi 427760484Sobrien 427860484Sobrien 427960484Sobrien sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed 428060484Sobrien fi 428160484Sobrien sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 428260484Sobrien $srcdir/po2tbl.sed.in > po2tbl.sed 428360484Sobrien fi 428460484Sobrien 428560484Sobrien if test "$PACKAGE" = "gettext"; then 428660484Sobrien GT_NO="#NO#" 428760484Sobrien GT_YES= 428860484Sobrien else 428960484Sobrien GT_NO= 429060484Sobrien GT_YES="#YES#" 429160484Sobrien fi 429260484Sobrien 429360484Sobrien 429460484Sobrien 429560484Sobrien MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" 429660484Sobrien 429760484Sobrien 429860484Sobrien l= 429960484Sobrien 430060484Sobrien 430160484Sobrien if test -d $srcdir/po; then 430260484Sobrien test -d po || mkdir po 430360484Sobrien if test "x$srcdir" != "x."; then 430460484Sobrien if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 430560484Sobrien posrcprefix="$srcdir/" 430660484Sobrien else 430760484Sobrien posrcprefix="../$srcdir/" 430860484Sobrien fi 430960484Sobrien else 431060484Sobrien posrcprefix="../" 431160484Sobrien fi 431260484Sobrien rm -f po/POTFILES 431360484Sobrien sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 431460484Sobrien < $srcdir/po/POTFILES.in > po/POTFILES 431560484Sobrien fi 431660484Sobrien 431760484Sobrien 431860484Sobrien# Permit host specific settings. 431960484Sobrien. ${srcdir}/configure.host 432060484Sobrien 432160484Sobrien 432260484Sobrien# Find a good install program. We prefer a C program (faster), 432360484Sobrien# so one script is as good as another. But avoid the broken or 432460484Sobrien# incompatible versions: 432560484Sobrien# SysV /etc/install, /usr/sbin/install 432660484Sobrien# SunOS /usr/etc/install 432760484Sobrien# IRIX /sbin/install 432860484Sobrien# AIX /bin/install 432960484Sobrien# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 433060484Sobrien# AFS /usr/afsws/bin/install, which mishandles nonexistent args 433160484Sobrien# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 433260484Sobrien# ./install, which can be erroneously created by make from ./install.sh. 433360484Sobrienecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 433478828Sobrienecho "configure:4335: checking for a BSD compatible install" >&5 433560484Sobrienif test -z "$INSTALL"; then 433660484Sobrienif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 433760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 433860484Sobrienelse 433960484Sobrien IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 434060484Sobrien for ac_dir in $PATH; do 434160484Sobrien # Account for people who put trailing slashes in PATH elements. 434260484Sobrien case "$ac_dir/" in 434360484Sobrien /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 434460484Sobrien *) 434560484Sobrien # OSF1 and SCO ODT 3.0 have their own names for install. 434660484Sobrien # Don't use installbsd from OSF since it installs stuff as root 434760484Sobrien # by default. 434860484Sobrien for ac_prog in ginstall scoinst install; do 434960484Sobrien if test -f $ac_dir/$ac_prog; then 435060484Sobrien if test $ac_prog = install && 435160484Sobrien grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 435260484Sobrien # AIX install. It has an incompatible calling convention. 435360484Sobrien : 435460484Sobrien else 435560484Sobrien ac_cv_path_install="$ac_dir/$ac_prog -c" 435660484Sobrien break 2 435760484Sobrien fi 435860484Sobrien fi 435960484Sobrien done 436060484Sobrien ;; 436160484Sobrien esac 436260484Sobrien done 436360484Sobrien IFS="$ac_save_IFS" 436460484Sobrien 436560484Sobrienfi 436660484Sobrien if test "${ac_cv_path_install+set}" = set; then 436760484Sobrien INSTALL="$ac_cv_path_install" 436860484Sobrien else 436960484Sobrien # As a last resort, use the slow shell script. We don't cache a 437060484Sobrien # path for INSTALL within a source directory, because that will 437160484Sobrien # break other packages using the cache if that directory is 437260484Sobrien # removed, or if the path is relative. 437360484Sobrien INSTALL="$ac_install_sh" 437460484Sobrien fi 437560484Sobrienfi 437660484Sobrienecho "$ac_t""$INSTALL" 1>&6 437760484Sobrien 437860484Sobrien# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 437960484Sobrien# It thinks the first close brace ends the variable substitution. 438060484Sobrientest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 438160484Sobrien 438260484Sobrientest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 438360484Sobrien 438460484Sobrientest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 438560484Sobrien 438660484Sobrien 438760484SobrienBFD_HOST_64BIT_LONG=0 438860484SobrienBFD_HOST_64_BIT_DEFINED=0 438960484SobrienBFD_HOST_64_BIT= 439060484SobrienBFD_HOST_U_64_BIT= 439160484Sobrienif test "x${HOST_64BIT_TYPE}" = "xlong"; then 439260484Sobrien BFD_HOST_64BIT_LONG=1 439360484Sobrienelif test "x${HOST_64BIT_TYPE}" != "x"; then 439460484Sobrien BFD_HOST_64_BIT_DEFINED=1 439560484Sobrien BFD_HOST_64_BIT=${HOST_64BIT_TYPE} 439660484Sobrien BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE} 439760484Sobrienfi 439860484Sobrien 439960484Sobrien 440060484Sobrien 440160484Sobrien 440260484Sobrien 440360484Sobrien# Put a plausible default for CC_FOR_BUILD in Makefile. 440460484Sobrienif test -z "$CC_FOR_BUILD"; then 440560484Sobrien if test "x$cross_compiling" = "xno"; then 440660484Sobrien CC_FOR_BUILD='$(CC)' 440760484Sobrien else 440860484Sobrien CC_FOR_BUILD=gcc 440960484Sobrien fi 441060484Sobrienfi 441160484Sobrien 441260484Sobrien# Also set EXEEXT_FOR_BUILD. 441360484Sobrienif test "x$cross_compiling" = "xno"; then 441460484Sobrien EXEEXT_FOR_BUILD='$(EXEEXT)' 441560484Sobrienelse 441660484Sobrien echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6 441778828Sobrienecho "configure:4418: checking for build system executable suffix" >&5 441860484Sobrienif eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then 441960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 442060484Sobrienelse 442160484Sobrien rm -f conftest* 442260484Sobrien echo 'int main () { return 0; }' > conftest.c 442360484Sobrien bfd_cv_build_exeext= 442460484Sobrien ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 442560484Sobrien for file in conftest.*; do 442660484Sobrien case $file in 442760484Sobrien *.c | *.o | *.obj | *.ilk | *.pdb) ;; 442860484Sobrien *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 442960484Sobrien esac 443060484Sobrien done 443160484Sobrien rm -f conftest* 443260484Sobrien test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 443360484Sobrienfi 443460484Sobrien 443560484Sobrienecho "$ac_t""$bfd_cv_build_exeext" 1>&6 443660484Sobrien EXEEXT_FOR_BUILD="" 443760484Sobrien test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 443860484Sobrienfi 443960484Sobrien 444060484Sobrien 444133965Sjdpfor ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h 444233965Sjdpdo 444333965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 444433965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 444578828Sobrienecho "configure:4446: checking for $ac_hdr" >&5 444633965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 444733965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 444833965Sjdpelse 444933965Sjdp cat > conftest.$ac_ext <<EOF 445078828Sobrien#line 4451 "configure" 445133965Sjdp#include "confdefs.h" 445233965Sjdp#include <$ac_hdr> 445333965SjdpEOF 445433965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 445578828Sobrien{ (eval echo configure:4456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 445660484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 445733965Sjdpif test -z "$ac_err"; then 445833965Sjdp rm -rf conftest* 445933965Sjdp eval "ac_cv_header_$ac_safe=yes" 446033965Sjdpelse 446133965Sjdp echo "$ac_err" >&5 446233965Sjdp echo "configure: failed program was:" >&5 446333965Sjdp cat conftest.$ac_ext >&5 446433965Sjdp rm -rf conftest* 446533965Sjdp eval "ac_cv_header_$ac_safe=no" 446633965Sjdpfi 446733965Sjdprm -f conftest* 446833965Sjdpfi 446933965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 447033965Sjdp echo "$ac_t""yes" 1>&6 447133965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 447233965Sjdp cat >> confdefs.h <<EOF 447333965Sjdp#define $ac_tr_hdr 1 447433965SjdpEOF 447533965Sjdp 447633965Sjdpelse 447733965Sjdp echo "$ac_t""no" 1>&6 447833965Sjdpfi 447933965Sjdpdone 448033965Sjdp 448133965Sjdpfor ac_hdr in fcntl.h sys/file.h sys/time.h 448233965Sjdpdo 448333965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 448433965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 448578828Sobrienecho "configure:4486: checking for $ac_hdr" >&5 448633965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 448733965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 448833965Sjdpelse 448933965Sjdp cat > conftest.$ac_ext <<EOF 449078828Sobrien#line 4491 "configure" 449133965Sjdp#include "confdefs.h" 449233965Sjdp#include <$ac_hdr> 449333965SjdpEOF 449433965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 449578828Sobrien{ (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 449660484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 449733965Sjdpif test -z "$ac_err"; then 449833965Sjdp rm -rf conftest* 449933965Sjdp eval "ac_cv_header_$ac_safe=yes" 450033965Sjdpelse 450133965Sjdp echo "$ac_err" >&5 450233965Sjdp echo "configure: failed program was:" >&5 450333965Sjdp cat conftest.$ac_ext >&5 450433965Sjdp rm -rf conftest* 450533965Sjdp eval "ac_cv_header_$ac_safe=no" 450633965Sjdpfi 450733965Sjdprm -f conftest* 450833965Sjdpfi 450933965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 451033965Sjdp echo "$ac_t""yes" 1>&6 451133965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 451233965Sjdp cat >> confdefs.h <<EOF 451333965Sjdp#define $ac_tr_hdr 1 451433965SjdpEOF 451533965Sjdp 451633965Sjdpelse 451733965Sjdp echo "$ac_t""no" 1>&6 451833965Sjdpfi 451933965Sjdpdone 452033965Sjdp 452133965Sjdpecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 452278828Sobrienecho "configure:4523: checking whether time.h and sys/time.h may both be included" >&5 452333965Sjdpif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 452433965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 452533965Sjdpelse 452633965Sjdp cat > conftest.$ac_ext <<EOF 452778828Sobrien#line 4528 "configure" 452833965Sjdp#include "confdefs.h" 452933965Sjdp#include <sys/types.h> 453033965Sjdp#include <sys/time.h> 453133965Sjdp#include <time.h> 453233965Sjdpint main() { 453333965Sjdpstruct tm *tp; 453433965Sjdp; return 0; } 453533965SjdpEOF 453678828Sobrienif { (eval echo configure:4537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 453733965Sjdp rm -rf conftest* 453833965Sjdp ac_cv_header_time=yes 453933965Sjdpelse 454033965Sjdp echo "configure: failed program was:" >&5 454133965Sjdp cat conftest.$ac_ext >&5 454233965Sjdp rm -rf conftest* 454333965Sjdp ac_cv_header_time=no 454433965Sjdpfi 454533965Sjdprm -f conftest* 454633965Sjdpfi 454733965Sjdp 454833965Sjdpecho "$ac_t""$ac_cv_header_time" 1>&6 454933965Sjdpif test $ac_cv_header_time = yes; then 455033965Sjdp cat >> confdefs.h <<\EOF 455133965Sjdp#define TIME_WITH_SYS_TIME 1 455233965SjdpEOF 455333965Sjdp 455433965Sjdpfi 455533965Sjdp 455660484Sobrienac_header_dirent=no 455760484Sobrienfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 455833965Sjdpdo 455960484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 456060484Sobrienecho $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 456178828Sobrienecho "configure:4562: checking for $ac_hdr that defines DIR" >&5 456260484Sobrienif eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 456360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 456460484Sobrienelse 456560484Sobrien cat > conftest.$ac_ext <<EOF 456678828Sobrien#line 4567 "configure" 456760484Sobrien#include "confdefs.h" 456860484Sobrien#include <sys/types.h> 456960484Sobrien#include <$ac_hdr> 457060484Sobrienint main() { 457160484SobrienDIR *dirp = 0; 457260484Sobrien; return 0; } 457360484SobrienEOF 457478828Sobrienif { (eval echo configure:4575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 457560484Sobrien rm -rf conftest* 457660484Sobrien eval "ac_cv_header_dirent_$ac_safe=yes" 457760484Sobrienelse 457860484Sobrien echo "configure: failed program was:" >&5 457960484Sobrien cat conftest.$ac_ext >&5 458060484Sobrien rm -rf conftest* 458160484Sobrien eval "ac_cv_header_dirent_$ac_safe=no" 458260484Sobrienfi 458360484Sobrienrm -f conftest* 458460484Sobrienfi 458560484Sobrienif eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 458660484Sobrien echo "$ac_t""yes" 1>&6 458760484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 458860484Sobrien cat >> confdefs.h <<EOF 458960484Sobrien#define $ac_tr_hdr 1 459060484SobrienEOF 459160484Sobrien ac_header_dirent=$ac_hdr; break 459260484Sobrienelse 459360484Sobrien echo "$ac_t""no" 1>&6 459460484Sobrienfi 459560484Sobriendone 459660484Sobrien# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 459760484Sobrienif test $ac_header_dirent = dirent.h; then 459860484Sobrienecho $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 459978828Sobrienecho "configure:4600: checking for opendir in -ldir" >&5 460060484Sobrienac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 460160484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 460260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 460360484Sobrienelse 460460484Sobrien ac_save_LIBS="$LIBS" 460560484SobrienLIBS="-ldir $LIBS" 460660484Sobriencat > conftest.$ac_ext <<EOF 460778828Sobrien#line 4608 "configure" 460860484Sobrien#include "confdefs.h" 460960484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 461060484Sobrien/* We use char because int might match the return type of a gcc2 461160484Sobrien builtin and then its argument prototype would still apply. */ 461260484Sobrienchar opendir(); 461360484Sobrien 461460484Sobrienint main() { 461560484Sobrienopendir() 461660484Sobrien; return 0; } 461760484SobrienEOF 461878828Sobrienif { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 461960484Sobrien rm -rf conftest* 462060484Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 462160484Sobrienelse 462260484Sobrien echo "configure: failed program was:" >&5 462360484Sobrien cat conftest.$ac_ext >&5 462460484Sobrien rm -rf conftest* 462560484Sobrien eval "ac_cv_lib_$ac_lib_var=no" 462660484Sobrienfi 462760484Sobrienrm -f conftest* 462860484SobrienLIBS="$ac_save_LIBS" 462960484Sobrien 463060484Sobrienfi 463160484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 463260484Sobrien echo "$ac_t""yes" 1>&6 463360484Sobrien LIBS="$LIBS -ldir" 463460484Sobrienelse 463560484Sobrien echo "$ac_t""no" 1>&6 463660484Sobrienfi 463760484Sobrien 463860484Sobrienelse 463960484Sobrienecho $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 464078828Sobrienecho "configure:4641: checking for opendir in -lx" >&5 464160484Sobrienac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 464260484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 464360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 464460484Sobrienelse 464560484Sobrien ac_save_LIBS="$LIBS" 464660484SobrienLIBS="-lx $LIBS" 464760484Sobriencat > conftest.$ac_ext <<EOF 464878828Sobrien#line 4649 "configure" 464960484Sobrien#include "confdefs.h" 465060484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 465160484Sobrien/* We use char because int might match the return type of a gcc2 465260484Sobrien builtin and then its argument prototype would still apply. */ 465360484Sobrienchar opendir(); 465460484Sobrien 465560484Sobrienint main() { 465660484Sobrienopendir() 465760484Sobrien; return 0; } 465860484SobrienEOF 465978828Sobrienif { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 466060484Sobrien rm -rf conftest* 466160484Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 466260484Sobrienelse 466360484Sobrien echo "configure: failed program was:" >&5 466460484Sobrien cat conftest.$ac_ext >&5 466560484Sobrien rm -rf conftest* 466660484Sobrien eval "ac_cv_lib_$ac_lib_var=no" 466760484Sobrienfi 466860484Sobrienrm -f conftest* 466960484SobrienLIBS="$ac_save_LIBS" 467060484Sobrien 467160484Sobrienfi 467260484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 467360484Sobrien echo "$ac_t""yes" 1>&6 467460484Sobrien LIBS="$LIBS -lx" 467560484Sobrienelse 467660484Sobrien echo "$ac_t""no" 1>&6 467760484Sobrienfi 467860484Sobrien 467960484Sobrienfi 468060484Sobrien 468160484Sobrienfor ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid 468260484Sobriendo 468333965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 468478828Sobrienecho "configure:4685: checking for $ac_func" >&5 468533965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 468633965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 468733965Sjdpelse 468833965Sjdp cat > conftest.$ac_ext <<EOF 468978828Sobrien#line 4690 "configure" 469033965Sjdp#include "confdefs.h" 469133965Sjdp/* System header to define __stub macros and hopefully few prototypes, 469233965Sjdp which can conflict with char $ac_func(); below. */ 469333965Sjdp#include <assert.h> 469433965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 469533965Sjdp/* We use char because int might match the return type of a gcc2 469633965Sjdp builtin and then its argument prototype would still apply. */ 469733965Sjdpchar $ac_func(); 469833965Sjdp 469933965Sjdpint main() { 470033965Sjdp 470133965Sjdp/* The GNU C library defines this for functions which it implements 470233965Sjdp to always fail with ENOSYS. Some functions are actually named 470333965Sjdp something starting with __ and the normal name is an alias. */ 470433965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 470533965Sjdpchoke me 470633965Sjdp#else 470733965Sjdp$ac_func(); 470833965Sjdp#endif 470933965Sjdp 471033965Sjdp; return 0; } 471133965SjdpEOF 471278828Sobrienif { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 471333965Sjdp rm -rf conftest* 471433965Sjdp eval "ac_cv_func_$ac_func=yes" 471533965Sjdpelse 471633965Sjdp echo "configure: failed program was:" >&5 471733965Sjdp cat conftest.$ac_ext >&5 471833965Sjdp rm -rf conftest* 471933965Sjdp eval "ac_cv_func_$ac_func=no" 472033965Sjdpfi 472133965Sjdprm -f conftest* 472233965Sjdpfi 472333965Sjdp 472433965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 472533965Sjdp echo "$ac_t""yes" 1>&6 472633965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 472733965Sjdp cat >> confdefs.h <<EOF 472833965Sjdp#define $ac_tr_func 1 472933965SjdpEOF 473033965Sjdp 473133965Sjdpelse 473233965Sjdp echo "$ac_t""no" 1>&6 473333965Sjdpfi 473433965Sjdpdone 473533965Sjdp 473633965Sjdp 473733965Sjdp 473833965Sjdpcase "${host}" in 473960484Sobrien*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 474033965Sjdp cat >> confdefs.h <<\EOF 474133965Sjdp#define USE_BINARY_FOPEN 1 474233965SjdpEOF 474333965Sjdp ;; 474433965Sjdpesac 474533965Sjdp 474633965Sjdpecho $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 474778828Sobrienecho "configure:4748: checking whether strstr must be declared" >&5 474833965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then 474933965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 475033965Sjdpelse 475133965Sjdp cat > conftest.$ac_ext <<EOF 475278828Sobrien#line 4753 "configure" 475333965Sjdp#include "confdefs.h" 475433965Sjdp 475533965Sjdp#include <stdio.h> 475633965Sjdp#ifdef HAVE_STRING_H 475733965Sjdp#include <string.h> 475833965Sjdp#else 475933965Sjdp#ifdef HAVE_STRINGS_H 476033965Sjdp#include <strings.h> 476133965Sjdp#endif 476233965Sjdp#endif 476333965Sjdp#ifdef HAVE_STDLIB_H 476433965Sjdp#include <stdlib.h> 476533965Sjdp#endif 476633965Sjdp#ifdef HAVE_UNISTD_H 476733965Sjdp#include <unistd.h> 476833965Sjdp#endif 476933965Sjdpint main() { 477033965Sjdpchar *(*pfn) = (char *(*)) strstr 477133965Sjdp; return 0; } 477233965SjdpEOF 477378828Sobrienif { (eval echo configure:4774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 477433965Sjdp rm -rf conftest* 477533965Sjdp bfd_cv_decl_needed_strstr=no 477633965Sjdpelse 477733965Sjdp echo "configure: failed program was:" >&5 477833965Sjdp cat conftest.$ac_ext >&5 477933965Sjdp rm -rf conftest* 478033965Sjdp bfd_cv_decl_needed_strstr=yes 478133965Sjdpfi 478233965Sjdprm -f conftest* 478333965Sjdpfi 478433965Sjdp 478533965Sjdpecho "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6 478633965Sjdpif test $bfd_cv_decl_needed_strstr = yes; then 478760484Sobrien cat >> confdefs.h <<\EOF 478860484Sobrien#define NEED_DECLARATION_STRSTR 1 478933965SjdpEOF 479033965Sjdp 479133965Sjdpfi 479233965Sjdp 479333965Sjdpecho $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 479478828Sobrienecho "configure:4795: checking whether malloc must be declared" >&5 479533965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then 479633965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 479733965Sjdpelse 479833965Sjdp cat > conftest.$ac_ext <<EOF 479978828Sobrien#line 4800 "configure" 480033965Sjdp#include "confdefs.h" 480133965Sjdp 480233965Sjdp#include <stdio.h> 480333965Sjdp#ifdef HAVE_STRING_H 480433965Sjdp#include <string.h> 480533965Sjdp#else 480633965Sjdp#ifdef HAVE_STRINGS_H 480733965Sjdp#include <strings.h> 480833965Sjdp#endif 480933965Sjdp#endif 481033965Sjdp#ifdef HAVE_STDLIB_H 481133965Sjdp#include <stdlib.h> 481233965Sjdp#endif 481333965Sjdp#ifdef HAVE_UNISTD_H 481433965Sjdp#include <unistd.h> 481533965Sjdp#endif 481633965Sjdpint main() { 481733965Sjdpchar *(*pfn) = (char *(*)) malloc 481833965Sjdp; return 0; } 481933965SjdpEOF 482078828Sobrienif { (eval echo configure:4821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 482133965Sjdp rm -rf conftest* 482233965Sjdp bfd_cv_decl_needed_malloc=no 482333965Sjdpelse 482433965Sjdp echo "configure: failed program was:" >&5 482533965Sjdp cat conftest.$ac_ext >&5 482633965Sjdp rm -rf conftest* 482733965Sjdp bfd_cv_decl_needed_malloc=yes 482833965Sjdpfi 482933965Sjdprm -f conftest* 483033965Sjdpfi 483133965Sjdp 483233965Sjdpecho "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6 483333965Sjdpif test $bfd_cv_decl_needed_malloc = yes; then 483460484Sobrien cat >> confdefs.h <<\EOF 483560484Sobrien#define NEED_DECLARATION_MALLOC 1 483633965SjdpEOF 483733965Sjdp 483833965Sjdpfi 483933965Sjdp 484033965Sjdpecho $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 484178828Sobrienecho "configure:4842: checking whether realloc must be declared" >&5 484233965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then 484333965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 484433965Sjdpelse 484533965Sjdp cat > conftest.$ac_ext <<EOF 484678828Sobrien#line 4847 "configure" 484733965Sjdp#include "confdefs.h" 484833965Sjdp 484933965Sjdp#include <stdio.h> 485033965Sjdp#ifdef HAVE_STRING_H 485133965Sjdp#include <string.h> 485233965Sjdp#else 485333965Sjdp#ifdef HAVE_STRINGS_H 485433965Sjdp#include <strings.h> 485533965Sjdp#endif 485633965Sjdp#endif 485733965Sjdp#ifdef HAVE_STDLIB_H 485833965Sjdp#include <stdlib.h> 485933965Sjdp#endif 486033965Sjdp#ifdef HAVE_UNISTD_H 486133965Sjdp#include <unistd.h> 486233965Sjdp#endif 486333965Sjdpint main() { 486433965Sjdpchar *(*pfn) = (char *(*)) realloc 486533965Sjdp; return 0; } 486633965SjdpEOF 486778828Sobrienif { (eval echo configure:4868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 486833965Sjdp rm -rf conftest* 486933965Sjdp bfd_cv_decl_needed_realloc=no 487033965Sjdpelse 487133965Sjdp echo "configure: failed program was:" >&5 487233965Sjdp cat conftest.$ac_ext >&5 487333965Sjdp rm -rf conftest* 487433965Sjdp bfd_cv_decl_needed_realloc=yes 487533965Sjdpfi 487633965Sjdprm -f conftest* 487733965Sjdpfi 487833965Sjdp 487933965Sjdpecho "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6 488033965Sjdpif test $bfd_cv_decl_needed_realloc = yes; then 488160484Sobrien cat >> confdefs.h <<\EOF 488260484Sobrien#define NEED_DECLARATION_REALLOC 1 488333965SjdpEOF 488433965Sjdp 488533965Sjdpfi 488633965Sjdp 488733965Sjdpecho $ac_n "checking whether free must be declared""... $ac_c" 1>&6 488878828Sobrienecho "configure:4889: checking whether free must be declared" >&5 488933965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then 489033965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 489133965Sjdpelse 489233965Sjdp cat > conftest.$ac_ext <<EOF 489378828Sobrien#line 4894 "configure" 489433965Sjdp#include "confdefs.h" 489533965Sjdp 489633965Sjdp#include <stdio.h> 489733965Sjdp#ifdef HAVE_STRING_H 489833965Sjdp#include <string.h> 489933965Sjdp#else 490033965Sjdp#ifdef HAVE_STRINGS_H 490133965Sjdp#include <strings.h> 490233965Sjdp#endif 490333965Sjdp#endif 490433965Sjdp#ifdef HAVE_STDLIB_H 490533965Sjdp#include <stdlib.h> 490633965Sjdp#endif 490733965Sjdp#ifdef HAVE_UNISTD_H 490833965Sjdp#include <unistd.h> 490933965Sjdp#endif 491033965Sjdpint main() { 491133965Sjdpchar *(*pfn) = (char *(*)) free 491233965Sjdp; return 0; } 491333965SjdpEOF 491478828Sobrienif { (eval echo configure:4915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 491533965Sjdp rm -rf conftest* 491633965Sjdp bfd_cv_decl_needed_free=no 491733965Sjdpelse 491833965Sjdp echo "configure: failed program was:" >&5 491933965Sjdp cat conftest.$ac_ext >&5 492033965Sjdp rm -rf conftest* 492133965Sjdp bfd_cv_decl_needed_free=yes 492233965Sjdpfi 492333965Sjdprm -f conftest* 492433965Sjdpfi 492533965Sjdp 492633965Sjdpecho "$ac_t""$bfd_cv_decl_needed_free" 1>&6 492733965Sjdpif test $bfd_cv_decl_needed_free = yes; then 492860484Sobrien cat >> confdefs.h <<\EOF 492960484Sobrien#define NEED_DECLARATION_FREE 1 493033965SjdpEOF 493133965Sjdp 493233965Sjdpfi 493333965Sjdp 493433965Sjdpecho $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 493578828Sobrienecho "configure:4936: checking whether getenv must be declared" >&5 493633965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then 493733965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 493833965Sjdpelse 493933965Sjdp cat > conftest.$ac_ext <<EOF 494078828Sobrien#line 4941 "configure" 494133965Sjdp#include "confdefs.h" 494233965Sjdp 494333965Sjdp#include <stdio.h> 494433965Sjdp#ifdef HAVE_STRING_H 494533965Sjdp#include <string.h> 494633965Sjdp#else 494733965Sjdp#ifdef HAVE_STRINGS_H 494833965Sjdp#include <strings.h> 494933965Sjdp#endif 495033965Sjdp#endif 495133965Sjdp#ifdef HAVE_STDLIB_H 495233965Sjdp#include <stdlib.h> 495333965Sjdp#endif 495433965Sjdp#ifdef HAVE_UNISTD_H 495533965Sjdp#include <unistd.h> 495633965Sjdp#endif 495733965Sjdpint main() { 495833965Sjdpchar *(*pfn) = (char *(*)) getenv 495933965Sjdp; return 0; } 496033965SjdpEOF 496178828Sobrienif { (eval echo configure:4962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 496233965Sjdp rm -rf conftest* 496333965Sjdp bfd_cv_decl_needed_getenv=no 496433965Sjdpelse 496533965Sjdp echo "configure: failed program was:" >&5 496633965Sjdp cat conftest.$ac_ext >&5 496733965Sjdp rm -rf conftest* 496833965Sjdp bfd_cv_decl_needed_getenv=yes 496933965Sjdpfi 497033965Sjdprm -f conftest* 497133965Sjdpfi 497233965Sjdp 497333965Sjdpecho "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6 497433965Sjdpif test $bfd_cv_decl_needed_getenv = yes; then 497560484Sobrien cat >> confdefs.h <<\EOF 497660484Sobrien#define NEED_DECLARATION_GETENV 1 497733965SjdpEOF 497833965Sjdp 497933965Sjdpfi 498033965Sjdp 498133965Sjdp 498233965Sjdp# If we are configured native, pick a core file support file. 498333965SjdpCOREFILE= 498433965SjdpCOREFLAG= 498560484SobrienTRAD_HEADER= 498633965Sjdpif test "${target}" = "${host}"; then 498733965Sjdp case "${host}" in 498877298Sobrien alpha*-*-freebsd*) 498977298Sobrien COREFILE='' 499077298Sobrien ;; 499138889Sjdp alpha*-*-linux-gnu*) 499238889Sjdp COREFILE=trad-core.lo 499360484Sobrien TRAD_HEADER='"hosts/alphalinux.h"' 499433965Sjdp ;; 499538889Sjdp alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;; 499638889Sjdp alpha*-*-*) COREFILE=osf-core.lo ;; 499777298Sobrien arm-*-freebsd*) COREFILE='' ;; 499838889Sjdp arm-*-riscix) COREFILE=trad-core.lo ;; 499938889Sjdp hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 500038889Sjdp hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 500160484Sobrien hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; 500238889Sjdp hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 500333965Sjdp COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 500460484Sobrien i370-*-*) 500560484Sobrien COREFILE=trad-core.lo 500660484Sobrien TRAD_HEADER='"hosts/i370linux.h"' 500760484Sobrien ;; 500860484Sobrien 500933965Sjdp i[3456]86-sequent-bsd*) 501060484Sobrien COREFILE=trad-core.lo 501160484Sobrien TRAD_HEADER='"hosts/symmetry.h"' 501233965Sjdp ;; 501333965Sjdp i[3456]86-sequent-sysv4*) ;; 501433965Sjdp i[3456]86-sequent-sysv*) 501538889Sjdp COREFILE=trad-core.lo 501660484Sobrien TRAD_HEADER='"hosts/symmetry.h"' 501733965Sjdp ;; 501877298Sobrien i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*) 501938889Sjdp COREFILE=trad-core.lo 502060484Sobrien TRAD_HEADER='"hosts/i386bsd.h"' 502133965Sjdp ;; 502277298Sobrien i[3456]86-*-freebsd*) 502377298Sobrien COREFILE='' 502477298Sobrien TRAD_HEADER='"hosts/i386bsd.h"' 502577298Sobrien ;; 502633965Sjdp i[3456]86-*-netbsd* | i[3456]86-*-openbsd*) 502738889Sjdp COREFILE=netbsd-core.lo 502833965Sjdp ;; 502933965Sjdp i[3456]86-esix-sysv3*) 503038889Sjdp COREFILE=trad-core.lo 503160484Sobrien TRAD_HEADER='"hosts/esix.h"' 503233965Sjdp ;; 503360484Sobrien i[3456]86-*-sco3.2v5*) 503460484Sobrien COREFILE=sco5-core.lo 503560484Sobrien ;; 503633965Sjdp i[3456]86-*-sco* | i[3456]86-*-isc*) 503738889Sjdp COREFILE=trad-core.lo 503860484Sobrien TRAD_HEADER='"hosts/i386sco.h"' 503933965Sjdp ;; 504033965Sjdp i[3456]86-*-mach3*) 504138889Sjdp COREFILE=trad-core.lo 504260484Sobrien TRAD_HEADER='"hosts/i386mach3.h"' 504333965Sjdp ;; 504438889Sjdp i[3456]86-*-linux-gnu*) 504538889Sjdp COREFILE=trad-core.lo 504660484Sobrien TRAD_HEADER='"hosts/i386linux.h"' 504733965Sjdp ;; 504838889Sjdp i[3456]86-*-isc*) COREFILE=trad-core.lo ;; 504938889Sjdp i[3456]86-*-aix*) COREFILE=aix386-core.lo ;; 505033965Sjdp i860-*-mach3* | i860-*-osf1*) 505138889Sjdp COREFILE=trad-core.lo 505260484Sobrien TRAD_HEADER='"hosts/i860mach3.h"' 505333965Sjdp ;; 505433965Sjdp mips-dec-bsd*) 505538889Sjdp COREFILE=trad-core.lo 505660484Sobrien TRAD_HEADER='"hosts/mipsbsd.h"' 505733965Sjdp ;; 505833965Sjdp mips-dec-mach3*) 505938889Sjdp COREFILE=trad-core.lo 506060484Sobrien TRAD_HEADER='"hosts/mipsmach3.h"' 506133965Sjdp ;; 506233965Sjdp mips-*-netbsd* | mips*-*-openbsd*) 506338889Sjdp COREFILE=netbsd-core.lo 506433965Sjdp ;; 506533965Sjdp mips-dec-*) 506638889Sjdp COREFILE=trad-core.lo 506760484Sobrien TRAD_HEADER='"hosts/decstation.h"' 506833965Sjdp ;; 506938889Sjdp mips-sgi-irix4*) COREFILE=irix-core.lo ;; 507038889Sjdp mips-sgi-irix5*) COREFILE=irix-core.lo ;; 507138889Sjdp mips-sgi-irix6*) COREFILE=irix-core.lo ;; 507233965Sjdp mips-*-mach3*) 507338889Sjdp COREFILE=trad-core.lo 507460484Sobrien TRAD_HEADER='"hosts/mipsmach3.h"' 507533965Sjdp ;; 507633965Sjdp mips-*-sysv4*) ;; 507733965Sjdp mips-*-sysv* | mips-*-riscos*) 507838889Sjdp COREFILE=trad-core.lo 507960484Sobrien TRAD_HEADER='"hosts/riscos.h"' 508033965Sjdp ;; 508133965Sjdp mips-sony-bsd*) 508238889Sjdp COREFILE=trad-core.lo 508360484Sobrien TRAD_HEADER='"hosts/news-mips.h"' 508433965Sjdp ;; 508533965Sjdp m68*-bull*-sysv*) 508638889Sjdp COREFILE=trad-core.lo 508760484Sobrien TRAD_HEADER='"hosts/dpx2.h"' 508833965Sjdp ;; 508938889Sjdp m68*-hp-hpux*) COREFILE=hpux-core.lo ;; 509033965Sjdp m68*-hp-bsd*) 509138889Sjdp COREFILE=trad-core.lo 509260484Sobrien TRAD_HEADER='"hosts/hp300bsd.h"' 509333965Sjdp ;; 509438889Sjdp m68*-*-linux-gnu*) 509538889Sjdp COREFILE=trad-core.lo 509660484Sobrien TRAD_HEADER='"hosts/m68klinux.h"' 509733965Sjdp ;; 509833965Sjdp m68*-motorola-sysv*) 509938889Sjdp COREFILE=trad-core.lo 510060484Sobrien TRAD_HEADER='"hosts/delta68.h"' 510133965Sjdp ;; 510233965Sjdp m68*-sony-*) 510338889Sjdp COREFILE=trad-core.lo 510460484Sobrien TRAD_HEADER='"hosts/news.h"' 510533965Sjdp ;; 510633965Sjdp m68*-*-netbsd* | m68*-*-openbsd*) 510738889Sjdp COREFILE=netbsd-core.lo 510833965Sjdp ;; 510933965Sjdp m68*-apple-aux*) 511038889Sjdp COREFILE=trad-core.lo 511160484Sobrien TRAD_HEADER='"hosts/m68kaux.h"' 511233965Sjdp ;; 511333965Sjdp m88*-*-sysv4*) ;; 511438889Sjdp m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;; 511533965Sjdp m88*-*-mach3*) 511638889Sjdp COREFILE=trad-core.lo 511760484Sobrien TRAD_HEADER='"hosts/m88kmach3.h"' 511833965Sjdp ;; 511933965Sjdp ns32k-pc532-mach) 512038889Sjdp COREFILE=trad-core.lo 512160484Sobrien TRAD_HEADER='"hosts/pc532mach.h"' 512233965Sjdp ;; 512333965Sjdp ns32k-*-netbsd* | ns32k-*-openbsd*) 512438889Sjdp COREFILE=netbsd-core.lo 512533965Sjdp ;; 512638889Sjdp rs6000-*-lynx*) COREFILE=lynx-core.lo ;; 512777298Sobrien rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) 512877298Sobrien COREFILE=rs6000-core.lo 512977298Sobrien COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" 513077298Sobrien ;; 513138889Sjdp rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 513238889Sjdp rs6000-*-*) COREFILE=rs6000-core.lo ;; 513338889Sjdp powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 513438889Sjdp powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 513533965Sjdp powerpc-*-beos*) ;; 513677298Sobrien powerpc-*-freebsd*) COREFILE='' ;; 513738889Sjdp powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 513878828Sobrien powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 513933965Sjdp sparc-*-netbsd* | sparc-*-openbsd*) 514038889Sjdp COREFILE=netbsd-core.lo 514133965Sjdp ;; 514233965Sjdp tahoe-*-*) 514338889Sjdp COREFILE=trad-core.lo 514460484Sobrien TRAD_HEADER='"hosts/tahoe.h"' 514533965Sjdp ;; 514633965Sjdp vax-*-ultrix2*) 514738889Sjdp COREFILE=trad-core.lo 514860484Sobrien TRAD_HEADER='"hosts/vaxult2.h"' 514933965Sjdp ;; 515033965Sjdp vax-*-ultrix*) 515138889Sjdp COREFILE=trad-core.lo 515260484Sobrien TRAD_HEADER='"hosts/vaxult2.h"' 515333965Sjdp ;; 515433965Sjdp vax-*-*) 515538889Sjdp COREFILE=trad-core.lo 515660484Sobrien TRAD_HEADER='"hosts/vaxbsd.h"' 515733965Sjdp ;; 515833965Sjdp esac 515933965Sjdp 516033965Sjdp case "$COREFILE" in 516138889Sjdp aix386-core.lo) COREFLAG=-DAIX386_CORE ;; 516238889Sjdp hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 516338889Sjdp hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 516438889Sjdp irix-core.lo) COREFLAG=-DIRIX_CORE ;; 516538889Sjdp lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 516638889Sjdp netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 516738889Sjdp osf-core.lo) COREFLAG=-DOSF_CORE ;; 516838889Sjdp ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 516938889Sjdp rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 517060484Sobrien sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; 517138889Sjdp trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 517233965Sjdp esac 517333965Sjdp 517460484Sobrien # ELF corefile support has several flavors, but all of 517560484Sobrien # them use something called <sys/procfs.h> 517660484Sobrien for ac_hdr in sys/procfs.h 517760484Sobriendo 517860484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 517960484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 518078828Sobrienecho "configure:5181: checking for $ac_hdr" >&5 518160484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 518233965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 518333965Sjdpelse 518433965Sjdp cat > conftest.$ac_ext <<EOF 518578828Sobrien#line 5186 "configure" 518633965Sjdp#include "confdefs.h" 518760484Sobrien#include <$ac_hdr> 518860484SobrienEOF 518960484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 519078828Sobrien{ (eval echo configure:5191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 519160484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 519260484Sobrienif test -z "$ac_err"; then 519360484Sobrien rm -rf conftest* 519460484Sobrien eval "ac_cv_header_$ac_safe=yes" 519560484Sobrienelse 519660484Sobrien echo "$ac_err" >&5 519760484Sobrien echo "configure: failed program was:" >&5 519860484Sobrien cat conftest.$ac_ext >&5 519960484Sobrien rm -rf conftest* 520060484Sobrien eval "ac_cv_header_$ac_safe=no" 520160484Sobrienfi 520260484Sobrienrm -f conftest* 520360484Sobrienfi 520460484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 520560484Sobrien echo "$ac_t""yes" 1>&6 520660484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 520760484Sobrien cat >> confdefs.h <<EOF 520860484Sobrien#define $ac_tr_hdr 1 520960484SobrienEOF 521060484Sobrien 521160484Sobrienelse 521260484Sobrien echo "$ac_t""no" 1>&6 521360484Sobrienfi 521460484Sobriendone 521560484Sobrien 521660484Sobrien if test "$ac_cv_header_sys_procfs_h" = yes; then 521760484Sobrien echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6 521878828Sobrienecho "configure:5219: checking for prstatus_t in sys/procfs.h" >&5 521960484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then 522060484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 522160484Sobrienelse 522260484Sobrien cat > conftest.$ac_ext <<EOF 522378828Sobrien#line 5224 "configure" 522460484Sobrien#include "confdefs.h" 522577298Sobrien 522677298Sobrien#define _SYSCALL32 522733965Sjdp#include <sys/procfs.h> 522833965Sjdpint main() { 522960484Sobrienprstatus_t avar 523033965Sjdp; return 0; } 523133965SjdpEOF 523278828Sobrienif { (eval echo configure:5233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 523333965Sjdp rm -rf conftest* 523460484Sobrien bfd_cv_have_sys_procfs_type_prstatus_t=yes 523533965Sjdpelse 523633965Sjdp echo "configure: failed program was:" >&5 523733965Sjdp cat conftest.$ac_ext >&5 523833965Sjdp rm -rf conftest* 523960484Sobrien bfd_cv_have_sys_procfs_type_prstatus_t=no 524060484Sobrien 524133965Sjdpfi 524233965Sjdprm -f conftest* 524333965Sjdpfi 524433965Sjdp 524560484Sobrien if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then 524660484Sobrien cat >> confdefs.h <<\EOF 524760484Sobrien#define HAVE_PRSTATUS_T 1 524833965SjdpEOF 524933965Sjdp 525060484Sobrien fi 525160484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6 525233965Sjdp 525377298Sobrien echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6 525478828Sobrienecho "configure:5255: checking for prstatus32_t in sys/procfs.h" >&5 525577298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then 525677298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 525777298Sobrienelse 525877298Sobrien cat > conftest.$ac_ext <<EOF 525978828Sobrien#line 5260 "configure" 526077298Sobrien#include "confdefs.h" 526177298Sobrien 526277298Sobrien#define _SYSCALL32 526377298Sobrien#include <sys/procfs.h> 526477298Sobrienint main() { 526577298Sobrienprstatus32_t avar 526677298Sobrien; return 0; } 526777298SobrienEOF 526878828Sobrienif { (eval echo configure:5269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 526977298Sobrien rm -rf conftest* 527077298Sobrien bfd_cv_have_sys_procfs_type_prstatus32_t=yes 527177298Sobrienelse 527277298Sobrien echo "configure: failed program was:" >&5 527377298Sobrien cat conftest.$ac_ext >&5 527477298Sobrien rm -rf conftest* 527577298Sobrien bfd_cv_have_sys_procfs_type_prstatus32_t=no 527677298Sobrien 527777298Sobrienfi 527877298Sobrienrm -f conftest* 527977298Sobrienfi 528077298Sobrien 528177298Sobrien if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then 528277298Sobrien cat >> confdefs.h <<\EOF 528377298Sobrien#define HAVE_PRSTATUS32_T 1 528477298SobrienEOF 528577298Sobrien 528677298Sobrien fi 528777298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6 528877298Sobrien 528960484Sobrien echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 529078828Sobrienecho "configure:5291: checking for prstatus_t.pr_who in sys/procfs.h" >&5 529160484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then 529260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 529360484Sobrienelse 529460484Sobrien cat > conftest.$ac_ext <<EOF 529578828Sobrien#line 5296 "configure" 529660484Sobrien#include "confdefs.h" 529777298Sobrien 529877298Sobrien#define _SYSCALL32 529960484Sobrien#include <sys/procfs.h> 530060484Sobrienint main() { 530160484Sobrienprstatus_t avar; void* aref = (void*) &avar.pr_who 530260484Sobrien; return 0; } 530360484SobrienEOF 530478828Sobrienif { (eval echo configure:5305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 530560484Sobrien rm -rf conftest* 530660484Sobrien bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes 530760484Sobrienelse 530860484Sobrien echo "configure: failed program was:" >&5 530960484Sobrien cat conftest.$ac_ext >&5 531060484Sobrien rm -rf conftest* 531160484Sobrien bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no 531260484Sobrien 531333965Sjdpfi 531460484Sobrienrm -f conftest* 531560484Sobrienfi 531633965Sjdp 531760484Sobrien if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then 531860484Sobrien cat >> confdefs.h <<\EOF 531960484Sobrien#define HAVE_PRSTATUS_T_PR_WHO 1 532060484SobrienEOF 532133965Sjdp 532260484Sobrien fi 532360484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6 532433965Sjdp 532577298Sobrien echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 532678828Sobrienecho "configure:5327: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 532777298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then 532877298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 532977298Sobrienelse 533077298Sobrien cat > conftest.$ac_ext <<EOF 533178828Sobrien#line 5332 "configure" 533277298Sobrien#include "confdefs.h" 533377298Sobrien 533477298Sobrien#define _SYSCALL32 533577298Sobrien#include <sys/procfs.h> 533677298Sobrienint main() { 533777298Sobrienprstatus32_t avar; void* aref = (void*) &avar.pr_who 533877298Sobrien; return 0; } 533977298SobrienEOF 534078828Sobrienif { (eval echo configure:5341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 534177298Sobrien rm -rf conftest* 534277298Sobrien bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes 534377298Sobrienelse 534477298Sobrien echo "configure: failed program was:" >&5 534577298Sobrien cat conftest.$ac_ext >&5 534677298Sobrien rm -rf conftest* 534777298Sobrien bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no 534877298Sobrien 534977298Sobrienfi 535077298Sobrienrm -f conftest* 535177298Sobrienfi 535277298Sobrien 535377298Sobrien if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then 535477298Sobrien cat >> confdefs.h <<\EOF 535577298Sobrien#define HAVE_PRSTATUS32_T_PR_WHO 1 535677298SobrienEOF 535777298Sobrien 535877298Sobrien fi 535977298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6 536077298Sobrien 536160484Sobrien echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6 536278828Sobrienecho "configure:5363: checking for pstatus_t in sys/procfs.h" >&5 536360484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then 536460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 536560484Sobrienelse 536660484Sobrien cat > conftest.$ac_ext <<EOF 536778828Sobrien#line 5368 "configure" 536860484Sobrien#include "confdefs.h" 536977298Sobrien 537077298Sobrien#define _SYSCALL32 537160484Sobrien#include <sys/procfs.h> 537260484Sobrienint main() { 537360484Sobrienpstatus_t avar 537460484Sobrien; return 0; } 537560484SobrienEOF 537678828Sobrienif { (eval echo configure:5377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 537760484Sobrien rm -rf conftest* 537860484Sobrien bfd_cv_have_sys_procfs_type_pstatus_t=yes 537960484Sobrienelse 538060484Sobrien echo "configure: failed program was:" >&5 538160484Sobrien cat conftest.$ac_ext >&5 538260484Sobrien rm -rf conftest* 538360484Sobrien bfd_cv_have_sys_procfs_type_pstatus_t=no 538460484Sobrien 538560484Sobrienfi 538660484Sobrienrm -f conftest* 538760484Sobrienfi 538860484Sobrien 538960484Sobrien if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then 539060484Sobrien cat >> confdefs.h <<\EOF 539160484Sobrien#define HAVE_PSTATUS_T 1 539260484SobrienEOF 539360484Sobrien 539460484Sobrien fi 539560484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6 539660484Sobrien 539777298Sobrien echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6 539878828Sobrienecho "configure:5399: checking for pxstatus_t in sys/procfs.h" >&5 539977298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then 540077298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 540177298Sobrienelse 540277298Sobrien cat > conftest.$ac_ext <<EOF 540378828Sobrien#line 5404 "configure" 540477298Sobrien#include "confdefs.h" 540577298Sobrien 540677298Sobrien#define _SYSCALL32 540777298Sobrien#include <sys/procfs.h> 540877298Sobrienint main() { 540977298Sobrienpxstatus_t avar 541077298Sobrien; return 0; } 541177298SobrienEOF 541278828Sobrienif { (eval echo configure:5413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 541377298Sobrien rm -rf conftest* 541477298Sobrien bfd_cv_have_sys_procfs_type_pxstatus_t=yes 541577298Sobrienelse 541677298Sobrien echo "configure: failed program was:" >&5 541777298Sobrien cat conftest.$ac_ext >&5 541877298Sobrien rm -rf conftest* 541977298Sobrien bfd_cv_have_sys_procfs_type_pxstatus_t=no 542077298Sobrien 542177298Sobrienfi 542277298Sobrienrm -f conftest* 542377298Sobrienfi 542477298Sobrien 542577298Sobrien if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then 542677298Sobrien cat >> confdefs.h <<\EOF 542777298Sobrien#define HAVE_PXSTATUS_T 1 542877298SobrienEOF 542977298Sobrien 543077298Sobrien fi 543177298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6 543277298Sobrien 543377298Sobrien echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6 543478828Sobrienecho "configure:5435: checking for pstatus32_t in sys/procfs.h" >&5 543577298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then 543677298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 543777298Sobrienelse 543877298Sobrien cat > conftest.$ac_ext <<EOF 543978828Sobrien#line 5440 "configure" 544077298Sobrien#include "confdefs.h" 544177298Sobrien 544277298Sobrien#define _SYSCALL32 544377298Sobrien#include <sys/procfs.h> 544477298Sobrienint main() { 544577298Sobrienpstatus32_t avar 544677298Sobrien; return 0; } 544777298SobrienEOF 544878828Sobrienif { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 544977298Sobrien rm -rf conftest* 545077298Sobrien bfd_cv_have_sys_procfs_type_pstatus32_t=yes 545177298Sobrienelse 545277298Sobrien echo "configure: failed program was:" >&5 545377298Sobrien cat conftest.$ac_ext >&5 545477298Sobrien rm -rf conftest* 545577298Sobrien bfd_cv_have_sys_procfs_type_pstatus32_t=no 545677298Sobrien 545777298Sobrienfi 545877298Sobrienrm -f conftest* 545977298Sobrienfi 546077298Sobrien 546177298Sobrien if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then 546277298Sobrien cat >> confdefs.h <<\EOF 546377298Sobrien#define HAVE_PSTATUS32_T 1 546477298SobrienEOF 546577298Sobrien 546677298Sobrien fi 546777298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6 546877298Sobrien 546960484Sobrien echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6 547078828Sobrienecho "configure:5471: checking for prpsinfo_t in sys/procfs.h" >&5 547160484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then 547260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 547360484Sobrienelse 547460484Sobrien cat > conftest.$ac_ext <<EOF 547578828Sobrien#line 5476 "configure" 547660484Sobrien#include "confdefs.h" 547777298Sobrien 547877298Sobrien#define _SYSCALL32 547960484Sobrien#include <sys/procfs.h> 548060484Sobrienint main() { 548160484Sobrienprpsinfo_t avar 548260484Sobrien; return 0; } 548360484SobrienEOF 548478828Sobrienif { (eval echo configure:5485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 548560484Sobrien rm -rf conftest* 548660484Sobrien bfd_cv_have_sys_procfs_type_prpsinfo_t=yes 548760484Sobrienelse 548860484Sobrien echo "configure: failed program was:" >&5 548960484Sobrien cat conftest.$ac_ext >&5 549060484Sobrien rm -rf conftest* 549160484Sobrien bfd_cv_have_sys_procfs_type_prpsinfo_t=no 549260484Sobrien 549360484Sobrienfi 549460484Sobrienrm -f conftest* 549560484Sobrienfi 549660484Sobrien 549760484Sobrien if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then 549860484Sobrien cat >> confdefs.h <<\EOF 549960484Sobrien#define HAVE_PRPSINFO_T 1 550060484SobrienEOF 550160484Sobrien 550260484Sobrien fi 550360484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6 550460484Sobrien 550577298Sobrien echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6 550678828Sobrienecho "configure:5507: checking for prpsinfo32_t in sys/procfs.h" >&5 550777298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then 550877298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 550977298Sobrienelse 551077298Sobrien cat > conftest.$ac_ext <<EOF 551178828Sobrien#line 5512 "configure" 551277298Sobrien#include "confdefs.h" 551377298Sobrien 551477298Sobrien#define _SYSCALL32 551577298Sobrien#include <sys/procfs.h> 551677298Sobrienint main() { 551777298Sobrienprpsinfo32_t avar 551877298Sobrien; return 0; } 551977298SobrienEOF 552078828Sobrienif { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 552177298Sobrien rm -rf conftest* 552277298Sobrien bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes 552377298Sobrienelse 552477298Sobrien echo "configure: failed program was:" >&5 552577298Sobrien cat conftest.$ac_ext >&5 552677298Sobrien rm -rf conftest* 552777298Sobrien bfd_cv_have_sys_procfs_type_prpsinfo32_t=no 552877298Sobrien 552977298Sobrienfi 553077298Sobrienrm -f conftest* 553177298Sobrienfi 553277298Sobrien 553377298Sobrien if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then 553477298Sobrien cat >> confdefs.h <<\EOF 553577298Sobrien#define HAVE_PRPSINFO32_T 1 553677298SobrienEOF 553777298Sobrien 553877298Sobrien fi 553977298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6 554077298Sobrien 554160484Sobrien echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6 554278828Sobrienecho "configure:5543: checking for psinfo_t in sys/procfs.h" >&5 554360484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then 554460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 554560484Sobrienelse 554660484Sobrien cat > conftest.$ac_ext <<EOF 554778828Sobrien#line 5548 "configure" 554860484Sobrien#include "confdefs.h" 554977298Sobrien 555077298Sobrien#define _SYSCALL32 555160484Sobrien#include <sys/procfs.h> 555260484Sobrienint main() { 555360484Sobrienpsinfo_t avar 555460484Sobrien; return 0; } 555560484SobrienEOF 555678828Sobrienif { (eval echo configure:5557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 555760484Sobrien rm -rf conftest* 555860484Sobrien bfd_cv_have_sys_procfs_type_psinfo_t=yes 555960484Sobrienelse 556060484Sobrien echo "configure: failed program was:" >&5 556160484Sobrien cat conftest.$ac_ext >&5 556260484Sobrien rm -rf conftest* 556360484Sobrien bfd_cv_have_sys_procfs_type_psinfo_t=no 556460484Sobrien 556560484Sobrienfi 556660484Sobrienrm -f conftest* 556760484Sobrienfi 556860484Sobrien 556960484Sobrien if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then 557060484Sobrien cat >> confdefs.h <<\EOF 557160484Sobrien#define HAVE_PSINFO_T 1 557260484SobrienEOF 557360484Sobrien 557460484Sobrien fi 557560484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6 557660484Sobrien 557777298Sobrien echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6 557878828Sobrienecho "configure:5579: checking for psinfo32_t in sys/procfs.h" >&5 557977298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then 558077298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 558177298Sobrienelse 558277298Sobrien cat > conftest.$ac_ext <<EOF 558378828Sobrien#line 5584 "configure" 558477298Sobrien#include "confdefs.h" 558577298Sobrien 558677298Sobrien#define _SYSCALL32 558777298Sobrien#include <sys/procfs.h> 558877298Sobrienint main() { 558977298Sobrienpsinfo32_t avar 559077298Sobrien; return 0; } 559177298SobrienEOF 559278828Sobrienif { (eval echo configure:5593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 559377298Sobrien rm -rf conftest* 559477298Sobrien bfd_cv_have_sys_procfs_type_psinfo32_t=yes 559577298Sobrienelse 559677298Sobrien echo "configure: failed program was:" >&5 559777298Sobrien cat conftest.$ac_ext >&5 559877298Sobrien rm -rf conftest* 559977298Sobrien bfd_cv_have_sys_procfs_type_psinfo32_t=no 560077298Sobrien 560177298Sobrienfi 560277298Sobrienrm -f conftest* 560377298Sobrienfi 560477298Sobrien 560577298Sobrien if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then 560677298Sobrien cat >> confdefs.h <<\EOF 560777298Sobrien#define HAVE_PSINFO32_T 1 560877298SobrienEOF 560977298Sobrien 561077298Sobrien fi 561177298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6 561277298Sobrien 561360484Sobrien echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6 561478828Sobrienecho "configure:5615: checking for lwpstatus_t in sys/procfs.h" >&5 561560484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then 561660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 561760484Sobrienelse 561860484Sobrien cat > conftest.$ac_ext <<EOF 561978828Sobrien#line 5620 "configure" 562060484Sobrien#include "confdefs.h" 562177298Sobrien 562277298Sobrien#define _SYSCALL32 562360484Sobrien#include <sys/procfs.h> 562460484Sobrienint main() { 562560484Sobrienlwpstatus_t avar 562660484Sobrien; return 0; } 562760484SobrienEOF 562878828Sobrienif { (eval echo configure:5629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 562960484Sobrien rm -rf conftest* 563060484Sobrien bfd_cv_have_sys_procfs_type_lwpstatus_t=yes 563160484Sobrienelse 563260484Sobrien echo "configure: failed program was:" >&5 563360484Sobrien cat conftest.$ac_ext >&5 563460484Sobrien rm -rf conftest* 563560484Sobrien bfd_cv_have_sys_procfs_type_lwpstatus_t=no 563660484Sobrien 563760484Sobrienfi 563860484Sobrienrm -f conftest* 563960484Sobrienfi 564060484Sobrien 564160484Sobrien if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then 564260484Sobrien cat >> confdefs.h <<\EOF 564360484Sobrien#define HAVE_LWPSTATUS_T 1 564460484SobrienEOF 564560484Sobrien 564660484Sobrien fi 564760484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6 564860484Sobrien 564977298Sobrien echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6 565078828Sobrienecho "configure:5651: checking for lwpxstatus_t in sys/procfs.h" >&5 565177298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then 565277298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 565377298Sobrienelse 565477298Sobrien cat > conftest.$ac_ext <<EOF 565578828Sobrien#line 5656 "configure" 565677298Sobrien#include "confdefs.h" 565777298Sobrien 565877298Sobrien#define _SYSCALL32 565977298Sobrien#include <sys/procfs.h> 566077298Sobrienint main() { 566177298Sobrienlwpxstatus_t avar 566277298Sobrien; return 0; } 566377298SobrienEOF 566478828Sobrienif { (eval echo configure:5665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 566577298Sobrien rm -rf conftest* 566677298Sobrien bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes 566777298Sobrienelse 566877298Sobrien echo "configure: failed program was:" >&5 566977298Sobrien cat conftest.$ac_ext >&5 567077298Sobrien rm -rf conftest* 567177298Sobrien bfd_cv_have_sys_procfs_type_lwpxstatus_t=no 567277298Sobrien 567377298Sobrienfi 567477298Sobrienrm -f conftest* 567577298Sobrienfi 567677298Sobrien 567777298Sobrien if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then 567877298Sobrien cat >> confdefs.h <<\EOF 567977298Sobrien#define HAVE_LWPXSTATUS_T 1 568077298SobrienEOF 568177298Sobrien 568277298Sobrien fi 568377298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6 568477298Sobrien 568560484Sobrien echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6 568678828Sobrienecho "configure:5687: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 568760484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then 568860484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 568960484Sobrienelse 569060484Sobrien cat > conftest.$ac_ext <<EOF 569178828Sobrien#line 5692 "configure" 569260484Sobrien#include "confdefs.h" 569377298Sobrien 569477298Sobrien#define _SYSCALL32 569560484Sobrien#include <sys/procfs.h> 569660484Sobrienint main() { 569760484Sobrienlwpstatus_t avar; void* aref = (void*) &avar.pr_context 569860484Sobrien; return 0; } 569960484SobrienEOF 570078828Sobrienif { (eval echo configure:5701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 570160484Sobrien rm -rf conftest* 570260484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes 570360484Sobrienelse 570460484Sobrien echo "configure: failed program was:" >&5 570560484Sobrien cat conftest.$ac_ext >&5 570660484Sobrien rm -rf conftest* 570760484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no 570860484Sobrien 570960484Sobrienfi 571060484Sobrienrm -f conftest* 571160484Sobrienfi 571260484Sobrien 571360484Sobrien if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then 571460484Sobrien cat >> confdefs.h <<\EOF 571560484Sobrien#define HAVE_LWPSTATUS_T_PR_CONTEXT 1 571660484SobrienEOF 571760484Sobrien 571860484Sobrien fi 571960484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6 572060484Sobrien 572160484Sobrien echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6 572278828Sobrienecho "configure:5723: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 572360484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then 572460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 572560484Sobrienelse 572660484Sobrien cat > conftest.$ac_ext <<EOF 572778828Sobrien#line 5728 "configure" 572860484Sobrien#include "confdefs.h" 572977298Sobrien 573077298Sobrien#define _SYSCALL32 573160484Sobrien#include <sys/procfs.h> 573260484Sobrienint main() { 573360484Sobrienlwpstatus_t avar; void* aref = (void*) &avar.pr_reg 573460484Sobrien; return 0; } 573560484SobrienEOF 573678828Sobrienif { (eval echo configure:5737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 573760484Sobrien rm -rf conftest* 573860484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes 573960484Sobrienelse 574060484Sobrien echo "configure: failed program was:" >&5 574160484Sobrien cat conftest.$ac_ext >&5 574260484Sobrien rm -rf conftest* 574360484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no 574460484Sobrien 574560484Sobrienfi 574660484Sobrienrm -f conftest* 574760484Sobrienfi 574860484Sobrien 574960484Sobrien if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then 575060484Sobrien cat >> confdefs.h <<\EOF 575160484Sobrien#define HAVE_LWPSTATUS_T_PR_REG 1 575260484SobrienEOF 575360484Sobrien 575460484Sobrien fi 575560484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6 575660484Sobrien 575760484Sobrien echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6 575878828Sobrienecho "configure:5759: checking for win32_pstatus_t in sys/procfs.h" >&5 575960484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then 576060484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 576160484Sobrienelse 576260484Sobrien cat > conftest.$ac_ext <<EOF 576378828Sobrien#line 5764 "configure" 576460484Sobrien#include "confdefs.h" 576577298Sobrien 576677298Sobrien#define _SYSCALL32 576760484Sobrien#include <sys/procfs.h> 576860484Sobrienint main() { 576960484Sobrienwin32_pstatus_t avar 577060484Sobrien; return 0; } 577160484SobrienEOF 577278828Sobrienif { (eval echo configure:5773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 577360484Sobrien rm -rf conftest* 577460484Sobrien bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes 577560484Sobrienelse 577660484Sobrien echo "configure: failed program was:" >&5 577760484Sobrien cat conftest.$ac_ext >&5 577860484Sobrien rm -rf conftest* 577960484Sobrien bfd_cv_have_sys_procfs_type_win32_pstatus_t=no 578060484Sobrien 578160484Sobrienfi 578260484Sobrienrm -f conftest* 578360484Sobrienfi 578460484Sobrien 578560484Sobrien if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then 578660484Sobrien cat >> confdefs.h <<\EOF 578760484Sobrien#define HAVE_WIN32_PSTATUS_T 1 578860484SobrienEOF 578960484Sobrien 579060484Sobrien fi 579160484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6 579260484Sobrien 579360484Sobrien fi 579460484Sobrienfi 579560484Sobrien 579660484Sobrien 579777298Sobrienif test -n "$TRAD_HEADER"; then 579877298Sobrien cat >> confdefs.h <<EOF 579960484Sobrien#define TRAD_HEADER $TRAD_HEADER 580060484SobrienEOF 580160484Sobrien 580277298Sobrienfi 580360484Sobrien 580460484Sobrien# Horrible hacks to build DLLs on Windows. 580560484SobrienWIN32LDFLAGS= 580660484SobrienWIN32LIBADD= 580760484Sobriencase "${host}" in 580860484Sobrien*-*-cygwin*) 580960484Sobrien if test "$enable_shared" = "yes"; then 581060484Sobrien WIN32LDFLAGS="-no-undefined" 581160484Sobrien WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" 581260484Sobrien fi 581360484Sobrien ;; 581460484Sobrienesac 581560484Sobrien 581660484Sobrien 581760484Sobrien 581833965Sjdp# target stuff: 581933965Sjdp 582033965Sjdp# Canonicalize the secondary target names. 582133965Sjdpif test -n "$enable_targets" ; then 582233965Sjdp for targ in `echo $enable_targets | sed 's/,/ /g'` 582333965Sjdp do 582460484Sobrien result=`$ac_config_sub $targ 2>/dev/null` 582533965Sjdp if test -n "$result" ; then 582633965Sjdp canon_targets="$canon_targets $result" 582733965Sjdp else 582833965Sjdp # Allow targets that config.sub doesn't recognize, like "all". 582933965Sjdp canon_targets="$canon_targets $targ" 583033965Sjdp fi 583133965Sjdp done 583233965Sjdpfi 583333965Sjdp 583433965Sjdpall_targets=false 583533965Sjdpdefvec= 583633965Sjdpselvecs= 583733965Sjdpselarchs= 583833965SjdpTDEFINES= 583933965Sjdpfor targ in $target $canon_targets 584033965Sjdpdo 584133965Sjdp if test "x$targ" = "xall"; then 584233965Sjdp all_targets=true 584333965Sjdp else 584433965Sjdp . $srcdir/config.bfd 584533965Sjdp if test "x$targ" = "x$target"; then 584633965Sjdp defvec=$targ_defvec 584733965Sjdp fi 584833965Sjdp selvecs="$selvecs $targ_defvec $targ_selvecs" 584933965Sjdp selarchs="$selarchs $targ_archs" 585033965Sjdp TDEFINES="$TDEFINES $targ_cflags" 585133965Sjdp fi 585233965Sjdpdone 585333965Sjdp 585433965Sjdp 585533965Sjdp# This processing still needs to be done if we're to decide properly whether 585633965Sjdp# 64-bit support needs to be compiled in. Currently, it will be included if 585733965Sjdp# the default or any other explicitly requested target requires it; it 585833965Sjdp# will not be included on a 32-bit host if no 64-bit target is requested, and 585960484Sobrien# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is 586033965Sjdp# used. 586133965Sjdp 586233965Sjdp# uniq the default and selected vectors in all the configured targets. 586333965Sjdpf="" 586433965Sjdpfor i in $selvecs ; do 586533965Sjdp case " $f " in 586633965Sjdp *" $i "*) ;; 586733965Sjdp *) f="$f $i" ;; 586833965Sjdp esac 586933965Sjdpdone 587033965Sjdpselvecs="$f" 587133965Sjdp 587238889Sjdp 587333965Sjdp# uniq the architectures in all the configured targets. 587433965Sjdpf="" 587533965Sjdpfor i in $selarchs ; do 587633965Sjdp case " $f " in 587733965Sjdp *" $i "*) ;; 587833965Sjdp *) f="$f $i" ;; 587933965Sjdp esac 588033965Sjdpdone 588133965Sjdpselarchs="$f" 588233965Sjdp 588333965Sjdp# Target backend .o files. 588433965Sjdptb= 588533965Sjdp 588677298Sobrienelf="elf.lo elflink.lo dwarf1.lo" 588733965Sjdp 588833965Sjdpfor vec in $selvecs 588933965Sjdpdo 589033965Sjdp case "$vec" in 589133965Sjdp # This list is alphabetized to make it easy to compare 589233965Sjdp # with the two vector lists in targets.c. 589338889Sjdp a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; 589438889Sjdp a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; 589538889Sjdp armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 589638889Sjdp armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 589760484Sobrien armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; 589860484Sobrien armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 589960484Sobrien armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 590060484Sobrien armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 590160484Sobrien armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 590260484Sobrien arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 590360484Sobrien arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 590460484Sobrien arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 590560484Sobrien arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 590638889Sjdp aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; 590738889Sjdp aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; 590838889Sjdp aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; 590938889Sjdp aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;; 591038889Sjdp aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;; 591138889Sjdp apollocoff_vec) tb="$tb coff-apollo.lo" ;; 591238889Sjdp b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; 591338889Sjdp b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; 591477298Sobrien bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; 591578828Sobrien bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo" 591677298Sobrien target64=true ;; 591738889Sjdp bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf" 591833965Sjdp target64=true ;; 591977298Sobrien bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec) 592077298Sobrien tb="$tb elf64-hppa.lo elf64.lo $elf" 592177298Sobrien target64=true ;; 592277298Sobrien bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf" 592377298Sobrien target64=true ;; 592477298Sobrien bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf" 592577298Sobrien target64=true ;; 592677298Sobrien bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; 592760484Sobrien bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; 592838889Sjdp bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 592960484Sobrien bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; 593060484Sobrien bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; 593138889Sjdp bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 593260484Sobrien bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; 593360484Sobrien bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; 593438889Sjdp bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 593538889Sjdp bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 593638889Sjdp bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" 593733965Sjdp target64=true ;; 593877298Sobrien bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 593977298Sobrien bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 594038889Sjdp bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 594160484Sobrien bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; 594260484Sobrien bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; 594377298Sobrien bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec) 594477298Sobrien tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 594560484Sobrien bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; 594638889Sjdp bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; 594777298Sobrien bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf" 594877298Sobrien target64=true ;; 594938889Sjdp bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 595077298Sobrien bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 595160484Sobrien bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; 595238889Sjdp bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 595338889Sjdp bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 595438889Sjdp bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" 595533965Sjdp target64=true ;; 595638889Sjdp bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 595777298Sobrien bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;; 595877298Sobrien bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;; 595938889Sjdp bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 596038889Sjdp bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; 596160484Sobrien bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 596260484Sobrien bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 596338889Sjdp bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 596438889Sjdp bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 596560484Sobrien bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 596660484Sobrien bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 596738889Sjdp bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; 596838889Sjdp bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; 596938889Sjdp bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 597038889Sjdp bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 597177298Sobrien bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 597277298Sobrien bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 597338889Sjdp bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; 597477298Sobrien bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 597577298Sobrien bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 597638889Sjdp bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 597738889Sjdp bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" 597833965Sjdp target64=true ;; 597938889Sjdp bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" 598033965Sjdp target64=true ;; 598138889Sjdp bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf" 598233965Sjdp target64=true ;; 598378828Sobrien bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo" 598478828Sobrien target64=true ;; 598578828Sobrien bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo" 598678828Sobrien target64=true ;; 598760484Sobrien cisco_core_big_vec) tb="$tb cisco-core.lo" ;; 598860484Sobrien cisco_core_little_vec) tb="$tb cisco-core.lo" ;; 598977298Sobrien cris_aout_vec) tb="$tb aout-cris.lo" ;; 599038889Sjdp demo_64_vec) tb="$tb demo64.lo aout64.lo" 599133965Sjdp target64=true ;; 599238889Sjdp ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 599338889Sjdp ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 599438889Sjdp ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 599538889Sjdp ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo" 599633965Sjdp target64=true ;; 599738889Sjdp go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; 599838889Sjdp go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; 599938889Sjdp h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; 600038889Sjdp h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; 600138889Sjdp host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 600238889Sjdp hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; 600338889Sjdp hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; 600438889Sjdp i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 600538889Sjdp i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 600638889Sjdp i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; 600738889Sjdp i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; 600838889Sjdp i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; 600938889Sjdp i386msdos_vec) tb="$tb i386msdos.lo" ;; 601060484Sobrien i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; 601160484Sobrien i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; 601238889Sjdp i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; 601338889Sjdp i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 601438889Sjdp i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; 601538889Sjdp i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; 601638889Sjdp i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; 601738889Sjdp i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; 601838889Sjdp i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; 601938889Sjdp icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 602038889Sjdp icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 602138889Sjdp ieee_vec) tb="$tb ieee.lo" ;; 602238889Sjdp m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; 602338889Sjdp m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; 602438889Sjdp m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; 602538889Sjdp m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; 602638889Sjdp m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; 602738889Sjdp m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; 602838889Sjdp m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; 602938889Sjdp m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; 603038889Sjdp m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; 603138889Sjdp m88kbcs_vec) tb="$tb coff-m88k.lo" ;; 603277298Sobrien mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; 603377298Sobrien mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; 603460484Sobrien mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 603560484Sobrien mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 603660484Sobrien mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 603760484Sobrien mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 603838889Sjdp newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; 603938889Sjdp nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; 604077298Sobrien rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo" 604177298Sobrien target64=true ;; 604238889Sjdp nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; 604338889Sjdp nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo" 604433965Sjdp target64=true ;; 604538889Sjdp riscix_vec) tb="$tb aout32.lo riscix.lo" ;; 604638889Sjdp nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; 604738889Sjdp pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 604838889Sjdp pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 604938889Sjdp pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;; 605038889Sjdp rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; 605160484Sobrien bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 605260484Sobrien bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 605360484Sobrien bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 605460484Sobrien bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 605538889Sjdp ppcboot_vec) tb="$tb ppcboot.lo" ;; 605638889Sjdp shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 605738889Sjdp shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 605838889Sjdp shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 605938889Sjdp shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 606077298Sobrien shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; 606177298Sobrien shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; 606238889Sjdp som_vec) tb="$tb som.lo" ;; 606338889Sjdp sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; 606438889Sjdp sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; 606538889Sjdp sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; 606638889Sjdp sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; 606738889Sjdp sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; 606838889Sjdp sparccoff_vec) tb="$tb coff-sparc.lo" ;; 606938889Sjdp srec_vec) tb="$tb srec.lo" ;; 607038889Sjdp sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; 607138889Sjdp symbolsrec_vec) tb="$tb srec.lo" ;; 607238889Sjdp tekhex_vec) tb="$tb tekhex.lo" ;; 607338889Sjdp tic30_aout_vec) tb="$tb aout-tic30.lo" ;; 607438889Sjdp tic30_coff_vec) tb="$tb coff-tic30.lo" ;; 607577298Sobrien tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; 607677298Sobrien tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; 607777298Sobrien tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; 607877298Sobrien tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; 607977298Sobrien tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; 608077298Sobrien tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; 608160484Sobrien tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; 608260484Sobrien versados_vec) tb="$tb versados.lo" ;; 608360484Sobrien vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" 608460484Sobrien target64=true ;; 608560484Sobrien vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; 608660484Sobrien w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; 608738889Sjdp we32kcoff_vec) tb="$tb coff-we32k.lo" ;; 608838889Sjdp z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; 608933965Sjdp 609033965Sjdp "") ;; 609133965Sjdp *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;; 609233965Sjdp esac 609333965Sjdpdone 609433965Sjdp 609533965Sjdp# Target architecture .o files. 609633965Sjdp# A couple of CPUs use shorter file names to avoid problems on DOS 609733965Sjdp# filesystems. 609838889Sjdpta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 609933965Sjdp 610033965Sjdp# Weed out duplicate .o files. 610133965Sjdpf="" 610233965Sjdpfor i in $tb ; do 610333965Sjdp case " $f " in 610433965Sjdp *" $i "*) ;; 610533965Sjdp *) f="$f $i" ;; 610633965Sjdp esac 610733965Sjdpdone 610833965Sjdptb="$f" 610933965Sjdp 611033965Sjdpf="" 611133965Sjdpfor i in $ta ; do 611233965Sjdp case " $f " in 611333965Sjdp *" $i "*) ;; 611433965Sjdp *) f="$f $i" ;; 611533965Sjdp esac 611633965Sjdpdone 611733965Sjdpta="$f" 611833965Sjdp 611933965Sjdpbfd_backends="$tb" 612033965Sjdpbfd_machines="$ta" 612133965Sjdp 612233965Sjdpif test x${all_targets} = xtrue ; then 612333965Sjdp bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 612433965Sjdp bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 612533965Sjdp selvecs= 612633965Sjdp havevecs= 612733965Sjdp selarchs= 612833965Sjdpelse # all_targets is true 612933965Sjdp # Only set these if they will be nonempty, for the clever echo. 613033965Sjdp havevecs= 613133965Sjdp test -n "$selvecs" && 613233965Sjdp havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 613333965Sjdp test -n "$selvecs" && 613433965Sjdp selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 613533965Sjdp test -n "$selarchs" && 613633965Sjdp selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 613733965Sjdpfi # all_targets is true 613833965Sjdp 613933965Sjdpcase ${host64}-${target64}-${want64} in 614033965Sjdp *true*) 614133965Sjdp wordsize=64 614233965Sjdp all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 614333965Sjdp if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then 614433965Sjdp echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2 614533965Sjdp echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2 614633965Sjdp fi 614733965Sjdp ;; 614833965Sjdp false-false-false) 614933965Sjdp wordsize=32 615033965Sjdp all_backends='$(BFD32_BACKENDS)' 615133965Sjdp ;; 615233965Sjdpesac 615333965Sjdp 615433965Sjdp 615533965Sjdp 615633965Sjdp 615733965Sjdp 615833965Sjdp 615933965Sjdptdefaults="" 616033965Sjdptest -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 616133965Sjdptest -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 616233965Sjdptest -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 616333965Sjdptest -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" 616433965Sjdp 616533965Sjdp 616633965Sjdpfor ac_hdr in unistd.h 616733965Sjdpdo 616833965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 616933965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 617078828Sobrienecho "configure:6171: checking for $ac_hdr" >&5 617133965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 617233965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 617333965Sjdpelse 617433965Sjdp cat > conftest.$ac_ext <<EOF 617578828Sobrien#line 6176 "configure" 617633965Sjdp#include "confdefs.h" 617733965Sjdp#include <$ac_hdr> 617833965SjdpEOF 617933965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 618078828Sobrien{ (eval echo configure:6181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 618160484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 618233965Sjdpif test -z "$ac_err"; then 618333965Sjdp rm -rf conftest* 618433965Sjdp eval "ac_cv_header_$ac_safe=yes" 618533965Sjdpelse 618633965Sjdp echo "$ac_err" >&5 618733965Sjdp echo "configure: failed program was:" >&5 618833965Sjdp cat conftest.$ac_ext >&5 618933965Sjdp rm -rf conftest* 619033965Sjdp eval "ac_cv_header_$ac_safe=no" 619133965Sjdpfi 619233965Sjdprm -f conftest* 619333965Sjdpfi 619433965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 619533965Sjdp echo "$ac_t""yes" 1>&6 619633965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 619733965Sjdp cat >> confdefs.h <<EOF 619833965Sjdp#define $ac_tr_hdr 1 619933965SjdpEOF 620033965Sjdp 620133965Sjdpelse 620233965Sjdp echo "$ac_t""no" 1>&6 620333965Sjdpfi 620433965Sjdpdone 620533965Sjdp 620633965Sjdpfor ac_func in getpagesize 620733965Sjdpdo 620833965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 620978828Sobrienecho "configure:6210: checking for $ac_func" >&5 621033965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 621133965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 621233965Sjdpelse 621333965Sjdp cat > conftest.$ac_ext <<EOF 621478828Sobrien#line 6215 "configure" 621533965Sjdp#include "confdefs.h" 621633965Sjdp/* System header to define __stub macros and hopefully few prototypes, 621733965Sjdp which can conflict with char $ac_func(); below. */ 621833965Sjdp#include <assert.h> 621933965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 622033965Sjdp/* We use char because int might match the return type of a gcc2 622133965Sjdp builtin and then its argument prototype would still apply. */ 622233965Sjdpchar $ac_func(); 622333965Sjdp 622433965Sjdpint main() { 622533965Sjdp 622633965Sjdp/* The GNU C library defines this for functions which it implements 622733965Sjdp to always fail with ENOSYS. Some functions are actually named 622833965Sjdp something starting with __ and the normal name is an alias. */ 622933965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 623033965Sjdpchoke me 623133965Sjdp#else 623233965Sjdp$ac_func(); 623333965Sjdp#endif 623433965Sjdp 623533965Sjdp; return 0; } 623633965SjdpEOF 623778828Sobrienif { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 623833965Sjdp rm -rf conftest* 623933965Sjdp eval "ac_cv_func_$ac_func=yes" 624033965Sjdpelse 624133965Sjdp echo "configure: failed program was:" >&5 624233965Sjdp cat conftest.$ac_ext >&5 624333965Sjdp rm -rf conftest* 624433965Sjdp eval "ac_cv_func_$ac_func=no" 624533965Sjdpfi 624633965Sjdprm -f conftest* 624733965Sjdpfi 624833965Sjdp 624933965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 625033965Sjdp echo "$ac_t""yes" 1>&6 625133965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 625233965Sjdp cat >> confdefs.h <<EOF 625333965Sjdp#define $ac_tr_func 1 625433965SjdpEOF 625533965Sjdp 625633965Sjdpelse 625733965Sjdp echo "$ac_t""no" 1>&6 625833965Sjdpfi 625933965Sjdpdone 626033965Sjdp 626133965Sjdpecho $ac_n "checking for working mmap""... $ac_c" 1>&6 626278828Sobrienecho "configure:6263: checking for working mmap" >&5 626333965Sjdpif eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 626433965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 626533965Sjdpelse 626633965Sjdp if test "$cross_compiling" = yes; then 626733965Sjdp ac_cv_func_mmap_fixed_mapped=no 626833965Sjdpelse 626933965Sjdp cat > conftest.$ac_ext <<EOF 627078828Sobrien#line 6271 "configure" 627133965Sjdp#include "confdefs.h" 627233965Sjdp 627333965Sjdp/* Thanks to Mike Haertel and Jim Avera for this test. 627433965Sjdp Here is a matrix of mmap possibilities: 627533965Sjdp mmap private not fixed 627633965Sjdp mmap private fixed at somewhere currently unmapped 627733965Sjdp mmap private fixed at somewhere already mapped 627833965Sjdp mmap shared not fixed 627933965Sjdp mmap shared fixed at somewhere currently unmapped 628033965Sjdp mmap shared fixed at somewhere already mapped 628133965Sjdp For private mappings, we should verify that changes cannot be read() 628233965Sjdp back from the file, nor mmap's back from the file at a different 628333965Sjdp address. (There have been systems where private was not correctly 628433965Sjdp implemented like the infamous i386 svr4.0, and systems where the 628533965Sjdp VM page cache was not coherent with the filesystem buffer cache 628633965Sjdp like early versions of FreeBSD and possibly contemporary NetBSD.) 628733965Sjdp For shared mappings, we should conversely verify that changes get 628833965Sjdp propogated back to all the places they're supposed to be. 628933965Sjdp 629033965Sjdp Grep wants private fixed already mapped. 629133965Sjdp The main things grep needs to know about mmap are: 629233965Sjdp * does it exist and is it safe to write into the mmap'd area 629333965Sjdp * how to use it (BSD variants) */ 629433965Sjdp#include <sys/types.h> 629533965Sjdp#include <fcntl.h> 629633965Sjdp#include <sys/mman.h> 629733965Sjdp 629833965Sjdp/* This mess was copied from the GNU getpagesize.h. */ 629933965Sjdp#ifndef HAVE_GETPAGESIZE 630077298Sobrien# ifdef HAVE_UNISTD_H 630177298Sobrien# include <unistd.h> 630277298Sobrien# endif 630333965Sjdp 630433965Sjdp/* Assume that all systems that can run configure have sys/param.h. */ 630533965Sjdp# ifndef HAVE_SYS_PARAM_H 630633965Sjdp# define HAVE_SYS_PARAM_H 1 630733965Sjdp# endif 630833965Sjdp 630933965Sjdp# ifdef _SC_PAGESIZE 631033965Sjdp# define getpagesize() sysconf(_SC_PAGESIZE) 631133965Sjdp# else /* no _SC_PAGESIZE */ 631233965Sjdp# ifdef HAVE_SYS_PARAM_H 631333965Sjdp# include <sys/param.h> 631433965Sjdp# ifdef EXEC_PAGESIZE 631533965Sjdp# define getpagesize() EXEC_PAGESIZE 631633965Sjdp# else /* no EXEC_PAGESIZE */ 631733965Sjdp# ifdef NBPG 631833965Sjdp# define getpagesize() NBPG * CLSIZE 631933965Sjdp# ifndef CLSIZE 632033965Sjdp# define CLSIZE 1 632133965Sjdp# endif /* no CLSIZE */ 632233965Sjdp# else /* no NBPG */ 632333965Sjdp# ifdef NBPC 632433965Sjdp# define getpagesize() NBPC 632533965Sjdp# else /* no NBPC */ 632633965Sjdp# ifdef PAGESIZE 632733965Sjdp# define getpagesize() PAGESIZE 632833965Sjdp# endif /* PAGESIZE */ 632933965Sjdp# endif /* no NBPC */ 633033965Sjdp# endif /* no NBPG */ 633133965Sjdp# endif /* no EXEC_PAGESIZE */ 633233965Sjdp# else /* no HAVE_SYS_PARAM_H */ 633333965Sjdp# define getpagesize() 8192 /* punt totally */ 633433965Sjdp# endif /* no HAVE_SYS_PARAM_H */ 633533965Sjdp# endif /* no _SC_PAGESIZE */ 633633965Sjdp 633733965Sjdp#endif /* no HAVE_GETPAGESIZE */ 633833965Sjdp 633933965Sjdp#ifdef __cplusplus 634033965Sjdpextern "C" { void *malloc(unsigned); } 634133965Sjdp#else 634233965Sjdpchar *malloc(); 634333965Sjdp#endif 634433965Sjdp 634533965Sjdpint 634633965Sjdpmain() 634733965Sjdp{ 634833965Sjdp char *data, *data2, *data3; 634933965Sjdp int i, pagesize; 635033965Sjdp int fd; 635133965Sjdp 635233965Sjdp pagesize = getpagesize(); 635333965Sjdp 635433965Sjdp /* 635533965Sjdp * First, make a file with some known garbage in it. 635633965Sjdp */ 635777298Sobrien data = malloc(pagesize); 635833965Sjdp if (!data) 635933965Sjdp exit(1); 636033965Sjdp for (i = 0; i < pagesize; ++i) 636133965Sjdp *(data + i) = rand(); 636233965Sjdp umask(0); 636333965Sjdp fd = creat("conftestmmap", 0600); 636433965Sjdp if (fd < 0) 636533965Sjdp exit(1); 636633965Sjdp if (write(fd, data, pagesize) != pagesize) 636733965Sjdp exit(1); 636833965Sjdp close(fd); 636933965Sjdp 637033965Sjdp /* 637133965Sjdp * Next, try to mmap the file at a fixed address which 637233965Sjdp * already has something else allocated at it. If we can, 637333965Sjdp * also make sure that we see the same garbage. 637433965Sjdp */ 637533965Sjdp fd = open("conftestmmap", O_RDWR); 637633965Sjdp if (fd < 0) 637733965Sjdp exit(1); 637877298Sobrien data2 = malloc(2 * pagesize); 637933965Sjdp if (!data2) 638033965Sjdp exit(1); 638133965Sjdp data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 638233965Sjdp if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 638333965Sjdp MAP_PRIVATE | MAP_FIXED, fd, 0L)) 638433965Sjdp exit(1); 638533965Sjdp for (i = 0; i < pagesize; ++i) 638633965Sjdp if (*(data + i) != *(data2 + i)) 638733965Sjdp exit(1); 638833965Sjdp 638933965Sjdp /* 639033965Sjdp * Finally, make sure that changes to the mapped area 639133965Sjdp * do not percolate back to the file as seen by read(). 639233965Sjdp * (This is a bug on some variants of i386 svr4.0.) 639333965Sjdp */ 639433965Sjdp for (i = 0; i < pagesize; ++i) 639533965Sjdp *(data2 + i) = *(data2 + i) + 1; 639677298Sobrien data3 = malloc(pagesize); 639733965Sjdp if (!data3) 639833965Sjdp exit(1); 639933965Sjdp if (read(fd, data3, pagesize) != pagesize) 640033965Sjdp exit(1); 640133965Sjdp for (i = 0; i < pagesize; ++i) 640233965Sjdp if (*(data + i) != *(data3 + i)) 640333965Sjdp exit(1); 640433965Sjdp close(fd); 640533965Sjdp unlink("conftestmmap"); 640633965Sjdp exit(0); 640733965Sjdp} 640833965Sjdp 640933965SjdpEOF 641078828Sobrienif { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 641133965Sjdpthen 641233965Sjdp ac_cv_func_mmap_fixed_mapped=yes 641333965Sjdpelse 641433965Sjdp echo "configure: failed program was:" >&5 641533965Sjdp cat conftest.$ac_ext >&5 641633965Sjdp rm -fr conftest* 641733965Sjdp ac_cv_func_mmap_fixed_mapped=no 641833965Sjdpfi 641933965Sjdprm -fr conftest* 642033965Sjdpfi 642133965Sjdp 642233965Sjdpfi 642333965Sjdp 642433965Sjdpecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 642533965Sjdpif test $ac_cv_func_mmap_fixed_mapped = yes; then 642633965Sjdp cat >> confdefs.h <<\EOF 642733965Sjdp#define HAVE_MMAP 1 642833965SjdpEOF 642933965Sjdp 643033965Sjdpfi 643133965Sjdp 643233965Sjdpfor ac_func in madvise mprotect 643333965Sjdpdo 643433965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 643578828Sobrienecho "configure:6436: checking for $ac_func" >&5 643633965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 643733965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 643833965Sjdpelse 643933965Sjdp cat > conftest.$ac_ext <<EOF 644078828Sobrien#line 6441 "configure" 644133965Sjdp#include "confdefs.h" 644233965Sjdp/* System header to define __stub macros and hopefully few prototypes, 644333965Sjdp which can conflict with char $ac_func(); below. */ 644433965Sjdp#include <assert.h> 644533965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 644633965Sjdp/* We use char because int might match the return type of a gcc2 644733965Sjdp builtin and then its argument prototype would still apply. */ 644833965Sjdpchar $ac_func(); 644933965Sjdp 645033965Sjdpint main() { 645133965Sjdp 645233965Sjdp/* The GNU C library defines this for functions which it implements 645333965Sjdp to always fail with ENOSYS. Some functions are actually named 645433965Sjdp something starting with __ and the normal name is an alias. */ 645533965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 645633965Sjdpchoke me 645733965Sjdp#else 645833965Sjdp$ac_func(); 645933965Sjdp#endif 646033965Sjdp 646133965Sjdp; return 0; } 646233965SjdpEOF 646378828Sobrienif { (eval echo configure:6464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 646433965Sjdp rm -rf conftest* 646533965Sjdp eval "ac_cv_func_$ac_func=yes" 646633965Sjdpelse 646733965Sjdp echo "configure: failed program was:" >&5 646833965Sjdp cat conftest.$ac_ext >&5 646933965Sjdp rm -rf conftest* 647033965Sjdp eval "ac_cv_func_$ac_func=no" 647133965Sjdpfi 647233965Sjdprm -f conftest* 647333965Sjdpfi 647433965Sjdp 647533965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 647633965Sjdp echo "$ac_t""yes" 1>&6 647733965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 647833965Sjdp cat >> confdefs.h <<EOF 647933965Sjdp#define $ac_tr_func 1 648033965SjdpEOF 648133965Sjdp 648233965Sjdpelse 648333965Sjdp echo "$ac_t""no" 1>&6 648433965Sjdpfi 648533965Sjdpdone 648633965Sjdp 648733965Sjdpcase ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 648833965Sjdp true+yes ) cat >> confdefs.h <<\EOF 648933965Sjdp#define USE_MMAP 1 649033965SjdpEOF 649133965Sjdp ;; 649233965Sjdpesac 649333965Sjdp 649433965Sjdprm -f doc/config.status 649533965Sjdptrap '' 1 2 15 649633965Sjdpcat > confcache <<\EOF 649733965Sjdp# This file is a shell script that caches the results of configure 649833965Sjdp# tests run on this system so they can be shared between configure 649933965Sjdp# scripts and configure runs. It is not useful on other systems. 650033965Sjdp# If it contains results you don't want to keep, you may remove or edit it. 650133965Sjdp# 650233965Sjdp# By default, configure uses ./config.cache as the cache file, 650333965Sjdp# creating it if it does not exist already. You can give configure 650433965Sjdp# the --cache-file=FILE option to use a different cache file; that is 650533965Sjdp# what configure does when it calls configure scripts in 650633965Sjdp# subdirectories, so they share the cache. 650733965Sjdp# Giving --cache-file=/dev/null disables caching, for debugging configure. 650833965Sjdp# config.status only pays attention to the cache file if you give it the 650933965Sjdp# --recheck option to rerun configure. 651033965Sjdp# 651133965SjdpEOF 651233965Sjdp# The following way of writing the cache mishandles newlines in values, 651333965Sjdp# but we know of no workaround that is simple, portable, and efficient. 651433965Sjdp# So, don't put newlines in cache variables' values. 651533965Sjdp# Ultrix sh set writes to stderr and can't be redirected directly, 651633965Sjdp# and sets the high bit in the cache file unless we assign to the vars. 651733965Sjdp(set) 2>&1 | 651860484Sobrien case `(ac_space=' '; set | grep ac_space) 2>&1` in 651933965Sjdp *ac_space=\ *) 652033965Sjdp # `set' does not quote correctly, so add quotes (double-quote substitution 652133965Sjdp # turns \\\\ into \\, and sed turns \\ into \). 652233965Sjdp sed -n \ 652333965Sjdp -e "s/'/'\\\\''/g" \ 652433965Sjdp -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 652533965Sjdp ;; 652633965Sjdp *) 652733965Sjdp # `set' quotes correctly as required by POSIX, so do not add quotes. 652833965Sjdp sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 652933965Sjdp ;; 653033965Sjdp esac >> confcache 653133965Sjdpif cmp -s $cache_file confcache; then 653233965Sjdp : 653333965Sjdpelse 653433965Sjdp if test -w $cache_file; then 653533965Sjdp echo "updating cache $cache_file" 653633965Sjdp cat confcache > $cache_file 653733965Sjdp else 653833965Sjdp echo "not updating unwritable cache $cache_file" 653933965Sjdp fi 654033965Sjdpfi 654133965Sjdprm -f confcache 654233965Sjdp 654333965Sjdptrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 654433965Sjdp 654533965Sjdptest "x$prefix" = xNONE && prefix=$ac_default_prefix 654633965Sjdp# Let make expand exec_prefix. 654733965Sjdptest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 654833965Sjdp 654933965Sjdp# Any assignment to VPATH causes Sun make to only execute 655033965Sjdp# the first set of double-colon rules, so remove it if not needed. 655133965Sjdp# If there is a colon in the path, we need to keep it. 655233965Sjdpif test "x$srcdir" = x.; then 655333965Sjdp ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 655433965Sjdpfi 655533965Sjdp 655633965Sjdptrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 655733965Sjdp 655833965SjdpDEFS=-DHAVE_CONFIG_H 655933965Sjdp 656033965Sjdp# Without the "./", some shells look in PATH for config.status. 656133965Sjdp: ${CONFIG_STATUS=./config.status} 656233965Sjdp 656333965Sjdpecho creating $CONFIG_STATUS 656433965Sjdprm -f $CONFIG_STATUS 656533965Sjdpcat > $CONFIG_STATUS <<EOF 656633965Sjdp#! /bin/sh 656733965Sjdp# Generated automatically by configure. 656833965Sjdp# Run this file to recreate the current configuration. 656933965Sjdp# This directory was configured as follows, 657033965Sjdp# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 657133965Sjdp# 657233965Sjdp# $0 $ac_configure_args 657333965Sjdp# 657433965Sjdp# Compiler output produced by configure, useful for debugging 657533965Sjdp# configure, is in ./config.log if it exists. 657633965Sjdp 657733965Sjdpac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 657833965Sjdpfor ac_option 657933965Sjdpdo 658033965Sjdp case "\$ac_option" in 658133965Sjdp -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 658233965Sjdp echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 658333965Sjdp exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 658433965Sjdp -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 658560484Sobrien echo "$CONFIG_STATUS generated by autoconf version 2.13" 658633965Sjdp exit 0 ;; 658733965Sjdp -help | --help | --hel | --he | --h) 658833965Sjdp echo "\$ac_cs_usage"; exit 0 ;; 658933965Sjdp *) echo "\$ac_cs_usage"; exit 1 ;; 659033965Sjdp esac 659133965Sjdpdone 659233965Sjdp 659333965Sjdpac_given_srcdir=$srcdir 659433965Sjdpac_given_INSTALL="$INSTALL" 659533965Sjdp 659660484Sobrientrap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 659733965SjdpEOF 659833965Sjdpcat >> $CONFIG_STATUS <<EOF 659933965Sjdp 660033965Sjdp# Protect against being on the right side of a sed subst in config.status. 660133965Sjdpsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 660233965Sjdp s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 660333965Sjdp$ac_vpsub 660433965Sjdp$extrasub 660538889Sjdps%@SHELL@%$SHELL%g 660633965Sjdps%@CFLAGS@%$CFLAGS%g 660733965Sjdps%@CPPFLAGS@%$CPPFLAGS%g 660833965Sjdps%@CXXFLAGS@%$CXXFLAGS%g 660960484Sobriens%@FFLAGS@%$FFLAGS%g 661033965Sjdps%@DEFS@%$DEFS%g 661133965Sjdps%@LDFLAGS@%$LDFLAGS%g 661233965Sjdps%@LIBS@%$LIBS%g 661333965Sjdps%@exec_prefix@%$exec_prefix%g 661433965Sjdps%@prefix@%$prefix%g 661533965Sjdps%@program_transform_name@%$program_transform_name%g 661633965Sjdps%@bindir@%$bindir%g 661733965Sjdps%@sbindir@%$sbindir%g 661833965Sjdps%@libexecdir@%$libexecdir%g 661933965Sjdps%@datadir@%$datadir%g 662033965Sjdps%@sysconfdir@%$sysconfdir%g 662133965Sjdps%@sharedstatedir@%$sharedstatedir%g 662233965Sjdps%@localstatedir@%$localstatedir%g 662333965Sjdps%@libdir@%$libdir%g 662433965Sjdps%@includedir@%$includedir%g 662533965Sjdps%@oldincludedir@%$oldincludedir%g 662633965Sjdps%@infodir@%$infodir%g 662733965Sjdps%@mandir@%$mandir%g 662833965Sjdps%@host@%$host%g 662933965Sjdps%@host_alias@%$host_alias%g 663033965Sjdps%@host_cpu@%$host_cpu%g 663133965Sjdps%@host_vendor@%$host_vendor%g 663233965Sjdps%@host_os@%$host_os%g 663333965Sjdps%@target@%$target%g 663433965Sjdps%@target_alias@%$target_alias%g 663533965Sjdps%@target_cpu@%$target_cpu%g 663633965Sjdps%@target_vendor@%$target_vendor%g 663733965Sjdps%@target_os@%$target_os%g 663833965Sjdps%@build@%$build%g 663933965Sjdps%@build_alias@%$build_alias%g 664033965Sjdps%@build_cpu@%$build_cpu%g 664133965Sjdps%@build_vendor@%$build_vendor%g 664233965Sjdps%@build_os@%$build_os%g 664378828Sobriens%@CC@%$CC%g 664433965Sjdps%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 664560484Sobriens%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 664633965Sjdps%@INSTALL_DATA@%$INSTALL_DATA%g 664738889Sjdps%@PACKAGE@%$PACKAGE%g 664833965Sjdps%@VERSION@%$VERSION%g 664938889Sjdps%@ACLOCAL@%$ACLOCAL%g 665038889Sjdps%@AUTOCONF@%$AUTOCONF%g 665138889Sjdps%@AUTOMAKE@%$AUTOMAKE%g 665238889Sjdps%@AUTOHEADER@%$AUTOHEADER%g 665338889Sjdps%@MAKEINFO@%$MAKEINFO%g 665438889Sjdps%@SET_MAKE@%$SET_MAKE%g 665538889Sjdps%@AR@%$AR%g 665638889Sjdps%@RANLIB@%$RANLIB%g 665738889Sjdps%@LN_S@%$LN_S%g 665877298Sobriens%@OBJEXT@%$OBJEXT%g 665977298Sobriens%@EXEEXT@%$EXEEXT%g 666077298Sobriens%@STRIP@%$STRIP%g 666138889Sjdps%@LIBTOOL@%$LIBTOOL%g 666277298Sobriens%@WARN_CFLAGS@%$WARN_CFLAGS%g 666360484Sobriens%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g 666460484Sobriens%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g 666538889Sjdps%@MAINT@%$MAINT%g 666660484Sobriens%@CPP@%$CPP%g 666760484Sobriens%@ALLOCA@%$ALLOCA%g 666860484Sobriens%@USE_NLS@%$USE_NLS%g 666960484Sobriens%@MSGFMT@%$MSGFMT%g 667060484Sobriens%@GMSGFMT@%$GMSGFMT%g 667160484Sobriens%@XGETTEXT@%$XGETTEXT%g 667260484Sobriens%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g 667360484Sobriens%@CATALOGS@%$CATALOGS%g 667460484Sobriens%@CATOBJEXT@%$CATOBJEXT%g 667560484Sobriens%@DATADIRNAME@%$DATADIRNAME%g 667660484Sobriens%@GMOFILES@%$GMOFILES%g 667760484Sobriens%@INSTOBJEXT@%$INSTOBJEXT%g 667860484Sobriens%@INTLDEPS@%$INTLDEPS%g 667960484Sobriens%@INTLLIBS@%$INTLLIBS%g 668060484Sobriens%@INTLOBJS@%$INTLOBJS%g 668160484Sobriens%@POFILES@%$POFILES%g 668260484Sobriens%@POSUB@%$POSUB%g 668360484Sobriens%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g 668460484Sobriens%@GT_NO@%$GT_NO%g 668560484Sobriens%@GT_YES@%$GT_YES%g 668660484Sobriens%@MKINSTALLDIRS@%$MKINSTALLDIRS%g 668760484Sobriens%@l@%$l%g 668838889Sjdps%@HDEFINES@%$HDEFINES%g 668933965Sjdps%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g 669033965Sjdps%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g 669133965Sjdps%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g 669233965Sjdps%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g 669333965Sjdps%@CC_FOR_BUILD@%$CC_FOR_BUILD%g 669438889Sjdps%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g 669533965Sjdps%@COREFILE@%$COREFILE%g 669633965Sjdps%@COREFLAG@%$COREFLAG%g 669760484Sobriens%@WIN32LDFLAGS@%$WIN32LDFLAGS%g 669860484Sobriens%@WIN32LIBADD@%$WIN32LIBADD%g 669933965Sjdps%@TDEFINES@%$TDEFINES%g 670033965Sjdps%@wordsize@%$wordsize%g 670133965Sjdps%@all_backends@%$all_backends%g 670233965Sjdps%@bfd_backends@%$bfd_backends%g 670333965Sjdps%@bfd_machines@%$bfd_machines%g 670433965Sjdps%@tdefaults@%$tdefaults%g 670533965Sjdp 670633965SjdpCEOF 670733965SjdpEOF 670833965Sjdp 670933965Sjdpcat >> $CONFIG_STATUS <<\EOF 671033965Sjdp 671133965Sjdp# Split the substitutions into bite-sized pieces for seds with 671233965Sjdp# small command number limits, like on Digital OSF/1 and HP-UX. 671333965Sjdpac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 671433965Sjdpac_file=1 # Number of current file. 671533965Sjdpac_beg=1 # First line for current file. 671633965Sjdpac_end=$ac_max_sed_cmds # Line after last line for current file. 671733965Sjdpac_more_lines=: 671833965Sjdpac_sed_cmds="" 671933965Sjdpwhile $ac_more_lines; do 672033965Sjdp if test $ac_beg -gt 1; then 672133965Sjdp sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 672233965Sjdp else 672333965Sjdp sed "${ac_end}q" conftest.subs > conftest.s$ac_file 672433965Sjdp fi 672533965Sjdp if test ! -s conftest.s$ac_file; then 672633965Sjdp ac_more_lines=false 672733965Sjdp rm -f conftest.s$ac_file 672833965Sjdp else 672933965Sjdp if test -z "$ac_sed_cmds"; then 673033965Sjdp ac_sed_cmds="sed -f conftest.s$ac_file" 673133965Sjdp else 673233965Sjdp ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 673333965Sjdp fi 673433965Sjdp ac_file=`expr $ac_file + 1` 673533965Sjdp ac_beg=$ac_end 673633965Sjdp ac_end=`expr $ac_end + $ac_max_sed_cmds` 673733965Sjdp fi 673833965Sjdpdone 673933965Sjdpif test -z "$ac_sed_cmds"; then 674033965Sjdp ac_sed_cmds=cat 674133965Sjdpfi 674233965SjdpEOF 674333965Sjdp 674433965Sjdpcat >> $CONFIG_STATUS <<EOF 674533965Sjdp 674660484SobrienCONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"} 674733965SjdpEOF 674833965Sjdpcat >> $CONFIG_STATUS <<\EOF 674933965Sjdpfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 675033965Sjdp # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 675133965Sjdp case "$ac_file" in 675233965Sjdp *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 675333965Sjdp ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 675433965Sjdp *) ac_file_in="${ac_file}.in" ;; 675533965Sjdp esac 675633965Sjdp 675733965Sjdp # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 675833965Sjdp 675933965Sjdp # Remove last slash and all that follows it. Not all systems have dirname. 676033965Sjdp ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 676133965Sjdp if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 676233965Sjdp # The file is in a subdirectory. 676333965Sjdp test ! -d "$ac_dir" && mkdir "$ac_dir" 676433965Sjdp ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 676533965Sjdp # A "../" for each directory in $ac_dir_suffix. 676633965Sjdp ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 676733965Sjdp else 676833965Sjdp ac_dir_suffix= ac_dots= 676933965Sjdp fi 677033965Sjdp 677133965Sjdp case "$ac_given_srcdir" in 677233965Sjdp .) srcdir=. 677333965Sjdp if test -z "$ac_dots"; then top_srcdir=. 677433965Sjdp else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 677533965Sjdp /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 677633965Sjdp *) # Relative path. 677733965Sjdp srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 677833965Sjdp top_srcdir="$ac_dots$ac_given_srcdir" ;; 677933965Sjdp esac 678033965Sjdp 678133965Sjdp case "$ac_given_INSTALL" in 678233965Sjdp [/$]*) INSTALL="$ac_given_INSTALL" ;; 678333965Sjdp *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 678433965Sjdp esac 678533965Sjdp 678633965Sjdp echo creating "$ac_file" 678733965Sjdp rm -f "$ac_file" 678833965Sjdp configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 678933965Sjdp case "$ac_file" in 679033965Sjdp *Makefile*) ac_comsub="1i\\ 679133965Sjdp# $configure_input" ;; 679233965Sjdp *) ac_comsub= ;; 679333965Sjdp esac 679433965Sjdp 679533965Sjdp ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 679633965Sjdp sed -e "$ac_comsub 679733965Sjdps%@configure_input@%$configure_input%g 679833965Sjdps%@srcdir@%$srcdir%g 679933965Sjdps%@top_srcdir@%$top_srcdir%g 680033965Sjdps%@INSTALL@%$INSTALL%g 680133965Sjdp" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 680233965Sjdpfi; done 680333965Sjdprm -f conftest.s* 680433965Sjdp 680533965Sjdp# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 680633965Sjdp# NAME is the cpp macro being defined and VALUE is the value it is being given. 680733965Sjdp# 680833965Sjdp# ac_d sets the value in "#define NAME VALUE" lines. 680933965Sjdpac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 681033965Sjdpac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 681133965Sjdpac_dC='\3' 681233965Sjdpac_dD='%g' 681333965Sjdp# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 681433965Sjdpac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 681533965Sjdpac_uB='\([ ]\)%\1#\2define\3' 681633965Sjdpac_uC=' ' 681733965Sjdpac_uD='\4%g' 681833965Sjdp# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 681933965Sjdpac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 682033965Sjdpac_eB='$%\1#\2define\3' 682133965Sjdpac_eC=' ' 682233965Sjdpac_eD='%g' 682333965Sjdp 682433965Sjdpif test "${CONFIG_HEADERS+set}" != set; then 682533965SjdpEOF 682633965Sjdpcat >> $CONFIG_STATUS <<EOF 682733965Sjdp CONFIG_HEADERS="config.h:config.in" 682833965SjdpEOF 682933965Sjdpcat >> $CONFIG_STATUS <<\EOF 683033965Sjdpfi 683133965Sjdpfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 683233965Sjdp # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 683333965Sjdp case "$ac_file" in 683433965Sjdp *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 683533965Sjdp ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 683633965Sjdp *) ac_file_in="${ac_file}.in" ;; 683733965Sjdp esac 683833965Sjdp 683933965Sjdp echo creating $ac_file 684033965Sjdp 684133965Sjdp rm -f conftest.frag conftest.in conftest.out 684233965Sjdp ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 684333965Sjdp cat $ac_file_inputs > conftest.in 684433965Sjdp 684533965SjdpEOF 684633965Sjdp 684733965Sjdp# Transform confdefs.h into a sed script conftest.vals that substitutes 684833965Sjdp# the proper values into config.h.in to produce config.h. And first: 684933965Sjdp# Protect against being on the right side of a sed subst in config.status. 685033965Sjdp# Protect against being in an unquoted here document in config.status. 685133965Sjdprm -f conftest.vals 685233965Sjdpcat > conftest.hdr <<\EOF 685333965Sjdps/[\\&%]/\\&/g 685433965Sjdps%[\\$`]%\\&%g 685533965Sjdps%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 685633965Sjdps%ac_d%ac_u%gp 685733965Sjdps%ac_u%ac_e%gp 685833965SjdpEOF 685933965Sjdpsed -n -f conftest.hdr confdefs.h > conftest.vals 686033965Sjdprm -f conftest.hdr 686133965Sjdp 686233965Sjdp# This sed command replaces #undef with comments. This is necessary, for 686333965Sjdp# example, in the case of _POSIX_SOURCE, which is predefined and required 686433965Sjdp# on some systems where configure will not decide to define it. 686533965Sjdpcat >> conftest.vals <<\EOF 686633965Sjdps%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 686733965SjdpEOF 686833965Sjdp 686933965Sjdp# Break up conftest.vals because some shells have a limit on 687033965Sjdp# the size of here documents, and old seds have small limits too. 687133965Sjdp 687233965Sjdprm -f conftest.tail 687333965Sjdpwhile : 687433965Sjdpdo 687533965Sjdp ac_lines=`grep -c . conftest.vals` 687633965Sjdp # grep -c gives empty output for an empty file on some AIX systems. 687733965Sjdp if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 687833965Sjdp # Write a limited-size here document to conftest.frag. 687933965Sjdp echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 688033965Sjdp sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 688133965Sjdp echo 'CEOF 688233965Sjdp sed -f conftest.frag conftest.in > conftest.out 688333965Sjdp rm -f conftest.in 688433965Sjdp mv conftest.out conftest.in 688533965Sjdp' >> $CONFIG_STATUS 688633965Sjdp sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 688733965Sjdp rm -f conftest.vals 688833965Sjdp mv conftest.tail conftest.vals 688933965Sjdpdone 689033965Sjdprm -f conftest.vals 689133965Sjdp 689233965Sjdpcat >> $CONFIG_STATUS <<\EOF 689333965Sjdp rm -f conftest.frag conftest.h 689433965Sjdp echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 689533965Sjdp cat conftest.in >> conftest.h 689633965Sjdp rm -f conftest.in 689733965Sjdp if cmp -s $ac_file conftest.h 2>/dev/null; then 689833965Sjdp echo "$ac_file is unchanged" 689933965Sjdp rm -f conftest.h 690033965Sjdp else 690133965Sjdp # Remove last slash and all that follows it. Not all systems have dirname. 690233965Sjdp ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 690333965Sjdp if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 690433965Sjdp # The file is in a subdirectory. 690533965Sjdp test ! -d "$ac_dir" && mkdir "$ac_dir" 690633965Sjdp fi 690733965Sjdp rm -f $ac_file 690833965Sjdp mv conftest.h $ac_file 690933965Sjdp fi 691033965Sjdpfi; done 691133965Sjdp 691233965SjdpEOF 691333965Sjdpcat >> $CONFIG_STATUS <<EOF 691433965Sjdp 691538889Sjdp 691633965SjdpEOF 691733965Sjdpcat >> $CONFIG_STATUS <<\EOF 691838889Sjdptest -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 691978828Sobriensed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile 692033965Sjdpexit 0 692133965SjdpEOF 692233965Sjdpchmod +x $CONFIG_STATUS 692333965Sjdprm -fr confdefs* $ac_clean_files 692433965Sjdptest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 692533965Sjdp 692678828Sobrien 6927