configure revision 89857
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= 6033965Sjdpsrcdir= 6133965Sjdptarget=NONE 6233965Sjdpverbose= 6333965Sjdpx_includes=NONE 6433965Sjdpx_libraries=NONE 6533965Sjdpbindir='${exec_prefix}/bin' 6633965Sjdpsbindir='${exec_prefix}/sbin' 6733965Sjdplibexecdir='${exec_prefix}/libexec' 6833965Sjdpdatadir='${prefix}/share' 6933965Sjdpsysconfdir='${prefix}/etc' 7033965Sjdpsharedstatedir='${prefix}/com' 7133965Sjdplocalstatedir='${prefix}/var' 7233965Sjdplibdir='${exec_prefix}/lib' 7333965Sjdpincludedir='${prefix}/include' 7433965Sjdpoldincludedir='/usr/include' 7533965Sjdpinfodir='${prefix}/info' 7633965Sjdpmandir='${prefix}/man' 7733965Sjdp 7833965Sjdp# Initialize some other variables. 7933965Sjdpsubdirs= 8033965SjdpMFLAGS= MAKEFLAGS= 8138889SjdpSHELL=${CONFIG_SHELL-/bin/sh} 8233965Sjdp# Maximum number of lines to put in a shell here document. 8333965Sjdpac_max_here_lines=12 8433965Sjdp 8533965Sjdpac_prev= 8633965Sjdpfor ac_option 8733965Sjdpdo 8833965Sjdp 8933965Sjdp # If the previous option needs an argument, assign it. 9033965Sjdp if test -n "$ac_prev"; then 9133965Sjdp eval "$ac_prev=\$ac_option" 9233965Sjdp ac_prev= 9333965Sjdp continue 9433965Sjdp fi 9533965Sjdp 9633965Sjdp case "$ac_option" in 9733965Sjdp -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 9833965Sjdp *) ac_optarg= ;; 9933965Sjdp esac 10033965Sjdp 10133965Sjdp # Accept the important Cygnus configure options, so we can diagnose typos. 10233965Sjdp 10333965Sjdp case "$ac_option" in 10433965Sjdp 10533965Sjdp -bindir | --bindir | --bindi | --bind | --bin | --bi) 10633965Sjdp ac_prev=bindir ;; 10733965Sjdp -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 10833965Sjdp bindir="$ac_optarg" ;; 10933965Sjdp 11033965Sjdp -build | --build | --buil | --bui | --bu) 11133965Sjdp ac_prev=build ;; 11233965Sjdp -build=* | --build=* | --buil=* | --bui=* | --bu=*) 11333965Sjdp build="$ac_optarg" ;; 11433965Sjdp 11533965Sjdp -cache-file | --cache-file | --cache-fil | --cache-fi \ 11633965Sjdp | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 11733965Sjdp ac_prev=cache_file ;; 11833965Sjdp -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 11933965Sjdp | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 12033965Sjdp cache_file="$ac_optarg" ;; 12133965Sjdp 12233965Sjdp -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 12333965Sjdp ac_prev=datadir ;; 12433965Sjdp -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 12533965Sjdp | --da=*) 12633965Sjdp datadir="$ac_optarg" ;; 12733965Sjdp 12833965Sjdp -disable-* | --disable-*) 12933965Sjdp ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 13033965Sjdp # Reject names that are not valid shell variable names. 13133965Sjdp if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 13233965Sjdp { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 13333965Sjdp fi 13433965Sjdp ac_feature=`echo $ac_feature| sed 's/-/_/g'` 13533965Sjdp eval "enable_${ac_feature}=no" ;; 13633965Sjdp 13733965Sjdp -enable-* | --enable-*) 13833965Sjdp ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 13933965Sjdp # Reject names that are not valid shell variable names. 14033965Sjdp if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 14133965Sjdp { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 14233965Sjdp fi 14333965Sjdp ac_feature=`echo $ac_feature| sed 's/-/_/g'` 14433965Sjdp case "$ac_option" in 14533965Sjdp *=*) ;; 14633965Sjdp *) ac_optarg=yes ;; 14733965Sjdp esac 14833965Sjdp eval "enable_${ac_feature}='$ac_optarg'" ;; 14933965Sjdp 15033965Sjdp -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 15133965Sjdp | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 15233965Sjdp | --exec | --exe | --ex) 15333965Sjdp ac_prev=exec_prefix ;; 15433965Sjdp -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 15533965Sjdp | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 15633965Sjdp | --exec=* | --exe=* | --ex=*) 15733965Sjdp exec_prefix="$ac_optarg" ;; 15833965Sjdp 15933965Sjdp -gas | --gas | --ga | --g) 16033965Sjdp # Obsolete; use --with-gas. 16133965Sjdp with_gas=yes ;; 16233965Sjdp 16333965Sjdp -help | --help | --hel | --he) 16433965Sjdp # Omit some internal or obsolete options to make the list less imposing. 16533965Sjdp # This message is too long to be a string in the A/UX 3.1 sh. 16633965Sjdp cat << EOF 16733965SjdpUsage: configure [options] [host] 16833965SjdpOptions: [defaults in brackets after descriptions] 16933965SjdpConfiguration: 17033965Sjdp --cache-file=FILE cache test results in FILE 17133965Sjdp --help print this message 17233965Sjdp --no-create do not create output files 17333965Sjdp --quiet, --silent do not print \`checking...' messages 17433965Sjdp --version print the version of autoconf that created configure 17533965SjdpDirectory and file names: 17633965Sjdp --prefix=PREFIX install architecture-independent files in PREFIX 17733965Sjdp [$ac_default_prefix] 17833965Sjdp --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 17933965Sjdp [same as prefix] 18033965Sjdp --bindir=DIR user executables in DIR [EPREFIX/bin] 18133965Sjdp --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 18233965Sjdp --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 18333965Sjdp --datadir=DIR read-only architecture-independent data in DIR 18433965Sjdp [PREFIX/share] 18533965Sjdp --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 18633965Sjdp --sharedstatedir=DIR modifiable architecture-independent data in DIR 18733965Sjdp [PREFIX/com] 18833965Sjdp --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 18933965Sjdp --libdir=DIR object code libraries in DIR [EPREFIX/lib] 19033965Sjdp --includedir=DIR C header files in DIR [PREFIX/include] 19133965Sjdp --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 19233965Sjdp --infodir=DIR info documentation in DIR [PREFIX/info] 19333965Sjdp --mandir=DIR man documentation in DIR [PREFIX/man] 19433965Sjdp --srcdir=DIR find the sources in DIR [configure dir or ..] 19533965Sjdp --program-prefix=PREFIX prepend PREFIX to installed program names 19633965Sjdp --program-suffix=SUFFIX append SUFFIX to installed program names 19733965Sjdp --program-transform-name=PROGRAM 19833965Sjdp run sed PROGRAM on installed program names 19933965SjdpEOF 20033965Sjdp cat << EOF 20133965SjdpHost type: 20233965Sjdp --build=BUILD configure for building on BUILD [BUILD=HOST] 20333965Sjdp --host=HOST configure for HOST [guessed] 20433965Sjdp --target=TARGET configure for TARGET [TARGET=HOST] 20533965SjdpFeatures and packages: 20633965Sjdp --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 20733965Sjdp --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 20833965Sjdp --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 20933965Sjdp --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 21033965Sjdp --x-includes=DIR X include files are in DIR 21133965Sjdp --x-libraries=DIR X library files are in DIR 21233965SjdpEOF 21333965Sjdp if test -n "$ac_help"; then 21433965Sjdp echo "--enable and --with options recognized:$ac_help" 21533965Sjdp fi 21633965Sjdp exit 0 ;; 21733965Sjdp 21833965Sjdp -host | --host | --hos | --ho) 21933965Sjdp ac_prev=host ;; 22033965Sjdp -host=* | --host=* | --hos=* | --ho=*) 22133965Sjdp host="$ac_optarg" ;; 22233965Sjdp 22333965Sjdp -includedir | --includedir | --includedi | --included | --include \ 22433965Sjdp | --includ | --inclu | --incl | --inc) 22533965Sjdp ac_prev=includedir ;; 22633965Sjdp -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 22733965Sjdp | --includ=* | --inclu=* | --incl=* | --inc=*) 22833965Sjdp includedir="$ac_optarg" ;; 22933965Sjdp 23033965Sjdp -infodir | --infodir | --infodi | --infod | --info | --inf) 23133965Sjdp ac_prev=infodir ;; 23233965Sjdp -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 23333965Sjdp infodir="$ac_optarg" ;; 23433965Sjdp 23533965Sjdp -libdir | --libdir | --libdi | --libd) 23633965Sjdp ac_prev=libdir ;; 23733965Sjdp -libdir=* | --libdir=* | --libdi=* | --libd=*) 23833965Sjdp libdir="$ac_optarg" ;; 23933965Sjdp 24033965Sjdp -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 24133965Sjdp | --libexe | --libex | --libe) 24233965Sjdp ac_prev=libexecdir ;; 24333965Sjdp -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 24433965Sjdp | --libexe=* | --libex=* | --libe=*) 24533965Sjdp libexecdir="$ac_optarg" ;; 24633965Sjdp 24733965Sjdp -localstatedir | --localstatedir | --localstatedi | --localstated \ 24833965Sjdp | --localstate | --localstat | --localsta | --localst \ 24933965Sjdp | --locals | --local | --loca | --loc | --lo) 25033965Sjdp ac_prev=localstatedir ;; 25133965Sjdp -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 25233965Sjdp | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 25333965Sjdp | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 25433965Sjdp localstatedir="$ac_optarg" ;; 25533965Sjdp 25633965Sjdp -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 25733965Sjdp ac_prev=mandir ;; 25833965Sjdp -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 25933965Sjdp mandir="$ac_optarg" ;; 26033965Sjdp 26133965Sjdp -nfp | --nfp | --nf) 26233965Sjdp # Obsolete; use --without-fp. 26333965Sjdp with_fp=no ;; 26433965Sjdp 26533965Sjdp -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 26633965Sjdp | --no-cr | --no-c) 26733965Sjdp no_create=yes ;; 26833965Sjdp 26933965Sjdp -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 27033965Sjdp | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 27133965Sjdp no_recursion=yes ;; 27233965Sjdp 27333965Sjdp -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 27433965Sjdp | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 27533965Sjdp | --oldin | --oldi | --old | --ol | --o) 27633965Sjdp ac_prev=oldincludedir ;; 27733965Sjdp -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 27833965Sjdp | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 27933965Sjdp | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 28033965Sjdp oldincludedir="$ac_optarg" ;; 28133965Sjdp 28233965Sjdp -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 28333965Sjdp ac_prev=prefix ;; 28433965Sjdp -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 28533965Sjdp prefix="$ac_optarg" ;; 28633965Sjdp 28733965Sjdp -program-prefix | --program-prefix | --program-prefi | --program-pref \ 28833965Sjdp | --program-pre | --program-pr | --program-p) 28933965Sjdp ac_prev=program_prefix ;; 29033965Sjdp -program-prefix=* | --program-prefix=* | --program-prefi=* \ 29133965Sjdp | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 29233965Sjdp program_prefix="$ac_optarg" ;; 29333965Sjdp 29433965Sjdp -program-suffix | --program-suffix | --program-suffi | --program-suff \ 29533965Sjdp | --program-suf | --program-su | --program-s) 29633965Sjdp ac_prev=program_suffix ;; 29733965Sjdp -program-suffix=* | --program-suffix=* | --program-suffi=* \ 29833965Sjdp | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 29933965Sjdp program_suffix="$ac_optarg" ;; 30033965Sjdp 30133965Sjdp -program-transform-name | --program-transform-name \ 30233965Sjdp | --program-transform-nam | --program-transform-na \ 30333965Sjdp | --program-transform-n | --program-transform- \ 30433965Sjdp | --program-transform | --program-transfor \ 30533965Sjdp | --program-transfo | --program-transf \ 30633965Sjdp | --program-trans | --program-tran \ 30733965Sjdp | --progr-tra | --program-tr | --program-t) 30833965Sjdp ac_prev=program_transform_name ;; 30933965Sjdp -program-transform-name=* | --program-transform-name=* \ 31033965Sjdp | --program-transform-nam=* | --program-transform-na=* \ 31133965Sjdp | --program-transform-n=* | --program-transform-=* \ 31233965Sjdp | --program-transform=* | --program-transfor=* \ 31333965Sjdp | --program-transfo=* | --program-transf=* \ 31433965Sjdp | --program-trans=* | --program-tran=* \ 31533965Sjdp | --progr-tra=* | --program-tr=* | --program-t=*) 31633965Sjdp program_transform_name="$ac_optarg" ;; 31733965Sjdp 31833965Sjdp -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 31933965Sjdp | -silent | --silent | --silen | --sile | --sil) 32033965Sjdp silent=yes ;; 32133965Sjdp 32233965Sjdp -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 32333965Sjdp ac_prev=sbindir ;; 32433965Sjdp -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 32533965Sjdp | --sbi=* | --sb=*) 32633965Sjdp sbindir="$ac_optarg" ;; 32733965Sjdp 32833965Sjdp -sharedstatedir | --sharedstatedir | --sharedstatedi \ 32933965Sjdp | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 33033965Sjdp | --sharedst | --shareds | --shared | --share | --shar \ 33133965Sjdp | --sha | --sh) 33233965Sjdp ac_prev=sharedstatedir ;; 33333965Sjdp -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 33433965Sjdp | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 33533965Sjdp | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 33633965Sjdp | --sha=* | --sh=*) 33733965Sjdp sharedstatedir="$ac_optarg" ;; 33833965Sjdp 33933965Sjdp -site | --site | --sit) 34033965Sjdp ac_prev=site ;; 34133965Sjdp -site=* | --site=* | --sit=*) 34233965Sjdp site="$ac_optarg" ;; 34333965Sjdp 34433965Sjdp -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 34533965Sjdp ac_prev=srcdir ;; 34633965Sjdp -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 34733965Sjdp srcdir="$ac_optarg" ;; 34833965Sjdp 34933965Sjdp -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 35033965Sjdp | --syscon | --sysco | --sysc | --sys | --sy) 35133965Sjdp ac_prev=sysconfdir ;; 35233965Sjdp -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 35333965Sjdp | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 35433965Sjdp sysconfdir="$ac_optarg" ;; 35533965Sjdp 35633965Sjdp -target | --target | --targe | --targ | --tar | --ta | --t) 35733965Sjdp ac_prev=target ;; 35833965Sjdp -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 35933965Sjdp target="$ac_optarg" ;; 36033965Sjdp 36133965Sjdp -v | -verbose | --verbose | --verbos | --verbo | --verb) 36233965Sjdp verbose=yes ;; 36333965Sjdp 36433965Sjdp -version | --version | --versio | --versi | --vers) 36560484Sobrien echo "configure generated by autoconf version 2.13" 36633965Sjdp exit 0 ;; 36733965Sjdp 36833965Sjdp -with-* | --with-*) 36933965Sjdp ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 37033965Sjdp # Reject names that are not valid shell variable names. 37133965Sjdp if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 37233965Sjdp { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 37333965Sjdp fi 37433965Sjdp ac_package=`echo $ac_package| sed 's/-/_/g'` 37533965Sjdp case "$ac_option" in 37633965Sjdp *=*) ;; 37733965Sjdp *) ac_optarg=yes ;; 37833965Sjdp esac 37933965Sjdp eval "with_${ac_package}='$ac_optarg'" ;; 38033965Sjdp 38133965Sjdp -without-* | --without-*) 38233965Sjdp ac_package=`echo $ac_option|sed -e 's/-*without-//'` 38333965Sjdp # Reject names that are not valid shell variable names. 38433965Sjdp if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 38533965Sjdp { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 38633965Sjdp fi 38733965Sjdp ac_package=`echo $ac_package| sed 's/-/_/g'` 38833965Sjdp eval "with_${ac_package}=no" ;; 38933965Sjdp 39033965Sjdp --x) 39133965Sjdp # Obsolete; use --with-x. 39233965Sjdp with_x=yes ;; 39333965Sjdp 39433965Sjdp -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 39533965Sjdp | --x-incl | --x-inc | --x-in | --x-i) 39633965Sjdp ac_prev=x_includes ;; 39733965Sjdp -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 39833965Sjdp | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 39933965Sjdp x_includes="$ac_optarg" ;; 40033965Sjdp 40133965Sjdp -x-libraries | --x-libraries | --x-librarie | --x-librari \ 40233965Sjdp | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 40333965Sjdp ac_prev=x_libraries ;; 40433965Sjdp -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 40533965Sjdp | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 40633965Sjdp x_libraries="$ac_optarg" ;; 40733965Sjdp 40833965Sjdp -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 40933965Sjdp ;; 41033965Sjdp 41133965Sjdp *) 41233965Sjdp if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 41333965Sjdp echo "configure: warning: $ac_option: invalid host type" 1>&2 41433965Sjdp fi 41533965Sjdp if test "x$nonopt" != xNONE; then 41633965Sjdp { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 41733965Sjdp fi 41833965Sjdp nonopt="$ac_option" 41933965Sjdp ;; 42033965Sjdp 42133965Sjdp esac 42233965Sjdpdone 42333965Sjdp 42433965Sjdpif test -n "$ac_prev"; then 42533965Sjdp { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 42633965Sjdpfi 42733965Sjdp 42833965Sjdptrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 42933965Sjdp 43033965Sjdp# File descriptor usage: 43133965Sjdp# 0 standard input 43233965Sjdp# 1 file creation 43333965Sjdp# 2 errors and warnings 43433965Sjdp# 3 some systems may open it to /dev/tty 43533965Sjdp# 4 used on the Kubota Titan 43633965Sjdp# 6 checking for... messages and results 43733965Sjdp# 5 compiler messages saved in config.log 43833965Sjdpif test "$silent" = yes; then 43933965Sjdp exec 6>/dev/null 44033965Sjdpelse 44133965Sjdp exec 6>&1 44233965Sjdpfi 44333965Sjdpexec 5>./config.log 44433965Sjdp 44533965Sjdpecho "\ 44633965SjdpThis file contains any messages produced by compilers while 44733965Sjdprunning configure, to aid debugging if configure makes a mistake. 44833965Sjdp" 1>&5 44933965Sjdp 45033965Sjdp# Strip out --no-create and --no-recursion so they do not pile up. 45133965Sjdp# Also quote any args containing shell metacharacters. 45233965Sjdpac_configure_args= 45333965Sjdpfor ac_arg 45433965Sjdpdo 45533965Sjdp case "$ac_arg" in 45633965Sjdp -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 45733965Sjdp | --no-cr | --no-c) ;; 45833965Sjdp -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 45933965Sjdp | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 46033965Sjdp *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 46133965Sjdp ac_configure_args="$ac_configure_args '$ac_arg'" ;; 46233965Sjdp *) ac_configure_args="$ac_configure_args $ac_arg" ;; 46333965Sjdp esac 46433965Sjdpdone 46533965Sjdp 46633965Sjdp# NLS nuisances. 46733965Sjdp# Only set these to C if already set. These must not be set unconditionally 46833965Sjdp# because not all systems understand e.g. LANG=C (notably SCO). 46933965Sjdp# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 47033965Sjdp# Non-C LC_CTYPE values break the ctype check. 47133965Sjdpif test "${LANG+set}" = set; then LANG=C; export LANG; fi 47233965Sjdpif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 47333965Sjdpif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 47433965Sjdpif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 47533965Sjdp 47633965Sjdp# confdefs.h avoids OS command line length limits that DEFS can exceed. 47733965Sjdprm -rf conftest* confdefs.h 47833965Sjdp# AIX cpp loses on an empty file, so make sure it contains at least a newline. 47933965Sjdpecho > confdefs.h 48033965Sjdp 48133965Sjdp# A filename unique to this package, relative to the directory that 48233965Sjdp# configure is in, which we can look for to find out if srcdir is correct. 48333965Sjdpac_unique_file=libbfd.c 48433965Sjdp 48533965Sjdp# Find the source files, if location was not specified. 48633965Sjdpif test -z "$srcdir"; then 48733965Sjdp ac_srcdir_defaulted=yes 48833965Sjdp # Try the directory containing this script, then its parent. 48933965Sjdp ac_prog=$0 49033965Sjdp ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 49133965Sjdp test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 49233965Sjdp srcdir=$ac_confdir 49333965Sjdp if test ! -r $srcdir/$ac_unique_file; then 49433965Sjdp srcdir=.. 49533965Sjdp fi 49633965Sjdpelse 49733965Sjdp ac_srcdir_defaulted=no 49833965Sjdpfi 49933965Sjdpif test ! -r $srcdir/$ac_unique_file; then 50033965Sjdp if test "$ac_srcdir_defaulted" = yes; then 50133965Sjdp { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 50233965Sjdp else 50333965Sjdp { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 50433965Sjdp fi 50533965Sjdpfi 50633965Sjdpsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 50733965Sjdp 50833965Sjdp# Prefer explicitly selected file to automatically selected ones. 50989857Sobrienif test -z "$CONFIG_SITE"; then 51089857Sobrien if test "x$prefix" != xNONE; then 51189857Sobrien CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 51289857Sobrien else 51389857Sobrien CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 51433965Sjdp fi 51533965Sjdpfi 51633965Sjdpfor ac_site_file in $CONFIG_SITE; do 51733965Sjdp if test -r "$ac_site_file"; then 51833965Sjdp echo "loading site script $ac_site_file" 51933965Sjdp . "$ac_site_file" 52033965Sjdp fi 52133965Sjdpdone 52233965Sjdp 52333965Sjdpif test -r "$cache_file"; then 52433965Sjdp echo "loading cache $cache_file" 52533965Sjdp . $cache_file 52633965Sjdpelse 52733965Sjdp echo "creating cache $cache_file" 52833965Sjdp > $cache_file 52933965Sjdpfi 53033965Sjdp 53133965Sjdpac_ext=c 53233965Sjdp# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 53333965Sjdpac_cpp='$CPP $CPPFLAGS' 53433965Sjdpac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 53560484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 53633965Sjdpcross_compiling=$ac_cv_prog_cc_cross 53733965Sjdp 53860484Sobrienac_exeext= 53960484Sobrienac_objext=o 54033965Sjdpif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 54133965Sjdp # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 54233965Sjdp if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 54333965Sjdp ac_n= ac_c=' 54433965Sjdp' ac_t=' ' 54533965Sjdp else 54633965Sjdp ac_n=-n ac_c= ac_t= 54733965Sjdp fi 54833965Sjdpelse 54933965Sjdp ac_n= ac_c='\c' ac_t= 55033965Sjdpfi 55133965Sjdp 55277298Sobrienecho $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 55389857Sobrienecho "configure:554: checking for Cygwin environment" >&5 55477298Sobrienif eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 55577298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 55677298Sobrienelse 55777298Sobrien cat > conftest.$ac_ext <<EOF 55889857Sobrien#line 559 "configure" 55977298Sobrien#include "confdefs.h" 56033965Sjdp 56177298Sobrienint main() { 56233965Sjdp 56377298Sobrien#ifndef __CYGWIN__ 56477298Sobrien#define __CYGWIN__ __CYGWIN32__ 56577298Sobrien#endif 56677298Sobrienreturn __CYGWIN__; 56777298Sobrien; return 0; } 56877298SobrienEOF 56989857Sobrienif { (eval echo configure:570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 57077298Sobrien rm -rf conftest* 57177298Sobrien ac_cv_cygwin=yes 57277298Sobrienelse 57377298Sobrien echo "configure: failed program was:" >&5 57477298Sobrien cat conftest.$ac_ext >&5 57577298Sobrien rm -rf conftest* 57677298Sobrien ac_cv_cygwin=no 57777298Sobrienfi 57877298Sobrienrm -f conftest* 57977298Sobrienrm -f conftest* 58077298Sobrienfi 58177298Sobrien 58277298Sobrienecho "$ac_t""$ac_cv_cygwin" 1>&6 58377298SobrienCYGWIN= 58477298Sobrientest "$ac_cv_cygwin" = yes && CYGWIN=yes 58577298Sobrienecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 58689857Sobrienecho "configure:587: checking for mingw32 environment" >&5 58777298Sobrienif eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 58877298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 58977298Sobrienelse 59077298Sobrien cat > conftest.$ac_ext <<EOF 59189857Sobrien#line 592 "configure" 59277298Sobrien#include "confdefs.h" 59377298Sobrien 59477298Sobrienint main() { 59577298Sobrienreturn __MINGW32__; 59677298Sobrien; return 0; } 59777298SobrienEOF 59889857Sobrienif { (eval echo configure:599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 59977298Sobrien rm -rf conftest* 60077298Sobrien ac_cv_mingw32=yes 60177298Sobrienelse 60277298Sobrien echo "configure: failed program was:" >&5 60377298Sobrien cat conftest.$ac_ext >&5 60477298Sobrien rm -rf conftest* 60577298Sobrien ac_cv_mingw32=no 60677298Sobrienfi 60777298Sobrienrm -f conftest* 60877298Sobrienrm -f conftest* 60977298Sobrienfi 61077298Sobrien 61177298Sobrienecho "$ac_t""$ac_cv_mingw32" 1>&6 61277298SobrienMINGW32= 61377298Sobrientest "$ac_cv_mingw32" = yes && MINGW32=yes 61477298Sobrien 61577298Sobrien 61633965Sjdpac_aux_dir= 61738889Sjdpfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 61833965Sjdp if test -f $ac_dir/install-sh; then 61933965Sjdp ac_aux_dir=$ac_dir 62033965Sjdp ac_install_sh="$ac_aux_dir/install-sh -c" 62133965Sjdp break 62233965Sjdp elif test -f $ac_dir/install.sh; then 62333965Sjdp ac_aux_dir=$ac_dir 62433965Sjdp ac_install_sh="$ac_aux_dir/install.sh -c" 62533965Sjdp break 62633965Sjdp fi 62733965Sjdpdone 62833965Sjdpif test -z "$ac_aux_dir"; then 62938889Sjdp { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 63033965Sjdpfi 63133965Sjdpac_config_guess=$ac_aux_dir/config.guess 63233965Sjdpac_config_sub=$ac_aux_dir/config.sub 63333965Sjdpac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 63433965Sjdp 63533965Sjdp 63633965Sjdp# Do some error checking and defaulting for the host and target type. 63733965Sjdp# The inputs are: 63833965Sjdp# configure --host=HOST --target=TARGET --build=BUILD NONOPT 63933965Sjdp# 64033965Sjdp# The rules are: 64133965Sjdp# 1. You are not allowed to specify --host, --target, and nonopt at the 64233965Sjdp# same time. 64333965Sjdp# 2. Host defaults to nonopt. 64433965Sjdp# 3. If nonopt is not specified, then host defaults to the current host, 64533965Sjdp# as determined by config.guess. 64633965Sjdp# 4. Target and build default to nonopt. 64733965Sjdp# 5. If nonopt is not specified, then target and build default to host. 64833965Sjdp 64933965Sjdp# The aliases save the names the user supplied, while $host etc. 65033965Sjdp# will get canonicalized. 65133965Sjdpcase $host---$target---$nonopt in 65233965SjdpNONE---*---* | *---NONE---* | *---*---NONE) ;; 65333965Sjdp*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 65433965Sjdpesac 65533965Sjdp 65633965Sjdp 65733965Sjdp# Make sure we can run config.sub. 65838889Sjdpif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 65933965Sjdpelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 66033965Sjdpfi 66133965Sjdp 66233965Sjdpecho $ac_n "checking host system type""... $ac_c" 1>&6 66389857Sobrienecho "configure:664: checking host system type" >&5 66433965Sjdp 66533965Sjdphost_alias=$host 66633965Sjdpcase "$host_alias" in 66733965SjdpNONE) 66833965Sjdp case $nonopt in 66933965Sjdp NONE) 67038889Sjdp if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 67133965Sjdp else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 67233965Sjdp fi ;; 67333965Sjdp *) host_alias=$nonopt ;; 67433965Sjdp esac ;; 67533965Sjdpesac 67633965Sjdp 67738889Sjdphost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 67833965Sjdphost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 67933965Sjdphost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 68033965Sjdphost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 68133965Sjdpecho "$ac_t""$host" 1>&6 68233965Sjdp 68333965Sjdpecho $ac_n "checking target system type""... $ac_c" 1>&6 68489857Sobrienecho "configure:685: checking target system type" >&5 68533965Sjdp 68633965Sjdptarget_alias=$target 68733965Sjdpcase "$target_alias" in 68833965SjdpNONE) 68933965Sjdp case $nonopt in 69033965Sjdp NONE) target_alias=$host_alias ;; 69133965Sjdp *) target_alias=$nonopt ;; 69233965Sjdp esac ;; 69333965Sjdpesac 69433965Sjdp 69538889Sjdptarget=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 69633965Sjdptarget_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 69733965Sjdptarget_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 69833965Sjdptarget_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 69933965Sjdpecho "$ac_t""$target" 1>&6 70033965Sjdp 70133965Sjdpecho $ac_n "checking build system type""... $ac_c" 1>&6 70289857Sobrienecho "configure:703: checking build system type" >&5 70333965Sjdp 70433965Sjdpbuild_alias=$build 70533965Sjdpcase "$build_alias" in 70633965SjdpNONE) 70733965Sjdp case $nonopt in 70833965Sjdp NONE) build_alias=$host_alias ;; 70933965Sjdp *) build_alias=$nonopt ;; 71033965Sjdp esac ;; 71133965Sjdpesac 71233965Sjdp 71338889Sjdpbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 71433965Sjdpbuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 71533965Sjdpbuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 71633965Sjdpbuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 71733965Sjdpecho "$ac_t""$build" 1>&6 71833965Sjdp 71933965Sjdptest "$host_alias" != "$target_alias" && 72033965Sjdp test "$program_prefix$program_suffix$program_transform_name" = \ 72133965Sjdp NONENONEs,x,x, && 72233965Sjdp program_prefix=${target_alias}- 72333965Sjdp 72478828Sobrien# Extract the first word of "gcc", so it can be a program name with args. 72578828Sobrienset dummy gcc; ac_word=$2 72678828Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 72789857Sobrienecho "configure:728: checking for $ac_word" >&5 72878828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 72978828Sobrien echo $ac_n "(cached) $ac_c" 1>&6 73078828Sobrienelse 73178828Sobrien if test -n "$CC"; then 73278828Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 73378828Sobrienelse 73478828Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 73578828Sobrien ac_dummy="$PATH" 73678828Sobrien for ac_dir in $ac_dummy; do 73778828Sobrien test -z "$ac_dir" && ac_dir=. 73878828Sobrien if test -f $ac_dir/$ac_word; then 73978828Sobrien ac_cv_prog_CC="gcc" 74078828Sobrien break 74178828Sobrien fi 74278828Sobrien done 74378828Sobrien IFS="$ac_save_ifs" 74478828Sobrienfi 74578828Sobrienfi 74678828SobrienCC="$ac_cv_prog_CC" 74778828Sobrienif test -n "$CC"; then 74878828Sobrien echo "$ac_t""$CC" 1>&6 74978828Sobrienelse 75078828Sobrien echo "$ac_t""no" 1>&6 75178828Sobrienfi 75233965Sjdp 75378828Sobrienif test -z "$CC"; then 75478828Sobrien # Extract the first word of "cc", so it can be a program name with args. 75578828Sobrienset dummy cc; ac_word=$2 75678828Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 75789857Sobrienecho "configure:758: checking for $ac_word" >&5 75878828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 75933965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 76033965Sjdpelse 76178828Sobrien if test -n "$CC"; then 76278828Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 76378828Sobrienelse 76478828Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 76578828Sobrien ac_prog_rejected=no 76678828Sobrien ac_dummy="$PATH" 76778828Sobrien for ac_dir in $ac_dummy; do 76878828Sobrien test -z "$ac_dir" && ac_dir=. 76978828Sobrien if test -f $ac_dir/$ac_word; then 77078828Sobrien if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 77178828Sobrien ac_prog_rejected=yes 77278828Sobrien continue 77378828Sobrien fi 77478828Sobrien ac_cv_prog_CC="cc" 77578828Sobrien break 77678828Sobrien fi 77778828Sobrien done 77878828Sobrien IFS="$ac_save_ifs" 77978828Sobrienif test $ac_prog_rejected = yes; then 78078828Sobrien # We found a bogon in the path, so make sure we never use it. 78178828Sobrien set dummy $ac_cv_prog_CC 78278828Sobrien shift 78378828Sobrien if test $# -gt 0; then 78478828Sobrien # We chose a different compiler from the bogus one. 78578828Sobrien # However, it has the same basename, so the bogon will be chosen 78678828Sobrien # first if we set CC to just the basename; use the full file name. 78778828Sobrien shift 78878828Sobrien set dummy "$ac_dir/$ac_word" "$@" 78978828Sobrien shift 79078828Sobrien ac_cv_prog_CC="$@" 79178828Sobrien fi 79278828Sobrienfi 79378828Sobrienfi 79478828Sobrienfi 79578828SobrienCC="$ac_cv_prog_CC" 79678828Sobrienif test -n "$CC"; then 79778828Sobrien echo "$ac_t""$CC" 1>&6 79878828Sobrienelse 79978828Sobrien echo "$ac_t""no" 1>&6 80078828Sobrienfi 80178828Sobrien 80278828Sobrien if test -z "$CC"; then 80378828Sobrien case "`uname -s`" in 80478828Sobrien *win32* | *WIN32*) 80578828Sobrien # Extract the first word of "cl", so it can be a program name with args. 80678828Sobrienset dummy cl; ac_word=$2 80778828Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 80889857Sobrienecho "configure:809: checking for $ac_word" >&5 80978828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 81078828Sobrien echo $ac_n "(cached) $ac_c" 1>&6 81178828Sobrienelse 81278828Sobrien if test -n "$CC"; then 81378828Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 81478828Sobrienelse 81578828Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 81678828Sobrien ac_dummy="$PATH" 81778828Sobrien for ac_dir in $ac_dummy; do 81878828Sobrien test -z "$ac_dir" && ac_dir=. 81978828Sobrien if test -f $ac_dir/$ac_word; then 82078828Sobrien ac_cv_prog_CC="cl" 82178828Sobrien break 82278828Sobrien fi 82378828Sobrien done 82478828Sobrien IFS="$ac_save_ifs" 82578828Sobrienfi 82678828Sobrienfi 82778828SobrienCC="$ac_cv_prog_CC" 82878828Sobrienif test -n "$CC"; then 82978828Sobrien echo "$ac_t""$CC" 1>&6 83078828Sobrienelse 83178828Sobrien echo "$ac_t""no" 1>&6 83278828Sobrienfi 83378828Sobrien ;; 83478828Sobrien esac 83578828Sobrien fi 83678828Sobrien test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 83778828Sobrienfi 83878828Sobrien 83978828Sobrienecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 84089857Sobrienecho "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 84178828Sobrien 84278828Sobrienac_ext=c 84378828Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 84478828Sobrienac_cpp='$CPP $CPPFLAGS' 84578828Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 84678828Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 84778828Sobriencross_compiling=$ac_cv_prog_cc_cross 84878828Sobrien 84978828Sobriencat > conftest.$ac_ext << EOF 85078828Sobrien 85189857Sobrien#line 852 "configure" 85233965Sjdp#include "confdefs.h" 85360484Sobrien 85478828Sobrienmain(){return(0);} 85533965SjdpEOF 85689857Sobrienif { (eval echo configure:857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 85778828Sobrien ac_cv_prog_cc_works=yes 85878828Sobrien # If we can't run a trivial program, we are probably using a cross compiler. 85978828Sobrien if (./conftest; exit) 2>/dev/null; then 86078828Sobrien ac_cv_prog_cc_cross=no 86178828Sobrien else 86278828Sobrien ac_cv_prog_cc_cross=yes 86378828Sobrien fi 86433965Sjdpelse 86533965Sjdp echo "configure: failed program was:" >&5 86633965Sjdp cat conftest.$ac_ext >&5 86778828Sobrien ac_cv_prog_cc_works=no 86833965Sjdpfi 86978828Sobrienrm -fr conftest* 87078828Sobrienac_ext=c 87178828Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 87278828Sobrienac_cpp='$CPP $CPPFLAGS' 87378828Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 87478828Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 87578828Sobriencross_compiling=$ac_cv_prog_cc_cross 87678828Sobrien 87778828Sobrienecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 87878828Sobrienif test $ac_cv_prog_cc_works = no; then 87978828Sobrien { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 88078828Sobrienfi 88178828Sobrienecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 88289857Sobrienecho "configure:883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 88378828Sobrienecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 88478828Sobriencross_compiling=$ac_cv_prog_cc_cross 88578828Sobrien 88678828Sobrienecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 88789857Sobrienecho "configure:888: checking whether we are using GNU C" >&5 88878828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 88978828Sobrien echo $ac_n "(cached) $ac_c" 1>&6 89078828Sobrienelse 89178828Sobrien cat > conftest.c <<EOF 89278828Sobrien#ifdef __GNUC__ 89378828Sobrien yes; 89478828Sobrien#endif 89578828SobrienEOF 89689857Sobrienif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 89778828Sobrien ac_cv_prog_gcc=yes 89878828Sobrienelse 89978828Sobrien ac_cv_prog_gcc=no 90078828Sobrienfi 90178828Sobrienfi 90278828Sobrien 90378828Sobrienecho "$ac_t""$ac_cv_prog_gcc" 1>&6 90478828Sobrien 90578828Sobrienif test $ac_cv_prog_gcc = yes; then 90678828Sobrien GCC=yes 90778828Sobrienelse 90878828Sobrien GCC= 90978828Sobrienfi 91078828Sobrien 91178828Sobrienac_test_CFLAGS="${CFLAGS+set}" 91278828Sobrienac_save_CFLAGS="$CFLAGS" 91378828SobrienCFLAGS= 91478828Sobrienecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 91589857Sobrienecho "configure:916: checking whether ${CC-cc} accepts -g" >&5 91678828Sobrienif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 91778828Sobrien echo $ac_n "(cached) $ac_c" 1>&6 91878828Sobrienelse 91978828Sobrien echo 'void f(){}' > conftest.c 92078828Sobrienif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 92178828Sobrien ac_cv_prog_cc_g=yes 92278828Sobrienelse 92378828Sobrien ac_cv_prog_cc_g=no 92478828Sobrienfi 92533965Sjdprm -f conftest* 92633965Sjdp 92733965Sjdpfi 92878828Sobrien 92978828Sobrienecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 93078828Sobrienif test "$ac_test_CFLAGS" = set; then 93178828Sobrien CFLAGS="$ac_save_CFLAGS" 93278828Sobrienelif test $ac_cv_prog_cc_g = yes; then 93378828Sobrien if test "$GCC" = yes; then 93478828Sobrien CFLAGS="-g -O2" 93578828Sobrien else 93678828Sobrien CFLAGS="-g" 93778828Sobrien fi 93878828Sobrienelse 93978828Sobrien if test "$GCC" = yes; then 94078828Sobrien CFLAGS="-O2" 94178828Sobrien else 94278828Sobrien CFLAGS= 94378828Sobrien fi 94478828Sobrienfi 94578828Sobrien 94678828Sobrienecho $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 94789857Sobrienecho "configure:948: checking for POSIXized ISC" >&5 94878828Sobrienif test -d /etc/conf/kconfig.d && 94978828Sobrien grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 95078828Sobrienthen 95133965Sjdp echo "$ac_t""yes" 1>&6 95278828Sobrien ISC=yes # If later tests want to check for ISC. 95378828Sobrien cat >> confdefs.h <<\EOF 95478828Sobrien#define _POSIX_SOURCE 1 95578828SobrienEOF 95678828Sobrien 95778828Sobrien if test "$GCC" = yes; then 95878828Sobrien CC="$CC -posix" 95978828Sobrien else 96078828Sobrien CC="$CC -Xp" 96178828Sobrien fi 96233965Sjdpelse 96333965Sjdp echo "$ac_t""no" 1>&6 96478828Sobrien ISC= 96533965Sjdpfi 96633965Sjdp 96733965Sjdp 96838889Sjdp# Find a good install program. We prefer a C program (faster), 96938889Sjdp# so one script is as good as another. But avoid the broken or 97038889Sjdp# incompatible versions: 97138889Sjdp# SysV /etc/install, /usr/sbin/install 97238889Sjdp# SunOS /usr/etc/install 97338889Sjdp# IRIX /sbin/install 97438889Sjdp# AIX /bin/install 97538889Sjdp# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 97638889Sjdp# AFS /usr/afsws/bin/install, which mishandles nonexistent args 97738889Sjdp# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 97838889Sjdp# ./install, which can be erroneously created by make from ./install.sh. 97938889Sjdpecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 98089857Sobrienecho "configure:981: checking for a BSD compatible install" >&5 98138889Sjdpif test -z "$INSTALL"; then 98238889Sjdpif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 98338889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 98438889Sjdpelse 98560484Sobrien IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 98638889Sjdp for ac_dir in $PATH; do 98738889Sjdp # Account for people who put trailing slashes in PATH elements. 98838889Sjdp case "$ac_dir/" in 98938889Sjdp /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 99038889Sjdp *) 99138889Sjdp # OSF1 and SCO ODT 3.0 have their own names for install. 99238889Sjdp # Don't use installbsd from OSF since it installs stuff as root 99338889Sjdp # by default. 99438889Sjdp for ac_prog in ginstall scoinst install; do 99538889Sjdp if test -f $ac_dir/$ac_prog; then 99638889Sjdp if test $ac_prog = install && 99738889Sjdp grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 99838889Sjdp # AIX install. It has an incompatible calling convention. 99938889Sjdp : 100038889Sjdp else 100138889Sjdp ac_cv_path_install="$ac_dir/$ac_prog -c" 100238889Sjdp break 2 100338889Sjdp fi 100438889Sjdp fi 100538889Sjdp done 100638889Sjdp ;; 100738889Sjdp esac 100838889Sjdp done 100938889Sjdp IFS="$ac_save_IFS" 101033965Sjdp 101138889Sjdpfi 101238889Sjdp if test "${ac_cv_path_install+set}" = set; then 101338889Sjdp INSTALL="$ac_cv_path_install" 101438889Sjdp else 101538889Sjdp # As a last resort, use the slow shell script. We don't cache a 101638889Sjdp # path for INSTALL within a source directory, because that will 101738889Sjdp # break other packages using the cache if that directory is 101838889Sjdp # removed, or if the path is relative. 101938889Sjdp INSTALL="$ac_install_sh" 102038889Sjdp fi 102138889Sjdpfi 102238889Sjdpecho "$ac_t""$INSTALL" 1>&6 102333965Sjdp 102438889Sjdp# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 102538889Sjdp# It thinks the first close brace ends the variable substitution. 102638889Sjdptest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 102738889Sjdp 102860484Sobrientest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 102960484Sobrien 103038889Sjdptest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 103138889Sjdp 103238889Sjdpecho $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 103389857Sobrienecho "configure:1034: checking whether build environment is sane" >&5 103438889Sjdp# Just in case 103538889Sjdpsleep 1 103638889Sjdpecho timestamp > conftestfile 103738889Sjdp# Do `set' in a subshell so we don't clobber the current shell's 103838889Sjdp# arguments. Must try -L first in case configure is actually a 103938889Sjdp# symlink; some systems play weird games with the mod time of symlinks 104038889Sjdp# (eg FreeBSD returns the mod time of the symlink's containing 104138889Sjdp# directory). 104238889Sjdpif ( 104338889Sjdp set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 104438889Sjdp if test "$*" = "X"; then 104538889Sjdp # -L didn't work. 104638889Sjdp set X `ls -t $srcdir/configure conftestfile` 104738889Sjdp fi 104838889Sjdp if test "$*" != "X $srcdir/configure conftestfile" \ 104938889Sjdp && test "$*" != "X conftestfile $srcdir/configure"; then 105038889Sjdp 105138889Sjdp # If neither matched, then we have a broken ls. This can happen 105238889Sjdp # if, for instance, CONFIG_SHELL is bash and it inherits a 105338889Sjdp # broken ls alias from the environment. This has actually 105438889Sjdp # happened. Such a system could not be considered "sane". 105538889Sjdp { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 105638889Sjdpalias in your environment" 1>&2; exit 1; } 105738889Sjdp fi 105838889Sjdp 105938889Sjdp test "$2" = conftestfile 106038889Sjdp ) 106138889Sjdpthen 106238889Sjdp # Ok. 106338889Sjdp : 106438889Sjdpelse 106538889Sjdp { echo "configure: error: newly created file is older than distributed files! 106638889SjdpCheck your system clock" 1>&2; exit 1; } 106738889Sjdpfi 106838889Sjdprm -f conftest* 106938889Sjdpecho "$ac_t""yes" 1>&6 107038889Sjdpif test "$program_transform_name" = s,x,x,; then 107138889Sjdp program_transform_name= 107238889Sjdpelse 107338889Sjdp # Double any \ or $. echo might interpret backslashes. 107438889Sjdp cat <<\EOF_SED > conftestsed 107538889Sjdps,\\,\\\\,g; s,\$,$$,g 107638889SjdpEOF_SED 107738889Sjdp program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 107838889Sjdp rm -f conftestsed 107938889Sjdpfi 108038889Sjdptest "$program_prefix" != NONE && 108138889Sjdp program_transform_name="s,^,${program_prefix},; $program_transform_name" 108238889Sjdp# Use a double $ so make ignores it. 108338889Sjdptest "$program_suffix" != NONE && 108438889Sjdp program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 108538889Sjdp 108638889Sjdp# sed with no file args requires a program. 108738889Sjdptest "$program_transform_name" = "" && program_transform_name="s,x,x," 108838889Sjdp 108938889Sjdpecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 109089857Sobrienecho "configure:1091: checking whether ${MAKE-make} sets \${MAKE}" >&5 109138889Sjdpset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 109238889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 109338889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 109438889Sjdpelse 109538889Sjdp cat > conftestmake <<\EOF 109638889Sjdpall: 109738889Sjdp @echo 'ac_maketemp="${MAKE}"' 109838889SjdpEOF 109938889Sjdp# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 110038889Sjdpeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 110138889Sjdpif test -n "$ac_maketemp"; then 110238889Sjdp eval ac_cv_prog_make_${ac_make}_set=yes 110338889Sjdpelse 110438889Sjdp eval ac_cv_prog_make_${ac_make}_set=no 110538889Sjdpfi 110638889Sjdprm -f conftestmake 110738889Sjdpfi 110838889Sjdpif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 110938889Sjdp echo "$ac_t""yes" 1>&6 111038889Sjdp SET_MAKE= 111138889Sjdpelse 111238889Sjdp echo "$ac_t""no" 1>&6 111338889Sjdp SET_MAKE="MAKE=${MAKE-make}" 111438889Sjdpfi 111538889Sjdp 111638889Sjdp 111738889SjdpPACKAGE=bfd 111838889Sjdp 111989857SobrienVERSION=2.11.93 112038889Sjdp 112138889Sjdpif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 112238889Sjdp { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 112338889Sjdpfi 112438889Sjdpcat >> confdefs.h <<EOF 112538889Sjdp#define PACKAGE "$PACKAGE" 112638889SjdpEOF 112738889Sjdp 112838889Sjdpcat >> confdefs.h <<EOF 112938889Sjdp#define VERSION "$VERSION" 113038889SjdpEOF 113138889Sjdp 113238889Sjdp 113338889Sjdp 113438889Sjdpmissing_dir=`cd $ac_aux_dir && pwd` 113538889Sjdpecho $ac_n "checking for working aclocal""... $ac_c" 1>&6 113689857Sobrienecho "configure:1137: checking for working aclocal" >&5 113738889Sjdp# Run test in a subshell; some versions of sh will print an error if 113838889Sjdp# an executable is not found, even if stderr is redirected. 113938889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 114038889Sjdpif (aclocal --version) < /dev/null > /dev/null 2>&1; then 114138889Sjdp ACLOCAL=aclocal 114238889Sjdp echo "$ac_t""found" 1>&6 114338889Sjdpelse 114438889Sjdp ACLOCAL="$missing_dir/missing aclocal" 114538889Sjdp echo "$ac_t""missing" 1>&6 114638889Sjdpfi 114738889Sjdp 114838889Sjdpecho $ac_n "checking for working autoconf""... $ac_c" 1>&6 114989857Sobrienecho "configure:1150: checking for working autoconf" >&5 115038889Sjdp# Run test in a subshell; some versions of sh will print an error if 115138889Sjdp# an executable is not found, even if stderr is redirected. 115238889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 115338889Sjdpif (autoconf --version) < /dev/null > /dev/null 2>&1; then 115438889Sjdp AUTOCONF=autoconf 115538889Sjdp echo "$ac_t""found" 1>&6 115638889Sjdpelse 115738889Sjdp AUTOCONF="$missing_dir/missing autoconf" 115838889Sjdp echo "$ac_t""missing" 1>&6 115938889Sjdpfi 116038889Sjdp 116138889Sjdpecho $ac_n "checking for working automake""... $ac_c" 1>&6 116289857Sobrienecho "configure:1163: checking for working automake" >&5 116338889Sjdp# Run test in a subshell; some versions of sh will print an error if 116438889Sjdp# an executable is not found, even if stderr is redirected. 116538889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 116638889Sjdpif (automake --version) < /dev/null > /dev/null 2>&1; then 116738889Sjdp AUTOMAKE=automake 116838889Sjdp echo "$ac_t""found" 1>&6 116938889Sjdpelse 117038889Sjdp AUTOMAKE="$missing_dir/missing automake" 117138889Sjdp echo "$ac_t""missing" 1>&6 117238889Sjdpfi 117338889Sjdp 117438889Sjdpecho $ac_n "checking for working autoheader""... $ac_c" 1>&6 117589857Sobrienecho "configure:1176: checking for working autoheader" >&5 117638889Sjdp# Run test in a subshell; some versions of sh will print an error if 117738889Sjdp# an executable is not found, even if stderr is redirected. 117838889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 117938889Sjdpif (autoheader --version) < /dev/null > /dev/null 2>&1; then 118038889Sjdp AUTOHEADER=autoheader 118138889Sjdp echo "$ac_t""found" 1>&6 118238889Sjdpelse 118338889Sjdp AUTOHEADER="$missing_dir/missing autoheader" 118438889Sjdp echo "$ac_t""missing" 1>&6 118538889Sjdpfi 118638889Sjdp 118738889Sjdpecho $ac_n "checking for working makeinfo""... $ac_c" 1>&6 118889857Sobrienecho "configure:1189: checking for working makeinfo" >&5 118938889Sjdp# Run test in a subshell; some versions of sh will print an error if 119038889Sjdp# an executable is not found, even if stderr is redirected. 119138889Sjdp# Redirect stdin to placate older versions of autoconf. Sigh. 119238889Sjdpif (makeinfo --version) < /dev/null > /dev/null 2>&1; then 119338889Sjdp MAKEINFO=makeinfo 119438889Sjdp echo "$ac_t""found" 1>&6 119538889Sjdpelse 119638889Sjdp MAKEINFO="$missing_dir/missing makeinfo" 119738889Sjdp echo "$ac_t""missing" 1>&6 119838889Sjdpfi 119938889Sjdp 120038889Sjdp 120189857Sobrien# Uncomment the next line to remove the date from the reported bfd version 120289857Sobrien#is_release=y 120338889Sjdp 120489857Sobrienbfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'` 120589857Sobrien 120689857Sobrienbfd_version_string="\"${VERSION}\"" 120789857Sobrienbfd_version_date=`sed -e 's/.*DATE //' < ${srcdir}/version.h` 120889857Sobrienif test x${is_release} = x; then 120989857Sobrien bfd_version_string="\"${VERSION} ${bfd_version_date}\"" 121089857Sobrienfi 121189857Sobrien 121289857Sobrien 121389857Sobrien 121489857Sobrien 121533965Sjdpif test $host != $build; then 121633965Sjdp ac_tool_prefix=${host_alias}- 121733965Sjdpelse 121833965Sjdp ac_tool_prefix= 121933965Sjdpfi 122033965Sjdp 122133965Sjdp# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 122233965Sjdpset dummy ${ac_tool_prefix}ar; ac_word=$2 122333965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 122489857Sobrienecho "configure:1225: checking for $ac_word" >&5 122533965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 122633965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 122733965Sjdpelse 122833965Sjdp if test -n "$AR"; then 122933965Sjdp ac_cv_prog_AR="$AR" # Let the user override the test. 123033965Sjdpelse 123160484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 123260484Sobrien ac_dummy="$PATH" 123360484Sobrien for ac_dir in $ac_dummy; do 123433965Sjdp test -z "$ac_dir" && ac_dir=. 123533965Sjdp if test -f $ac_dir/$ac_word; then 123633965Sjdp ac_cv_prog_AR="${ac_tool_prefix}ar" 123733965Sjdp break 123833965Sjdp fi 123933965Sjdp done 124033965Sjdp IFS="$ac_save_ifs" 124133965Sjdp test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 124233965Sjdpfi 124333965Sjdpfi 124433965SjdpAR="$ac_cv_prog_AR" 124533965Sjdpif test -n "$AR"; then 124633965Sjdp echo "$ac_t""$AR" 1>&6 124733965Sjdpelse 124833965Sjdp echo "$ac_t""no" 1>&6 124933965Sjdpfi 125033965Sjdp 125133965Sjdp 125233965Sjdp 125333965Sjdp# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 125433965Sjdpset dummy ${ac_tool_prefix}ranlib; ac_word=$2 125533965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 125689857Sobrienecho "configure:1257: checking for $ac_word" >&5 125733965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 125833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 125933965Sjdpelse 126033965Sjdp if test -n "$RANLIB"; then 126133965Sjdp ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 126233965Sjdpelse 126360484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 126460484Sobrien ac_dummy="$PATH" 126560484Sobrien for ac_dir in $ac_dummy; do 126633965Sjdp test -z "$ac_dir" && ac_dir=. 126733965Sjdp if test -f $ac_dir/$ac_word; then 126833965Sjdp ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 126933965Sjdp break 127033965Sjdp fi 127133965Sjdp done 127233965Sjdp IFS="$ac_save_ifs" 127333965Sjdpfi 127433965Sjdpfi 127533965SjdpRANLIB="$ac_cv_prog_RANLIB" 127633965Sjdpif test -n "$RANLIB"; then 127733965Sjdp echo "$ac_t""$RANLIB" 1>&6 127833965Sjdpelse 127933965Sjdp echo "$ac_t""no" 1>&6 128033965Sjdpfi 128133965Sjdp 128233965Sjdp 128333965Sjdpif test -z "$ac_cv_prog_RANLIB"; then 128433965Sjdpif test -n "$ac_tool_prefix"; then 128533965Sjdp # Extract the first word of "ranlib", so it can be a program name with args. 128633965Sjdpset dummy ranlib; ac_word=$2 128733965Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 128889857Sobrienecho "configure:1289: checking for $ac_word" >&5 128933965Sjdpif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 129033965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 129133965Sjdpelse 129233965Sjdp if test -n "$RANLIB"; then 129333965Sjdp ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 129433965Sjdpelse 129560484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 129660484Sobrien ac_dummy="$PATH" 129760484Sobrien for ac_dir in $ac_dummy; do 129833965Sjdp test -z "$ac_dir" && ac_dir=. 129933965Sjdp if test -f $ac_dir/$ac_word; then 130033965Sjdp ac_cv_prog_RANLIB="ranlib" 130133965Sjdp break 130233965Sjdp fi 130333965Sjdp done 130433965Sjdp IFS="$ac_save_ifs" 130533965Sjdp test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 130633965Sjdpfi 130733965Sjdpfi 130833965SjdpRANLIB="$ac_cv_prog_RANLIB" 130933965Sjdpif test -n "$RANLIB"; then 131033965Sjdp echo "$ac_t""$RANLIB" 1>&6 131133965Sjdpelse 131233965Sjdp echo "$ac_t""no" 1>&6 131333965Sjdpfi 131433965Sjdp 131533965Sjdpelse 131633965Sjdp RANLIB=":" 131733965Sjdpfi 131833965Sjdpfi 131933965Sjdp 132038889Sjdp 132138889Sjdp# Check whether --enable-shared or --disable-shared was given. 132238889Sjdpif test "${enable_shared+set}" = set; then 132338889Sjdp enableval="$enable_shared" 132438889Sjdp p=${PACKAGE-default} 132589857Sobriencase $enableval in 132638889Sjdpyes) enable_shared=yes ;; 132738889Sjdpno) enable_shared=no ;; 132838889Sjdp*) 132938889Sjdp enable_shared=no 133038889Sjdp # Look at the argument we got. We use all the common list separators. 133138889Sjdp IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 133238889Sjdp for pkg in $enableval; do 133338889Sjdp if test "X$pkg" = "X$p"; then 133438889Sjdp enable_shared=yes 133538889Sjdp fi 133638889Sjdp done 133738889Sjdp IFS="$ac_save_ifs" 133838889Sjdp ;; 133938889Sjdpesac 134038889Sjdpelse 134138889Sjdp enable_shared=no 134238889Sjdpfi 134338889Sjdp 134438889Sjdp 134538889Sjdp# Check whether --enable-static or --disable-static was given. 134638889Sjdpif test "${enable_static+set}" = set; then 134738889Sjdp enableval="$enable_static" 134838889Sjdp p=${PACKAGE-default} 134989857Sobriencase $enableval in 135038889Sjdpyes) enable_static=yes ;; 135138889Sjdpno) enable_static=no ;; 135238889Sjdp*) 135338889Sjdp enable_static=no 135438889Sjdp # Look at the argument we got. We use all the common list separators. 135538889Sjdp IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 135638889Sjdp for pkg in $enableval; do 135738889Sjdp if test "X$pkg" = "X$p"; then 135838889Sjdp enable_static=yes 135938889Sjdp fi 136038889Sjdp done 136138889Sjdp IFS="$ac_save_ifs" 136238889Sjdp ;; 136338889Sjdpesac 136438889Sjdpelse 136538889Sjdp enable_static=yes 136638889Sjdpfi 136738889Sjdp 136860484Sobrien# Check whether --enable-fast-install or --disable-fast-install was given. 136960484Sobrienif test "${enable_fast_install+set}" = set; then 137060484Sobrien enableval="$enable_fast_install" 137160484Sobrien p=${PACKAGE-default} 137289857Sobriencase $enableval in 137360484Sobrienyes) enable_fast_install=yes ;; 137460484Sobrienno) enable_fast_install=no ;; 137560484Sobrien*) 137660484Sobrien enable_fast_install=no 137760484Sobrien # Look at the argument we got. We use all the common list separators. 137860484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 137960484Sobrien for pkg in $enableval; do 138060484Sobrien if test "X$pkg" = "X$p"; then 138160484Sobrien enable_fast_install=yes 138260484Sobrien fi 138360484Sobrien done 138460484Sobrien IFS="$ac_save_ifs" 138560484Sobrien ;; 138660484Sobrienesac 138760484Sobrienelse 138860484Sobrien enable_fast_install=yes 138960484Sobrienfi 139060484Sobrien 139138889Sjdp# Check whether --with-gnu-ld or --without-gnu-ld was given. 139238889Sjdpif test "${with_gnu_ld+set}" = set; then 139338889Sjdp withval="$with_gnu_ld" 139438889Sjdp test "$withval" = no || with_gnu_ld=yes 139538889Sjdpelse 139638889Sjdp with_gnu_ld=no 139738889Sjdpfi 139838889Sjdp 139938889Sjdpac_prog=ld 140089857Sobrienif test "$GCC" = yes; then 140138889Sjdp # Check if gcc -print-prog-name=ld gives a path. 140238889Sjdp echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 140389857Sobrienecho "configure:1404: checking for ld used by GCC" >&5 140477298Sobrien case $host in 140577298Sobrien *-*-mingw*) 140677298Sobrien # gcc leaves a trailing carriage return which upsets mingw 140777298Sobrien ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 140877298Sobrien *) 140977298Sobrien ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 141077298Sobrien esac 141189857Sobrien case $ac_prog in 141260484Sobrien # Accept absolute paths. 141360484Sobrien [\\/]* | [A-Za-z]:[\\/]*) 141460484Sobrien re_direlt='/[^/][^/]*/\.\./' 141560484Sobrien # Canonicalize the path of ld 141660484Sobrien ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 141760484Sobrien while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 141860484Sobrien ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 141960484Sobrien done 142060484Sobrien test -z "$LD" && LD="$ac_prog" 142160484Sobrien ;; 142238889Sjdp "") 142338889Sjdp # If it fails, then pretend we aren't using GCC. 142438889Sjdp ac_prog=ld 142538889Sjdp ;; 142638889Sjdp *) 142738889Sjdp # If it is relative, then search for the first ld in PATH. 142838889Sjdp with_gnu_ld=unknown 142938889Sjdp ;; 143038889Sjdp esac 143138889Sjdpelif test "$with_gnu_ld" = yes; then 143238889Sjdp echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 143389857Sobrienecho "configure:1434: checking for GNU ld" >&5 143438889Sjdpelse 143538889Sjdp echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 143689857Sobrienecho "configure:1437: checking for non-GNU ld" >&5 143738889Sjdpfi 143889857Sobrienif eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 143938889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 144038889Sjdpelse 144138889Sjdp if test -z "$LD"; then 144260484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 144338889Sjdp for ac_dir in $PATH; do 144438889Sjdp test -z "$ac_dir" && ac_dir=. 144560484Sobrien if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 144689857Sobrien lt_cv_path_LD="$ac_dir/$ac_prog" 144738889Sjdp # Check to see if the program is GNU ld. I'd rather use --version, 144838889Sjdp # but apparently some GNU ld's only accept -v. 144938889Sjdp # Break only if it was the GNU/non-GNU ld that we prefer. 145089857Sobrien if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 145138889Sjdp test "$with_gnu_ld" != no && break 145238889Sjdp else 145360484Sobrien test "$with_gnu_ld" != yes && break 145438889Sjdp fi 145538889Sjdp fi 145638889Sjdp done 145738889Sjdp IFS="$ac_save_ifs" 145838889Sjdpelse 145989857Sobrien lt_cv_path_LD="$LD" # Let the user override the test with a path. 146038889Sjdpfi 146138889Sjdpfi 146238889Sjdp 146389857SobrienLD="$lt_cv_path_LD" 146438889Sjdpif test -n "$LD"; then 146538889Sjdp echo "$ac_t""$LD" 1>&6 146638889Sjdpelse 146738889Sjdp echo "$ac_t""no" 1>&6 146838889Sjdpfi 146938889Sjdptest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 147038889Sjdpecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 147189857Sobrienecho "configure:1472: checking if the linker ($LD) is GNU ld" >&5 147289857Sobrienif eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then 147338889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 147438889Sjdpelse 147538889Sjdp # I'd rather use --version here, but apparently some GNU ld's only accept -v. 147638889Sjdpif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 147789857Sobrien lt_cv_prog_gnu_ld=yes 147838889Sjdpelse 147989857Sobrien lt_cv_prog_gnu_ld=no 148038889Sjdpfi 148138889Sjdpfi 148238889Sjdp 148389857Sobrienecho "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 148489857Sobrienwith_gnu_ld=$lt_cv_prog_gnu_ld 148538889Sjdp 148638889Sjdp 148777298Sobrienecho $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 148889857Sobrienecho "configure:1489: checking for $LD option to reload object files" >&5 148977298Sobrienif eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 149077298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 149177298Sobrienelse 149277298Sobrien lt_cv_ld_reload_flag='-r' 149377298Sobrienfi 149477298Sobrien 149577298Sobrienecho "$ac_t""$lt_cv_ld_reload_flag" 1>&6 149677298Sobrienreload_flag=$lt_cv_ld_reload_flag 149777298Sobrientest -n "$reload_flag" && reload_flag=" $reload_flag" 149877298Sobrien 149938889Sjdpecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 150089857Sobrienecho "configure:1501: checking for BSD-compatible nm" >&5 150189857Sobrienif eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then 150238889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 150338889Sjdpelse 150460484Sobrien if test -n "$NM"; then 150560484Sobrien # Let the user override the test. 150689857Sobrien lt_cv_path_NM="$NM" 150760484Sobrienelse 150860484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 150960484Sobrien for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 151038889Sjdp test -z "$ac_dir" && ac_dir=. 151177298Sobrien tmp_nm=$ac_dir/${ac_tool_prefix}nm 151277298Sobrien if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 151338889Sjdp # Check to see if the nm accepts a BSD-compat flag. 151438889Sjdp # Adding the `sed 1q' prevents false positives on HP-UX, which says: 151538889Sjdp # nm: unknown option "B" ignored 151677298Sobrien # Tru64's nm complains that /dev/null is an invalid object file 151777298Sobrien if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 151889857Sobrien lt_cv_path_NM="$tmp_nm -B" 151960484Sobrien break 152077298Sobrien elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 152189857Sobrien lt_cv_path_NM="$tmp_nm -p" 152260484Sobrien break 152338889Sjdp else 152489857Sobrien lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 152560484Sobrien continue # so that we can try to find one that supports BSD flags 152638889Sjdp fi 152738889Sjdp fi 152838889Sjdp done 152938889Sjdp IFS="$ac_save_ifs" 153089857Sobrien test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 153138889Sjdpfi 153260484Sobrienfi 153338889Sjdp 153489857SobrienNM="$lt_cv_path_NM" 153538889Sjdpecho "$ac_t""$NM" 1>&6 153638889Sjdp 153738889Sjdpecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6 153889857Sobrienecho "configure:1539: checking whether ln -s works" >&5 153938889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 154038889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 154138889Sjdpelse 154238889Sjdp rm -f conftestdata 154338889Sjdpif ln -s X conftestdata 2>/dev/null 154438889Sjdpthen 154538889Sjdp rm -f conftestdata 154638889Sjdp ac_cv_prog_LN_S="ln -s" 154738889Sjdpelse 154838889Sjdp ac_cv_prog_LN_S=ln 154938889Sjdpfi 155038889Sjdpfi 155138889SjdpLN_S="$ac_cv_prog_LN_S" 155238889Sjdpif test "$ac_cv_prog_LN_S" = "ln -s"; then 155338889Sjdp echo "$ac_t""yes" 1>&6 155438889Sjdpelse 155538889Sjdp echo "$ac_t""no" 1>&6 155638889Sjdpfi 155738889Sjdp 155877298Sobrienecho $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 155989857Sobrienecho "configure:1560: checking how to recognise dependant libraries" >&5 156077298Sobrienif eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 156177298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 156277298Sobrienelse 156377298Sobrien lt_cv_file_magic_cmd='$MAGIC_CMD' 156477298Sobrienlt_cv_file_magic_test_file= 156577298Sobrienlt_cv_deplibs_check_method='unknown' 156677298Sobrien# Need to set the preceding variable on all platforms that support 156777298Sobrien# interlibrary dependencies. 156877298Sobrien# 'none' -- dependencies not supported. 156977298Sobrien# `unknown' -- same as none, but documents that we really don't know. 157077298Sobrien# 'pass_all' -- all dependencies passed with no checks. 157177298Sobrien# 'test_compile' -- check by making test program. 157277298Sobrien# 'file_magic [regex]' -- check by looking for files in library path 157377298Sobrien# which responds to the $file_magic_cmd with a given egrep regex. 157477298Sobrien# If you have `file' or equivalent on your system and you're not sure 157577298Sobrien# whether `pass_all' will *always* work, you probably want this one. 157638889Sjdp 157789857Sobriencase $host_os in 157889857Sobrienaix*) 157977298Sobrien lt_cv_deplibs_check_method=pass_all 158077298Sobrien ;; 158177298Sobrien 158277298Sobrienbeos*) 158377298Sobrien lt_cv_deplibs_check_method=pass_all 158477298Sobrien ;; 158577298Sobrien 158677298Sobrienbsdi4*) 158789857Sobrien lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 158889857Sobrien lt_cv_file_magic_cmd='/usr/bin/file -L' 158977298Sobrien lt_cv_file_magic_test_file=/shlib/libc.so 159077298Sobrien ;; 159177298Sobrien 159277298Sobriencygwin* | mingw* |pw32*) 159377298Sobrien lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 159477298Sobrien lt_cv_file_magic_cmd='$OBJDUMP -f' 159577298Sobrien ;; 159677298Sobrien 159789857Sobriendarwin* | rhapsody*) 159889857Sobrien lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 159989857Sobrien lt_cv_file_magic_cmd='/usr/bin/file -L' 160089857Sobrien case "$host_os" in 160189857Sobrien rhapsody* | darwin1.012) 160289857Sobrien lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' 160389857Sobrien ;; 160489857Sobrien *) # Darwin 1.3 on 160589857Sobrien lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 160689857Sobrien ;; 160789857Sobrien esac 160889857Sobrien ;; 160989857Sobrien 161077298Sobrienfreebsd* ) 161177298Sobrien if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 161289857Sobrien case $host_cpu in 161377298Sobrien i*86 ) 161477298Sobrien # Not sure whether the presence of OpenBSD here was a mistake. 161577298Sobrien # Let's accept both of them until this is cleared up. 161689857Sobrien lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 161789857Sobrien lt_cv_file_magic_cmd=/usr/bin/file 161877298Sobrien lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 161977298Sobrien ;; 162077298Sobrien esac 162177298Sobrien else 162277298Sobrien lt_cv_deplibs_check_method=pass_all 162377298Sobrien fi 162477298Sobrien ;; 162577298Sobrien 162677298Sobriengnu*) 162777298Sobrien lt_cv_deplibs_check_method=pass_all 162877298Sobrien ;; 162977298Sobrien 163089857Sobrienhpux10.20*|hpux11*) 163189857Sobrien lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 163277298Sobrien lt_cv_file_magic_cmd=/usr/bin/file 163377298Sobrien lt_cv_file_magic_test_file=/usr/lib/libc.sl 163477298Sobrien ;; 163577298Sobrien 163677298Sobrienirix5* | irix6*) 163789857Sobrien case $host_os in 163877298Sobrien irix5*) 163977298Sobrien # this will be overridden with pass_all, but let us keep it just in case 164077298Sobrien lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 164177298Sobrien ;; 164277298Sobrien *) 164389857Sobrien case $LD in 164477298Sobrien *-32|*"-32 ") libmagic=32-bit;; 164577298Sobrien *-n32|*"-n32 ") libmagic=N32;; 164677298Sobrien *-64|*"-64 ") libmagic=64-bit;; 164777298Sobrien *) libmagic=never-match;; 164877298Sobrien esac 164977298Sobrien # this will be overridden with pass_all, but let us keep it just in case 165089857Sobrien lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 165189857Sobrien ;; 165277298Sobrien esac 165377298Sobrien lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 165477298Sobrien lt_cv_deplibs_check_method=pass_all 165577298Sobrien ;; 165677298Sobrien 165777298Sobrien# This must be Linux ELF. 165877298Sobrienlinux-gnu*) 165989857Sobrien case $host_cpu in 166089857Sobrien alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 166177298Sobrien lt_cv_deplibs_check_method=pass_all ;; 166277298Sobrien *) 166377298Sobrien # glibc up to 2.1.1 does not perform some relocations on ARM 166489857Sobrien lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 166589857Sobrien esac 166677298Sobrien lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 166777298Sobrien ;; 166877298Sobrien 166977298Sobriennetbsd*) 167089857Sobrien if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 167189857Sobrien lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 167277298Sobrien else 167389857Sobrien lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 167477298Sobrien fi 167577298Sobrien ;; 167677298Sobrien 167789857Sobriennewsos6) 167889857Sobrien lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 167989857Sobrien lt_cv_file_magic_cmd=/usr/bin/file 168089857Sobrien lt_cv_file_magic_test_file=/usr/lib/libnls.so 168189857Sobrien ;; 168289857Sobrien 168377298Sobrienosf3* | osf4* | osf5*) 168477298Sobrien # this will be overridden with pass_all, but let us keep it just in case 168577298Sobrien lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 168677298Sobrien lt_cv_file_magic_test_file=/shlib/libc.so 168777298Sobrien lt_cv_deplibs_check_method=pass_all 168877298Sobrien ;; 168977298Sobrien 169077298Sobriensco3.2v5*) 169177298Sobrien lt_cv_deplibs_check_method=pass_all 169277298Sobrien ;; 169377298Sobrien 169477298Sobriensolaris*) 169577298Sobrien lt_cv_deplibs_check_method=pass_all 169677298Sobrien lt_cv_file_magic_test_file=/lib/libc.so 169777298Sobrien ;; 169877298Sobrien 169989857Sobriensysv5uw[78]* | sysv4*uw2*) 170089857Sobrien lt_cv_deplibs_check_method=pass_all 170189857Sobrien ;; 170289857Sobrien 170377298Sobriensysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 170489857Sobrien case $host_vendor in 170577298Sobrien ncr) 170677298Sobrien lt_cv_deplibs_check_method=pass_all 170777298Sobrien ;; 170877298Sobrien motorola) 170989857Sobrien 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]' 171089857Sobrien lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 171177298Sobrien ;; 171277298Sobrien esac 171377298Sobrien ;; 171460484Sobrienesac 171560484Sobrien 171677298Sobrienfi 171777298Sobrien 171877298Sobrienecho "$ac_t""$lt_cv_deplibs_check_method" 1>&6 171977298Sobrienfile_magic_cmd=$lt_cv_file_magic_cmd 172077298Sobriendeplibs_check_method=$lt_cv_deplibs_check_method 172177298Sobrien 172277298Sobrienecho $ac_n "checking for object suffix""... $ac_c" 1>&6 172389857Sobrienecho "configure:1724: checking for object suffix" >&5 172477298Sobrienif eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 172577298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 172677298Sobrienelse 172777298Sobrien rm -f conftest* 172877298Sobrienecho 'int i = 1;' > conftest.$ac_ext 172989857Sobrienif { (eval echo configure:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 173077298Sobrien for ac_file in conftest.*; do 173177298Sobrien case $ac_file in 173277298Sobrien *.c) ;; 173377298Sobrien *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 173477298Sobrien esac 173577298Sobrien done 173677298Sobrienelse 173777298Sobrien { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 173877298Sobrienfi 173977298Sobrienrm -f conftest* 174077298Sobrienfi 174177298Sobrien 174277298Sobrienecho "$ac_t""$ac_cv_objext" 1>&6 174377298SobrienOBJEXT=$ac_cv_objext 174477298Sobrienac_objext=$ac_cv_objext 174577298Sobrien 174677298Sobrien 174777298Sobrien 174877298Sobrienecho $ac_n "checking for executable suffix""... $ac_c" 1>&6 174989857Sobrienecho "configure:1750: checking for executable suffix" >&5 175077298Sobrienif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 175177298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 175277298Sobrienelse 175377298Sobrien if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 175477298Sobrien ac_cv_exeext=.exe 175577298Sobrienelse 175677298Sobrien rm -f conftest* 175777298Sobrien echo 'int main () { return 0; }' > conftest.$ac_ext 175877298Sobrien ac_cv_exeext= 175989857Sobrien if { (eval echo configure:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 176077298Sobrien for file in conftest.*; do 176177298Sobrien case $file in 176289857Sobrien *.c | *.o | *.obj) ;; 176377298Sobrien *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 176477298Sobrien esac 176577298Sobrien done 176677298Sobrien else 176777298Sobrien { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 176877298Sobrien fi 176977298Sobrien rm -f conftest* 177077298Sobrien test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 177177298Sobrienfi 177277298Sobrienfi 177377298Sobrien 177477298SobrienEXEEXT="" 177577298Sobrientest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 177677298Sobrienecho "$ac_t""${ac_cv_exeext}" 1>&6 177777298Sobrienac_exeext=$EXEEXT 177877298Sobrien 177977298Sobrien# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 178077298Sobrien 178177298Sobrien# Only perform the check for file, if the check method requires it 178289857Sobriencase $deplibs_check_method in 178377298Sobrienfile_magic*) 178477298Sobrien if test "$file_magic_cmd" = '$MAGIC_CMD'; then 178577298Sobrien echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 178689857Sobrienecho "configure:1787: checking for ${ac_tool_prefix}file" >&5 178777298Sobrienif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 178877298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 178977298Sobrienelse 179089857Sobrien case $MAGIC_CMD in 179177298Sobrien /*) 179277298Sobrien lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 179377298Sobrien ;; 179477298Sobrien ?:/*) 179577298Sobrien lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 179677298Sobrien ;; 179777298Sobrien *) 179877298Sobrien ac_save_MAGIC_CMD="$MAGIC_CMD" 179977298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 180077298Sobrien ac_dummy="/usr/bin:$PATH" 180177298Sobrien for ac_dir in $ac_dummy; do 180277298Sobrien test -z "$ac_dir" && ac_dir=. 180377298Sobrien if test -f $ac_dir/${ac_tool_prefix}file; then 180477298Sobrien lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 180577298Sobrien if test -n "$file_magic_test_file"; then 180689857Sobrien case $deplibs_check_method in 180777298Sobrien "file_magic "*) 180877298Sobrien file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 180977298Sobrien MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 181077298Sobrien if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 181177298Sobrien egrep "$file_magic_regex" > /dev/null; then 181277298Sobrien : 181377298Sobrien else 181477298Sobrien cat <<EOF 1>&2 181577298Sobrien 181677298Sobrien*** Warning: the command libtool uses to detect shared libraries, 181777298Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize. 181877298Sobrien*** The result is that libtool may fail to recognize shared libraries 181977298Sobrien*** as such. This will affect the creation of libtool libraries that 182077298Sobrien*** depend on shared libraries, but programs linked with such libtool 182177298Sobrien*** libraries will work regardless of this problem. Nevertheless, you 182277298Sobrien*** may want to report the problem to your system manager and/or to 182377298Sobrien*** bug-libtool@gnu.org 182477298Sobrien 182577298SobrienEOF 182677298Sobrien fi ;; 182777298Sobrien esac 182877298Sobrien fi 182977298Sobrien break 183077298Sobrien fi 183177298Sobrien done 183277298Sobrien IFS="$ac_save_ifs" 183377298Sobrien MAGIC_CMD="$ac_save_MAGIC_CMD" 183477298Sobrien ;; 183577298Sobrienesac 183677298Sobrienfi 183777298Sobrien 183877298SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 183977298Sobrienif test -n "$MAGIC_CMD"; then 184077298Sobrien echo "$ac_t""$MAGIC_CMD" 1>&6 184177298Sobrienelse 184277298Sobrien echo "$ac_t""no" 1>&6 184377298Sobrienfi 184477298Sobrien 184577298Sobrienif test -z "$lt_cv_path_MAGIC_CMD"; then 184677298Sobrien if test -n "$ac_tool_prefix"; then 184777298Sobrien echo $ac_n "checking for file""... $ac_c" 1>&6 184889857Sobrienecho "configure:1849: checking for file" >&5 184977298Sobrienif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 185077298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 185177298Sobrienelse 185289857Sobrien case $MAGIC_CMD in 185377298Sobrien /*) 185477298Sobrien lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 185577298Sobrien ;; 185677298Sobrien ?:/*) 185777298Sobrien lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 185877298Sobrien ;; 185977298Sobrien *) 186077298Sobrien ac_save_MAGIC_CMD="$MAGIC_CMD" 186177298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 186277298Sobrien ac_dummy="/usr/bin:$PATH" 186377298Sobrien for ac_dir in $ac_dummy; do 186477298Sobrien test -z "$ac_dir" && ac_dir=. 186577298Sobrien if test -f $ac_dir/file; then 186677298Sobrien lt_cv_path_MAGIC_CMD="$ac_dir/file" 186777298Sobrien if test -n "$file_magic_test_file"; then 186889857Sobrien case $deplibs_check_method in 186977298Sobrien "file_magic "*) 187077298Sobrien file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 187177298Sobrien MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 187277298Sobrien if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 187377298Sobrien egrep "$file_magic_regex" > /dev/null; then 187477298Sobrien : 187577298Sobrien else 187677298Sobrien cat <<EOF 1>&2 187777298Sobrien 187877298Sobrien*** Warning: the command libtool uses to detect shared libraries, 187977298Sobrien*** $file_magic_cmd, produces output that libtool cannot recognize. 188077298Sobrien*** The result is that libtool may fail to recognize shared libraries 188177298Sobrien*** as such. This will affect the creation of libtool libraries that 188277298Sobrien*** depend on shared libraries, but programs linked with such libtool 188377298Sobrien*** libraries will work regardless of this problem. Nevertheless, you 188477298Sobrien*** may want to report the problem to your system manager and/or to 188577298Sobrien*** bug-libtool@gnu.org 188677298Sobrien 188777298SobrienEOF 188877298Sobrien fi ;; 188977298Sobrien esac 189077298Sobrien fi 189177298Sobrien break 189277298Sobrien fi 189377298Sobrien done 189477298Sobrien IFS="$ac_save_ifs" 189577298Sobrien MAGIC_CMD="$ac_save_MAGIC_CMD" 189677298Sobrien ;; 189777298Sobrienesac 189877298Sobrienfi 189977298Sobrien 190077298SobrienMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 190177298Sobrienif test -n "$MAGIC_CMD"; then 190277298Sobrien echo "$ac_t""$MAGIC_CMD" 1>&6 190377298Sobrienelse 190477298Sobrien echo "$ac_t""no" 1>&6 190577298Sobrienfi 190677298Sobrien 190777298Sobrien else 190877298Sobrien MAGIC_CMD=: 190977298Sobrien fi 191077298Sobrienfi 191177298Sobrien 191277298Sobrien fi 191377298Sobrien ;; 191477298Sobrienesac 191577298Sobrien 191677298Sobrien# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 191777298Sobrienset dummy ${ac_tool_prefix}ranlib; ac_word=$2 191877298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 191989857Sobrienecho "configure:1920: checking for $ac_word" >&5 192077298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 192177298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 192277298Sobrienelse 192377298Sobrien if test -n "$RANLIB"; then 192477298Sobrien ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 192577298Sobrienelse 192677298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 192777298Sobrien ac_dummy="$PATH" 192877298Sobrien for ac_dir in $ac_dummy; do 192977298Sobrien test -z "$ac_dir" && ac_dir=. 193077298Sobrien if test -f $ac_dir/$ac_word; then 193177298Sobrien ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 193277298Sobrien break 193377298Sobrien fi 193477298Sobrien done 193577298Sobrien IFS="$ac_save_ifs" 193677298Sobrienfi 193777298Sobrienfi 193877298SobrienRANLIB="$ac_cv_prog_RANLIB" 193977298Sobrienif test -n "$RANLIB"; then 194077298Sobrien echo "$ac_t""$RANLIB" 1>&6 194177298Sobrienelse 194277298Sobrien echo "$ac_t""no" 1>&6 194377298Sobrienfi 194477298Sobrien 194577298Sobrien 194677298Sobrienif test -z "$ac_cv_prog_RANLIB"; then 194777298Sobrienif test -n "$ac_tool_prefix"; then 194877298Sobrien # Extract the first word of "ranlib", so it can be a program name with args. 194977298Sobrienset dummy ranlib; ac_word=$2 195077298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 195189857Sobrienecho "configure:1952: checking for $ac_word" >&5 195277298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 195377298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 195477298Sobrienelse 195577298Sobrien if test -n "$RANLIB"; then 195677298Sobrien ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 195777298Sobrienelse 195877298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 195977298Sobrien ac_dummy="$PATH" 196077298Sobrien for ac_dir in $ac_dummy; do 196177298Sobrien test -z "$ac_dir" && ac_dir=. 196277298Sobrien if test -f $ac_dir/$ac_word; then 196377298Sobrien ac_cv_prog_RANLIB="ranlib" 196477298Sobrien break 196577298Sobrien fi 196677298Sobrien done 196777298Sobrien IFS="$ac_save_ifs" 196877298Sobrien test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 196977298Sobrienfi 197077298Sobrienfi 197177298SobrienRANLIB="$ac_cv_prog_RANLIB" 197277298Sobrienif test -n "$RANLIB"; then 197377298Sobrien echo "$ac_t""$RANLIB" 1>&6 197477298Sobrienelse 197577298Sobrien echo "$ac_t""no" 1>&6 197677298Sobrienfi 197777298Sobrien 197877298Sobrienelse 197977298Sobrien RANLIB=":" 198077298Sobrienfi 198177298Sobrienfi 198277298Sobrien 198377298Sobrien# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 198477298Sobrienset dummy ${ac_tool_prefix}strip; ac_word=$2 198577298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 198689857Sobrienecho "configure:1987: checking for $ac_word" >&5 198777298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 198877298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 198977298Sobrienelse 199077298Sobrien if test -n "$STRIP"; then 199177298Sobrien ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 199277298Sobrienelse 199377298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 199477298Sobrien ac_dummy="$PATH" 199577298Sobrien for ac_dir in $ac_dummy; do 199677298Sobrien test -z "$ac_dir" && ac_dir=. 199777298Sobrien if test -f $ac_dir/$ac_word; then 199877298Sobrien ac_cv_prog_STRIP="${ac_tool_prefix}strip" 199977298Sobrien break 200077298Sobrien fi 200177298Sobrien done 200277298Sobrien IFS="$ac_save_ifs" 200377298Sobrienfi 200477298Sobrienfi 200577298SobrienSTRIP="$ac_cv_prog_STRIP" 200677298Sobrienif test -n "$STRIP"; then 200777298Sobrien echo "$ac_t""$STRIP" 1>&6 200877298Sobrienelse 200977298Sobrien echo "$ac_t""no" 1>&6 201077298Sobrienfi 201177298Sobrien 201277298Sobrien 201377298Sobrienif test -z "$ac_cv_prog_STRIP"; then 201477298Sobrienif test -n "$ac_tool_prefix"; then 201577298Sobrien # Extract the first word of "strip", so it can be a program name with args. 201677298Sobrienset dummy strip; ac_word=$2 201777298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 201889857Sobrienecho "configure:2019: checking for $ac_word" >&5 201977298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 202077298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 202177298Sobrienelse 202277298Sobrien if test -n "$STRIP"; then 202377298Sobrien ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 202477298Sobrienelse 202577298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 202677298Sobrien ac_dummy="$PATH" 202777298Sobrien for ac_dir in $ac_dummy; do 202877298Sobrien test -z "$ac_dir" && ac_dir=. 202977298Sobrien if test -f $ac_dir/$ac_word; then 203077298Sobrien ac_cv_prog_STRIP="strip" 203177298Sobrien break 203277298Sobrien fi 203377298Sobrien done 203477298Sobrien IFS="$ac_save_ifs" 203577298Sobrien test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 203677298Sobrienfi 203777298Sobrienfi 203877298SobrienSTRIP="$ac_cv_prog_STRIP" 203977298Sobrienif test -n "$STRIP"; then 204077298Sobrien echo "$ac_t""$STRIP" 1>&6 204177298Sobrienelse 204277298Sobrien echo "$ac_t""no" 1>&6 204377298Sobrienfi 204477298Sobrien 204577298Sobrienelse 204677298Sobrien STRIP=":" 204777298Sobrienfi 204877298Sobrienfi 204977298Sobrien 205077298Sobrien 205138889Sjdp# Check for any special flags to pass to ltconfig. 205260484Sobrienlibtool_flags="--cache-file=$cache_file" 205338889Sjdptest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 205438889Sjdptest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 205560484Sobrientest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 205689857Sobrientest "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" 205789857Sobrientest "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 205838889Sjdp 205960484Sobrien 206060484Sobrien# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 206160484Sobrienif test "${enable_libtool_lock+set}" = set; then 206260484Sobrien enableval="$enable_libtool_lock" 206360484Sobrien : 206460484Sobrienfi 206560484Sobrien 206660484Sobrientest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 206760484Sobrientest x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 206860484Sobrien 206977298Sobrien# Check whether --with-pic or --without-pic was given. 207077298Sobrienif test "${with_pic+set}" = set; then 207177298Sobrien withval="$with_pic" 207277298Sobrien pic_mode="$withval" 207377298Sobrienelse 207477298Sobrien pic_mode=default 207577298Sobrienfi 207677298Sobrien 207777298Sobrientest x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" 207877298Sobrientest x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" 207977298Sobrien 208038889Sjdp# Some flags need to be propagated to the compiler or linker for good 208138889Sjdp# libtool support. 208289857Sobriencase $host in 208338889Sjdp*-*-irix6*) 208438889Sjdp # Find out which ABI we are using. 208589857Sobrien echo '#line 2086 "configure"' > conftest.$ac_ext 208689857Sobrien if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 208789857Sobrien case `/usr/bin/file conftest.$ac_objext` in 208838889Sjdp *32-bit*) 208938889Sjdp LD="${LD-ld} -32" 209033965Sjdp ;; 209138889Sjdp *N32*) 209238889Sjdp LD="${LD-ld} -n32" 209338889Sjdp ;; 209438889Sjdp *64-bit*) 209538889Sjdp LD="${LD-ld} -64" 209638889Sjdp ;; 209733965Sjdp esac 209838889Sjdp fi 209938889Sjdp rm -rf conftest* 210038889Sjdp ;; 210133965Sjdp 210238889Sjdp*-*-sco3.2v5*) 210338889Sjdp # On SCO OpenServer 5, we need -belf to get full-featured binaries. 210460484Sobrien SAVE_CFLAGS="$CFLAGS" 210538889Sjdp CFLAGS="$CFLAGS -belf" 210660484Sobrien echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 210789857Sobrienecho "configure:2108: checking whether the C compiler needs -belf" >&5 210860484Sobrienif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 210960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 211060484Sobrienelse 211177298Sobrien 211277298Sobrien ac_ext=c 211377298Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 211477298Sobrienac_cpp='$CPP $CPPFLAGS' 211577298Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 211677298Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 211777298Sobriencross_compiling=$ac_cv_prog_cc_cross 211877298Sobrien 211977298Sobrien cat > conftest.$ac_ext <<EOF 212089857Sobrien#line 2121 "configure" 212160484Sobrien#include "confdefs.h" 212260484Sobrien 212360484Sobrienint main() { 212460484Sobrien 212560484Sobrien; return 0; } 212660484SobrienEOF 212789857Sobrienif { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 212860484Sobrien rm -rf conftest* 212960484Sobrien lt_cv_cc_needs_belf=yes 213060484Sobrienelse 213160484Sobrien echo "configure: failed program was:" >&5 213260484Sobrien cat conftest.$ac_ext >&5 213360484Sobrien rm -rf conftest* 213460484Sobrien lt_cv_cc_needs_belf=no 213560484Sobrienfi 213660484Sobrienrm -f conftest* 213777298Sobrien ac_ext=c 213877298Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 213977298Sobrienac_cpp='$CPP $CPPFLAGS' 214077298Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 214177298Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 214277298Sobriencross_compiling=$ac_cv_prog_cc_cross 214377298Sobrien 214460484Sobrienfi 214560484Sobrien 214660484Sobrienecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6 214760484Sobrien if test x"$lt_cv_cc_needs_belf" != x"yes"; then 214860484Sobrien # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 214960484Sobrien CFLAGS="$SAVE_CFLAGS" 215060484Sobrien fi 215138889Sjdp ;; 215260484Sobrien 215360484Sobrien 215438889Sjdpesac 215538889Sjdp 215660484Sobrien 215760484Sobrien# Save cache, so that ltconfig can load it 215860484Sobriencat > confcache <<\EOF 215960484Sobrien# This file is a shell script that caches the results of configure 216060484Sobrien# tests run on this system so they can be shared between configure 216160484Sobrien# scripts and configure runs. It is not useful on other systems. 216260484Sobrien# If it contains results you don't want to keep, you may remove or edit it. 216360484Sobrien# 216460484Sobrien# By default, configure uses ./config.cache as the cache file, 216560484Sobrien# creating it if it does not exist already. You can give configure 216660484Sobrien# the --cache-file=FILE option to use a different cache file; that is 216760484Sobrien# what configure does when it calls configure scripts in 216860484Sobrien# subdirectories, so they share the cache. 216960484Sobrien# Giving --cache-file=/dev/null disables caching, for debugging configure. 217060484Sobrien# config.status only pays attention to the cache file if you give it the 217160484Sobrien# --recheck option to rerun configure. 217260484Sobrien# 217360484SobrienEOF 217460484Sobrien# The following way of writing the cache mishandles newlines in values, 217560484Sobrien# but we know of no workaround that is simple, portable, and efficient. 217660484Sobrien# So, don't put newlines in cache variables' values. 217760484Sobrien# Ultrix sh set writes to stderr and can't be redirected directly, 217860484Sobrien# and sets the high bit in the cache file unless we assign to the vars. 217960484Sobrien(set) 2>&1 | 218060484Sobrien case `(ac_space=' '; set | grep ac_space) 2>&1` in 218160484Sobrien *ac_space=\ *) 218260484Sobrien # `set' does not quote correctly, so add quotes (double-quote substitution 218360484Sobrien # turns \\\\ into \\, and sed turns \\ into \). 218460484Sobrien sed -n \ 218560484Sobrien -e "s/'/'\\\\''/g" \ 218660484Sobrien -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 218760484Sobrien ;; 218860484Sobrien *) 218960484Sobrien # `set' quotes correctly as required by POSIX, so do not add quotes. 219060484Sobrien sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 219160484Sobrien ;; 219260484Sobrien esac >> confcache 219360484Sobrienif cmp -s $cache_file confcache; then 219460484Sobrien : 219560484Sobrienelse 219660484Sobrien if test -w $cache_file; then 219760484Sobrien echo "updating cache $cache_file" 219860484Sobrien cat confcache > $cache_file 219960484Sobrien else 220060484Sobrien echo "not updating unwritable cache $cache_file" 220160484Sobrien fi 220260484Sobrienfi 220360484Sobrienrm -f confcache 220460484Sobrien 220560484Sobrien 220638889Sjdp# Actually configure libtool. ac_aux_dir is where install-sh is found. 220777298SobrienAR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 220877298SobrienMAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 220977298SobrienLN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 221077298SobrienAS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 221177298Sobrienobjext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 221277298Sobriendeplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 221360484Sobrien${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 221477298Sobrien$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ 221538889Sjdp|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 221638889Sjdp 221760484Sobrien# Reload cache, that may have been modified by ltconfig 221860484Sobrienif test -r "$cache_file"; then 221960484Sobrien echo "loading cache $cache_file" 222060484Sobrien . $cache_file 222160484Sobrienelse 222260484Sobrien echo "creating cache $cache_file" 222360484Sobrien > $cache_file 222460484Sobrienfi 222538889Sjdp 222660484Sobrien 222760484Sobrien# This can be used to rebuild libtool when needed 222877298SobrienLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" 222960484Sobrien 223060484Sobrien# Always use our own libtool. 223160484SobrienLIBTOOL='$(SHELL) $(top_builddir)/libtool' 223260484Sobrien 223360484Sobrien# Redirect the config.log output again, so that the ltconfig log is not 223460484Sobrien# clobbered by the next message. 223560484Sobrienexec 5>>./config.log 223660484Sobrien 223777298Sobrien 223877298Sobrien 223977298Sobrien 224077298Sobrien 224177298Sobrien 224277298Sobrien 224338889Sjdp# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. 224438889Sjdpif test "${enable_64_bit_bfd+set}" = set; then 224538889Sjdp enableval="$enable_64_bit_bfd" 224638889Sjdp case "${enableval}" in 224738889Sjdp yes) want64=true ;; 224838889Sjdp no) want64=false ;; 224938889Sjdp *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; 225038889Sjdpesac 225138889Sjdpelse 225238889Sjdp want64=false 225333965Sjdpfi 225438889Sjdp# Check whether --enable-targets or --disable-targets was given. 225538889Sjdpif test "${enable_targets+set}" = set; then 225638889Sjdp enableval="$enable_targets" 225738889Sjdp case "${enableval}" in 225838889Sjdp yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } 225938889Sjdp ;; 226038889Sjdp no) enable_targets= ;; 226138889Sjdp *) enable_targets=$enableval ;; 226238889Sjdpesac 226338889Sjdpfi 226438889Sjdp# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. 226538889Sjdpif test "${enable_commonbfdlib+set}" = set; then 226638889Sjdp enableval="$enable_commonbfdlib" 226738889Sjdp case "${enableval}" in 226838889Sjdp yes) commonbfdlib=true ;; 226938889Sjdp no) commonbfdlib=false ;; 227038889Sjdp *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; 227138889Sjdpesac 227238889Sjdpfi 227338889Sjdp# Check whether --with-mmap or --without-mmap was given. 227438889Sjdpif test "${with_mmap+set}" = set; then 227538889Sjdp withval="$with_mmap" 227638889Sjdp case "${withval}" in 227738889Sjdp yes) want_mmap=true ;; 227838889Sjdp no) want_mmap=false ;; 227938889Sjdp *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;; 228038889Sjdpesac 228138889Sjdpelse 228238889Sjdp want_mmap=false 228338889Sjdpfi 228438889Sjdp 228589857Sobrienbuild_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 228677298Sobrien# Check whether --enable-build-warnings or --disable-build-warnings was given. 228777298Sobrienif test "${enable_build_warnings+set}" = set; then 228877298Sobrien enableval="$enable_build_warnings" 228977298Sobrien case "${enableval}" in 229077298Sobrien yes) ;; 229177298Sobrien no) build_warnings="-w";; 229277298Sobrien ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 229377298Sobrien build_warnings="${build_warnings} ${t}";; 229477298Sobrien *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 229577298Sobrien build_warnings="${t} ${build_warnings}";; 229677298Sobrien *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 229777298Sobrienesac 229877298Sobrienif test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 229977298Sobrien echo "Setting warning flags = $build_warnings" 6>&1 230077298Sobrienfi 230177298Sobrienfi 230277298SobrienWARN_CFLAGS="" 230377298Sobrienif test "x${build_warnings}" != x -a "x$GCC" = xyes ; then 230477298Sobrien WARN_CFLAGS="${build_warnings}" 230577298Sobrienfi 230638889Sjdp 230738889Sjdp 230838889Sjdp 230938889Sjdp 231077298Sobrien 231177298Sobrien 231238889Sjdpif test -z "$target" ; then 231338889Sjdp { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } 231438889Sjdpfi 231538889Sjdp 231638889Sjdpecho $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 231789857Sobrienecho "configure:2318: checking whether to enable maintainer-specific portions of Makefiles" >&5 231838889Sjdp # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 231938889Sjdpif test "${enable_maintainer_mode+set}" = set; then 232038889Sjdp enableval="$enable_maintainer_mode" 232138889Sjdp USE_MAINTAINER_MODE=$enableval 232238889Sjdpelse 232338889Sjdp USE_MAINTAINER_MODE=no 232438889Sjdpfi 232538889Sjdp 232638889Sjdp echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 232738889Sjdp 232838889Sjdp 232960484Sobrienif test $USE_MAINTAINER_MODE = yes; then 233060484Sobrien MAINTAINER_MODE_TRUE= 233160484Sobrien MAINTAINER_MODE_FALSE='#' 233260484Sobrienelse 233360484Sobrien MAINTAINER_MODE_TRUE='#' 233460484Sobrien MAINTAINER_MODE_FALSE= 233560484Sobrienfi 233660484Sobrien MAINT=$MAINTAINER_MODE_TRUE 233760484Sobrien 233860484Sobrien 233938889Sjdp 234060484Sobrien 234138889Sjdpecho $ac_n "checking for executable suffix""... $ac_c" 1>&6 234289857Sobrienecho "configure:2343: checking for executable suffix" >&5 234360484Sobrienif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 234438889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 234538889Sjdpelse 234660484Sobrien if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 234760484Sobrien ac_cv_exeext=.exe 234838889Sjdpelse 234960484Sobrien rm -f conftest* 235060484Sobrien echo 'int main () { return 0; }' > conftest.$ac_ext 235160484Sobrien ac_cv_exeext= 235289857Sobrien if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 235360484Sobrien for file in conftest.*; do 235460484Sobrien case $file in 235589857Sobrien *.c | *.o | *.obj) ;; 235660484Sobrien *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 235760484Sobrien esac 235860484Sobrien done 235960484Sobrien else 236060484Sobrien { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 236160484Sobrien fi 236260484Sobrien rm -f conftest* 236360484Sobrien test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 236438889Sjdpfi 236560484Sobrienfi 236638889Sjdp 236738889SjdpEXEEXT="" 236860484Sobrientest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 236960484Sobrienecho "$ac_t""${ac_cv_exeext}" 1>&6 237060484Sobrienac_exeext=$EXEEXT 237138889Sjdp 237238889Sjdp 237338889Sjdphost64=false 237438889Sjdptarget64=false 237589857Sobrienbfd_default_target_size=32 237638889Sjdp 237738889Sjdp# host stuff: 237838889Sjdp 237938889Sjdp# Extract the first word of "gcc", so it can be a program name with args. 238038889Sjdpset dummy gcc; ac_word=$2 238138889Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 238289857Sobrienecho "configure:2383: checking for $ac_word" >&5 238338889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 238438889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 238538889Sjdpelse 238638889Sjdp if test -n "$CC"; then 238738889Sjdp ac_cv_prog_CC="$CC" # Let the user override the test. 238838889Sjdpelse 238960484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 239060484Sobrien ac_dummy="$PATH" 239160484Sobrien for ac_dir in $ac_dummy; do 239238889Sjdp test -z "$ac_dir" && ac_dir=. 239338889Sjdp if test -f $ac_dir/$ac_word; then 239438889Sjdp ac_cv_prog_CC="gcc" 239538889Sjdp break 239638889Sjdp fi 239738889Sjdp done 239838889Sjdp IFS="$ac_save_ifs" 239938889Sjdpfi 240038889Sjdpfi 240138889SjdpCC="$ac_cv_prog_CC" 240238889Sjdpif test -n "$CC"; then 240338889Sjdp echo "$ac_t""$CC" 1>&6 240438889Sjdpelse 240538889Sjdp echo "$ac_t""no" 1>&6 240638889Sjdpfi 240738889Sjdp 240838889Sjdpif test -z "$CC"; then 240938889Sjdp # Extract the first word of "cc", so it can be a program name with args. 241038889Sjdpset dummy cc; ac_word=$2 241138889Sjdpecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 241289857Sobrienecho "configure:2413: checking for $ac_word" >&5 241338889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 241438889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 241538889Sjdpelse 241638889Sjdp if test -n "$CC"; then 241738889Sjdp ac_cv_prog_CC="$CC" # Let the user override the test. 241838889Sjdpelse 241960484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 242038889Sjdp ac_prog_rejected=no 242160484Sobrien ac_dummy="$PATH" 242260484Sobrien for ac_dir in $ac_dummy; do 242338889Sjdp test -z "$ac_dir" && ac_dir=. 242438889Sjdp if test -f $ac_dir/$ac_word; then 242538889Sjdp if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 242638889Sjdp ac_prog_rejected=yes 242738889Sjdp continue 242838889Sjdp fi 242938889Sjdp ac_cv_prog_CC="cc" 243038889Sjdp break 243138889Sjdp fi 243238889Sjdp done 243338889Sjdp IFS="$ac_save_ifs" 243438889Sjdpif test $ac_prog_rejected = yes; then 243538889Sjdp # We found a bogon in the path, so make sure we never use it. 243638889Sjdp set dummy $ac_cv_prog_CC 243738889Sjdp shift 243838889Sjdp if test $# -gt 0; then 243938889Sjdp # We chose a different compiler from the bogus one. 244038889Sjdp # However, it has the same basename, so the bogon will be chosen 244138889Sjdp # first if we set CC to just the basename; use the full file name. 244238889Sjdp shift 244338889Sjdp set dummy "$ac_dir/$ac_word" "$@" 244438889Sjdp shift 244538889Sjdp ac_cv_prog_CC="$@" 244633965Sjdp fi 244733965Sjdpfi 244838889Sjdpfi 244938889Sjdpfi 245038889SjdpCC="$ac_cv_prog_CC" 245138889Sjdpif test -n "$CC"; then 245238889Sjdp echo "$ac_t""$CC" 1>&6 245338889Sjdpelse 245438889Sjdp echo "$ac_t""no" 1>&6 245538889Sjdpfi 245633965Sjdp 245760484Sobrien if test -z "$CC"; then 245860484Sobrien case "`uname -s`" in 245960484Sobrien *win32* | *WIN32*) 246060484Sobrien # Extract the first word of "cl", so it can be a program name with args. 246160484Sobrienset dummy cl; ac_word=$2 246260484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 246389857Sobrienecho "configure:2464: checking for $ac_word" >&5 246460484Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 246560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 246660484Sobrienelse 246760484Sobrien if test -n "$CC"; then 246860484Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 246960484Sobrienelse 247060484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 247160484Sobrien ac_dummy="$PATH" 247260484Sobrien for ac_dir in $ac_dummy; do 247360484Sobrien test -z "$ac_dir" && ac_dir=. 247460484Sobrien if test -f $ac_dir/$ac_word; then 247560484Sobrien ac_cv_prog_CC="cl" 247660484Sobrien break 247760484Sobrien fi 247860484Sobrien done 247960484Sobrien IFS="$ac_save_ifs" 248060484Sobrienfi 248160484Sobrienfi 248260484SobrienCC="$ac_cv_prog_CC" 248360484Sobrienif test -n "$CC"; then 248460484Sobrien echo "$ac_t""$CC" 1>&6 248560484Sobrienelse 248660484Sobrien echo "$ac_t""no" 1>&6 248760484Sobrienfi 248860484Sobrien ;; 248960484Sobrien esac 249060484Sobrien fi 249138889Sjdp test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 249238889Sjdpfi 249333965Sjdp 249438889Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 249589857Sobrienecho "configure:2496: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 249633965Sjdp 249738889Sjdpac_ext=c 249838889Sjdp# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 249938889Sjdpac_cpp='$CPP $CPPFLAGS' 250038889Sjdpac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 250160484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 250238889Sjdpcross_compiling=$ac_cv_prog_cc_cross 250333965Sjdp 250460484Sobriencat > conftest.$ac_ext << EOF 250560484Sobrien 250689857Sobrien#line 2507 "configure" 250738889Sjdp#include "confdefs.h" 250860484Sobrien 250938889Sjdpmain(){return(0);} 251038889SjdpEOF 251189857Sobrienif { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 251238889Sjdp ac_cv_prog_cc_works=yes 251338889Sjdp # If we can't run a trivial program, we are probably using a cross compiler. 251438889Sjdp if (./conftest; exit) 2>/dev/null; then 251538889Sjdp ac_cv_prog_cc_cross=no 251638889Sjdp else 251738889Sjdp ac_cv_prog_cc_cross=yes 251838889Sjdp fi 251938889Sjdpelse 252038889Sjdp echo "configure: failed program was:" >&5 252138889Sjdp cat conftest.$ac_ext >&5 252238889Sjdp ac_cv_prog_cc_works=no 252338889Sjdpfi 252438889Sjdprm -fr conftest* 252560484Sobrienac_ext=c 252660484Sobrien# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 252760484Sobrienac_cpp='$CPP $CPPFLAGS' 252860484Sobrienac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 252960484Sobrienac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 253060484Sobriencross_compiling=$ac_cv_prog_cc_cross 253133965Sjdp 253238889Sjdpecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 253338889Sjdpif test $ac_cv_prog_cc_works = no; then 253438889Sjdp { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 253538889Sjdpfi 253638889Sjdpecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 253789857Sobrienecho "configure:2538: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 253838889Sjdpecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 253938889Sjdpcross_compiling=$ac_cv_prog_cc_cross 254033965Sjdp 254138889Sjdpecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 254289857Sobrienecho "configure:2543: checking whether we are using GNU C" >&5 254338889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 254438889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 254538889Sjdpelse 254638889Sjdp cat > conftest.c <<EOF 254738889Sjdp#ifdef __GNUC__ 254838889Sjdp yes; 254938889Sjdp#endif 255038889SjdpEOF 255189857Sobrienif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 255238889Sjdp ac_cv_prog_gcc=yes 255338889Sjdpelse 255438889Sjdp ac_cv_prog_gcc=no 255538889Sjdpfi 255638889Sjdpfi 255733965Sjdp 255838889Sjdpecho "$ac_t""$ac_cv_prog_gcc" 1>&6 255938889Sjdp 256038889Sjdpif test $ac_cv_prog_gcc = yes; then 256138889Sjdp GCC=yes 256260484Sobrienelse 256360484Sobrien GCC= 256460484Sobrienfi 256560484Sobrien 256660484Sobrienac_test_CFLAGS="${CFLAGS+set}" 256760484Sobrienac_save_CFLAGS="$CFLAGS" 256860484SobrienCFLAGS= 256960484Sobrienecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 257089857Sobrienecho "configure:2571: checking whether ${CC-cc} accepts -g" >&5 257138889Sjdpif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 257238889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 257333965Sjdpelse 257438889Sjdp echo 'void f(){}' > conftest.c 257538889Sjdpif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 257638889Sjdp ac_cv_prog_cc_g=yes 257738889Sjdpelse 257838889Sjdp ac_cv_prog_cc_g=no 257933965Sjdpfi 258038889Sjdprm -f conftest* 258133965Sjdp 258238889Sjdpfi 258333965Sjdp 258438889Sjdpecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 258560484Sobrienif test "$ac_test_CFLAGS" = set; then 258660484Sobrien CFLAGS="$ac_save_CFLAGS" 258760484Sobrienelif test $ac_cv_prog_cc_g = yes; then 258860484Sobrien if test "$GCC" = yes; then 258938889Sjdp CFLAGS="-g -O2" 259038889Sjdp else 259160484Sobrien CFLAGS="-g" 259260484Sobrien fi 259360484Sobrienelse 259460484Sobrien if test "$GCC" = yes; then 259538889Sjdp CFLAGS="-O2" 259660484Sobrien else 259760484Sobrien CFLAGS= 259838889Sjdp fi 259960484Sobrienfi 260060484Sobrien 260160484Sobrien 260289857SobrienALL_LINGUAS="fr tr ja es sv" 260360484Sobrienecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 260489857Sobrienecho "configure:2605: checking how to run the C preprocessor" >&5 260560484Sobrien# On Suns, sometimes $CPP names a directory. 260660484Sobrienif test -n "$CPP" && test -d "$CPP"; then 260760484Sobrien CPP= 260860484Sobrienfi 260960484Sobrienif test -z "$CPP"; then 261060484Sobrienif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 261160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 261238889Sjdpelse 261360484Sobrien # This must be in double quotes, not single quotes, because CPP may get 261460484Sobrien # substituted into the Makefile and "${CC-cc}" will confuse make. 261560484Sobrien CPP="${CC-cc} -E" 261660484Sobrien # On the NeXT, cc -E runs the code through the compiler's parser, 261760484Sobrien # not just through cpp. 261860484Sobrien cat > conftest.$ac_ext <<EOF 261989857Sobrien#line 2620 "configure" 262060484Sobrien#include "confdefs.h" 262160484Sobrien#include <assert.h> 262260484SobrienSyntax Error 262360484SobrienEOF 262460484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 262589857Sobrien{ (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 262660484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 262760484Sobrienif test -z "$ac_err"; then 262860484Sobrien : 262960484Sobrienelse 263060484Sobrien echo "$ac_err" >&5 263160484Sobrien echo "configure: failed program was:" >&5 263260484Sobrien cat conftest.$ac_ext >&5 263360484Sobrien rm -rf conftest* 263460484Sobrien CPP="${CC-cc} -E -traditional-cpp" 263560484Sobrien cat > conftest.$ac_ext <<EOF 263689857Sobrien#line 2637 "configure" 263760484Sobrien#include "confdefs.h" 263860484Sobrien#include <assert.h> 263960484SobrienSyntax Error 264060484SobrienEOF 264160484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 264289857Sobrien{ (eval echo configure:2643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 264360484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 264460484Sobrienif test -z "$ac_err"; then 264560484Sobrien : 264660484Sobrienelse 264760484Sobrien echo "$ac_err" >&5 264860484Sobrien echo "configure: failed program was:" >&5 264960484Sobrien cat conftest.$ac_ext >&5 265060484Sobrien rm -rf conftest* 265160484Sobrien CPP="${CC-cc} -nologo -E" 265260484Sobrien cat > conftest.$ac_ext <<EOF 265389857Sobrien#line 2654 "configure" 265460484Sobrien#include "confdefs.h" 265560484Sobrien#include <assert.h> 265660484SobrienSyntax Error 265760484SobrienEOF 265860484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 265989857Sobrien{ (eval echo configure:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 266060484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 266160484Sobrienif test -z "$ac_err"; then 266260484Sobrien : 266360484Sobrienelse 266460484Sobrien echo "$ac_err" >&5 266560484Sobrien echo "configure: failed program was:" >&5 266660484Sobrien cat conftest.$ac_ext >&5 266760484Sobrien rm -rf conftest* 266860484Sobrien CPP=/lib/cpp 266938889Sjdpfi 267060484Sobrienrm -f conftest* 267160484Sobrienfi 267260484Sobrienrm -f conftest* 267360484Sobrienfi 267460484Sobrienrm -f conftest* 267560484Sobrien ac_cv_prog_CPP="$CPP" 267660484Sobrienfi 267760484Sobrien CPP="$ac_cv_prog_CPP" 267860484Sobrienelse 267960484Sobrien ac_cv_prog_CPP="$CPP" 268060484Sobrienfi 268160484Sobrienecho "$ac_t""$CPP" 1>&6 268233965Sjdp 268377298Sobrien# Extract the first word of "ranlib", so it can be a program name with args. 268477298Sobrienset dummy ranlib; ac_word=$2 268577298Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 268689857Sobrienecho "configure:2687: checking for $ac_word" >&5 268777298Sobrienif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 268877298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 268977298Sobrienelse 269077298Sobrien if test -n "$RANLIB"; then 269177298Sobrien ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 269277298Sobrienelse 269377298Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 269477298Sobrien ac_dummy="$PATH" 269577298Sobrien for ac_dir in $ac_dummy; do 269677298Sobrien test -z "$ac_dir" && ac_dir=. 269777298Sobrien if test -f $ac_dir/$ac_word; then 269877298Sobrien ac_cv_prog_RANLIB="ranlib" 269977298Sobrien break 270077298Sobrien fi 270177298Sobrien done 270277298Sobrien IFS="$ac_save_ifs" 270377298Sobrien test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 270477298Sobrienfi 270577298Sobrienfi 270677298SobrienRANLIB="$ac_cv_prog_RANLIB" 270777298Sobrienif test -n "$RANLIB"; then 270877298Sobrien echo "$ac_t""$RANLIB" 1>&6 270977298Sobrienelse 271077298Sobrien echo "$ac_t""no" 1>&6 271177298Sobrienfi 271277298Sobrien 271360484Sobrienecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 271489857Sobrienecho "configure:2715: checking for ANSI C header files" >&5 271560484Sobrienif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 271660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 271760484Sobrienelse 271860484Sobrien cat > conftest.$ac_ext <<EOF 271989857Sobrien#line 2720 "configure" 272060484Sobrien#include "confdefs.h" 272160484Sobrien#include <stdlib.h> 272260484Sobrien#include <stdarg.h> 272360484Sobrien#include <string.h> 272460484Sobrien#include <float.h> 272560484SobrienEOF 272660484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 272789857Sobrien{ (eval echo configure:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 272860484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 272960484Sobrienif test -z "$ac_err"; then 273060484Sobrien rm -rf conftest* 273160484Sobrien ac_cv_header_stdc=yes 273260484Sobrienelse 273360484Sobrien echo "$ac_err" >&5 273460484Sobrien echo "configure: failed program was:" >&5 273560484Sobrien cat conftest.$ac_ext >&5 273660484Sobrien rm -rf conftest* 273760484Sobrien ac_cv_header_stdc=no 273860484Sobrienfi 273960484Sobrienrm -f conftest* 274033965Sjdp 274160484Sobrienif test $ac_cv_header_stdc = yes; then 274260484Sobrien # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 274360484Sobriencat > conftest.$ac_ext <<EOF 274489857Sobrien#line 2745 "configure" 274560484Sobrien#include "confdefs.h" 274660484Sobrien#include <string.h> 274760484SobrienEOF 274860484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 274960484Sobrien egrep "memchr" >/dev/null 2>&1; then 275060484Sobrien : 275160484Sobrienelse 275260484Sobrien rm -rf conftest* 275360484Sobrien ac_cv_header_stdc=no 275460484Sobrienfi 275560484Sobrienrm -f conftest* 275633965Sjdp 275760484Sobrienfi 275833965Sjdp 275960484Sobrienif test $ac_cv_header_stdc = yes; then 276060484Sobrien # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 276160484Sobriencat > conftest.$ac_ext <<EOF 276289857Sobrien#line 2763 "configure" 276360484Sobrien#include "confdefs.h" 276460484Sobrien#include <stdlib.h> 276560484SobrienEOF 276660484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 276760484Sobrien egrep "free" >/dev/null 2>&1; then 276860484Sobrien : 276960484Sobrienelse 277060484Sobrien rm -rf conftest* 277160484Sobrien ac_cv_header_stdc=no 277260484Sobrienfi 277360484Sobrienrm -f conftest* 277433965Sjdp 277560484Sobrienfi 277638889Sjdp 277760484Sobrienif test $ac_cv_header_stdc = yes; then 277860484Sobrien # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 277960484Sobrienif test "$cross_compiling" = yes; then 278060484Sobrien : 278160484Sobrienelse 278260484Sobrien cat > conftest.$ac_ext <<EOF 278389857Sobrien#line 2784 "configure" 278460484Sobrien#include "confdefs.h" 278560484Sobrien#include <ctype.h> 278660484Sobrien#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 278760484Sobrien#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 278860484Sobrien#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 278960484Sobrienint main () { int i; for (i = 0; i < 256; i++) 279060484Sobrienif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 279160484Sobrienexit (0); } 279238889Sjdp 279360484SobrienEOF 279489857Sobrienif { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 279560484Sobrienthen 279660484Sobrien : 279760484Sobrienelse 279860484Sobrien echo "configure: failed program was:" >&5 279960484Sobrien cat conftest.$ac_ext >&5 280060484Sobrien rm -fr conftest* 280160484Sobrien ac_cv_header_stdc=no 280233965Sjdpfi 280360484Sobrienrm -fr conftest* 280460484Sobrienfi 280533965Sjdp 280660484Sobrienfi 280760484Sobrienfi 280833965Sjdp 280960484Sobrienecho "$ac_t""$ac_cv_header_stdc" 1>&6 281060484Sobrienif test $ac_cv_header_stdc = yes; then 281160484Sobrien cat >> confdefs.h <<\EOF 281260484Sobrien#define STDC_HEADERS 1 281360484SobrienEOF 281433965Sjdp 281560484Sobrienfi 281633965Sjdp 281760484Sobrienecho $ac_n "checking for working const""... $ac_c" 1>&6 281889857Sobrienecho "configure:2819: checking for working const" >&5 281960484Sobrienif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 282060484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 282160484Sobrienelse 282260484Sobrien cat > conftest.$ac_ext <<EOF 282389857Sobrien#line 2824 "configure" 282460484Sobrien#include "confdefs.h" 282533965Sjdp 282660484Sobrienint main() { 282760484Sobrien 282860484Sobrien/* Ultrix mips cc rejects this. */ 282977298Sobrientypedef int charset[2]; const charset x; 283060484Sobrien/* SunOS 4.1.1 cc rejects this. */ 283160484Sobrienchar const *const *ccp; 283260484Sobrienchar **p; 283360484Sobrien/* NEC SVR4.0.2 mips cc rejects this. */ 283460484Sobrienstruct point {int x, y;}; 283560484Sobrienstatic struct point const zero = {0,0}; 283660484Sobrien/* AIX XL C 1.02.0.0 rejects this. 283760484Sobrien It does not let you subtract one const X* pointer from another in an arm 283860484Sobrien of an if-expression whose if-part is not a constant expression */ 283960484Sobrienconst char *g = "string"; 284060484Sobrienccp = &g + (g ? g-g : 0); 284160484Sobrien/* HPUX 7.0 cc rejects these. */ 284260484Sobrien++ccp; 284360484Sobrienp = (char**) ccp; 284460484Sobrienccp = (char const *const *) p; 284560484Sobrien{ /* SCO 3.2v4 cc rejects this. */ 284660484Sobrien char *t; 284760484Sobrien char const *s = 0 ? (char *) 0 : (char const *) 0; 284860484Sobrien 284960484Sobrien *t++ = 0; 285060484Sobrien} 285160484Sobrien{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 285260484Sobrien int x[] = {25, 17}; 285360484Sobrien const int *foo = &x[0]; 285460484Sobrien ++foo; 285560484Sobrien} 285660484Sobrien{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 285760484Sobrien typedef const int *iptr; 285860484Sobrien iptr p = 0; 285960484Sobrien ++p; 286060484Sobrien} 286160484Sobrien{ /* AIX XL C 1.02.0.0 rejects this saying 286260484Sobrien "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 286360484Sobrien struct s { int j; const int *ap[3]; }; 286460484Sobrien struct s *b; b->j = 5; 286560484Sobrien} 286660484Sobrien{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 286760484Sobrien const int foo = 10; 286860484Sobrien} 286960484Sobrien 287060484Sobrien; return 0; } 287160484SobrienEOF 287289857Sobrienif { (eval echo configure:2873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 287360484Sobrien rm -rf conftest* 287460484Sobrien ac_cv_c_const=yes 287560484Sobrienelse 287660484Sobrien echo "configure: failed program was:" >&5 287760484Sobrien cat conftest.$ac_ext >&5 287860484Sobrien rm -rf conftest* 287960484Sobrien ac_cv_c_const=no 288033965Sjdpfi 288160484Sobrienrm -f conftest* 288260484Sobrienfi 288333965Sjdp 288460484Sobrienecho "$ac_t""$ac_cv_c_const" 1>&6 288560484Sobrienif test $ac_cv_c_const = no; then 288660484Sobrien cat >> confdefs.h <<\EOF 288760484Sobrien#define const 288860484SobrienEOF 288960484Sobrien 289060484Sobrienfi 289160484Sobrien 289260484Sobrienecho $ac_n "checking for inline""... $ac_c" 1>&6 289389857Sobrienecho "configure:2894: checking for inline" >&5 289460484Sobrienif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 289560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 289638889Sjdpelse 289760484Sobrien ac_cv_c_inline=no 289860484Sobrienfor ac_kw in inline __inline__ __inline; do 289960484Sobrien cat > conftest.$ac_ext <<EOF 290089857Sobrien#line 2901 "configure" 290160484Sobrien#include "confdefs.h" 290260484Sobrien 290360484Sobrienint main() { 290477298Sobrien} $ac_kw foo() { 290560484Sobrien; return 0; } 290660484SobrienEOF 290789857Sobrienif { (eval echo configure:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 290860484Sobrien rm -rf conftest* 290960484Sobrien ac_cv_c_inline=$ac_kw; break 291060484Sobrienelse 291160484Sobrien echo "configure: failed program was:" >&5 291260484Sobrien cat conftest.$ac_ext >&5 291360484Sobrienfi 291460484Sobrienrm -f conftest* 291560484Sobriendone 291660484Sobrien 291760484Sobrienfi 291860484Sobrien 291960484Sobrienecho "$ac_t""$ac_cv_c_inline" 1>&6 292060484Sobriencase "$ac_cv_c_inline" in 292160484Sobrien inline | yes) ;; 292260484Sobrien no) cat >> confdefs.h <<\EOF 292360484Sobrien#define inline 292460484SobrienEOF 292560484Sobrien ;; 292660484Sobrien *) cat >> confdefs.h <<EOF 292760484Sobrien#define inline $ac_cv_c_inline 292860484SobrienEOF 292960484Sobrien ;; 293060484Sobrienesac 293160484Sobrien 293260484Sobrienecho $ac_n "checking for off_t""... $ac_c" 1>&6 293389857Sobrienecho "configure:2934: checking for off_t" >&5 293460484Sobrienif eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 293538889Sjdp echo $ac_n "(cached) $ac_c" 1>&6 293638889Sjdpelse 293760484Sobrien cat > conftest.$ac_ext <<EOF 293889857Sobrien#line 2939 "configure" 293960484Sobrien#include "confdefs.h" 294060484Sobrien#include <sys/types.h> 294160484Sobrien#if STDC_HEADERS 294260484Sobrien#include <stdlib.h> 294360484Sobrien#include <stddef.h> 294460484Sobrien#endif 294560484SobrienEOF 294660484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 294760484Sobrien egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 294860484Sobrien rm -rf conftest* 294960484Sobrien ac_cv_type_off_t=yes 295060484Sobrienelse 295160484Sobrien rm -rf conftest* 295260484Sobrien ac_cv_type_off_t=no 295360484Sobrienfi 295460484Sobrienrm -f conftest* 295560484Sobrien 295660484Sobrienfi 295760484Sobrienecho "$ac_t""$ac_cv_type_off_t" 1>&6 295860484Sobrienif test $ac_cv_type_off_t = no; then 295960484Sobrien cat >> confdefs.h <<\EOF 296060484Sobrien#define off_t long 296160484SobrienEOF 296260484Sobrien 296360484Sobrienfi 296460484Sobrien 296560484Sobrienecho $ac_n "checking for size_t""... $ac_c" 1>&6 296689857Sobrienecho "configure:2967: checking for size_t" >&5 296760484Sobrienif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 296860484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 296960484Sobrienelse 297060484Sobrien cat > conftest.$ac_ext <<EOF 297189857Sobrien#line 2972 "configure" 297260484Sobrien#include "confdefs.h" 297360484Sobrien#include <sys/types.h> 297460484Sobrien#if STDC_HEADERS 297560484Sobrien#include <stdlib.h> 297660484Sobrien#include <stddef.h> 297760484Sobrien#endif 297860484SobrienEOF 297960484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 298060484Sobrien egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 298160484Sobrien rm -rf conftest* 298260484Sobrien ac_cv_type_size_t=yes 298360484Sobrienelse 298460484Sobrien rm -rf conftest* 298560484Sobrien ac_cv_type_size_t=no 298660484Sobrienfi 298760484Sobrienrm -f conftest* 298860484Sobrien 298960484Sobrienfi 299060484Sobrienecho "$ac_t""$ac_cv_type_size_t" 1>&6 299160484Sobrienif test $ac_cv_type_size_t = no; then 299260484Sobrien cat >> confdefs.h <<\EOF 299360484Sobrien#define size_t unsigned 299460484SobrienEOF 299560484Sobrien 299660484Sobrienfi 299760484Sobrien 299860484Sobrien# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 299960484Sobrien# for constant arguments. Useless! 300060484Sobrienecho $ac_n "checking for working alloca.h""... $ac_c" 1>&6 300189857Sobrienecho "configure:3002: checking for working alloca.h" >&5 300260484Sobrienif eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 300360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 300460484Sobrienelse 300560484Sobrien cat > conftest.$ac_ext <<EOF 300689857Sobrien#line 3007 "configure" 300760484Sobrien#include "confdefs.h" 300860484Sobrien#include <alloca.h> 300938889Sjdpint main() { 301077298Sobrienchar *p = alloca(2 * sizeof(int)); 301160484Sobrien; return 0; } 301260484SobrienEOF 301389857Sobrienif { (eval echo configure:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 301460484Sobrien rm -rf conftest* 301560484Sobrien ac_cv_header_alloca_h=yes 301660484Sobrienelse 301760484Sobrien echo "configure: failed program was:" >&5 301860484Sobrien cat conftest.$ac_ext >&5 301960484Sobrien rm -rf conftest* 302060484Sobrien ac_cv_header_alloca_h=no 302160484Sobrienfi 302260484Sobrienrm -f conftest* 302360484Sobrienfi 302460484Sobrien 302560484Sobrienecho "$ac_t""$ac_cv_header_alloca_h" 1>&6 302660484Sobrienif test $ac_cv_header_alloca_h = yes; then 302760484Sobrien cat >> confdefs.h <<\EOF 302860484Sobrien#define HAVE_ALLOCA_H 1 302960484SobrienEOF 303060484Sobrien 303160484Sobrienfi 303260484Sobrien 303360484Sobrienecho $ac_n "checking for alloca""... $ac_c" 1>&6 303489857Sobrienecho "configure:3035: checking for alloca" >&5 303560484Sobrienif eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 303660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 303760484Sobrienelse 303860484Sobrien cat > conftest.$ac_ext <<EOF 303989857Sobrien#line 3040 "configure" 304060484Sobrien#include "confdefs.h" 304160484Sobrien 304260484Sobrien#ifdef __GNUC__ 304360484Sobrien# define alloca __builtin_alloca 304460484Sobrien#else 304560484Sobrien# ifdef _MSC_VER 304660484Sobrien# include <malloc.h> 304760484Sobrien# define alloca _alloca 304860484Sobrien# else 304960484Sobrien# if HAVE_ALLOCA_H 305060484Sobrien# include <alloca.h> 305160484Sobrien# else 305260484Sobrien# ifdef _AIX 305360484Sobrien #pragma alloca 305460484Sobrien# else 305560484Sobrien# ifndef alloca /* predefined by HP cc +Olibcalls */ 305660484Sobrienchar *alloca (); 305760484Sobrien# endif 305860484Sobrien# endif 305960484Sobrien# endif 306060484Sobrien# endif 306160484Sobrien#endif 306260484Sobrien 306360484Sobrienint main() { 306460484Sobrienchar *p = (char *) alloca(1); 306560484Sobrien; return 0; } 306660484SobrienEOF 306789857Sobrienif { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 306860484Sobrien rm -rf conftest* 306960484Sobrien ac_cv_func_alloca_works=yes 307060484Sobrienelse 307160484Sobrien echo "configure: failed program was:" >&5 307260484Sobrien cat conftest.$ac_ext >&5 307360484Sobrien rm -rf conftest* 307460484Sobrien ac_cv_func_alloca_works=no 307560484Sobrienfi 307660484Sobrienrm -f conftest* 307760484Sobrienfi 307860484Sobrien 307960484Sobrienecho "$ac_t""$ac_cv_func_alloca_works" 1>&6 308060484Sobrienif test $ac_cv_func_alloca_works = yes; then 308160484Sobrien cat >> confdefs.h <<\EOF 308260484Sobrien#define HAVE_ALLOCA 1 308360484SobrienEOF 308460484Sobrien 308560484Sobrienfi 308660484Sobrien 308760484Sobrienif test $ac_cv_func_alloca_works = no; then 308860484Sobrien # The SVR3 libPW and SVR4 libucb both contain incompatible functions 308960484Sobrien # that cause trouble. Some versions do not even contain alloca or 309060484Sobrien # contain a buggy version. If you still want to use their alloca, 309160484Sobrien # use ar to extract alloca.o from them instead of compiling alloca.c. 309260484Sobrien ALLOCA=alloca.${ac_objext} 309360484Sobrien cat >> confdefs.h <<\EOF 309460484Sobrien#define C_ALLOCA 1 309560484SobrienEOF 309660484Sobrien 309760484Sobrien 309860484Sobrienecho $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 309989857Sobrienecho "configure:3100: checking whether alloca needs Cray hooks" >&5 310060484Sobrienif eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 310160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 310260484Sobrienelse 310360484Sobrien cat > conftest.$ac_ext <<EOF 310489857Sobrien#line 3105 "configure" 310560484Sobrien#include "confdefs.h" 310660484Sobrien#if defined(CRAY) && ! defined(CRAY2) 310760484Sobrienwebecray 310860484Sobrien#else 310960484Sobrienwenotbecray 311060484Sobrien#endif 311160484Sobrien 311260484SobrienEOF 311360484Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 311460484Sobrien egrep "webecray" >/dev/null 2>&1; then 311560484Sobrien rm -rf conftest* 311660484Sobrien ac_cv_os_cray=yes 311760484Sobrienelse 311860484Sobrien rm -rf conftest* 311960484Sobrien ac_cv_os_cray=no 312060484Sobrienfi 312160484Sobrienrm -f conftest* 312260484Sobrien 312360484Sobrienfi 312460484Sobrien 312560484Sobrienecho "$ac_t""$ac_cv_os_cray" 1>&6 312660484Sobrienif test $ac_cv_os_cray = yes; then 312760484Sobrienfor ac_func in _getb67 GETB67 getb67; do 312860484Sobrien echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 312989857Sobrienecho "configure:3130: checking for $ac_func" >&5 313060484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 313160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 313260484Sobrienelse 313360484Sobrien cat > conftest.$ac_ext <<EOF 313489857Sobrien#line 3135 "configure" 313560484Sobrien#include "confdefs.h" 313660484Sobrien/* System header to define __stub macros and hopefully few prototypes, 313760484Sobrien which can conflict with char $ac_func(); below. */ 313860484Sobrien#include <assert.h> 313960484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 314060484Sobrien/* We use char because int might match the return type of a gcc2 314160484Sobrien builtin and then its argument prototype would still apply. */ 314260484Sobrienchar $ac_func(); 314360484Sobrien 314460484Sobrienint main() { 314560484Sobrien 314660484Sobrien/* The GNU C library defines this for functions which it implements 314760484Sobrien to always fail with ENOSYS. Some functions are actually named 314860484Sobrien something starting with __ and the normal name is an alias. */ 314960484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 315060484Sobrienchoke me 315160484Sobrien#else 315260484Sobrien$ac_func(); 315360484Sobrien#endif 315460484Sobrien 315560484Sobrien; return 0; } 315660484SobrienEOF 315789857Sobrienif { (eval echo configure:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 315860484Sobrien rm -rf conftest* 315960484Sobrien eval "ac_cv_func_$ac_func=yes" 316060484Sobrienelse 316160484Sobrien echo "configure: failed program was:" >&5 316260484Sobrien cat conftest.$ac_ext >&5 316360484Sobrien rm -rf conftest* 316460484Sobrien eval "ac_cv_func_$ac_func=no" 316560484Sobrienfi 316660484Sobrienrm -f conftest* 316760484Sobrienfi 316860484Sobrien 316960484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 317060484Sobrien echo "$ac_t""yes" 1>&6 317160484Sobrien cat >> confdefs.h <<EOF 317260484Sobrien#define CRAY_STACKSEG_END $ac_func 317360484SobrienEOF 317460484Sobrien 317560484Sobrien break 317660484Sobrienelse 317760484Sobrien echo "$ac_t""no" 1>&6 317860484Sobrienfi 317960484Sobrien 318060484Sobriendone 318160484Sobrienfi 318260484Sobrien 318360484Sobrienecho $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 318489857Sobrienecho "configure:3185: checking stack direction for C alloca" >&5 318560484Sobrienif eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 318660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 318760484Sobrienelse 318860484Sobrien if test "$cross_compiling" = yes; then 318960484Sobrien ac_cv_c_stack_direction=0 319060484Sobrienelse 319160484Sobrien cat > conftest.$ac_ext <<EOF 319289857Sobrien#line 3193 "configure" 319360484Sobrien#include "confdefs.h" 319460484Sobrienfind_stack_direction () 319560484Sobrien{ 319660484Sobrien static char *addr = 0; 319760484Sobrien auto char dummy; 319860484Sobrien if (addr == 0) 319960484Sobrien { 320060484Sobrien addr = &dummy; 320160484Sobrien return find_stack_direction (); 320260484Sobrien } 320360484Sobrien else 320460484Sobrien return (&dummy > addr) ? 1 : -1; 320538889Sjdp} 320660484Sobrienmain () 320760484Sobrien{ 320860484Sobrien exit (find_stack_direction() < 0); 320960484Sobrien} 321038889SjdpEOF 321189857Sobrienif { (eval echo configure:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 321260484Sobrienthen 321360484Sobrien ac_cv_c_stack_direction=1 321460484Sobrienelse 321560484Sobrien echo "configure: failed program was:" >&5 321660484Sobrien cat conftest.$ac_ext >&5 321760484Sobrien rm -fr conftest* 321860484Sobrien ac_cv_c_stack_direction=-1 321938889Sjdpfi 322060484Sobrienrm -fr conftest* 322160484Sobrienfi 322233965Sjdp 322338889Sjdpfi 322438889Sjdp 322560484Sobrienecho "$ac_t""$ac_cv_c_stack_direction" 1>&6 322660484Sobriencat >> confdefs.h <<EOF 322760484Sobrien#define STACK_DIRECTION $ac_cv_c_stack_direction 322860484SobrienEOF 322938889Sjdp 323033965Sjdpfi 323160484Sobrien 323260484Sobrienfor ac_hdr in unistd.h 323360484Sobriendo 323460484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 323560484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 323689857Sobrienecho "configure:3237: checking for $ac_hdr" >&5 323760484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 323833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 323933965Sjdpelse 324033965Sjdp cat > conftest.$ac_ext <<EOF 324189857Sobrien#line 3242 "configure" 324233965Sjdp#include "confdefs.h" 324360484Sobrien#include <$ac_hdr> 324460484SobrienEOF 324560484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 324689857Sobrien{ (eval echo configure:3247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 324760484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 324860484Sobrienif test -z "$ac_err"; then 324960484Sobrien rm -rf conftest* 325060484Sobrien eval "ac_cv_header_$ac_safe=yes" 325160484Sobrienelse 325260484Sobrien echo "$ac_err" >&5 325360484Sobrien echo "configure: failed program was:" >&5 325460484Sobrien cat conftest.$ac_ext >&5 325560484Sobrien rm -rf conftest* 325660484Sobrien eval "ac_cv_header_$ac_safe=no" 325760484Sobrienfi 325860484Sobrienrm -f conftest* 325960484Sobrienfi 326060484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 326160484Sobrien echo "$ac_t""yes" 1>&6 326260484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 326360484Sobrien cat >> confdefs.h <<EOF 326460484Sobrien#define $ac_tr_hdr 1 326560484SobrienEOF 326660484Sobrien 326760484Sobrienelse 326860484Sobrien echo "$ac_t""no" 1>&6 326960484Sobrienfi 327060484Sobriendone 327160484Sobrien 327260484Sobrienfor ac_func in getpagesize 327360484Sobriendo 327460484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 327589857Sobrienecho "configure:3276: checking for $ac_func" >&5 327660484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 327760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 327860484Sobrienelse 327960484Sobrien cat > conftest.$ac_ext <<EOF 328089857Sobrien#line 3281 "configure" 328160484Sobrien#include "confdefs.h" 328260484Sobrien/* System header to define __stub macros and hopefully few prototypes, 328360484Sobrien which can conflict with char $ac_func(); below. */ 328433965Sjdp#include <assert.h> 328560484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 328660484Sobrien/* We use char because int might match the return type of a gcc2 328760484Sobrien builtin and then its argument prototype would still apply. */ 328860484Sobrienchar $ac_func(); 328960484Sobrien 329060484Sobrienint main() { 329160484Sobrien 329260484Sobrien/* The GNU C library defines this for functions which it implements 329360484Sobrien to always fail with ENOSYS. Some functions are actually named 329460484Sobrien something starting with __ and the normal name is an alias. */ 329560484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 329660484Sobrienchoke me 329760484Sobrien#else 329860484Sobrien$ac_func(); 329960484Sobrien#endif 330060484Sobrien 330160484Sobrien; return 0; } 330233965SjdpEOF 330389857Sobrienif { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 330460484Sobrien rm -rf conftest* 330560484Sobrien eval "ac_cv_func_$ac_func=yes" 330660484Sobrienelse 330760484Sobrien echo "configure: failed program was:" >&5 330860484Sobrien cat conftest.$ac_ext >&5 330960484Sobrien rm -rf conftest* 331060484Sobrien eval "ac_cv_func_$ac_func=no" 331160484Sobrienfi 331260484Sobrienrm -f conftest* 331360484Sobrienfi 331460484Sobrien 331560484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 331660484Sobrien echo "$ac_t""yes" 1>&6 331760484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 331860484Sobrien cat >> confdefs.h <<EOF 331960484Sobrien#define $ac_tr_func 1 332060484SobrienEOF 332160484Sobrien 332260484Sobrienelse 332360484Sobrien echo "$ac_t""no" 1>&6 332460484Sobrienfi 332560484Sobriendone 332660484Sobrien 332760484Sobrienecho $ac_n "checking for working mmap""... $ac_c" 1>&6 332889857Sobrienecho "configure:3329: checking for working mmap" >&5 332960484Sobrienif eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 333060484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 333160484Sobrienelse 333260484Sobrien if test "$cross_compiling" = yes; then 333360484Sobrien ac_cv_func_mmap_fixed_mapped=no 333460484Sobrienelse 333560484Sobrien cat > conftest.$ac_ext <<EOF 333689857Sobrien#line 3337 "configure" 333760484Sobrien#include "confdefs.h" 333860484Sobrien 333960484Sobrien/* Thanks to Mike Haertel and Jim Avera for this test. 334060484Sobrien Here is a matrix of mmap possibilities: 334160484Sobrien mmap private not fixed 334260484Sobrien mmap private fixed at somewhere currently unmapped 334360484Sobrien mmap private fixed at somewhere already mapped 334460484Sobrien mmap shared not fixed 334560484Sobrien mmap shared fixed at somewhere currently unmapped 334660484Sobrien mmap shared fixed at somewhere already mapped 334760484Sobrien For private mappings, we should verify that changes cannot be read() 334860484Sobrien back from the file, nor mmap's back from the file at a different 334960484Sobrien address. (There have been systems where private was not correctly 335060484Sobrien implemented like the infamous i386 svr4.0, and systems where the 335160484Sobrien VM page cache was not coherent with the filesystem buffer cache 335260484Sobrien like early versions of FreeBSD and possibly contemporary NetBSD.) 335360484Sobrien For shared mappings, we should conversely verify that changes get 335460484Sobrien propogated back to all the places they're supposed to be. 335560484Sobrien 335660484Sobrien Grep wants private fixed already mapped. 335760484Sobrien The main things grep needs to know about mmap are: 335860484Sobrien * does it exist and is it safe to write into the mmap'd area 335960484Sobrien * how to use it (BSD variants) */ 336060484Sobrien#include <sys/types.h> 336160484Sobrien#include <fcntl.h> 336260484Sobrien#include <sys/mman.h> 336360484Sobrien 336460484Sobrien/* This mess was copied from the GNU getpagesize.h. */ 336560484Sobrien#ifndef HAVE_GETPAGESIZE 336677298Sobrien# ifdef HAVE_UNISTD_H 336777298Sobrien# include <unistd.h> 336877298Sobrien# endif 336960484Sobrien 337060484Sobrien/* Assume that all systems that can run configure have sys/param.h. */ 337160484Sobrien# ifndef HAVE_SYS_PARAM_H 337260484Sobrien# define HAVE_SYS_PARAM_H 1 337360484Sobrien# endif 337460484Sobrien 337560484Sobrien# ifdef _SC_PAGESIZE 337660484Sobrien# define getpagesize() sysconf(_SC_PAGESIZE) 337760484Sobrien# else /* no _SC_PAGESIZE */ 337860484Sobrien# ifdef HAVE_SYS_PARAM_H 337960484Sobrien# include <sys/param.h> 338060484Sobrien# ifdef EXEC_PAGESIZE 338160484Sobrien# define getpagesize() EXEC_PAGESIZE 338260484Sobrien# else /* no EXEC_PAGESIZE */ 338360484Sobrien# ifdef NBPG 338460484Sobrien# define getpagesize() NBPG * CLSIZE 338560484Sobrien# ifndef CLSIZE 338660484Sobrien# define CLSIZE 1 338760484Sobrien# endif /* no CLSIZE */ 338860484Sobrien# else /* no NBPG */ 338960484Sobrien# ifdef NBPC 339060484Sobrien# define getpagesize() NBPC 339160484Sobrien# else /* no NBPC */ 339260484Sobrien# ifdef PAGESIZE 339360484Sobrien# define getpagesize() PAGESIZE 339460484Sobrien# endif /* PAGESIZE */ 339560484Sobrien# endif /* no NBPC */ 339660484Sobrien# endif /* no NBPG */ 339760484Sobrien# endif /* no EXEC_PAGESIZE */ 339860484Sobrien# else /* no HAVE_SYS_PARAM_H */ 339960484Sobrien# define getpagesize() 8192 /* punt totally */ 340060484Sobrien# endif /* no HAVE_SYS_PARAM_H */ 340160484Sobrien# endif /* no _SC_PAGESIZE */ 340260484Sobrien 340360484Sobrien#endif /* no HAVE_GETPAGESIZE */ 340460484Sobrien 340560484Sobrien#ifdef __cplusplus 340660484Sobrienextern "C" { void *malloc(unsigned); } 340760484Sobrien#else 340860484Sobrienchar *malloc(); 340960484Sobrien#endif 341060484Sobrien 341160484Sobrienint 341260484Sobrienmain() 341360484Sobrien{ 341460484Sobrien char *data, *data2, *data3; 341560484Sobrien int i, pagesize; 341660484Sobrien int fd; 341760484Sobrien 341860484Sobrien pagesize = getpagesize(); 341960484Sobrien 342060484Sobrien /* 342160484Sobrien * First, make a file with some known garbage in it. 342260484Sobrien */ 342377298Sobrien data = malloc(pagesize); 342460484Sobrien if (!data) 342560484Sobrien exit(1); 342660484Sobrien for (i = 0; i < pagesize; ++i) 342760484Sobrien *(data + i) = rand(); 342860484Sobrien umask(0); 342960484Sobrien fd = creat("conftestmmap", 0600); 343060484Sobrien if (fd < 0) 343160484Sobrien exit(1); 343260484Sobrien if (write(fd, data, pagesize) != pagesize) 343360484Sobrien exit(1); 343460484Sobrien close(fd); 343560484Sobrien 343660484Sobrien /* 343760484Sobrien * Next, try to mmap the file at a fixed address which 343860484Sobrien * already has something else allocated at it. If we can, 343960484Sobrien * also make sure that we see the same garbage. 344060484Sobrien */ 344160484Sobrien fd = open("conftestmmap", O_RDWR); 344260484Sobrien if (fd < 0) 344360484Sobrien exit(1); 344477298Sobrien data2 = malloc(2 * pagesize); 344560484Sobrien if (!data2) 344660484Sobrien exit(1); 344760484Sobrien data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 344860484Sobrien if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 344960484Sobrien MAP_PRIVATE | MAP_FIXED, fd, 0L)) 345060484Sobrien exit(1); 345160484Sobrien for (i = 0; i < pagesize; ++i) 345260484Sobrien if (*(data + i) != *(data2 + i)) 345360484Sobrien exit(1); 345460484Sobrien 345560484Sobrien /* 345660484Sobrien * Finally, make sure that changes to the mapped area 345760484Sobrien * do not percolate back to the file as seen by read(). 345860484Sobrien * (This is a bug on some variants of i386 svr4.0.) 345960484Sobrien */ 346060484Sobrien for (i = 0; i < pagesize; ++i) 346160484Sobrien *(data2 + i) = *(data2 + i) + 1; 346277298Sobrien data3 = malloc(pagesize); 346360484Sobrien if (!data3) 346460484Sobrien exit(1); 346560484Sobrien if (read(fd, data3, pagesize) != pagesize) 346660484Sobrien exit(1); 346760484Sobrien for (i = 0; i < pagesize; ++i) 346860484Sobrien if (*(data + i) != *(data3 + i)) 346960484Sobrien exit(1); 347060484Sobrien close(fd); 347160484Sobrien unlink("conftestmmap"); 347260484Sobrien exit(0); 347360484Sobrien} 347460484Sobrien 347560484SobrienEOF 347689857Sobrienif { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 347760484Sobrienthen 347860484Sobrien ac_cv_func_mmap_fixed_mapped=yes 347960484Sobrienelse 348060484Sobrien echo "configure: failed program was:" >&5 348160484Sobrien cat conftest.$ac_ext >&5 348260484Sobrien rm -fr conftest* 348360484Sobrien ac_cv_func_mmap_fixed_mapped=no 348460484Sobrienfi 348560484Sobrienrm -fr conftest* 348660484Sobrienfi 348760484Sobrien 348860484Sobrienfi 348960484Sobrien 349060484Sobrienecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 349160484Sobrienif test $ac_cv_func_mmap_fixed_mapped = yes; then 349260484Sobrien cat >> confdefs.h <<\EOF 349360484Sobrien#define HAVE_MMAP 1 349460484SobrienEOF 349560484Sobrien 349660484Sobrienfi 349760484Sobrien 349860484Sobrien 349960484Sobrien for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 350060484Sobrienunistd.h values.h sys/param.h 350160484Sobriendo 350260484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 350360484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 350489857Sobrienecho "configure:3505: checking for $ac_hdr" >&5 350560484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 350660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 350760484Sobrienelse 350860484Sobrien cat > conftest.$ac_ext <<EOF 350989857Sobrien#line 3510 "configure" 351060484Sobrien#include "confdefs.h" 351160484Sobrien#include <$ac_hdr> 351260484SobrienEOF 351333965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 351489857Sobrien{ (eval echo configure:3515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 351560484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 351633965Sjdpif test -z "$ac_err"; then 351760484Sobrien rm -rf conftest* 351860484Sobrien eval "ac_cv_header_$ac_safe=yes" 351933965Sjdpelse 352033965Sjdp echo "$ac_err" >&5 352133965Sjdp echo "configure: failed program was:" >&5 352233965Sjdp cat conftest.$ac_ext >&5 352333965Sjdp rm -rf conftest* 352460484Sobrien eval "ac_cv_header_$ac_safe=no" 352560484Sobrienfi 352660484Sobrienrm -f conftest* 352760484Sobrienfi 352860484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 352960484Sobrien echo "$ac_t""yes" 1>&6 353060484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 353160484Sobrien cat >> confdefs.h <<EOF 353260484Sobrien#define $ac_tr_hdr 1 353360484SobrienEOF 353460484Sobrien 353560484Sobrienelse 353660484Sobrien echo "$ac_t""no" 1>&6 353760484Sobrienfi 353860484Sobriendone 353960484Sobrien 354060484Sobrien for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 354160484Sobrien__argz_count __argz_stringify __argz_next 354260484Sobriendo 354360484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 354489857Sobrienecho "configure:3545: checking for $ac_func" >&5 354560484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 354660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 354760484Sobrienelse 354833965Sjdp cat > conftest.$ac_ext <<EOF 354989857Sobrien#line 3550 "configure" 355033965Sjdp#include "confdefs.h" 355160484Sobrien/* System header to define __stub macros and hopefully few prototypes, 355260484Sobrien which can conflict with char $ac_func(); below. */ 355333965Sjdp#include <assert.h> 355460484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 355560484Sobrien/* We use char because int might match the return type of a gcc2 355660484Sobrien builtin and then its argument prototype would still apply. */ 355760484Sobrienchar $ac_func(); 355860484Sobrien 355960484Sobrienint main() { 356060484Sobrien 356160484Sobrien/* The GNU C library defines this for functions which it implements 356260484Sobrien to always fail with ENOSYS. Some functions are actually named 356360484Sobrien something starting with __ and the normal name is an alias. */ 356460484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 356560484Sobrienchoke me 356660484Sobrien#else 356760484Sobrien$ac_func(); 356860484Sobrien#endif 356960484Sobrien 357060484Sobrien; return 0; } 357133965SjdpEOF 357289857Sobrienif { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 357360484Sobrien rm -rf conftest* 357460484Sobrien eval "ac_cv_func_$ac_func=yes" 357560484Sobrienelse 357660484Sobrien echo "configure: failed program was:" >&5 357760484Sobrien cat conftest.$ac_ext >&5 357860484Sobrien rm -rf conftest* 357960484Sobrien eval "ac_cv_func_$ac_func=no" 358060484Sobrienfi 358160484Sobrienrm -f conftest* 358260484Sobrienfi 358360484Sobrien 358460484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 358560484Sobrien echo "$ac_t""yes" 1>&6 358660484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 358760484Sobrien cat >> confdefs.h <<EOF 358860484Sobrien#define $ac_tr_func 1 358960484SobrienEOF 359060484Sobrien 359160484Sobrienelse 359260484Sobrien echo "$ac_t""no" 1>&6 359360484Sobrienfi 359460484Sobriendone 359560484Sobrien 359660484Sobrien 359760484Sobrien if test "${ac_cv_func_stpcpy+set}" != "set"; then 359860484Sobrien for ac_func in stpcpy 359960484Sobriendo 360060484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 360189857Sobrienecho "configure:3602: checking for $ac_func" >&5 360260484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 360360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 360460484Sobrienelse 360560484Sobrien cat > conftest.$ac_ext <<EOF 360689857Sobrien#line 3607 "configure" 360760484Sobrien#include "confdefs.h" 360860484Sobrien/* System header to define __stub macros and hopefully few prototypes, 360960484Sobrien which can conflict with char $ac_func(); below. */ 361060484Sobrien#include <assert.h> 361160484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 361260484Sobrien/* We use char because int might match the return type of a gcc2 361360484Sobrien builtin and then its argument prototype would still apply. */ 361460484Sobrienchar $ac_func(); 361560484Sobrien 361660484Sobrienint main() { 361760484Sobrien 361860484Sobrien/* The GNU C library defines this for functions which it implements 361960484Sobrien to always fail with ENOSYS. Some functions are actually named 362060484Sobrien something starting with __ and the normal name is an alias. */ 362160484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 362260484Sobrienchoke me 362360484Sobrien#else 362460484Sobrien$ac_func(); 362560484Sobrien#endif 362660484Sobrien 362760484Sobrien; return 0; } 362860484SobrienEOF 362989857Sobrienif { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 363060484Sobrien rm -rf conftest* 363160484Sobrien eval "ac_cv_func_$ac_func=yes" 363260484Sobrienelse 363360484Sobrien echo "configure: failed program was:" >&5 363460484Sobrien cat conftest.$ac_ext >&5 363560484Sobrien rm -rf conftest* 363660484Sobrien eval "ac_cv_func_$ac_func=no" 363760484Sobrienfi 363860484Sobrienrm -f conftest* 363960484Sobrienfi 364060484Sobrien 364160484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 364260484Sobrien echo "$ac_t""yes" 1>&6 364360484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 364460484Sobrien cat >> confdefs.h <<EOF 364560484Sobrien#define $ac_tr_func 1 364660484SobrienEOF 364760484Sobrien 364860484Sobrienelse 364960484Sobrien echo "$ac_t""no" 1>&6 365060484Sobrienfi 365160484Sobriendone 365260484Sobrien 365360484Sobrien fi 365460484Sobrien if test "${ac_cv_func_stpcpy}" = "yes"; then 365560484Sobrien cat >> confdefs.h <<\EOF 365660484Sobrien#define HAVE_STPCPY 1 365760484SobrienEOF 365860484Sobrien 365960484Sobrien fi 366060484Sobrien 366160484Sobrien if test $ac_cv_header_locale_h = yes; then 366260484Sobrien echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 366389857Sobrienecho "configure:3664: checking for LC_MESSAGES" >&5 366460484Sobrienif eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then 366560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 366660484Sobrienelse 366760484Sobrien cat > conftest.$ac_ext <<EOF 366889857Sobrien#line 3669 "configure" 366960484Sobrien#include "confdefs.h" 367060484Sobrien#include <locale.h> 367160484Sobrienint main() { 367260484Sobrienreturn LC_MESSAGES 367360484Sobrien; return 0; } 367460484SobrienEOF 367589857Sobrienif { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 367660484Sobrien rm -rf conftest* 367760484Sobrien am_cv_val_LC_MESSAGES=yes 367860484Sobrienelse 367960484Sobrien echo "configure: failed program was:" >&5 368060484Sobrien cat conftest.$ac_ext >&5 368160484Sobrien rm -rf conftest* 368260484Sobrien am_cv_val_LC_MESSAGES=no 368360484Sobrienfi 368460484Sobrienrm -f conftest* 368560484Sobrienfi 368660484Sobrien 368760484Sobrienecho "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 368860484Sobrien if test $am_cv_val_LC_MESSAGES = yes; then 368960484Sobrien cat >> confdefs.h <<\EOF 369060484Sobrien#define HAVE_LC_MESSAGES 1 369160484SobrienEOF 369260484Sobrien 369360484Sobrien fi 369460484Sobrien fi 369560484Sobrien echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 369689857Sobrienecho "configure:3697: checking whether NLS is requested" >&5 369760484Sobrien # Check whether --enable-nls or --disable-nls was given. 369860484Sobrienif test "${enable_nls+set}" = set; then 369960484Sobrien enableval="$enable_nls" 370060484Sobrien USE_NLS=$enableval 370160484Sobrienelse 370260484Sobrien USE_NLS=yes 370360484Sobrienfi 370460484Sobrien 370560484Sobrien echo "$ac_t""$USE_NLS" 1>&6 370660484Sobrien 370760484Sobrien 370860484Sobrien USE_INCLUDED_LIBINTL=no 370960484Sobrien 371060484Sobrien if test "$USE_NLS" = "yes"; then 371160484Sobrien cat >> confdefs.h <<\EOF 371260484Sobrien#define ENABLE_NLS 1 371360484SobrienEOF 371460484Sobrien 371560484Sobrien echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 371689857Sobrienecho "configure:3717: checking whether included gettext is requested" >&5 371760484Sobrien # Check whether --with-included-gettext or --without-included-gettext was given. 371860484Sobrienif test "${with_included_gettext+set}" = set; then 371960484Sobrien withval="$with_included_gettext" 372060484Sobrien nls_cv_force_use_gnu_gettext=$withval 372160484Sobrienelse 372260484Sobrien nls_cv_force_use_gnu_gettext=no 372360484Sobrienfi 372460484Sobrien 372560484Sobrien echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 372660484Sobrien 372760484Sobrien nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 372860484Sobrien if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 372960484Sobrien nls_cv_header_intl= 373060484Sobrien nls_cv_header_libgt= 373160484Sobrien CATOBJEXT=NONE 373260484Sobrien 373360484Sobrien ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` 373460484Sobrienecho $ac_n "checking for libintl.h""... $ac_c" 1>&6 373589857Sobrienecho "configure:3736: checking for libintl.h" >&5 373660484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 373760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 373860484Sobrienelse 373960484Sobrien cat > conftest.$ac_ext <<EOF 374089857Sobrien#line 3741 "configure" 374160484Sobrien#include "confdefs.h" 374260484Sobrien#include <libintl.h> 374360484SobrienEOF 374433965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 374589857Sobrien{ (eval echo configure:3746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 374660484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 374733965Sjdpif test -z "$ac_err"; then 374860484Sobrien rm -rf conftest* 374960484Sobrien eval "ac_cv_header_$ac_safe=yes" 375033965Sjdpelse 375133965Sjdp echo "$ac_err" >&5 375233965Sjdp echo "configure: failed program was:" >&5 375333965Sjdp cat conftest.$ac_ext >&5 375433965Sjdp rm -rf conftest* 375560484Sobrien eval "ac_cv_header_$ac_safe=no" 375633965Sjdpfi 375733965Sjdprm -f conftest* 375833965Sjdpfi 375960484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 376060484Sobrien echo "$ac_t""yes" 1>&6 376160484Sobrien echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 376289857Sobrienecho "configure:3763: checking for gettext in libc" >&5 376360484Sobrienif eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then 376460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 376560484Sobrienelse 376660484Sobrien cat > conftest.$ac_ext <<EOF 376789857Sobrien#line 3768 "configure" 376860484Sobrien#include "confdefs.h" 376960484Sobrien#include <libintl.h> 377060484Sobrienint main() { 377160484Sobrienreturn (int) gettext ("") 377260484Sobrien; return 0; } 377360484SobrienEOF 377489857Sobrienif { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 377560484Sobrien rm -rf conftest* 377660484Sobrien gt_cv_func_gettext_libc=yes 377760484Sobrienelse 377860484Sobrien echo "configure: failed program was:" >&5 377960484Sobrien cat conftest.$ac_ext >&5 378060484Sobrien rm -rf conftest* 378160484Sobrien gt_cv_func_gettext_libc=no 378260484Sobrienfi 378333965Sjdprm -f conftest* 378433965Sjdpfi 378560484Sobrien 378660484Sobrienecho "$ac_t""$gt_cv_func_gettext_libc" 1>&6 378760484Sobrien 378860484Sobrien if test "$gt_cv_func_gettext_libc" != "yes"; then 378960484Sobrien echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 379089857Sobrienecho "configure:3791: checking for bindtextdomain in -lintl" >&5 379160484Sobrienac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` 379260484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 379360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 379433965Sjdpelse 379560484Sobrien ac_save_LIBS="$LIBS" 379660484SobrienLIBS="-lintl $LIBS" 379760484Sobriencat > conftest.$ac_ext <<EOF 379889857Sobrien#line 3799 "configure" 379960484Sobrien#include "confdefs.h" 380060484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 380160484Sobrien/* We use char because int might match the return type of a gcc2 380260484Sobrien builtin and then its argument prototype would still apply. */ 380360484Sobrienchar bindtextdomain(); 380460484Sobrien 380560484Sobrienint main() { 380660484Sobrienbindtextdomain() 380760484Sobrien; return 0; } 380860484SobrienEOF 380989857Sobrienif { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 381060484Sobrien rm -rf conftest* 381160484Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 381260484Sobrienelse 381360484Sobrien echo "configure: failed program was:" >&5 381460484Sobrien cat conftest.$ac_ext >&5 381560484Sobrien rm -rf conftest* 381660484Sobrien eval "ac_cv_lib_$ac_lib_var=no" 381733965Sjdpfi 381860484Sobrienrm -f conftest* 381960484SobrienLIBS="$ac_save_LIBS" 382033965Sjdp 382160484Sobrienfi 382260484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 382360484Sobrien echo "$ac_t""yes" 1>&6 382460484Sobrien echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 382589857Sobrienecho "configure:3826: checking for gettext in libintl" >&5 382660484Sobrienif eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then 382760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 382860484Sobrienelse 382960484Sobrien cat > conftest.$ac_ext <<EOF 383089857Sobrien#line 3831 "configure" 383160484Sobrien#include "confdefs.h" 383260484Sobrien 383360484Sobrienint main() { 383460484Sobrienreturn (int) gettext ("") 383560484Sobrien; return 0; } 383660484SobrienEOF 383789857Sobrienif { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 383860484Sobrien rm -rf conftest* 383960484Sobrien gt_cv_func_gettext_libintl=yes 384060484Sobrienelse 384160484Sobrien echo "configure: failed program was:" >&5 384260484Sobrien cat conftest.$ac_ext >&5 384360484Sobrien rm -rf conftest* 384460484Sobrien gt_cv_func_gettext_libintl=no 384560484Sobrienfi 384660484Sobrienrm -f conftest* 384760484Sobrienfi 384860484Sobrien 384960484Sobrienecho "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 385060484Sobrienelse 385160484Sobrien echo "$ac_t""no" 1>&6 385260484Sobrienfi 385360484Sobrien 385460484Sobrien fi 385560484Sobrien 385660484Sobrien if test "$gt_cv_func_gettext_libc" = "yes" \ 385760484Sobrien || test "$gt_cv_func_gettext_libintl" = "yes"; then 385860484Sobrien cat >> confdefs.h <<\EOF 385960484Sobrien#define HAVE_GETTEXT 1 386060484SobrienEOF 386160484Sobrien 386260484Sobrien # Extract the first word of "msgfmt", so it can be a program name with args. 386360484Sobrienset dummy msgfmt; ac_word=$2 386460484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 386589857Sobrienecho "configure:3866: checking for $ac_word" >&5 386660484Sobrienif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 386760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 386860484Sobrienelse 386960484Sobrien case "$MSGFMT" in 387060484Sobrien /*) 387160484Sobrien ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 387260484Sobrien ;; 387360484Sobrien *) 387460484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 387560484Sobrien for ac_dir in $PATH; do 387660484Sobrien test -z "$ac_dir" && ac_dir=. 387760484Sobrien if test -f $ac_dir/$ac_word; then 387860484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 387960484Sobrien ac_cv_path_MSGFMT="$ac_dir/$ac_word" 388060484Sobrien break 388160484Sobrien fi 388260484Sobrien fi 388360484Sobrien done 388460484Sobrien IFS="$ac_save_ifs" 388560484Sobrien test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 388660484Sobrien ;; 388760484Sobrienesac 388860484Sobrienfi 388960484SobrienMSGFMT="$ac_cv_path_MSGFMT" 389060484Sobrienif test -n "$MSGFMT"; then 389160484Sobrien echo "$ac_t""$MSGFMT" 1>&6 389260484Sobrienelse 389360484Sobrien echo "$ac_t""no" 1>&6 389460484Sobrienfi 389560484Sobrien if test "$MSGFMT" != "no"; then 389660484Sobrien for ac_func in dcgettext 389760484Sobriendo 389860484Sobrienecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 389989857Sobrienecho "configure:3900: checking for $ac_func" >&5 390060484Sobrienif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 390160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 390260484Sobrienelse 390360484Sobrien cat > conftest.$ac_ext <<EOF 390489857Sobrien#line 3905 "configure" 390560484Sobrien#include "confdefs.h" 390660484Sobrien/* System header to define __stub macros and hopefully few prototypes, 390760484Sobrien which can conflict with char $ac_func(); below. */ 390860484Sobrien#include <assert.h> 390960484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 391060484Sobrien/* We use char because int might match the return type of a gcc2 391160484Sobrien builtin and then its argument prototype would still apply. */ 391260484Sobrienchar $ac_func(); 391360484Sobrien 391460484Sobrienint main() { 391560484Sobrien 391660484Sobrien/* The GNU C library defines this for functions which it implements 391760484Sobrien to always fail with ENOSYS. Some functions are actually named 391860484Sobrien something starting with __ and the normal name is an alias. */ 391960484Sobrien#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 392060484Sobrienchoke me 392160484Sobrien#else 392260484Sobrien$ac_func(); 392360484Sobrien#endif 392460484Sobrien 392560484Sobrien; return 0; } 392660484SobrienEOF 392789857Sobrienif { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 392860484Sobrien rm -rf conftest* 392960484Sobrien eval "ac_cv_func_$ac_func=yes" 393060484Sobrienelse 393160484Sobrien echo "configure: failed program was:" >&5 393260484Sobrien cat conftest.$ac_ext >&5 393360484Sobrien rm -rf conftest* 393460484Sobrien eval "ac_cv_func_$ac_func=no" 393560484Sobrienfi 393660484Sobrienrm -f conftest* 393760484Sobrienfi 393860484Sobrien 393960484Sobrienif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 394060484Sobrien echo "$ac_t""yes" 1>&6 394160484Sobrien ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 394260484Sobrien cat >> confdefs.h <<EOF 394360484Sobrien#define $ac_tr_func 1 394460484SobrienEOF 394560484Sobrien 394660484Sobrienelse 394760484Sobrien echo "$ac_t""no" 1>&6 394860484Sobrienfi 394960484Sobriendone 395060484Sobrien 395160484Sobrien # Extract the first word of "gmsgfmt", so it can be a program name with args. 395260484Sobrienset dummy gmsgfmt; ac_word=$2 395360484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 395489857Sobrienecho "configure:3955: checking for $ac_word" >&5 395560484Sobrienif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 395660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 395760484Sobrienelse 395860484Sobrien case "$GMSGFMT" in 395960484Sobrien /*) 396060484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 396160484Sobrien ;; 396260484Sobrien ?:/*) 396360484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 396460484Sobrien ;; 396560484Sobrien *) 396660484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 396760484Sobrien ac_dummy="$PATH" 396860484Sobrien for ac_dir in $ac_dummy; do 396960484Sobrien test -z "$ac_dir" && ac_dir=. 397060484Sobrien if test -f $ac_dir/$ac_word; then 397160484Sobrien ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 397260484Sobrien break 397360484Sobrien fi 397460484Sobrien done 397560484Sobrien IFS="$ac_save_ifs" 397660484Sobrien test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 397760484Sobrien ;; 397860484Sobrienesac 397960484Sobrienfi 398060484SobrienGMSGFMT="$ac_cv_path_GMSGFMT" 398160484Sobrienif test -n "$GMSGFMT"; then 398260484Sobrien echo "$ac_t""$GMSGFMT" 1>&6 398360484Sobrienelse 398460484Sobrien echo "$ac_t""no" 1>&6 398560484Sobrienfi 398660484Sobrien 398760484Sobrien # Extract the first word of "xgettext", so it can be a program name with args. 398860484Sobrienset dummy xgettext; ac_word=$2 398960484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 399089857Sobrienecho "configure:3991: checking for $ac_word" >&5 399160484Sobrienif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 399260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 399360484Sobrienelse 399460484Sobrien case "$XGETTEXT" in 399560484Sobrien /*) 399660484Sobrien ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 399760484Sobrien ;; 399860484Sobrien *) 399960484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 400060484Sobrien for ac_dir in $PATH; do 400160484Sobrien test -z "$ac_dir" && ac_dir=. 400260484Sobrien if test -f $ac_dir/$ac_word; then 400360484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 400460484Sobrien ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 400560484Sobrien break 400660484Sobrien fi 400760484Sobrien fi 400860484Sobrien done 400960484Sobrien IFS="$ac_save_ifs" 401060484Sobrien test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 401160484Sobrien ;; 401260484Sobrienesac 401360484Sobrienfi 401460484SobrienXGETTEXT="$ac_cv_path_XGETTEXT" 401560484Sobrienif test -n "$XGETTEXT"; then 401660484Sobrien echo "$ac_t""$XGETTEXT" 1>&6 401760484Sobrienelse 401860484Sobrien echo "$ac_t""no" 1>&6 401960484Sobrienfi 402060484Sobrien 402160484Sobrien cat > conftest.$ac_ext <<EOF 402289857Sobrien#line 4023 "configure" 402360484Sobrien#include "confdefs.h" 402460484Sobrien 402560484Sobrienint main() { 402660484Sobrienextern int _nl_msg_cat_cntr; 402760484Sobrien return _nl_msg_cat_cntr 402860484Sobrien; return 0; } 402960484SobrienEOF 403089857Sobrienif { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 403160484Sobrien rm -rf conftest* 403260484Sobrien CATOBJEXT=.gmo 403360484Sobrien DATADIRNAME=share 403460484Sobrienelse 403560484Sobrien echo "configure: failed program was:" >&5 403660484Sobrien cat conftest.$ac_ext >&5 403760484Sobrien rm -rf conftest* 403860484Sobrien CATOBJEXT=.mo 403960484Sobrien DATADIRNAME=lib 404060484Sobrienfi 404160484Sobrienrm -f conftest* 404260484Sobrien INSTOBJEXT=.mo 404360484Sobrien fi 404460484Sobrien fi 404560484Sobrien 404660484Sobrienelse 404760484Sobrien echo "$ac_t""no" 1>&6 404860484Sobrienfi 404960484Sobrien 405060484Sobrien 405160484Sobrien 405260484Sobrien if test "$CATOBJEXT" = "NONE"; then 405360484Sobrien nls_cv_use_gnu_gettext=yes 405460484Sobrien fi 405560484Sobrien fi 405660484Sobrien 405760484Sobrien if test "$nls_cv_use_gnu_gettext" = "yes"; then 405860484Sobrien INTLOBJS="\$(GETTOBJS)" 405960484Sobrien # Extract the first word of "msgfmt", so it can be a program name with args. 406060484Sobrienset dummy msgfmt; ac_word=$2 406160484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 406289857Sobrienecho "configure:4063: checking for $ac_word" >&5 406360484Sobrienif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 406460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 406560484Sobrienelse 406660484Sobrien case "$MSGFMT" in 406760484Sobrien /*) 406860484Sobrien ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 406960484Sobrien ;; 407060484Sobrien *) 407160484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 407260484Sobrien for ac_dir in $PATH; do 407360484Sobrien test -z "$ac_dir" && ac_dir=. 407460484Sobrien if test -f $ac_dir/$ac_word; then 407560484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 407660484Sobrien ac_cv_path_MSGFMT="$ac_dir/$ac_word" 407760484Sobrien break 407860484Sobrien fi 407960484Sobrien fi 408060484Sobrien done 408160484Sobrien IFS="$ac_save_ifs" 408260484Sobrien test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 408360484Sobrien ;; 408460484Sobrienesac 408560484Sobrienfi 408660484SobrienMSGFMT="$ac_cv_path_MSGFMT" 408760484Sobrienif test -n "$MSGFMT"; then 408860484Sobrien echo "$ac_t""$MSGFMT" 1>&6 408960484Sobrienelse 409060484Sobrien echo "$ac_t""no" 1>&6 409160484Sobrienfi 409260484Sobrien 409360484Sobrien # Extract the first word of "gmsgfmt", so it can be a program name with args. 409460484Sobrienset dummy gmsgfmt; ac_word=$2 409560484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 409689857Sobrienecho "configure:4097: checking for $ac_word" >&5 409760484Sobrienif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 409860484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 409960484Sobrienelse 410060484Sobrien case "$GMSGFMT" in 410160484Sobrien /*) 410260484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 410360484Sobrien ;; 410460484Sobrien ?:/*) 410560484Sobrien ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 410660484Sobrien ;; 410760484Sobrien *) 410860484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 410960484Sobrien ac_dummy="$PATH" 411060484Sobrien for ac_dir in $ac_dummy; do 411160484Sobrien test -z "$ac_dir" && ac_dir=. 411260484Sobrien if test -f $ac_dir/$ac_word; then 411360484Sobrien ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 411460484Sobrien break 411560484Sobrien fi 411660484Sobrien done 411760484Sobrien IFS="$ac_save_ifs" 411860484Sobrien test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 411960484Sobrien ;; 412060484Sobrienesac 412160484Sobrienfi 412260484SobrienGMSGFMT="$ac_cv_path_GMSGFMT" 412360484Sobrienif test -n "$GMSGFMT"; then 412460484Sobrien echo "$ac_t""$GMSGFMT" 1>&6 412560484Sobrienelse 412660484Sobrien echo "$ac_t""no" 1>&6 412760484Sobrienfi 412860484Sobrien 412960484Sobrien # Extract the first word of "xgettext", so it can be a program name with args. 413060484Sobrienset dummy xgettext; ac_word=$2 413160484Sobrienecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 413289857Sobrienecho "configure:4133: checking for $ac_word" >&5 413360484Sobrienif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 413460484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 413560484Sobrienelse 413660484Sobrien case "$XGETTEXT" in 413760484Sobrien /*) 413860484Sobrien ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 413960484Sobrien ;; 414060484Sobrien *) 414160484Sobrien IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 414260484Sobrien for ac_dir in $PATH; do 414360484Sobrien test -z "$ac_dir" && ac_dir=. 414460484Sobrien if test -f $ac_dir/$ac_word; then 414560484Sobrien if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 414660484Sobrien ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 414760484Sobrien break 414860484Sobrien fi 414960484Sobrien fi 415060484Sobrien done 415160484Sobrien IFS="$ac_save_ifs" 415260484Sobrien test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 415360484Sobrien ;; 415460484Sobrienesac 415560484Sobrienfi 415660484SobrienXGETTEXT="$ac_cv_path_XGETTEXT" 415760484Sobrienif test -n "$XGETTEXT"; then 415860484Sobrien echo "$ac_t""$XGETTEXT" 1>&6 415960484Sobrienelse 416060484Sobrien echo "$ac_t""no" 1>&6 416160484Sobrienfi 416260484Sobrien 416360484Sobrien 416460484Sobrien USE_INCLUDED_LIBINTL=yes 416560484Sobrien CATOBJEXT=.gmo 416660484Sobrien INSTOBJEXT=.mo 416760484Sobrien DATADIRNAME=share 416860484Sobrien INTLDEPS='$(top_builddir)/../intl/libintl.a' 416960484Sobrien INTLLIBS=$INTLDEPS 417060484Sobrien LIBS=`echo $LIBS | sed -e 's/-lintl//'` 417160484Sobrien nls_cv_header_intl=libintl.h 417260484Sobrien nls_cv_header_libgt=libgettext.h 417360484Sobrien fi 417460484Sobrien 417560484Sobrien if test "$XGETTEXT" != ":"; then 417660484Sobrien if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 417760484Sobrien : ; 417860484Sobrien else 417960484Sobrien echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 418060484Sobrien XGETTEXT=":" 418160484Sobrien fi 418260484Sobrien fi 418360484Sobrien 418460484Sobrien # We need to process the po/ directory. 418560484Sobrien POSUB=po 418660484Sobrien else 418760484Sobrien DATADIRNAME=share 418860484Sobrien nls_cv_header_intl=libintl.h 418960484Sobrien nls_cv_header_libgt=libgettext.h 419060484Sobrien fi 419160484Sobrien 419260484Sobrien # If this is used in GNU gettext we have to set USE_NLS to `yes' 419360484Sobrien # because some of the sources are only built for this goal. 419460484Sobrien if test "$PACKAGE" = gettext; then 419560484Sobrien USE_NLS=yes 419660484Sobrien USE_INCLUDED_LIBINTL=yes 419760484Sobrien fi 419860484Sobrien 419960484Sobrien for lang in $ALL_LINGUAS; do 420060484Sobrien GMOFILES="$GMOFILES $lang.gmo" 420160484Sobrien POFILES="$POFILES $lang.po" 420260484Sobrien done 420360484Sobrien 420460484Sobrien 420560484Sobrien 420660484Sobrien 420760484Sobrien 420860484Sobrien 420960484Sobrien 421060484Sobrien 421160484Sobrien 421260484Sobrien 421360484Sobrien 421460484Sobrien 421560484Sobrien 421660484Sobrien 421760484Sobrien if test "x$CATOBJEXT" != "x"; then 421860484Sobrien if test "x$ALL_LINGUAS" = "x"; then 421960484Sobrien LINGUAS= 422060484Sobrien else 422160484Sobrien echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 422289857Sobrienecho "configure:4223: checking for catalogs to be installed" >&5 422360484Sobrien NEW_LINGUAS= 422460484Sobrien for lang in ${LINGUAS=$ALL_LINGUAS}; do 422560484Sobrien case "$ALL_LINGUAS" in 422660484Sobrien *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 422760484Sobrien esac 422860484Sobrien done 422960484Sobrien LINGUAS=$NEW_LINGUAS 423060484Sobrien echo "$ac_t""$LINGUAS" 1>&6 423160484Sobrien fi 423260484Sobrien 423360484Sobrien if test -n "$LINGUAS"; then 423460484Sobrien for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 423560484Sobrien fi 423660484Sobrien fi 423760484Sobrien 423860484Sobrien if test $ac_cv_header_locale_h = yes; then 423960484Sobrien INCLUDE_LOCALE_H="#include <locale.h>" 424060484Sobrien else 424160484Sobrien INCLUDE_LOCALE_H="\ 424260484Sobrien/* The system does not provide the header <locale.h>. Take care yourself. */" 424360484Sobrien fi 424460484Sobrien 424560484Sobrien 424660484Sobrien if test -f $srcdir/po2tbl.sed.in; then 424760484Sobrien if test "$CATOBJEXT" = ".cat"; then 424860484Sobrien ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` 424960484Sobrienecho $ac_n "checking for linux/version.h""... $ac_c" 1>&6 425089857Sobrienecho "configure:4251: checking for linux/version.h" >&5 425160484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 425260484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 425360484Sobrienelse 425460484Sobrien cat > conftest.$ac_ext <<EOF 425589857Sobrien#line 4256 "configure" 425660484Sobrien#include "confdefs.h" 425760484Sobrien#include <linux/version.h> 425860484SobrienEOF 425960484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 426089857Sobrien{ (eval echo configure:4261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 426160484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 426260484Sobrienif test -z "$ac_err"; then 426360484Sobrien rm -rf conftest* 426460484Sobrien eval "ac_cv_header_$ac_safe=yes" 426560484Sobrienelse 426660484Sobrien echo "$ac_err" >&5 426760484Sobrien echo "configure: failed program was:" >&5 426860484Sobrien cat conftest.$ac_ext >&5 426960484Sobrien rm -rf conftest* 427060484Sobrien eval "ac_cv_header_$ac_safe=no" 427160484Sobrienfi 427260484Sobrienrm -f conftest* 427360484Sobrienfi 427460484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 427560484Sobrien echo "$ac_t""yes" 1>&6 427660484Sobrien msgformat=linux 427760484Sobrienelse 427860484Sobrien echo "$ac_t""no" 1>&6 427960484Sobrienmsgformat=xopen 428060484Sobrienfi 428160484Sobrien 428260484Sobrien 428360484Sobrien sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed 428460484Sobrien fi 428560484Sobrien sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 428660484Sobrien $srcdir/po2tbl.sed.in > po2tbl.sed 428760484Sobrien fi 428860484Sobrien 428960484Sobrien if test "$PACKAGE" = "gettext"; then 429060484Sobrien GT_NO="#NO#" 429160484Sobrien GT_YES= 429260484Sobrien else 429360484Sobrien GT_NO= 429460484Sobrien GT_YES="#YES#" 429560484Sobrien fi 429660484Sobrien 429760484Sobrien 429860484Sobrien 429960484Sobrien MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" 430060484Sobrien 430160484Sobrien 430260484Sobrien l= 430360484Sobrien 430460484Sobrien 430589857Sobrien if test -f $srcdir/po/POTFILES.in; then 430660484Sobrien test -d po || mkdir po 430760484Sobrien if test "x$srcdir" != "x."; then 430860484Sobrien if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 430960484Sobrien posrcprefix="$srcdir/" 431060484Sobrien else 431160484Sobrien posrcprefix="../$srcdir/" 431260484Sobrien fi 431360484Sobrien else 431460484Sobrien posrcprefix="../" 431560484Sobrien fi 431660484Sobrien rm -f po/POTFILES 431760484Sobrien sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 431860484Sobrien < $srcdir/po/POTFILES.in > po/POTFILES 431960484Sobrien fi 432060484Sobrien 432160484Sobrien 432260484Sobrien# Permit host specific settings. 432360484Sobrien. ${srcdir}/configure.host 432460484Sobrien 432560484Sobrien 432660484Sobrien# Find a good install program. We prefer a C program (faster), 432760484Sobrien# so one script is as good as another. But avoid the broken or 432860484Sobrien# incompatible versions: 432960484Sobrien# SysV /etc/install, /usr/sbin/install 433060484Sobrien# SunOS /usr/etc/install 433160484Sobrien# IRIX /sbin/install 433260484Sobrien# AIX /bin/install 433360484Sobrien# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 433460484Sobrien# AFS /usr/afsws/bin/install, which mishandles nonexistent args 433560484Sobrien# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 433660484Sobrien# ./install, which can be erroneously created by make from ./install.sh. 433760484Sobrienecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 433889857Sobrienecho "configure:4339: checking for a BSD compatible install" >&5 433960484Sobrienif test -z "$INSTALL"; then 434060484Sobrienif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 434160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 434260484Sobrienelse 434360484Sobrien IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 434460484Sobrien for ac_dir in $PATH; do 434560484Sobrien # Account for people who put trailing slashes in PATH elements. 434660484Sobrien case "$ac_dir/" in 434760484Sobrien /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 434860484Sobrien *) 434960484Sobrien # OSF1 and SCO ODT 3.0 have their own names for install. 435060484Sobrien # Don't use installbsd from OSF since it installs stuff as root 435160484Sobrien # by default. 435260484Sobrien for ac_prog in ginstall scoinst install; do 435360484Sobrien if test -f $ac_dir/$ac_prog; then 435460484Sobrien if test $ac_prog = install && 435560484Sobrien grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 435660484Sobrien # AIX install. It has an incompatible calling convention. 435760484Sobrien : 435860484Sobrien else 435960484Sobrien ac_cv_path_install="$ac_dir/$ac_prog -c" 436060484Sobrien break 2 436160484Sobrien fi 436260484Sobrien fi 436360484Sobrien done 436460484Sobrien ;; 436560484Sobrien esac 436660484Sobrien done 436760484Sobrien IFS="$ac_save_IFS" 436860484Sobrien 436960484Sobrienfi 437060484Sobrien if test "${ac_cv_path_install+set}" = set; then 437160484Sobrien INSTALL="$ac_cv_path_install" 437260484Sobrien else 437360484Sobrien # As a last resort, use the slow shell script. We don't cache a 437460484Sobrien # path for INSTALL within a source directory, because that will 437560484Sobrien # break other packages using the cache if that directory is 437660484Sobrien # removed, or if the path is relative. 437760484Sobrien INSTALL="$ac_install_sh" 437860484Sobrien fi 437960484Sobrienfi 438060484Sobrienecho "$ac_t""$INSTALL" 1>&6 438160484Sobrien 438260484Sobrien# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 438360484Sobrien# It thinks the first close brace ends the variable substitution. 438460484Sobrientest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 438560484Sobrien 438660484Sobrientest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 438760484Sobrien 438860484Sobrientest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 438960484Sobrien 439060484Sobrien 439160484SobrienBFD_HOST_64BIT_LONG=0 439260484SobrienBFD_HOST_64_BIT_DEFINED=0 439360484SobrienBFD_HOST_64_BIT= 439460484SobrienBFD_HOST_U_64_BIT= 439560484Sobrienif test "x${HOST_64BIT_TYPE}" = "xlong"; then 439660484Sobrien BFD_HOST_64BIT_LONG=1 439760484Sobrienelif test "x${HOST_64BIT_TYPE}" != "x"; then 439860484Sobrien BFD_HOST_64_BIT_DEFINED=1 439960484Sobrien BFD_HOST_64_BIT=${HOST_64BIT_TYPE} 440060484Sobrien BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE} 440160484Sobrienfi 440260484Sobrien 440360484Sobrien 440460484Sobrien 440560484Sobrien 440660484Sobrien 440760484Sobrien# Put a plausible default for CC_FOR_BUILD in Makefile. 440860484Sobrienif test -z "$CC_FOR_BUILD"; then 440960484Sobrien if test "x$cross_compiling" = "xno"; then 441060484Sobrien CC_FOR_BUILD='$(CC)' 441160484Sobrien else 441260484Sobrien CC_FOR_BUILD=gcc 441360484Sobrien fi 441460484Sobrienfi 441560484Sobrien 441660484Sobrien# Also set EXEEXT_FOR_BUILD. 441760484Sobrienif test "x$cross_compiling" = "xno"; then 441860484Sobrien EXEEXT_FOR_BUILD='$(EXEEXT)' 441960484Sobrienelse 442060484Sobrien echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6 442189857Sobrienecho "configure:4422: checking for build system executable suffix" >&5 442260484Sobrienif eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then 442360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 442460484Sobrienelse 442560484Sobrien rm -f conftest* 442660484Sobrien echo 'int main () { return 0; }' > conftest.c 442760484Sobrien bfd_cv_build_exeext= 442860484Sobrien ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 442960484Sobrien for file in conftest.*; do 443060484Sobrien case $file in 443160484Sobrien *.c | *.o | *.obj | *.ilk | *.pdb) ;; 443260484Sobrien *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 443360484Sobrien esac 443460484Sobrien done 443560484Sobrien rm -f conftest* 443660484Sobrien test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 443760484Sobrienfi 443860484Sobrien 443960484Sobrienecho "$ac_t""$bfd_cv_build_exeext" 1>&6 444060484Sobrien EXEEXT_FOR_BUILD="" 444160484Sobrien test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 444260484Sobrienfi 444360484Sobrien 444460484Sobrien 444533965Sjdpfor ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h 444633965Sjdpdo 444733965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 444833965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 444989857Sobrienecho "configure:4450: checking for $ac_hdr" >&5 445033965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 445133965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 445233965Sjdpelse 445333965Sjdp cat > conftest.$ac_ext <<EOF 445489857Sobrien#line 4455 "configure" 445533965Sjdp#include "confdefs.h" 445633965Sjdp#include <$ac_hdr> 445733965SjdpEOF 445833965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 445989857Sobrien{ (eval echo configure:4460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 446060484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 446133965Sjdpif test -z "$ac_err"; then 446233965Sjdp rm -rf conftest* 446333965Sjdp eval "ac_cv_header_$ac_safe=yes" 446433965Sjdpelse 446533965Sjdp echo "$ac_err" >&5 446633965Sjdp echo "configure: failed program was:" >&5 446733965Sjdp cat conftest.$ac_ext >&5 446833965Sjdp rm -rf conftest* 446933965Sjdp eval "ac_cv_header_$ac_safe=no" 447033965Sjdpfi 447133965Sjdprm -f conftest* 447233965Sjdpfi 447333965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 447433965Sjdp echo "$ac_t""yes" 1>&6 447533965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 447633965Sjdp cat >> confdefs.h <<EOF 447733965Sjdp#define $ac_tr_hdr 1 447833965SjdpEOF 447933965Sjdp 448033965Sjdpelse 448133965Sjdp echo "$ac_t""no" 1>&6 448233965Sjdpfi 448333965Sjdpdone 448433965Sjdp 448533965Sjdpfor ac_hdr in fcntl.h sys/file.h sys/time.h 448633965Sjdpdo 448733965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 448833965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 448989857Sobrienecho "configure:4490: checking for $ac_hdr" >&5 449033965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 449133965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 449233965Sjdpelse 449333965Sjdp cat > conftest.$ac_ext <<EOF 449489857Sobrien#line 4495 "configure" 449533965Sjdp#include "confdefs.h" 449633965Sjdp#include <$ac_hdr> 449733965SjdpEOF 449833965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 449989857Sobrien{ (eval echo configure:4500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 450060484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 450133965Sjdpif test -z "$ac_err"; then 450233965Sjdp rm -rf conftest* 450333965Sjdp eval "ac_cv_header_$ac_safe=yes" 450433965Sjdpelse 450533965Sjdp echo "$ac_err" >&5 450633965Sjdp echo "configure: failed program was:" >&5 450733965Sjdp cat conftest.$ac_ext >&5 450833965Sjdp rm -rf conftest* 450933965Sjdp eval "ac_cv_header_$ac_safe=no" 451033965Sjdpfi 451133965Sjdprm -f conftest* 451233965Sjdpfi 451333965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 451433965Sjdp echo "$ac_t""yes" 1>&6 451533965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 451633965Sjdp cat >> confdefs.h <<EOF 451733965Sjdp#define $ac_tr_hdr 1 451833965SjdpEOF 451933965Sjdp 452033965Sjdpelse 452133965Sjdp echo "$ac_t""no" 1>&6 452233965Sjdpfi 452333965Sjdpdone 452433965Sjdp 452533965Sjdpecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 452689857Sobrienecho "configure:4527: checking whether time.h and sys/time.h may both be included" >&5 452733965Sjdpif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 452833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 452933965Sjdpelse 453033965Sjdp cat > conftest.$ac_ext <<EOF 453189857Sobrien#line 4532 "configure" 453233965Sjdp#include "confdefs.h" 453333965Sjdp#include <sys/types.h> 453433965Sjdp#include <sys/time.h> 453533965Sjdp#include <time.h> 453633965Sjdpint main() { 453733965Sjdpstruct tm *tp; 453833965Sjdp; return 0; } 453933965SjdpEOF 454089857Sobrienif { (eval echo configure:4541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 454133965Sjdp rm -rf conftest* 454233965Sjdp ac_cv_header_time=yes 454333965Sjdpelse 454433965Sjdp echo "configure: failed program was:" >&5 454533965Sjdp cat conftest.$ac_ext >&5 454633965Sjdp rm -rf conftest* 454733965Sjdp ac_cv_header_time=no 454833965Sjdpfi 454933965Sjdprm -f conftest* 455033965Sjdpfi 455133965Sjdp 455233965Sjdpecho "$ac_t""$ac_cv_header_time" 1>&6 455333965Sjdpif test $ac_cv_header_time = yes; then 455433965Sjdp cat >> confdefs.h <<\EOF 455533965Sjdp#define TIME_WITH_SYS_TIME 1 455633965SjdpEOF 455733965Sjdp 455833965Sjdpfi 455933965Sjdp 456060484Sobrienac_header_dirent=no 456160484Sobrienfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 456233965Sjdpdo 456360484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 456460484Sobrienecho $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 456589857Sobrienecho "configure:4566: checking for $ac_hdr that defines DIR" >&5 456660484Sobrienif eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 456760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 456860484Sobrienelse 456960484Sobrien cat > conftest.$ac_ext <<EOF 457089857Sobrien#line 4571 "configure" 457160484Sobrien#include "confdefs.h" 457260484Sobrien#include <sys/types.h> 457360484Sobrien#include <$ac_hdr> 457460484Sobrienint main() { 457560484SobrienDIR *dirp = 0; 457660484Sobrien; return 0; } 457760484SobrienEOF 457889857Sobrienif { (eval echo configure:4579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 457960484Sobrien rm -rf conftest* 458060484Sobrien eval "ac_cv_header_dirent_$ac_safe=yes" 458160484Sobrienelse 458260484Sobrien echo "configure: failed program was:" >&5 458360484Sobrien cat conftest.$ac_ext >&5 458460484Sobrien rm -rf conftest* 458560484Sobrien eval "ac_cv_header_dirent_$ac_safe=no" 458660484Sobrienfi 458760484Sobrienrm -f conftest* 458860484Sobrienfi 458960484Sobrienif eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 459060484Sobrien echo "$ac_t""yes" 1>&6 459160484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 459260484Sobrien cat >> confdefs.h <<EOF 459360484Sobrien#define $ac_tr_hdr 1 459460484SobrienEOF 459560484Sobrien ac_header_dirent=$ac_hdr; break 459660484Sobrienelse 459760484Sobrien echo "$ac_t""no" 1>&6 459860484Sobrienfi 459960484Sobriendone 460060484Sobrien# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 460160484Sobrienif test $ac_header_dirent = dirent.h; then 460260484Sobrienecho $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 460389857Sobrienecho "configure:4604: checking for opendir in -ldir" >&5 460460484Sobrienac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 460560484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 460660484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 460760484Sobrienelse 460860484Sobrien ac_save_LIBS="$LIBS" 460960484SobrienLIBS="-ldir $LIBS" 461060484Sobriencat > conftest.$ac_ext <<EOF 461189857Sobrien#line 4612 "configure" 461260484Sobrien#include "confdefs.h" 461360484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 461460484Sobrien/* We use char because int might match the return type of a gcc2 461560484Sobrien builtin and then its argument prototype would still apply. */ 461660484Sobrienchar opendir(); 461760484Sobrien 461860484Sobrienint main() { 461960484Sobrienopendir() 462060484Sobrien; return 0; } 462160484SobrienEOF 462289857Sobrienif { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 462360484Sobrien rm -rf conftest* 462460484Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 462560484Sobrienelse 462660484Sobrien echo "configure: failed program was:" >&5 462760484Sobrien cat conftest.$ac_ext >&5 462860484Sobrien rm -rf conftest* 462960484Sobrien eval "ac_cv_lib_$ac_lib_var=no" 463060484Sobrienfi 463160484Sobrienrm -f conftest* 463260484SobrienLIBS="$ac_save_LIBS" 463360484Sobrien 463460484Sobrienfi 463560484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 463660484Sobrien echo "$ac_t""yes" 1>&6 463760484Sobrien LIBS="$LIBS -ldir" 463860484Sobrienelse 463960484Sobrien echo "$ac_t""no" 1>&6 464060484Sobrienfi 464160484Sobrien 464260484Sobrienelse 464360484Sobrienecho $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 464489857Sobrienecho "configure:4645: checking for opendir in -lx" >&5 464560484Sobrienac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 464660484Sobrienif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 464760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 464860484Sobrienelse 464960484Sobrien ac_save_LIBS="$LIBS" 465060484SobrienLIBS="-lx $LIBS" 465160484Sobriencat > conftest.$ac_ext <<EOF 465289857Sobrien#line 4653 "configure" 465360484Sobrien#include "confdefs.h" 465460484Sobrien/* Override any gcc2 internal prototype to avoid an error. */ 465560484Sobrien/* We use char because int might match the return type of a gcc2 465660484Sobrien builtin and then its argument prototype would still apply. */ 465760484Sobrienchar opendir(); 465860484Sobrien 465960484Sobrienint main() { 466060484Sobrienopendir() 466160484Sobrien; return 0; } 466260484SobrienEOF 466389857Sobrienif { (eval echo configure:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 466460484Sobrien rm -rf conftest* 466560484Sobrien eval "ac_cv_lib_$ac_lib_var=yes" 466660484Sobrienelse 466760484Sobrien echo "configure: failed program was:" >&5 466860484Sobrien cat conftest.$ac_ext >&5 466960484Sobrien rm -rf conftest* 467060484Sobrien eval "ac_cv_lib_$ac_lib_var=no" 467160484Sobrienfi 467260484Sobrienrm -f conftest* 467360484SobrienLIBS="$ac_save_LIBS" 467460484Sobrien 467560484Sobrienfi 467660484Sobrienif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 467760484Sobrien echo "$ac_t""yes" 1>&6 467860484Sobrien LIBS="$LIBS -lx" 467960484Sobrienelse 468060484Sobrien echo "$ac_t""no" 1>&6 468160484Sobrienfi 468260484Sobrien 468360484Sobrienfi 468460484Sobrien 468560484Sobrienfor ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid 468660484Sobriendo 468733965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 468889857Sobrienecho "configure:4689: checking for $ac_func" >&5 468933965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 469033965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 469133965Sjdpelse 469233965Sjdp cat > conftest.$ac_ext <<EOF 469389857Sobrien#line 4694 "configure" 469433965Sjdp#include "confdefs.h" 469533965Sjdp/* System header to define __stub macros and hopefully few prototypes, 469633965Sjdp which can conflict with char $ac_func(); below. */ 469733965Sjdp#include <assert.h> 469833965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 469933965Sjdp/* We use char because int might match the return type of a gcc2 470033965Sjdp builtin and then its argument prototype would still apply. */ 470133965Sjdpchar $ac_func(); 470233965Sjdp 470333965Sjdpint main() { 470433965Sjdp 470533965Sjdp/* The GNU C library defines this for functions which it implements 470633965Sjdp to always fail with ENOSYS. Some functions are actually named 470733965Sjdp something starting with __ and the normal name is an alias. */ 470833965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 470933965Sjdpchoke me 471033965Sjdp#else 471133965Sjdp$ac_func(); 471233965Sjdp#endif 471333965Sjdp 471433965Sjdp; return 0; } 471533965SjdpEOF 471689857Sobrienif { (eval echo configure:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 471733965Sjdp rm -rf conftest* 471833965Sjdp eval "ac_cv_func_$ac_func=yes" 471933965Sjdpelse 472033965Sjdp echo "configure: failed program was:" >&5 472133965Sjdp cat conftest.$ac_ext >&5 472233965Sjdp rm -rf conftest* 472333965Sjdp eval "ac_cv_func_$ac_func=no" 472433965Sjdpfi 472533965Sjdprm -f conftest* 472633965Sjdpfi 472733965Sjdp 472833965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 472933965Sjdp echo "$ac_t""yes" 1>&6 473033965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 473133965Sjdp cat >> confdefs.h <<EOF 473233965Sjdp#define $ac_tr_func 1 473333965SjdpEOF 473433965Sjdp 473533965Sjdpelse 473633965Sjdp echo "$ac_t""no" 1>&6 473733965Sjdpfi 473833965Sjdpdone 473933965Sjdp 474033965Sjdp 474133965Sjdp 474233965Sjdpcase "${host}" in 474360484Sobrien*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 474433965Sjdp cat >> confdefs.h <<\EOF 474533965Sjdp#define USE_BINARY_FOPEN 1 474633965SjdpEOF 474733965Sjdp ;; 474833965Sjdpesac 474933965Sjdp 475033965Sjdpecho $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 475189857Sobrienecho "configure:4752: checking whether strstr must be declared" >&5 475233965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then 475333965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 475433965Sjdpelse 475533965Sjdp cat > conftest.$ac_ext <<EOF 475689857Sobrien#line 4757 "configure" 475733965Sjdp#include "confdefs.h" 475833965Sjdp 475933965Sjdp#include <stdio.h> 476033965Sjdp#ifdef HAVE_STRING_H 476133965Sjdp#include <string.h> 476233965Sjdp#else 476333965Sjdp#ifdef HAVE_STRINGS_H 476433965Sjdp#include <strings.h> 476533965Sjdp#endif 476633965Sjdp#endif 476733965Sjdp#ifdef HAVE_STDLIB_H 476833965Sjdp#include <stdlib.h> 476933965Sjdp#endif 477033965Sjdp#ifdef HAVE_UNISTD_H 477133965Sjdp#include <unistd.h> 477233965Sjdp#endif 477333965Sjdpint main() { 477433965Sjdpchar *(*pfn) = (char *(*)) strstr 477533965Sjdp; return 0; } 477633965SjdpEOF 477789857Sobrienif { (eval echo configure:4778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 477833965Sjdp rm -rf conftest* 477933965Sjdp bfd_cv_decl_needed_strstr=no 478033965Sjdpelse 478133965Sjdp echo "configure: failed program was:" >&5 478233965Sjdp cat conftest.$ac_ext >&5 478333965Sjdp rm -rf conftest* 478433965Sjdp bfd_cv_decl_needed_strstr=yes 478533965Sjdpfi 478633965Sjdprm -f conftest* 478733965Sjdpfi 478833965Sjdp 478933965Sjdpecho "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6 479033965Sjdpif test $bfd_cv_decl_needed_strstr = yes; then 479160484Sobrien cat >> confdefs.h <<\EOF 479260484Sobrien#define NEED_DECLARATION_STRSTR 1 479333965SjdpEOF 479433965Sjdp 479533965Sjdpfi 479633965Sjdp 479733965Sjdpecho $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 479889857Sobrienecho "configure:4799: checking whether malloc must be declared" >&5 479933965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then 480033965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 480133965Sjdpelse 480233965Sjdp cat > conftest.$ac_ext <<EOF 480389857Sobrien#line 4804 "configure" 480433965Sjdp#include "confdefs.h" 480533965Sjdp 480633965Sjdp#include <stdio.h> 480733965Sjdp#ifdef HAVE_STRING_H 480833965Sjdp#include <string.h> 480933965Sjdp#else 481033965Sjdp#ifdef HAVE_STRINGS_H 481133965Sjdp#include <strings.h> 481233965Sjdp#endif 481333965Sjdp#endif 481433965Sjdp#ifdef HAVE_STDLIB_H 481533965Sjdp#include <stdlib.h> 481633965Sjdp#endif 481733965Sjdp#ifdef HAVE_UNISTD_H 481833965Sjdp#include <unistd.h> 481933965Sjdp#endif 482033965Sjdpint main() { 482133965Sjdpchar *(*pfn) = (char *(*)) malloc 482233965Sjdp; return 0; } 482333965SjdpEOF 482489857Sobrienif { (eval echo configure:4825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 482533965Sjdp rm -rf conftest* 482633965Sjdp bfd_cv_decl_needed_malloc=no 482733965Sjdpelse 482833965Sjdp echo "configure: failed program was:" >&5 482933965Sjdp cat conftest.$ac_ext >&5 483033965Sjdp rm -rf conftest* 483133965Sjdp bfd_cv_decl_needed_malloc=yes 483233965Sjdpfi 483333965Sjdprm -f conftest* 483433965Sjdpfi 483533965Sjdp 483633965Sjdpecho "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6 483733965Sjdpif test $bfd_cv_decl_needed_malloc = yes; then 483860484Sobrien cat >> confdefs.h <<\EOF 483960484Sobrien#define NEED_DECLARATION_MALLOC 1 484033965SjdpEOF 484133965Sjdp 484233965Sjdpfi 484333965Sjdp 484433965Sjdpecho $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 484589857Sobrienecho "configure:4846: checking whether realloc must be declared" >&5 484633965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then 484733965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 484833965Sjdpelse 484933965Sjdp cat > conftest.$ac_ext <<EOF 485089857Sobrien#line 4851 "configure" 485133965Sjdp#include "confdefs.h" 485233965Sjdp 485333965Sjdp#include <stdio.h> 485433965Sjdp#ifdef HAVE_STRING_H 485533965Sjdp#include <string.h> 485633965Sjdp#else 485733965Sjdp#ifdef HAVE_STRINGS_H 485833965Sjdp#include <strings.h> 485933965Sjdp#endif 486033965Sjdp#endif 486133965Sjdp#ifdef HAVE_STDLIB_H 486233965Sjdp#include <stdlib.h> 486333965Sjdp#endif 486433965Sjdp#ifdef HAVE_UNISTD_H 486533965Sjdp#include <unistd.h> 486633965Sjdp#endif 486733965Sjdpint main() { 486833965Sjdpchar *(*pfn) = (char *(*)) realloc 486933965Sjdp; return 0; } 487033965SjdpEOF 487189857Sobrienif { (eval echo configure:4872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 487233965Sjdp rm -rf conftest* 487333965Sjdp bfd_cv_decl_needed_realloc=no 487433965Sjdpelse 487533965Sjdp echo "configure: failed program was:" >&5 487633965Sjdp cat conftest.$ac_ext >&5 487733965Sjdp rm -rf conftest* 487833965Sjdp bfd_cv_decl_needed_realloc=yes 487933965Sjdpfi 488033965Sjdprm -f conftest* 488133965Sjdpfi 488233965Sjdp 488333965Sjdpecho "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6 488433965Sjdpif test $bfd_cv_decl_needed_realloc = yes; then 488560484Sobrien cat >> confdefs.h <<\EOF 488660484Sobrien#define NEED_DECLARATION_REALLOC 1 488733965SjdpEOF 488833965Sjdp 488933965Sjdpfi 489033965Sjdp 489133965Sjdpecho $ac_n "checking whether free must be declared""... $ac_c" 1>&6 489289857Sobrienecho "configure:4893: checking whether free must be declared" >&5 489333965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then 489433965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 489533965Sjdpelse 489633965Sjdp cat > conftest.$ac_ext <<EOF 489789857Sobrien#line 4898 "configure" 489833965Sjdp#include "confdefs.h" 489933965Sjdp 490033965Sjdp#include <stdio.h> 490133965Sjdp#ifdef HAVE_STRING_H 490233965Sjdp#include <string.h> 490333965Sjdp#else 490433965Sjdp#ifdef HAVE_STRINGS_H 490533965Sjdp#include <strings.h> 490633965Sjdp#endif 490733965Sjdp#endif 490833965Sjdp#ifdef HAVE_STDLIB_H 490933965Sjdp#include <stdlib.h> 491033965Sjdp#endif 491133965Sjdp#ifdef HAVE_UNISTD_H 491233965Sjdp#include <unistd.h> 491333965Sjdp#endif 491433965Sjdpint main() { 491533965Sjdpchar *(*pfn) = (char *(*)) free 491633965Sjdp; return 0; } 491733965SjdpEOF 491889857Sobrienif { (eval echo configure:4919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 491933965Sjdp rm -rf conftest* 492033965Sjdp bfd_cv_decl_needed_free=no 492133965Sjdpelse 492233965Sjdp echo "configure: failed program was:" >&5 492333965Sjdp cat conftest.$ac_ext >&5 492433965Sjdp rm -rf conftest* 492533965Sjdp bfd_cv_decl_needed_free=yes 492633965Sjdpfi 492733965Sjdprm -f conftest* 492833965Sjdpfi 492933965Sjdp 493033965Sjdpecho "$ac_t""$bfd_cv_decl_needed_free" 1>&6 493133965Sjdpif test $bfd_cv_decl_needed_free = yes; then 493260484Sobrien cat >> confdefs.h <<\EOF 493360484Sobrien#define NEED_DECLARATION_FREE 1 493433965SjdpEOF 493533965Sjdp 493633965Sjdpfi 493733965Sjdp 493833965Sjdpecho $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 493989857Sobrienecho "configure:4940: checking whether getenv must be declared" >&5 494033965Sjdpif eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then 494133965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 494233965Sjdpelse 494333965Sjdp cat > conftest.$ac_ext <<EOF 494489857Sobrien#line 4945 "configure" 494533965Sjdp#include "confdefs.h" 494633965Sjdp 494733965Sjdp#include <stdio.h> 494833965Sjdp#ifdef HAVE_STRING_H 494933965Sjdp#include <string.h> 495033965Sjdp#else 495133965Sjdp#ifdef HAVE_STRINGS_H 495233965Sjdp#include <strings.h> 495333965Sjdp#endif 495433965Sjdp#endif 495533965Sjdp#ifdef HAVE_STDLIB_H 495633965Sjdp#include <stdlib.h> 495733965Sjdp#endif 495833965Sjdp#ifdef HAVE_UNISTD_H 495933965Sjdp#include <unistd.h> 496033965Sjdp#endif 496133965Sjdpint main() { 496233965Sjdpchar *(*pfn) = (char *(*)) getenv 496333965Sjdp; return 0; } 496433965SjdpEOF 496589857Sobrienif { (eval echo configure:4966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 496633965Sjdp rm -rf conftest* 496733965Sjdp bfd_cv_decl_needed_getenv=no 496833965Sjdpelse 496933965Sjdp echo "configure: failed program was:" >&5 497033965Sjdp cat conftest.$ac_ext >&5 497133965Sjdp rm -rf conftest* 497233965Sjdp bfd_cv_decl_needed_getenv=yes 497333965Sjdpfi 497433965Sjdprm -f conftest* 497533965Sjdpfi 497633965Sjdp 497733965Sjdpecho "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6 497833965Sjdpif test $bfd_cv_decl_needed_getenv = yes; then 497960484Sobrien cat >> confdefs.h <<\EOF 498060484Sobrien#define NEED_DECLARATION_GETENV 1 498133965SjdpEOF 498233965Sjdp 498333965Sjdpfi 498433965Sjdp 498533965Sjdp 498633965Sjdp# If we are configured native, pick a core file support file. 498733965SjdpCOREFILE= 498833965SjdpCOREFLAG= 498960484SobrienTRAD_HEADER= 499033965Sjdpif test "${target}" = "${host}"; then 499133965Sjdp case "${host}" in 499277298Sobrien alpha*-*-freebsd*) 499377298Sobrien COREFILE='' 499477298Sobrien ;; 499538889Sjdp alpha*-*-linux-gnu*) 499638889Sjdp COREFILE=trad-core.lo 499760484Sobrien TRAD_HEADER='"hosts/alphalinux.h"' 499833965Sjdp ;; 499938889Sjdp alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;; 500038889Sjdp alpha*-*-*) COREFILE=osf-core.lo ;; 500177298Sobrien arm-*-freebsd*) COREFILE='' ;; 500289857Sobrien arm-*-netbsd*) COREFILE=netbsd-core.lo ;; 500338889Sjdp arm-*-riscix) COREFILE=trad-core.lo ;; 500438889Sjdp hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 500538889Sjdp hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 500660484Sobrien hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; 500738889Sjdp hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 500833965Sjdp COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 500989857Sobrien i370-*-*) 501060484Sobrien COREFILE=trad-core.lo 501160484Sobrien TRAD_HEADER='"hosts/i370linux.h"' 501260484Sobrien ;; 501360484Sobrien 501433965Sjdp i[3456]86-sequent-bsd*) 501560484Sobrien COREFILE=trad-core.lo 501660484Sobrien TRAD_HEADER='"hosts/symmetry.h"' 501733965Sjdp ;; 501833965Sjdp i[3456]86-sequent-sysv4*) ;; 501933965Sjdp i[3456]86-sequent-sysv*) 502038889Sjdp COREFILE=trad-core.lo 502160484Sobrien TRAD_HEADER='"hosts/symmetry.h"' 502233965Sjdp ;; 502389857Sobrien i[3456]86-*-bsdi) 502489857Sobrien COREFILE= 502589857Sobrien ;; 502677298Sobrien i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*) 502738889Sjdp COREFILE=trad-core.lo 502860484Sobrien TRAD_HEADER='"hosts/i386bsd.h"' 502933965Sjdp ;; 503077298Sobrien i[3456]86-*-freebsd*) 503177298Sobrien COREFILE='' 503277298Sobrien TRAD_HEADER='"hosts/i386bsd.h"' 503377298Sobrien ;; 503433965Sjdp i[3456]86-*-netbsd* | i[3456]86-*-openbsd*) 503538889Sjdp COREFILE=netbsd-core.lo 503633965Sjdp ;; 503733965Sjdp i[3456]86-esix-sysv3*) 503838889Sjdp COREFILE=trad-core.lo 503960484Sobrien TRAD_HEADER='"hosts/esix.h"' 504033965Sjdp ;; 504160484Sobrien i[3456]86-*-sco3.2v5*) 504260484Sobrien COREFILE=sco5-core.lo 504360484Sobrien ;; 504433965Sjdp i[3456]86-*-sco* | i[3456]86-*-isc*) 504538889Sjdp COREFILE=trad-core.lo 504660484Sobrien TRAD_HEADER='"hosts/i386sco.h"' 504733965Sjdp ;; 504833965Sjdp i[3456]86-*-mach3*) 504938889Sjdp COREFILE=trad-core.lo 505060484Sobrien TRAD_HEADER='"hosts/i386mach3.h"' 505133965Sjdp ;; 505238889Sjdp i[3456]86-*-linux-gnu*) 505338889Sjdp COREFILE=trad-core.lo 505460484Sobrien TRAD_HEADER='"hosts/i386linux.h"' 505533965Sjdp ;; 505638889Sjdp i[3456]86-*-isc*) COREFILE=trad-core.lo ;; 505738889Sjdp i[3456]86-*-aix*) COREFILE=aix386-core.lo ;; 505833965Sjdp i860-*-mach3* | i860-*-osf1*) 505938889Sjdp COREFILE=trad-core.lo 506060484Sobrien TRAD_HEADER='"hosts/i860mach3.h"' 506133965Sjdp ;; 506233965Sjdp mips-dec-bsd*) 506338889Sjdp COREFILE=trad-core.lo 506460484Sobrien TRAD_HEADER='"hosts/mipsbsd.h"' 506533965Sjdp ;; 506633965Sjdp mips-dec-mach3*) 506738889Sjdp COREFILE=trad-core.lo 506860484Sobrien TRAD_HEADER='"hosts/mipsmach3.h"' 506933965Sjdp ;; 507033965Sjdp mips-*-netbsd* | mips*-*-openbsd*) 507138889Sjdp COREFILE=netbsd-core.lo 507233965Sjdp ;; 507333965Sjdp mips-dec-*) 507438889Sjdp COREFILE=trad-core.lo 507560484Sobrien TRAD_HEADER='"hosts/decstation.h"' 507633965Sjdp ;; 507738889Sjdp mips-sgi-irix4*) COREFILE=irix-core.lo ;; 507838889Sjdp mips-sgi-irix5*) COREFILE=irix-core.lo ;; 507938889Sjdp mips-sgi-irix6*) COREFILE=irix-core.lo ;; 508033965Sjdp mips-*-mach3*) 508138889Sjdp COREFILE=trad-core.lo 508260484Sobrien TRAD_HEADER='"hosts/mipsmach3.h"' 508333965Sjdp ;; 508433965Sjdp mips-*-sysv4*) ;; 508533965Sjdp mips-*-sysv* | mips-*-riscos*) 508638889Sjdp COREFILE=trad-core.lo 508760484Sobrien TRAD_HEADER='"hosts/riscos.h"' 508833965Sjdp ;; 508933965Sjdp mips-sony-bsd*) 509038889Sjdp COREFILE=trad-core.lo 509160484Sobrien TRAD_HEADER='"hosts/news-mips.h"' 509233965Sjdp ;; 509333965Sjdp m68*-bull*-sysv*) 509438889Sjdp COREFILE=trad-core.lo 509560484Sobrien TRAD_HEADER='"hosts/dpx2.h"' 509633965Sjdp ;; 509738889Sjdp m68*-hp-hpux*) COREFILE=hpux-core.lo ;; 509833965Sjdp m68*-hp-bsd*) 509938889Sjdp COREFILE=trad-core.lo 510060484Sobrien TRAD_HEADER='"hosts/hp300bsd.h"' 510133965Sjdp ;; 510238889Sjdp m68*-*-linux-gnu*) 510338889Sjdp COREFILE=trad-core.lo 510460484Sobrien TRAD_HEADER='"hosts/m68klinux.h"' 510533965Sjdp ;; 510633965Sjdp m68*-motorola-sysv*) 510738889Sjdp COREFILE=trad-core.lo 510860484Sobrien TRAD_HEADER='"hosts/delta68.h"' 510933965Sjdp ;; 511033965Sjdp m68*-sony-*) 511138889Sjdp COREFILE=trad-core.lo 511260484Sobrien TRAD_HEADER='"hosts/news.h"' 511333965Sjdp ;; 511433965Sjdp m68*-*-netbsd* | m68*-*-openbsd*) 511538889Sjdp COREFILE=netbsd-core.lo 511633965Sjdp ;; 511733965Sjdp m68*-apple-aux*) 511838889Sjdp COREFILE=trad-core.lo 511960484Sobrien TRAD_HEADER='"hosts/m68kaux.h"' 512033965Sjdp ;; 512133965Sjdp m88*-*-sysv4*) ;; 512238889Sjdp m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;; 512333965Sjdp m88*-*-mach3*) 512438889Sjdp COREFILE=trad-core.lo 512560484Sobrien TRAD_HEADER='"hosts/m88kmach3.h"' 512633965Sjdp ;; 512733965Sjdp ns32k-pc532-mach) 512838889Sjdp COREFILE=trad-core.lo 512960484Sobrien TRAD_HEADER='"hosts/pc532mach.h"' 513033965Sjdp ;; 513133965Sjdp ns32k-*-netbsd* | ns32k-*-openbsd*) 513238889Sjdp COREFILE=netbsd-core.lo 513333965Sjdp ;; 513438889Sjdp rs6000-*-lynx*) COREFILE=lynx-core.lo ;; 513577298Sobrien rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) 513677298Sobrien COREFILE=rs6000-core.lo 513777298Sobrien COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" 513877298Sobrien ;; 513938889Sjdp rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 514038889Sjdp rs6000-*-*) COREFILE=rs6000-core.lo ;; 514138889Sjdp powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 514238889Sjdp powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 514333965Sjdp powerpc-*-beos*) ;; 514477298Sobrien powerpc-*-freebsd*) COREFILE='' ;; 514538889Sjdp powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 514678828Sobrien powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 514789857Sobrien s390*-*-*) COREFILE=trad-core.lo ;; 514889857Sobrien sh*-*-netbsd*) COREFILE=netbsd-core.lo ;; 514933965Sjdp sparc-*-netbsd* | sparc-*-openbsd*) 515038889Sjdp COREFILE=netbsd-core.lo 515133965Sjdp ;; 515233965Sjdp tahoe-*-*) 515338889Sjdp COREFILE=trad-core.lo 515460484Sobrien TRAD_HEADER='"hosts/tahoe.h"' 515533965Sjdp ;; 515633965Sjdp vax-*-ultrix2*) 515738889Sjdp COREFILE=trad-core.lo 515860484Sobrien TRAD_HEADER='"hosts/vaxult2.h"' 515933965Sjdp ;; 516033965Sjdp vax-*-ultrix*) 516138889Sjdp COREFILE=trad-core.lo 516260484Sobrien TRAD_HEADER='"hosts/vaxult2.h"' 516333965Sjdp ;; 516433965Sjdp vax-*-*) 516538889Sjdp COREFILE=trad-core.lo 516660484Sobrien TRAD_HEADER='"hosts/vaxbsd.h"' 516733965Sjdp ;; 516889857Sobrien x86_64-*-netbsd*) COREFILE=netbsd-core.lo ;; 516933965Sjdp esac 517033965Sjdp 517133965Sjdp case "$COREFILE" in 517238889Sjdp aix386-core.lo) COREFLAG=-DAIX386_CORE ;; 517338889Sjdp hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 517438889Sjdp hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 517538889Sjdp irix-core.lo) COREFLAG=-DIRIX_CORE ;; 517638889Sjdp lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 517738889Sjdp netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 517838889Sjdp osf-core.lo) COREFLAG=-DOSF_CORE ;; 517938889Sjdp ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 518038889Sjdp rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 518160484Sobrien sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; 518238889Sjdp trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 518333965Sjdp esac 518433965Sjdp 518560484Sobrien # ELF corefile support has several flavors, but all of 518660484Sobrien # them use something called <sys/procfs.h> 518760484Sobrien for ac_hdr in sys/procfs.h 518860484Sobriendo 518960484Sobrienac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 519060484Sobrienecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 519189857Sobrienecho "configure:5192: checking for $ac_hdr" >&5 519260484Sobrienif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 519333965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 519433965Sjdpelse 519533965Sjdp cat > conftest.$ac_ext <<EOF 519689857Sobrien#line 5197 "configure" 519733965Sjdp#include "confdefs.h" 519860484Sobrien#include <$ac_hdr> 519960484SobrienEOF 520060484Sobrienac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 520189857Sobrien{ (eval echo configure:5202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 520260484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 520360484Sobrienif test -z "$ac_err"; then 520460484Sobrien rm -rf conftest* 520560484Sobrien eval "ac_cv_header_$ac_safe=yes" 520660484Sobrienelse 520760484Sobrien echo "$ac_err" >&5 520860484Sobrien echo "configure: failed program was:" >&5 520960484Sobrien cat conftest.$ac_ext >&5 521060484Sobrien rm -rf conftest* 521160484Sobrien eval "ac_cv_header_$ac_safe=no" 521260484Sobrienfi 521360484Sobrienrm -f conftest* 521460484Sobrienfi 521560484Sobrienif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 521660484Sobrien echo "$ac_t""yes" 1>&6 521760484Sobrien ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 521860484Sobrien cat >> confdefs.h <<EOF 521960484Sobrien#define $ac_tr_hdr 1 522060484SobrienEOF 522160484Sobrien 522260484Sobrienelse 522360484Sobrien echo "$ac_t""no" 1>&6 522460484Sobrienfi 522560484Sobriendone 522660484Sobrien 522760484Sobrien if test "$ac_cv_header_sys_procfs_h" = yes; then 522860484Sobrien echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6 522989857Sobrienecho "configure:5230: checking for prstatus_t in sys/procfs.h" >&5 523060484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then 523160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 523260484Sobrienelse 523360484Sobrien cat > conftest.$ac_ext <<EOF 523489857Sobrien#line 5235 "configure" 523560484Sobrien#include "confdefs.h" 523677298Sobrien 523777298Sobrien#define _SYSCALL32 523833965Sjdp#include <sys/procfs.h> 523933965Sjdpint main() { 524060484Sobrienprstatus_t avar 524133965Sjdp; return 0; } 524233965SjdpEOF 524389857Sobrienif { (eval echo configure:5244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 524433965Sjdp rm -rf conftest* 524560484Sobrien bfd_cv_have_sys_procfs_type_prstatus_t=yes 524633965Sjdpelse 524733965Sjdp echo "configure: failed program was:" >&5 524833965Sjdp cat conftest.$ac_ext >&5 524933965Sjdp rm -rf conftest* 525060484Sobrien bfd_cv_have_sys_procfs_type_prstatus_t=no 525160484Sobrien 525233965Sjdpfi 525333965Sjdprm -f conftest* 525433965Sjdpfi 525533965Sjdp 525660484Sobrien if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then 525760484Sobrien cat >> confdefs.h <<\EOF 525860484Sobrien#define HAVE_PRSTATUS_T 1 525933965SjdpEOF 526033965Sjdp 526160484Sobrien fi 526260484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6 526333965Sjdp 526477298Sobrien echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6 526589857Sobrienecho "configure:5266: checking for prstatus32_t in sys/procfs.h" >&5 526677298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then 526777298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 526877298Sobrienelse 526977298Sobrien cat > conftest.$ac_ext <<EOF 527089857Sobrien#line 5271 "configure" 527177298Sobrien#include "confdefs.h" 527277298Sobrien 527377298Sobrien#define _SYSCALL32 527477298Sobrien#include <sys/procfs.h> 527577298Sobrienint main() { 527677298Sobrienprstatus32_t avar 527777298Sobrien; return 0; } 527877298SobrienEOF 527989857Sobrienif { (eval echo configure:5280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 528077298Sobrien rm -rf conftest* 528177298Sobrien bfd_cv_have_sys_procfs_type_prstatus32_t=yes 528277298Sobrienelse 528377298Sobrien echo "configure: failed program was:" >&5 528477298Sobrien cat conftest.$ac_ext >&5 528577298Sobrien rm -rf conftest* 528677298Sobrien bfd_cv_have_sys_procfs_type_prstatus32_t=no 528777298Sobrien 528877298Sobrienfi 528977298Sobrienrm -f conftest* 529077298Sobrienfi 529177298Sobrien 529277298Sobrien if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then 529377298Sobrien cat >> confdefs.h <<\EOF 529477298Sobrien#define HAVE_PRSTATUS32_T 1 529577298SobrienEOF 529677298Sobrien 529777298Sobrien fi 529877298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6 529977298Sobrien 530060484Sobrien echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 530189857Sobrienecho "configure:5302: checking for prstatus_t.pr_who in sys/procfs.h" >&5 530260484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then 530360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 530460484Sobrienelse 530560484Sobrien cat > conftest.$ac_ext <<EOF 530689857Sobrien#line 5307 "configure" 530760484Sobrien#include "confdefs.h" 530877298Sobrien 530977298Sobrien#define _SYSCALL32 531060484Sobrien#include <sys/procfs.h> 531160484Sobrienint main() { 531260484Sobrienprstatus_t avar; void* aref = (void*) &avar.pr_who 531360484Sobrien; return 0; } 531460484SobrienEOF 531589857Sobrienif { (eval echo configure:5316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 531660484Sobrien rm -rf conftest* 531760484Sobrien bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes 531860484Sobrienelse 531960484Sobrien echo "configure: failed program was:" >&5 532060484Sobrien cat conftest.$ac_ext >&5 532160484Sobrien rm -rf conftest* 532260484Sobrien bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no 532360484Sobrien 532433965Sjdpfi 532560484Sobrienrm -f conftest* 532660484Sobrienfi 532733965Sjdp 532860484Sobrien if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then 532960484Sobrien cat >> confdefs.h <<\EOF 533060484Sobrien#define HAVE_PRSTATUS_T_PR_WHO 1 533160484SobrienEOF 533233965Sjdp 533360484Sobrien fi 533460484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6 533533965Sjdp 533677298Sobrien echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 533789857Sobrienecho "configure:5338: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 533877298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then 533977298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 534077298Sobrienelse 534177298Sobrien cat > conftest.$ac_ext <<EOF 534289857Sobrien#line 5343 "configure" 534377298Sobrien#include "confdefs.h" 534477298Sobrien 534577298Sobrien#define _SYSCALL32 534677298Sobrien#include <sys/procfs.h> 534777298Sobrienint main() { 534877298Sobrienprstatus32_t avar; void* aref = (void*) &avar.pr_who 534977298Sobrien; return 0; } 535077298SobrienEOF 535189857Sobrienif { (eval echo configure:5352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 535277298Sobrien rm -rf conftest* 535377298Sobrien bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes 535477298Sobrienelse 535577298Sobrien echo "configure: failed program was:" >&5 535677298Sobrien cat conftest.$ac_ext >&5 535777298Sobrien rm -rf conftest* 535877298Sobrien bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no 535977298Sobrien 536077298Sobrienfi 536177298Sobrienrm -f conftest* 536277298Sobrienfi 536377298Sobrien 536477298Sobrien if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then 536577298Sobrien cat >> confdefs.h <<\EOF 536677298Sobrien#define HAVE_PRSTATUS32_T_PR_WHO 1 536777298SobrienEOF 536877298Sobrien 536977298Sobrien fi 537077298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6 537177298Sobrien 537260484Sobrien echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6 537389857Sobrienecho "configure:5374: checking for pstatus_t in sys/procfs.h" >&5 537460484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then 537560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 537660484Sobrienelse 537760484Sobrien cat > conftest.$ac_ext <<EOF 537889857Sobrien#line 5379 "configure" 537960484Sobrien#include "confdefs.h" 538077298Sobrien 538177298Sobrien#define _SYSCALL32 538260484Sobrien#include <sys/procfs.h> 538360484Sobrienint main() { 538460484Sobrienpstatus_t avar 538560484Sobrien; return 0; } 538660484SobrienEOF 538789857Sobrienif { (eval echo configure:5388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 538860484Sobrien rm -rf conftest* 538960484Sobrien bfd_cv_have_sys_procfs_type_pstatus_t=yes 539060484Sobrienelse 539160484Sobrien echo "configure: failed program was:" >&5 539260484Sobrien cat conftest.$ac_ext >&5 539360484Sobrien rm -rf conftest* 539460484Sobrien bfd_cv_have_sys_procfs_type_pstatus_t=no 539560484Sobrien 539660484Sobrienfi 539760484Sobrienrm -f conftest* 539860484Sobrienfi 539960484Sobrien 540060484Sobrien if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then 540160484Sobrien cat >> confdefs.h <<\EOF 540260484Sobrien#define HAVE_PSTATUS_T 1 540360484SobrienEOF 540460484Sobrien 540560484Sobrien fi 540660484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6 540760484Sobrien 540877298Sobrien echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6 540989857Sobrienecho "configure:5410: checking for pxstatus_t in sys/procfs.h" >&5 541077298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then 541177298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 541277298Sobrienelse 541377298Sobrien cat > conftest.$ac_ext <<EOF 541489857Sobrien#line 5415 "configure" 541577298Sobrien#include "confdefs.h" 541677298Sobrien 541777298Sobrien#define _SYSCALL32 541877298Sobrien#include <sys/procfs.h> 541977298Sobrienint main() { 542077298Sobrienpxstatus_t avar 542177298Sobrien; return 0; } 542277298SobrienEOF 542389857Sobrienif { (eval echo configure:5424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 542477298Sobrien rm -rf conftest* 542577298Sobrien bfd_cv_have_sys_procfs_type_pxstatus_t=yes 542677298Sobrienelse 542777298Sobrien echo "configure: failed program was:" >&5 542877298Sobrien cat conftest.$ac_ext >&5 542977298Sobrien rm -rf conftest* 543077298Sobrien bfd_cv_have_sys_procfs_type_pxstatus_t=no 543177298Sobrien 543277298Sobrienfi 543377298Sobrienrm -f conftest* 543477298Sobrienfi 543577298Sobrien 543677298Sobrien if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then 543777298Sobrien cat >> confdefs.h <<\EOF 543877298Sobrien#define HAVE_PXSTATUS_T 1 543977298SobrienEOF 544077298Sobrien 544177298Sobrien fi 544277298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6 544377298Sobrien 544477298Sobrien echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6 544589857Sobrienecho "configure:5446: checking for pstatus32_t in sys/procfs.h" >&5 544677298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then 544777298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 544877298Sobrienelse 544977298Sobrien cat > conftest.$ac_ext <<EOF 545089857Sobrien#line 5451 "configure" 545177298Sobrien#include "confdefs.h" 545277298Sobrien 545377298Sobrien#define _SYSCALL32 545477298Sobrien#include <sys/procfs.h> 545577298Sobrienint main() { 545677298Sobrienpstatus32_t avar 545777298Sobrien; return 0; } 545877298SobrienEOF 545989857Sobrienif { (eval echo configure:5460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 546077298Sobrien rm -rf conftest* 546177298Sobrien bfd_cv_have_sys_procfs_type_pstatus32_t=yes 546277298Sobrienelse 546377298Sobrien echo "configure: failed program was:" >&5 546477298Sobrien cat conftest.$ac_ext >&5 546577298Sobrien rm -rf conftest* 546677298Sobrien bfd_cv_have_sys_procfs_type_pstatus32_t=no 546777298Sobrien 546877298Sobrienfi 546977298Sobrienrm -f conftest* 547077298Sobrienfi 547177298Sobrien 547277298Sobrien if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then 547377298Sobrien cat >> confdefs.h <<\EOF 547477298Sobrien#define HAVE_PSTATUS32_T 1 547577298SobrienEOF 547677298Sobrien 547777298Sobrien fi 547877298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6 547977298Sobrien 548060484Sobrien echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6 548189857Sobrienecho "configure:5482: checking for prpsinfo_t in sys/procfs.h" >&5 548260484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then 548360484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 548460484Sobrienelse 548560484Sobrien cat > conftest.$ac_ext <<EOF 548689857Sobrien#line 5487 "configure" 548760484Sobrien#include "confdefs.h" 548877298Sobrien 548977298Sobrien#define _SYSCALL32 549060484Sobrien#include <sys/procfs.h> 549160484Sobrienint main() { 549260484Sobrienprpsinfo_t avar 549360484Sobrien; return 0; } 549460484SobrienEOF 549589857Sobrienif { (eval echo configure:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 549660484Sobrien rm -rf conftest* 549760484Sobrien bfd_cv_have_sys_procfs_type_prpsinfo_t=yes 549860484Sobrienelse 549960484Sobrien echo "configure: failed program was:" >&5 550060484Sobrien cat conftest.$ac_ext >&5 550160484Sobrien rm -rf conftest* 550260484Sobrien bfd_cv_have_sys_procfs_type_prpsinfo_t=no 550360484Sobrien 550460484Sobrienfi 550560484Sobrienrm -f conftest* 550660484Sobrienfi 550760484Sobrien 550860484Sobrien if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then 550960484Sobrien cat >> confdefs.h <<\EOF 551060484Sobrien#define HAVE_PRPSINFO_T 1 551160484SobrienEOF 551260484Sobrien 551360484Sobrien fi 551460484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6 551560484Sobrien 551677298Sobrien echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6 551789857Sobrienecho "configure:5518: checking for prpsinfo32_t in sys/procfs.h" >&5 551877298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then 551977298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 552077298Sobrienelse 552177298Sobrien cat > conftest.$ac_ext <<EOF 552289857Sobrien#line 5523 "configure" 552377298Sobrien#include "confdefs.h" 552477298Sobrien 552577298Sobrien#define _SYSCALL32 552677298Sobrien#include <sys/procfs.h> 552777298Sobrienint main() { 552877298Sobrienprpsinfo32_t avar 552977298Sobrien; return 0; } 553077298SobrienEOF 553189857Sobrienif { (eval echo configure:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 553277298Sobrien rm -rf conftest* 553377298Sobrien bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes 553477298Sobrienelse 553577298Sobrien echo "configure: failed program was:" >&5 553677298Sobrien cat conftest.$ac_ext >&5 553777298Sobrien rm -rf conftest* 553877298Sobrien bfd_cv_have_sys_procfs_type_prpsinfo32_t=no 553977298Sobrien 554077298Sobrienfi 554177298Sobrienrm -f conftest* 554277298Sobrienfi 554377298Sobrien 554477298Sobrien if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then 554577298Sobrien cat >> confdefs.h <<\EOF 554677298Sobrien#define HAVE_PRPSINFO32_T 1 554777298SobrienEOF 554877298Sobrien 554977298Sobrien fi 555077298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6 555177298Sobrien 555260484Sobrien echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6 555389857Sobrienecho "configure:5554: checking for psinfo_t in sys/procfs.h" >&5 555460484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then 555560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 555660484Sobrienelse 555760484Sobrien cat > conftest.$ac_ext <<EOF 555889857Sobrien#line 5559 "configure" 555960484Sobrien#include "confdefs.h" 556077298Sobrien 556177298Sobrien#define _SYSCALL32 556260484Sobrien#include <sys/procfs.h> 556360484Sobrienint main() { 556460484Sobrienpsinfo_t avar 556560484Sobrien; return 0; } 556660484SobrienEOF 556789857Sobrienif { (eval echo configure:5568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 556860484Sobrien rm -rf conftest* 556960484Sobrien bfd_cv_have_sys_procfs_type_psinfo_t=yes 557060484Sobrienelse 557160484Sobrien echo "configure: failed program was:" >&5 557260484Sobrien cat conftest.$ac_ext >&5 557360484Sobrien rm -rf conftest* 557460484Sobrien bfd_cv_have_sys_procfs_type_psinfo_t=no 557560484Sobrien 557660484Sobrienfi 557760484Sobrienrm -f conftest* 557860484Sobrienfi 557960484Sobrien 558060484Sobrien if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then 558160484Sobrien cat >> confdefs.h <<\EOF 558260484Sobrien#define HAVE_PSINFO_T 1 558360484SobrienEOF 558460484Sobrien 558560484Sobrien fi 558660484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6 558760484Sobrien 558877298Sobrien echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6 558989857Sobrienecho "configure:5590: checking for psinfo32_t in sys/procfs.h" >&5 559077298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then 559177298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 559277298Sobrienelse 559377298Sobrien cat > conftest.$ac_ext <<EOF 559489857Sobrien#line 5595 "configure" 559577298Sobrien#include "confdefs.h" 559677298Sobrien 559777298Sobrien#define _SYSCALL32 559877298Sobrien#include <sys/procfs.h> 559977298Sobrienint main() { 560077298Sobrienpsinfo32_t avar 560177298Sobrien; return 0; } 560277298SobrienEOF 560389857Sobrienif { (eval echo configure:5604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 560477298Sobrien rm -rf conftest* 560577298Sobrien bfd_cv_have_sys_procfs_type_psinfo32_t=yes 560677298Sobrienelse 560777298Sobrien echo "configure: failed program was:" >&5 560877298Sobrien cat conftest.$ac_ext >&5 560977298Sobrien rm -rf conftest* 561077298Sobrien bfd_cv_have_sys_procfs_type_psinfo32_t=no 561177298Sobrien 561277298Sobrienfi 561377298Sobrienrm -f conftest* 561477298Sobrienfi 561577298Sobrien 561677298Sobrien if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then 561777298Sobrien cat >> confdefs.h <<\EOF 561877298Sobrien#define HAVE_PSINFO32_T 1 561977298SobrienEOF 562077298Sobrien 562177298Sobrien fi 562277298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6 562377298Sobrien 562460484Sobrien echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6 562589857Sobrienecho "configure:5626: checking for lwpstatus_t in sys/procfs.h" >&5 562660484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then 562760484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 562860484Sobrienelse 562960484Sobrien cat > conftest.$ac_ext <<EOF 563089857Sobrien#line 5631 "configure" 563160484Sobrien#include "confdefs.h" 563277298Sobrien 563377298Sobrien#define _SYSCALL32 563460484Sobrien#include <sys/procfs.h> 563560484Sobrienint main() { 563660484Sobrienlwpstatus_t avar 563760484Sobrien; return 0; } 563860484SobrienEOF 563989857Sobrienif { (eval echo configure:5640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 564060484Sobrien rm -rf conftest* 564160484Sobrien bfd_cv_have_sys_procfs_type_lwpstatus_t=yes 564260484Sobrienelse 564360484Sobrien echo "configure: failed program was:" >&5 564460484Sobrien cat conftest.$ac_ext >&5 564560484Sobrien rm -rf conftest* 564660484Sobrien bfd_cv_have_sys_procfs_type_lwpstatus_t=no 564760484Sobrien 564860484Sobrienfi 564960484Sobrienrm -f conftest* 565060484Sobrienfi 565160484Sobrien 565260484Sobrien if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then 565360484Sobrien cat >> confdefs.h <<\EOF 565460484Sobrien#define HAVE_LWPSTATUS_T 1 565560484SobrienEOF 565660484Sobrien 565760484Sobrien fi 565860484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6 565960484Sobrien 566077298Sobrien echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6 566189857Sobrienecho "configure:5662: checking for lwpxstatus_t in sys/procfs.h" >&5 566277298Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then 566377298Sobrien echo $ac_n "(cached) $ac_c" 1>&6 566477298Sobrienelse 566577298Sobrien cat > conftest.$ac_ext <<EOF 566689857Sobrien#line 5667 "configure" 566777298Sobrien#include "confdefs.h" 566877298Sobrien 566977298Sobrien#define _SYSCALL32 567077298Sobrien#include <sys/procfs.h> 567177298Sobrienint main() { 567277298Sobrienlwpxstatus_t avar 567377298Sobrien; return 0; } 567477298SobrienEOF 567589857Sobrienif { (eval echo configure:5676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 567677298Sobrien rm -rf conftest* 567777298Sobrien bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes 567877298Sobrienelse 567977298Sobrien echo "configure: failed program was:" >&5 568077298Sobrien cat conftest.$ac_ext >&5 568177298Sobrien rm -rf conftest* 568277298Sobrien bfd_cv_have_sys_procfs_type_lwpxstatus_t=no 568377298Sobrien 568477298Sobrienfi 568577298Sobrienrm -f conftest* 568677298Sobrienfi 568777298Sobrien 568877298Sobrien if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then 568977298Sobrien cat >> confdefs.h <<\EOF 569077298Sobrien#define HAVE_LWPXSTATUS_T 1 569177298SobrienEOF 569277298Sobrien 569377298Sobrien fi 569477298Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6 569577298Sobrien 569660484Sobrien echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6 569789857Sobrienecho "configure:5698: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 569860484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then 569960484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 570060484Sobrienelse 570160484Sobrien cat > conftest.$ac_ext <<EOF 570289857Sobrien#line 5703 "configure" 570360484Sobrien#include "confdefs.h" 570477298Sobrien 570577298Sobrien#define _SYSCALL32 570660484Sobrien#include <sys/procfs.h> 570760484Sobrienint main() { 570860484Sobrienlwpstatus_t avar; void* aref = (void*) &avar.pr_context 570960484Sobrien; return 0; } 571060484SobrienEOF 571189857Sobrienif { (eval echo configure:5712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 571260484Sobrien rm -rf conftest* 571360484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes 571460484Sobrienelse 571560484Sobrien echo "configure: failed program was:" >&5 571660484Sobrien cat conftest.$ac_ext >&5 571760484Sobrien rm -rf conftest* 571860484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no 571960484Sobrien 572060484Sobrienfi 572160484Sobrienrm -f conftest* 572260484Sobrienfi 572360484Sobrien 572460484Sobrien if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then 572560484Sobrien cat >> confdefs.h <<\EOF 572660484Sobrien#define HAVE_LWPSTATUS_T_PR_CONTEXT 1 572760484SobrienEOF 572860484Sobrien 572960484Sobrien fi 573060484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6 573160484Sobrien 573260484Sobrien echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6 573389857Sobrienecho "configure:5734: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 573460484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then 573560484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 573660484Sobrienelse 573760484Sobrien cat > conftest.$ac_ext <<EOF 573889857Sobrien#line 5739 "configure" 573960484Sobrien#include "confdefs.h" 574077298Sobrien 574177298Sobrien#define _SYSCALL32 574260484Sobrien#include <sys/procfs.h> 574360484Sobrienint main() { 574460484Sobrienlwpstatus_t avar; void* aref = (void*) &avar.pr_reg 574560484Sobrien; return 0; } 574660484SobrienEOF 574789857Sobrienif { (eval echo configure:5748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 574860484Sobrien rm -rf conftest* 574960484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes 575060484Sobrienelse 575160484Sobrien echo "configure: failed program was:" >&5 575260484Sobrien cat conftest.$ac_ext >&5 575360484Sobrien rm -rf conftest* 575460484Sobrien bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no 575560484Sobrien 575660484Sobrienfi 575760484Sobrienrm -f conftest* 575860484Sobrienfi 575960484Sobrien 576060484Sobrien if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then 576160484Sobrien cat >> confdefs.h <<\EOF 576260484Sobrien#define HAVE_LWPSTATUS_T_PR_REG 1 576360484SobrienEOF 576460484Sobrien 576560484Sobrien fi 576660484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6 576760484Sobrien 576860484Sobrien echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6 576989857Sobrienecho "configure:5770: checking for win32_pstatus_t in sys/procfs.h" >&5 577060484Sobrien if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then 577160484Sobrien echo $ac_n "(cached) $ac_c" 1>&6 577260484Sobrienelse 577360484Sobrien cat > conftest.$ac_ext <<EOF 577489857Sobrien#line 5775 "configure" 577560484Sobrien#include "confdefs.h" 577677298Sobrien 577777298Sobrien#define _SYSCALL32 577860484Sobrien#include <sys/procfs.h> 577960484Sobrienint main() { 578060484Sobrienwin32_pstatus_t avar 578160484Sobrien; return 0; } 578260484SobrienEOF 578389857Sobrienif { (eval echo configure:5784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 578460484Sobrien rm -rf conftest* 578560484Sobrien bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes 578660484Sobrienelse 578760484Sobrien echo "configure: failed program was:" >&5 578860484Sobrien cat conftest.$ac_ext >&5 578960484Sobrien rm -rf conftest* 579060484Sobrien bfd_cv_have_sys_procfs_type_win32_pstatus_t=no 579160484Sobrien 579260484Sobrienfi 579360484Sobrienrm -f conftest* 579460484Sobrienfi 579560484Sobrien 579660484Sobrien if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then 579760484Sobrien cat >> confdefs.h <<\EOF 579860484Sobrien#define HAVE_WIN32_PSTATUS_T 1 579960484SobrienEOF 580060484Sobrien 580160484Sobrien fi 580260484Sobrien echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6 580360484Sobrien 580460484Sobrien fi 580560484Sobrienfi 580660484Sobrien 580760484Sobrien 580877298Sobrienif test -n "$TRAD_HEADER"; then 580977298Sobrien cat >> confdefs.h <<EOF 581060484Sobrien#define TRAD_HEADER $TRAD_HEADER 581160484SobrienEOF 581260484Sobrien 581377298Sobrienfi 581460484Sobrien 581560484Sobrien# Horrible hacks to build DLLs on Windows. 581660484SobrienWIN32LDFLAGS= 581760484SobrienWIN32LIBADD= 581860484Sobriencase "${host}" in 581960484Sobrien*-*-cygwin*) 582060484Sobrien if test "$enable_shared" = "yes"; then 582160484Sobrien WIN32LDFLAGS="-no-undefined" 582260484Sobrien WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" 582360484Sobrien fi 582460484Sobrien ;; 582589857Sobrien*-*-linux*) 582689857Sobrien # We borrow WIN32LIBADD so that the shared libbfd won't depend on 582789857Sobrien # libiberty.a. 582889857Sobrien case "${host}" in 582989857Sobrien mips*-*-linux*) 583089857Sobrien # Linux/MIPS uses PIC by default. 583189857Sobrien if test "$enable_shared" = "yes"; then 583289857Sobrien WIN32LIBADD="-L../libiberty -liberty" 583389857Sobrien fi 583489857Sobrien ;; 583589857Sobrien *) 583689857Sobrien PICFLAG= 583789857Sobrien eval `grep "^[ ]*PICFLAG[ ]*=" ../libiberty/Makefile | sed -e "s/[ ]*//g"` 583889857Sobrien if test -n "$PICFLAG"; then 583989857Sobrien WIN32LIBADD="-L../libiberty/pic -liberty" 584089857Sobrien fi 584189857Sobrien ;; 584289857Sobrien esac 584389857Sobrien ;; 584460484Sobrienesac 584560484Sobrien 584660484Sobrien 584760484Sobrien 584833965Sjdp# target stuff: 584933965Sjdp 585033965Sjdp# Canonicalize the secondary target names. 585133965Sjdpif test -n "$enable_targets" ; then 585233965Sjdp for targ in `echo $enable_targets | sed 's/,/ /g'` 585333965Sjdp do 585460484Sobrien result=`$ac_config_sub $targ 2>/dev/null` 585533965Sjdp if test -n "$result" ; then 585633965Sjdp canon_targets="$canon_targets $result" 585733965Sjdp else 585833965Sjdp # Allow targets that config.sub doesn't recognize, like "all". 585933965Sjdp canon_targets="$canon_targets $targ" 586033965Sjdp fi 586133965Sjdp done 586233965Sjdpfi 586333965Sjdp 586433965Sjdpall_targets=false 586533965Sjdpdefvec= 586633965Sjdpselvecs= 586733965Sjdpselarchs= 586833965SjdpTDEFINES= 586933965Sjdpfor targ in $target $canon_targets 587033965Sjdpdo 587133965Sjdp if test "x$targ" = "xall"; then 587233965Sjdp all_targets=true 587333965Sjdp else 587433965Sjdp . $srcdir/config.bfd 587533965Sjdp if test "x$targ" = "x$target"; then 587633965Sjdp defvec=$targ_defvec 587733965Sjdp fi 587833965Sjdp selvecs="$selvecs $targ_defvec $targ_selvecs" 587933965Sjdp selarchs="$selarchs $targ_archs" 588033965Sjdp TDEFINES="$TDEFINES $targ_cflags" 588133965Sjdp fi 588233965Sjdpdone 588333965Sjdp 588433965Sjdp 588533965Sjdp# This processing still needs to be done if we're to decide properly whether 588633965Sjdp# 64-bit support needs to be compiled in. Currently, it will be included if 588733965Sjdp# the default or any other explicitly requested target requires it; it 588833965Sjdp# will not be included on a 32-bit host if no 64-bit target is requested, and 588960484Sobrien# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is 589033965Sjdp# used. 589133965Sjdp 589233965Sjdp# uniq the default and selected vectors in all the configured targets. 589333965Sjdpf="" 589433965Sjdpfor i in $selvecs ; do 589533965Sjdp case " $f " in 589633965Sjdp *" $i "*) ;; 589733965Sjdp *) f="$f $i" ;; 589833965Sjdp esac 589933965Sjdpdone 590033965Sjdpselvecs="$f" 590133965Sjdp 590238889Sjdp 590333965Sjdp# uniq the architectures in all the configured targets. 590433965Sjdpf="" 590533965Sjdpfor i in $selarchs ; do 590633965Sjdp case " $f " in 590733965Sjdp *" $i "*) ;; 590833965Sjdp *) f="$f $i" ;; 590933965Sjdp esac 591033965Sjdpdone 591133965Sjdpselarchs="$f" 591233965Sjdp 591333965Sjdp# Target backend .o files. 591433965Sjdptb= 591533965Sjdp 591689857Sobrienelf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo" 591733965Sjdp 591833965Sjdpfor vec in $selvecs 591933965Sjdpdo 592089857Sobrien target_size=32 592133965Sjdp case "$vec" in 592233965Sjdp # This list is alphabetized to make it easy to compare 592389857Sobrien # with the two vector lists in targets.c. For the same reason, 592489857Sobrien # use one entry per line, even though this leads to long lines. 592538889Sjdp a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; 592638889Sjdp a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; 592738889Sjdp aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; 592838889Sjdp aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; 592938889Sjdp aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; 593038889Sjdp aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;; 593138889Sjdp aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;; 593238889Sjdp apollocoff_vec) tb="$tb coff-apollo.lo" ;; 593389857Sobrien arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 593489857Sobrien arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 593589857Sobrien arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 593689857Sobrien arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 593789857Sobrien armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 593889857Sobrien armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 593989857Sobrien armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; 594089857Sobrien armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 594189857Sobrien armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 594289857Sobrien armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 594389857Sobrien armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 594438889Sjdp b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; 594538889Sjdp b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; 594677298Sobrien bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; 594789857Sobrien bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; 594860484Sobrien bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; 594989857Sobrien bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 595038889Sjdp bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 595189857Sobrien bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; 595260484Sobrien bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; 595338889Sjdp bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 595477298Sobrien bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 595538889Sjdp bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 595660484Sobrien bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; 595760484Sobrien bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; 595889857Sobrien bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 595989857Sobrien bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 596089857Sobrien bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 596160484Sobrien bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; 596238889Sjdp bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; 596389857Sobrien bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 596438889Sjdp bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 596560484Sobrien bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; 596689857Sobrien bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; 596789857Sobrien bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; 596838889Sjdp bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 596989857Sobrien bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 597089857Sobrien bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;; 597189857Sobrien bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;; 597238889Sjdp bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 597338889Sjdp bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 597477298Sobrien bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;; 597577298Sobrien bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;; 597638889Sjdp bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 597738889Sjdp bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; 597860484Sobrien bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 597960484Sobrien bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 598038889Sjdp bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 598138889Sjdp bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 598289857Sobrien bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; 598360484Sobrien bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 598460484Sobrien bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 598538889Sjdp bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; 598638889Sjdp bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; 598789857Sobrien bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; 598838889Sjdp bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 598989857Sobrien bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 599038889Sjdp bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 599177298Sobrien bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 599289857Sobrien bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 599389857Sobrien bfd_elf32_shnbsd_vec) tb="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 599438889Sjdp bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; 599577298Sobrien bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 599677298Sobrien bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; 599789857Sobrien bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 599838889Sjdp bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 599989857Sobrien bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; 600089857Sobrien bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 600189857Sobrien bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 600289857Sobrien bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 600389857Sobrien bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 600489857Sobrien bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 600589857Sobrien bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; 600689857Sobrien bfd_elf64_ia64_aix_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; 600789857Sobrien bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; 600889857Sobrien bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; 600989857Sobrien bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; 601089857Sobrien bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 601189857Sobrien bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 601289857Sobrien bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; 601389857Sobrien bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 601489857Sobrien bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 601589857Sobrien bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; 601689857Sobrien bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;; 601789857Sobrien bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"; target_size=64 ;; 601889857Sobrien bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"; target_size=64 ;; 601989857Sobrien bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; 602089857Sobrien bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; 602189857Sobrien bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 602289857Sobrien bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 602389857Sobrien bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 602489857Sobrien bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 602560484Sobrien cisco_core_big_vec) tb="$tb cisco-core.lo" ;; 602660484Sobrien cisco_core_little_vec) tb="$tb cisco-core.lo" ;; 602777298Sobrien cris_aout_vec) tb="$tb aout-cris.lo" ;; 602889857Sobrien demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; 602938889Sjdp ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 603089857Sobrien ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 603138889Sjdp ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 603289857Sobrien ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; 603338889Sjdp go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; 603438889Sjdp go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; 603538889Sjdp h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; 603638889Sjdp h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; 603738889Sjdp host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 603838889Sjdp hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; 603938889Sjdp hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; 604038889Sjdp i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 604138889Sjdp i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 604238889Sjdp i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; 604338889Sjdp i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; 604438889Sjdp i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; 604538889Sjdp i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; 604638889Sjdp i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 604738889Sjdp i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; 604838889Sjdp i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; 604989857Sobrien i386msdos_vec) tb="$tb i386msdos.lo" ;; 605038889Sjdp i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; 605138889Sjdp i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; 605289857Sobrien i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; 605389857Sobrien i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; 605438889Sjdp i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; 605538889Sjdp icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 605638889Sjdp icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 605738889Sjdp ieee_vec) tb="$tb ieee.lo" ;; 605889857Sobrien m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; 605989857Sobrien m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; 606038889Sjdp m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; 606138889Sjdp m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; 606238889Sjdp m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; 606338889Sjdp m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; 606438889Sjdp m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; 606538889Sjdp m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; 606638889Sjdp m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; 606738889Sjdp m88kbcs_vec) tb="$tb coff-m88k.lo" ;; 606860484Sobrien mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 606960484Sobrien mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 607060484Sobrien mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 607160484Sobrien mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 607289857Sobrien mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; 607389857Sobrien mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; 607438889Sjdp newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; 607589857Sobrien nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; 607638889Sjdp nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; 607789857Sobrien nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; 607838889Sjdp nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; 607989857Sobrien pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 608089857Sobrien pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 608189857Sobrien pdp11_aout_vec) tb="$tb pdp11.lo" ;; 608289857Sobrien pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; 608389857Sobrien ppcboot_vec) tb="$tb ppcboot.lo" ;; 608438889Sjdp riscix_vec) tb="$tb aout32.lo riscix.lo" ;; 608589857Sobrien rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo"; target_size=64 ;; 608638889Sjdp rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; 608789857Sobrien shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 608838889Sjdp shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 608989857Sobrien shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 609038889Sjdp shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 609177298Sobrien shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; 609277298Sobrien shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; 609338889Sjdp som_vec) tb="$tb som.lo" ;; 609489857Sobrien sparccoff_vec) tb="$tb coff-sparc.lo" ;; 609538889Sjdp sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; 609638889Sjdp sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; 609738889Sjdp sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; 609838889Sjdp sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; 609938889Sjdp sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; 610038889Sjdp srec_vec) tb="$tb srec.lo" ;; 610138889Sjdp sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; 610238889Sjdp symbolsrec_vec) tb="$tb srec.lo" ;; 610338889Sjdp tekhex_vec) tb="$tb tekhex.lo" ;; 610438889Sjdp tic30_aout_vec) tb="$tb aout-tic30.lo" ;; 610538889Sjdp tic30_coff_vec) tb="$tb coff-tic30.lo" ;; 610689857Sobrien tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; 610777298Sobrien tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; 610889857Sobrien tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; 610977298Sobrien tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; 611089857Sobrien tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; 611177298Sobrien tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; 611260484Sobrien tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; 611360484Sobrien versados_vec) tb="$tb versados.lo" ;; 611489857Sobrien vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; 611560484Sobrien vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; 611660484Sobrien w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; 611738889Sjdp we32kcoff_vec) tb="$tb coff-we32k.lo" ;; 611838889Sjdp z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; 611933965Sjdp 612033965Sjdp "") ;; 612133965Sjdp *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;; 612233965Sjdp esac 612389857Sobrien 612489857Sobrien if test ${target_size} = 64; then 612589857Sobrien target64=true 612689857Sobrien fi 612789857Sobrien if test x"${vec}" = x"${defvec}"; then 612889857Sobrien bfd_default_target_size=${target_size} 612989857Sobrien fi 613033965Sjdpdone 613133965Sjdp 613233965Sjdp# Target architecture .o files. 613333965Sjdp# A couple of CPUs use shorter file names to avoid problems on DOS 613433965Sjdp# filesystems. 613538889Sjdpta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 613633965Sjdp 613733965Sjdp# Weed out duplicate .o files. 613833965Sjdpf="" 613933965Sjdpfor i in $tb ; do 614033965Sjdp case " $f " in 614133965Sjdp *" $i "*) ;; 614233965Sjdp *) f="$f $i" ;; 614333965Sjdp esac 614433965Sjdpdone 614533965Sjdptb="$f" 614633965Sjdp 614733965Sjdpf="" 614833965Sjdpfor i in $ta ; do 614933965Sjdp case " $f " in 615033965Sjdp *" $i "*) ;; 615133965Sjdp *) f="$f $i" ;; 615233965Sjdp esac 615333965Sjdpdone 615433965Sjdpta="$f" 615533965Sjdp 615633965Sjdpbfd_backends="$tb" 615733965Sjdpbfd_machines="$ta" 615833965Sjdp 615933965Sjdpif test x${all_targets} = xtrue ; then 616033965Sjdp bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 616133965Sjdp bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 616233965Sjdp selvecs= 616333965Sjdp havevecs= 616433965Sjdp selarchs= 616533965Sjdpelse # all_targets is true 616633965Sjdp # Only set these if they will be nonempty, for the clever echo. 616733965Sjdp havevecs= 616833965Sjdp test -n "$selvecs" && 616933965Sjdp havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 617033965Sjdp test -n "$selvecs" && 617133965Sjdp selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 617233965Sjdp test -n "$selarchs" && 617333965Sjdp selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 617433965Sjdpfi # all_targets is true 617533965Sjdp 617633965Sjdpcase ${host64}-${target64}-${want64} in 617733965Sjdp *true*) 617833965Sjdp wordsize=64 617989857Sobrien bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)' 618033965Sjdp all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 618133965Sjdp if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then 618233965Sjdp echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2 618333965Sjdp echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2 618433965Sjdp fi 618589857Sobrien if test -n "$GCC" ; then 618689857Sobrien bad_64bit_gcc=no; 618789857Sobrien echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6 618889857Sobrienecho "configure:6189: checking for gcc version with buggy 64-bit support" >&5 618989857Sobrien # Add more tests for gcc versions with non-working 64-bit support here. 619089857Sobrien cat > conftest.$ac_ext <<EOF 619189857Sobrien#line 6192 "configure" 619289857Sobrien#include "confdefs.h" 619389857Sobrien:__GNUC__:__GNUC_MINOR__:__i386__: 619489857SobrienEOF 619589857Sobrienif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 619689857Sobrien egrep ": 2 : 91 : 1 :" >/dev/null 2>&1; then 619789857Sobrien rm -rf conftest* 619889857Sobrien bad_64bit_gcc=yes; 619989857Sobrien echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6 620089857Sobrienelse 620189857Sobrien rm -rf conftest* 620289857Sobrien echo "$ac_t""no" 1>&6 620389857Sobrienfi 620489857Sobrienrm -f conftest* 620589857Sobrien 620689857Sobrien if test $bad_64bit_gcc = yes ; then 620789857Sobrien { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; } 620889857Sobrien fi 620989857Sobrien fi 621033965Sjdp ;; 621133965Sjdp false-false-false) 621233965Sjdp wordsize=32 621389857Sobrien bfd_libs='$(BFD32_LIBS)' 621433965Sjdp all_backends='$(BFD32_BACKENDS)' 621533965Sjdp ;; 621633965Sjdpesac 621733965Sjdp 621833965Sjdp 621933965Sjdp 622033965Sjdp 622133965Sjdp 622233965Sjdp 622389857Sobrien 622489857Sobrien 622533965Sjdptdefaults="" 622633965Sjdptest -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 622733965Sjdptest -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 622833965Sjdptest -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 622933965Sjdptest -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" 623033965Sjdp 623133965Sjdp 623233965Sjdpfor ac_hdr in unistd.h 623333965Sjdpdo 623433965Sjdpac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 623533965Sjdpecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 623689857Sobrienecho "configure:6237: checking for $ac_hdr" >&5 623733965Sjdpif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 623833965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 623933965Sjdpelse 624033965Sjdp cat > conftest.$ac_ext <<EOF 624189857Sobrien#line 6242 "configure" 624233965Sjdp#include "confdefs.h" 624333965Sjdp#include <$ac_hdr> 624433965SjdpEOF 624533965Sjdpac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 624689857Sobrien{ (eval echo configure:6247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 624760484Sobrienac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 624833965Sjdpif test -z "$ac_err"; then 624933965Sjdp rm -rf conftest* 625033965Sjdp eval "ac_cv_header_$ac_safe=yes" 625133965Sjdpelse 625233965Sjdp echo "$ac_err" >&5 625333965Sjdp echo "configure: failed program was:" >&5 625433965Sjdp cat conftest.$ac_ext >&5 625533965Sjdp rm -rf conftest* 625633965Sjdp eval "ac_cv_header_$ac_safe=no" 625733965Sjdpfi 625833965Sjdprm -f conftest* 625933965Sjdpfi 626033965Sjdpif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 626133965Sjdp echo "$ac_t""yes" 1>&6 626233965Sjdp ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 626333965Sjdp cat >> confdefs.h <<EOF 626433965Sjdp#define $ac_tr_hdr 1 626533965SjdpEOF 626633965Sjdp 626733965Sjdpelse 626833965Sjdp echo "$ac_t""no" 1>&6 626933965Sjdpfi 627033965Sjdpdone 627133965Sjdp 627233965Sjdpfor ac_func in getpagesize 627333965Sjdpdo 627433965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 627589857Sobrienecho "configure:6276: checking for $ac_func" >&5 627633965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 627733965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 627833965Sjdpelse 627933965Sjdp cat > conftest.$ac_ext <<EOF 628089857Sobrien#line 6281 "configure" 628133965Sjdp#include "confdefs.h" 628233965Sjdp/* System header to define __stub macros and hopefully few prototypes, 628333965Sjdp which can conflict with char $ac_func(); below. */ 628433965Sjdp#include <assert.h> 628533965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 628633965Sjdp/* We use char because int might match the return type of a gcc2 628733965Sjdp builtin and then its argument prototype would still apply. */ 628833965Sjdpchar $ac_func(); 628933965Sjdp 629033965Sjdpint main() { 629133965Sjdp 629233965Sjdp/* The GNU C library defines this for functions which it implements 629333965Sjdp to always fail with ENOSYS. Some functions are actually named 629433965Sjdp something starting with __ and the normal name is an alias. */ 629533965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 629633965Sjdpchoke me 629733965Sjdp#else 629833965Sjdp$ac_func(); 629933965Sjdp#endif 630033965Sjdp 630133965Sjdp; return 0; } 630233965SjdpEOF 630389857Sobrienif { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 630433965Sjdp rm -rf conftest* 630533965Sjdp eval "ac_cv_func_$ac_func=yes" 630633965Sjdpelse 630733965Sjdp echo "configure: failed program was:" >&5 630833965Sjdp cat conftest.$ac_ext >&5 630933965Sjdp rm -rf conftest* 631033965Sjdp eval "ac_cv_func_$ac_func=no" 631133965Sjdpfi 631233965Sjdprm -f conftest* 631333965Sjdpfi 631433965Sjdp 631533965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 631633965Sjdp echo "$ac_t""yes" 1>&6 631733965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 631833965Sjdp cat >> confdefs.h <<EOF 631933965Sjdp#define $ac_tr_func 1 632033965SjdpEOF 632133965Sjdp 632233965Sjdpelse 632333965Sjdp echo "$ac_t""no" 1>&6 632433965Sjdpfi 632533965Sjdpdone 632633965Sjdp 632733965Sjdpecho $ac_n "checking for working mmap""... $ac_c" 1>&6 632889857Sobrienecho "configure:6329: checking for working mmap" >&5 632933965Sjdpif eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 633033965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 633133965Sjdpelse 633233965Sjdp if test "$cross_compiling" = yes; then 633333965Sjdp ac_cv_func_mmap_fixed_mapped=no 633433965Sjdpelse 633533965Sjdp cat > conftest.$ac_ext <<EOF 633689857Sobrien#line 6337 "configure" 633733965Sjdp#include "confdefs.h" 633833965Sjdp 633933965Sjdp/* Thanks to Mike Haertel and Jim Avera for this test. 634033965Sjdp Here is a matrix of mmap possibilities: 634133965Sjdp mmap private not fixed 634233965Sjdp mmap private fixed at somewhere currently unmapped 634333965Sjdp mmap private fixed at somewhere already mapped 634433965Sjdp mmap shared not fixed 634533965Sjdp mmap shared fixed at somewhere currently unmapped 634633965Sjdp mmap shared fixed at somewhere already mapped 634733965Sjdp For private mappings, we should verify that changes cannot be read() 634833965Sjdp back from the file, nor mmap's back from the file at a different 634933965Sjdp address. (There have been systems where private was not correctly 635033965Sjdp implemented like the infamous i386 svr4.0, and systems where the 635133965Sjdp VM page cache was not coherent with the filesystem buffer cache 635233965Sjdp like early versions of FreeBSD and possibly contemporary NetBSD.) 635333965Sjdp For shared mappings, we should conversely verify that changes get 635433965Sjdp propogated back to all the places they're supposed to be. 635533965Sjdp 635633965Sjdp Grep wants private fixed already mapped. 635733965Sjdp The main things grep needs to know about mmap are: 635833965Sjdp * does it exist and is it safe to write into the mmap'd area 635933965Sjdp * how to use it (BSD variants) */ 636033965Sjdp#include <sys/types.h> 636133965Sjdp#include <fcntl.h> 636233965Sjdp#include <sys/mman.h> 636333965Sjdp 636433965Sjdp/* This mess was copied from the GNU getpagesize.h. */ 636533965Sjdp#ifndef HAVE_GETPAGESIZE 636677298Sobrien# ifdef HAVE_UNISTD_H 636777298Sobrien# include <unistd.h> 636877298Sobrien# endif 636933965Sjdp 637033965Sjdp/* Assume that all systems that can run configure have sys/param.h. */ 637133965Sjdp# ifndef HAVE_SYS_PARAM_H 637233965Sjdp# define HAVE_SYS_PARAM_H 1 637333965Sjdp# endif 637433965Sjdp 637533965Sjdp# ifdef _SC_PAGESIZE 637633965Sjdp# define getpagesize() sysconf(_SC_PAGESIZE) 637733965Sjdp# else /* no _SC_PAGESIZE */ 637833965Sjdp# ifdef HAVE_SYS_PARAM_H 637933965Sjdp# include <sys/param.h> 638033965Sjdp# ifdef EXEC_PAGESIZE 638133965Sjdp# define getpagesize() EXEC_PAGESIZE 638233965Sjdp# else /* no EXEC_PAGESIZE */ 638333965Sjdp# ifdef NBPG 638433965Sjdp# define getpagesize() NBPG * CLSIZE 638533965Sjdp# ifndef CLSIZE 638633965Sjdp# define CLSIZE 1 638733965Sjdp# endif /* no CLSIZE */ 638833965Sjdp# else /* no NBPG */ 638933965Sjdp# ifdef NBPC 639033965Sjdp# define getpagesize() NBPC 639133965Sjdp# else /* no NBPC */ 639233965Sjdp# ifdef PAGESIZE 639333965Sjdp# define getpagesize() PAGESIZE 639433965Sjdp# endif /* PAGESIZE */ 639533965Sjdp# endif /* no NBPC */ 639633965Sjdp# endif /* no NBPG */ 639733965Sjdp# endif /* no EXEC_PAGESIZE */ 639833965Sjdp# else /* no HAVE_SYS_PARAM_H */ 639933965Sjdp# define getpagesize() 8192 /* punt totally */ 640033965Sjdp# endif /* no HAVE_SYS_PARAM_H */ 640133965Sjdp# endif /* no _SC_PAGESIZE */ 640233965Sjdp 640333965Sjdp#endif /* no HAVE_GETPAGESIZE */ 640433965Sjdp 640533965Sjdp#ifdef __cplusplus 640633965Sjdpextern "C" { void *malloc(unsigned); } 640733965Sjdp#else 640833965Sjdpchar *malloc(); 640933965Sjdp#endif 641033965Sjdp 641133965Sjdpint 641233965Sjdpmain() 641333965Sjdp{ 641433965Sjdp char *data, *data2, *data3; 641533965Sjdp int i, pagesize; 641633965Sjdp int fd; 641733965Sjdp 641833965Sjdp pagesize = getpagesize(); 641933965Sjdp 642033965Sjdp /* 642133965Sjdp * First, make a file with some known garbage in it. 642233965Sjdp */ 642377298Sobrien data = malloc(pagesize); 642433965Sjdp if (!data) 642533965Sjdp exit(1); 642633965Sjdp for (i = 0; i < pagesize; ++i) 642733965Sjdp *(data + i) = rand(); 642833965Sjdp umask(0); 642933965Sjdp fd = creat("conftestmmap", 0600); 643033965Sjdp if (fd < 0) 643133965Sjdp exit(1); 643233965Sjdp if (write(fd, data, pagesize) != pagesize) 643333965Sjdp exit(1); 643433965Sjdp close(fd); 643533965Sjdp 643633965Sjdp /* 643733965Sjdp * Next, try to mmap the file at a fixed address which 643833965Sjdp * already has something else allocated at it. If we can, 643933965Sjdp * also make sure that we see the same garbage. 644033965Sjdp */ 644133965Sjdp fd = open("conftestmmap", O_RDWR); 644233965Sjdp if (fd < 0) 644333965Sjdp exit(1); 644477298Sobrien data2 = malloc(2 * pagesize); 644533965Sjdp if (!data2) 644633965Sjdp exit(1); 644733965Sjdp data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 644833965Sjdp if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 644933965Sjdp MAP_PRIVATE | MAP_FIXED, fd, 0L)) 645033965Sjdp exit(1); 645133965Sjdp for (i = 0; i < pagesize; ++i) 645233965Sjdp if (*(data + i) != *(data2 + i)) 645333965Sjdp exit(1); 645433965Sjdp 645533965Sjdp /* 645633965Sjdp * Finally, make sure that changes to the mapped area 645733965Sjdp * do not percolate back to the file as seen by read(). 645833965Sjdp * (This is a bug on some variants of i386 svr4.0.) 645933965Sjdp */ 646033965Sjdp for (i = 0; i < pagesize; ++i) 646133965Sjdp *(data2 + i) = *(data2 + i) + 1; 646277298Sobrien data3 = malloc(pagesize); 646333965Sjdp if (!data3) 646433965Sjdp exit(1); 646533965Sjdp if (read(fd, data3, pagesize) != pagesize) 646633965Sjdp exit(1); 646733965Sjdp for (i = 0; i < pagesize; ++i) 646833965Sjdp if (*(data + i) != *(data3 + i)) 646933965Sjdp exit(1); 647033965Sjdp close(fd); 647133965Sjdp unlink("conftestmmap"); 647233965Sjdp exit(0); 647333965Sjdp} 647433965Sjdp 647533965SjdpEOF 647689857Sobrienif { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 647733965Sjdpthen 647833965Sjdp ac_cv_func_mmap_fixed_mapped=yes 647933965Sjdpelse 648033965Sjdp echo "configure: failed program was:" >&5 648133965Sjdp cat conftest.$ac_ext >&5 648233965Sjdp rm -fr conftest* 648333965Sjdp ac_cv_func_mmap_fixed_mapped=no 648433965Sjdpfi 648533965Sjdprm -fr conftest* 648633965Sjdpfi 648733965Sjdp 648833965Sjdpfi 648933965Sjdp 649033965Sjdpecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 649133965Sjdpif test $ac_cv_func_mmap_fixed_mapped = yes; then 649233965Sjdp cat >> confdefs.h <<\EOF 649333965Sjdp#define HAVE_MMAP 1 649433965SjdpEOF 649533965Sjdp 649633965Sjdpfi 649733965Sjdp 649833965Sjdpfor ac_func in madvise mprotect 649933965Sjdpdo 650033965Sjdpecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 650189857Sobrienecho "configure:6502: checking for $ac_func" >&5 650233965Sjdpif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 650333965Sjdp echo $ac_n "(cached) $ac_c" 1>&6 650433965Sjdpelse 650533965Sjdp cat > conftest.$ac_ext <<EOF 650689857Sobrien#line 6507 "configure" 650733965Sjdp#include "confdefs.h" 650833965Sjdp/* System header to define __stub macros and hopefully few prototypes, 650933965Sjdp which can conflict with char $ac_func(); below. */ 651033965Sjdp#include <assert.h> 651133965Sjdp/* Override any gcc2 internal prototype to avoid an error. */ 651233965Sjdp/* We use char because int might match the return type of a gcc2 651333965Sjdp builtin and then its argument prototype would still apply. */ 651433965Sjdpchar $ac_func(); 651533965Sjdp 651633965Sjdpint main() { 651733965Sjdp 651833965Sjdp/* The GNU C library defines this for functions which it implements 651933965Sjdp to always fail with ENOSYS. Some functions are actually named 652033965Sjdp something starting with __ and the normal name is an alias. */ 652133965Sjdp#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 652233965Sjdpchoke me 652333965Sjdp#else 652433965Sjdp$ac_func(); 652533965Sjdp#endif 652633965Sjdp 652733965Sjdp; return 0; } 652833965SjdpEOF 652989857Sobrienif { (eval echo configure:6530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 653033965Sjdp rm -rf conftest* 653133965Sjdp eval "ac_cv_func_$ac_func=yes" 653233965Sjdpelse 653333965Sjdp echo "configure: failed program was:" >&5 653433965Sjdp cat conftest.$ac_ext >&5 653533965Sjdp rm -rf conftest* 653633965Sjdp eval "ac_cv_func_$ac_func=no" 653733965Sjdpfi 653833965Sjdprm -f conftest* 653933965Sjdpfi 654033965Sjdp 654133965Sjdpif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 654233965Sjdp echo "$ac_t""yes" 1>&6 654333965Sjdp ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 654433965Sjdp cat >> confdefs.h <<EOF 654533965Sjdp#define $ac_tr_func 1 654633965SjdpEOF 654733965Sjdp 654833965Sjdpelse 654933965Sjdp echo "$ac_t""no" 1>&6 655033965Sjdpfi 655133965Sjdpdone 655233965Sjdp 655333965Sjdpcase ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 655433965Sjdp true+yes ) cat >> confdefs.h <<\EOF 655533965Sjdp#define USE_MMAP 1 655633965SjdpEOF 655733965Sjdp ;; 655833965Sjdpesac 655933965Sjdp 656033965Sjdprm -f doc/config.status 656133965Sjdptrap '' 1 2 15 656233965Sjdpcat > confcache <<\EOF 656333965Sjdp# This file is a shell script that caches the results of configure 656433965Sjdp# tests run on this system so they can be shared between configure 656533965Sjdp# scripts and configure runs. It is not useful on other systems. 656633965Sjdp# If it contains results you don't want to keep, you may remove or edit it. 656733965Sjdp# 656833965Sjdp# By default, configure uses ./config.cache as the cache file, 656933965Sjdp# creating it if it does not exist already. You can give configure 657033965Sjdp# the --cache-file=FILE option to use a different cache file; that is 657133965Sjdp# what configure does when it calls configure scripts in 657233965Sjdp# subdirectories, so they share the cache. 657333965Sjdp# Giving --cache-file=/dev/null disables caching, for debugging configure. 657433965Sjdp# config.status only pays attention to the cache file if you give it the 657533965Sjdp# --recheck option to rerun configure. 657633965Sjdp# 657733965SjdpEOF 657833965Sjdp# The following way of writing the cache mishandles newlines in values, 657933965Sjdp# but we know of no workaround that is simple, portable, and efficient. 658033965Sjdp# So, don't put newlines in cache variables' values. 658133965Sjdp# Ultrix sh set writes to stderr and can't be redirected directly, 658233965Sjdp# and sets the high bit in the cache file unless we assign to the vars. 658333965Sjdp(set) 2>&1 | 658460484Sobrien case `(ac_space=' '; set | grep ac_space) 2>&1` in 658533965Sjdp *ac_space=\ *) 658633965Sjdp # `set' does not quote correctly, so add quotes (double-quote substitution 658733965Sjdp # turns \\\\ into \\, and sed turns \\ into \). 658833965Sjdp sed -n \ 658933965Sjdp -e "s/'/'\\\\''/g" \ 659033965Sjdp -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 659133965Sjdp ;; 659233965Sjdp *) 659333965Sjdp # `set' quotes correctly as required by POSIX, so do not add quotes. 659433965Sjdp sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 659533965Sjdp ;; 659633965Sjdp esac >> confcache 659733965Sjdpif cmp -s $cache_file confcache; then 659833965Sjdp : 659933965Sjdpelse 660033965Sjdp if test -w $cache_file; then 660133965Sjdp echo "updating cache $cache_file" 660233965Sjdp cat confcache > $cache_file 660333965Sjdp else 660433965Sjdp echo "not updating unwritable cache $cache_file" 660533965Sjdp fi 660633965Sjdpfi 660733965Sjdprm -f confcache 660833965Sjdp 660933965Sjdptrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 661033965Sjdp 661133965Sjdptest "x$prefix" = xNONE && prefix=$ac_default_prefix 661233965Sjdp# Let make expand exec_prefix. 661333965Sjdptest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 661433965Sjdp 661533965Sjdp# Any assignment to VPATH causes Sun make to only execute 661633965Sjdp# the first set of double-colon rules, so remove it if not needed. 661733965Sjdp# If there is a colon in the path, we need to keep it. 661833965Sjdpif test "x$srcdir" = x.; then 661933965Sjdp ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 662033965Sjdpfi 662133965Sjdp 662233965Sjdptrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 662333965Sjdp 662433965SjdpDEFS=-DHAVE_CONFIG_H 662533965Sjdp 662633965Sjdp# Without the "./", some shells look in PATH for config.status. 662733965Sjdp: ${CONFIG_STATUS=./config.status} 662833965Sjdp 662933965Sjdpecho creating $CONFIG_STATUS 663033965Sjdprm -f $CONFIG_STATUS 663133965Sjdpcat > $CONFIG_STATUS <<EOF 663233965Sjdp#! /bin/sh 663333965Sjdp# Generated automatically by configure. 663433965Sjdp# Run this file to recreate the current configuration. 663533965Sjdp# This directory was configured as follows, 663633965Sjdp# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 663733965Sjdp# 663833965Sjdp# $0 $ac_configure_args 663933965Sjdp# 664033965Sjdp# Compiler output produced by configure, useful for debugging 664133965Sjdp# configure, is in ./config.log if it exists. 664233965Sjdp 664333965Sjdpac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 664433965Sjdpfor ac_option 664533965Sjdpdo 664633965Sjdp case "\$ac_option" in 664733965Sjdp -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 664833965Sjdp echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 664933965Sjdp exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 665033965Sjdp -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 665160484Sobrien echo "$CONFIG_STATUS generated by autoconf version 2.13" 665233965Sjdp exit 0 ;; 665333965Sjdp -help | --help | --hel | --he | --h) 665433965Sjdp echo "\$ac_cs_usage"; exit 0 ;; 665533965Sjdp *) echo "\$ac_cs_usage"; exit 1 ;; 665633965Sjdp esac 665733965Sjdpdone 665833965Sjdp 665933965Sjdpac_given_srcdir=$srcdir 666033965Sjdpac_given_INSTALL="$INSTALL" 666133965Sjdp 666260484Sobrientrap '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 666333965SjdpEOF 666433965Sjdpcat >> $CONFIG_STATUS <<EOF 666533965Sjdp 666633965Sjdp# Protect against being on the right side of a sed subst in config.status. 666733965Sjdpsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 666833965Sjdp s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 666933965Sjdp$ac_vpsub 667033965Sjdp$extrasub 667138889Sjdps%@SHELL@%$SHELL%g 667233965Sjdps%@CFLAGS@%$CFLAGS%g 667333965Sjdps%@CPPFLAGS@%$CPPFLAGS%g 667433965Sjdps%@CXXFLAGS@%$CXXFLAGS%g 667560484Sobriens%@FFLAGS@%$FFLAGS%g 667633965Sjdps%@DEFS@%$DEFS%g 667733965Sjdps%@LDFLAGS@%$LDFLAGS%g 667833965Sjdps%@LIBS@%$LIBS%g 667933965Sjdps%@exec_prefix@%$exec_prefix%g 668033965Sjdps%@prefix@%$prefix%g 668133965Sjdps%@program_transform_name@%$program_transform_name%g 668233965Sjdps%@bindir@%$bindir%g 668333965Sjdps%@sbindir@%$sbindir%g 668433965Sjdps%@libexecdir@%$libexecdir%g 668533965Sjdps%@datadir@%$datadir%g 668633965Sjdps%@sysconfdir@%$sysconfdir%g 668733965Sjdps%@sharedstatedir@%$sharedstatedir%g 668833965Sjdps%@localstatedir@%$localstatedir%g 668933965Sjdps%@libdir@%$libdir%g 669033965Sjdps%@includedir@%$includedir%g 669133965Sjdps%@oldincludedir@%$oldincludedir%g 669233965Sjdps%@infodir@%$infodir%g 669333965Sjdps%@mandir@%$mandir%g 669433965Sjdps%@host@%$host%g 669533965Sjdps%@host_alias@%$host_alias%g 669633965Sjdps%@host_cpu@%$host_cpu%g 669733965Sjdps%@host_vendor@%$host_vendor%g 669833965Sjdps%@host_os@%$host_os%g 669933965Sjdps%@target@%$target%g 670033965Sjdps%@target_alias@%$target_alias%g 670133965Sjdps%@target_cpu@%$target_cpu%g 670233965Sjdps%@target_vendor@%$target_vendor%g 670333965Sjdps%@target_os@%$target_os%g 670433965Sjdps%@build@%$build%g 670533965Sjdps%@build_alias@%$build_alias%g 670633965Sjdps%@build_cpu@%$build_cpu%g 670733965Sjdps%@build_vendor@%$build_vendor%g 670833965Sjdps%@build_os@%$build_os%g 670978828Sobriens%@CC@%$CC%g 671033965Sjdps%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 671160484Sobriens%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 671233965Sjdps%@INSTALL_DATA@%$INSTALL_DATA%g 671338889Sjdps%@PACKAGE@%$PACKAGE%g 671433965Sjdps%@VERSION@%$VERSION%g 671538889Sjdps%@ACLOCAL@%$ACLOCAL%g 671638889Sjdps%@AUTOCONF@%$AUTOCONF%g 671738889Sjdps%@AUTOMAKE@%$AUTOMAKE%g 671838889Sjdps%@AUTOHEADER@%$AUTOHEADER%g 671938889Sjdps%@MAKEINFO@%$MAKEINFO%g 672038889Sjdps%@SET_MAKE@%$SET_MAKE%g 672189857Sobriens%@bfd_version@%$bfd_version%g 672289857Sobriens%@bfd_version_date@%$bfd_version_date%g 672389857Sobriens%@bfd_version_string@%$bfd_version_string%g 672438889Sjdps%@AR@%$AR%g 672538889Sjdps%@RANLIB@%$RANLIB%g 672638889Sjdps%@LN_S@%$LN_S%g 672777298Sobriens%@OBJEXT@%$OBJEXT%g 672877298Sobriens%@EXEEXT@%$EXEEXT%g 672977298Sobriens%@STRIP@%$STRIP%g 673038889Sjdps%@LIBTOOL@%$LIBTOOL%g 673177298Sobriens%@WARN_CFLAGS@%$WARN_CFLAGS%g 673260484Sobriens%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g 673360484Sobriens%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g 673438889Sjdps%@MAINT@%$MAINT%g 673560484Sobriens%@CPP@%$CPP%g 673660484Sobriens%@ALLOCA@%$ALLOCA%g 673760484Sobriens%@USE_NLS@%$USE_NLS%g 673860484Sobriens%@MSGFMT@%$MSGFMT%g 673960484Sobriens%@GMSGFMT@%$GMSGFMT%g 674060484Sobriens%@XGETTEXT@%$XGETTEXT%g 674160484Sobriens%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g 674260484Sobriens%@CATALOGS@%$CATALOGS%g 674360484Sobriens%@CATOBJEXT@%$CATOBJEXT%g 674460484Sobriens%@DATADIRNAME@%$DATADIRNAME%g 674560484Sobriens%@GMOFILES@%$GMOFILES%g 674660484Sobriens%@INSTOBJEXT@%$INSTOBJEXT%g 674760484Sobriens%@INTLDEPS@%$INTLDEPS%g 674860484Sobriens%@INTLLIBS@%$INTLLIBS%g 674960484Sobriens%@INTLOBJS@%$INTLOBJS%g 675060484Sobriens%@POFILES@%$POFILES%g 675160484Sobriens%@POSUB@%$POSUB%g 675260484Sobriens%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g 675360484Sobriens%@GT_NO@%$GT_NO%g 675460484Sobriens%@GT_YES@%$GT_YES%g 675560484Sobriens%@MKINSTALLDIRS@%$MKINSTALLDIRS%g 675660484Sobriens%@l@%$l%g 675738889Sjdps%@HDEFINES@%$HDEFINES%g 675833965Sjdps%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g 675933965Sjdps%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g 676033965Sjdps%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g 676133965Sjdps%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g 676233965Sjdps%@CC_FOR_BUILD@%$CC_FOR_BUILD%g 676338889Sjdps%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g 676433965Sjdps%@COREFILE@%$COREFILE%g 676533965Sjdps%@COREFLAG@%$COREFLAG%g 676660484Sobriens%@WIN32LDFLAGS@%$WIN32LDFLAGS%g 676760484Sobriens%@WIN32LIBADD@%$WIN32LIBADD%g 676833965Sjdps%@TDEFINES@%$TDEFINES%g 676933965Sjdps%@wordsize@%$wordsize%g 677089857Sobriens%@bfd_libs@%$bfd_libs%g 677133965Sjdps%@all_backends@%$all_backends%g 677233965Sjdps%@bfd_backends@%$bfd_backends%g 677333965Sjdps%@bfd_machines@%$bfd_machines%g 677489857Sobriens%@bfd_default_target_size@%$bfd_default_target_size%g 677533965Sjdps%@tdefaults@%$tdefaults%g 677633965Sjdp 677733965SjdpCEOF 677833965SjdpEOF 677933965Sjdp 678033965Sjdpcat >> $CONFIG_STATUS <<\EOF 678133965Sjdp 678233965Sjdp# Split the substitutions into bite-sized pieces for seds with 678333965Sjdp# small command number limits, like on Digital OSF/1 and HP-UX. 678433965Sjdpac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 678533965Sjdpac_file=1 # Number of current file. 678633965Sjdpac_beg=1 # First line for current file. 678733965Sjdpac_end=$ac_max_sed_cmds # Line after last line for current file. 678833965Sjdpac_more_lines=: 678933965Sjdpac_sed_cmds="" 679033965Sjdpwhile $ac_more_lines; do 679133965Sjdp if test $ac_beg -gt 1; then 679233965Sjdp sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 679333965Sjdp else 679433965Sjdp sed "${ac_end}q" conftest.subs > conftest.s$ac_file 679533965Sjdp fi 679633965Sjdp if test ! -s conftest.s$ac_file; then 679733965Sjdp ac_more_lines=false 679833965Sjdp rm -f conftest.s$ac_file 679933965Sjdp else 680033965Sjdp if test -z "$ac_sed_cmds"; then 680133965Sjdp ac_sed_cmds="sed -f conftest.s$ac_file" 680233965Sjdp else 680333965Sjdp ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 680433965Sjdp fi 680533965Sjdp ac_file=`expr $ac_file + 1` 680633965Sjdp ac_beg=$ac_end 680733965Sjdp ac_end=`expr $ac_end + $ac_max_sed_cmds` 680833965Sjdp fi 680933965Sjdpdone 681033965Sjdpif test -z "$ac_sed_cmds"; then 681133965Sjdp ac_sed_cmds=cat 681233965Sjdpfi 681333965SjdpEOF 681433965Sjdp 681533965Sjdpcat >> $CONFIG_STATUS <<EOF 681633965Sjdp 681760484SobrienCONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"} 681833965SjdpEOF 681933965Sjdpcat >> $CONFIG_STATUS <<\EOF 682033965Sjdpfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 682133965Sjdp # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 682233965Sjdp case "$ac_file" in 682333965Sjdp *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 682433965Sjdp ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 682533965Sjdp *) ac_file_in="${ac_file}.in" ;; 682633965Sjdp esac 682733965Sjdp 682833965Sjdp # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 682933965Sjdp 683033965Sjdp # Remove last slash and all that follows it. Not all systems have dirname. 683133965Sjdp ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 683233965Sjdp if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 683333965Sjdp # The file is in a subdirectory. 683433965Sjdp test ! -d "$ac_dir" && mkdir "$ac_dir" 683533965Sjdp ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 683633965Sjdp # A "../" for each directory in $ac_dir_suffix. 683733965Sjdp ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 683833965Sjdp else 683933965Sjdp ac_dir_suffix= ac_dots= 684033965Sjdp fi 684133965Sjdp 684233965Sjdp case "$ac_given_srcdir" in 684333965Sjdp .) srcdir=. 684433965Sjdp if test -z "$ac_dots"; then top_srcdir=. 684533965Sjdp else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 684633965Sjdp /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 684733965Sjdp *) # Relative path. 684833965Sjdp srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 684933965Sjdp top_srcdir="$ac_dots$ac_given_srcdir" ;; 685033965Sjdp esac 685133965Sjdp 685233965Sjdp case "$ac_given_INSTALL" in 685333965Sjdp [/$]*) INSTALL="$ac_given_INSTALL" ;; 685433965Sjdp *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 685533965Sjdp esac 685633965Sjdp 685733965Sjdp echo creating "$ac_file" 685833965Sjdp rm -f "$ac_file" 685933965Sjdp configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 686033965Sjdp case "$ac_file" in 686133965Sjdp *Makefile*) ac_comsub="1i\\ 686233965Sjdp# $configure_input" ;; 686333965Sjdp *) ac_comsub= ;; 686433965Sjdp esac 686533965Sjdp 686633965Sjdp ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 686733965Sjdp sed -e "$ac_comsub 686833965Sjdps%@configure_input@%$configure_input%g 686933965Sjdps%@srcdir@%$srcdir%g 687033965Sjdps%@top_srcdir@%$top_srcdir%g 687133965Sjdps%@INSTALL@%$INSTALL%g 687233965Sjdp" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 687333965Sjdpfi; done 687433965Sjdprm -f conftest.s* 687533965Sjdp 687633965Sjdp# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 687733965Sjdp# NAME is the cpp macro being defined and VALUE is the value it is being given. 687833965Sjdp# 687933965Sjdp# ac_d sets the value in "#define NAME VALUE" lines. 688033965Sjdpac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 688133965Sjdpac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 688233965Sjdpac_dC='\3' 688333965Sjdpac_dD='%g' 688433965Sjdp# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 688533965Sjdpac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 688633965Sjdpac_uB='\([ ]\)%\1#\2define\3' 688733965Sjdpac_uC=' ' 688833965Sjdpac_uD='\4%g' 688933965Sjdp# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 689033965Sjdpac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 689133965Sjdpac_eB='$%\1#\2define\3' 689233965Sjdpac_eC=' ' 689333965Sjdpac_eD='%g' 689433965Sjdp 689533965Sjdpif test "${CONFIG_HEADERS+set}" != set; then 689633965SjdpEOF 689733965Sjdpcat >> $CONFIG_STATUS <<EOF 689833965Sjdp CONFIG_HEADERS="config.h:config.in" 689933965SjdpEOF 690033965Sjdpcat >> $CONFIG_STATUS <<\EOF 690133965Sjdpfi 690233965Sjdpfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 690333965Sjdp # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 690433965Sjdp case "$ac_file" in 690533965Sjdp *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 690633965Sjdp ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 690733965Sjdp *) ac_file_in="${ac_file}.in" ;; 690833965Sjdp esac 690933965Sjdp 691033965Sjdp echo creating $ac_file 691133965Sjdp 691233965Sjdp rm -f conftest.frag conftest.in conftest.out 691333965Sjdp ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 691433965Sjdp cat $ac_file_inputs > conftest.in 691533965Sjdp 691633965SjdpEOF 691733965Sjdp 691833965Sjdp# Transform confdefs.h into a sed script conftest.vals that substitutes 691933965Sjdp# the proper values into config.h.in to produce config.h. And first: 692033965Sjdp# Protect against being on the right side of a sed subst in config.status. 692133965Sjdp# Protect against being in an unquoted here document in config.status. 692233965Sjdprm -f conftest.vals 692333965Sjdpcat > conftest.hdr <<\EOF 692433965Sjdps/[\\&%]/\\&/g 692533965Sjdps%[\\$`]%\\&%g 692633965Sjdps%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 692733965Sjdps%ac_d%ac_u%gp 692833965Sjdps%ac_u%ac_e%gp 692933965SjdpEOF 693033965Sjdpsed -n -f conftest.hdr confdefs.h > conftest.vals 693133965Sjdprm -f conftest.hdr 693233965Sjdp 693333965Sjdp# This sed command replaces #undef with comments. This is necessary, for 693433965Sjdp# example, in the case of _POSIX_SOURCE, which is predefined and required 693533965Sjdp# on some systems where configure will not decide to define it. 693633965Sjdpcat >> conftest.vals <<\EOF 693733965Sjdps%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 693833965SjdpEOF 693933965Sjdp 694033965Sjdp# Break up conftest.vals because some shells have a limit on 694133965Sjdp# the size of here documents, and old seds have small limits too. 694233965Sjdp 694333965Sjdprm -f conftest.tail 694433965Sjdpwhile : 694533965Sjdpdo 694633965Sjdp ac_lines=`grep -c . conftest.vals` 694733965Sjdp # grep -c gives empty output for an empty file on some AIX systems. 694833965Sjdp if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 694933965Sjdp # Write a limited-size here document to conftest.frag. 695033965Sjdp echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 695133965Sjdp sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 695233965Sjdp echo 'CEOF 695333965Sjdp sed -f conftest.frag conftest.in > conftest.out 695433965Sjdp rm -f conftest.in 695533965Sjdp mv conftest.out conftest.in 695633965Sjdp' >> $CONFIG_STATUS 695733965Sjdp sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 695833965Sjdp rm -f conftest.vals 695933965Sjdp mv conftest.tail conftest.vals 696033965Sjdpdone 696133965Sjdprm -f conftest.vals 696233965Sjdp 696333965Sjdpcat >> $CONFIG_STATUS <<\EOF 696433965Sjdp rm -f conftest.frag conftest.h 696533965Sjdp echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 696633965Sjdp cat conftest.in >> conftest.h 696733965Sjdp rm -f conftest.in 696833965Sjdp if cmp -s $ac_file conftest.h 2>/dev/null; then 696933965Sjdp echo "$ac_file is unchanged" 697033965Sjdp rm -f conftest.h 697133965Sjdp else 697233965Sjdp # Remove last slash and all that follows it. Not all systems have dirname. 697333965Sjdp ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 697433965Sjdp if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 697533965Sjdp # The file is in a subdirectory. 697633965Sjdp test ! -d "$ac_dir" && mkdir "$ac_dir" 697733965Sjdp fi 697833965Sjdp rm -f $ac_file 697933965Sjdp mv conftest.h $ac_file 698033965Sjdp fi 698133965Sjdpfi; done 698233965Sjdp 698333965SjdpEOF 698433965Sjdpcat >> $CONFIG_STATUS <<EOF 698533965Sjdp 698638889Sjdp 698733965SjdpEOF 698833965Sjdpcat >> $CONFIG_STATUS <<\EOF 698938889Sjdptest -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 699078828Sobriensed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile 699133965Sjdpexit 0 699233965SjdpEOF 699333965Sjdpchmod +x $CONFIG_STATUS 699433965Sjdprm -fr confdefs* $ac_clean_files 699533965Sjdptest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 699633965Sjdp 699778828Sobrien 6998