configure revision 130562
195967Speter#! /bin/sh 295967Speter 395967Speter# Guess values for system-dependent variables and create Makefiles. 495967Speter# Generated automatically using autoconf version 2.13 595967Speter# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 695967Speter# 795967Speter# This configure script is free software; the Free Software Foundation 895967Speter# gives unlimited permission to copy, distribute and modify it. 995967Speter 1095967Speter# Defaults: 1195967Speterac_help= 1295967Speterac_default_prefix=/usr/local 1395967Speter# Any additions from configure.in: 1495967Speterac_help="$ac_help 1595967Speter --enable-shared[=PKGS] build shared libraries [default=yes]" 1695967Speterac_help="$ac_help 1795967Speter --enable-static[=PKGS] build static libraries [default=yes]" 1895967Speterac_help="$ac_help 1995967Speter --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 2095967Speterac_help="$ac_help 2195967Speter --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 2295967Speterac_help="$ac_help 2395967Speter --disable-libtool-lock avoid locking (might break parallel builds)" 2495967Speterac_help="$ac_help 2595967Speter --with-pic try to use only PIC/non-PIC objects [default=use both]" 2695967Speterac_help="$ac_help 2795967Speter --with-lib-path=dir1:dir2... set default LIB_PATH" 2895967Speterac_help="$ac_help 2995967Speter --enable-targets alternative target configurations" 3095967Speterac_help="$ac_help 3195967Speter --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)" 3295967Speterac_help="$ac_help 3395967Speter --with-sysroot[=DIR] Search for usr/lib et al within DIR." 3495967Speterac_help="$ac_help 3595967Speter --enable-build-warnings enable build-time compiler warnings if gcc is used" 3695967Speterac_help="$ac_help 3795967Speter --disable-nls do not use Native Language Support" 3895967Speterac_help="$ac_help 3995967Speter --with-included-gettext use the GNU gettext library included here" 4095967Speterac_help="$ac_help 4195967Speter --enable-maintainer-mode enable make rules and dependencies not useful 4295967Speter (and sometimes confusing) to the casual installer" 4395967Speter 4495967Speter# Initialize some variables set by options. 4595967Speter# The variables have the same names as the options, with 4695967Speter# dashes changed to underlines. 4795967Speterbuild=NONE 4895967Spetercache_file=./config.cache 4995967Speterexec_prefix=NONE 5095967Speterhost=NONE 5195967Speterno_create= 5295967Speternonopt=NONE 5395967Speterno_recursion= 5495967Speterprefix=NONE 5595967Speterprogram_prefix=NONE 5695967Speterprogram_suffix=NONE 5795967Speterprogram_transform_name=s,x,x, 5895967Spetersilent= 5995967Spetersite= 6095967Spetersitefile= 6195967Spetersrcdir= 6295967Spetertarget=NONE 6395967Speterverbose= 6495967Speterx_includes=NONE 6595967Speterx_libraries=NONE 6695967Speterbindir='${exec_prefix}/bin' 6795967Spetersbindir='${exec_prefix}/sbin' 6895967Speterlibexecdir='${exec_prefix}/libexec' 6995967Speterdatadir='${prefix}/share' 7095967Spetersysconfdir='${prefix}/etc' 7195967Spetersharedstatedir='${prefix}/com' 7295967Speterlocalstatedir='${prefix}/var' 7395967Speterlibdir='${exec_prefix}/lib' 7495967Speterincludedir='${prefix}/include' 7595967Speteroldincludedir='/usr/include' 7695967Speterinfodir='${prefix}/info' 7795967Spetermandir='${prefix}/man' 7895967Speter 7995967Speter# Initialize some other variables. 8095967Spetersubdirs= 8195967SpeterMFLAGS= MAKEFLAGS= 8295967SpeterSHELL=${CONFIG_SHELL-/bin/sh} 8395967Speter# Maximum number of lines to put in a shell here document. 8495967Speterac_max_here_lines=12 8595967Speter 8695967Speterac_prev= 8795967Speterfor ac_option 8895967Speterdo 8995967Speter 9095967Speter # If the previous option needs an argument, assign it. 9195967Speter if test -n "$ac_prev"; then 9295967Speter eval "$ac_prev=\$ac_option" 9395967Speter ac_prev= 9495967Speter continue 9595967Speter fi 9695967Speter 9795967Speter case "$ac_option" in 9895967Speter -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 9995967Speter *) ac_optarg= ;; 10095967Speter esac 10195967Speter 10295967Speter # Accept the important Cygnus configure options, so we can diagnose typos. 10395967Speter 10495967Speter case "$ac_option" in 10595967Speter 10695967Speter -bindir | --bindir | --bindi | --bind | --bin | --bi) 10795967Speter ac_prev=bindir ;; 10895967Speter -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 10995967Speter bindir="$ac_optarg" ;; 11095967Speter 11195967Speter -build | --build | --buil | --bui | --bu) 11295967Speter ac_prev=build ;; 11395967Speter -build=* | --build=* | --buil=* | --bui=* | --bu=*) 11495967Speter build="$ac_optarg" ;; 11595967Speter 11695967Speter -cache-file | --cache-file | --cache-fil | --cache-fi \ 11795967Speter | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 11895967Speter ac_prev=cache_file ;; 11995967Speter -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 12095967Speter | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 12195967Speter cache_file="$ac_optarg" ;; 12295967Speter 12395967Speter -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 12495967Speter ac_prev=datadir ;; 12595967Speter -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 12695967Speter | --da=*) 12795967Speter datadir="$ac_optarg" ;; 12895967Speter 12995967Speter -disable-* | --disable-*) 13095967Speter ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 13195967Speter # Reject names that are not valid shell variable names. 13295967Speter if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 13395967Speter { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 13495967Speter fi 13595967Speter ac_feature=`echo $ac_feature| sed 's/-/_/g'` 13695967Speter eval "enable_${ac_feature}=no" ;; 13795967Speter 13895967Speter -enable-* | --enable-*) 13995967Speter ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 14095967Speter # Reject names that are not valid shell variable names. 14195967Speter if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 14295967Speter { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 14395967Speter fi 14495967Speter ac_feature=`echo $ac_feature| sed 's/-/_/g'` 14595967Speter case "$ac_option" in 14695967Speter *=*) ;; 14795967Speter *) ac_optarg=yes ;; 14895967Speter esac 14995967Speter eval "enable_${ac_feature}='$ac_optarg'" ;; 15095967Speter 15195967Speter -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 15295967Speter | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 15395967Speter | --exec | --exe | --ex) 15495967Speter ac_prev=exec_prefix ;; 15595967Speter -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 15695967Speter | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 15795967Speter | --exec=* | --exe=* | --ex=*) 15895967Speter exec_prefix="$ac_optarg" ;; 15995967Speter 16095967Speter -gas | --gas | --ga | --g) 16195967Speter # Obsolete; use --with-gas. 16295967Speter with_gas=yes ;; 16395967Speter 16495967Speter -help | --help | --hel | --he) 16595967Speter # Omit some internal or obsolete options to make the list less imposing. 16695967Speter # This message is too long to be a string in the A/UX 3.1 sh. 16795967Speter cat << EOF 16895967SpeterUsage: configure [options] [host] 16995967SpeterOptions: [defaults in brackets after descriptions] 17095967SpeterConfiguration: 17195967Speter --cache-file=FILE cache test results in FILE 17295967Speter --help print this message 17395967Speter --no-create do not create output files 17495967Speter --quiet, --silent do not print \`checking...' messages 17595967Speter --site-file=FILE use FILE as the site file 17695967Speter --version print the version of autoconf that created configure 17795967SpeterDirectory and file names: 17895967Speter --prefix=PREFIX install architecture-independent files in PREFIX 17995967Speter [$ac_default_prefix] 18095967Speter --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 18195967Speter [same as prefix] 18295967Speter --bindir=DIR user executables in DIR [EPREFIX/bin] 18395967Speter --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 18495967Speter --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 18595967Speter --datadir=DIR read-only architecture-independent data in DIR 18695967Speter [PREFIX/share] 18795967Speter --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 18895967Speter --sharedstatedir=DIR modifiable architecture-independent data in DIR 18995967Speter [PREFIX/com] 19095967Speter --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 19195967Speter --libdir=DIR object code libraries in DIR [EPREFIX/lib] 19295967Speter --includedir=DIR C header files in DIR [PREFIX/include] 19395967Speter --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 19495967Speter --infodir=DIR info documentation in DIR [PREFIX/info] 19595967Speter --mandir=DIR man documentation in DIR [PREFIX/man] 19695967Speter --srcdir=DIR find the sources in DIR [configure dir or ..] 19795967Speter --program-prefix=PREFIX prepend PREFIX to installed program names 19895967Speter --program-suffix=SUFFIX append SUFFIX to installed program names 19995967Speter --program-transform-name=PROGRAM 20095967Speter run sed PROGRAM on installed program names 20195967SpeterEOF 20295967Speter cat << EOF 20395967SpeterHost type: 20495967Speter --build=BUILD configure for building on BUILD [BUILD=HOST] 20595967Speter --host=HOST configure for HOST [guessed] 20695967Speter --target=TARGET configure for TARGET [TARGET=HOST] 20795967SpeterFeatures and packages: 20895967Speter --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 20995967Speter --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 21095967Speter --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 21195967Speter --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 21295967Speter --x-includes=DIR X include files are in DIR 21395967Speter --x-libraries=DIR X library files are in DIR 21495967SpeterEOF 21595967Speter if test -n "$ac_help"; then 21695967Speter echo "--enable and --with options recognized:$ac_help" 21795967Speter fi 21895967Speter exit 0 ;; 21995967Speter 22095967Speter -host | --host | --hos | --ho) 22195967Speter ac_prev=host ;; 22295967Speter -host=* | --host=* | --hos=* | --ho=*) 22395967Speter host="$ac_optarg" ;; 22495967Speter 22595967Speter -includedir | --includedir | --includedi | --included | --include \ 22695967Speter | --includ | --inclu | --incl | --inc) 22795967Speter ac_prev=includedir ;; 22895967Speter -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 22995967Speter | --includ=* | --inclu=* | --incl=* | --inc=*) 23095967Speter includedir="$ac_optarg" ;; 23195967Speter 23295967Speter -infodir | --infodir | --infodi | --infod | --info | --inf) 23395967Speter ac_prev=infodir ;; 23495967Speter -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 23595967Speter infodir="$ac_optarg" ;; 23695967Speter 23795967Speter -libdir | --libdir | --libdi | --libd) 23895967Speter ac_prev=libdir ;; 23995967Speter -libdir=* | --libdir=* | --libdi=* | --libd=*) 24095967Speter libdir="$ac_optarg" ;; 24195967Speter 24295967Speter -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 24395967Speter | --libexe | --libex | --libe) 24495967Speter ac_prev=libexecdir ;; 24595967Speter -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 24695967Speter | --libexe=* | --libex=* | --libe=*) 24795967Speter libexecdir="$ac_optarg" ;; 24895967Speter 24995967Speter -localstatedir | --localstatedir | --localstatedi | --localstated \ 25095967Speter | --localstate | --localstat | --localsta | --localst \ 25195967Speter | --locals | --local | --loca | --loc | --lo) 25295967Speter ac_prev=localstatedir ;; 25395967Speter -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 25495967Speter | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 25595967Speter | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 25695967Speter localstatedir="$ac_optarg" ;; 25795967Speter 25895967Speter -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 25995967Speter ac_prev=mandir ;; 26095967Speter -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 26195967Speter mandir="$ac_optarg" ;; 26295967Speter 26395967Speter -nfp | --nfp | --nf) 26495967Speter # Obsolete; use --without-fp. 26595967Speter with_fp=no ;; 26695967Speter 26795967Speter -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 26895967Speter | --no-cr | --no-c) 26995967Speter no_create=yes ;; 27095967Speter 27195967Speter -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 27295967Speter | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 27395967Speter no_recursion=yes ;; 27495967Speter 27595967Speter -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 27695967Speter | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 27795967Speter | --oldin | --oldi | --old | --ol | --o) 27895967Speter ac_prev=oldincludedir ;; 27995967Speter -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 28095967Speter | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 28195967Speter | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 28295967Speter oldincludedir="$ac_optarg" ;; 28395967Speter 28495967Speter -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 28595967Speter ac_prev=prefix ;; 28695967Speter -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 28795967Speter prefix="$ac_optarg" ;; 28895967Speter 28995967Speter -program-prefix | --program-prefix | --program-prefi | --program-pref \ 29095967Speter | --program-pre | --program-pr | --program-p) 29195967Speter ac_prev=program_prefix ;; 29295967Speter -program-prefix=* | --program-prefix=* | --program-prefi=* \ 29395967Speter | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 29495967Speter program_prefix="$ac_optarg" ;; 29595967Speter 29695967Speter -program-suffix | --program-suffix | --program-suffi | --program-suff \ 29795967Speter | --program-suf | --program-su | --program-s) 29895967Speter ac_prev=program_suffix ;; 29995967Speter -program-suffix=* | --program-suffix=* | --program-suffi=* \ 30095967Speter | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 30195967Speter program_suffix="$ac_optarg" ;; 30295967Speter 30395967Speter -program-transform-name | --program-transform-name \ 30495967Speter | --program-transform-nam | --program-transform-na \ 30595967Speter | --program-transform-n | --program-transform- \ 30695967Speter | --program-transform | --program-transfor \ 30795967Speter | --program-transfo | --program-transf \ 30895967Speter | --program-trans | --program-tran \ 30995967Speter | --progr-tra | --program-tr | --program-t) 31095967Speter ac_prev=program_transform_name ;; 31195967Speter -program-transform-name=* | --program-transform-name=* \ 31295967Speter | --program-transform-nam=* | --program-transform-na=* \ 31395967Speter | --program-transform-n=* | --program-transform-=* \ 31495967Speter | --program-transform=* | --program-transfor=* \ 31595967Speter | --program-transfo=* | --program-transf=* \ 31695967Speter | --program-trans=* | --program-tran=* \ 31795967Speter | --progr-tra=* | --program-tr=* | --program-t=*) 31895967Speter program_transform_name="$ac_optarg" ;; 31995967Speter 32095967Speter -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 32195967Speter | -silent | --silent | --silen | --sile | --sil) 32295967Speter silent=yes ;; 32395967Speter 32495967Speter -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 32595967Speter ac_prev=sbindir ;; 32695967Speter -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 32795967Speter | --sbi=* | --sb=*) 32895967Speter sbindir="$ac_optarg" ;; 32995967Speter 33095967Speter -sharedstatedir | --sharedstatedir | --sharedstatedi \ 33195967Speter | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 33295967Speter | --sharedst | --shareds | --shared | --share | --shar \ 33395967Speter | --sha | --sh) 33495967Speter ac_prev=sharedstatedir ;; 33595967Speter -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 33695967Speter | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 33795967Speter | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 33895967Speter | --sha=* | --sh=*) 33995967Speter sharedstatedir="$ac_optarg" ;; 34095967Speter 34195967Speter -site | --site | --sit) 34295967Speter ac_prev=site ;; 34395967Speter -site=* | --site=* | --sit=*) 34495967Speter site="$ac_optarg" ;; 34595967Speter 34695967Speter -site-file | --site-file | --site-fil | --site-fi | --site-f) 34795967Speter ac_prev=sitefile ;; 34895967Speter -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) 34995967Speter sitefile="$ac_optarg" ;; 35095967Speter 35195967Speter -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 35295967Speter ac_prev=srcdir ;; 35395967Speter -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 35495967Speter srcdir="$ac_optarg" ;; 35595967Speter 35695967Speter -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 35795967Speter | --syscon | --sysco | --sysc | --sys | --sy) 35895967Speter ac_prev=sysconfdir ;; 35995967Speter -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 36095967Speter | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 36195967Speter sysconfdir="$ac_optarg" ;; 36295967Speter 36395967Speter -target | --target | --targe | --targ | --tar | --ta | --t) 36495967Speter ac_prev=target ;; 36595967Speter -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 36695967Speter target="$ac_optarg" ;; 36795967Speter 36895967Speter -v | -verbose | --verbose | --verbos | --verbo | --verb) 36995967Speter verbose=yes ;; 37095967Speter 37195967Speter -version | --version | --versio | --versi | --vers) 37295967Speter echo "configure generated by autoconf version 2.13" 37395967Speter exit 0 ;; 37495967Speter 37595967Speter -with-* | --with-*) 37695967Speter ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 37795967Speter # Reject names that are not valid shell variable names. 37895967Speter if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 37995967Speter { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 38095967Speter fi 38195967Speter ac_package=`echo $ac_package| sed 's/-/_/g'` 38295967Speter case "$ac_option" in 38395967Speter *=*) ;; 38495967Speter *) ac_optarg=yes ;; 38595967Speter esac 38695967Speter eval "with_${ac_package}='$ac_optarg'" ;; 38795967Speter 38895967Speter -without-* | --without-*) 38995967Speter ac_package=`echo $ac_option|sed -e 's/-*without-//'` 39095967Speter # Reject names that are not valid shell variable names. 39195967Speter if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 39295967Speter { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 39395967Speter fi 39495967Speter ac_package=`echo $ac_package| sed 's/-/_/g'` 39595967Speter eval "with_${ac_package}=no" ;; 39695967Speter 39795967Speter --x) 39895967Speter # Obsolete; use --with-x. 39995967Speter with_x=yes ;; 40095967Speter 40195967Speter -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 40295967Speter | --x-incl | --x-inc | --x-in | --x-i) 40395967Speter ac_prev=x_includes ;; 40495967Speter -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 40595967Speter | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 40695967Speter x_includes="$ac_optarg" ;; 40795967Speter 40895967Speter -x-libraries | --x-libraries | --x-librarie | --x-librari \ 40995967Speter | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 41095967Speter ac_prev=x_libraries ;; 41195967Speter -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 41295967Speter | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 41395967Speter x_libraries="$ac_optarg" ;; 41495967Speter 41595967Speter -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 41695967Speter ;; 41795967Speter 41895967Speter *) 41995967Speter if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 42095967Speter echo "configure: warning: $ac_option: invalid host type" 1>&2 42195967Speter fi 42295967Speter if test "x$nonopt" != xNONE; then 42395967Speter { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 42495967Speter fi 42595967Speter nonopt="$ac_option" 42695967Speter ;; 42795967Speter 42895967Speter esac 42995967Speterdone 43095967Speter 43195967Speterif test -n "$ac_prev"; then 43295967Speter { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 43395967Speterfi 43495967Speter 43595967Spetertrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 43695967Speter 43795967Speter# File descriptor usage: 43895967Speter# 0 standard input 43995967Speter# 1 file creation 44095967Speter# 2 errors and warnings 44195967Speter# 3 some systems may open it to /dev/tty 44295967Speter# 4 used on the Kubota Titan 44395967Speter# 6 checking for... messages and results 44495967Speter# 5 compiler messages saved in config.log 44595967Speterif test "$silent" = yes; then 44695967Speter exec 6>/dev/null 44795967Speterelse 44895967Speter exec 6>&1 44995967Speterfi 45095967Speterexec 5>./config.log 45195967Speter 45295967Speterecho "\ 45395967SpeterThis file contains any messages produced by compilers while 45495967Speterrunning configure, to aid debugging if configure makes a mistake. 45595967Speter" 1>&5 45695967Speter 45795967Speter# Strip out --no-create and --no-recursion so they do not pile up. 45895967Speter# Also quote any args containing shell metacharacters. 45995967Speterac_configure_args= 46095967Speterfor ac_arg 46195967Speterdo 46295967Speter case "$ac_arg" in 46395967Speter -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 46495967Speter | --no-cr | --no-c) ;; 46595967Speter -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 46695967Speter | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 46795967Speter *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 46895967Speter ac_configure_args="$ac_configure_args '$ac_arg'" ;; 46995967Speter *) ac_configure_args="$ac_configure_args $ac_arg" ;; 47095967Speter esac 47195967Speterdone 47295967Speter 47395967Speter# NLS nuisances. 47495967Speter# Only set these to C if already set. These must not be set unconditionally 47595967Speter# because not all systems understand e.g. LANG=C (notably SCO). 47695967Speter# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 47795967Speter# Non-C LC_CTYPE values break the ctype check. 47895967Speterif test "${LANG+set}" = set; then LANG=C; export LANG; fi 47995967Speterif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 48095967Speterif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 48195967Speterif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 48295967Speter 48395967Speter# confdefs.h avoids OS command line length limits that DEFS can exceed. 48495967Speterrm -rf conftest* confdefs.h 48595967Speter# AIX cpp loses on an empty file, so make sure it contains at least a newline. 48695967Speterecho > confdefs.h 48795967Speter 48895967Speter# A filename unique to this package, relative to the directory that 48995967Speter# configure is in, which we can look for to find out if srcdir is correct. 49095967Speterac_unique_file=ldmain.c 49195967Speter 49295967Speter# Find the source files, if location was not specified. 49395967Speterif test -z "$srcdir"; then 49495967Speter ac_srcdir_defaulted=yes 49595967Speter # Try the directory containing this script, then its parent. 49695967Speter ac_prog=$0 49795967Speter ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 49895967Speter test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 49995967Speter srcdir=$ac_confdir 50095967Speter if test ! -r $srcdir/$ac_unique_file; then 50195967Speter srcdir=.. 50295967Speter fi 50395967Speterelse 50495967Speter ac_srcdir_defaulted=no 50595967Speterfi 50695967Speterif test ! -r $srcdir/$ac_unique_file; then 50795967Speter if test "$ac_srcdir_defaulted" = yes; then 50895967Speter { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 50995967Speter else 51095967Speter { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 51195967Speter fi 51295967Speterfi 51395967Spetersrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 51495967Speter 51595967Speter# Prefer explicitly selected file to automatically selected ones. 51695967Speterif test -z "$sitefile"; then 51795967Speter if test -z "$CONFIG_SITE"; then 51895967Speter if test "x$prefix" != xNONE; then 51995967Speter CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 52095967Speter else 52195967Speter CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 52295967Speter fi 52395967Speter fi 52495967Speterelse 52595967Speter CONFIG_SITE="$sitefile" 52695967Speterfi 52795967Speterfor ac_site_file in $CONFIG_SITE; do 52895967Speter if test -r "$ac_site_file"; then 52995967Speter echo "loading site script $ac_site_file" 53095967Speter . "$ac_site_file" 53195967Speter fi 53295967Speterdone 53395967Speter 53495967Speterif test -r "$cache_file"; then 53595967Speter echo "loading cache $cache_file" 53695967Speter . $cache_file 53795967Speterelse 53895967Speter echo "creating cache $cache_file" 53995967Speter > $cache_file 54095967Speterfi 54195967Speter 54295967Speterac_ext=c 54395967Speter# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 54495967Speterac_cpp='$CPP $CPPFLAGS' 54595967Speterac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 54695967Speterac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 54795967Spetercross_compiling=$ac_cv_prog_cc_cross 54895967Speter 54995967Speterac_exeext= 55095967Speterac_objext=o 55195967Speterif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 55295967Speter # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 55395967Speter if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 55495967Speter ac_n= ac_c=' 55595967Speter' ac_t=' ' 55695967Speter else 55795967Speter ac_n=-n ac_c= ac_t= 55895967Speter fi 55995967Speterelse 56095967Speter ac_n= ac_c='\c' ac_t= 56195967Speterfi 56295967Speter 56395967Speterecho $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 56495967Speterecho "configure:565: checking for Cygwin environment" >&5 56595967Speterif eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 56695967Speter echo $ac_n "(cached) $ac_c" 1>&6 56795967Speterelse 56895967Speter cat > conftest.$ac_ext <<EOF 56995967Speter#line 570 "configure" 57095967Speter#include "confdefs.h" 57195967Speter 57295967Speterint main() { 57395967Speter 57495967Speter#ifndef __CYGWIN__ 57595967Speter#define __CYGWIN__ __CYGWIN32__ 57695967Speter#endif 57795967Speterreturn __CYGWIN__; 57895967Speter; return 0; } 57995967SpeterEOF 58095967Speterif { (eval echo configure:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 58195967Speter rm -rf conftest* 58295967Speter ac_cv_cygwin=yes 58395967Speterelse 58495967Speter echo "configure: failed program was:" >&5 58595967Speter cat conftest.$ac_ext >&5 58695967Speter rm -rf conftest* 58795967Speter ac_cv_cygwin=no 58895967Speterfi 58995967Speterrm -f conftest* 59095967Speterrm -f conftest* 59195967Speterfi 59295967Speter 59395967Speterecho "$ac_t""$ac_cv_cygwin" 1>&6 59495967SpeterCYGWIN= 59595967Spetertest "$ac_cv_cygwin" = yes && CYGWIN=yes 59695967Speterecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 59795967Speterecho "configure:598: checking for mingw32 environment" >&5 59895967Speterif eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 59995967Speter echo $ac_n "(cached) $ac_c" 1>&6 60095967Speterelse 60195967Speter cat > conftest.$ac_ext <<EOF 60295967Speter#line 603 "configure" 60395967Speter#include "confdefs.h" 60495967Speter 60595967Speterint main() { 60695967Speterreturn __MINGW32__; 60795967Speter; return 0; } 60895967SpeterEOF 60995967Speterif { (eval echo configure:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 61095967Speter rm -rf conftest* 61195967Speter ac_cv_mingw32=yes 61295967Speterelse 61395967Speter echo "configure: failed program was:" >&5 61495967Speter cat conftest.$ac_ext >&5 61595967Speter rm -rf conftest* 61695967Speter ac_cv_mingw32=no 61795967Speterfi 61895967Speterrm -f conftest* 61995967Speterrm -f conftest* 62095967Speterfi 62195967Speter 62295967Speterecho "$ac_t""$ac_cv_mingw32" 1>&6 62395967SpeterMINGW32= 62495967Spetertest "$ac_cv_mingw32" = yes && MINGW32=yes 62595967Speter 62695967Speter 62795967Speterac_aux_dir= 62895967Speterfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 62995967Speter if test -f $ac_dir/install-sh; then 63095967Speter ac_aux_dir=$ac_dir 63195967Speter ac_install_sh="$ac_aux_dir/install-sh -c" 63295967Speter break 63395967Speter elif test -f $ac_dir/install.sh; then 63495967Speter ac_aux_dir=$ac_dir 63595967Speter ac_install_sh="$ac_aux_dir/install.sh -c" 63695967Speter break 63795967Speter fi 63895967Speterdone 63995967Speterif test -z "$ac_aux_dir"; then 64095967Speter { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 64195967Speterfi 64295967Speterac_config_guess=$ac_aux_dir/config.guess 64395967Speterac_config_sub=$ac_aux_dir/config.sub 64495967Speterac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 64595967Speter 64695967Speter 64795967Speter# Do some error checking and defaulting for the host and target type. 64895967Speter# The inputs are: 64995967Speter# configure --host=HOST --target=TARGET --build=BUILD NONOPT 65095967Speter# 65195967Speter# The rules are: 65295967Speter# 1. You are not allowed to specify --host, --target, and nonopt at the 65395967Speter# same time. 65495967Speter# 2. Host defaults to nonopt. 65595967Speter# 3. If nonopt is not specified, then host defaults to the current host, 65695967Speter# as determined by config.guess. 65795967Speter# 4. Target and build default to nonopt. 65895967Speter# 5. If nonopt is not specified, then target and build default to host. 65995967Speter 66095967Speter# The aliases save the names the user supplied, while $host etc. 66195967Speter# will get canonicalized. 66295967Spetercase $host---$target---$nonopt in 66395967SpeterNONE---*---* | *---NONE---* | *---*---NONE) ;; 66495967Speter*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 66595967Speteresac 66695967Speter 66795967Speter 66895967Speter# Make sure we can run config.sub. 66995967Speterif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 67095967Speterelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 67195967Speterfi 67295967Speter 67395967Speterecho $ac_n "checking host system type""... $ac_c" 1>&6 67495967Speterecho "configure:675: checking host system type" >&5 67595967Speter 67695967Speterhost_alias=$host 67795967Spetercase "$host_alias" in 67895967SpeterNONE) 67995967Speter case $nonopt in 68095967Speter NONE) 68195967Speter if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 68295967Speter else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 68395967Speter fi ;; 68495967Speter *) host_alias=$nonopt ;; 68595967Speter esac ;; 68695967Speteresac 68795967Speter 68895967Speterhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 68995967Speterhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 69095967Speterhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 69195967Speterhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 69295967Speterecho "$ac_t""$host" 1>&6 69395967Speter 69495967Speterecho $ac_n "checking target system type""... $ac_c" 1>&6 69595967Speterecho "configure:696: checking target system type" >&5 69695967Speter 69795967Spetertarget_alias=$target 69895967Spetercase "$target_alias" in 69995967SpeterNONE) 70095967Speter case $nonopt in 70195967Speter NONE) target_alias=$host_alias ;; 70295967Speter *) target_alias=$nonopt ;; 70395967Speter esac ;; 70495967Speteresac 70595967Speter 70695967Spetertarget=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 70795967Spetertarget_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 70895967Spetertarget_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 70995967Spetertarget_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 71095967Speterecho "$ac_t""$target" 1>&6 71195967Speter 71295967Speterecho $ac_n "checking build system type""... $ac_c" 1>&6 71395967Speterecho "configure:714: checking build system type" >&5 71495967Speter 71595967Speterbuild_alias=$build 71695967Spetercase "$build_alias" in 71795967SpeterNONE) 71895967Speter case $nonopt in 71995967Speter NONE) build_alias=$host_alias ;; 72095967Speter *) build_alias=$nonopt ;; 72195967Speter esac ;; 72295967Speteresac 72395967Speter 72495967Speterbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 72595967Speterbuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 72695967Speterbuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 72795967Speterbuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 72895967Speterecho "$ac_t""$build" 1>&6 72995967Speter 73095967Spetertest "$host_alias" != "$target_alias" && 73195967Speter test "$program_prefix$program_suffix$program_transform_name" = \ 73295967Speter NONENONEs,x,x, && 73395967Speter program_prefix=${target_alias}- 73495967Speter 73595967Speter 73695967Speter echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 73795967Speterecho "configure:738: checking for strerror in -lcposix" >&5 73895967Speterac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` 73995967Speterif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 74095967Speter echo $ac_n "(cached) $ac_c" 1>&6 74195967Speterelse 74295967Speter ac_save_LIBS="$LIBS" 74395967SpeterLIBS="-lcposix $LIBS" 74495967Spetercat > conftest.$ac_ext <<EOF 74595967Speter#line 746 "configure" 74695967Speter#include "confdefs.h" 74795967Speter/* Override any gcc2 internal prototype to avoid an error. */ 74895967Speter/* We use char because int might match the return type of a gcc2 74995967Speter builtin and then its argument prototype would still apply. */ 75095967Speterchar strerror(); 75195967Speter 75295967Speterint main() { 75395967Speterstrerror() 75495967Speter; return 0; } 75595967SpeterEOF 75695967Speterif { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 75795967Speter rm -rf conftest* 75895967Speter eval "ac_cv_lib_$ac_lib_var=yes" 75995967Speterelse 76095967Speter echo "configure: failed program was:" >&5 76195967Speter cat conftest.$ac_ext >&5 76295967Speter rm -rf conftest* 76395967Speter eval "ac_cv_lib_$ac_lib_var=no" 76495967Speterfi 76595967Speterrm -f conftest* 76695967SpeterLIBS="$ac_save_LIBS" 76795967Speter 76895967Speterfi 76995967Speterif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 77095967Speter echo "$ac_t""yes" 1>&6 77195967Speter LIBS="$LIBS -lcposix" 77295967Speterelse 77395967Speter echo "$ac_t""no" 1>&6 77495967Speterfi 77595967Speter 77695967Speter 77795967Speter 77895967Speter 77995967SpeterBFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` 78095967Speter# Find a good install program. We prefer a C program (faster), 78195967Speter# so one script is as good as another. But avoid the broken or 78295967Speter# incompatible versions: 78395967Speter# SysV /etc/install, /usr/sbin/install 78495967Speter# SunOS /usr/etc/install 78595967Speter# IRIX /sbin/install 78695967Speter# AIX /bin/install 78795967Speter# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 78895967Speter# AFS /usr/afsws/bin/install, which mishandles nonexistent args 78995967Speter# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 79095967Speter# ./install, which can be erroneously created by make from ./install.sh. 79195967Speterecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 79295967Speterecho "configure:793: checking for a BSD compatible install" >&5 79395967Speterif test -z "$INSTALL"; then 79495967Speterif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 79595967Speter echo $ac_n "(cached) $ac_c" 1>&6 79695967Speterelse 79795967Speter IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 79895967Speter for ac_dir in $PATH; do 79995967Speter # Account for people who put trailing slashes in PATH elements. 80095967Speter case "$ac_dir/" in 80195967Speter /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 80295967Speter *) 80395967Speter # OSF1 and SCO ODT 3.0 have their own names for install. 80495967Speter # Don't use installbsd from OSF since it installs stuff as root 80595967Speter # by default. 80695967Speter for ac_prog in ginstall scoinst install; do 80795967Speter if test -f $ac_dir/$ac_prog; then 80895967Speter if test $ac_prog = install && 80995967Speter grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 81095967Speter # AIX install. It has an incompatible calling convention. 81195967Speter : 81295967Speter else 81395967Speter ac_cv_path_install="$ac_dir/$ac_prog -c" 81495967Speter break 2 81595967Speter fi 81695967Speter fi 81795967Speter done 81895967Speter ;; 81995967Speter esac 82095967Speter done 82195967Speter IFS="$ac_save_IFS" 82295967Speter 82395967Speterfi 82495967Speter if test "${ac_cv_path_install+set}" = set; then 82595967Speter INSTALL="$ac_cv_path_install" 82695967Speter else 82795967Speter # As a last resort, use the slow shell script. We don't cache a 82895967Speter # path for INSTALL within a source directory, because that will 82995967Speter # break other packages using the cache if that directory is 83095967Speter # removed, or if the path is relative. 83195967Speter INSTALL="$ac_install_sh" 83295967Speter fi 83395967Speterfi 83495967Speterecho "$ac_t""$INSTALL" 1>&6 83595967Speter 83695967Speter# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 83795967Speter# It thinks the first close brace ends the variable substitution. 83895967Spetertest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 83995967Speter 84095967Spetertest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 84195967Speter 84295967Spetertest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 84395967Speter 84495967Speterecho $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 84595967Speterecho "configure:846: checking whether build environment is sane" >&5 84695967Speter# Just in case 84795967Spetersleep 1 84895967Speterecho timestamp > conftestfile 84995967Speter# Do `set' in a subshell so we don't clobber the current shell's 85095967Speter# arguments. Must try -L first in case configure is actually a 85195967Speter# symlink; some systems play weird games with the mod time of symlinks 85295967Speter# (eg FreeBSD returns the mod time of the symlink's containing 85395967Speter# directory). 85495967Speterif ( 85595967Speter set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 85695967Speter if test "$*" = "X"; then 85795967Speter # -L didn't work. 85895967Speter set X `ls -t $srcdir/configure conftestfile` 85995967Speter fi 86095967Speter if test "$*" != "X $srcdir/configure conftestfile" \ 86195967Speter && test "$*" != "X conftestfile $srcdir/configure"; then 86295967Speter 86395967Speter # If neither matched, then we have a broken ls. This can happen 86495967Speter # if, for instance, CONFIG_SHELL is bash and it inherits a 86595967Speter # broken ls alias from the environment. This has actually 86695967Speter # happened. Such a system could not be considered "sane". 86795967Speter { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 86895967Speteralias in your environment" 1>&2; exit 1; } 86995967Speter fi 87095967Speter 87195967Speter test "$2" = conftestfile 87295967Speter ) 87395967Speterthen 87495967Speter # Ok. 87595967Speter : 87695967Speterelse 87795967Speter { echo "configure: error: newly created file is older than distributed files! 87895967SpeterCheck your system clock" 1>&2; exit 1; } 87995967Speterfi 88095967Speterrm -f conftest* 88195967Speterecho "$ac_t""yes" 1>&6 88295967Speterif test "$program_transform_name" = s,x,x,; then 88395967Speter program_transform_name= 88495967Speterelse 88595967Speter # Double any \ or $. echo might interpret backslashes. 88695967Speter cat <<\EOF_SED > conftestsed 88795967Speters,\\,\\\\,g; s,\$,$$,g 88895967SpeterEOF_SED 88995967Speter program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 89095967Speter rm -f conftestsed 89195967Speterfi 89295967Spetertest "$program_prefix" != NONE && 89395967Speter program_transform_name="s,^,${program_prefix},; $program_transform_name" 89495967Speter# Use a double $ so make ignores it. 89595967Spetertest "$program_suffix" != NONE && 89695967Speter program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 89795967Speter 89895967Speter# sed with no file args requires a program. 89995967Spetertest "$program_transform_name" = "" && program_transform_name="s,x,x," 90095967Speter 90195967Speterecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 90295967Speterecho "configure:903: checking whether ${MAKE-make} sets \${MAKE}" >&5 90395967Speterset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 90495967Speterif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 90595967Speter echo $ac_n "(cached) $ac_c" 1>&6 90695967Speterelse 90795967Speter cat > conftestmake <<\EOF 90895967Speterall: 90995967Speter @echo 'ac_maketemp="${MAKE}"' 91095967SpeterEOF 91195967Speter# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 91295967Spetereval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 91395967Speterif test -n "$ac_maketemp"; then 91495967Speter eval ac_cv_prog_make_${ac_make}_set=yes 91595967Speterelse 91695967Speter eval ac_cv_prog_make_${ac_make}_set=no 91795967Speterfi 91895967Speterrm -f conftestmake 91995967Speterfi 92095967Speterif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 92195967Speter echo "$ac_t""yes" 1>&6 92295967Speter SET_MAKE= 92395967Speterelse 92495967Speter echo "$ac_t""no" 1>&6 92595967Speter SET_MAKE="MAKE=${MAKE-make}" 92695967Speterfi 92795967Speter 92895967Speter 92995967SpeterPACKAGE=ld 93095967Speter 93195967SpeterVERSION=${BFD_VERSION} 93295967Speter 93395967Speterif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 93495967Speter { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 93595967Speterfi 93695967Spetercat >> confdefs.h <<EOF 93795967Speter#define PACKAGE "$PACKAGE" 93895967SpeterEOF 93995967Speter 94095967Spetercat >> confdefs.h <<EOF 94195967Speter#define VERSION "$VERSION" 94295967SpeterEOF 94395967Speter 94495967Speter 94595967Speter 94695967Spetermissing_dir=`cd $ac_aux_dir && pwd` 94795967Speterecho $ac_n "checking for working aclocal""... $ac_c" 1>&6 94895967Speterecho "configure:949: checking for working aclocal" >&5 94995967Speter# Run test in a subshell; some versions of sh will print an error if 95095967Speter# an executable is not found, even if stderr is redirected. 95195967Speter# Redirect stdin to placate older versions of autoconf. Sigh. 95295967Speterif (aclocal --version) < /dev/null > /dev/null 2>&1; then 95395967Speter ACLOCAL=aclocal 95495967Speter echo "$ac_t""found" 1>&6 95595967Speterelse 95695967Speter ACLOCAL="$missing_dir/missing aclocal" 95795967Speter echo "$ac_t""missing" 1>&6 95895967Speterfi 95995967Speter 96095967Speterecho $ac_n "checking for working autoconf""... $ac_c" 1>&6 96195967Speterecho "configure:962: checking for working autoconf" >&5 96295967Speter# Run test in a subshell; some versions of sh will print an error if 96395967Speter# an executable is not found, even if stderr is redirected. 96495967Speter# Redirect stdin to placate older versions of autoconf. Sigh. 96595967Speterif (autoconf --version) < /dev/null > /dev/null 2>&1; then 96695967Speter AUTOCONF=autoconf 96795967Speter echo "$ac_t""found" 1>&6 96895967Speterelse 96995967Speter AUTOCONF="$missing_dir/missing autoconf" 97095967Speter echo "$ac_t""missing" 1>&6 97195967Speterfi 97295967Speter 97395967Speterecho $ac_n "checking for working automake""... $ac_c" 1>&6 97495967Speterecho "configure:975: checking for working automake" >&5 97595967Speter# Run test in a subshell; some versions of sh will print an error if 97695967Speter# an executable is not found, even if stderr is redirected. 97795967Speter# Redirect stdin to placate older versions of autoconf. Sigh. 97895967Speterif (automake --version) < /dev/null > /dev/null 2>&1; then 97995967Speter AUTOMAKE=automake 98095967Speter echo "$ac_t""found" 1>&6 98195967Speterelse 98295967Speter AUTOMAKE="$missing_dir/missing automake" 98395967Speter echo "$ac_t""missing" 1>&6 98495967Speterfi 98595967Speter 98695967Speterecho $ac_n "checking for working autoheader""... $ac_c" 1>&6 98795967Speterecho "configure:988: checking for working autoheader" >&5 98895967Speter# Run test in a subshell; some versions of sh will print an error if 98995967Speter# an executable is not found, even if stderr is redirected. 99095967Speter# Redirect stdin to placate older versions of autoconf. Sigh. 99195967Speterif (autoheader --version) < /dev/null > /dev/null 2>&1; then 99295967Speter AUTOHEADER=autoheader 99395967Speter echo "$ac_t""found" 1>&6 99495967Speterelse 99595967Speter AUTOHEADER="$missing_dir/missing autoheader" 99695967Speter echo "$ac_t""missing" 1>&6 99795967Speterfi 99895967Speter 99995967Speterecho $ac_n "checking for working makeinfo""... $ac_c" 1>&6 100095967Speterecho "configure:1001: checking for working makeinfo" >&5 100195967Speter# Run test in a subshell; some versions of sh will print an error if 100295967Speter# an executable is not found, even if stderr is redirected. 100395967Speter# Redirect stdin to placate older versions of autoconf. Sigh. 100495967Speterif (makeinfo --version) < /dev/null > /dev/null 2>&1; then 100595967Speter MAKEINFO=makeinfo 100695967Speter echo "$ac_t""found" 1>&6 100795967Speterelse 100895967Speter MAKEINFO="$missing_dir/missing makeinfo" 100995967Speter echo "$ac_t""missing" 1>&6 101095967Speterfi 101195967Speter 101295967Speter 101395967Speter 101495967Speter# Check whether --enable-shared or --disable-shared was given. 101595967Speterif test "${enable_shared+set}" = set; then 101695967Speter enableval="$enable_shared" 101795967Speter p=${PACKAGE-default} 101895967Spetercase $enableval in 101995967Speteryes) enable_shared=yes ;; 102095967Speterno) enable_shared=no ;; 102195967Speter*) 102295967Speter enable_shared=no 102395967Speter # Look at the argument we got. We use all the common list separators. 102495967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 102595967Speter for pkg in $enableval; do 102695967Speter if test "X$pkg" = "X$p"; then 102795967Speter enable_shared=yes 102895967Speter fi 102995967Speter done 103095967Speter IFS="$ac_save_ifs" 103195967Speter ;; 103295967Speteresac 103395967Speterelse 103495967Speter enable_shared=yes 103595967Speterfi 103695967Speter 103795967Speter# Check whether --enable-static or --disable-static was given. 103895967Speterif test "${enable_static+set}" = set; then 103995967Speter enableval="$enable_static" 104095967Speter p=${PACKAGE-default} 104195967Spetercase $enableval in 104295967Speteryes) enable_static=yes ;; 104395967Speterno) enable_static=no ;; 104495967Speter*) 104595967Speter enable_static=no 104695967Speter # Look at the argument we got. We use all the common list separators. 104795967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 104895967Speter for pkg in $enableval; do 104995967Speter if test "X$pkg" = "X$p"; then 105095967Speter enable_static=yes 105195967Speter fi 105295967Speter done 105395967Speter IFS="$ac_save_ifs" 105495967Speter ;; 105595967Speteresac 105695967Speterelse 105795967Speter enable_static=yes 105895967Speterfi 105995967Speter 106095967Speter# Check whether --enable-fast-install or --disable-fast-install was given. 106195967Speterif test "${enable_fast_install+set}" = set; then 106295967Speter enableval="$enable_fast_install" 106395967Speter p=${PACKAGE-default} 106495967Spetercase $enableval in 106595967Speteryes) enable_fast_install=yes ;; 106695967Speterno) enable_fast_install=no ;; 106795967Speter*) 106895967Speter enable_fast_install=no 106995967Speter # Look at the argument we got. We use all the common list separators. 107095967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 107195967Speter for pkg in $enableval; do 107295967Speter if test "X$pkg" = "X$p"; then 107395967Speter enable_fast_install=yes 107495967Speter fi 107595967Speter done 107695967Speter IFS="$ac_save_ifs" 107795967Speter ;; 107895967Speteresac 107995967Speterelse 108095967Speter enable_fast_install=yes 108195967Speterfi 108295967Speter 108395967Speter# Extract the first word of "gcc", so it can be a program name with args. 108495967Speterset dummy gcc; ac_word=$2 108595967Speterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 108695967Speterecho "configure:1087: checking for $ac_word" >&5 108795967Speterif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 108895967Speter echo $ac_n "(cached) $ac_c" 1>&6 108995967Speterelse 109095967Speter if test -n "$CC"; then 109195967Speter ac_cv_prog_CC="$CC" # Let the user override the test. 109295967Speterelse 109395967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 109495967Speter ac_dummy="$PATH" 109595967Speter for ac_dir in $ac_dummy; do 109695967Speter test -z "$ac_dir" && ac_dir=. 109795967Speter if test -f $ac_dir/$ac_word; then 109895967Speter ac_cv_prog_CC="gcc" 109995967Speter break 110095967Speter fi 110195967Speter done 110295967Speter IFS="$ac_save_ifs" 110395967Speterfi 110495967Speterfi 110595967SpeterCC="$ac_cv_prog_CC" 110695967Speterif test -n "$CC"; then 110795967Speter echo "$ac_t""$CC" 1>&6 110895967Speterelse 110995967Speter echo "$ac_t""no" 1>&6 111095967Speterfi 111195967Speter 111295967Speterif test -z "$CC"; then 111395967Speter # Extract the first word of "cc", so it can be a program name with args. 111495967Speterset dummy cc; ac_word=$2 111595967Speterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 111695967Speterecho "configure:1117: checking for $ac_word" >&5 111795967Speterif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 111895967Speter echo $ac_n "(cached) $ac_c" 1>&6 111995967Speterelse 112095967Speter if test -n "$CC"; then 112195967Speter ac_cv_prog_CC="$CC" # Let the user override the test. 112295967Speterelse 112395967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 112495967Speter ac_prog_rejected=no 112595967Speter ac_dummy="$PATH" 112695967Speter for ac_dir in $ac_dummy; do 112795967Speter test -z "$ac_dir" && ac_dir=. 112895967Speter if test -f $ac_dir/$ac_word; then 112995967Speter if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 113095967Speter ac_prog_rejected=yes 113195967Speter continue 113295967Speter fi 113395967Speter ac_cv_prog_CC="cc" 113495967Speter break 113595967Speter fi 113695967Speter done 113795967Speter IFS="$ac_save_ifs" 113895967Speterif test $ac_prog_rejected = yes; then 113995967Speter # We found a bogon in the path, so make sure we never use it. 114095967Speter set dummy $ac_cv_prog_CC 114195967Speter shift 114295967Speter if test $# -gt 0; then 114395967Speter # We chose a different compiler from the bogus one. 114495967Speter # However, it has the same basename, so the bogon will be chosen 114595967Speter # first if we set CC to just the basename; use the full file name. 114695967Speter shift 114795967Speter set dummy "$ac_dir/$ac_word" "$@" 114895967Speter shift 114995967Speter ac_cv_prog_CC="$@" 115095967Speter fi 115195967Speterfi 115295967Speterfi 115395967Speterfi 115495967SpeterCC="$ac_cv_prog_CC" 115595967Speterif test -n "$CC"; then 115695967Speter echo "$ac_t""$CC" 1>&6 115795967Speterelse 115895967Speter echo "$ac_t""no" 1>&6 115995967Speterfi 116095967Speter 116195967Speter if test -z "$CC"; then 116295967Speter case "`uname -s`" in 116395967Speter *win32* | *WIN32*) 116495967Speter # Extract the first word of "cl", so it can be a program name with args. 116595967Speterset dummy cl; ac_word=$2 116695967Speterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 116795967Speterecho "configure:1168: checking for $ac_word" >&5 116895967Speterif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 116995967Speter echo $ac_n "(cached) $ac_c" 1>&6 117095967Speterelse 117195967Speter if test -n "$CC"; then 117295967Speter ac_cv_prog_CC="$CC" # Let the user override the test. 117395967Speterelse 117495967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 117595967Speter ac_dummy="$PATH" 117695967Speter for ac_dir in $ac_dummy; do 117795967Speter test -z "$ac_dir" && ac_dir=. 117895967Speter if test -f $ac_dir/$ac_word; then 117995967Speter ac_cv_prog_CC="cl" 118095967Speter break 118195967Speter fi 118295967Speter done 118395967Speter IFS="$ac_save_ifs" 118495967Speterfi 118595967Speterfi 118695967SpeterCC="$ac_cv_prog_CC" 118795967Speterif test -n "$CC"; then 118895967Speter echo "$ac_t""$CC" 1>&6 118995967Speterelse 119095967Speter echo "$ac_t""no" 1>&6 119195967Speterfi 119295967Speter ;; 119395967Speter esac 119495967Speter fi 119595967Speter test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 119695967Speterfi 119795967Speter 119895967Speterecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 119995967Speterecho "configure:1200: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 120095967Speter 120195967Speterac_ext=c 120295967Speter# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 120395967Speterac_cpp='$CPP $CPPFLAGS' 120495967Speterac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 120595967Speterac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 120695967Spetercross_compiling=$ac_cv_prog_cc_cross 120795967Speter 120895967Spetercat > conftest.$ac_ext << EOF 120995967Speter 121095967Speter#line 1211 "configure" 121195967Speter#include "confdefs.h" 121295967Speter 121395967Spetermain(){return(0);} 121495967SpeterEOF 121595967Speterif { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 121695967Speter ac_cv_prog_cc_works=yes 121795967Speter # If we can't run a trivial program, we are probably using a cross compiler. 121895967Speter if (./conftest; exit) 2>/dev/null; then 121995967Speter ac_cv_prog_cc_cross=no 122095967Speter else 122195967Speter ac_cv_prog_cc_cross=yes 122295967Speter fi 122395967Speterelse 122495967Speter echo "configure: failed program was:" >&5 122595967Speter cat conftest.$ac_ext >&5 122695967Speter ac_cv_prog_cc_works=no 122795967Speterfi 122895967Speterrm -fr conftest* 122995967Speterac_ext=c 123095967Speter# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 123195967Speterac_cpp='$CPP $CPPFLAGS' 123295967Speterac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 123395967Speterac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 123495967Spetercross_compiling=$ac_cv_prog_cc_cross 123595967Speter 123695967Speterecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 123795967Speterif test $ac_cv_prog_cc_works = no; then 123895967Speter { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 123995967Speterfi 124095967Speterecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 124195967Speterecho "configure:1242: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 124295967Speterecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 124395967Spetercross_compiling=$ac_cv_prog_cc_cross 124495967Speter 124595967Speterecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 124695967Speterecho "configure:1247: checking whether we are using GNU C" >&5 124795967Speterif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 124895967Speter echo $ac_n "(cached) $ac_c" 1>&6 124995967Speterelse 125095967Speter cat > conftest.c <<EOF 125195967Speter#ifdef __GNUC__ 125295967Speter yes; 125395967Speter#endif 125495967SpeterEOF 125595967Speterif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 125695967Speter ac_cv_prog_gcc=yes 125795967Speterelse 125895967Speter ac_cv_prog_gcc=no 125995967Speterfi 126095967Speterfi 126195967Speter 126295967Speterecho "$ac_t""$ac_cv_prog_gcc" 1>&6 126395967Speter 126495967Speterif test $ac_cv_prog_gcc = yes; then 126595967Speter GCC=yes 126695967Speterelse 126795967Speter GCC= 126895967Speterfi 126995967Speter 127095967Speterac_test_CFLAGS="${CFLAGS+set}" 127195967Speterac_save_CFLAGS="$CFLAGS" 127295967SpeterCFLAGS= 127395967Speterecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 127495967Speterecho "configure:1275: checking whether ${CC-cc} accepts -g" >&5 127595967Speterif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 127695967Speter echo $ac_n "(cached) $ac_c" 1>&6 127795967Speterelse 127895967Speter echo 'void f(){}' > conftest.c 127995967Speterif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 128095967Speter ac_cv_prog_cc_g=yes 128195967Speterelse 128295967Speter ac_cv_prog_cc_g=no 128395967Speterfi 128495967Speterrm -f conftest* 128595967Speter 128695967Speterfi 128795967Speter 128895967Speterecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 128995967Speterif test "$ac_test_CFLAGS" = set; then 129095967Speter CFLAGS="$ac_save_CFLAGS" 129195967Speterelif test $ac_cv_prog_cc_g = yes; then 129295967Speter if test "$GCC" = yes; then 129395967Speter CFLAGS="-g -O2" 129495967Speter else 129595967Speter CFLAGS="-g" 129695967Speter fi 129795967Speterelse 129895967Speter if test "$GCC" = yes; then 129995967Speter CFLAGS="-O2" 130095967Speter else 130195967Speter CFLAGS= 130295967Speter fi 130395967Speterfi 130495967Speter 130595967Speter# Check whether --with-gnu-ld or --without-gnu-ld was given. 130695967Speterif test "${with_gnu_ld+set}" = set; then 130795967Speter withval="$with_gnu_ld" 130895967Speter test "$withval" = no || with_gnu_ld=yes 130995967Speterelse 131095967Speter with_gnu_ld=no 131195967Speterfi 131295967Speter 131395967Speterac_prog=ld 131495967Speterif test "$GCC" = yes; then 131595967Speter # Check if gcc -print-prog-name=ld gives a path. 131695967Speter echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 131795967Speterecho "configure:1318: checking for ld used by GCC" >&5 131895967Speter case $host in 131995967Speter *-*-mingw*) 132095967Speter # gcc leaves a trailing carriage return which upsets mingw 132195967Speter ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 132295967Speter *) 132395967Speter ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 132495967Speter esac 132595967Speter case $ac_prog in 132695967Speter # Accept absolute paths. 132795967Speter [\\/]* | [A-Za-z]:[\\/]*) 132895967Speter re_direlt='/[^/][^/]*/\.\./' 132995967Speter # Canonicalize the path of ld 133095967Speter ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 133195967Speter while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 133295967Speter ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 133395967Speter done 133495967Speter test -z "$LD" && LD="$ac_prog" 133595967Speter ;; 133695967Speter "") 133795967Speter # If it fails, then pretend we aren't using GCC. 133895967Speter ac_prog=ld 133995967Speter ;; 134095967Speter *) 134195967Speter # If it is relative, then search for the first ld in PATH. 134295967Speter with_gnu_ld=unknown 134395967Speter ;; 134495967Speter esac 134595967Speterelif test "$with_gnu_ld" = yes; then 134695967Speter echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 134795967Speterecho "configure:1348: checking for GNU ld" >&5 134895967Speterelse 134995967Speter echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 135095967Speterecho "configure:1351: checking for non-GNU ld" >&5 135195967Speterfi 135295967Speterif eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 135395967Speter echo $ac_n "(cached) $ac_c" 1>&6 135495967Speterelse 135595967Speter if test -z "$LD"; then 135695967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 135795967Speter for ac_dir in $PATH; do 135895967Speter test -z "$ac_dir" && ac_dir=. 135995967Speter if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 136095967Speter lt_cv_path_LD="$ac_dir/$ac_prog" 136195967Speter # Check to see if the program is GNU ld. I'd rather use --version, 136295967Speter # but apparently some GNU ld's only accept -v. 136395967Speter # Break only if it was the GNU/non-GNU ld that we prefer. 136495967Speter if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 136595967Speter test "$with_gnu_ld" != no && break 136695967Speter else 136795967Speter test "$with_gnu_ld" != yes && break 136895967Speter fi 136995967Speter fi 137095967Speter done 137195967Speter IFS="$ac_save_ifs" 137295967Speterelse 137395967Speter lt_cv_path_LD="$LD" # Let the user override the test with a path. 137495967Speterfi 137595967Speterfi 137695967Speter 137795967SpeterLD="$lt_cv_path_LD" 137895967Speterif test -n "$LD"; then 137995967Speter echo "$ac_t""$LD" 1>&6 138095967Speterelse 138195967Speter echo "$ac_t""no" 1>&6 138295967Speterfi 138395967Spetertest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 138495967Speterecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 138595967Speterecho "configure:1386: checking if the linker ($LD) is GNU ld" >&5 138695967Speterif eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then 138795967Speter echo $ac_n "(cached) $ac_c" 1>&6 138895967Speterelse 138995967Speter # I'd rather use --version here, but apparently some GNU ld's only accept -v. 139095967Speterif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 139195967Speter lt_cv_prog_gnu_ld=yes 139295967Speterelse 139395967Speter lt_cv_prog_gnu_ld=no 139495967Speterfi 139595967Speterfi 139695967Speter 139795967Speterecho "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 139895967Speterwith_gnu_ld=$lt_cv_prog_gnu_ld 139995967Speter 140095967Speter 140195967Speterecho $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 140295967Speterecho "configure:1403: checking for $LD option to reload object files" >&5 140395967Speterif eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 140495967Speter echo $ac_n "(cached) $ac_c" 1>&6 140595967Speterelse 140695967Speter lt_cv_ld_reload_flag='-r' 140795967Speterfi 140895967Speter 140995967Speterecho "$ac_t""$lt_cv_ld_reload_flag" 1>&6 141095967Speterreload_flag=$lt_cv_ld_reload_flag 141195967Spetertest -n "$reload_flag" && reload_flag=" $reload_flag" 141295967Speter 141395967Speterecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 141495967Speterecho "configure:1415: checking for BSD-compatible nm" >&5 141595967Speterif eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then 141695967Speter echo $ac_n "(cached) $ac_c" 1>&6 141795967Speterelse 141895967Speter if test -n "$NM"; then 141995967Speter # Let the user override the test. 142095967Speter lt_cv_path_NM="$NM" 142195967Speterelse 142295967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 142395967Speter for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 142495967Speter test -z "$ac_dir" && ac_dir=. 142595967Speter tmp_nm=$ac_dir/${ac_tool_prefix}nm 142695967Speter if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 142795967Speter # Check to see if the nm accepts a BSD-compat flag. 142895967Speter # Adding the `sed 1q' prevents false positives on HP-UX, which says: 142995967Speter # nm: unknown option "B" ignored 143095967Speter # Tru64's nm complains that /dev/null is an invalid object file 143195967Speter if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 143295967Speter lt_cv_path_NM="$tmp_nm -B" 143395967Speter break 143495967Speter elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 143595967Speter lt_cv_path_NM="$tmp_nm -p" 143695967Speter break 143795967Speter else 143895967Speter lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 143995967Speter continue # so that we can try to find one that supports BSD flags 144095967Speter fi 144195967Speter fi 144295967Speter done 144395967Speter IFS="$ac_save_ifs" 144495967Speter test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 144595967Speterfi 144695967Speterfi 144795967Speter 144895967SpeterNM="$lt_cv_path_NM" 144995967Speterecho "$ac_t""$NM" 1>&6 145095967Speter 145195967Speterecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6 145295967Speterecho "configure:1453: checking whether ln -s works" >&5 145395967Speterif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 145495967Speter echo $ac_n "(cached) $ac_c" 1>&6 145595967Speterelse 145695967Speter rm -f conftestdata 145795967Speterif ln -s X conftestdata 2>/dev/null 145895967Speterthen 145995967Speter rm -f conftestdata 146095967Speter ac_cv_prog_LN_S="ln -s" 146195967Speterelse 146295967Speter ac_cv_prog_LN_S=ln 146395967Speterfi 146495967Speterfi 146595967SpeterLN_S="$ac_cv_prog_LN_S" 146695967Speterif test "$ac_cv_prog_LN_S" = "ln -s"; then 146795967Speter echo "$ac_t""yes" 1>&6 146895967Speterelse 146995967Speter echo "$ac_t""no" 1>&6 147095967Speterfi 147195967Speter 147295967Speterecho $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 147395967Speterecho "configure:1474: checking how to recognise dependant libraries" >&5 147495967Speterif eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 147595967Speter echo $ac_n "(cached) $ac_c" 1>&6 147695967Speterelse 147795967Speter lt_cv_file_magic_cmd='$MAGIC_CMD' 147895967Speterlt_cv_file_magic_test_file= 147995967Speterlt_cv_deplibs_check_method='unknown' 148095967Speter# Need to set the preceding variable on all platforms that support 148195967Speter# interlibrary dependencies. 148295967Speter# 'none' -- dependencies not supported. 148395967Speter# `unknown' -- same as none, but documents that we really don't know. 148495967Speter# 'pass_all' -- all dependencies passed with no checks. 148595967Speter# 'test_compile' -- check by making test program. 148695967Speter# 'file_magic [regex]' -- check by looking for files in library path 148795967Speter# which responds to the $file_magic_cmd with a given egrep regex. 148895967Speter# If you have `file' or equivalent on your system and you're not sure 148995967Speter# whether `pass_all' will *always* work, you probably want this one. 149095967Speter 149195967Spetercase $host_os in 149295967Speteraix*) 149395967Speter lt_cv_deplibs_check_method=pass_all 149495967Speter ;; 149595967Speter 149695967Speterbeos*) 149795967Speter lt_cv_deplibs_check_method=pass_all 149895967Speter ;; 149995967Speter 150095967Speterbsdi4*) 150195967Speter lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 150295967Speter lt_cv_file_magic_cmd='/usr/bin/file -L' 150395967Speter lt_cv_file_magic_test_file=/shlib/libc.so 150495967Speter ;; 150595967Speter 150695967Spetercygwin* | mingw* |pw32*) 150795967Speter lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 150895967Speter lt_cv_file_magic_cmd='$OBJDUMP -f' 150995967Speter ;; 151095967Speter 151195967Speterdarwin* | rhapsody*) 151295967Speter lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 151395967Speter lt_cv_file_magic_cmd='/usr/bin/file -L' 151495967Speter case "$host_os" in 151595967Speter rhapsody* | darwin1.012) 151695967Speter lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' 151795967Speter ;; 151895967Speter *) # Darwin 1.3 on 151995967Speter lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 152095967Speter ;; 152195967Speter esac 152295967Speter ;; 152395967Speter 152495967Speterfreebsd* ) 152595967Speter if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 152695967Speter case $host_cpu in 152795967Speter i*86 ) 152895967Speter # Not sure whether the presence of OpenBSD here was a mistake. 152995967Speter # Let's accept both of them until this is cleared up. 153095967Speter lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 153195967Speter lt_cv_file_magic_cmd=/usr/bin/file 153295967Speter lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 153395967Speter ;; 153495967Speter esac 153595967Speter else 153695967Speter lt_cv_deplibs_check_method=pass_all 153795967Speter fi 153895967Speter ;; 153995967Speter 154095967Spetergnu*) 154195967Speter lt_cv_deplibs_check_method=pass_all 154295967Speter ;; 154395967Speter 154495967Speterhpux10.20*|hpux11*) 154595967Speter case $host_cpu in 154695967Speter hppa*) 154795967Speter lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 154895967Speter lt_cv_file_magic_cmd=/usr/bin/file 154995967Speter lt_cv_file_magic_test_file=/usr/lib/libc.sl 155095967Speter ;; 155195967Speter ia64*) 155295967Speter lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 155395967Speter lt_cv_file_magic_cmd=/usr/bin/file 155495967Speter lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 155595967Speter ;; 155695967Speter esac 155795967Speter ;; 155895967Speter 155995967Speteririx5* | irix6*) 156095967Speter case $host_os in 156195967Speter irix5*) 156295967Speter # this will be overridden with pass_all, but let us keep it just in case 156395967Speter lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 156495967Speter ;; 156595967Speter *) 156695967Speter case $LD in 156795967Speter *-32|*"-32 ") libmagic=32-bit;; 156895967Speter *-n32|*"-n32 ") libmagic=N32;; 156995967Speter *-64|*"-64 ") libmagic=64-bit;; 157095967Speter *) libmagic=never-match;; 157195967Speter esac 157295967Speter # this will be overridden with pass_all, but let us keep it just in case 157395967Speter lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 157495967Speter ;; 157595967Speter esac 157695967Speter lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 157795967Speter lt_cv_deplibs_check_method=pass_all 157895967Speter ;; 157995967Speter 158095967Speter# This must be Linux ELF. 158195967Speterlinux-gnu*) 158295967Speter case $host_cpu in 158395967Speter alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 158495967Speter lt_cv_deplibs_check_method=pass_all ;; 158595967Speter *) 158695967Speter # glibc up to 2.1.1 does not perform some relocations on ARM 158795967Speter lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 158895967Speter esac 158995967Speter lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 159095967Speter ;; 159195967Speter 159295967Speternetbsd*) 159395967Speter if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 159495967Speter lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 159595967Speter else 159695967Speter lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 159795967Speter fi 159895967Speter ;; 159995967Speter 160095967Speternewsos6) 160195967Speter lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 160295967Speter lt_cv_file_magic_cmd=/usr/bin/file 160395967Speter lt_cv_file_magic_test_file=/usr/lib/libnls.so 160495967Speter ;; 160595967Speter 160695967Speterosf3* | osf4* | osf5*) 160795967Speter # this will be overridden with pass_all, but let us keep it just in case 160895967Speter lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 160995967Speter lt_cv_file_magic_test_file=/shlib/libc.so 161095967Speter lt_cv_deplibs_check_method=pass_all 161195967Speter ;; 161295967Speter 161395967Spetersco3.2v5*) 161495967Speter lt_cv_deplibs_check_method=pass_all 161595967Speter ;; 161695967Speter 161795967Spetersolaris*) 161895967Speter lt_cv_deplibs_check_method=pass_all 161995967Speter lt_cv_file_magic_test_file=/lib/libc.so 162095967Speter ;; 162195967Speter 162295967Spetersysv5uw[78]* | sysv4*uw2*) 162395967Speter lt_cv_deplibs_check_method=pass_all 162495967Speter ;; 162595967Speter 162695967Spetersysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 162795967Speter case $host_vendor in 162895967Speter ncr) 162995967Speter lt_cv_deplibs_check_method=pass_all 163095967Speter ;; 163195967Speter motorola) 163295967Speter 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]' 163395967Speter lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 163495967Speter ;; 163595967Speter esac 163695967Speter ;; 163795967Speteresac 163895967Speter 163995967Speterfi 164095967Speter 164195967Speterecho "$ac_t""$lt_cv_deplibs_check_method" 1>&6 164295967Speterfile_magic_cmd=$lt_cv_file_magic_cmd 164395967Speterdeplibs_check_method=$lt_cv_deplibs_check_method 164495967Speter 164595967Speterecho $ac_n "checking for object suffix""... $ac_c" 1>&6 164695967Speterecho "configure:1647: checking for object suffix" >&5 164795967Speterif eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 164895967Speter echo $ac_n "(cached) $ac_c" 1>&6 164995967Speterelse 165095967Speter rm -f conftest* 165195967Speterecho 'int i = 1;' > conftest.$ac_ext 165295967Speterif { (eval echo configure:1653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 165395967Speter for ac_file in conftest.*; do 165495967Speter case $ac_file in 165595967Speter *.c) ;; 165695967Speter *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 165795967Speter esac 165895967Speter done 165995967Speterelse 166095967Speter { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 166195967Speterfi 166295967Speterrm -f conftest* 166395967Speterfi 166495967Speter 166595967Speterecho "$ac_t""$ac_cv_objext" 1>&6 166695967SpeterOBJEXT=$ac_cv_objext 166795967Speterac_objext=$ac_cv_objext 166895967Speter 166995967Speter 167095967Speter 167195967Speterecho $ac_n "checking for executable suffix""... $ac_c" 1>&6 167295967Speterecho "configure:1673: checking for executable suffix" >&5 167395967Speterif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 167495967Speter echo $ac_n "(cached) $ac_c" 1>&6 167595967Speterelse 167695967Speter if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 167795967Speter ac_cv_exeext=.exe 167895967Speterelse 167995967Speter rm -f conftest* 168095967Speter echo 'int main () { return 0; }' > conftest.$ac_ext 168195967Speter ac_cv_exeext= 168295967Speter if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 168395967Speter for file in conftest.*; do 168495967Speter case $file in 168595967Speter *.c | *.o | *.obj | *.ilk | *.pdb) ;; 168695967Speter *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 168795967Speter esac 168895967Speter done 168995967Speter else 169095967Speter { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 169195967Speter fi 169295967Speter rm -f conftest* 169395967Speter test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 169495967Speterfi 169595967Speterfi 169695967Speter 169795967SpeterEXEEXT="" 169895967Spetertest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 169995967Speterecho "$ac_t""${ac_cv_exeext}" 1>&6 170095967Speterac_exeext=$EXEEXT 170195967Speter 170295967Speterif test $host != $build; then 170395967Speter ac_tool_prefix=${host_alias}- 170495967Speterelse 170595967Speter ac_tool_prefix= 170695967Speterfi 170795967Speter 170895967Speter# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 170995967Speter 171095967Speter# Only perform the check for file, if the check method requires it 171195967Spetercase $deplibs_check_method in 171295967Speterfile_magic*) 171395967Speter if test "$file_magic_cmd" = '$MAGIC_CMD'; then 171495967Speter echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 171595967Speterecho "configure:1716: checking for ${ac_tool_prefix}file" >&5 171695967Speterif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 171795967Speter echo $ac_n "(cached) $ac_c" 1>&6 171895967Speterelse 171995967Speter case $MAGIC_CMD in 172095967Speter /*) 172195967Speter lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 172295967Speter ;; 172395967Speter ?:/*) 172495967Speter lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 172595967Speter ;; 172695967Speter *) 172795967Speter ac_save_MAGIC_CMD="$MAGIC_CMD" 172895967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 172995967Speter ac_dummy="/usr/bin:$PATH" 173095967Speter for ac_dir in $ac_dummy; do 173195967Speter test -z "$ac_dir" && ac_dir=. 173295967Speter if test -f $ac_dir/${ac_tool_prefix}file; then 173395967Speter lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 173495967Speter if test -n "$file_magic_test_file"; then 173595967Speter case $deplibs_check_method in 173695967Speter "file_magic "*) 173795967Speter file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 173895967Speter MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 173995967Speter if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 174095967Speter egrep "$file_magic_regex" > /dev/null; then 174195967Speter : 174295967Speter else 174395967Speter cat <<EOF 1>&2 174495967Speter 174595967Speter*** Warning: the command libtool uses to detect shared libraries, 174695967Speter*** $file_magic_cmd, produces output that libtool cannot recognize. 174795967Speter*** The result is that libtool may fail to recognize shared libraries 174895967Speter*** as such. This will affect the creation of libtool libraries that 174995967Speter*** depend on shared libraries, but programs linked with such libtool 175095967Speter*** libraries will work regardless of this problem. Nevertheless, you 175195967Speter*** may want to report the problem to your system manager and/or to 175295967Speter*** bug-libtool@gnu.org 175395967Speter 175495967SpeterEOF 175595967Speter fi ;; 175695967Speter esac 175795967Speter fi 175895967Speter break 175995967Speter fi 176095967Speter done 176195967Speter IFS="$ac_save_ifs" 176295967Speter MAGIC_CMD="$ac_save_MAGIC_CMD" 176395967Speter ;; 176495967Speteresac 176595967Speterfi 176695967Speter 176795967SpeterMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 176895967Speterif test -n "$MAGIC_CMD"; then 176995967Speter echo "$ac_t""$MAGIC_CMD" 1>&6 177095967Speterelse 177195967Speter echo "$ac_t""no" 1>&6 177295967Speterfi 177395967Speter 177495967Speterif test -z "$lt_cv_path_MAGIC_CMD"; then 177595967Speter if test -n "$ac_tool_prefix"; then 177695967Speter echo $ac_n "checking for file""... $ac_c" 1>&6 177795967Speterecho "configure:1778: checking for file" >&5 177895967Speterif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 177995967Speter echo $ac_n "(cached) $ac_c" 1>&6 178095967Speterelse 178195967Speter case $MAGIC_CMD in 178295967Speter /*) 178395967Speter lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 178495967Speter ;; 178595967Speter ?:/*) 178695967Speter lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 178795967Speter ;; 178895967Speter *) 178995967Speter ac_save_MAGIC_CMD="$MAGIC_CMD" 179095967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 179195967Speter ac_dummy="/usr/bin:$PATH" 179295967Speter for ac_dir in $ac_dummy; do 179395967Speter test -z "$ac_dir" && ac_dir=. 179495967Speter if test -f $ac_dir/file; then 179595967Speter lt_cv_path_MAGIC_CMD="$ac_dir/file" 179695967Speter if test -n "$file_magic_test_file"; then 179795967Speter case $deplibs_check_method in 179895967Speter "file_magic "*) 179995967Speter file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 180095967Speter MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 180195967Speter if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 180295967Speter egrep "$file_magic_regex" > /dev/null; then 180395967Speter : 180495967Speter else 180595967Speter cat <<EOF 1>&2 180695967Speter 180795967Speter*** Warning: the command libtool uses to detect shared libraries, 180895967Speter*** $file_magic_cmd, produces output that libtool cannot recognize. 180995967Speter*** The result is that libtool may fail to recognize shared libraries 181095967Speter*** as such. This will affect the creation of libtool libraries that 181195967Speter*** depend on shared libraries, but programs linked with such libtool 181295967Speter*** libraries will work regardless of this problem. Nevertheless, you 181395967Speter*** may want to report the problem to your system manager and/or to 181495967Speter*** bug-libtool@gnu.org 181595967Speter 181695967SpeterEOF 181795967Speter fi ;; 181895967Speter esac 181995967Speter fi 182095967Speter break 182195967Speter fi 182295967Speter done 182395967Speter IFS="$ac_save_ifs" 182495967Speter MAGIC_CMD="$ac_save_MAGIC_CMD" 182595967Speter ;; 182695967Speteresac 182795967Speterfi 182895967Speter 182995967SpeterMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 183095967Speterif test -n "$MAGIC_CMD"; then 183195967Speter echo "$ac_t""$MAGIC_CMD" 1>&6 183295967Speterelse 183395967Speter echo "$ac_t""no" 1>&6 183495967Speterfi 183595967Speter 183695967Speter else 183795967Speter MAGIC_CMD=: 183895967Speter fi 183995967Speterfi 184095967Speter 184195967Speter fi 184295967Speter ;; 184395967Speteresac 184495967Speter 184595967Speter# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 184695967Speterset dummy ${ac_tool_prefix}ranlib; ac_word=$2 184795967Speterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 184895967Speterecho "configure:1849: checking for $ac_word" >&5 184995967Speterif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 185095967Speter echo $ac_n "(cached) $ac_c" 1>&6 185195967Speterelse 185295967Speter if test -n "$RANLIB"; then 185395967Speter ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 185495967Speterelse 185595967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 185695967Speter ac_dummy="$PATH" 185795967Speter for ac_dir in $ac_dummy; do 185895967Speter test -z "$ac_dir" && ac_dir=. 185995967Speter if test -f $ac_dir/$ac_word; then 186095967Speter ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 186195967Speter break 186295967Speter fi 186395967Speter done 186495967Speter IFS="$ac_save_ifs" 186595967Speterfi 186695967Speterfi 186795967SpeterRANLIB="$ac_cv_prog_RANLIB" 186895967Speterif test -n "$RANLIB"; then 186995967Speter echo "$ac_t""$RANLIB" 1>&6 187095967Speterelse 187195967Speter echo "$ac_t""no" 1>&6 187295967Speterfi 187395967Speter 187495967Speter 187595967Speterif test -z "$ac_cv_prog_RANLIB"; then 187695967Speterif test -n "$ac_tool_prefix"; then 187795967Speter # Extract the first word of "ranlib", so it can be a program name with args. 187895967Speterset dummy ranlib; ac_word=$2 187995967Speterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 188095967Speterecho "configure:1881: checking for $ac_word" >&5 188195967Speterif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 188295967Speter echo $ac_n "(cached) $ac_c" 1>&6 188395967Speterelse 188495967Speter if test -n "$RANLIB"; then 188595967Speter ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 188695967Speterelse 188795967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 188895967Speter ac_dummy="$PATH" 188995967Speter for ac_dir in $ac_dummy; do 189095967Speter test -z "$ac_dir" && ac_dir=. 189195967Speter if test -f $ac_dir/$ac_word; then 189295967Speter ac_cv_prog_RANLIB="ranlib" 189395967Speter break 189495967Speter fi 189595967Speter done 189695967Speter IFS="$ac_save_ifs" 189795967Speter test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 189895967Speterfi 189995967Speterfi 190095967SpeterRANLIB="$ac_cv_prog_RANLIB" 190195967Speterif test -n "$RANLIB"; then 190295967Speter echo "$ac_t""$RANLIB" 1>&6 190395967Speterelse 190495967Speter echo "$ac_t""no" 1>&6 190595967Speterfi 190695967Speter 190795967Speterelse 190895967Speter RANLIB=":" 190995967Speterfi 191095967Speterfi 191195967Speter 191295967Speter# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 191395967Speterset dummy ${ac_tool_prefix}strip; ac_word=$2 191495967Speterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 191595967Speterecho "configure:1916: checking for $ac_word" >&5 191695967Speterif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 191795967Speter echo $ac_n "(cached) $ac_c" 1>&6 191895967Speterelse 191995967Speter if test -n "$STRIP"; then 192095967Speter ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 192195967Speterelse 192295967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 192395967Speter ac_dummy="$PATH" 192495967Speter for ac_dir in $ac_dummy; do 192595967Speter test -z "$ac_dir" && ac_dir=. 192695967Speter if test -f $ac_dir/$ac_word; then 192795967Speter ac_cv_prog_STRIP="${ac_tool_prefix}strip" 192895967Speter break 192995967Speter fi 193095967Speter done 193195967Speter IFS="$ac_save_ifs" 193295967Speterfi 193395967Speterfi 193495967SpeterSTRIP="$ac_cv_prog_STRIP" 193595967Speterif test -n "$STRIP"; then 193695967Speter echo "$ac_t""$STRIP" 1>&6 193795967Speterelse 193895967Speter echo "$ac_t""no" 1>&6 193995967Speterfi 194095967Speter 194195967Speter 194295967Speterif test -z "$ac_cv_prog_STRIP"; then 194395967Speterif test -n "$ac_tool_prefix"; then 194495967Speter # Extract the first word of "strip", so it can be a program name with args. 194595967Speterset dummy strip; ac_word=$2 194695967Speterecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 194795967Speterecho "configure:1948: checking for $ac_word" >&5 194895967Speterif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 194995967Speter echo $ac_n "(cached) $ac_c" 1>&6 195095967Speterelse 195195967Speter if test -n "$STRIP"; then 195295967Speter ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 195395967Speterelse 195495967Speter IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 195595967Speter ac_dummy="$PATH" 195695967Speter for ac_dir in $ac_dummy; do 195795967Speter test -z "$ac_dir" && ac_dir=. 195895967Speter if test -f $ac_dir/$ac_word; then 195995967Speter ac_cv_prog_STRIP="strip" 196095967Speter break 196195967Speter fi 196295967Speter done 196395967Speter IFS="$ac_save_ifs" 196495967Speter test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 196595967Speterfi 196695967Speterfi 196795967SpeterSTRIP="$ac_cv_prog_STRIP" 196895967Speterif test -n "$STRIP"; then 196995967Speter echo "$ac_t""$STRIP" 1>&6 197095967Speterelse 197195967Speter echo "$ac_t""no" 1>&6 197295967Speterfi 197395967Speter 197495967Speterelse 197595967Speter STRIP=":" 1976fi 1977fi 1978 1979 1980# Check for any special flags to pass to ltconfig. 1981libtool_flags="--cache-file=$cache_file" 1982test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 1983test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 1984test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 1985test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" 1986test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 1987 1988 1989# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 1990if test "${enable_libtool_lock+set}" = set; then 1991 enableval="$enable_libtool_lock" 1992 : 1993fi 1994 1995test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 1996test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 1997 1998# Check whether --with-pic or --without-pic was given. 1999if test "${with_pic+set}" = set; then 2000 withval="$with_pic" 2001 pic_mode="$withval" 2002else 2003 pic_mode=default 2004fi 2005 2006test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" 2007test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" 2008 2009# Some flags need to be propagated to the compiler or linker for good 2010# libtool support. 2011case $host in 2012*-*-irix6*) 2013 # Find out which ABI we are using. 2014 echo '#line 2015 "configure"' > conftest.$ac_ext 2015 if { (eval echo configure:2016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2016 if test "$lt_cv_prog_gnu_ld" = yes; then 2017 case `/usr/bin/file conftest.$ac_objext` in 2018 *32-bit*) 2019 LD="${LD-ld} -melf32bsmip" 2020 ;; 2021 *N32*) 2022 LD="${LD-ld} -melf32bmipn32" 2023 ;; 2024 *64-bit*) 2025 LD="${LD-ld} -melf64bmip" 2026 ;; 2027 esac 2028 else 2029 case `/usr/bin/file conftest.$ac_objext` in 2030 *32-bit*) 2031 LD="${LD-ld} -32" 2032 ;; 2033 *N32*) 2034 LD="${LD-ld} -n32" 2035 ;; 2036 *64-bit*) 2037 LD="${LD-ld} -64" 2038 ;; 2039 esac 2040 fi 2041 fi 2042 rm -rf conftest* 2043 ;; 2044 2045ia64-*-hpux*) 2046 # Find out which ABI we are using. 2047 echo 'int i;' > conftest.$ac_ext 2048 if { (eval echo configure:2049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2049 case "`/usr/bin/file conftest.o`" in 2050 *ELF-32*) 2051 HPUX_IA64_MODE="32" 2052 ;; 2053 *ELF-64*) 2054 HPUX_IA64_MODE="64" 2055 ;; 2056 esac 2057 fi 2058 rm -rf conftest* 2059 ;; 2060 2061*-*-sco3.2v5*) 2062 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2063 SAVE_CFLAGS="$CFLAGS" 2064 CFLAGS="$CFLAGS -belf" 2065 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 2066echo "configure:2067: checking whether the C compiler needs -belf" >&5 2067if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 2068 echo $ac_n "(cached) $ac_c" 1>&6 2069else 2070 2071 ac_ext=c 2072# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2073ac_cpp='$CPP $CPPFLAGS' 2074ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2075ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2076cross_compiling=$ac_cv_prog_cc_cross 2077 2078 cat > conftest.$ac_ext <<EOF 2079#line 2080 "configure" 2080#include "confdefs.h" 2081 2082int main() { 2083 2084; return 0; } 2085EOF 2086if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2087 rm -rf conftest* 2088 lt_cv_cc_needs_belf=yes 2089else 2090 echo "configure: failed program was:" >&5 2091 cat conftest.$ac_ext >&5 2092 rm -rf conftest* 2093 lt_cv_cc_needs_belf=no 2094fi 2095rm -f conftest* 2096 ac_ext=c 2097# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2098ac_cpp='$CPP $CPPFLAGS' 2099ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2100ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2101cross_compiling=$ac_cv_prog_cc_cross 2102 2103fi 2104 2105echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 2106 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 2107 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2108 CFLAGS="$SAVE_CFLAGS" 2109 fi 2110 ;; 2111 2112 2113esac 2114 2115 2116# Save cache, so that ltconfig can load it 2117cat > confcache <<\EOF 2118# This file is a shell script that caches the results of configure 2119# tests run on this system so they can be shared between configure 2120# scripts and configure runs. It is not useful on other systems. 2121# If it contains results you don't want to keep, you may remove or edit it. 2122# 2123# By default, configure uses ./config.cache as the cache file, 2124# creating it if it does not exist already. You can give configure 2125# the --cache-file=FILE option to use a different cache file; that is 2126# what configure does when it calls configure scripts in 2127# subdirectories, so they share the cache. 2128# Giving --cache-file=/dev/null disables caching, for debugging configure. 2129# config.status only pays attention to the cache file if you give it the 2130# --recheck option to rerun configure. 2131# 2132EOF 2133# The following way of writing the cache mishandles newlines in values, 2134# but we know of no workaround that is simple, portable, and efficient. 2135# So, don't put newlines in cache variables' values. 2136# Ultrix sh set writes to stderr and can't be redirected directly, 2137# and sets the high bit in the cache file unless we assign to the vars. 2138(set) 2>&1 | 2139 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2140 *ac_space=\ *) 2141 # `set' does not quote correctly, so add quotes (double-quote substitution 2142 # turns \\\\ into \\, and sed turns \\ into \). 2143 sed -n \ 2144 -e "s/'/'\\\\''/g" \ 2145 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2146 ;; 2147 *) 2148 # `set' quotes correctly as required by POSIX, so do not add quotes. 2149 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2150 ;; 2151 esac >> confcache 2152if cmp -s $cache_file confcache; then 2153 : 2154else 2155 if test -w $cache_file; then 2156 echo "updating cache $cache_file" 2157 cat confcache > $cache_file 2158 else 2159 echo "not updating unwritable cache $cache_file" 2160 fi 2161fi 2162rm -f confcache 2163 2164 2165# Actually configure libtool. ac_aux_dir is where install-sh is found. 2166AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 2167MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 2168LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 2169AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 2170objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 2171deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 2172${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 2173$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ 2174|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 2175 2176# Reload cache, that may have been modified by ltconfig 2177if test -r "$cache_file"; then 2178 echo "loading cache $cache_file" 2179 . $cache_file 2180else 2181 echo "creating cache $cache_file" 2182 > $cache_file 2183fi 2184 2185 2186# This can be used to rebuild libtool when needed 2187LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" 2188 2189# Always use our own libtool. 2190LIBTOOL='$(SHELL) $(top_builddir)/libtool' 2191 2192# Redirect the config.log output again, so that the ltconfig log is not 2193# clobbered by the next message. 2194exec 5>>./config.log 2195 2196 2197 2198 2199 2200 2201 2202# Check whether --with-lib-path or --without-lib-path was given. 2203if test "${with_lib_path+set}" = set; then 2204 withval="$with_lib_path" 2205 LIB_PATH=$withval 2206fi 2207 2208# Check whether --enable-targets or --disable-targets was given. 2209if test "${enable_targets+set}" = set; then 2210 enableval="$enable_targets" 2211 case "${enableval}" in 2212 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } 2213 ;; 2214 no) enable_targets= ;; 2215 *) enable_targets=$enableval ;; 2216esac 2217fi 2218# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. 2219if test "${enable_64_bit_bfd+set}" = set; then 2220 enableval="$enable_64_bit_bfd" 2221 case "${enableval}" in 2222 yes) want64=true ;; 2223 no) want64=false ;; 2224 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; 2225esac 2226else 2227 want64=false 2228fi 2229 2230# Check whether --with-sysroot or --without-sysroot was given. 2231if test "${with_sysroot+set}" = set; then 2232 withval="$with_sysroot" 2233 2234 case ${with_sysroot} in 2235 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; 2236 *) TARGET_SYSTEM_ROOT=$with_sysroot ;; 2237 esac 2238 2239 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' 2240 use_sysroot=yes 2241 2242 if test "x$exec_prefix" = xNONE; then 2243 if test "x$prefix" = xNONE; then 2244 test_prefix=/usr/local 2245 else 2246 test_prefix=$prefix 2247 fi 2248 else 2249 test_prefix=$exec_prefix 2250 fi 2251 case ${TARGET_SYSTEM_ROOT} in 2252 "${test_prefix}"|"${test_prefix}/"*|\ 2253 '${exec_prefix}'|'${exec_prefix}/'*) 2254 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" 2255 TARGET_SYSTEM_ROOT_DEFINE="$t" 2256 ;; 2257 esac 2258 2259else 2260 2261 use_sysroot=no 2262 TARGET_SYSTEM_ROOT= 2263 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' 2264 2265fi 2266 2267 2268 2269 2270 2271build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 2272# Check whether --enable-build-warnings or --disable-build-warnings was given. 2273if test "${enable_build_warnings+set}" = set; then 2274 enableval="$enable_build_warnings" 2275 case "${enableval}" in 2276 yes) ;; 2277 no) build_warnings="-w";; 2278 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 2279 build_warnings="${build_warnings} ${t}";; 2280 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 2281 build_warnings="${t} ${build_warnings}";; 2282 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 2283esac 2284if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 2285 echo "Setting warning flags = $build_warnings" 6>&1 2286fi 2287fi 2288WARN_CFLAGS="" 2289if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then 2290 WARN_CFLAGS="${build_warnings}" 2291fi 2292 2293 2294 2295 2296 2297 2298if test -z "$target" ; then 2299 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } 2300fi 2301if test -z "$host" ; then 2302 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; } 2303fi 2304 2305# host-specific stuff: 2306 2307# Extract the first word of "gcc", so it can be a program name with args. 2308set dummy gcc; ac_word=$2 2309echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2310echo "configure:2311: checking for $ac_word" >&5 2311if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2312 echo $ac_n "(cached) $ac_c" 1>&6 2313else 2314 if test -n "$CC"; then 2315 ac_cv_prog_CC="$CC" # Let the user override the test. 2316else 2317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2318 ac_dummy="$PATH" 2319 for ac_dir in $ac_dummy; do 2320 test -z "$ac_dir" && ac_dir=. 2321 if test -f $ac_dir/$ac_word; then 2322 ac_cv_prog_CC="gcc" 2323 break 2324 fi 2325 done 2326 IFS="$ac_save_ifs" 2327fi 2328fi 2329CC="$ac_cv_prog_CC" 2330if test -n "$CC"; then 2331 echo "$ac_t""$CC" 1>&6 2332else 2333 echo "$ac_t""no" 1>&6 2334fi 2335 2336if test -z "$CC"; then 2337 # Extract the first word of "cc", so it can be a program name with args. 2338set dummy cc; ac_word=$2 2339echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2340echo "configure:2341: checking for $ac_word" >&5 2341if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2342 echo $ac_n "(cached) $ac_c" 1>&6 2343else 2344 if test -n "$CC"; then 2345 ac_cv_prog_CC="$CC" # Let the user override the test. 2346else 2347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2348 ac_prog_rejected=no 2349 ac_dummy="$PATH" 2350 for ac_dir in $ac_dummy; do 2351 test -z "$ac_dir" && ac_dir=. 2352 if test -f $ac_dir/$ac_word; then 2353 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 2354 ac_prog_rejected=yes 2355 continue 2356 fi 2357 ac_cv_prog_CC="cc" 2358 break 2359 fi 2360 done 2361 IFS="$ac_save_ifs" 2362if test $ac_prog_rejected = yes; then 2363 # We found a bogon in the path, so make sure we never use it. 2364 set dummy $ac_cv_prog_CC 2365 shift 2366 if test $# -gt 0; then 2367 # We chose a different compiler from the bogus one. 2368 # However, it has the same basename, so the bogon will be chosen 2369 # first if we set CC to just the basename; use the full file name. 2370 shift 2371 set dummy "$ac_dir/$ac_word" "$@" 2372 shift 2373 ac_cv_prog_CC="$@" 2374 fi 2375fi 2376fi 2377fi 2378CC="$ac_cv_prog_CC" 2379if test -n "$CC"; then 2380 echo "$ac_t""$CC" 1>&6 2381else 2382 echo "$ac_t""no" 1>&6 2383fi 2384 2385 if test -z "$CC"; then 2386 case "`uname -s`" in 2387 *win32* | *WIN32*) 2388 # Extract the first word of "cl", so it can be a program name with args. 2389set dummy cl; ac_word=$2 2390echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2391echo "configure:2392: checking for $ac_word" >&5 2392if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2393 echo $ac_n "(cached) $ac_c" 1>&6 2394else 2395 if test -n "$CC"; then 2396 ac_cv_prog_CC="$CC" # Let the user override the test. 2397else 2398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2399 ac_dummy="$PATH" 2400 for ac_dir in $ac_dummy; do 2401 test -z "$ac_dir" && ac_dir=. 2402 if test -f $ac_dir/$ac_word; then 2403 ac_cv_prog_CC="cl" 2404 break 2405 fi 2406 done 2407 IFS="$ac_save_ifs" 2408fi 2409fi 2410CC="$ac_cv_prog_CC" 2411if test -n "$CC"; then 2412 echo "$ac_t""$CC" 1>&6 2413else 2414 echo "$ac_t""no" 1>&6 2415fi 2416 ;; 2417 esac 2418 fi 2419 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2420fi 2421 2422echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2423echo "configure:2424: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2424 2425ac_ext=c 2426# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2427ac_cpp='$CPP $CPPFLAGS' 2428ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2429ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2430cross_compiling=$ac_cv_prog_cc_cross 2431 2432cat > conftest.$ac_ext << EOF 2433 2434#line 2435 "configure" 2435#include "confdefs.h" 2436 2437main(){return(0);} 2438EOF 2439if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2440 ac_cv_prog_cc_works=yes 2441 # If we can't run a trivial program, we are probably using a cross compiler. 2442 if (./conftest; exit) 2>/dev/null; then 2443 ac_cv_prog_cc_cross=no 2444 else 2445 ac_cv_prog_cc_cross=yes 2446 fi 2447else 2448 echo "configure: failed program was:" >&5 2449 cat conftest.$ac_ext >&5 2450 ac_cv_prog_cc_works=no 2451fi 2452rm -fr conftest* 2453ac_ext=c 2454# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2455ac_cpp='$CPP $CPPFLAGS' 2456ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2457ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2458cross_compiling=$ac_cv_prog_cc_cross 2459 2460echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2461if test $ac_cv_prog_cc_works = no; then 2462 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2463fi 2464echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2465echo "configure:2466: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2466echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2467cross_compiling=$ac_cv_prog_cc_cross 2468 2469echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2470echo "configure:2471: checking whether we are using GNU C" >&5 2471if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 2472 echo $ac_n "(cached) $ac_c" 1>&6 2473else 2474 cat > conftest.c <<EOF 2475#ifdef __GNUC__ 2476 yes; 2477#endif 2478EOF 2479if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2480 ac_cv_prog_gcc=yes 2481else 2482 ac_cv_prog_gcc=no 2483fi 2484fi 2485 2486echo "$ac_t""$ac_cv_prog_gcc" 1>&6 2487 2488if test $ac_cv_prog_gcc = yes; then 2489 GCC=yes 2490else 2491 GCC= 2492fi 2493 2494ac_test_CFLAGS="${CFLAGS+set}" 2495ac_save_CFLAGS="$CFLAGS" 2496CFLAGS= 2497echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2498echo "configure:2499: checking whether ${CC-cc} accepts -g" >&5 2499if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 2500 echo $ac_n "(cached) $ac_c" 1>&6 2501else 2502 echo 'void f(){}' > conftest.c 2503if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2504 ac_cv_prog_cc_g=yes 2505else 2506 ac_cv_prog_cc_g=no 2507fi 2508rm -f conftest* 2509 2510fi 2511 2512echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2513if test "$ac_test_CFLAGS" = set; then 2514 CFLAGS="$ac_save_CFLAGS" 2515elif test $ac_cv_prog_cc_g = yes; then 2516 if test "$GCC" = yes; then 2517 CFLAGS="-g -O2" 2518 else 2519 CFLAGS="-g" 2520 fi 2521else 2522 if test "$GCC" = yes; then 2523 CFLAGS="-O2" 2524 else 2525 CFLAGS= 2526 fi 2527fi 2528 2529# Find a good install program. We prefer a C program (faster), 2530# so one script is as good as another. But avoid the broken or 2531# incompatible versions: 2532# SysV /etc/install, /usr/sbin/install 2533# SunOS /usr/etc/install 2534# IRIX /sbin/install 2535# AIX /bin/install 2536# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2537# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2538# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2539# ./install, which can be erroneously created by make from ./install.sh. 2540echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2541echo "configure:2542: checking for a BSD compatible install" >&5 2542if test -z "$INSTALL"; then 2543if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2544 echo $ac_n "(cached) $ac_c" 1>&6 2545else 2546 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2547 for ac_dir in $PATH; do 2548 # Account for people who put trailing slashes in PATH elements. 2549 case "$ac_dir/" in 2550 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 2551 *) 2552 # OSF1 and SCO ODT 3.0 have their own names for install. 2553 # Don't use installbsd from OSF since it installs stuff as root 2554 # by default. 2555 for ac_prog in ginstall scoinst install; do 2556 if test -f $ac_dir/$ac_prog; then 2557 if test $ac_prog = install && 2558 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 2559 # AIX install. It has an incompatible calling convention. 2560 : 2561 else 2562 ac_cv_path_install="$ac_dir/$ac_prog -c" 2563 break 2 2564 fi 2565 fi 2566 done 2567 ;; 2568 esac 2569 done 2570 IFS="$ac_save_IFS" 2571 2572fi 2573 if test "${ac_cv_path_install+set}" = set; then 2574 INSTALL="$ac_cv_path_install" 2575 else 2576 # As a last resort, use the slow shell script. We don't cache a 2577 # path for INSTALL within a source directory, because that will 2578 # break other packages using the cache if that directory is 2579 # removed, or if the path is relative. 2580 INSTALL="$ac_install_sh" 2581 fi 2582fi 2583echo "$ac_t""$INSTALL" 1>&6 2584 2585# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2586# It thinks the first close brace ends the variable substitution. 2587test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2588 2589test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 2590 2591test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2592 2593 2594ALL_LINGUAS="fr sv tr es da" 2595echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2596echo "configure:2597: checking how to run the C preprocessor" >&5 2597# On Suns, sometimes $CPP names a directory. 2598if test -n "$CPP" && test -d "$CPP"; then 2599 CPP= 2600fi 2601if test -z "$CPP"; then 2602if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2603 echo $ac_n "(cached) $ac_c" 1>&6 2604else 2605 # This must be in double quotes, not single quotes, because CPP may get 2606 # substituted into the Makefile and "${CC-cc}" will confuse make. 2607 CPP="${CC-cc} -E" 2608 # On the NeXT, cc -E runs the code through the compiler's parser, 2609 # not just through cpp. 2610 cat > conftest.$ac_ext <<EOF 2611#line 2612 "configure" 2612#include "confdefs.h" 2613#include <assert.h> 2614Syntax Error 2615EOF 2616ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2617{ (eval echo configure:2618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2618ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2619if test -z "$ac_err"; then 2620 : 2621else 2622 echo "$ac_err" >&5 2623 echo "configure: failed program was:" >&5 2624 cat conftest.$ac_ext >&5 2625 rm -rf conftest* 2626 CPP="${CC-cc} -E -traditional-cpp" 2627 cat > conftest.$ac_ext <<EOF 2628#line 2629 "configure" 2629#include "confdefs.h" 2630#include <assert.h> 2631Syntax Error 2632EOF 2633ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2634{ (eval echo configure:2635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2635ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2636if test -z "$ac_err"; then 2637 : 2638else 2639 echo "$ac_err" >&5 2640 echo "configure: failed program was:" >&5 2641 cat conftest.$ac_ext >&5 2642 rm -rf conftest* 2643 CPP="${CC-cc} -nologo -E" 2644 cat > conftest.$ac_ext <<EOF 2645#line 2646 "configure" 2646#include "confdefs.h" 2647#include <assert.h> 2648Syntax Error 2649EOF 2650ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2651{ (eval echo configure:2652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2652ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2653if test -z "$ac_err"; then 2654 : 2655else 2656 echo "$ac_err" >&5 2657 echo "configure: failed program was:" >&5 2658 cat conftest.$ac_ext >&5 2659 rm -rf conftest* 2660 CPP=/lib/cpp 2661fi 2662rm -f conftest* 2663fi 2664rm -f conftest* 2665fi 2666rm -f conftest* 2667 ac_cv_prog_CPP="$CPP" 2668fi 2669 CPP="$ac_cv_prog_CPP" 2670else 2671 ac_cv_prog_CPP="$CPP" 2672fi 2673echo "$ac_t""$CPP" 1>&6 2674 2675# Extract the first word of "ranlib", so it can be a program name with args. 2676set dummy ranlib; ac_word=$2 2677echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2678echo "configure:2679: checking for $ac_word" >&5 2679if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2680 echo $ac_n "(cached) $ac_c" 1>&6 2681else 2682 if test -n "$RANLIB"; then 2683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2684else 2685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2686 ac_dummy="$PATH" 2687 for ac_dir in $ac_dummy; do 2688 test -z "$ac_dir" && ac_dir=. 2689 if test -f $ac_dir/$ac_word; then 2690 ac_cv_prog_RANLIB="ranlib" 2691 break 2692 fi 2693 done 2694 IFS="$ac_save_ifs" 2695 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 2696fi 2697fi 2698RANLIB="$ac_cv_prog_RANLIB" 2699if test -n "$RANLIB"; then 2700 echo "$ac_t""$RANLIB" 1>&6 2701else 2702 echo "$ac_t""no" 1>&6 2703fi 2704 2705echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2706echo "configure:2707: checking for ANSI C header files" >&5 2707if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2708 echo $ac_n "(cached) $ac_c" 1>&6 2709else 2710 cat > conftest.$ac_ext <<EOF 2711#line 2712 "configure" 2712#include "confdefs.h" 2713#include <stdlib.h> 2714#include <stdarg.h> 2715#include <string.h> 2716#include <float.h> 2717EOF 2718ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2719{ (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2720ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2721if test -z "$ac_err"; then 2722 rm -rf conftest* 2723 ac_cv_header_stdc=yes 2724else 2725 echo "$ac_err" >&5 2726 echo "configure: failed program was:" >&5 2727 cat conftest.$ac_ext >&5 2728 rm -rf conftest* 2729 ac_cv_header_stdc=no 2730fi 2731rm -f conftest* 2732 2733if test $ac_cv_header_stdc = yes; then 2734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2735cat > conftest.$ac_ext <<EOF 2736#line 2737 "configure" 2737#include "confdefs.h" 2738#include <string.h> 2739EOF 2740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2741 egrep "memchr" >/dev/null 2>&1; then 2742 : 2743else 2744 rm -rf conftest* 2745 ac_cv_header_stdc=no 2746fi 2747rm -f conftest* 2748 2749fi 2750 2751if test $ac_cv_header_stdc = yes; then 2752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2753cat > conftest.$ac_ext <<EOF 2754#line 2755 "configure" 2755#include "confdefs.h" 2756#include <stdlib.h> 2757EOF 2758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2759 egrep "free" >/dev/null 2>&1; then 2760 : 2761else 2762 rm -rf conftest* 2763 ac_cv_header_stdc=no 2764fi 2765rm -f conftest* 2766 2767fi 2768 2769if test $ac_cv_header_stdc = yes; then 2770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2771if test "$cross_compiling" = yes; then 2772 : 2773else 2774 cat > conftest.$ac_ext <<EOF 2775#line 2776 "configure" 2776#include "confdefs.h" 2777#include <ctype.h> 2778#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2779#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2780#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2781int main () { int i; for (i = 0; i < 256; i++) 2782if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2783exit (0); } 2784 2785EOF 2786if { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2787then 2788 : 2789else 2790 echo "configure: failed program was:" >&5 2791 cat conftest.$ac_ext >&5 2792 rm -fr conftest* 2793 ac_cv_header_stdc=no 2794fi 2795rm -fr conftest* 2796fi 2797 2798fi 2799fi 2800 2801echo "$ac_t""$ac_cv_header_stdc" 1>&6 2802if test $ac_cv_header_stdc = yes; then 2803 cat >> confdefs.h <<\EOF 2804#define STDC_HEADERS 1 2805EOF 2806 2807fi 2808 2809echo $ac_n "checking for working const""... $ac_c" 1>&6 2810echo "configure:2811: checking for working const" >&5 2811if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2812 echo $ac_n "(cached) $ac_c" 1>&6 2813else 2814 cat > conftest.$ac_ext <<EOF 2815#line 2816 "configure" 2816#include "confdefs.h" 2817 2818int main() { 2819 2820/* Ultrix mips cc rejects this. */ 2821typedef int charset[2]; const charset x; 2822/* SunOS 4.1.1 cc rejects this. */ 2823char const *const *ccp; 2824char **p; 2825/* NEC SVR4.0.2 mips cc rejects this. */ 2826struct point {int x, y;}; 2827static struct point const zero = {0,0}; 2828/* AIX XL C 1.02.0.0 rejects this. 2829 It does not let you subtract one const X* pointer from another in an arm 2830 of an if-expression whose if-part is not a constant expression */ 2831const char *g = "string"; 2832ccp = &g + (g ? g-g : 0); 2833/* HPUX 7.0 cc rejects these. */ 2834++ccp; 2835p = (char**) ccp; 2836ccp = (char const *const *) p; 2837{ /* SCO 3.2v4 cc rejects this. */ 2838 char *t; 2839 char const *s = 0 ? (char *) 0 : (char const *) 0; 2840 2841 *t++ = 0; 2842} 2843{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2844 int x[] = {25, 17}; 2845 const int *foo = &x[0]; 2846 ++foo; 2847} 2848{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2849 typedef const int *iptr; 2850 iptr p = 0; 2851 ++p; 2852} 2853{ /* AIX XL C 1.02.0.0 rejects this saying 2854 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2855 struct s { int j; const int *ap[3]; }; 2856 struct s *b; b->j = 5; 2857} 2858{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2859 const int foo = 10; 2860} 2861 2862; return 0; } 2863EOF 2864if { (eval echo configure:2865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2865 rm -rf conftest* 2866 ac_cv_c_const=yes 2867else 2868 echo "configure: failed program was:" >&5 2869 cat conftest.$ac_ext >&5 2870 rm -rf conftest* 2871 ac_cv_c_const=no 2872fi 2873rm -f conftest* 2874fi 2875 2876echo "$ac_t""$ac_cv_c_const" 1>&6 2877if test $ac_cv_c_const = no; then 2878 cat >> confdefs.h <<\EOF 2879#define const 2880EOF 2881 2882fi 2883 2884echo $ac_n "checking for inline""... $ac_c" 1>&6 2885echo "configure:2886: checking for inline" >&5 2886if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2887 echo $ac_n "(cached) $ac_c" 1>&6 2888else 2889 ac_cv_c_inline=no 2890for ac_kw in inline __inline__ __inline; do 2891 cat > conftest.$ac_ext <<EOF 2892#line 2893 "configure" 2893#include "confdefs.h" 2894 2895int main() { 2896} $ac_kw foo() { 2897; return 0; } 2898EOF 2899if { (eval echo configure:2900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2900 rm -rf conftest* 2901 ac_cv_c_inline=$ac_kw; break 2902else 2903 echo "configure: failed program was:" >&5 2904 cat conftest.$ac_ext >&5 2905fi 2906rm -f conftest* 2907done 2908 2909fi 2910 2911echo "$ac_t""$ac_cv_c_inline" 1>&6 2912case "$ac_cv_c_inline" in 2913 inline | yes) ;; 2914 no) cat >> confdefs.h <<\EOF 2915#define inline 2916EOF 2917 ;; 2918 *) cat >> confdefs.h <<EOF 2919#define inline $ac_cv_c_inline 2920EOF 2921 ;; 2922esac 2923 2924echo $ac_n "checking for off_t""... $ac_c" 1>&6 2925echo "configure:2926: checking for off_t" >&5 2926if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 2927 echo $ac_n "(cached) $ac_c" 1>&6 2928else 2929 cat > conftest.$ac_ext <<EOF 2930#line 2931 "configure" 2931#include "confdefs.h" 2932#include <sys/types.h> 2933#if STDC_HEADERS 2934#include <stdlib.h> 2935#include <stddef.h> 2936#endif 2937EOF 2938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2939 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2940 rm -rf conftest* 2941 ac_cv_type_off_t=yes 2942else 2943 rm -rf conftest* 2944 ac_cv_type_off_t=no 2945fi 2946rm -f conftest* 2947 2948fi 2949echo "$ac_t""$ac_cv_type_off_t" 1>&6 2950if test $ac_cv_type_off_t = no; then 2951 cat >> confdefs.h <<\EOF 2952#define off_t long 2953EOF 2954 2955fi 2956 2957echo $ac_n "checking for size_t""... $ac_c" 1>&6 2958echo "configure:2959: checking for size_t" >&5 2959if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2960 echo $ac_n "(cached) $ac_c" 1>&6 2961else 2962 cat > conftest.$ac_ext <<EOF 2963#line 2964 "configure" 2964#include "confdefs.h" 2965#include <sys/types.h> 2966#if STDC_HEADERS 2967#include <stdlib.h> 2968#include <stddef.h> 2969#endif 2970EOF 2971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2972 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2973 rm -rf conftest* 2974 ac_cv_type_size_t=yes 2975else 2976 rm -rf conftest* 2977 ac_cv_type_size_t=no 2978fi 2979rm -f conftest* 2980 2981fi 2982echo "$ac_t""$ac_cv_type_size_t" 1>&6 2983if test $ac_cv_type_size_t = no; then 2984 cat >> confdefs.h <<\EOF 2985#define size_t unsigned 2986EOF 2987 2988fi 2989 2990# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2991# for constant arguments. Useless! 2992echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2993echo "configure:2994: checking for working alloca.h" >&5 2994if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2995 echo $ac_n "(cached) $ac_c" 1>&6 2996else 2997 cat > conftest.$ac_ext <<EOF 2998#line 2999 "configure" 2999#include "confdefs.h" 3000#include <alloca.h> 3001int main() { 3002char *p = alloca(2 * sizeof(int)); 3003; return 0; } 3004EOF 3005if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3006 rm -rf conftest* 3007 ac_cv_header_alloca_h=yes 3008else 3009 echo "configure: failed program was:" >&5 3010 cat conftest.$ac_ext >&5 3011 rm -rf conftest* 3012 ac_cv_header_alloca_h=no 3013fi 3014rm -f conftest* 3015fi 3016 3017echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 3018if test $ac_cv_header_alloca_h = yes; then 3019 cat >> confdefs.h <<\EOF 3020#define HAVE_ALLOCA_H 1 3021EOF 3022 3023fi 3024 3025echo $ac_n "checking for alloca""... $ac_c" 1>&6 3026echo "configure:3027: checking for alloca" >&5 3027if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 3028 echo $ac_n "(cached) $ac_c" 1>&6 3029else 3030 cat > conftest.$ac_ext <<EOF 3031#line 3032 "configure" 3032#include "confdefs.h" 3033 3034#ifdef __GNUC__ 3035# define alloca __builtin_alloca 3036#else 3037# ifdef _MSC_VER 3038# include <malloc.h> 3039# define alloca _alloca 3040# else 3041# if HAVE_ALLOCA_H 3042# include <alloca.h> 3043# else 3044# ifdef _AIX 3045 #pragma alloca 3046# else 3047# ifndef alloca /* predefined by HP cc +Olibcalls */ 3048char *alloca (); 3049# endif 3050# endif 3051# endif 3052# endif 3053#endif 3054 3055int main() { 3056char *p = (char *) alloca(1); 3057; return 0; } 3058EOF 3059if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3060 rm -rf conftest* 3061 ac_cv_func_alloca_works=yes 3062else 3063 echo "configure: failed program was:" >&5 3064 cat conftest.$ac_ext >&5 3065 rm -rf conftest* 3066 ac_cv_func_alloca_works=no 3067fi 3068rm -f conftest* 3069fi 3070 3071echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 3072if test $ac_cv_func_alloca_works = yes; then 3073 cat >> confdefs.h <<\EOF 3074#define HAVE_ALLOCA 1 3075EOF 3076 3077fi 3078 3079if test $ac_cv_func_alloca_works = no; then 3080 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 3081 # that cause trouble. Some versions do not even contain alloca or 3082 # contain a buggy version. If you still want to use their alloca, 3083 # use ar to extract alloca.o from them instead of compiling alloca.c. 3084 ALLOCA=alloca.${ac_objext} 3085 cat >> confdefs.h <<\EOF 3086#define C_ALLOCA 1 3087EOF 3088 3089 3090echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 3091echo "configure:3092: checking whether alloca needs Cray hooks" >&5 3092if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 3093 echo $ac_n "(cached) $ac_c" 1>&6 3094else 3095 cat > conftest.$ac_ext <<EOF 3096#line 3097 "configure" 3097#include "confdefs.h" 3098#if defined(CRAY) && ! defined(CRAY2) 3099webecray 3100#else 3101wenotbecray 3102#endif 3103 3104EOF 3105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3106 egrep "webecray" >/dev/null 2>&1; then 3107 rm -rf conftest* 3108 ac_cv_os_cray=yes 3109else 3110 rm -rf conftest* 3111 ac_cv_os_cray=no 3112fi 3113rm -f conftest* 3114 3115fi 3116 3117echo "$ac_t""$ac_cv_os_cray" 1>&6 3118if test $ac_cv_os_cray = yes; then 3119for ac_func in _getb67 GETB67 getb67; do 3120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3121echo "configure:3122: checking for $ac_func" >&5 3122if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3123 echo $ac_n "(cached) $ac_c" 1>&6 3124else 3125 cat > conftest.$ac_ext <<EOF 3126#line 3127 "configure" 3127#include "confdefs.h" 3128/* System header to define __stub macros and hopefully few prototypes, 3129 which can conflict with char $ac_func(); below. */ 3130#include <assert.h> 3131/* Override any gcc2 internal prototype to avoid an error. */ 3132/* We use char because int might match the return type of a gcc2 3133 builtin and then its argument prototype would still apply. */ 3134char $ac_func(); 3135 3136int main() { 3137 3138/* The GNU C library defines this for functions which it implements 3139 to always fail with ENOSYS. Some functions are actually named 3140 something starting with __ and the normal name is an alias. */ 3141#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3142choke me 3143#else 3144$ac_func(); 3145#endif 3146 3147; return 0; } 3148EOF 3149if { (eval echo configure:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3150 rm -rf conftest* 3151 eval "ac_cv_func_$ac_func=yes" 3152else 3153 echo "configure: failed program was:" >&5 3154 cat conftest.$ac_ext >&5 3155 rm -rf conftest* 3156 eval "ac_cv_func_$ac_func=no" 3157fi 3158rm -f conftest* 3159fi 3160 3161if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3162 echo "$ac_t""yes" 1>&6 3163 cat >> confdefs.h <<EOF 3164#define CRAY_STACKSEG_END $ac_func 3165EOF 3166 3167 break 3168else 3169 echo "$ac_t""no" 1>&6 3170fi 3171 3172done 3173fi 3174 3175echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 3176echo "configure:3177: checking stack direction for C alloca" >&5 3177if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 3178 echo $ac_n "(cached) $ac_c" 1>&6 3179else 3180 if test "$cross_compiling" = yes; then 3181 ac_cv_c_stack_direction=0 3182else 3183 cat > conftest.$ac_ext <<EOF 3184#line 3185 "configure" 3185#include "confdefs.h" 3186find_stack_direction () 3187{ 3188 static char *addr = 0; 3189 auto char dummy; 3190 if (addr == 0) 3191 { 3192 addr = &dummy; 3193 return find_stack_direction (); 3194 } 3195 else 3196 return (&dummy > addr) ? 1 : -1; 3197} 3198main () 3199{ 3200 exit (find_stack_direction() < 0); 3201} 3202EOF 3203if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3204then 3205 ac_cv_c_stack_direction=1 3206else 3207 echo "configure: failed program was:" >&5 3208 cat conftest.$ac_ext >&5 3209 rm -fr conftest* 3210 ac_cv_c_stack_direction=-1 3211fi 3212rm -fr conftest* 3213fi 3214 3215fi 3216 3217echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 3218cat >> confdefs.h <<EOF 3219#define STACK_DIRECTION $ac_cv_c_stack_direction 3220EOF 3221 3222fi 3223 3224for ac_hdr in unistd.h 3225do 3226ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3227echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3228echo "configure:3229: checking for $ac_hdr" >&5 3229if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3230 echo $ac_n "(cached) $ac_c" 1>&6 3231else 3232 cat > conftest.$ac_ext <<EOF 3233#line 3234 "configure" 3234#include "confdefs.h" 3235#include <$ac_hdr> 3236EOF 3237ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3238{ (eval echo configure:3239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3239ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3240if test -z "$ac_err"; then 3241 rm -rf conftest* 3242 eval "ac_cv_header_$ac_safe=yes" 3243else 3244 echo "$ac_err" >&5 3245 echo "configure: failed program was:" >&5 3246 cat conftest.$ac_ext >&5 3247 rm -rf conftest* 3248 eval "ac_cv_header_$ac_safe=no" 3249fi 3250rm -f conftest* 3251fi 3252if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3253 echo "$ac_t""yes" 1>&6 3254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3255 cat >> confdefs.h <<EOF 3256#define $ac_tr_hdr 1 3257EOF 3258 3259else 3260 echo "$ac_t""no" 1>&6 3261fi 3262done 3263 3264for ac_func in getpagesize 3265do 3266echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3267echo "configure:3268: checking for $ac_func" >&5 3268if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3269 echo $ac_n "(cached) $ac_c" 1>&6 3270else 3271 cat > conftest.$ac_ext <<EOF 3272#line 3273 "configure" 3273#include "confdefs.h" 3274/* System header to define __stub macros and hopefully few prototypes, 3275 which can conflict with char $ac_func(); below. */ 3276#include <assert.h> 3277/* Override any gcc2 internal prototype to avoid an error. */ 3278/* We use char because int might match the return type of a gcc2 3279 builtin and then its argument prototype would still apply. */ 3280char $ac_func(); 3281 3282int main() { 3283 3284/* The GNU C library defines this for functions which it implements 3285 to always fail with ENOSYS. Some functions are actually named 3286 something starting with __ and the normal name is an alias. */ 3287#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3288choke me 3289#else 3290$ac_func(); 3291#endif 3292 3293; return 0; } 3294EOF 3295if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3296 rm -rf conftest* 3297 eval "ac_cv_func_$ac_func=yes" 3298else 3299 echo "configure: failed program was:" >&5 3300 cat conftest.$ac_ext >&5 3301 rm -rf conftest* 3302 eval "ac_cv_func_$ac_func=no" 3303fi 3304rm -f conftest* 3305fi 3306 3307if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3308 echo "$ac_t""yes" 1>&6 3309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3310 cat >> confdefs.h <<EOF 3311#define $ac_tr_func 1 3312EOF 3313 3314else 3315 echo "$ac_t""no" 1>&6 3316fi 3317done 3318 3319echo $ac_n "checking for working mmap""... $ac_c" 1>&6 3320echo "configure:3321: checking for working mmap" >&5 3321if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 3322 echo $ac_n "(cached) $ac_c" 1>&6 3323else 3324 if test "$cross_compiling" = yes; then 3325 ac_cv_func_mmap_fixed_mapped=no 3326else 3327 cat > conftest.$ac_ext <<EOF 3328#line 3329 "configure" 3329#include "confdefs.h" 3330 3331/* Thanks to Mike Haertel and Jim Avera for this test. 3332 Here is a matrix of mmap possibilities: 3333 mmap private not fixed 3334 mmap private fixed at somewhere currently unmapped 3335 mmap private fixed at somewhere already mapped 3336 mmap shared not fixed 3337 mmap shared fixed at somewhere currently unmapped 3338 mmap shared fixed at somewhere already mapped 3339 For private mappings, we should verify that changes cannot be read() 3340 back from the file, nor mmap's back from the file at a different 3341 address. (There have been systems where private was not correctly 3342 implemented like the infamous i386 svr4.0, and systems where the 3343 VM page cache was not coherent with the filesystem buffer cache 3344 like early versions of FreeBSD and possibly contemporary NetBSD.) 3345 For shared mappings, we should conversely verify that changes get 3346 propogated back to all the places they're supposed to be. 3347 3348 Grep wants private fixed already mapped. 3349 The main things grep needs to know about mmap are: 3350 * does it exist and is it safe to write into the mmap'd area 3351 * how to use it (BSD variants) */ 3352#include <sys/types.h> 3353#include <fcntl.h> 3354#include <sys/mman.h> 3355 3356/* This mess was copied from the GNU getpagesize.h. */ 3357#ifndef HAVE_GETPAGESIZE 3358# ifdef HAVE_UNISTD_H 3359# include <unistd.h> 3360# endif 3361 3362/* Assume that all systems that can run configure have sys/param.h. */ 3363# ifndef HAVE_SYS_PARAM_H 3364# define HAVE_SYS_PARAM_H 1 3365# endif 3366 3367# ifdef _SC_PAGESIZE 3368# define getpagesize() sysconf(_SC_PAGESIZE) 3369# else /* no _SC_PAGESIZE */ 3370# ifdef HAVE_SYS_PARAM_H 3371# include <sys/param.h> 3372# ifdef EXEC_PAGESIZE 3373# define getpagesize() EXEC_PAGESIZE 3374# else /* no EXEC_PAGESIZE */ 3375# ifdef NBPG 3376# define getpagesize() NBPG * CLSIZE 3377# ifndef CLSIZE 3378# define CLSIZE 1 3379# endif /* no CLSIZE */ 3380# else /* no NBPG */ 3381# ifdef NBPC 3382# define getpagesize() NBPC 3383# else /* no NBPC */ 3384# ifdef PAGESIZE 3385# define getpagesize() PAGESIZE 3386# endif /* PAGESIZE */ 3387# endif /* no NBPC */ 3388# endif /* no NBPG */ 3389# endif /* no EXEC_PAGESIZE */ 3390# else /* no HAVE_SYS_PARAM_H */ 3391# define getpagesize() 8192 /* punt totally */ 3392# endif /* no HAVE_SYS_PARAM_H */ 3393# endif /* no _SC_PAGESIZE */ 3394 3395#endif /* no HAVE_GETPAGESIZE */ 3396 3397#ifdef __cplusplus 3398extern "C" { void *malloc(unsigned); } 3399#else 3400char *malloc(); 3401#endif 3402 3403int 3404main() 3405{ 3406 char *data, *data2, *data3; 3407 int i, pagesize; 3408 int fd; 3409 3410 pagesize = getpagesize(); 3411 3412 /* 3413 * First, make a file with some known garbage in it. 3414 */ 3415 data = malloc(pagesize); 3416 if (!data) 3417 exit(1); 3418 for (i = 0; i < pagesize; ++i) 3419 *(data + i) = rand(); 3420 umask(0); 3421 fd = creat("conftestmmap", 0600); 3422 if (fd < 0) 3423 exit(1); 3424 if (write(fd, data, pagesize) != pagesize) 3425 exit(1); 3426 close(fd); 3427 3428 /* 3429 * Next, try to mmap the file at a fixed address which 3430 * already has something else allocated at it. If we can, 3431 * also make sure that we see the same garbage. 3432 */ 3433 fd = open("conftestmmap", O_RDWR); 3434 if (fd < 0) 3435 exit(1); 3436 data2 = malloc(2 * pagesize); 3437 if (!data2) 3438 exit(1); 3439 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 3440 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 3441 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 3442 exit(1); 3443 for (i = 0; i < pagesize; ++i) 3444 if (*(data + i) != *(data2 + i)) 3445 exit(1); 3446 3447 /* 3448 * Finally, make sure that changes to the mapped area 3449 * do not percolate back to the file as seen by read(). 3450 * (This is a bug on some variants of i386 svr4.0.) 3451 */ 3452 for (i = 0; i < pagesize; ++i) 3453 *(data2 + i) = *(data2 + i) + 1; 3454 data3 = malloc(pagesize); 3455 if (!data3) 3456 exit(1); 3457 if (read(fd, data3, pagesize) != pagesize) 3458 exit(1); 3459 for (i = 0; i < pagesize; ++i) 3460 if (*(data + i) != *(data3 + i)) 3461 exit(1); 3462 close(fd); 3463 unlink("conftestmmap"); 3464 exit(0); 3465} 3466 3467EOF 3468if { (eval echo configure:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3469then 3470 ac_cv_func_mmap_fixed_mapped=yes 3471else 3472 echo "configure: failed program was:" >&5 3473 cat conftest.$ac_ext >&5 3474 rm -fr conftest* 3475 ac_cv_func_mmap_fixed_mapped=no 3476fi 3477rm -fr conftest* 3478fi 3479 3480fi 3481 3482echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 3483if test $ac_cv_func_mmap_fixed_mapped = yes; then 3484 cat >> confdefs.h <<\EOF 3485#define HAVE_MMAP 1 3486EOF 3487 3488fi 3489 3490 3491 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 3492unistd.h values.h sys/param.h 3493do 3494ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3495echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3496echo "configure:3497: checking for $ac_hdr" >&5 3497if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3498 echo $ac_n "(cached) $ac_c" 1>&6 3499else 3500 cat > conftest.$ac_ext <<EOF 3501#line 3502 "configure" 3502#include "confdefs.h" 3503#include <$ac_hdr> 3504EOF 3505ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3506{ (eval echo configure:3507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3507ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3508if test -z "$ac_err"; then 3509 rm -rf conftest* 3510 eval "ac_cv_header_$ac_safe=yes" 3511else 3512 echo "$ac_err" >&5 3513 echo "configure: failed program was:" >&5 3514 cat conftest.$ac_ext >&5 3515 rm -rf conftest* 3516 eval "ac_cv_header_$ac_safe=no" 3517fi 3518rm -f conftest* 3519fi 3520if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3521 echo "$ac_t""yes" 1>&6 3522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3523 cat >> confdefs.h <<EOF 3524#define $ac_tr_hdr 1 3525EOF 3526 3527else 3528 echo "$ac_t""no" 1>&6 3529fi 3530done 3531 3532 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 3533__argz_count __argz_stringify __argz_next 3534do 3535echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3536echo "configure:3537: checking for $ac_func" >&5 3537if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3538 echo $ac_n "(cached) $ac_c" 1>&6 3539else 3540 cat > conftest.$ac_ext <<EOF 3541#line 3542 "configure" 3542#include "confdefs.h" 3543/* System header to define __stub macros and hopefully few prototypes, 3544 which can conflict with char $ac_func(); below. */ 3545#include <assert.h> 3546/* Override any gcc2 internal prototype to avoid an error. */ 3547/* We use char because int might match the return type of a gcc2 3548 builtin and then its argument prototype would still apply. */ 3549char $ac_func(); 3550 3551int main() { 3552 3553/* The GNU C library defines this for functions which it implements 3554 to always fail with ENOSYS. Some functions are actually named 3555 something starting with __ and the normal name is an alias. */ 3556#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3557choke me 3558#else 3559$ac_func(); 3560#endif 3561 3562; return 0; } 3563EOF 3564if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3565 rm -rf conftest* 3566 eval "ac_cv_func_$ac_func=yes" 3567else 3568 echo "configure: failed program was:" >&5 3569 cat conftest.$ac_ext >&5 3570 rm -rf conftest* 3571 eval "ac_cv_func_$ac_func=no" 3572fi 3573rm -f conftest* 3574fi 3575 3576if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3577 echo "$ac_t""yes" 1>&6 3578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3579 cat >> confdefs.h <<EOF 3580#define $ac_tr_func 1 3581EOF 3582 3583else 3584 echo "$ac_t""no" 1>&6 3585fi 3586done 3587 3588 3589 if test "${ac_cv_func_stpcpy+set}" != "set"; then 3590 for ac_func in stpcpy 3591do 3592echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3593echo "configure:3594: checking for $ac_func" >&5 3594if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3595 echo $ac_n "(cached) $ac_c" 1>&6 3596else 3597 cat > conftest.$ac_ext <<EOF 3598#line 3599 "configure" 3599#include "confdefs.h" 3600/* System header to define __stub macros and hopefully few prototypes, 3601 which can conflict with char $ac_func(); below. */ 3602#include <assert.h> 3603/* Override any gcc2 internal prototype to avoid an error. */ 3604/* We use char because int might match the return type of a gcc2 3605 builtin and then its argument prototype would still apply. */ 3606char $ac_func(); 3607 3608int main() { 3609 3610/* The GNU C library defines this for functions which it implements 3611 to always fail with ENOSYS. Some functions are actually named 3612 something starting with __ and the normal name is an alias. */ 3613#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3614choke me 3615#else 3616$ac_func(); 3617#endif 3618 3619; return 0; } 3620EOF 3621if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3622 rm -rf conftest* 3623 eval "ac_cv_func_$ac_func=yes" 3624else 3625 echo "configure: failed program was:" >&5 3626 cat conftest.$ac_ext >&5 3627 rm -rf conftest* 3628 eval "ac_cv_func_$ac_func=no" 3629fi 3630rm -f conftest* 3631fi 3632 3633if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3634 echo "$ac_t""yes" 1>&6 3635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3636 cat >> confdefs.h <<EOF 3637#define $ac_tr_func 1 3638EOF 3639 3640else 3641 echo "$ac_t""no" 1>&6 3642fi 3643done 3644 3645 fi 3646 if test "${ac_cv_func_stpcpy}" = "yes"; then 3647 cat >> confdefs.h <<\EOF 3648#define HAVE_STPCPY 1 3649EOF 3650 3651 fi 3652 3653 if test $ac_cv_header_locale_h = yes; then 3654 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 3655echo "configure:3656: checking for LC_MESSAGES" >&5 3656if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then 3657 echo $ac_n "(cached) $ac_c" 1>&6 3658else 3659 cat > conftest.$ac_ext <<EOF 3660#line 3661 "configure" 3661#include "confdefs.h" 3662#include <locale.h> 3663int main() { 3664return LC_MESSAGES 3665; return 0; } 3666EOF 3667if { (eval echo configure:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3668 rm -rf conftest* 3669 am_cv_val_LC_MESSAGES=yes 3670else 3671 echo "configure: failed program was:" >&5 3672 cat conftest.$ac_ext >&5 3673 rm -rf conftest* 3674 am_cv_val_LC_MESSAGES=no 3675fi 3676rm -f conftest* 3677fi 3678 3679echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 3680 if test $am_cv_val_LC_MESSAGES = yes; then 3681 cat >> confdefs.h <<\EOF 3682#define HAVE_LC_MESSAGES 1 3683EOF 3684 3685 fi 3686 fi 3687 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 3688echo "configure:3689: checking whether NLS is requested" >&5 3689 # Check whether --enable-nls or --disable-nls was given. 3690if test "${enable_nls+set}" = set; then 3691 enableval="$enable_nls" 3692 USE_NLS=$enableval 3693else 3694 USE_NLS=yes 3695fi 3696 3697 echo "$ac_t""$USE_NLS" 1>&6 3698 3699 3700 USE_INCLUDED_LIBINTL=no 3701 3702 if test "$USE_NLS" = "yes"; then 3703 cat >> confdefs.h <<\EOF 3704#define ENABLE_NLS 1 3705EOF 3706 3707 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 3708echo "configure:3709: checking whether included gettext is requested" >&5 3709 # Check whether --with-included-gettext or --without-included-gettext was given. 3710if test "${with_included_gettext+set}" = set; then 3711 withval="$with_included_gettext" 3712 nls_cv_force_use_gnu_gettext=$withval 3713else 3714 nls_cv_force_use_gnu_gettext=no 3715fi 3716 3717 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 3718 3719 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 3720 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 3721 nls_cv_header_intl= 3722 nls_cv_header_libgt= 3723 CATOBJEXT=NONE 3724 3725 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` 3726echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 3727echo "configure:3728: checking for libintl.h" >&5 3728if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3729 echo $ac_n "(cached) $ac_c" 1>&6 3730else 3731 cat > conftest.$ac_ext <<EOF 3732#line 3733 "configure" 3733#include "confdefs.h" 3734#include <libintl.h> 3735EOF 3736ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3737{ (eval echo configure:3738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3738ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3739if test -z "$ac_err"; then 3740 rm -rf conftest* 3741 eval "ac_cv_header_$ac_safe=yes" 3742else 3743 echo "$ac_err" >&5 3744 echo "configure: failed program was:" >&5 3745 cat conftest.$ac_ext >&5 3746 rm -rf conftest* 3747 eval "ac_cv_header_$ac_safe=no" 3748fi 3749rm -f conftest* 3750fi 3751if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3752 echo "$ac_t""yes" 1>&6 3753 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 3754echo "configure:3755: checking for gettext in libc" >&5 3755if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then 3756 echo $ac_n "(cached) $ac_c" 1>&6 3757else 3758 cat > conftest.$ac_ext <<EOF 3759#line 3760 "configure" 3760#include "confdefs.h" 3761#include <libintl.h> 3762int main() { 3763return (int) gettext ("") 3764; return 0; } 3765EOF 3766if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3767 rm -rf conftest* 3768 gt_cv_func_gettext_libc=yes 3769else 3770 echo "configure: failed program was:" >&5 3771 cat conftest.$ac_ext >&5 3772 rm -rf conftest* 3773 gt_cv_func_gettext_libc=no 3774fi 3775rm -f conftest* 3776fi 3777 3778echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 3779 3780 if test "$gt_cv_func_gettext_libc" != "yes"; then 3781 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 3782echo "configure:3783: checking for bindtextdomain in -lintl" >&5 3783ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` 3784if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3785 echo $ac_n "(cached) $ac_c" 1>&6 3786else 3787 ac_save_LIBS="$LIBS" 3788LIBS="-lintl $LIBS" 3789cat > conftest.$ac_ext <<EOF 3790#line 3791 "configure" 3791#include "confdefs.h" 3792/* Override any gcc2 internal prototype to avoid an error. */ 3793/* We use char because int might match the return type of a gcc2 3794 builtin and then its argument prototype would still apply. */ 3795char bindtextdomain(); 3796 3797int main() { 3798bindtextdomain() 3799; return 0; } 3800EOF 3801if { (eval echo configure:3802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3802 rm -rf conftest* 3803 eval "ac_cv_lib_$ac_lib_var=yes" 3804else 3805 echo "configure: failed program was:" >&5 3806 cat conftest.$ac_ext >&5 3807 rm -rf conftest* 3808 eval "ac_cv_lib_$ac_lib_var=no" 3809fi 3810rm -f conftest* 3811LIBS="$ac_save_LIBS" 3812 3813fi 3814if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3815 echo "$ac_t""yes" 1>&6 3816 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 3817echo "configure:3818: checking for gettext in libintl" >&5 3818if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then 3819 echo $ac_n "(cached) $ac_c" 1>&6 3820else 3821 cat > conftest.$ac_ext <<EOF 3822#line 3823 "configure" 3823#include "confdefs.h" 3824 3825int main() { 3826return (int) gettext ("") 3827; return 0; } 3828EOF 3829if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3830 rm -rf conftest* 3831 gt_cv_func_gettext_libintl=yes 3832else 3833 echo "configure: failed program was:" >&5 3834 cat conftest.$ac_ext >&5 3835 rm -rf conftest* 3836 gt_cv_func_gettext_libintl=no 3837fi 3838rm -f conftest* 3839fi 3840 3841echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 3842else 3843 echo "$ac_t""no" 1>&6 3844fi 3845 3846 fi 3847 3848 if test "$gt_cv_func_gettext_libc" = "yes" \ 3849 || test "$gt_cv_func_gettext_libintl" = "yes"; then 3850 cat >> confdefs.h <<\EOF 3851#define HAVE_GETTEXT 1 3852EOF 3853 3854 # Extract the first word of "msgfmt", so it can be a program name with args. 3855set dummy msgfmt; ac_word=$2 3856echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3857echo "configure:3858: checking for $ac_word" >&5 3858if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 3859 echo $ac_n "(cached) $ac_c" 1>&6 3860else 3861 case "$MSGFMT" in 3862 /*) 3863 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3864 ;; 3865 *) 3866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3867 for ac_dir in $PATH; do 3868 test -z "$ac_dir" && ac_dir=. 3869 if test -f $ac_dir/$ac_word; then 3870 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 3871 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 3872 break 3873 fi 3874 fi 3875 done 3876 IFS="$ac_save_ifs" 3877 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 3878 ;; 3879esac 3880fi 3881MSGFMT="$ac_cv_path_MSGFMT" 3882if test -n "$MSGFMT"; then 3883 echo "$ac_t""$MSGFMT" 1>&6 3884else 3885 echo "$ac_t""no" 1>&6 3886fi 3887 if test "$MSGFMT" != "no"; then 3888 for ac_func in dcgettext 3889do 3890echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3891echo "configure:3892: checking for $ac_func" >&5 3892if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3893 echo $ac_n "(cached) $ac_c" 1>&6 3894else 3895 cat > conftest.$ac_ext <<EOF 3896#line 3897 "configure" 3897#include "confdefs.h" 3898/* System header to define __stub macros and hopefully few prototypes, 3899 which can conflict with char $ac_func(); below. */ 3900#include <assert.h> 3901/* Override any gcc2 internal prototype to avoid an error. */ 3902/* We use char because int might match the return type of a gcc2 3903 builtin and then its argument prototype would still apply. */ 3904char $ac_func(); 3905 3906int main() { 3907 3908/* The GNU C library defines this for functions which it implements 3909 to always fail with ENOSYS. Some functions are actually named 3910 something starting with __ and the normal name is an alias. */ 3911#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3912choke me 3913#else 3914$ac_func(); 3915#endif 3916 3917; return 0; } 3918EOF 3919if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3920 rm -rf conftest* 3921 eval "ac_cv_func_$ac_func=yes" 3922else 3923 echo "configure: failed program was:" >&5 3924 cat conftest.$ac_ext >&5 3925 rm -rf conftest* 3926 eval "ac_cv_func_$ac_func=no" 3927fi 3928rm -f conftest* 3929fi 3930 3931if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3932 echo "$ac_t""yes" 1>&6 3933 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3934 cat >> confdefs.h <<EOF 3935#define $ac_tr_func 1 3936EOF 3937 3938else 3939 echo "$ac_t""no" 1>&6 3940fi 3941done 3942 3943 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3944set dummy gmsgfmt; ac_word=$2 3945echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3946echo "configure:3947: checking for $ac_word" >&5 3947if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 3948 echo $ac_n "(cached) $ac_c" 1>&6 3949else 3950 case "$GMSGFMT" in 3951 /*) 3952 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3953 ;; 3954 ?:/*) 3955 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 3956 ;; 3957 *) 3958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3959 ac_dummy="$PATH" 3960 for ac_dir in $ac_dummy; do 3961 test -z "$ac_dir" && ac_dir=. 3962 if test -f $ac_dir/$ac_word; then 3963 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 3964 break 3965 fi 3966 done 3967 IFS="$ac_save_ifs" 3968 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3969 ;; 3970esac 3971fi 3972GMSGFMT="$ac_cv_path_GMSGFMT" 3973if test -n "$GMSGFMT"; then 3974 echo "$ac_t""$GMSGFMT" 1>&6 3975else 3976 echo "$ac_t""no" 1>&6 3977fi 3978 3979 # Extract the first word of "xgettext", so it can be a program name with args. 3980set dummy xgettext; ac_word=$2 3981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3982echo "configure:3983: checking for $ac_word" >&5 3983if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 3984 echo $ac_n "(cached) $ac_c" 1>&6 3985else 3986 case "$XGETTEXT" in 3987 /*) 3988 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3989 ;; 3990 *) 3991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3992 for ac_dir in $PATH; do 3993 test -z "$ac_dir" && ac_dir=. 3994 if test -f $ac_dir/$ac_word; then 3995 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 3996 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 3997 break 3998 fi 3999 fi 4000 done 4001 IFS="$ac_save_ifs" 4002 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4003 ;; 4004esac 4005fi 4006XGETTEXT="$ac_cv_path_XGETTEXT" 4007if test -n "$XGETTEXT"; then 4008 echo "$ac_t""$XGETTEXT" 1>&6 4009else 4010 echo "$ac_t""no" 1>&6 4011fi 4012 4013 cat > conftest.$ac_ext <<EOF 4014#line 4015 "configure" 4015#include "confdefs.h" 4016 4017int main() { 4018extern int _nl_msg_cat_cntr; 4019 return _nl_msg_cat_cntr 4020; return 0; } 4021EOF 4022if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4023 rm -rf conftest* 4024 CATOBJEXT=.gmo 4025 DATADIRNAME=share 4026else 4027 echo "configure: failed program was:" >&5 4028 cat conftest.$ac_ext >&5 4029 rm -rf conftest* 4030 CATOBJEXT=.mo 4031 DATADIRNAME=lib 4032fi 4033rm -f conftest* 4034 INSTOBJEXT=.mo 4035 fi 4036 fi 4037 4038else 4039 echo "$ac_t""no" 1>&6 4040fi 4041 4042 4043 4044 if test "$CATOBJEXT" = "NONE"; then 4045 nls_cv_use_gnu_gettext=yes 4046 fi 4047 fi 4048 4049 if test "$nls_cv_use_gnu_gettext" = "yes"; then 4050 INTLOBJS="\$(GETTOBJS)" 4051 # Extract the first word of "msgfmt", so it can be a program name with args. 4052set dummy msgfmt; ac_word=$2 4053echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4054echo "configure:4055: checking for $ac_word" >&5 4055if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 4056 echo $ac_n "(cached) $ac_c" 1>&6 4057else 4058 case "$MSGFMT" in 4059 /*) 4060 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4061 ;; 4062 *) 4063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 4064 for ac_dir in $PATH; do 4065 test -z "$ac_dir" && ac_dir=. 4066 if test -f $ac_dir/$ac_word; then 4067 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 4068 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 4069 break 4070 fi 4071 fi 4072 done 4073 IFS="$ac_save_ifs" 4074 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 4075 ;; 4076esac 4077fi 4078MSGFMT="$ac_cv_path_MSGFMT" 4079if test -n "$MSGFMT"; then 4080 echo "$ac_t""$MSGFMT" 1>&6 4081else 4082 echo "$ac_t""no" 1>&6 4083fi 4084 4085 # Extract the first word of "gmsgfmt", so it can be a program name with args. 4086set dummy gmsgfmt; ac_word=$2 4087echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4088echo "configure:4089: checking for $ac_word" >&5 4089if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 4090 echo $ac_n "(cached) $ac_c" 1>&6 4091else 4092 case "$GMSGFMT" in 4093 /*) 4094 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4095 ;; 4096 ?:/*) 4097 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 4098 ;; 4099 *) 4100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4101 ac_dummy="$PATH" 4102 for ac_dir in $ac_dummy; do 4103 test -z "$ac_dir" && ac_dir=. 4104 if test -f $ac_dir/$ac_word; then 4105 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 4106 break 4107 fi 4108 done 4109 IFS="$ac_save_ifs" 4110 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4111 ;; 4112esac 4113fi 4114GMSGFMT="$ac_cv_path_GMSGFMT" 4115if test -n "$GMSGFMT"; then 4116 echo "$ac_t""$GMSGFMT" 1>&6 4117else 4118 echo "$ac_t""no" 1>&6 4119fi 4120 4121 # Extract the first word of "xgettext", so it can be a program name with args. 4122set dummy xgettext; ac_word=$2 4123echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4124echo "configure:4125: checking for $ac_word" >&5 4125if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 4126 echo $ac_n "(cached) $ac_c" 1>&6 4127else 4128 case "$XGETTEXT" in 4129 /*) 4130 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4131 ;; 4132 *) 4133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 4134 for ac_dir in $PATH; do 4135 test -z "$ac_dir" && ac_dir=. 4136 if test -f $ac_dir/$ac_word; then 4137 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 4138 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 4139 break 4140 fi 4141 fi 4142 done 4143 IFS="$ac_save_ifs" 4144 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4145 ;; 4146esac 4147fi 4148XGETTEXT="$ac_cv_path_XGETTEXT" 4149if test -n "$XGETTEXT"; then 4150 echo "$ac_t""$XGETTEXT" 1>&6 4151else 4152 echo "$ac_t""no" 1>&6 4153fi 4154 4155 4156 USE_INCLUDED_LIBINTL=yes 4157 CATOBJEXT=.gmo 4158 INSTOBJEXT=.mo 4159 DATADIRNAME=share 4160 INTLDEPS='$(top_builddir)/../intl/libintl.a' 4161 INTLLIBS=$INTLDEPS 4162 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 4163 nls_cv_header_intl=libintl.h 4164 nls_cv_header_libgt=libgettext.h 4165 fi 4166 4167 if test "$XGETTEXT" != ":"; then 4168 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 4169 : ; 4170 else 4171 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 4172 XGETTEXT=":" 4173 fi 4174 fi 4175 4176 # We need to process the po/ directory. 4177 POSUB=po 4178 else 4179 DATADIRNAME=share 4180 nls_cv_header_intl=libintl.h 4181 nls_cv_header_libgt=libgettext.h 4182 fi 4183 4184 # If this is used in GNU gettext we have to set USE_NLS to `yes' 4185 # because some of the sources are only built for this goal. 4186 if test "$PACKAGE" = gettext; then 4187 USE_NLS=yes 4188 USE_INCLUDED_LIBINTL=yes 4189 fi 4190 4191 for lang in $ALL_LINGUAS; do 4192 GMOFILES="$GMOFILES $lang.gmo" 4193 POFILES="$POFILES $lang.po" 4194 done 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 if test "x$CATOBJEXT" != "x"; then 4210 if test "x$ALL_LINGUAS" = "x"; then 4211 LINGUAS= 4212 else 4213 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 4214echo "configure:4215: checking for catalogs to be installed" >&5 4215 NEW_LINGUAS= 4216 for lang in ${LINGUAS=$ALL_LINGUAS}; do 4217 case "$ALL_LINGUAS" in 4218 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 4219 esac 4220 done 4221 LINGUAS=$NEW_LINGUAS 4222 echo "$ac_t""$LINGUAS" 1>&6 4223 fi 4224 4225 if test -n "$LINGUAS"; then 4226 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 4227 fi 4228 fi 4229 4230 if test $ac_cv_header_locale_h = yes; then 4231 INCLUDE_LOCALE_H="#include <locale.h>" 4232 else 4233 INCLUDE_LOCALE_H="\ 4234/* The system does not provide the header <locale.h>. Take care yourself. */" 4235 fi 4236 4237 4238 if test -f $srcdir/po2tbl.sed.in; then 4239 if test "$CATOBJEXT" = ".cat"; then 4240 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` 4241echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 4242echo "configure:4243: checking for linux/version.h" >&5 4243if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4244 echo $ac_n "(cached) $ac_c" 1>&6 4245else 4246 cat > conftest.$ac_ext <<EOF 4247#line 4248 "configure" 4248#include "confdefs.h" 4249#include <linux/version.h> 4250EOF 4251ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4252{ (eval echo configure:4253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4253ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4254if test -z "$ac_err"; then 4255 rm -rf conftest* 4256 eval "ac_cv_header_$ac_safe=yes" 4257else 4258 echo "$ac_err" >&5 4259 echo "configure: failed program was:" >&5 4260 cat conftest.$ac_ext >&5 4261 rm -rf conftest* 4262 eval "ac_cv_header_$ac_safe=no" 4263fi 4264rm -f conftest* 4265fi 4266if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4267 echo "$ac_t""yes" 1>&6 4268 msgformat=linux 4269else 4270 echo "$ac_t""no" 1>&6 4271msgformat=xopen 4272fi 4273 4274 4275 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed 4276 fi 4277 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 4278 $srcdir/po2tbl.sed.in > po2tbl.sed 4279 fi 4280 4281 if test "$PACKAGE" = "gettext"; then 4282 GT_NO="#NO#" 4283 GT_YES= 4284 else 4285 GT_NO= 4286 GT_YES="#YES#" 4287 fi 4288 4289 4290 4291 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" 4292 4293 4294 l= 4295 4296 4297 if test -f $srcdir/po/POTFILES.in; then 4298 test -d po || mkdir po 4299 if test "x$srcdir" != "x."; then 4300 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 4301 posrcprefix="$srcdir/" 4302 else 4303 posrcprefix="../$srcdir/" 4304 fi 4305 else 4306 posrcprefix="../" 4307 fi 4308 rm -f po/POTFILES 4309 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 4310 < $srcdir/po/POTFILES.in > po/POTFILES 4311 fi 4312 4313 4314 4315 4316echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 4317echo "configure:4318: checking for executable suffix" >&5 4318if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 4319 echo $ac_n "(cached) $ac_c" 1>&6 4320else 4321 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4322 ac_cv_exeext=.exe 4323else 4324 rm -f conftest* 4325 echo 'int main () { return 0; }' > conftest.$ac_ext 4326 ac_cv_exeext= 4327 if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 4328 for file in conftest.*; do 4329 case $file in 4330 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 4331 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 4332 esac 4333 done 4334 else 4335 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 4336 fi 4337 rm -f conftest* 4338 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 4339fi 4340fi 4341 4342EXEEXT="" 4343test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 4344echo "$ac_t""${ac_cv_exeext}" 1>&6 4345ac_exeext=$EXEEXT 4346 4347 4348for ac_prog in 'bison -y' byacc 4349do 4350# Extract the first word of "$ac_prog", so it can be a program name with args. 4351set dummy $ac_prog; ac_word=$2 4352echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4353echo "configure:4354: checking for $ac_word" >&5 4354if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 4355 echo $ac_n "(cached) $ac_c" 1>&6 4356else 4357 if test -n "$YACC"; then 4358 ac_cv_prog_YACC="$YACC" # Let the user override the test. 4359else 4360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4361 ac_dummy="$PATH" 4362 for ac_dir in $ac_dummy; do 4363 test -z "$ac_dir" && ac_dir=. 4364 if test -f $ac_dir/$ac_word; then 4365 ac_cv_prog_YACC="$ac_prog" 4366 break 4367 fi 4368 done 4369 IFS="$ac_save_ifs" 4370fi 4371fi 4372YACC="$ac_cv_prog_YACC" 4373if test -n "$YACC"; then 4374 echo "$ac_t""$YACC" 1>&6 4375else 4376 echo "$ac_t""no" 1>&6 4377fi 4378 4379test -n "$YACC" && break 4380done 4381test -n "$YACC" || YACC="yacc" 4382 4383missing_dir=`cd $ac_aux_dir && pwd` 4384for ac_prog in flex lex 4385do 4386# Extract the first word of "$ac_prog", so it can be a program name with args. 4387set dummy $ac_prog; ac_word=$2 4388echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4389echo "configure:4390: checking for $ac_word" >&5 4390if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 4391 echo $ac_n "(cached) $ac_c" 1>&6 4392else 4393 if test -n "$LEX"; then 4394 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4395else 4396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4397 ac_dummy="$PATH" 4398 for ac_dir in $ac_dummy; do 4399 test -z "$ac_dir" && ac_dir=. 4400 if test -f $ac_dir/$ac_word; then 4401 ac_cv_prog_LEX="$ac_prog" 4402 break 4403 fi 4404 done 4405 IFS="$ac_save_ifs" 4406fi 4407fi 4408LEX="$ac_cv_prog_LEX" 4409if test -n "$LEX"; then 4410 echo "$ac_t""$LEX" 1>&6 4411else 4412 echo "$ac_t""no" 1>&6 4413fi 4414 4415test -n "$LEX" && break 4416done 4417test -n "$LEX" || LEX=""$missing_dir/missing flex"" 4418 4419# Extract the first word of "flex", so it can be a program name with args. 4420set dummy flex; ac_word=$2 4421echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4422echo "configure:4423: checking for $ac_word" >&5 4423if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 4424 echo $ac_n "(cached) $ac_c" 1>&6 4425else 4426 if test -n "$LEX"; then 4427 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4428else 4429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4430 ac_dummy="$PATH" 4431 for ac_dir in $ac_dummy; do 4432 test -z "$ac_dir" && ac_dir=. 4433 if test -f $ac_dir/$ac_word; then 4434 ac_cv_prog_LEX="flex" 4435 break 4436 fi 4437 done 4438 IFS="$ac_save_ifs" 4439 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" 4440fi 4441fi 4442LEX="$ac_cv_prog_LEX" 4443if test -n "$LEX"; then 4444 echo "$ac_t""$LEX" 1>&6 4445else 4446 echo "$ac_t""no" 1>&6 4447fi 4448 4449if test -z "$LEXLIB" 4450then 4451 case "$LEX" in 4452 flex*) ac_lib=fl ;; 4453 *) ac_lib=l ;; 4454 esac 4455 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 4456echo "configure:4457: checking for yywrap in -l$ac_lib" >&5 4457ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` 4458if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4459 echo $ac_n "(cached) $ac_c" 1>&6 4460else 4461 ac_save_LIBS="$LIBS" 4462LIBS="-l$ac_lib $LIBS" 4463cat > conftest.$ac_ext <<EOF 4464#line 4465 "configure" 4465#include "confdefs.h" 4466/* Override any gcc2 internal prototype to avoid an error. */ 4467/* We use char because int might match the return type of a gcc2 4468 builtin and then its argument prototype would still apply. */ 4469char yywrap(); 4470 4471int main() { 4472yywrap() 4473; return 0; } 4474EOF 4475if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4476 rm -rf conftest* 4477 eval "ac_cv_lib_$ac_lib_var=yes" 4478else 4479 echo "configure: failed program was:" >&5 4480 cat conftest.$ac_ext >&5 4481 rm -rf conftest* 4482 eval "ac_cv_lib_$ac_lib_var=no" 4483fi 4484rm -f conftest* 4485LIBS="$ac_save_LIBS" 4486 4487fi 4488if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4489 echo "$ac_t""yes" 1>&6 4490 LEXLIB="-l$ac_lib" 4491else 4492 echo "$ac_t""no" 1>&6 4493fi 4494 4495fi 4496 4497echo $ac_n "checking lex output file root""... $ac_c" 1>&6 4498echo "configure:4499: checking lex output file root" >&5 4499if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then 4500 echo $ac_n "(cached) $ac_c" 1>&6 4501else 4502 # The minimal lex program is just a single line: %%. But some broken lexes 4503# (Solaris, I think it was) want two %% lines, so accommodate them. 4504echo '%% 4505%%' | $LEX 4506if test -f lex.yy.c; then 4507 ac_cv_prog_lex_root=lex.yy 4508elif test -f lexyy.c; then 4509 ac_cv_prog_lex_root=lexyy 4510else 4511 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } 4512fi 4513fi 4514 4515echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 4516LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4517 4518echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 4519echo "configure:4520: checking whether yytext is a pointer" >&5 4520if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then 4521 echo $ac_n "(cached) $ac_c" 1>&6 4522else 4523 # POSIX says lex can declare yytext either as a pointer or an array; the 4524# default is implementation-dependent. Figure out which it is, since 4525# not all implementations provide the %pointer and %array declarations. 4526ac_cv_prog_lex_yytext_pointer=no 4527echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 4528ac_save_LIBS="$LIBS" 4529LIBS="$LIBS $LEXLIB" 4530cat > conftest.$ac_ext <<EOF 4531#line 4532 "configure" 4532#include "confdefs.h" 4533`cat $LEX_OUTPUT_ROOT.c` 4534int main() { 4535 4536; return 0; } 4537EOF 4538if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4539 rm -rf conftest* 4540 ac_cv_prog_lex_yytext_pointer=yes 4541else 4542 echo "configure: failed program was:" >&5 4543 cat conftest.$ac_ext >&5 4544fi 4545rm -f conftest* 4546LIBS="$ac_save_LIBS" 4547rm -f "${LEX_OUTPUT_ROOT}.c" 4548 4549fi 4550 4551echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 4552if test $ac_cv_prog_lex_yytext_pointer = yes; then 4553 cat >> confdefs.h <<\EOF 4554#define YYTEXT_POINTER 1 4555EOF 4556 4557fi 4558 4559 4560echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 4561echo "configure:4562: checking whether to enable maintainer-specific portions of Makefiles" >&5 4562 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 4563if test "${enable_maintainer_mode+set}" = set; then 4564 enableval="$enable_maintainer_mode" 4565 USE_MAINTAINER_MODE=$enableval 4566else 4567 USE_MAINTAINER_MODE=no 4568fi 4569 4570 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 4571 4572 4573if test $USE_MAINTAINER_MODE = yes; then 4574 MAINTAINER_MODE_TRUE= 4575 MAINTAINER_MODE_FALSE='#' 4576else 4577 MAINTAINER_MODE_TRUE='#' 4578 MAINTAINER_MODE_FALSE= 4579fi 4580 MAINT=$MAINTAINER_MODE_TRUE 4581 4582 4583 4584. ${srcdir}/configure.host 4585 4586 4587 4588 4589 4590 4591for ac_hdr in string.h strings.h stdlib.h unistd.h 4592do 4593ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4594echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4595echo "configure:4596: checking for $ac_hdr" >&5 4596if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4597 echo $ac_n "(cached) $ac_c" 1>&6 4598else 4599 cat > conftest.$ac_ext <<EOF 4600#line 4601 "configure" 4601#include "confdefs.h" 4602#include <$ac_hdr> 4603EOF 4604ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4605{ (eval echo configure:4606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4606ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4607if test -z "$ac_err"; then 4608 rm -rf conftest* 4609 eval "ac_cv_header_$ac_safe=yes" 4610else 4611 echo "$ac_err" >&5 4612 echo "configure: failed program was:" >&5 4613 cat conftest.$ac_ext >&5 4614 rm -rf conftest* 4615 eval "ac_cv_header_$ac_safe=no" 4616fi 4617rm -f conftest* 4618fi 4619if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4620 echo "$ac_t""yes" 1>&6 4621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4622 cat >> confdefs.h <<EOF 4623#define $ac_tr_hdr 1 4624EOF 4625 4626else 4627 echo "$ac_t""no" 1>&6 4628fi 4629done 4630 4631for ac_func in sbrk realpath 4632do 4633echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4634echo "configure:4635: checking for $ac_func" >&5 4635if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4636 echo $ac_n "(cached) $ac_c" 1>&6 4637else 4638 cat > conftest.$ac_ext <<EOF 4639#line 4640 "configure" 4640#include "confdefs.h" 4641/* System header to define __stub macros and hopefully few prototypes, 4642 which can conflict with char $ac_func(); below. */ 4643#include <assert.h> 4644/* Override any gcc2 internal prototype to avoid an error. */ 4645/* We use char because int might match the return type of a gcc2 4646 builtin and then its argument prototype would still apply. */ 4647char $ac_func(); 4648 4649int main() { 4650 4651/* The GNU C library defines this for functions which it implements 4652 to always fail with ENOSYS. Some functions are actually named 4653 something starting with __ and the normal name is an alias. */ 4654#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4655choke me 4656#else 4657$ac_func(); 4658#endif 4659 4660; return 0; } 4661EOF 4662if { (eval echo configure:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4663 rm -rf conftest* 4664 eval "ac_cv_func_$ac_func=yes" 4665else 4666 echo "configure: failed program was:" >&5 4667 cat conftest.$ac_ext >&5 4668 rm -rf conftest* 4669 eval "ac_cv_func_$ac_func=no" 4670fi 4671rm -f conftest* 4672fi 4673 4674if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4675 echo "$ac_t""yes" 1>&6 4676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4677 cat >> confdefs.h <<EOF 4678#define $ac_tr_func 1 4679EOF 4680 4681else 4682 echo "$ac_t""no" 1>&6 4683fi 4684done 4685 4686ac_header_dirent=no 4687for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 4688do 4689ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4690echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 4691echo "configure:4692: checking for $ac_hdr that defines DIR" >&5 4692if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 4693 echo $ac_n "(cached) $ac_c" 1>&6 4694else 4695 cat > conftest.$ac_ext <<EOF 4696#line 4697 "configure" 4697#include "confdefs.h" 4698#include <sys/types.h> 4699#include <$ac_hdr> 4700int main() { 4701DIR *dirp = 0; 4702; return 0; } 4703EOF 4704if { (eval echo configure:4705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4705 rm -rf conftest* 4706 eval "ac_cv_header_dirent_$ac_safe=yes" 4707else 4708 echo "configure: failed program was:" >&5 4709 cat conftest.$ac_ext >&5 4710 rm -rf conftest* 4711 eval "ac_cv_header_dirent_$ac_safe=no" 4712fi 4713rm -f conftest* 4714fi 4715if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 4716 echo "$ac_t""yes" 1>&6 4717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4718 cat >> confdefs.h <<EOF 4719#define $ac_tr_hdr 1 4720EOF 4721 ac_header_dirent=$ac_hdr; break 4722else 4723 echo "$ac_t""no" 1>&6 4724fi 4725done 4726# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4727if test $ac_header_dirent = dirent.h; then 4728echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 4729echo "configure:4730: checking for opendir in -ldir" >&5 4730ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 4731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4732 echo $ac_n "(cached) $ac_c" 1>&6 4733else 4734 ac_save_LIBS="$LIBS" 4735LIBS="-ldir $LIBS" 4736cat > conftest.$ac_ext <<EOF 4737#line 4738 "configure" 4738#include "confdefs.h" 4739/* Override any gcc2 internal prototype to avoid an error. */ 4740/* We use char because int might match the return type of a gcc2 4741 builtin and then its argument prototype would still apply. */ 4742char opendir(); 4743 4744int main() { 4745opendir() 4746; return 0; } 4747EOF 4748if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4749 rm -rf conftest* 4750 eval "ac_cv_lib_$ac_lib_var=yes" 4751else 4752 echo "configure: failed program was:" >&5 4753 cat conftest.$ac_ext >&5 4754 rm -rf conftest* 4755 eval "ac_cv_lib_$ac_lib_var=no" 4756fi 4757rm -f conftest* 4758LIBS="$ac_save_LIBS" 4759 4760fi 4761if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4762 echo "$ac_t""yes" 1>&6 4763 LIBS="$LIBS -ldir" 4764else 4765 echo "$ac_t""no" 1>&6 4766fi 4767 4768else 4769echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 4770echo "configure:4771: checking for opendir in -lx" >&5 4771ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 4772if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4773 echo $ac_n "(cached) $ac_c" 1>&6 4774else 4775 ac_save_LIBS="$LIBS" 4776LIBS="-lx $LIBS" 4777cat > conftest.$ac_ext <<EOF 4778#line 4779 "configure" 4779#include "confdefs.h" 4780/* Override any gcc2 internal prototype to avoid an error. */ 4781/* We use char because int might match the return type of a gcc2 4782 builtin and then its argument prototype would still apply. */ 4783char opendir(); 4784 4785int main() { 4786opendir() 4787; return 0; } 4788EOF 4789if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4790 rm -rf conftest* 4791 eval "ac_cv_lib_$ac_lib_var=yes" 4792else 4793 echo "configure: failed program was:" >&5 4794 cat conftest.$ac_ext >&5 4795 rm -rf conftest* 4796 eval "ac_cv_lib_$ac_lib_var=no" 4797fi 4798rm -f conftest* 4799LIBS="$ac_save_LIBS" 4800 4801fi 4802if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4803 echo "$ac_t""yes" 1>&6 4804 LIBS="$LIBS -lx" 4805else 4806 echo "$ac_t""no" 1>&6 4807fi 4808 4809fi 4810 4811 4812 4813case "${host}" in 4814*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 4815 cat >> confdefs.h <<\EOF 4816#define USE_BINARY_FOPEN 1 4817EOF 4818 ;; 4819esac 4820 4821echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 4822echo "configure:4823: checking whether strstr must be declared" >&5 4823if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then 4824 echo $ac_n "(cached) $ac_c" 1>&6 4825else 4826 cat > conftest.$ac_ext <<EOF 4827#line 4828 "configure" 4828#include "confdefs.h" 4829 4830#include <stdio.h> 4831#ifdef HAVE_STRING_H 4832#include <string.h> 4833#else 4834#ifdef HAVE_STRINGS_H 4835#include <strings.h> 4836#endif 4837#endif 4838#ifdef HAVE_STDLIB_H 4839#include <stdlib.h> 4840#endif 4841#ifdef HAVE_UNISTD_H 4842#include <unistd.h> 4843#endif 4844int main() { 4845char *(*pfn) = (char *(*)) strstr 4846; return 0; } 4847EOF 4848if { (eval echo configure:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4849 rm -rf conftest* 4850 bfd_cv_decl_needed_strstr=no 4851else 4852 echo "configure: failed program was:" >&5 4853 cat conftest.$ac_ext >&5 4854 rm -rf conftest* 4855 bfd_cv_decl_needed_strstr=yes 4856fi 4857rm -f conftest* 4858fi 4859 4860echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6 4861if test $bfd_cv_decl_needed_strstr = yes; then 4862 cat >> confdefs.h <<\EOF 4863#define NEED_DECLARATION_STRSTR 1 4864EOF 4865 4866fi 4867 4868echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6 4869echo "configure:4870: checking whether free must be declared" >&5 4870if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then 4871 echo $ac_n "(cached) $ac_c" 1>&6 4872else 4873 cat > conftest.$ac_ext <<EOF 4874#line 4875 "configure" 4875#include "confdefs.h" 4876 4877#include <stdio.h> 4878#ifdef HAVE_STRING_H 4879#include <string.h> 4880#else 4881#ifdef HAVE_STRINGS_H 4882#include <strings.h> 4883#endif 4884#endif 4885#ifdef HAVE_STDLIB_H 4886#include <stdlib.h> 4887#endif 4888#ifdef HAVE_UNISTD_H 4889#include <unistd.h> 4890#endif 4891int main() { 4892char *(*pfn) = (char *(*)) free 4893; return 0; } 4894EOF 4895if { (eval echo configure:4896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4896 rm -rf conftest* 4897 bfd_cv_decl_needed_free=no 4898else 4899 echo "configure: failed program was:" >&5 4900 cat conftest.$ac_ext >&5 4901 rm -rf conftest* 4902 bfd_cv_decl_needed_free=yes 4903fi 4904rm -f conftest* 4905fi 4906 4907echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6 4908if test $bfd_cv_decl_needed_free = yes; then 4909 cat >> confdefs.h <<\EOF 4910#define NEED_DECLARATION_FREE 1 4911EOF 4912 4913fi 4914 4915echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6 4916echo "configure:4917: checking whether sbrk must be declared" >&5 4917if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then 4918 echo $ac_n "(cached) $ac_c" 1>&6 4919else 4920 cat > conftest.$ac_ext <<EOF 4921#line 4922 "configure" 4922#include "confdefs.h" 4923 4924#include <stdio.h> 4925#ifdef HAVE_STRING_H 4926#include <string.h> 4927#else 4928#ifdef HAVE_STRINGS_H 4929#include <strings.h> 4930#endif 4931#endif 4932#ifdef HAVE_STDLIB_H 4933#include <stdlib.h> 4934#endif 4935#ifdef HAVE_UNISTD_H 4936#include <unistd.h> 4937#endif 4938int main() { 4939char *(*pfn) = (char *(*)) sbrk 4940; return 0; } 4941EOF 4942if { (eval echo configure:4943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4943 rm -rf conftest* 4944 bfd_cv_decl_needed_sbrk=no 4945else 4946 echo "configure: failed program was:" >&5 4947 cat conftest.$ac_ext >&5 4948 rm -rf conftest* 4949 bfd_cv_decl_needed_sbrk=yes 4950fi 4951rm -f conftest* 4952fi 4953 4954echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6 4955if test $bfd_cv_decl_needed_sbrk = yes; then 4956 cat >> confdefs.h <<\EOF 4957#define NEED_DECLARATION_SBRK 1 4958EOF 4959 4960fi 4961 4962echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 4963echo "configure:4964: checking whether getenv must be declared" >&5 4964if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then 4965 echo $ac_n "(cached) $ac_c" 1>&6 4966else 4967 cat > conftest.$ac_ext <<EOF 4968#line 4969 "configure" 4969#include "confdefs.h" 4970 4971#include <stdio.h> 4972#ifdef HAVE_STRING_H 4973#include <string.h> 4974#else 4975#ifdef HAVE_STRINGS_H 4976#include <strings.h> 4977#endif 4978#endif 4979#ifdef HAVE_STDLIB_H 4980#include <stdlib.h> 4981#endif 4982#ifdef HAVE_UNISTD_H 4983#include <unistd.h> 4984#endif 4985int main() { 4986char *(*pfn) = (char *(*)) getenv 4987; return 0; } 4988EOF 4989if { (eval echo configure:4990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4990 rm -rf conftest* 4991 bfd_cv_decl_needed_getenv=no 4992else 4993 echo "configure: failed program was:" >&5 4994 cat conftest.$ac_ext >&5 4995 rm -rf conftest* 4996 bfd_cv_decl_needed_getenv=yes 4997fi 4998rm -f conftest* 4999fi 5000 5001echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6 5002if test $bfd_cv_decl_needed_getenv = yes; then 5003 cat >> confdefs.h <<\EOF 5004#define NEED_DECLARATION_GETENV 1 5005EOF 5006 5007fi 5008 5009echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6 5010echo "configure:5011: checking whether environ must be declared" >&5 5011if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then 5012 echo $ac_n "(cached) $ac_c" 1>&6 5013else 5014 cat > conftest.$ac_ext <<EOF 5015#line 5016 "configure" 5016#include "confdefs.h" 5017 5018#include <stdio.h> 5019#ifdef HAVE_STRING_H 5020#include <string.h> 5021#else 5022#ifdef HAVE_STRINGS_H 5023#include <strings.h> 5024#endif 5025#endif 5026#ifdef HAVE_STDLIB_H 5027#include <stdlib.h> 5028#endif 5029#ifdef HAVE_UNISTD_H 5030#include <unistd.h> 5031#endif 5032int main() { 5033char *(*pfn) = (char *(*)) environ 5034; return 0; } 5035EOF 5036if { (eval echo configure:5037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5037 rm -rf conftest* 5038 bfd_cv_decl_needed_environ=no 5039else 5040 echo "configure: failed program was:" >&5 5041 cat conftest.$ac_ext >&5 5042 rm -rf conftest* 5043 bfd_cv_decl_needed_environ=yes 5044fi 5045rm -f conftest* 5046fi 5047 5048echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6 5049if test $bfd_cv_decl_needed_environ = yes; then 5050 cat >> confdefs.h <<\EOF 5051#define NEED_DECLARATION_ENVIRON 1 5052EOF 5053 5054fi 5055 5056 5057# When converting linker scripts into strings for use in emulation 5058# files, use astring.sed if the compiler supports ANSI string 5059# concatenation, or ostring.sed otherwise. This is to support the 5060# broken Microsoft MSVC compiler, which limits the length of string 5061# constants, while still supporting pre-ANSI compilers which do not 5062# support string concatenation. 5063echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6 5064echo "configure:5065: checking whether ANSI C string concatenation works" >&5 5065if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then 5066 echo $ac_n "(cached) $ac_c" 1>&6 5067else 5068 cat > conftest.$ac_ext <<EOF 5069#line 5070 "configure" 5070#include "confdefs.h" 5071 5072int main() { 5073char *a = "a" "a"; 5074; return 0; } 5075EOF 5076if { (eval echo configure:5077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5077 rm -rf conftest* 5078 ld_cv_string_concatenation=yes 5079else 5080 echo "configure: failed program was:" >&5 5081 cat conftest.$ac_ext >&5 5082 rm -rf conftest* 5083 ld_cv_string_concatenation=no 5084fi 5085rm -f conftest* 5086fi 5087 5088echo "$ac_t""$ld_cv_string_concatenation" 1>&6 5089if test "$ld_cv_string_concatenation" = "yes"; then 5090 STRINGIFY=astring.sed 5091else 5092 STRINGIFY=ostring.sed 5093fi 5094 5095 5096# target-specific stuff: 5097 5098all_targets= 5099EMUL= 5100all_emuls= 5101all_emul_extras= 5102all_libpath= 5103 5104rm -f tdirs 5105 5106for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` 5107do 5108 if test "$targ_alias" = "all"; then 5109 all_targets=true 5110 else 5111 # Canonicalize the secondary target names. 5112 result=`$ac_config_sub $targ_alias 2>/dev/null` 5113 if test -n "$result"; then 5114 targ=$result 5115 else 5116 targ=$targ_alias 5117 fi 5118 5119 . ${srcdir}/configure.tgt 5120 5121 if test "$targ" = "$target"; then 5122 EMUL=$targ_emul 5123 fi 5124 5125 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do 5126 case " $all_emuls " in 5127 *" e${i}.o "*) ;; 5128 *) 5129 all_emuls="$all_emuls e${i}.o" 5130 eval result=\$tdir_$i 5131 test -z "$result" && result=$targ_alias 5132 echo tdir_$i=$result >> tdirs 5133 ;; 5134 esac 5135 done 5136 5137 for i in $targ_emul $targ_extra_libpath; do 5138 case " $all_libpath " in 5139 *" ${i} "*) ;; 5140 *) 5141 if test -z "$all_libpath"; then 5142 all_libpath=${i} 5143 else 5144 all_libpath="$all_libpath ${i}" 5145 fi 5146 ;; 5147 esac 5148 done 5149 5150 for i in $targ_extra_ofiles; do 5151 case " $all_emul_extras " in 5152 *" ${i} "*) ;; 5153 *) 5154 all_emul_extras="$all_emul_extras ${i}" 5155 ;; 5156 esac 5157 done 5158 fi 5159done 5160 5161 5162 5163TDIRS=tdirs 5164 5165 5166if test x${all_targets} = xtrue; then 5167 if test x${want64} = xtrue; then 5168 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' 5169 else 5170 EMULATION_OFILES='$(ALL_EMULATIONS)' 5171 fi 5172 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' 5173else 5174 EMULATION_OFILES=$all_emuls 5175 EMUL_EXTRA_OFILES=$all_emul_extras 5176fi 5177 5178 5179 5180 5181EMULATION_LIBPATH=$all_libpath 5182 5183 5184if test x${enable_static} = xno; then 5185 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" 5186else 5187 TESTBFDLIB="../bfd/.libs/libbfd.a" 5188fi 5189 5190 5191target_vendor=${target_vendor=$host_vendor} 5192case "$target_vendor" in 5193 hp) EXTRA_SHLIB_EXTENSION=".sl" ;; 5194 *) EXTRA_SHLIB_EXTENSION= ;; 5195esac 5196if test x${EXTRA_SHLIB_EXTENSION} != x ; then 5197 cat >> confdefs.h <<EOF 5198#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" 5199EOF 5200 5201fi 5202 5203trap '' 1 2 15 5204cat > confcache <<\EOF 5205# This file is a shell script that caches the results of configure 5206# tests run on this system so they can be shared between configure 5207# scripts and configure runs. It is not useful on other systems. 5208# If it contains results you don't want to keep, you may remove or edit it. 5209# 5210# By default, configure uses ./config.cache as the cache file, 5211# creating it if it does not exist already. You can give configure 5212# the --cache-file=FILE option to use a different cache file; that is 5213# what configure does when it calls configure scripts in 5214# subdirectories, so they share the cache. 5215# Giving --cache-file=/dev/null disables caching, for debugging configure. 5216# config.status only pays attention to the cache file if you give it the 5217# --recheck option to rerun configure. 5218# 5219EOF 5220# The following way of writing the cache mishandles newlines in values, 5221# but we know of no workaround that is simple, portable, and efficient. 5222# So, don't put newlines in cache variables' values. 5223# Ultrix sh set writes to stderr and can't be redirected directly, 5224# and sets the high bit in the cache file unless we assign to the vars. 5225(set) 2>&1 | 5226 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5227 *ac_space=\ *) 5228 # `set' does not quote correctly, so add quotes (double-quote substitution 5229 # turns \\\\ into \\, and sed turns \\ into \). 5230 sed -n \ 5231 -e "s/'/'\\\\''/g" \ 5232 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 5233 ;; 5234 *) 5235 # `set' quotes correctly as required by POSIX, so do not add quotes. 5236 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 5237 ;; 5238 esac >> confcache 5239if cmp -s $cache_file confcache; then 5240 : 5241else 5242 if test -w $cache_file; then 5243 echo "updating cache $cache_file" 5244 cat confcache > $cache_file 5245 else 5246 echo "not updating unwritable cache $cache_file" 5247 fi 5248fi 5249rm -f confcache 5250 5251trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 5252 5253test "x$prefix" = xNONE && prefix=$ac_default_prefix 5254# Let make expand exec_prefix. 5255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5256 5257# Any assignment to VPATH causes Sun make to only execute 5258# the first set of double-colon rules, so remove it if not needed. 5259# If there is a colon in the path, we need to keep it. 5260if test "x$srcdir" = x.; then 5261 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 5262fi 5263 5264trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 5265 5266DEFS=-DHAVE_CONFIG_H 5267 5268# Without the "./", some shells look in PATH for config.status. 5269: ${CONFIG_STATUS=./config.status} 5270 5271echo creating $CONFIG_STATUS 5272rm -f $CONFIG_STATUS 5273cat > $CONFIG_STATUS <<EOF 5274#! /bin/sh 5275# Generated automatically by configure. 5276# Run this file to recreate the current configuration. 5277# This directory was configured as follows, 5278# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 5279# 5280# $0 $ac_configure_args 5281# 5282# Compiler output produced by configure, useful for debugging 5283# configure, is in ./config.log if it exists. 5284 5285ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 5286for ac_option 5287do 5288 case "\$ac_option" in 5289 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5290 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 5291 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 5292 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 5293 echo "$CONFIG_STATUS generated by autoconf version 2.13" 5294 exit 0 ;; 5295 -help | --help | --hel | --he | --h) 5296 echo "\$ac_cs_usage"; exit 0 ;; 5297 *) echo "\$ac_cs_usage"; exit 1 ;; 5298 esac 5299done 5300 5301ac_given_srcdir=$srcdir 5302ac_given_INSTALL="$INSTALL" 5303 5304trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 5305EOF 5306cat >> $CONFIG_STATUS <<EOF 5307 5308# Protect against being on the right side of a sed subst in config.status. 5309sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 5310 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 5311$ac_vpsub 5312$extrasub 5313s%@SHELL@%$SHELL%g 5314s%@CFLAGS@%$CFLAGS%g 5315s%@CPPFLAGS@%$CPPFLAGS%g 5316s%@CXXFLAGS@%$CXXFLAGS%g 5317s%@FFLAGS@%$FFLAGS%g 5318s%@DEFS@%$DEFS%g 5319s%@LDFLAGS@%$LDFLAGS%g 5320s%@LIBS@%$LIBS%g 5321s%@exec_prefix@%$exec_prefix%g 5322s%@prefix@%$prefix%g 5323s%@program_transform_name@%$program_transform_name%g 5324s%@bindir@%$bindir%g 5325s%@sbindir@%$sbindir%g 5326s%@libexecdir@%$libexecdir%g 5327s%@datadir@%$datadir%g 5328s%@sysconfdir@%$sysconfdir%g 5329s%@sharedstatedir@%$sharedstatedir%g 5330s%@localstatedir@%$localstatedir%g 5331s%@libdir@%$libdir%g 5332s%@includedir@%$includedir%g 5333s%@oldincludedir@%$oldincludedir%g 5334s%@infodir@%$infodir%g 5335s%@mandir@%$mandir%g 5336s%@host@%$host%g 5337s%@host_alias@%$host_alias%g 5338s%@host_cpu@%$host_cpu%g 5339s%@host_vendor@%$host_vendor%g 5340s%@host_os@%$host_os%g 5341s%@target@%$target%g 5342s%@target_alias@%$target_alias%g 5343s%@target_cpu@%$target_cpu%g 5344s%@target_vendor@%$target_vendor%g 5345s%@target_os@%$target_os%g 5346s%@build@%$build%g 5347s%@build_alias@%$build_alias%g 5348s%@build_cpu@%$build_cpu%g 5349s%@build_vendor@%$build_vendor%g 5350s%@build_os@%$build_os%g 5351s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 5352s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 5353s%@INSTALL_DATA@%$INSTALL_DATA%g 5354s%@PACKAGE@%$PACKAGE%g 5355s%@VERSION@%$VERSION%g 5356s%@ACLOCAL@%$ACLOCAL%g 5357s%@AUTOCONF@%$AUTOCONF%g 5358s%@AUTOMAKE@%$AUTOMAKE%g 5359s%@AUTOHEADER@%$AUTOHEADER%g 5360s%@MAKEINFO@%$MAKEINFO%g 5361s%@SET_MAKE@%$SET_MAKE%g 5362s%@CC@%$CC%g 5363s%@LN_S@%$LN_S%g 5364s%@OBJEXT@%$OBJEXT%g 5365s%@EXEEXT@%$EXEEXT%g 5366s%@RANLIB@%$RANLIB%g 5367s%@STRIP@%$STRIP%g 5368s%@LIBTOOL@%$LIBTOOL%g 5369s%@use_sysroot@%$use_sysroot%g 5370s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g 5371s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g 5372s%@WARN_CFLAGS@%$WARN_CFLAGS%g 5373s%@CPP@%$CPP%g 5374s%@ALLOCA@%$ALLOCA%g 5375s%@USE_NLS@%$USE_NLS%g 5376s%@MSGFMT@%$MSGFMT%g 5377s%@GMSGFMT@%$GMSGFMT%g 5378s%@XGETTEXT@%$XGETTEXT%g 5379s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g 5380s%@CATALOGS@%$CATALOGS%g 5381s%@CATOBJEXT@%$CATOBJEXT%g 5382s%@DATADIRNAME@%$DATADIRNAME%g 5383s%@GMOFILES@%$GMOFILES%g 5384s%@INSTOBJEXT@%$INSTOBJEXT%g 5385s%@INTLDEPS@%$INTLDEPS%g 5386s%@INTLLIBS@%$INTLLIBS%g 5387s%@INTLOBJS@%$INTLOBJS%g 5388s%@POFILES@%$POFILES%g 5389s%@POSUB@%$POSUB%g 5390s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g 5391s%@GT_NO@%$GT_NO%g 5392s%@GT_YES@%$GT_YES%g 5393s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g 5394s%@l@%$l%g 5395s%@YACC@%$YACC%g 5396s%@LEX@%$LEX%g 5397s%@LEXLIB@%$LEXLIB%g 5398s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g 5399s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g 5400s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g 5401s%@MAINT@%$MAINT%g 5402s%@HDEFINES@%$HDEFINES%g 5403s%@HOSTING_CRT0@%$HOSTING_CRT0%g 5404s%@HOSTING_LIBS@%$HOSTING_LIBS%g 5405s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g 5406s%@STRINGIFY@%$STRINGIFY%g 5407s%@EMUL@%$EMUL%g 5408/@TDIRS@/r $TDIRS 5409s%@TDIRS@%%g 5410s%@EMULATION_OFILES@%$EMULATION_OFILES%g 5411s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g 5412s%@LIB_PATH@%$LIB_PATH%g 5413s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g 5414s%@TESTBFDLIB@%$TESTBFDLIB%g 5415 5416CEOF 5417EOF 5418 5419cat >> $CONFIG_STATUS <<\EOF 5420 5421# Split the substitutions into bite-sized pieces for seds with 5422# small command number limits, like on Digital OSF/1 and HP-UX. 5423ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 5424ac_file=1 # Number of current file. 5425ac_beg=1 # First line for current file. 5426ac_end=$ac_max_sed_cmds # Line after last line for current file. 5427ac_more_lines=: 5428ac_sed_cmds="" 5429while $ac_more_lines; do 5430 if test $ac_beg -gt 1; then 5431 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 5432 else 5433 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 5434 fi 5435 if test ! -s conftest.s$ac_file; then 5436 ac_more_lines=false 5437 rm -f conftest.s$ac_file 5438 else 5439 if test -z "$ac_sed_cmds"; then 5440 ac_sed_cmds="sed -f conftest.s$ac_file" 5441 else 5442 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 5443 fi 5444 ac_file=`expr $ac_file + 1` 5445 ac_beg=$ac_end 5446 ac_end=`expr $ac_end + $ac_max_sed_cmds` 5447 fi 5448done 5449if test -z "$ac_sed_cmds"; then 5450 ac_sed_cmds=cat 5451fi 5452EOF 5453 5454cat >> $CONFIG_STATUS <<EOF 5455 5456CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"} 5457EOF 5458cat >> $CONFIG_STATUS <<\EOF 5459for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 5460 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5461 case "$ac_file" in 5462 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 5463 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 5464 *) ac_file_in="${ac_file}.in" ;; 5465 esac 5466 5467 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 5468 5469 # Remove last slash and all that follows it. Not all systems have dirname. 5470 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5471 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5472 # The file is in a subdirectory. 5473 test ! -d "$ac_dir" && mkdir "$ac_dir" 5474 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 5475 # A "../" for each directory in $ac_dir_suffix. 5476 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 5477 else 5478 ac_dir_suffix= ac_dots= 5479 fi 5480 5481 case "$ac_given_srcdir" in 5482 .) srcdir=. 5483 if test -z "$ac_dots"; then top_srcdir=. 5484 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 5485 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 5486 *) # Relative path. 5487 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 5488 top_srcdir="$ac_dots$ac_given_srcdir" ;; 5489 esac 5490 5491 case "$ac_given_INSTALL" in 5492 [/$]*) INSTALL="$ac_given_INSTALL" ;; 5493 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 5494 esac 5495 5496 echo creating "$ac_file" 5497 rm -f "$ac_file" 5498 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 5499 case "$ac_file" in 5500 *Makefile*) ac_comsub="1i\\ 5501# $configure_input" ;; 5502 *) ac_comsub= ;; 5503 esac 5504 5505 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5506 sed -e "$ac_comsub 5507s%@configure_input@%$configure_input%g 5508s%@srcdir@%$srcdir%g 5509s%@top_srcdir@%$top_srcdir%g 5510s%@INSTALL@%$INSTALL%g 5511" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 5512fi; done 5513rm -f conftest.s* 5514 5515# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5516# NAME is the cpp macro being defined and VALUE is the value it is being given. 5517# 5518# ac_d sets the value in "#define NAME VALUE" lines. 5519ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5520ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 5521ac_dC='\3' 5522ac_dD='%g' 5523# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 5524ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5525ac_uB='\([ ]\)%\1#\2define\3' 5526ac_uC=' ' 5527ac_uD='\4%g' 5528# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5529ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5530ac_eB='$%\1#\2define\3' 5531ac_eC=' ' 5532ac_eD='%g' 5533 5534if test "${CONFIG_HEADERS+set}" != set; then 5535EOF 5536cat >> $CONFIG_STATUS <<EOF 5537 CONFIG_HEADERS="config.h:config.in" 5538EOF 5539cat >> $CONFIG_STATUS <<\EOF 5540fi 5541for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 5542 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5543 case "$ac_file" in 5544 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 5545 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 5546 *) ac_file_in="${ac_file}.in" ;; 5547 esac 5548 5549 echo creating $ac_file 5550 5551 rm -f conftest.frag conftest.in conftest.out 5552 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5553 cat $ac_file_inputs > conftest.in 5554 5555EOF 5556 5557# Transform confdefs.h into a sed script conftest.vals that substitutes 5558# the proper values into config.h.in to produce config.h. And first: 5559# Protect against being on the right side of a sed subst in config.status. 5560# Protect against being in an unquoted here document in config.status. 5561rm -f conftest.vals 5562cat > conftest.hdr <<\EOF 5563s/[\\&%]/\\&/g 5564s%[\\$`]%\\&%g 5565s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 5566s%ac_d%ac_u%gp 5567s%ac_u%ac_e%gp 5568EOF 5569sed -n -f conftest.hdr confdefs.h > conftest.vals 5570rm -f conftest.hdr 5571 5572# This sed command replaces #undef with comments. This is necessary, for 5573# example, in the case of _POSIX_SOURCE, which is predefined and required 5574# on some systems where configure will not decide to define it. 5575cat >> conftest.vals <<\EOF 5576s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 5577EOF 5578 5579# Break up conftest.vals because some shells have a limit on 5580# the size of here documents, and old seds have small limits too. 5581 5582rm -f conftest.tail 5583while : 5584do 5585 ac_lines=`grep -c . conftest.vals` 5586 # grep -c gives empty output for an empty file on some AIX systems. 5587 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 5588 # Write a limited-size here document to conftest.frag. 5589 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 5590 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 5591 echo 'CEOF 5592 sed -f conftest.frag conftest.in > conftest.out 5593 rm -f conftest.in 5594 mv conftest.out conftest.in 5595' >> $CONFIG_STATUS 5596 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 5597 rm -f conftest.vals 5598 mv conftest.tail conftest.vals 5599done 5600rm -f conftest.vals 5601 5602cat >> $CONFIG_STATUS <<\EOF 5603 rm -f conftest.frag conftest.h 5604 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 5605 cat conftest.in >> conftest.h 5606 rm -f conftest.in 5607 if cmp -s $ac_file conftest.h 2>/dev/null; then 5608 echo "$ac_file is unchanged" 5609 rm -f conftest.h 5610 else 5611 # Remove last slash and all that follows it. Not all systems have dirname. 5612 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5613 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5614 # The file is in a subdirectory. 5615 test ! -d "$ac_dir" && mkdir "$ac_dir" 5616 fi 5617 rm -f $ac_file 5618 mv conftest.h $ac_file 5619 fi 5620fi; done 5621 5622EOF 5623cat >> $CONFIG_STATUS <<EOF 5624 5625 5626EOF 5627cat >> $CONFIG_STATUS <<\EOF 5628test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 5629sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile 5630exit 0 5631EOF 5632chmod +x $CONFIG_STATUS 5633rm -fr confdefs* $ac_clean_files 5634test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 5635 5636