12159047fSniklas#! /bin/sh 22159047fSniklas 32159047fSniklas# Guess values for system-dependent variables and create Makefiles. 4b305b0f1Sespie# Generated automatically using autoconf version 2.13 50c6d0228Sniklas# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 62159047fSniklas# 72159047fSniklas# This configure script is free software; the Free Software Foundation 82159047fSniklas# gives unlimited permission to copy, distribute and modify it. 92159047fSniklas 102159047fSniklas# Defaults: 112159047fSniklasac_help= 122159047fSniklasac_default_prefix=/usr/local 132159047fSniklas# Any additions from configure.in: 142159047fSniklasac_help="$ac_help 15b305b0f1Sespie --enable-shared[=PKGS] build shared libraries [default=no]" 16b305b0f1Sespieac_help="$ac_help 17b305b0f1Sespie --enable-static[=PKGS] build static libraries [default=yes]" 18b305b0f1Sespieac_help="$ac_help 19b305b0f1Sespie --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 20b305b0f1Sespieac_help="$ac_help 21b305b0f1Sespie --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 22b305b0f1Sespieac_help="$ac_help 23b305b0f1Sespie --disable-libtool-lock avoid locking (might break parallel builds)" 24b305b0f1Sespieac_help="$ac_help 25b55d4692Sfgsch --with-pic try to use only PIC/non-PIC objects [default=use both]" 26b55d4692Sfgschac_help="$ac_help 272159047fSniklas --enable-targets alternative target configurations" 28c88b1d6cSniklasac_help="$ac_help 29c88b1d6cSniklas --enable-commonbfdlib build shared BFD/opcodes/libiberty library" 30b305b0f1Sespieac_help="$ac_help 31b55d4692Sfgsch --enable-build-warnings Enable build-time compiler warnings if gcc is used" 32b55d4692Sfgschac_help="$ac_help 33b305b0f1Sespie --enable-maintainer-mode enable make rules and dependencies not useful 34b305b0f1Sespie (and sometimes confusing) to the casual installer" 35b305b0f1Sespieac_help="$ac_help 36c074d1c9Sdrahn --enable-install-libbfd controls installation of libbfd and related headers" 37c074d1c9Sdrahnac_help="$ac_help 38b305b0f1Sespie --disable-nls do not use Native Language Support" 39b305b0f1Sespieac_help="$ac_help 40b305b0f1Sespie --with-included-gettext use the GNU gettext library included here" 41b55d4692Sfgschac_help="$ac_help 42b55d4692Sfgsch --enable-cgen-maint[=dir] build cgen generated files" 432159047fSniklas 442159047fSniklas# Initialize some variables set by options. 452159047fSniklas# The variables have the same names as the options, with 462159047fSniklas# dashes changed to underlines. 472159047fSniklasbuild=NONE 482159047fSniklascache_file=./config.cache 492159047fSniklasexec_prefix=NONE 502159047fSniklashost=NONE 512159047fSniklasno_create= 522159047fSniklasnonopt=NONE 532159047fSniklasno_recursion= 542159047fSniklasprefix=NONE 552159047fSniklasprogram_prefix=NONE 562159047fSniklasprogram_suffix=NONE 572159047fSniklasprogram_transform_name=s,x,x, 582159047fSniklassilent= 592159047fSniklassite= 60b305b0f1Sespiesitefile= 612159047fSniklassrcdir= 622159047fSniklastarget=NONE 632159047fSniklasverbose= 642159047fSniklasx_includes=NONE 652159047fSniklasx_libraries=NONE 66c88b1d6cSniklasbindir='${exec_prefix}/bin' 67c88b1d6cSniklassbindir='${exec_prefix}/sbin' 68c88b1d6cSniklaslibexecdir='${exec_prefix}/libexec' 69c88b1d6cSniklasdatadir='${prefix}/share' 70c88b1d6cSniklassysconfdir='${prefix}/etc' 71c88b1d6cSniklassharedstatedir='${prefix}/com' 72c88b1d6cSniklaslocalstatedir='${prefix}/var' 73c88b1d6cSniklaslibdir='${exec_prefix}/lib' 74c88b1d6cSniklasincludedir='${prefix}/include' 75c88b1d6cSniklasoldincludedir='/usr/include' 76c88b1d6cSniklasinfodir='${prefix}/info' 77c88b1d6cSniklasmandir='${prefix}/man' 782159047fSniklas 792159047fSniklas# Initialize some other variables. 802159047fSniklassubdirs= 81c88b1d6cSniklasMFLAGS= MAKEFLAGS= 82b305b0f1SespieSHELL=${CONFIG_SHELL-/bin/sh} 83b305b0f1Sespie# Maximum number of lines to put in a shell here document. 84b305b0f1Sespieac_max_here_lines=12 852159047fSniklas 862159047fSniklasac_prev= 872159047fSniklasfor ac_option 882159047fSniklasdo 892159047fSniklas 902159047fSniklas # If the previous option needs an argument, assign it. 912159047fSniklas if test -n "$ac_prev"; then 922159047fSniklas eval "$ac_prev=\$ac_option" 932159047fSniklas ac_prev= 942159047fSniklas continue 952159047fSniklas fi 962159047fSniklas 972159047fSniklas case "$ac_option" in 982159047fSniklas -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 992159047fSniklas *) ac_optarg= ;; 1002159047fSniklas esac 1012159047fSniklas 1022159047fSniklas # Accept the important Cygnus configure options, so we can diagnose typos. 1032159047fSniklas 1042159047fSniklas case "$ac_option" in 1052159047fSniklas 106c88b1d6cSniklas -bindir | --bindir | --bindi | --bind | --bin | --bi) 107c88b1d6cSniklas ac_prev=bindir ;; 108c88b1d6cSniklas -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 109c88b1d6cSniklas bindir="$ac_optarg" ;; 110c88b1d6cSniklas 111c88b1d6cSniklas -build | --build | --buil | --bui | --bu) 1122159047fSniklas ac_prev=build ;; 113c88b1d6cSniklas -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1142159047fSniklas build="$ac_optarg" ;; 1152159047fSniklas 1162159047fSniklas -cache-file | --cache-file | --cache-fil | --cache-fi \ 1172159047fSniklas | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1182159047fSniklas ac_prev=cache_file ;; 1192159047fSniklas -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1202159047fSniklas | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1212159047fSniklas cache_file="$ac_optarg" ;; 1222159047fSniklas 123c88b1d6cSniklas -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 124c88b1d6cSniklas ac_prev=datadir ;; 125c88b1d6cSniklas -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 126c88b1d6cSniklas | --da=*) 127c88b1d6cSniklas datadir="$ac_optarg" ;; 128c88b1d6cSniklas 1292159047fSniklas -disable-* | --disable-*) 1302159047fSniklas ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 1312159047fSniklas # Reject names that are not valid shell variable names. 1322159047fSniklas if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 1332159047fSniklas { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 1342159047fSniklas fi 1352159047fSniklas ac_feature=`echo $ac_feature| sed 's/-/_/g'` 1362159047fSniklas eval "enable_${ac_feature}=no" ;; 1372159047fSniklas 1382159047fSniklas -enable-* | --enable-*) 1392159047fSniklas ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 1402159047fSniklas # Reject names that are not valid shell variable names. 1412159047fSniklas if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 1422159047fSniklas { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 1432159047fSniklas fi 1442159047fSniklas ac_feature=`echo $ac_feature| sed 's/-/_/g'` 1452159047fSniklas case "$ac_option" in 1462159047fSniklas *=*) ;; 1472159047fSniklas *) ac_optarg=yes ;; 1482159047fSniklas esac 1492159047fSniklas eval "enable_${ac_feature}='$ac_optarg'" ;; 1502159047fSniklas 1512159047fSniklas -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1522159047fSniklas | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1532159047fSniklas | --exec | --exe | --ex) 1542159047fSniklas ac_prev=exec_prefix ;; 1552159047fSniklas -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1562159047fSniklas | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1572159047fSniklas | --exec=* | --exe=* | --ex=*) 1582159047fSniklas exec_prefix="$ac_optarg" ;; 1592159047fSniklas 1602159047fSniklas -gas | --gas | --ga | --g) 1612159047fSniklas # Obsolete; use --with-gas. 1622159047fSniklas with_gas=yes ;; 1632159047fSniklas 1642159047fSniklas -help | --help | --hel | --he) 1652159047fSniklas # Omit some internal or obsolete options to make the list less imposing. 1662159047fSniklas # This message is too long to be a string in the A/UX 3.1 sh. 1672159047fSniklas cat << EOF 1682159047fSniklasUsage: configure [options] [host] 1692159047fSniklasOptions: [defaults in brackets after descriptions] 1702159047fSniklasConfiguration: 1712159047fSniklas --cache-file=FILE cache test results in FILE 1722159047fSniklas --help print this message 1732159047fSniklas --no-create do not create output files 1742159047fSniklas --quiet, --silent do not print \`checking...' messages 175b305b0f1Sespie --site-file=FILE use FILE as the site file 1762159047fSniklas --version print the version of autoconf that created configure 1772159047fSniklasDirectory and file names: 1782159047fSniklas --prefix=PREFIX install architecture-independent files in PREFIX 1792159047fSniklas [$ac_default_prefix] 180c88b1d6cSniklas --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1812159047fSniklas [same as prefix] 182c88b1d6cSniklas --bindir=DIR user executables in DIR [EPREFIX/bin] 183c88b1d6cSniklas --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 184c88b1d6cSniklas --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 185c88b1d6cSniklas --datadir=DIR read-only architecture-independent data in DIR 186c88b1d6cSniklas [PREFIX/share] 187c88b1d6cSniklas --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 188c88b1d6cSniklas --sharedstatedir=DIR modifiable architecture-independent data in DIR 189c88b1d6cSniklas [PREFIX/com] 190c88b1d6cSniklas --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 191c88b1d6cSniklas --libdir=DIR object code libraries in DIR [EPREFIX/lib] 192c88b1d6cSniklas --includedir=DIR C header files in DIR [PREFIX/include] 193c88b1d6cSniklas --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 194c88b1d6cSniklas --infodir=DIR info documentation in DIR [PREFIX/info] 195c88b1d6cSniklas --mandir=DIR man documentation in DIR [PREFIX/man] 1962159047fSniklas --srcdir=DIR find the sources in DIR [configure dir or ..] 1972159047fSniklas --program-prefix=PREFIX prepend PREFIX to installed program names 1982159047fSniklas --program-suffix=SUFFIX append SUFFIX to installed program names 199c88b1d6cSniklas --program-transform-name=PROGRAM 200c88b1d6cSniklas run sed PROGRAM on installed program names 201c88b1d6cSniklasEOF 202c88b1d6cSniklas cat << EOF 2032159047fSniklasHost type: 2042159047fSniklas --build=BUILD configure for building on BUILD [BUILD=HOST] 2052159047fSniklas --host=HOST configure for HOST [guessed] 2062159047fSniklas --target=TARGET configure for TARGET [TARGET=HOST] 2072159047fSniklasFeatures and packages: 2082159047fSniklas --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2092159047fSniklas --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2102159047fSniklas --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2112159047fSniklas --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2122159047fSniklas --x-includes=DIR X include files are in DIR 2132159047fSniklas --x-libraries=DIR X library files are in DIR 2142159047fSniklasEOF 215c88b1d6cSniklas if test -n "$ac_help"; then 216c88b1d6cSniklas echo "--enable and --with options recognized:$ac_help" 217c88b1d6cSniklas fi 2182159047fSniklas exit 0 ;; 2192159047fSniklas 2202159047fSniklas -host | --host | --hos | --ho) 2212159047fSniklas ac_prev=host ;; 2222159047fSniklas -host=* | --host=* | --hos=* | --ho=*) 2232159047fSniklas host="$ac_optarg" ;; 2242159047fSniklas 225c88b1d6cSniklas -includedir | --includedir | --includedi | --included | --include \ 226c88b1d6cSniklas | --includ | --inclu | --incl | --inc) 227c88b1d6cSniklas ac_prev=includedir ;; 228c88b1d6cSniklas -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 229c88b1d6cSniklas | --includ=* | --inclu=* | --incl=* | --inc=*) 230c88b1d6cSniklas includedir="$ac_optarg" ;; 231c88b1d6cSniklas 232c88b1d6cSniklas -infodir | --infodir | --infodi | --infod | --info | --inf) 233c88b1d6cSniklas ac_prev=infodir ;; 234c88b1d6cSniklas -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 235c88b1d6cSniklas infodir="$ac_optarg" ;; 236c88b1d6cSniklas 237c88b1d6cSniklas -libdir | --libdir | --libdi | --libd) 238c88b1d6cSniklas ac_prev=libdir ;; 239c88b1d6cSniklas -libdir=* | --libdir=* | --libdi=* | --libd=*) 240c88b1d6cSniklas libdir="$ac_optarg" ;; 241c88b1d6cSniklas 242c88b1d6cSniklas -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 243c88b1d6cSniklas | --libexe | --libex | --libe) 244c88b1d6cSniklas ac_prev=libexecdir ;; 245c88b1d6cSniklas -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 246c88b1d6cSniklas | --libexe=* | --libex=* | --libe=*) 247c88b1d6cSniklas libexecdir="$ac_optarg" ;; 248c88b1d6cSniklas 249c88b1d6cSniklas -localstatedir | --localstatedir | --localstatedi | --localstated \ 250c88b1d6cSniklas | --localstate | --localstat | --localsta | --localst \ 251c88b1d6cSniklas | --locals | --local | --loca | --loc | --lo) 252c88b1d6cSniklas ac_prev=localstatedir ;; 253c88b1d6cSniklas -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 254c88b1d6cSniklas | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 255c88b1d6cSniklas | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 256c88b1d6cSniklas localstatedir="$ac_optarg" ;; 257c88b1d6cSniklas 258c88b1d6cSniklas -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 259c88b1d6cSniklas ac_prev=mandir ;; 260c88b1d6cSniklas -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 261c88b1d6cSniklas mandir="$ac_optarg" ;; 262c88b1d6cSniklas 2632159047fSniklas -nfp | --nfp | --nf) 2642159047fSniklas # Obsolete; use --without-fp. 2652159047fSniklas with_fp=no ;; 2662159047fSniklas 2672159047fSniklas -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 2682159047fSniklas | --no-cr | --no-c) 2692159047fSniklas no_create=yes ;; 2702159047fSniklas 2712159047fSniklas -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 2722159047fSniklas | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 2732159047fSniklas no_recursion=yes ;; 2742159047fSniklas 275c88b1d6cSniklas -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 276c88b1d6cSniklas | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 277c88b1d6cSniklas | --oldin | --oldi | --old | --ol | --o) 278c88b1d6cSniklas ac_prev=oldincludedir ;; 279c88b1d6cSniklas -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 280c88b1d6cSniklas | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 281c88b1d6cSniklas | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 282c88b1d6cSniklas oldincludedir="$ac_optarg" ;; 283c88b1d6cSniklas 2842159047fSniklas -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 2852159047fSniklas ac_prev=prefix ;; 2862159047fSniklas -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 2872159047fSniklas prefix="$ac_optarg" ;; 2882159047fSniklas 2892159047fSniklas -program-prefix | --program-prefix | --program-prefi | --program-pref \ 2902159047fSniklas | --program-pre | --program-pr | --program-p) 2912159047fSniklas ac_prev=program_prefix ;; 2922159047fSniklas -program-prefix=* | --program-prefix=* | --program-prefi=* \ 2932159047fSniklas | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 2942159047fSniklas program_prefix="$ac_optarg" ;; 2952159047fSniklas 2962159047fSniklas -program-suffix | --program-suffix | --program-suffi | --program-suff \ 2972159047fSniklas | --program-suf | --program-su | --program-s) 2982159047fSniklas ac_prev=program_suffix ;; 2992159047fSniklas -program-suffix=* | --program-suffix=* | --program-suffi=* \ 3002159047fSniklas | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 3012159047fSniklas program_suffix="$ac_optarg" ;; 3022159047fSniklas 3032159047fSniklas -program-transform-name | --program-transform-name \ 3042159047fSniklas | --program-transform-nam | --program-transform-na \ 3052159047fSniklas | --program-transform-n | --program-transform- \ 3062159047fSniklas | --program-transform | --program-transfor \ 3072159047fSniklas | --program-transfo | --program-transf \ 3082159047fSniklas | --program-trans | --program-tran \ 3092159047fSniklas | --progr-tra | --program-tr | --program-t) 3102159047fSniklas ac_prev=program_transform_name ;; 3112159047fSniklas -program-transform-name=* | --program-transform-name=* \ 3122159047fSniklas | --program-transform-nam=* | --program-transform-na=* \ 3132159047fSniklas | --program-transform-n=* | --program-transform-=* \ 3142159047fSniklas | --program-transform=* | --program-transfor=* \ 3152159047fSniklas | --program-transfo=* | --program-transf=* \ 3162159047fSniklas | --program-trans=* | --program-tran=* \ 3172159047fSniklas | --progr-tra=* | --program-tr=* | --program-t=*) 3182159047fSniklas program_transform_name="$ac_optarg" ;; 3192159047fSniklas 3202159047fSniklas -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3212159047fSniklas | -silent | --silent | --silen | --sile | --sil) 3222159047fSniklas silent=yes ;; 3232159047fSniklas 324c88b1d6cSniklas -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 325c88b1d6cSniklas ac_prev=sbindir ;; 326c88b1d6cSniklas -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 327c88b1d6cSniklas | --sbi=* | --sb=*) 328c88b1d6cSniklas sbindir="$ac_optarg" ;; 329c88b1d6cSniklas 330c88b1d6cSniklas -sharedstatedir | --sharedstatedir | --sharedstatedi \ 331c88b1d6cSniklas | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 332c88b1d6cSniklas | --sharedst | --shareds | --shared | --share | --shar \ 333c88b1d6cSniklas | --sha | --sh) 334c88b1d6cSniklas ac_prev=sharedstatedir ;; 335c88b1d6cSniklas -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 336c88b1d6cSniklas | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 337c88b1d6cSniklas | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 338c88b1d6cSniklas | --sha=* | --sh=*) 339c88b1d6cSniklas sharedstatedir="$ac_optarg" ;; 340c88b1d6cSniklas 3412159047fSniklas -site | --site | --sit) 3422159047fSniklas ac_prev=site ;; 3432159047fSniklas -site=* | --site=* | --sit=*) 3442159047fSniklas site="$ac_optarg" ;; 3452159047fSniklas 346b305b0f1Sespie -site-file | --site-file | --site-fil | --site-fi | --site-f) 347b305b0f1Sespie ac_prev=sitefile ;; 348b305b0f1Sespie -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) 349b305b0f1Sespie sitefile="$ac_optarg" ;; 350b305b0f1Sespie 3512159047fSniklas -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 3522159047fSniklas ac_prev=srcdir ;; 3532159047fSniklas -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 3542159047fSniklas srcdir="$ac_optarg" ;; 3552159047fSniklas 356c88b1d6cSniklas -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 357c88b1d6cSniklas | --syscon | --sysco | --sysc | --sys | --sy) 358c88b1d6cSniklas ac_prev=sysconfdir ;; 359c88b1d6cSniklas -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 360c88b1d6cSniklas | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 361c88b1d6cSniklas sysconfdir="$ac_optarg" ;; 362c88b1d6cSniklas 3632159047fSniklas -target | --target | --targe | --targ | --tar | --ta | --t) 3642159047fSniklas ac_prev=target ;; 3652159047fSniklas -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 3662159047fSniklas target="$ac_optarg" ;; 3672159047fSniklas 3682159047fSniklas -v | -verbose | --verbose | --verbos | --verbo | --verb) 3692159047fSniklas verbose=yes ;; 3702159047fSniklas 3712159047fSniklas -version | --version | --versio | --versi | --vers) 372b305b0f1Sespie echo "configure generated by autoconf version 2.13" 3732159047fSniklas exit 0 ;; 3742159047fSniklas 3752159047fSniklas -with-* | --with-*) 3762159047fSniklas ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 3772159047fSniklas # Reject names that are not valid shell variable names. 3782159047fSniklas if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 3792159047fSniklas { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 3802159047fSniklas fi 3812159047fSniklas ac_package=`echo $ac_package| sed 's/-/_/g'` 3822159047fSniklas case "$ac_option" in 3832159047fSniklas *=*) ;; 3842159047fSniklas *) ac_optarg=yes ;; 3852159047fSniklas esac 3862159047fSniklas eval "with_${ac_package}='$ac_optarg'" ;; 3872159047fSniklas 3882159047fSniklas -without-* | --without-*) 3892159047fSniklas ac_package=`echo $ac_option|sed -e 's/-*without-//'` 3902159047fSniklas # Reject names that are not valid shell variable names. 3912159047fSniklas if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 3922159047fSniklas { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 3932159047fSniklas fi 3942159047fSniklas ac_package=`echo $ac_package| sed 's/-/_/g'` 3952159047fSniklas eval "with_${ac_package}=no" ;; 3962159047fSniklas 3972159047fSniklas --x) 3982159047fSniklas # Obsolete; use --with-x. 3992159047fSniklas with_x=yes ;; 4002159047fSniklas 4012159047fSniklas -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 4022159047fSniklas | --x-incl | --x-inc | --x-in | --x-i) 4032159047fSniklas ac_prev=x_includes ;; 4042159047fSniklas -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 4052159047fSniklas | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 4062159047fSniklas x_includes="$ac_optarg" ;; 4072159047fSniklas 4082159047fSniklas -x-libraries | --x-libraries | --x-librarie | --x-librari \ 4092159047fSniklas | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 4102159047fSniklas ac_prev=x_libraries ;; 4112159047fSniklas -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 4122159047fSniklas | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 4132159047fSniklas x_libraries="$ac_optarg" ;; 4142159047fSniklas 4152159047fSniklas -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 4162159047fSniklas ;; 4172159047fSniklas 4182159047fSniklas *) 4192159047fSniklas if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 4202159047fSniklas echo "configure: warning: $ac_option: invalid host type" 1>&2 4212159047fSniklas fi 4222159047fSniklas if test "x$nonopt" != xNONE; then 4232159047fSniklas { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 4242159047fSniklas fi 4252159047fSniklas nonopt="$ac_option" 4262159047fSniklas ;; 4272159047fSniklas 4282159047fSniklas esac 4292159047fSniklasdone 4302159047fSniklas 4312159047fSniklasif test -n "$ac_prev"; then 4322159047fSniklas { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 4332159047fSniklasfi 4342159047fSniklas 4352159047fSniklastrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 4362159047fSniklas 4372159047fSniklas# File descriptor usage: 4382159047fSniklas# 0 standard input 4392159047fSniklas# 1 file creation 4402159047fSniklas# 2 errors and warnings 4412159047fSniklas# 3 some systems may open it to /dev/tty 4422159047fSniklas# 4 used on the Kubota Titan 4432159047fSniklas# 6 checking for... messages and results 4442159047fSniklas# 5 compiler messages saved in config.log 4452159047fSniklasif test "$silent" = yes; then 4462159047fSniklas exec 6>/dev/null 4472159047fSniklaselse 4482159047fSniklas exec 6>&1 4492159047fSniklasfi 4502159047fSniklasexec 5>./config.log 4512159047fSniklas 4522159047fSniklasecho "\ 4532159047fSniklasThis file contains any messages produced by compilers while 4542159047fSniklasrunning configure, to aid debugging if configure makes a mistake. 4552159047fSniklas" 1>&5 4562159047fSniklas 4572159047fSniklas# Strip out --no-create and --no-recursion so they do not pile up. 4582159047fSniklas# Also quote any args containing shell metacharacters. 4592159047fSniklasac_configure_args= 4602159047fSniklasfor ac_arg 4612159047fSniklasdo 4622159047fSniklas case "$ac_arg" in 4632159047fSniklas -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 4642159047fSniklas | --no-cr | --no-c) ;; 4652159047fSniklas -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 4662159047fSniklas | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 4672159047fSniklas *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 4682159047fSniklas ac_configure_args="$ac_configure_args '$ac_arg'" ;; 4692159047fSniklas *) ac_configure_args="$ac_configure_args $ac_arg" ;; 4702159047fSniklas esac 4712159047fSniklasdone 4722159047fSniklas 4732159047fSniklas# NLS nuisances. 474b305b0f1Sespie# Only set these to C if already set. These must not be set unconditionally 475b305b0f1Sespie# because not all systems understand e.g. LANG=C (notably SCO). 476b305b0f1Sespie# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 477b305b0f1Sespie# Non-C LC_CTYPE values break the ctype check. 4782159047fSniklasif test "${LANG+set}" = set; then LANG=C; export LANG; fi 479b305b0f1Sespieif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 480b305b0f1Sespieif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 481b305b0f1Sespieif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 4822159047fSniklas 4832159047fSniklas# confdefs.h avoids OS command line length limits that DEFS can exceed. 4842159047fSniklasrm -rf conftest* confdefs.h 4852159047fSniklas# AIX cpp loses on an empty file, so make sure it contains at least a newline. 4862159047fSniklasecho > confdefs.h 4872159047fSniklas 4882159047fSniklas# A filename unique to this package, relative to the directory that 4892159047fSniklas# configure is in, which we can look for to find out if srcdir is correct. 4902159047fSniklasac_unique_file=z8k-dis.c 4912159047fSniklas 4922159047fSniklas# Find the source files, if location was not specified. 4932159047fSniklasif test -z "$srcdir"; then 4942159047fSniklas ac_srcdir_defaulted=yes 4952159047fSniklas # Try the directory containing this script, then its parent. 4962159047fSniklas ac_prog=$0 4972159047fSniklas ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 4982159047fSniklas test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 4992159047fSniklas srcdir=$ac_confdir 5002159047fSniklas if test ! -r $srcdir/$ac_unique_file; then 5012159047fSniklas srcdir=.. 5022159047fSniklas fi 5032159047fSniklaselse 5042159047fSniklas ac_srcdir_defaulted=no 5052159047fSniklasfi 5062159047fSniklasif test ! -r $srcdir/$ac_unique_file; then 5072159047fSniklas if test "$ac_srcdir_defaulted" = yes; then 5082159047fSniklas { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 5092159047fSniklas else 5102159047fSniklas { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 5112159047fSniklas fi 5122159047fSniklasfi 5132159047fSniklassrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 5142159047fSniklas 5152159047fSniklas# Prefer explicitly selected file to automatically selected ones. 516b305b0f1Sespieif test -z "$sitefile"; then 5172159047fSniklas if test -z "$CONFIG_SITE"; then 5182159047fSniklas if test "x$prefix" != xNONE; then 5192159047fSniklas CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 5202159047fSniklas else 5212159047fSniklas CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 5222159047fSniklas fi 5232159047fSniklas fi 524b305b0f1Sespieelse 525b305b0f1Sespie CONFIG_SITE="$sitefile" 526b305b0f1Sespiefi 5272159047fSniklasfor ac_site_file in $CONFIG_SITE; do 5282159047fSniklas if test -r "$ac_site_file"; then 5292159047fSniklas echo "loading site script $ac_site_file" 5302159047fSniklas . "$ac_site_file" 5312159047fSniklas fi 5322159047fSniklasdone 5332159047fSniklas 5342159047fSniklasif test -r "$cache_file"; then 5352159047fSniklas echo "loading cache $cache_file" 5362159047fSniklas . $cache_file 5372159047fSniklaselse 5382159047fSniklas echo "creating cache $cache_file" 5392159047fSniklas > $cache_file 5402159047fSniklasfi 5412159047fSniklas 5422159047fSniklasac_ext=c 5432159047fSniklas# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 5442159047fSniklasac_cpp='$CPP $CPPFLAGS' 545c88b1d6cSniklasac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 546b305b0f1Sespieac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 547b305b0f1Sespiecross_compiling=$ac_cv_prog_cc_cross 5482159047fSniklas 549b305b0f1Sespieac_exeext= 550b305b0f1Sespieac_objext=o 5512159047fSniklasif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 5522159047fSniklas # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 5532159047fSniklas if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 5542159047fSniklas ac_n= ac_c=' 5552159047fSniklas' ac_t=' ' 5562159047fSniklas else 5572159047fSniklas ac_n=-n ac_c= ac_t= 5582159047fSniklas fi 5592159047fSniklaselse 5602159047fSniklas ac_n= ac_c='\c' ac_t= 5612159047fSniklasfi 5622159047fSniklas 563b55d4692Sfgschecho $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 564c074d1c9Sdrahnecho "configure:565: checking for Cygwin environment" >&5 565b55d4692Sfgschif eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 566b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 567b55d4692Sfgschelse 568b55d4692Sfgsch cat > conftest.$ac_ext <<EOF 569c074d1c9Sdrahn#line 570 "configure" 570b55d4692Sfgsch#include "confdefs.h" 571b55d4692Sfgsch 572b55d4692Sfgschint main() { 573b55d4692Sfgsch 574b55d4692Sfgsch#ifndef __CYGWIN__ 575b55d4692Sfgsch#define __CYGWIN__ __CYGWIN32__ 576b55d4692Sfgsch#endif 577b55d4692Sfgschreturn __CYGWIN__; 578b55d4692Sfgsch; return 0; } 579b55d4692SfgschEOF 580c074d1c9Sdrahnif { (eval echo configure:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 581b55d4692Sfgsch rm -rf conftest* 582b55d4692Sfgsch ac_cv_cygwin=yes 583b55d4692Sfgschelse 584b55d4692Sfgsch echo "configure: failed program was:" >&5 585b55d4692Sfgsch cat conftest.$ac_ext >&5 586b55d4692Sfgsch rm -rf conftest* 587b55d4692Sfgsch ac_cv_cygwin=no 588b55d4692Sfgschfi 589b55d4692Sfgschrm -f conftest* 590b55d4692Sfgschrm -f conftest* 591b55d4692Sfgschfi 592b55d4692Sfgsch 593b55d4692Sfgschecho "$ac_t""$ac_cv_cygwin" 1>&6 594b55d4692SfgschCYGWIN= 595b55d4692Sfgschtest "$ac_cv_cygwin" = yes && CYGWIN=yes 596b55d4692Sfgschecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 597c074d1c9Sdrahnecho "configure:598: checking for mingw32 environment" >&5 598b55d4692Sfgschif eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 599b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 600b55d4692Sfgschelse 601b55d4692Sfgsch cat > conftest.$ac_ext <<EOF 602c074d1c9Sdrahn#line 603 "configure" 603b55d4692Sfgsch#include "confdefs.h" 604b55d4692Sfgsch 605b55d4692Sfgschint main() { 606b55d4692Sfgschreturn __MINGW32__; 607b55d4692Sfgsch; return 0; } 608b55d4692SfgschEOF 609c074d1c9Sdrahnif { (eval echo configure:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 610b55d4692Sfgsch rm -rf conftest* 611b55d4692Sfgsch ac_cv_mingw32=yes 612b55d4692Sfgschelse 613b55d4692Sfgsch echo "configure: failed program was:" >&5 614b55d4692Sfgsch cat conftest.$ac_ext >&5 615b55d4692Sfgsch rm -rf conftest* 616b55d4692Sfgsch ac_cv_mingw32=no 617b55d4692Sfgschfi 618b55d4692Sfgschrm -f conftest* 619b55d4692Sfgschrm -f conftest* 620b55d4692Sfgschfi 621b55d4692Sfgsch 622b55d4692Sfgschecho "$ac_t""$ac_cv_mingw32" 1>&6 623b55d4692SfgschMINGW32= 624b55d4692Sfgschtest "$ac_cv_mingw32" = yes && MINGW32=yes 6252159047fSniklas 6262159047fSniklas 6272159047fSniklasac_aux_dir= 628c074d1c9Sdrahnfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 6292159047fSniklas if test -f $ac_dir/install-sh; then 6302159047fSniklas ac_aux_dir=$ac_dir 6312159047fSniklas ac_install_sh="$ac_aux_dir/install-sh -c" 6322159047fSniklas break 6332159047fSniklas elif test -f $ac_dir/install.sh; then 6342159047fSniklas ac_aux_dir=$ac_dir 6352159047fSniklas ac_install_sh="$ac_aux_dir/install.sh -c" 6362159047fSniklas break 6372159047fSniklas fi 6382159047fSniklasdone 6392159047fSniklasif test -z "$ac_aux_dir"; then 640b305b0f1Sespie { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 6412159047fSniklasfi 6422159047fSniklasac_config_guess=$ac_aux_dir/config.guess 6432159047fSniklasac_config_sub=$ac_aux_dir/config.sub 6442159047fSniklasac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 6452159047fSniklas 6462159047fSniklas 6472159047fSniklas# Do some error checking and defaulting for the host and target type. 6482159047fSniklas# The inputs are: 6492159047fSniklas# configure --host=HOST --target=TARGET --build=BUILD NONOPT 6502159047fSniklas# 6512159047fSniklas# The rules are: 6522159047fSniklas# 1. You are not allowed to specify --host, --target, and nonopt at the 6532159047fSniklas# same time. 6542159047fSniklas# 2. Host defaults to nonopt. 6552159047fSniklas# 3. If nonopt is not specified, then host defaults to the current host, 6562159047fSniklas# as determined by config.guess. 6572159047fSniklas# 4. Target and build default to nonopt. 6582159047fSniklas# 5. If nonopt is not specified, then target and build default to host. 6592159047fSniklas 6602159047fSniklas# The aliases save the names the user supplied, while $host etc. 6612159047fSniklas# will get canonicalized. 6622159047fSniklascase $host---$target---$nonopt in 6632159047fSniklasNONE---*---* | *---NONE---* | *---*---NONE) ;; 6642159047fSniklas*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 6652159047fSniklasesac 6662159047fSniklas 6672159047fSniklas 6682159047fSniklas# Make sure we can run config.sub. 669b305b0f1Sespieif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 6702159047fSniklaselse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 6712159047fSniklasfi 6722159047fSniklas 6732159047fSniklasecho $ac_n "checking host system type""... $ac_c" 1>&6 674c074d1c9Sdrahnecho "configure:675: checking host system type" >&5 6752159047fSniklas 6762159047fSniklashost_alias=$host 6772159047fSniklascase "$host_alias" in 6782159047fSniklasNONE) 6792159047fSniklas case $nonopt in 6802159047fSniklas NONE) 681b305b0f1Sespie if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 6822159047fSniklas else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 6832159047fSniklas fi ;; 6842159047fSniklas *) host_alias=$nonopt ;; 6852159047fSniklas esac ;; 6862159047fSniklasesac 6872159047fSniklas 688b305b0f1Sespiehost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 689b305b0f1Sespiehost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 690b305b0f1Sespiehost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 691b305b0f1Sespiehost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 6922159047fSniklasecho "$ac_t""$host" 1>&6 6932159047fSniklas 6942159047fSniklasecho $ac_n "checking target system type""... $ac_c" 1>&6 695c074d1c9Sdrahnecho "configure:696: checking target system type" >&5 6962159047fSniklas 6972159047fSniklastarget_alias=$target 6982159047fSniklascase "$target_alias" in 6992159047fSniklasNONE) 7002159047fSniklas case $nonopt in 7012159047fSniklas NONE) target_alias=$host_alias ;; 7022159047fSniklas *) target_alias=$nonopt ;; 7032159047fSniklas esac ;; 7042159047fSniklasesac 7052159047fSniklas 706b305b0f1Sespietarget=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 707b305b0f1Sespietarget_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 708b305b0f1Sespietarget_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 709b305b0f1Sespietarget_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 7102159047fSniklasecho "$ac_t""$target" 1>&6 7112159047fSniklas 7122159047fSniklasecho $ac_n "checking build system type""... $ac_c" 1>&6 713c074d1c9Sdrahnecho "configure:714: checking build system type" >&5 7142159047fSniklas 7152159047fSniklasbuild_alias=$build 7162159047fSniklascase "$build_alias" in 7172159047fSniklasNONE) 7182159047fSniklas case $nonopt in 7192159047fSniklas NONE) build_alias=$host_alias ;; 7202159047fSniklas *) build_alias=$nonopt ;; 7212159047fSniklas esac ;; 7222159047fSniklasesac 7232159047fSniklas 724b305b0f1Sespiebuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 725b305b0f1Sespiebuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 726b305b0f1Sespiebuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 727b305b0f1Sespiebuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 7282159047fSniklasecho "$ac_t""$build" 1>&6 7292159047fSniklas 7302159047fSniklastest "$host_alias" != "$target_alias" && 7312159047fSniklas test "$program_prefix$program_suffix$program_transform_name" = \ 7322159047fSniklas NONENONEs,x,x, && 7332159047fSniklas program_prefix=${target_alias}- 7342159047fSniklas 735*007c2a45Smiod 736*007c2a45Smiod echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 737*007c2a45Smiodecho "configure:738: checking for strerror in -lcposix" >&5 738*007c2a45Smiodac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` 739*007c2a45Smiodif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 740c88b1d6cSniklas echo $ac_n "(cached) $ac_c" 1>&6 741c88b1d6cSniklaselse 742*007c2a45Smiod ac_save_LIBS="$LIBS" 743*007c2a45SmiodLIBS="-lcposix $LIBS" 744b305b0f1Sespiecat > conftest.$ac_ext <<EOF 745*007c2a45Smiod#line 746 "configure" 746b305b0f1Sespie#include "confdefs.h" 747*007c2a45Smiod/* Override any gcc2 internal prototype to avoid an error. */ 748*007c2a45Smiod/* We use char because int might match the return type of a gcc2 749*007c2a45Smiod builtin and then its argument prototype would still apply. */ 750*007c2a45Smiodchar strerror(); 751b305b0f1Sespie 752*007c2a45Smiodint main() { 753*007c2a45Smiodstrerror() 754*007c2a45Smiod; return 0; } 755b305b0f1SespieEOF 756*007c2a45Smiodif { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 757*007c2a45Smiod rm -rf conftest* 758*007c2a45Smiod eval "ac_cv_lib_$ac_lib_var=yes" 759b305b0f1Sespieelse 760b305b0f1Sespie echo "configure: failed program was:" >&5 761b305b0f1Sespie cat conftest.$ac_ext >&5 762*007c2a45Smiod rm -rf conftest* 763*007c2a45Smiod eval "ac_cv_lib_$ac_lib_var=no" 764c88b1d6cSniklasfi 765c88b1d6cSniklasrm -f conftest* 766*007c2a45SmiodLIBS="$ac_save_LIBS" 767c88b1d6cSniklas 768c88b1d6cSniklasfi 769*007c2a45Smiodif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 770b305b0f1Sespie echo "$ac_t""yes" 1>&6 771*007c2a45Smiod LIBS="$LIBS -lcposix" 772b305b0f1Sespieelse 773b305b0f1Sespie echo "$ac_t""no" 1>&6 7742159047fSniklasfi 7752159047fSniklas 7762159047fSniklas 777*007c2a45Smiod 778*007c2a45Smiod 779b305b0f1Sespie# We currently only use the version number for the name of any shared 780b305b0f1Sespie# library. For user convenience, we always use the same version 781b305b0f1Sespie# number that BFD is using. 782b55d4692SfgschBFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` 783b305b0f1Sespie 784b305b0f1Sespie# Find a good install program. We prefer a C program (faster), 785b305b0f1Sespie# so one script is as good as another. But avoid the broken or 786b305b0f1Sespie# incompatible versions: 787b305b0f1Sespie# SysV /etc/install, /usr/sbin/install 788b305b0f1Sespie# SunOS /usr/etc/install 789b305b0f1Sespie# IRIX /sbin/install 790b305b0f1Sespie# AIX /bin/install 791b305b0f1Sespie# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 792b305b0f1Sespie# AFS /usr/afsws/bin/install, which mishandles nonexistent args 793b305b0f1Sespie# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 794b305b0f1Sespie# ./install, which can be erroneously created by make from ./install.sh. 795b305b0f1Sespieecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 796*007c2a45Smiodecho "configure:797: checking for a BSD compatible install" >&5 797b305b0f1Sespieif test -z "$INSTALL"; then 798b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 799b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 800b305b0f1Sespieelse 801b305b0f1Sespie IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 802b305b0f1Sespie for ac_dir in $PATH; do 803b305b0f1Sespie # Account for people who put trailing slashes in PATH elements. 804b305b0f1Sespie case "$ac_dir/" in 805b305b0f1Sespie /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 806b305b0f1Sespie *) 807b305b0f1Sespie # OSF1 and SCO ODT 3.0 have their own names for install. 808b305b0f1Sespie # Don't use installbsd from OSF since it installs stuff as root 809b305b0f1Sespie # by default. 810b305b0f1Sespie for ac_prog in ginstall scoinst install; do 811b305b0f1Sespie if test -f $ac_dir/$ac_prog; then 812b305b0f1Sespie if test $ac_prog = install && 813b305b0f1Sespie grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 814b305b0f1Sespie # AIX install. It has an incompatible calling convention. 815b305b0f1Sespie : 816b305b0f1Sespie else 817b305b0f1Sespie ac_cv_path_install="$ac_dir/$ac_prog -c" 818b305b0f1Sespie break 2 819b305b0f1Sespie fi 820b305b0f1Sespie fi 821b305b0f1Sespie done 822b305b0f1Sespie ;; 823b305b0f1Sespie esac 824b305b0f1Sespie done 825b305b0f1Sespie IFS="$ac_save_IFS" 826b305b0f1Sespie 827b305b0f1Sespiefi 828b305b0f1Sespie if test "${ac_cv_path_install+set}" = set; then 829b305b0f1Sespie INSTALL="$ac_cv_path_install" 830b305b0f1Sespie else 831b305b0f1Sespie # As a last resort, use the slow shell script. We don't cache a 832b305b0f1Sespie # path for INSTALL within a source directory, because that will 833b305b0f1Sespie # break other packages using the cache if that directory is 834b305b0f1Sespie # removed, or if the path is relative. 835b305b0f1Sespie INSTALL="$ac_install_sh" 836b305b0f1Sespie fi 837b305b0f1Sespiefi 838b305b0f1Sespieecho "$ac_t""$INSTALL" 1>&6 839b305b0f1Sespie 840b305b0f1Sespie# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 841b305b0f1Sespie# It thinks the first close brace ends the variable substitution. 842b305b0f1Sespietest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 843b305b0f1Sespie 844b305b0f1Sespietest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 845b305b0f1Sespie 846b305b0f1Sespietest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 847b305b0f1Sespie 848b305b0f1Sespieecho $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 849*007c2a45Smiodecho "configure:850: checking whether build environment is sane" >&5 850b305b0f1Sespie# Just in case 851b305b0f1Sespiesleep 1 852b305b0f1Sespieecho timestamp > conftestfile 853b305b0f1Sespie# Do `set' in a subshell so we don't clobber the current shell's 854b305b0f1Sespie# arguments. Must try -L first in case configure is actually a 855b305b0f1Sespie# symlink; some systems play weird games with the mod time of symlinks 856b305b0f1Sespie# (eg FreeBSD returns the mod time of the symlink's containing 857b305b0f1Sespie# directory). 858b305b0f1Sespieif ( 859b305b0f1Sespie set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 860b305b0f1Sespie if test "$*" = "X"; then 861b305b0f1Sespie # -L didn't work. 862b305b0f1Sespie set X `ls -t $srcdir/configure conftestfile` 863b305b0f1Sespie fi 864b305b0f1Sespie if test "$*" != "X $srcdir/configure conftestfile" \ 865b305b0f1Sespie && test "$*" != "X conftestfile $srcdir/configure"; then 866b305b0f1Sespie 867b305b0f1Sespie # If neither matched, then we have a broken ls. This can happen 868b305b0f1Sespie # if, for instance, CONFIG_SHELL is bash and it inherits a 869b305b0f1Sespie # broken ls alias from the environment. This has actually 870b305b0f1Sespie # happened. Such a system could not be considered "sane". 871b305b0f1Sespie { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 872b305b0f1Sespiealias in your environment" 1>&2; exit 1; } 873b305b0f1Sespie fi 874b305b0f1Sespie 875b305b0f1Sespie test "$2" = conftestfile 876b305b0f1Sespie ) 877b305b0f1Sespiethen 878b305b0f1Sespie # Ok. 879b305b0f1Sespie : 880b305b0f1Sespieelse 881b305b0f1Sespie { echo "configure: error: newly created file is older than distributed files! 882b305b0f1SespieCheck your system clock" 1>&2; exit 1; } 883b305b0f1Sespiefi 884b305b0f1Sespierm -f conftest* 885b305b0f1Sespieecho "$ac_t""yes" 1>&6 886b305b0f1Sespieif test "$program_transform_name" = s,x,x,; then 887b305b0f1Sespie program_transform_name= 888b305b0f1Sespieelse 889b305b0f1Sespie # Double any \ or $. echo might interpret backslashes. 890b305b0f1Sespie cat <<\EOF_SED > conftestsed 891b305b0f1Sespies,\\,\\\\,g; s,\$,$$,g 892b305b0f1SespieEOF_SED 893b305b0f1Sespie program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 894b305b0f1Sespie rm -f conftestsed 895b305b0f1Sespiefi 896b305b0f1Sespietest "$program_prefix" != NONE && 897b305b0f1Sespie program_transform_name="s,^,${program_prefix},; $program_transform_name" 898b305b0f1Sespie# Use a double $ so make ignores it. 899b305b0f1Sespietest "$program_suffix" != NONE && 900b305b0f1Sespie program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 901b305b0f1Sespie 902b305b0f1Sespie# sed with no file args requires a program. 903b305b0f1Sespietest "$program_transform_name" = "" && program_transform_name="s,x,x," 904b305b0f1Sespie 905b305b0f1Sespieecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 906*007c2a45Smiodecho "configure:907: checking whether ${MAKE-make} sets \${MAKE}" >&5 907b305b0f1Sespieset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 908b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 909b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 910b305b0f1Sespieelse 911b305b0f1Sespie cat > conftestmake <<\EOF 912b305b0f1Sespieall: 913b305b0f1Sespie @echo 'ac_maketemp="${MAKE}"' 914b305b0f1SespieEOF 915b305b0f1Sespie# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 916b305b0f1Sespieeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 917b305b0f1Sespieif test -n "$ac_maketemp"; then 918b305b0f1Sespie eval ac_cv_prog_make_${ac_make}_set=yes 919b305b0f1Sespieelse 920b305b0f1Sespie eval ac_cv_prog_make_${ac_make}_set=no 921b305b0f1Sespiefi 922b305b0f1Sespierm -f conftestmake 923b305b0f1Sespiefi 924b305b0f1Sespieif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 925b305b0f1Sespie echo "$ac_t""yes" 1>&6 926b305b0f1Sespie SET_MAKE= 927b305b0f1Sespieelse 928b305b0f1Sespie echo "$ac_t""no" 1>&6 929b305b0f1Sespie SET_MAKE="MAKE=${MAKE-make}" 930b305b0f1Sespiefi 931b305b0f1Sespie 932b305b0f1Sespie 933b305b0f1SespiePACKAGE=opcodes 934b305b0f1Sespie 935b305b0f1SespieVERSION=${BFD_VERSION} 936b305b0f1Sespie 937b305b0f1Sespieif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 938b305b0f1Sespie { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 939b305b0f1Sespiefi 940b305b0f1Sespiecat >> confdefs.h <<EOF 941b305b0f1Sespie#define PACKAGE "$PACKAGE" 942b305b0f1SespieEOF 943b305b0f1Sespie 944b305b0f1Sespiecat >> confdefs.h <<EOF 945b305b0f1Sespie#define VERSION "$VERSION" 946b305b0f1SespieEOF 947b305b0f1Sespie 948b305b0f1Sespie 949b305b0f1Sespie 950b305b0f1Sespiemissing_dir=`cd $ac_aux_dir && pwd` 951b305b0f1Sespieecho $ac_n "checking for working aclocal""... $ac_c" 1>&6 952*007c2a45Smiodecho "configure:953: checking for working aclocal" >&5 953b305b0f1Sespie# Run test in a subshell; some versions of sh will print an error if 954b305b0f1Sespie# an executable is not found, even if stderr is redirected. 955b305b0f1Sespie# Redirect stdin to placate older versions of autoconf. Sigh. 956b305b0f1Sespieif (aclocal --version) < /dev/null > /dev/null 2>&1; then 957b305b0f1Sespie ACLOCAL=aclocal 958b305b0f1Sespie echo "$ac_t""found" 1>&6 959b305b0f1Sespieelse 960b305b0f1Sespie ACLOCAL="$missing_dir/missing aclocal" 961b305b0f1Sespie echo "$ac_t""missing" 1>&6 962b305b0f1Sespiefi 963b305b0f1Sespie 964b305b0f1Sespieecho $ac_n "checking for working autoconf""... $ac_c" 1>&6 965*007c2a45Smiodecho "configure:966: checking for working autoconf" >&5 966b305b0f1Sespie# Run test in a subshell; some versions of sh will print an error if 967b305b0f1Sespie# an executable is not found, even if stderr is redirected. 968b305b0f1Sespie# Redirect stdin to placate older versions of autoconf. Sigh. 969b305b0f1Sespieif (autoconf --version) < /dev/null > /dev/null 2>&1; then 970b305b0f1Sespie AUTOCONF=autoconf 971b305b0f1Sespie echo "$ac_t""found" 1>&6 972b305b0f1Sespieelse 973b305b0f1Sespie AUTOCONF="$missing_dir/missing autoconf" 974b305b0f1Sespie echo "$ac_t""missing" 1>&6 975b305b0f1Sespiefi 976b305b0f1Sespie 977b305b0f1Sespieecho $ac_n "checking for working automake""... $ac_c" 1>&6 978*007c2a45Smiodecho "configure:979: checking for working automake" >&5 979b305b0f1Sespie# Run test in a subshell; some versions of sh will print an error if 980b305b0f1Sespie# an executable is not found, even if stderr is redirected. 981b305b0f1Sespie# Redirect stdin to placate older versions of autoconf. Sigh. 982b305b0f1Sespieif (automake --version) < /dev/null > /dev/null 2>&1; then 983b305b0f1Sespie AUTOMAKE=automake 984b305b0f1Sespie echo "$ac_t""found" 1>&6 985b305b0f1Sespieelse 986b305b0f1Sespie AUTOMAKE="$missing_dir/missing automake" 987b305b0f1Sespie echo "$ac_t""missing" 1>&6 988b305b0f1Sespiefi 989b305b0f1Sespie 990b305b0f1Sespieecho $ac_n "checking for working autoheader""... $ac_c" 1>&6 991*007c2a45Smiodecho "configure:992: checking for working autoheader" >&5 992b305b0f1Sespie# Run test in a subshell; some versions of sh will print an error if 993b305b0f1Sespie# an executable is not found, even if stderr is redirected. 994b305b0f1Sespie# Redirect stdin to placate older versions of autoconf. Sigh. 995b305b0f1Sespieif (autoheader --version) < /dev/null > /dev/null 2>&1; then 996b305b0f1Sespie AUTOHEADER=autoheader 997b305b0f1Sespie echo "$ac_t""found" 1>&6 998b305b0f1Sespieelse 999b305b0f1Sespie AUTOHEADER="$missing_dir/missing autoheader" 1000b305b0f1Sespie echo "$ac_t""missing" 1>&6 1001b305b0f1Sespiefi 1002b305b0f1Sespie 1003b305b0f1Sespieecho $ac_n "checking for working makeinfo""... $ac_c" 1>&6 1004*007c2a45Smiodecho "configure:1005: checking for working makeinfo" >&5 1005b305b0f1Sespie# Run test in a subshell; some versions of sh will print an error if 1006b305b0f1Sespie# an executable is not found, even if stderr is redirected. 1007b305b0f1Sespie# Redirect stdin to placate older versions of autoconf. Sigh. 1008b305b0f1Sespieif (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1009b305b0f1Sespie MAKEINFO=makeinfo 1010b305b0f1Sespie echo "$ac_t""found" 1>&6 1011b305b0f1Sespieelse 1012b305b0f1Sespie MAKEINFO="$missing_dir/missing makeinfo" 1013b305b0f1Sespie echo "$ac_t""missing" 1>&6 1014b305b0f1Sespiefi 1015b305b0f1Sespie 10162159047fSniklas 1017c88b1d6cSniklas 1018c88b1d6cSniklasif test $host != $build; then 1019c88b1d6cSniklas ac_tool_prefix=${host_alias}- 1020c88b1d6cSniklaselse 1021c88b1d6cSniklas ac_tool_prefix= 1022c88b1d6cSniklasfi 1023c88b1d6cSniklas 1024c88b1d6cSniklas# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 1025c88b1d6cSniklasset dummy ${ac_tool_prefix}ar; ac_word=$2 10262159047fSniklasecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 1027*007c2a45Smiodecho "configure:1028: checking for $ac_word" >&5 10282159047fSniklasif eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 10292159047fSniklas echo $ac_n "(cached) $ac_c" 1>&6 10302159047fSniklaselse 10312159047fSniklas if test -n "$AR"; then 10322159047fSniklas ac_cv_prog_AR="$AR" # Let the user override the test. 10332159047fSniklaselse 1034b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1035b305b0f1Sespie ac_dummy="$PATH" 1036b305b0f1Sespie for ac_dir in $ac_dummy; do 10372159047fSniklas test -z "$ac_dir" && ac_dir=. 10382159047fSniklas if test -f $ac_dir/$ac_word; then 1039c88b1d6cSniklas ac_cv_prog_AR="${ac_tool_prefix}ar" 10402159047fSniklas break 10412159047fSniklas fi 10422159047fSniklas done 10432159047fSniklas IFS="$ac_save_ifs" 1044c88b1d6cSniklas test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 10452159047fSniklasfi 10462159047fSniklasfi 10472159047fSniklasAR="$ac_cv_prog_AR" 10482159047fSniklasif test -n "$AR"; then 10492159047fSniklas echo "$ac_t""$AR" 1>&6 10502159047fSniklaselse 10512159047fSniklas echo "$ac_t""no" 1>&6 10522159047fSniklasfi 10532159047fSniklas 1054c88b1d6cSniklas 1055c88b1d6cSniklas 1056c88b1d6cSniklas# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 1057c88b1d6cSniklasset dummy ${ac_tool_prefix}ranlib; ac_word=$2 1058c88b1d6cSniklasecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 1059*007c2a45Smiodecho "configure:1060: checking for $ac_word" >&5 1060c88b1d6cSniklasif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1061c88b1d6cSniklas echo $ac_n "(cached) $ac_c" 1>&6 1062c88b1d6cSniklaselse 1063c88b1d6cSniklas if test -n "$RANLIB"; then 1064c88b1d6cSniklas ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1065c88b1d6cSniklaselse 1066b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1067b305b0f1Sespie ac_dummy="$PATH" 1068b305b0f1Sespie for ac_dir in $ac_dummy; do 1069c88b1d6cSniklas test -z "$ac_dir" && ac_dir=. 1070c88b1d6cSniklas if test -f $ac_dir/$ac_word; then 1071c88b1d6cSniklas ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 1072c88b1d6cSniklas break 1073c88b1d6cSniklas fi 1074c88b1d6cSniklas done 1075c88b1d6cSniklas IFS="$ac_save_ifs" 1076c88b1d6cSniklasfi 1077c88b1d6cSniklasfi 1078c88b1d6cSniklasRANLIB="$ac_cv_prog_RANLIB" 1079c88b1d6cSniklasif test -n "$RANLIB"; then 1080c88b1d6cSniklas echo "$ac_t""$RANLIB" 1>&6 1081c88b1d6cSniklaselse 1082c88b1d6cSniklas echo "$ac_t""no" 1>&6 1083c88b1d6cSniklasfi 1084c88b1d6cSniklas 1085c88b1d6cSniklas 1086c88b1d6cSniklasif test -z "$ac_cv_prog_RANLIB"; then 1087c88b1d6cSniklasif test -n "$ac_tool_prefix"; then 10882159047fSniklas # Extract the first word of "ranlib", so it can be a program name with args. 10892159047fSniklasset dummy ranlib; ac_word=$2 10902159047fSniklasecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 1091*007c2a45Smiodecho "configure:1092: checking for $ac_word" >&5 10922159047fSniklasif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 10932159047fSniklas echo $ac_n "(cached) $ac_c" 1>&6 10942159047fSniklaselse 10952159047fSniklas if test -n "$RANLIB"; then 10962159047fSniklas ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10972159047fSniklaselse 1098b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1099b305b0f1Sespie ac_dummy="$PATH" 1100b305b0f1Sespie for ac_dir in $ac_dummy; do 11012159047fSniklas test -z "$ac_dir" && ac_dir=. 11022159047fSniklas if test -f $ac_dir/$ac_word; then 11032159047fSniklas ac_cv_prog_RANLIB="ranlib" 11042159047fSniklas break 11052159047fSniklas fi 11062159047fSniklas done 11072159047fSniklas IFS="$ac_save_ifs" 11082159047fSniklas test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 11092159047fSniklasfi 11102159047fSniklasfi 11112159047fSniklasRANLIB="$ac_cv_prog_RANLIB" 11122159047fSniklasif test -n "$RANLIB"; then 11132159047fSniklas echo "$ac_t""$RANLIB" 1>&6 11142159047fSniklaselse 11152159047fSniklas echo "$ac_t""no" 1>&6 11162159047fSniklasfi 11172159047fSniklas 1118c88b1d6cSniklaselse 1119c88b1d6cSniklas RANLIB=":" 1120c88b1d6cSniklasfi 1121c88b1d6cSniklasfi 1122c88b1d6cSniklas 1123b305b0f1Sespie 1124b305b0f1Sespie# Check whether --enable-shared or --disable-shared was given. 1125b305b0f1Sespieif test "${enable_shared+set}" = set; then 1126b305b0f1Sespie enableval="$enable_shared" 1127b305b0f1Sespie p=${PACKAGE-default} 1128c074d1c9Sdrahncase $enableval in 1129b305b0f1Sespieyes) enable_shared=yes ;; 1130b305b0f1Sespieno) enable_shared=no ;; 1131b305b0f1Sespie*) 1132b305b0f1Sespie enable_shared=no 1133b305b0f1Sespie # Look at the argument we got. We use all the common list separators. 1134b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1135b305b0f1Sespie for pkg in $enableval; do 1136b305b0f1Sespie if test "X$pkg" = "X$p"; then 1137b305b0f1Sespie enable_shared=yes 1138b305b0f1Sespie fi 1139b305b0f1Sespie done 1140b305b0f1Sespie IFS="$ac_save_ifs" 1141b305b0f1Sespie ;; 1142b305b0f1Sespieesac 1143b305b0f1Sespieelse 1144b305b0f1Sespie enable_shared=no 1145b305b0f1Sespiefi 1146b305b0f1Sespie 1147b305b0f1Sespie 1148b305b0f1Sespie# Check whether --enable-static or --disable-static was given. 1149b305b0f1Sespieif test "${enable_static+set}" = set; then 1150b305b0f1Sespie enableval="$enable_static" 1151b305b0f1Sespie p=${PACKAGE-default} 1152c074d1c9Sdrahncase $enableval in 1153b305b0f1Sespieyes) enable_static=yes ;; 1154b305b0f1Sespieno) enable_static=no ;; 1155b305b0f1Sespie*) 1156b305b0f1Sespie enable_static=no 1157b305b0f1Sespie # Look at the argument we got. We use all the common list separators. 1158b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1159b305b0f1Sespie for pkg in $enableval; do 1160b305b0f1Sespie if test "X$pkg" = "X$p"; then 1161b305b0f1Sespie enable_static=yes 1162b305b0f1Sespie fi 1163b305b0f1Sespie done 1164b305b0f1Sespie IFS="$ac_save_ifs" 1165b305b0f1Sespie ;; 1166b305b0f1Sespieesac 1167b305b0f1Sespieelse 1168b305b0f1Sespie enable_static=yes 1169b305b0f1Sespiefi 1170b305b0f1Sespie 1171b305b0f1Sespie# Check whether --enable-fast-install or --disable-fast-install was given. 1172b305b0f1Sespieif test "${enable_fast_install+set}" = set; then 1173b305b0f1Sespie enableval="$enable_fast_install" 1174b305b0f1Sespie p=${PACKAGE-default} 1175c074d1c9Sdrahncase $enableval in 1176b305b0f1Sespieyes) enable_fast_install=yes ;; 1177b305b0f1Sespieno) enable_fast_install=no ;; 1178b305b0f1Sespie*) 1179b305b0f1Sespie enable_fast_install=no 1180b305b0f1Sespie # Look at the argument we got. We use all the common list separators. 1181b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1182b305b0f1Sespie for pkg in $enableval; do 1183b305b0f1Sespie if test "X$pkg" = "X$p"; then 1184b305b0f1Sespie enable_fast_install=yes 1185b305b0f1Sespie fi 1186b305b0f1Sespie done 1187b305b0f1Sespie IFS="$ac_save_ifs" 1188b305b0f1Sespie ;; 1189b305b0f1Sespieesac 1190b305b0f1Sespieelse 1191b305b0f1Sespie enable_fast_install=yes 1192b305b0f1Sespiefi 1193b305b0f1Sespie 1194*007c2a45Smiod# Extract the first word of "gcc", so it can be a program name with args. 1195*007c2a45Smiodset dummy gcc; ac_word=$2 1196*007c2a45Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 1197*007c2a45Smiodecho "configure:1198: checking for $ac_word" >&5 1198*007c2a45Smiodif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1199*007c2a45Smiod echo $ac_n "(cached) $ac_c" 1>&6 1200*007c2a45Smiodelse 1201*007c2a45Smiod if test -n "$CC"; then 1202*007c2a45Smiod ac_cv_prog_CC="$CC" # Let the user override the test. 1203*007c2a45Smiodelse 1204*007c2a45Smiod IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1205*007c2a45Smiod ac_dummy="$PATH" 1206*007c2a45Smiod for ac_dir in $ac_dummy; do 1207*007c2a45Smiod test -z "$ac_dir" && ac_dir=. 1208*007c2a45Smiod if test -f $ac_dir/$ac_word; then 1209*007c2a45Smiod ac_cv_prog_CC="gcc" 1210*007c2a45Smiod break 1211*007c2a45Smiod fi 1212*007c2a45Smiod done 1213*007c2a45Smiod IFS="$ac_save_ifs" 1214*007c2a45Smiodfi 1215*007c2a45Smiodfi 1216*007c2a45SmiodCC="$ac_cv_prog_CC" 1217*007c2a45Smiodif test -n "$CC"; then 1218*007c2a45Smiod echo "$ac_t""$CC" 1>&6 1219*007c2a45Smiodelse 1220*007c2a45Smiod echo "$ac_t""no" 1>&6 1221*007c2a45Smiodfi 1222*007c2a45Smiod 1223*007c2a45Smiodif test -z "$CC"; then 1224*007c2a45Smiod # Extract the first word of "cc", so it can be a program name with args. 1225*007c2a45Smiodset dummy cc; ac_word=$2 1226*007c2a45Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 1227*007c2a45Smiodecho "configure:1228: checking for $ac_word" >&5 1228*007c2a45Smiodif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1229*007c2a45Smiod echo $ac_n "(cached) $ac_c" 1>&6 1230*007c2a45Smiodelse 1231*007c2a45Smiod if test -n "$CC"; then 1232*007c2a45Smiod ac_cv_prog_CC="$CC" # Let the user override the test. 1233*007c2a45Smiodelse 1234*007c2a45Smiod IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1235*007c2a45Smiod ac_prog_rejected=no 1236*007c2a45Smiod ac_dummy="$PATH" 1237*007c2a45Smiod for ac_dir in $ac_dummy; do 1238*007c2a45Smiod test -z "$ac_dir" && ac_dir=. 1239*007c2a45Smiod if test -f $ac_dir/$ac_word; then 1240*007c2a45Smiod if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1241*007c2a45Smiod ac_prog_rejected=yes 1242*007c2a45Smiod continue 1243*007c2a45Smiod fi 1244*007c2a45Smiod ac_cv_prog_CC="cc" 1245*007c2a45Smiod break 1246*007c2a45Smiod fi 1247*007c2a45Smiod done 1248*007c2a45Smiod IFS="$ac_save_ifs" 1249*007c2a45Smiodif test $ac_prog_rejected = yes; then 1250*007c2a45Smiod # We found a bogon in the path, so make sure we never use it. 1251*007c2a45Smiod set dummy $ac_cv_prog_CC 1252*007c2a45Smiod shift 1253*007c2a45Smiod if test $# -gt 0; then 1254*007c2a45Smiod # We chose a different compiler from the bogus one. 1255*007c2a45Smiod # However, it has the same basename, so the bogon will be chosen 1256*007c2a45Smiod # first if we set CC to just the basename; use the full file name. 1257*007c2a45Smiod shift 1258*007c2a45Smiod set dummy "$ac_dir/$ac_word" "$@" 1259*007c2a45Smiod shift 1260*007c2a45Smiod ac_cv_prog_CC="$@" 1261*007c2a45Smiod fi 1262*007c2a45Smiodfi 1263*007c2a45Smiodfi 1264*007c2a45Smiodfi 1265*007c2a45SmiodCC="$ac_cv_prog_CC" 1266*007c2a45Smiodif test -n "$CC"; then 1267*007c2a45Smiod echo "$ac_t""$CC" 1>&6 1268*007c2a45Smiodelse 1269*007c2a45Smiod echo "$ac_t""no" 1>&6 1270*007c2a45Smiodfi 1271*007c2a45Smiod 1272*007c2a45Smiod if test -z "$CC"; then 1273*007c2a45Smiod case "`uname -s`" in 1274*007c2a45Smiod *win32* | *WIN32*) 1275*007c2a45Smiod # Extract the first word of "cl", so it can be a program name with args. 1276*007c2a45Smiodset dummy cl; ac_word=$2 1277*007c2a45Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 1278*007c2a45Smiodecho "configure:1279: checking for $ac_word" >&5 1279*007c2a45Smiodif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1280*007c2a45Smiod echo $ac_n "(cached) $ac_c" 1>&6 1281*007c2a45Smiodelse 1282*007c2a45Smiod if test -n "$CC"; then 1283*007c2a45Smiod ac_cv_prog_CC="$CC" # Let the user override the test. 1284*007c2a45Smiodelse 1285*007c2a45Smiod IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1286*007c2a45Smiod ac_dummy="$PATH" 1287*007c2a45Smiod for ac_dir in $ac_dummy; do 1288*007c2a45Smiod test -z "$ac_dir" && ac_dir=. 1289*007c2a45Smiod if test -f $ac_dir/$ac_word; then 1290*007c2a45Smiod ac_cv_prog_CC="cl" 1291*007c2a45Smiod break 1292*007c2a45Smiod fi 1293*007c2a45Smiod done 1294*007c2a45Smiod IFS="$ac_save_ifs" 1295*007c2a45Smiodfi 1296*007c2a45Smiodfi 1297*007c2a45SmiodCC="$ac_cv_prog_CC" 1298*007c2a45Smiodif test -n "$CC"; then 1299*007c2a45Smiod echo "$ac_t""$CC" 1>&6 1300*007c2a45Smiodelse 1301*007c2a45Smiod echo "$ac_t""no" 1>&6 1302*007c2a45Smiodfi 1303*007c2a45Smiod ;; 1304*007c2a45Smiod esac 1305*007c2a45Smiod fi 1306*007c2a45Smiod test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1307*007c2a45Smiodfi 1308*007c2a45Smiod 1309*007c2a45Smiodecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1310*007c2a45Smiodecho "configure:1311: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1311*007c2a45Smiod 1312*007c2a45Smiodac_ext=c 1313*007c2a45Smiod# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1314*007c2a45Smiodac_cpp='$CPP $CPPFLAGS' 1315*007c2a45Smiodac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1316*007c2a45Smiodac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1317*007c2a45Smiodcross_compiling=$ac_cv_prog_cc_cross 1318*007c2a45Smiod 1319*007c2a45Smiodcat > conftest.$ac_ext << EOF 1320*007c2a45Smiod 1321*007c2a45Smiod#line 1322 "configure" 1322*007c2a45Smiod#include "confdefs.h" 1323*007c2a45Smiod 1324*007c2a45Smiodmain(){return(0);} 1325*007c2a45SmiodEOF 1326*007c2a45Smiodif { (eval echo configure:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1327*007c2a45Smiod ac_cv_prog_cc_works=yes 1328*007c2a45Smiod # If we can't run a trivial program, we are probably using a cross compiler. 1329*007c2a45Smiod if (./conftest; exit) 2>/dev/null; then 1330*007c2a45Smiod ac_cv_prog_cc_cross=no 1331*007c2a45Smiod else 1332*007c2a45Smiod ac_cv_prog_cc_cross=yes 1333*007c2a45Smiod fi 1334*007c2a45Smiodelse 1335*007c2a45Smiod echo "configure: failed program was:" >&5 1336*007c2a45Smiod cat conftest.$ac_ext >&5 1337*007c2a45Smiod ac_cv_prog_cc_works=no 1338*007c2a45Smiodfi 1339*007c2a45Smiodrm -fr conftest* 1340*007c2a45Smiodac_ext=c 1341*007c2a45Smiod# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1342*007c2a45Smiodac_cpp='$CPP $CPPFLAGS' 1343*007c2a45Smiodac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1344*007c2a45Smiodac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1345*007c2a45Smiodcross_compiling=$ac_cv_prog_cc_cross 1346*007c2a45Smiod 1347*007c2a45Smiodecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 1348*007c2a45Smiodif test $ac_cv_prog_cc_works = no; then 1349*007c2a45Smiod { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1350*007c2a45Smiodfi 1351*007c2a45Smiodecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1352*007c2a45Smiodecho "configure:1353: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1353*007c2a45Smiodecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1354*007c2a45Smiodcross_compiling=$ac_cv_prog_cc_cross 1355*007c2a45Smiod 1356*007c2a45Smiodecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1357*007c2a45Smiodecho "configure:1358: checking whether we are using GNU C" >&5 1358*007c2a45Smiodif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1359*007c2a45Smiod echo $ac_n "(cached) $ac_c" 1>&6 1360*007c2a45Smiodelse 1361*007c2a45Smiod cat > conftest.c <<EOF 1362*007c2a45Smiod#ifdef __GNUC__ 1363*007c2a45Smiod yes; 1364*007c2a45Smiod#endif 1365*007c2a45SmiodEOF 1366*007c2a45Smiodif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1367*007c2a45Smiod ac_cv_prog_gcc=yes 1368*007c2a45Smiodelse 1369*007c2a45Smiod ac_cv_prog_gcc=no 1370*007c2a45Smiodfi 1371*007c2a45Smiodfi 1372*007c2a45Smiod 1373*007c2a45Smiodecho "$ac_t""$ac_cv_prog_gcc" 1>&6 1374*007c2a45Smiod 1375*007c2a45Smiodif test $ac_cv_prog_gcc = yes; then 1376*007c2a45Smiod GCC=yes 1377*007c2a45Smiodelse 1378*007c2a45Smiod GCC= 1379*007c2a45Smiodfi 1380*007c2a45Smiod 1381*007c2a45Smiodac_test_CFLAGS="${CFLAGS+set}" 1382*007c2a45Smiodac_save_CFLAGS="$CFLAGS" 1383*007c2a45SmiodCFLAGS= 1384*007c2a45Smiodecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1385*007c2a45Smiodecho "configure:1386: checking whether ${CC-cc} accepts -g" >&5 1386*007c2a45Smiodif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1387*007c2a45Smiod echo $ac_n "(cached) $ac_c" 1>&6 1388*007c2a45Smiodelse 1389*007c2a45Smiod echo 'void f(){}' > conftest.c 1390*007c2a45Smiodif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1391*007c2a45Smiod ac_cv_prog_cc_g=yes 1392*007c2a45Smiodelse 1393*007c2a45Smiod ac_cv_prog_cc_g=no 1394*007c2a45Smiodfi 1395*007c2a45Smiodrm -f conftest* 1396*007c2a45Smiod 1397*007c2a45Smiodfi 1398*007c2a45Smiod 1399*007c2a45Smiodecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 1400*007c2a45Smiodif test "$ac_test_CFLAGS" = set; then 1401*007c2a45Smiod CFLAGS="$ac_save_CFLAGS" 1402*007c2a45Smiodelif test $ac_cv_prog_cc_g = yes; then 1403*007c2a45Smiod if test "$GCC" = yes; then 1404*007c2a45Smiod CFLAGS="-g -O2" 1405*007c2a45Smiod else 1406*007c2a45Smiod CFLAGS="-g" 1407*007c2a45Smiod fi 1408*007c2a45Smiodelse 1409*007c2a45Smiod if test "$GCC" = yes; then 1410*007c2a45Smiod CFLAGS="-O2" 1411*007c2a45Smiod else 1412*007c2a45Smiod CFLAGS= 1413*007c2a45Smiod fi 1414*007c2a45Smiodfi 1415*007c2a45Smiod 1416b305b0f1Sespie# Check whether --with-gnu-ld or --without-gnu-ld was given. 1417b305b0f1Sespieif test "${with_gnu_ld+set}" = set; then 1418b305b0f1Sespie withval="$with_gnu_ld" 1419b305b0f1Sespie test "$withval" = no || with_gnu_ld=yes 1420b305b0f1Sespieelse 1421b305b0f1Sespie with_gnu_ld=no 1422b305b0f1Sespiefi 1423b305b0f1Sespie 1424b305b0f1Sespieac_prog=ld 1425c074d1c9Sdrahnif test "$GCC" = yes; then 1426b305b0f1Sespie # Check if gcc -print-prog-name=ld gives a path. 1427b305b0f1Sespie echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 1428*007c2a45Smiodecho "configure:1429: checking for ld used by GCC" >&5 1429b55d4692Sfgsch case $host in 1430b55d4692Sfgsch *-*-mingw*) 1431b55d4692Sfgsch # gcc leaves a trailing carriage return which upsets mingw 1432b55d4692Sfgsch ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 1433b55d4692Sfgsch *) 1434b55d4692Sfgsch ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 1435b55d4692Sfgsch esac 1436c074d1c9Sdrahn case $ac_prog in 1437b305b0f1Sespie # Accept absolute paths. 1438b305b0f1Sespie [\\/]* | [A-Za-z]:[\\/]*) 1439b305b0f1Sespie re_direlt='/[^/][^/]*/\.\./' 1440b305b0f1Sespie # Canonicalize the path of ld 1441b305b0f1Sespie ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 1442b305b0f1Sespie while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 1443b305b0f1Sespie ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 1444b305b0f1Sespie done 1445b305b0f1Sespie test -z "$LD" && LD="$ac_prog" 1446b305b0f1Sespie ;; 1447b305b0f1Sespie "") 1448b305b0f1Sespie # If it fails, then pretend we aren't using GCC. 1449b305b0f1Sespie ac_prog=ld 1450b305b0f1Sespie ;; 1451b305b0f1Sespie *) 1452b305b0f1Sespie # If it is relative, then search for the first ld in PATH. 1453b305b0f1Sespie with_gnu_ld=unknown 1454b305b0f1Sespie ;; 1455b305b0f1Sespie esac 1456b305b0f1Sespieelif test "$with_gnu_ld" = yes; then 1457b305b0f1Sespie echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1458*007c2a45Smiodecho "configure:1459: checking for GNU ld" >&5 1459b305b0f1Sespieelse 1460b305b0f1Sespie echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 1461*007c2a45Smiodecho "configure:1462: checking for non-GNU ld" >&5 1462b305b0f1Sespiefi 1463c074d1c9Sdrahnif eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 1464b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 1465b305b0f1Sespieelse 1466b305b0f1Sespie if test -z "$LD"; then 1467b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 1468b305b0f1Sespie for ac_dir in $PATH; do 1469b305b0f1Sespie test -z "$ac_dir" && ac_dir=. 1470b305b0f1Sespie if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 1471c074d1c9Sdrahn lt_cv_path_LD="$ac_dir/$ac_prog" 1472b305b0f1Sespie # Check to see if the program is GNU ld. I'd rather use --version, 1473b305b0f1Sespie # but apparently some GNU ld's only accept -v. 1474b305b0f1Sespie # Break only if it was the GNU/non-GNU ld that we prefer. 1475c074d1c9Sdrahn if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 1476b305b0f1Sespie test "$with_gnu_ld" != no && break 1477b305b0f1Sespie else 1478b305b0f1Sespie test "$with_gnu_ld" != yes && break 1479b305b0f1Sespie fi 1480b305b0f1Sespie fi 1481b305b0f1Sespie done 1482b305b0f1Sespie IFS="$ac_save_ifs" 1483b305b0f1Sespieelse 1484c074d1c9Sdrahn lt_cv_path_LD="$LD" # Let the user override the test with a path. 1485b305b0f1Sespiefi 1486b305b0f1Sespiefi 1487b305b0f1Sespie 1488c074d1c9SdrahnLD="$lt_cv_path_LD" 1489b305b0f1Sespieif test -n "$LD"; then 1490b305b0f1Sespie echo "$ac_t""$LD" 1>&6 1491b305b0f1Sespieelse 1492b305b0f1Sespie echo "$ac_t""no" 1>&6 1493b305b0f1Sespiefi 1494b305b0f1Sespietest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1495b305b0f1Sespieecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1496*007c2a45Smiodecho "configure:1497: checking if the linker ($LD) is GNU ld" >&5 1497c074d1c9Sdrahnif eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then 1498b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 1499b305b0f1Sespieelse 1500b305b0f1Sespie # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1501b305b0f1Sespieif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1502c074d1c9Sdrahn lt_cv_prog_gnu_ld=yes 1503b305b0f1Sespieelse 1504c074d1c9Sdrahn lt_cv_prog_gnu_ld=no 1505b305b0f1Sespiefi 1506b305b0f1Sespiefi 1507b305b0f1Sespie 1508c074d1c9Sdrahnecho "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 1509c074d1c9Sdrahnwith_gnu_ld=$lt_cv_prog_gnu_ld 1510b305b0f1Sespie 1511b305b0f1Sespie 1512b55d4692Sfgschecho $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 1513*007c2a45Smiodecho "configure:1514: checking for $LD option to reload object files" >&5 1514b55d4692Sfgschif eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 1515b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 1516b55d4692Sfgschelse 1517b55d4692Sfgsch lt_cv_ld_reload_flag='-r' 1518b55d4692Sfgschfi 1519b55d4692Sfgsch 1520b55d4692Sfgschecho "$ac_t""$lt_cv_ld_reload_flag" 1>&6 1521b55d4692Sfgschreload_flag=$lt_cv_ld_reload_flag 1522b55d4692Sfgschtest -n "$reload_flag" && reload_flag=" $reload_flag" 1523b55d4692Sfgsch 1524b305b0f1Sespieecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1525*007c2a45Smiodecho "configure:1526: checking for BSD-compatible nm" >&5 1526c074d1c9Sdrahnif eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then 1527b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 1528b305b0f1Sespieelse 1529b305b0f1Sespie if test -n "$NM"; then 1530b305b0f1Sespie # Let the user override the test. 1531c074d1c9Sdrahn lt_cv_path_NM="$NM" 1532b305b0f1Sespieelse 1533b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 1534b305b0f1Sespie for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 1535b305b0f1Sespie test -z "$ac_dir" && ac_dir=. 1536b55d4692Sfgsch tmp_nm=$ac_dir/${ac_tool_prefix}nm 1537b55d4692Sfgsch if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 1538b305b0f1Sespie # Check to see if the nm accepts a BSD-compat flag. 1539b305b0f1Sespie # Adding the `sed 1q' prevents false positives on HP-UX, which says: 1540b305b0f1Sespie # nm: unknown option "B" ignored 1541b55d4692Sfgsch # Tru64's nm complains that /dev/null is an invalid object file 1542b55d4692Sfgsch if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 1543c074d1c9Sdrahn lt_cv_path_NM="$tmp_nm -B" 1544b305b0f1Sespie break 1545b55d4692Sfgsch elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 1546c074d1c9Sdrahn lt_cv_path_NM="$tmp_nm -p" 1547b305b0f1Sespie break 1548b305b0f1Sespie else 1549c074d1c9Sdrahn lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 1550b305b0f1Sespie continue # so that we can try to find one that supports BSD flags 1551b305b0f1Sespie fi 1552b305b0f1Sespie fi 1553b305b0f1Sespie done 1554b305b0f1Sespie IFS="$ac_save_ifs" 1555c074d1c9Sdrahn test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 1556b305b0f1Sespiefi 1557b305b0f1Sespiefi 1558b305b0f1Sespie 1559c074d1c9SdrahnNM="$lt_cv_path_NM" 1560b305b0f1Sespieecho "$ac_t""$NM" 1>&6 1561b305b0f1Sespie 1562b305b0f1Sespieecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1563*007c2a45Smiodecho "configure:1564: checking whether ln -s works" >&5 1564b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1565b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 1566b305b0f1Sespieelse 1567b305b0f1Sespie rm -f conftestdata 1568b305b0f1Sespieif ln -s X conftestdata 2>/dev/null 1569b305b0f1Sespiethen 1570b305b0f1Sespie rm -f conftestdata 1571b305b0f1Sespie ac_cv_prog_LN_S="ln -s" 1572b305b0f1Sespieelse 1573b305b0f1Sespie ac_cv_prog_LN_S=ln 1574b305b0f1Sespiefi 1575b305b0f1Sespiefi 1576b305b0f1SespieLN_S="$ac_cv_prog_LN_S" 1577b305b0f1Sespieif test "$ac_cv_prog_LN_S" = "ln -s"; then 1578b305b0f1Sespie echo "$ac_t""yes" 1>&6 1579b305b0f1Sespieelse 1580b305b0f1Sespie echo "$ac_t""no" 1>&6 1581b305b0f1Sespiefi 1582b305b0f1Sespie 1583b55d4692Sfgschecho $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 1584*007c2a45Smiodecho "configure:1585: checking how to recognise dependant libraries" >&5 1585b55d4692Sfgschif eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 1586b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 1587b55d4692Sfgschelse 1588b55d4692Sfgsch lt_cv_file_magic_cmd='$MAGIC_CMD' 1589b55d4692Sfgschlt_cv_file_magic_test_file= 1590b55d4692Sfgschlt_cv_deplibs_check_method='unknown' 1591b55d4692Sfgsch# Need to set the preceding variable on all platforms that support 1592b55d4692Sfgsch# interlibrary dependencies. 1593b55d4692Sfgsch# 'none' -- dependencies not supported. 1594b55d4692Sfgsch# `unknown' -- same as none, but documents that we really don't know. 1595b55d4692Sfgsch# 'pass_all' -- all dependencies passed with no checks. 1596b55d4692Sfgsch# 'test_compile' -- check by making test program. 1597b55d4692Sfgsch# 'file_magic [regex]' -- check by looking for files in library path 1598b55d4692Sfgsch# which responds to the $file_magic_cmd with a given egrep regex. 1599b55d4692Sfgsch# If you have `file' or equivalent on your system and you're not sure 1600b55d4692Sfgsch# whether `pass_all' will *always* work, you probably want this one. 1601b305b0f1Sespie 1602c074d1c9Sdrahncase $host_os in 1603c074d1c9Sdrahnaix*) 1604b55d4692Sfgsch lt_cv_deplibs_check_method=pass_all 1605b55d4692Sfgsch ;; 1606b55d4692Sfgsch 1607b55d4692Sfgschbeos*) 1608b55d4692Sfgsch lt_cv_deplibs_check_method=pass_all 1609b55d4692Sfgsch ;; 1610b55d4692Sfgsch 1611b55d4692Sfgschbsdi4*) 1612b55d4692Sfgsch lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 1613b55d4692Sfgsch lt_cv_file_magic_cmd='/usr/bin/file -L' 1614b55d4692Sfgsch lt_cv_file_magic_test_file=/shlib/libc.so 1615b55d4692Sfgsch ;; 1616b55d4692Sfgsch 1617b55d4692Sfgschcygwin* | mingw* |pw32*) 1618b55d4692Sfgsch lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 1619b55d4692Sfgsch lt_cv_file_magic_cmd='$OBJDUMP -f' 1620b55d4692Sfgsch ;; 1621b55d4692Sfgsch 1622c074d1c9Sdrahndarwin* | rhapsody*) 1623c074d1c9Sdrahn lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 1624c074d1c9Sdrahn lt_cv_file_magic_cmd='/usr/bin/file -L' 1625c074d1c9Sdrahn case "$host_os" in 1626c074d1c9Sdrahn rhapsody* | darwin1.012) 1627c074d1c9Sdrahn lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' 1628c074d1c9Sdrahn ;; 1629c074d1c9Sdrahn *) # Darwin 1.3 on 1630c074d1c9Sdrahn lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 1631c074d1c9Sdrahn ;; 1632c074d1c9Sdrahn esac 1633c074d1c9Sdrahn ;; 1634c074d1c9Sdrahn 1635b55d4692Sfgschfreebsd* ) 1636b55d4692Sfgsch if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 1637c074d1c9Sdrahn case $host_cpu in 1638b55d4692Sfgsch i*86 ) 1639b55d4692Sfgsch # Not sure whether the presence of OpenBSD here was a mistake. 1640b55d4692Sfgsch # Let's accept both of them until this is cleared up. 1641b55d4692Sfgsch lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 1642b55d4692Sfgsch lt_cv_file_magic_cmd=/usr/bin/file 1643b55d4692Sfgsch lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 1644b55d4692Sfgsch ;; 1645b305b0f1Sespie esac 1646b55d4692Sfgsch else 1647b55d4692Sfgsch lt_cv_deplibs_check_method=pass_all 1648b55d4692Sfgsch fi 1649b55d4692Sfgsch ;; 1650b55d4692Sfgsch 1651b55d4692Sfgschgnu*) 1652b55d4692Sfgsch lt_cv_deplibs_check_method=pass_all 1653b55d4692Sfgsch ;; 1654b55d4692Sfgsch 1655c074d1c9Sdrahnhpux10.20*|hpux11*) 1656c074d1c9Sdrahn case $host_cpu in 1657c074d1c9Sdrahn hppa*) 1658c074d1c9Sdrahn lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 1659b55d4692Sfgsch lt_cv_file_magic_cmd=/usr/bin/file 1660b55d4692Sfgsch lt_cv_file_magic_test_file=/usr/lib/libc.sl 1661b55d4692Sfgsch ;; 1662c074d1c9Sdrahn ia64*) 1663c074d1c9Sdrahn lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 1664c074d1c9Sdrahn lt_cv_file_magic_cmd=/usr/bin/file 1665c074d1c9Sdrahn lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 1666c074d1c9Sdrahn ;; 1667c074d1c9Sdrahn esac 1668c074d1c9Sdrahn ;; 1669b55d4692Sfgsch 1670b55d4692Sfgschirix5* | irix6*) 1671c074d1c9Sdrahn case $host_os in 1672b55d4692Sfgsch irix5*) 1673b55d4692Sfgsch # this will be overridden with pass_all, but let us keep it just in case 1674b55d4692Sfgsch lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 1675b55d4692Sfgsch ;; 1676b55d4692Sfgsch *) 1677c074d1c9Sdrahn case $LD in 1678b55d4692Sfgsch *-32|*"-32 ") libmagic=32-bit;; 1679b55d4692Sfgsch *-n32|*"-n32 ") libmagic=N32;; 1680b55d4692Sfgsch *-64|*"-64 ") libmagic=64-bit;; 1681b55d4692Sfgsch *) libmagic=never-match;; 1682b55d4692Sfgsch esac 1683b55d4692Sfgsch # this will be overridden with pass_all, but let us keep it just in case 1684b55d4692Sfgsch lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 1685b55d4692Sfgsch ;; 1686b55d4692Sfgsch esac 1687b55d4692Sfgsch lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 1688b55d4692Sfgsch lt_cv_deplibs_check_method=pass_all 1689b55d4692Sfgsch ;; 1690b55d4692Sfgsch 1691b55d4692Sfgsch# This must be Linux ELF. 1692b55d4692Sfgschlinux-gnu*) 1693c074d1c9Sdrahn case $host_cpu in 1694c074d1c9Sdrahn alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 1695b55d4692Sfgsch lt_cv_deplibs_check_method=pass_all ;; 1696b55d4692Sfgsch *) 1697b55d4692Sfgsch # glibc up to 2.1.1 does not perform some relocations on ARM 1698b55d4692Sfgsch lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 1699b55d4692Sfgsch esac 1700b55d4692Sfgsch lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 1701b55d4692Sfgsch ;; 1702b55d4692Sfgsch 1703b55d4692Sfgschnetbsd*) 1704c074d1c9Sdrahn if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 1705c074d1c9Sdrahn lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 1706b55d4692Sfgsch else 1707c074d1c9Sdrahn lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 1708b55d4692Sfgsch fi 1709b55d4692Sfgsch ;; 1710b55d4692Sfgsch 1711c074d1c9Sdrahnnewsos6) 1712c074d1c9Sdrahn lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 1713c074d1c9Sdrahn lt_cv_file_magic_cmd=/usr/bin/file 1714c074d1c9Sdrahn lt_cv_file_magic_test_file=/usr/lib/libnls.so 1715c074d1c9Sdrahn ;; 1716c074d1c9Sdrahn 1717b55d4692Sfgschosf3* | osf4* | osf5*) 1718b55d4692Sfgsch # this will be overridden with pass_all, but let us keep it just in case 1719b55d4692Sfgsch lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 1720b55d4692Sfgsch lt_cv_file_magic_test_file=/shlib/libc.so 1721b55d4692Sfgsch lt_cv_deplibs_check_method=pass_all 1722b55d4692Sfgsch ;; 1723b55d4692Sfgsch 1724b55d4692Sfgschsco3.2v5*) 1725b55d4692Sfgsch lt_cv_deplibs_check_method=pass_all 1726b55d4692Sfgsch ;; 1727b55d4692Sfgsch 1728b55d4692Sfgschsolaris*) 1729b55d4692Sfgsch lt_cv_deplibs_check_method=pass_all 1730b55d4692Sfgsch lt_cv_file_magic_test_file=/lib/libc.so 1731b55d4692Sfgsch ;; 1732b55d4692Sfgsch 1733c074d1c9Sdrahnsysv5uw[78]* | sysv4*uw2*) 1734c074d1c9Sdrahn lt_cv_deplibs_check_method=pass_all 1735c074d1c9Sdrahn ;; 1736c074d1c9Sdrahn 1737b55d4692Sfgschsysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 1738c074d1c9Sdrahn case $host_vendor in 1739b55d4692Sfgsch ncr) 1740b55d4692Sfgsch lt_cv_deplibs_check_method=pass_all 1741b55d4692Sfgsch ;; 1742b55d4692Sfgsch motorola) 1743b55d4692Sfgsch 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]' 1744b55d4692Sfgsch lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 1745b55d4692Sfgsch ;; 1746b55d4692Sfgsch esac 1747b55d4692Sfgsch ;; 1748b55d4692Sfgschesac 1749b55d4692Sfgsch 1750b55d4692Sfgschfi 1751b55d4692Sfgsch 1752b55d4692Sfgschecho "$ac_t""$lt_cv_deplibs_check_method" 1>&6 1753b55d4692Sfgschfile_magic_cmd=$lt_cv_file_magic_cmd 1754b55d4692Sfgschdeplibs_check_method=$lt_cv_deplibs_check_method 1755b55d4692Sfgsch 1756b55d4692Sfgschecho $ac_n "checking for object suffix""... $ac_c" 1>&6 1757*007c2a45Smiodecho "configure:1758: checking for object suffix" >&5 1758b55d4692Sfgschif eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 1759b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 1760b55d4692Sfgschelse 1761b55d4692Sfgsch rm -f conftest* 1762b55d4692Sfgschecho 'int i = 1;' > conftest.$ac_ext 1763*007c2a45Smiodif { (eval echo configure:1764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1764b55d4692Sfgsch for ac_file in conftest.*; do 1765b55d4692Sfgsch case $ac_file in 1766b55d4692Sfgsch *.c) ;; 1767b55d4692Sfgsch *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 1768b55d4692Sfgsch esac 1769b55d4692Sfgsch done 1770b55d4692Sfgschelse 1771b55d4692Sfgsch { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 1772b55d4692Sfgschfi 1773b55d4692Sfgschrm -f conftest* 1774b55d4692Sfgschfi 1775b55d4692Sfgsch 1776b55d4692Sfgschecho "$ac_t""$ac_cv_objext" 1>&6 1777b55d4692SfgschOBJEXT=$ac_cv_objext 1778b55d4692Sfgschac_objext=$ac_cv_objext 1779b55d4692Sfgsch 1780b55d4692Sfgsch 1781b55d4692Sfgsch 1782b55d4692Sfgschecho $ac_n "checking for executable suffix""... $ac_c" 1>&6 1783*007c2a45Smiodecho "configure:1784: checking for executable suffix" >&5 1784b55d4692Sfgschif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 1785b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 1786b55d4692Sfgschelse 1787b55d4692Sfgsch if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 1788b55d4692Sfgsch ac_cv_exeext=.exe 1789b55d4692Sfgschelse 1790b55d4692Sfgsch rm -f conftest* 1791b55d4692Sfgsch echo 'int main () { return 0; }' > conftest.$ac_ext 1792b55d4692Sfgsch ac_cv_exeext= 1793*007c2a45Smiod if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1794b55d4692Sfgsch for file in conftest.*; do 1795b55d4692Sfgsch case $file in 1796b55d4692Sfgsch *.c | *.o | *.obj | *.ilk | *.pdb) ;; 1797b55d4692Sfgsch *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 1798b55d4692Sfgsch esac 1799b55d4692Sfgsch done 1800b55d4692Sfgsch else 1801b55d4692Sfgsch { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 1802b55d4692Sfgsch fi 1803b55d4692Sfgsch rm -f conftest* 1804b55d4692Sfgsch test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 1805b55d4692Sfgschfi 1806b55d4692Sfgschfi 1807b55d4692Sfgsch 1808b55d4692SfgschEXEEXT="" 1809b55d4692Sfgschtest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 1810b55d4692Sfgschecho "$ac_t""${ac_cv_exeext}" 1>&6 1811b55d4692Sfgschac_exeext=$EXEEXT 1812b55d4692Sfgsch 1813b55d4692Sfgsch# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 1814b55d4692Sfgsch 1815b55d4692Sfgsch# Only perform the check for file, if the check method requires it 1816c074d1c9Sdrahncase $deplibs_check_method in 1817b55d4692Sfgschfile_magic*) 1818b55d4692Sfgsch if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1819b55d4692Sfgsch echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 1820*007c2a45Smiodecho "configure:1821: checking for ${ac_tool_prefix}file" >&5 1821b55d4692Sfgschif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 1822b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 1823b55d4692Sfgschelse 1824c074d1c9Sdrahn case $MAGIC_CMD in 1825b55d4692Sfgsch /*) 1826b55d4692Sfgsch lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 1827b55d4692Sfgsch ;; 1828b55d4692Sfgsch ?:/*) 1829b55d4692Sfgsch lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 1830b55d4692Sfgsch ;; 1831b55d4692Sfgsch *) 1832b55d4692Sfgsch ac_save_MAGIC_CMD="$MAGIC_CMD" 1833b55d4692Sfgsch IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1834b55d4692Sfgsch ac_dummy="/usr/bin:$PATH" 1835b55d4692Sfgsch for ac_dir in $ac_dummy; do 1836b55d4692Sfgsch test -z "$ac_dir" && ac_dir=. 1837b55d4692Sfgsch if test -f $ac_dir/${ac_tool_prefix}file; then 1838b55d4692Sfgsch lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 1839b55d4692Sfgsch if test -n "$file_magic_test_file"; then 1840c074d1c9Sdrahn case $deplibs_check_method in 1841b55d4692Sfgsch "file_magic "*) 1842b55d4692Sfgsch file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 1843b55d4692Sfgsch MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1844b55d4692Sfgsch if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 1845b55d4692Sfgsch egrep "$file_magic_regex" > /dev/null; then 1846b55d4692Sfgsch : 1847b55d4692Sfgsch else 1848b55d4692Sfgsch cat <<EOF 1>&2 1849b55d4692Sfgsch 1850b55d4692Sfgsch*** Warning: the command libtool uses to detect shared libraries, 1851b55d4692Sfgsch*** $file_magic_cmd, produces output that libtool cannot recognize. 1852b55d4692Sfgsch*** The result is that libtool may fail to recognize shared libraries 1853b55d4692Sfgsch*** as such. This will affect the creation of libtool libraries that 1854b55d4692Sfgsch*** depend on shared libraries, but programs linked with such libtool 1855b55d4692Sfgsch*** libraries will work regardless of this problem. Nevertheless, you 1856b55d4692Sfgsch*** may want to report the problem to your system manager and/or to 1857b55d4692Sfgsch*** bug-libtool@gnu.org 1858b55d4692Sfgsch 1859b55d4692SfgschEOF 1860b55d4692Sfgsch fi ;; 1861b55d4692Sfgsch esac 1862b55d4692Sfgsch fi 1863b55d4692Sfgsch break 1864b55d4692Sfgsch fi 1865b55d4692Sfgsch done 1866b55d4692Sfgsch IFS="$ac_save_ifs" 1867b55d4692Sfgsch MAGIC_CMD="$ac_save_MAGIC_CMD" 1868b55d4692Sfgsch ;; 1869b55d4692Sfgschesac 1870b55d4692Sfgschfi 1871b55d4692Sfgsch 1872b55d4692SfgschMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1873b55d4692Sfgschif test -n "$MAGIC_CMD"; then 1874b55d4692Sfgsch echo "$ac_t""$MAGIC_CMD" 1>&6 1875b55d4692Sfgschelse 1876b55d4692Sfgsch echo "$ac_t""no" 1>&6 1877b55d4692Sfgschfi 1878b55d4692Sfgsch 1879b55d4692Sfgschif test -z "$lt_cv_path_MAGIC_CMD"; then 1880b55d4692Sfgsch if test -n "$ac_tool_prefix"; then 1881b55d4692Sfgsch echo $ac_n "checking for file""... $ac_c" 1>&6 1882*007c2a45Smiodecho "configure:1883: checking for file" >&5 1883b55d4692Sfgschif eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 1884b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 1885b55d4692Sfgschelse 1886c074d1c9Sdrahn case $MAGIC_CMD in 1887b55d4692Sfgsch /*) 1888b55d4692Sfgsch lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 1889b55d4692Sfgsch ;; 1890b55d4692Sfgsch ?:/*) 1891b55d4692Sfgsch lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 1892b55d4692Sfgsch ;; 1893b55d4692Sfgsch *) 1894b55d4692Sfgsch ac_save_MAGIC_CMD="$MAGIC_CMD" 1895b55d4692Sfgsch IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1896b55d4692Sfgsch ac_dummy="/usr/bin:$PATH" 1897b55d4692Sfgsch for ac_dir in $ac_dummy; do 1898b55d4692Sfgsch test -z "$ac_dir" && ac_dir=. 1899b55d4692Sfgsch if test -f $ac_dir/file; then 1900b55d4692Sfgsch lt_cv_path_MAGIC_CMD="$ac_dir/file" 1901b55d4692Sfgsch if test -n "$file_magic_test_file"; then 1902c074d1c9Sdrahn case $deplibs_check_method in 1903b55d4692Sfgsch "file_magic "*) 1904b55d4692Sfgsch file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 1905b55d4692Sfgsch MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1906b55d4692Sfgsch if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 1907b55d4692Sfgsch egrep "$file_magic_regex" > /dev/null; then 1908b55d4692Sfgsch : 1909b55d4692Sfgsch else 1910b55d4692Sfgsch cat <<EOF 1>&2 1911b55d4692Sfgsch 1912b55d4692Sfgsch*** Warning: the command libtool uses to detect shared libraries, 1913b55d4692Sfgsch*** $file_magic_cmd, produces output that libtool cannot recognize. 1914b55d4692Sfgsch*** The result is that libtool may fail to recognize shared libraries 1915b55d4692Sfgsch*** as such. This will affect the creation of libtool libraries that 1916b55d4692Sfgsch*** depend on shared libraries, but programs linked with such libtool 1917b55d4692Sfgsch*** libraries will work regardless of this problem. Nevertheless, you 1918b55d4692Sfgsch*** may want to report the problem to your system manager and/or to 1919b55d4692Sfgsch*** bug-libtool@gnu.org 1920b55d4692Sfgsch 1921b55d4692SfgschEOF 1922b55d4692Sfgsch fi ;; 1923b55d4692Sfgsch esac 1924b55d4692Sfgsch fi 1925b55d4692Sfgsch break 1926b55d4692Sfgsch fi 1927b55d4692Sfgsch done 1928b55d4692Sfgsch IFS="$ac_save_ifs" 1929b55d4692Sfgsch MAGIC_CMD="$ac_save_MAGIC_CMD" 1930b55d4692Sfgsch ;; 1931b55d4692Sfgschesac 1932b55d4692Sfgschfi 1933b55d4692Sfgsch 1934b55d4692SfgschMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1935b55d4692Sfgschif test -n "$MAGIC_CMD"; then 1936b55d4692Sfgsch echo "$ac_t""$MAGIC_CMD" 1>&6 1937b55d4692Sfgschelse 1938b55d4692Sfgsch echo "$ac_t""no" 1>&6 1939b55d4692Sfgschfi 1940b55d4692Sfgsch 1941b55d4692Sfgsch else 1942b55d4692Sfgsch MAGIC_CMD=: 1943b55d4692Sfgsch fi 1944b55d4692Sfgschfi 1945b55d4692Sfgsch 1946b55d4692Sfgsch fi 1947b55d4692Sfgsch ;; 1948b55d4692Sfgschesac 1949b55d4692Sfgsch 1950b55d4692Sfgsch# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 1951b55d4692Sfgschset dummy ${ac_tool_prefix}ranlib; ac_word=$2 1952b55d4692Sfgschecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 1953*007c2a45Smiodecho "configure:1954: checking for $ac_word" >&5 1954b55d4692Sfgschif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1955b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 1956b55d4692Sfgschelse 1957b55d4692Sfgsch if test -n "$RANLIB"; then 1958b55d4692Sfgsch ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1959b55d4692Sfgschelse 1960b55d4692Sfgsch IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1961b55d4692Sfgsch ac_dummy="$PATH" 1962b55d4692Sfgsch for ac_dir in $ac_dummy; do 1963b55d4692Sfgsch test -z "$ac_dir" && ac_dir=. 1964b55d4692Sfgsch if test -f $ac_dir/$ac_word; then 1965b55d4692Sfgsch ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 1966b55d4692Sfgsch break 1967b55d4692Sfgsch fi 1968b55d4692Sfgsch done 1969b55d4692Sfgsch IFS="$ac_save_ifs" 1970b55d4692Sfgschfi 1971b55d4692Sfgschfi 1972b55d4692SfgschRANLIB="$ac_cv_prog_RANLIB" 1973b55d4692Sfgschif test -n "$RANLIB"; then 1974b55d4692Sfgsch echo "$ac_t""$RANLIB" 1>&6 1975b55d4692Sfgschelse 1976b55d4692Sfgsch echo "$ac_t""no" 1>&6 1977b55d4692Sfgschfi 1978b55d4692Sfgsch 1979b55d4692Sfgsch 1980b55d4692Sfgschif test -z "$ac_cv_prog_RANLIB"; then 1981b55d4692Sfgschif test -n "$ac_tool_prefix"; then 1982b55d4692Sfgsch # Extract the first word of "ranlib", so it can be a program name with args. 1983b55d4692Sfgschset dummy ranlib; ac_word=$2 1984b55d4692Sfgschecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 1985*007c2a45Smiodecho "configure:1986: checking for $ac_word" >&5 1986b55d4692Sfgschif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1987b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 1988b55d4692Sfgschelse 1989b55d4692Sfgsch if test -n "$RANLIB"; then 1990b55d4692Sfgsch ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1991b55d4692Sfgschelse 1992b55d4692Sfgsch IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1993b55d4692Sfgsch ac_dummy="$PATH" 1994b55d4692Sfgsch for ac_dir in $ac_dummy; do 1995b55d4692Sfgsch test -z "$ac_dir" && ac_dir=. 1996b55d4692Sfgsch if test -f $ac_dir/$ac_word; then 1997b55d4692Sfgsch ac_cv_prog_RANLIB="ranlib" 1998b55d4692Sfgsch break 1999b55d4692Sfgsch fi 2000b55d4692Sfgsch done 2001b55d4692Sfgsch IFS="$ac_save_ifs" 2002b55d4692Sfgsch test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 2003b55d4692Sfgschfi 2004b55d4692Sfgschfi 2005b55d4692SfgschRANLIB="$ac_cv_prog_RANLIB" 2006b55d4692Sfgschif test -n "$RANLIB"; then 2007b55d4692Sfgsch echo "$ac_t""$RANLIB" 1>&6 2008b55d4692Sfgschelse 2009b55d4692Sfgsch echo "$ac_t""no" 1>&6 2010b55d4692Sfgschfi 2011b55d4692Sfgsch 2012b55d4692Sfgschelse 2013b55d4692Sfgsch RANLIB=":" 2014b55d4692Sfgschfi 2015b55d4692Sfgschfi 2016b55d4692Sfgsch 2017b55d4692Sfgsch# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2018b55d4692Sfgschset dummy ${ac_tool_prefix}strip; ac_word=$2 2019b55d4692Sfgschecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 2020*007c2a45Smiodecho "configure:2021: checking for $ac_word" >&5 2021b55d4692Sfgschif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 2022b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 2023b55d4692Sfgschelse 2024b55d4692Sfgsch if test -n "$STRIP"; then 2025b55d4692Sfgsch ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2026b55d4692Sfgschelse 2027b55d4692Sfgsch IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2028b55d4692Sfgsch ac_dummy="$PATH" 2029b55d4692Sfgsch for ac_dir in $ac_dummy; do 2030b55d4692Sfgsch test -z "$ac_dir" && ac_dir=. 2031b55d4692Sfgsch if test -f $ac_dir/$ac_word; then 2032b55d4692Sfgsch ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2033b55d4692Sfgsch break 2034b55d4692Sfgsch fi 2035b55d4692Sfgsch done 2036b55d4692Sfgsch IFS="$ac_save_ifs" 2037b55d4692Sfgschfi 2038b55d4692Sfgschfi 2039b55d4692SfgschSTRIP="$ac_cv_prog_STRIP" 2040b55d4692Sfgschif test -n "$STRIP"; then 2041b55d4692Sfgsch echo "$ac_t""$STRIP" 1>&6 2042b55d4692Sfgschelse 2043b55d4692Sfgsch echo "$ac_t""no" 1>&6 2044b55d4692Sfgschfi 2045b55d4692Sfgsch 2046b55d4692Sfgsch 2047b55d4692Sfgschif test -z "$ac_cv_prog_STRIP"; then 2048b55d4692Sfgschif test -n "$ac_tool_prefix"; then 2049b55d4692Sfgsch # Extract the first word of "strip", so it can be a program name with args. 2050b55d4692Sfgschset dummy strip; ac_word=$2 2051b55d4692Sfgschecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 2052*007c2a45Smiodecho "configure:2053: checking for $ac_word" >&5 2053b55d4692Sfgschif eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 2054b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 2055b55d4692Sfgschelse 2056b55d4692Sfgsch if test -n "$STRIP"; then 2057b55d4692Sfgsch ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2058b55d4692Sfgschelse 2059b55d4692Sfgsch IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2060b55d4692Sfgsch ac_dummy="$PATH" 2061b55d4692Sfgsch for ac_dir in $ac_dummy; do 2062b55d4692Sfgsch test -z "$ac_dir" && ac_dir=. 2063b55d4692Sfgsch if test -f $ac_dir/$ac_word; then 2064b55d4692Sfgsch ac_cv_prog_STRIP="strip" 2065b55d4692Sfgsch break 2066b55d4692Sfgsch fi 2067b55d4692Sfgsch done 2068b55d4692Sfgsch IFS="$ac_save_ifs" 2069b55d4692Sfgsch test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 2070b55d4692Sfgschfi 2071b55d4692Sfgschfi 2072b55d4692SfgschSTRIP="$ac_cv_prog_STRIP" 2073b55d4692Sfgschif test -n "$STRIP"; then 2074b55d4692Sfgsch echo "$ac_t""$STRIP" 1>&6 2075b55d4692Sfgschelse 2076b55d4692Sfgsch echo "$ac_t""no" 1>&6 2077b55d4692Sfgschfi 2078b55d4692Sfgsch 2079b55d4692Sfgschelse 2080b55d4692Sfgsch STRIP=":" 2081b55d4692Sfgschfi 2082b55d4692Sfgschfi 2083b55d4692Sfgsch 2084b305b0f1Sespie 2085b305b0f1Sespie# Check for any special flags to pass to ltconfig. 2086b305b0f1Sespielibtool_flags="--cache-file=$cache_file" 2087b305b0f1Sespietest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 2088b305b0f1Sespietest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 2089b305b0f1Sespietest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 2090c074d1c9Sdrahntest "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" 2091c074d1c9Sdrahntest "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 2092b305b0f1Sespie 2093b305b0f1Sespie 2094b305b0f1Sespie# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 2095b305b0f1Sespieif test "${enable_libtool_lock+set}" = set; then 2096b305b0f1Sespie enableval="$enable_libtool_lock" 2097b305b0f1Sespie : 2098b305b0f1Sespiefi 2099b305b0f1Sespie 2100b305b0f1Sespietest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 2101b305b0f1Sespietest x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 2102b305b0f1Sespie 2103b55d4692Sfgsch# Check whether --with-pic or --without-pic was given. 2104b55d4692Sfgschif test "${with_pic+set}" = set; then 2105b55d4692Sfgsch withval="$with_pic" 2106b55d4692Sfgsch pic_mode="$withval" 2107b55d4692Sfgschelse 2108b55d4692Sfgsch pic_mode=default 2109b55d4692Sfgschfi 2110b55d4692Sfgsch 2111b55d4692Sfgschtest x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" 2112b55d4692Sfgschtest x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" 2113b55d4692Sfgsch 2114b305b0f1Sespie# Some flags need to be propagated to the compiler or linker for good 2115b305b0f1Sespie# libtool support. 2116c074d1c9Sdrahncase $host in 2117b305b0f1Sespie*-*-irix6*) 2118b305b0f1Sespie # Find out which ABI we are using. 2119*007c2a45Smiod echo '#line 2120 "configure"' > conftest.$ac_ext 2120*007c2a45Smiod if { (eval echo configure:2121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2121c074d1c9Sdrahn if test "$lt_cv_prog_gnu_ld" = yes; then 2122c074d1c9Sdrahn case `/usr/bin/file conftest.$ac_objext` in 2123c074d1c9Sdrahn *32-bit*) 2124c074d1c9Sdrahn LD="${LD-ld} -melf32bsmip" 2125c074d1c9Sdrahn ;; 2126c074d1c9Sdrahn *N32*) 2127c074d1c9Sdrahn LD="${LD-ld} -melf32bmipn32" 2128c074d1c9Sdrahn ;; 2129c074d1c9Sdrahn *64-bit*) 2130c074d1c9Sdrahn LD="${LD-ld} -melf64bmip" 2131c074d1c9Sdrahn ;; 2132c074d1c9Sdrahn esac 2133c074d1c9Sdrahn else 2134c074d1c9Sdrahn case `/usr/bin/file conftest.$ac_objext` in 2135b305b0f1Sespie *32-bit*) 2136b305b0f1Sespie LD="${LD-ld} -32" 2137b305b0f1Sespie ;; 2138b305b0f1Sespie *N32*) 2139b305b0f1Sespie LD="${LD-ld} -n32" 2140b305b0f1Sespie ;; 2141b305b0f1Sespie *64-bit*) 2142b305b0f1Sespie LD="${LD-ld} -64" 2143b305b0f1Sespie ;; 2144b305b0f1Sespie esac 2145b305b0f1Sespie fi 2146c074d1c9Sdrahn fi 2147c074d1c9Sdrahn rm -rf conftest* 2148c074d1c9Sdrahn ;; 2149c074d1c9Sdrahn 2150c074d1c9Sdrahnia64-*-hpux*) 2151c074d1c9Sdrahn # Find out which ABI we are using. 2152c074d1c9Sdrahn echo 'int i;' > conftest.$ac_ext 2153*007c2a45Smiod if { (eval echo configure:2154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2154c074d1c9Sdrahn case "`/usr/bin/file conftest.o`" in 2155c074d1c9Sdrahn *ELF-32*) 2156c074d1c9Sdrahn HPUX_IA64_MODE="32" 2157c074d1c9Sdrahn ;; 2158c074d1c9Sdrahn *ELF-64*) 2159c074d1c9Sdrahn HPUX_IA64_MODE="64" 2160c074d1c9Sdrahn ;; 2161c074d1c9Sdrahn esac 2162c074d1c9Sdrahn fi 2163b305b0f1Sespie rm -rf conftest* 2164b305b0f1Sespie ;; 2165b305b0f1Sespie 2166b305b0f1Sespie*-*-sco3.2v5*) 2167b305b0f1Sespie # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2168b305b0f1Sespie SAVE_CFLAGS="$CFLAGS" 2169b305b0f1Sespie CFLAGS="$CFLAGS -belf" 2170b305b0f1Sespie echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 2171*007c2a45Smiodecho "configure:2172: checking whether the C compiler needs -belf" >&5 2172b305b0f1Sespieif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 2173b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 2174b305b0f1Sespieelse 2175b55d4692Sfgsch 2176b55d4692Sfgsch ac_ext=c 2177b55d4692Sfgsch# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2178b55d4692Sfgschac_cpp='$CPP $CPPFLAGS' 2179b55d4692Sfgschac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2180b55d4692Sfgschac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2181b55d4692Sfgschcross_compiling=$ac_cv_prog_cc_cross 2182b55d4692Sfgsch 2183b305b0f1Sespie cat > conftest.$ac_ext <<EOF 2184*007c2a45Smiod#line 2185 "configure" 2185b305b0f1Sespie#include "confdefs.h" 2186b305b0f1Sespie 2187b305b0f1Sespieint main() { 2188b305b0f1Sespie 2189b305b0f1Sespie; return 0; } 2190b305b0f1SespieEOF 2191*007c2a45Smiodif { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2192b305b0f1Sespie rm -rf conftest* 2193b305b0f1Sespie lt_cv_cc_needs_belf=yes 2194b305b0f1Sespieelse 2195b305b0f1Sespie echo "configure: failed program was:" >&5 2196b305b0f1Sespie cat conftest.$ac_ext >&5 2197b305b0f1Sespie rm -rf conftest* 2198b305b0f1Sespie lt_cv_cc_needs_belf=no 2199b305b0f1Sespiefi 2200b305b0f1Sespierm -f conftest* 2201b55d4692Sfgsch ac_ext=c 2202b55d4692Sfgsch# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2203b55d4692Sfgschac_cpp='$CPP $CPPFLAGS' 2204b55d4692Sfgschac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2205b55d4692Sfgschac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2206b55d4692Sfgschcross_compiling=$ac_cv_prog_cc_cross 2207b55d4692Sfgsch 2208b305b0f1Sespiefi 2209b305b0f1Sespie 2210b305b0f1Sespieecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6 2211b305b0f1Sespie if test x"$lt_cv_cc_needs_belf" != x"yes"; then 2212b305b0f1Sespie # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2213b305b0f1Sespie CFLAGS="$SAVE_CFLAGS" 2214b305b0f1Sespie fi 2215b305b0f1Sespie ;; 2216b305b0f1Sespie 2217b305b0f1Sespie 2218b305b0f1Sespieesac 2219b305b0f1Sespie 2220b305b0f1Sespie 2221b305b0f1Sespie# Save cache, so that ltconfig can load it 2222b305b0f1Sespiecat > confcache <<\EOF 2223b305b0f1Sespie# This file is a shell script that caches the results of configure 2224b305b0f1Sespie# tests run on this system so they can be shared between configure 2225b305b0f1Sespie# scripts and configure runs. It is not useful on other systems. 2226b305b0f1Sespie# If it contains results you don't want to keep, you may remove or edit it. 2227b305b0f1Sespie# 2228b305b0f1Sespie# By default, configure uses ./config.cache as the cache file, 2229b305b0f1Sespie# creating it if it does not exist already. You can give configure 2230b305b0f1Sespie# the --cache-file=FILE option to use a different cache file; that is 2231b305b0f1Sespie# what configure does when it calls configure scripts in 2232b305b0f1Sespie# subdirectories, so they share the cache. 2233b305b0f1Sespie# Giving --cache-file=/dev/null disables caching, for debugging configure. 2234b305b0f1Sespie# config.status only pays attention to the cache file if you give it the 2235b305b0f1Sespie# --recheck option to rerun configure. 2236b305b0f1Sespie# 2237b305b0f1SespieEOF 2238b305b0f1Sespie# The following way of writing the cache mishandles newlines in values, 2239b305b0f1Sespie# but we know of no workaround that is simple, portable, and efficient. 2240b305b0f1Sespie# So, don't put newlines in cache variables' values. 2241b305b0f1Sespie# Ultrix sh set writes to stderr and can't be redirected directly, 2242b305b0f1Sespie# and sets the high bit in the cache file unless we assign to the vars. 2243b305b0f1Sespie(set) 2>&1 | 2244b305b0f1Sespie case `(ac_space=' '; set | grep ac_space) 2>&1` in 2245b305b0f1Sespie *ac_space=\ *) 2246b305b0f1Sespie # `set' does not quote correctly, so add quotes (double-quote substitution 2247b305b0f1Sespie # turns \\\\ into \\, and sed turns \\ into \). 2248b305b0f1Sespie sed -n \ 2249b305b0f1Sespie -e "s/'/'\\\\''/g" \ 2250b305b0f1Sespie -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2251b305b0f1Sespie ;; 2252b305b0f1Sespie *) 2253b305b0f1Sespie # `set' quotes correctly as required by POSIX, so do not add quotes. 2254b305b0f1Sespie sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2255b305b0f1Sespie ;; 2256b305b0f1Sespie esac >> confcache 2257b305b0f1Sespieif cmp -s $cache_file confcache; then 2258b305b0f1Sespie : 2259b305b0f1Sespieelse 2260b305b0f1Sespie if test -w $cache_file; then 2261b305b0f1Sespie echo "updating cache $cache_file" 2262b305b0f1Sespie cat confcache > $cache_file 2263b305b0f1Sespie else 2264b305b0f1Sespie echo "not updating unwritable cache $cache_file" 2265b305b0f1Sespie fi 2266b305b0f1Sespiefi 2267b305b0f1Sespierm -f confcache 2268b305b0f1Sespie 2269b305b0f1Sespie 2270b305b0f1Sespie# Actually configure libtool. ac_aux_dir is where install-sh is found. 2271b55d4692SfgschAR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 2272b55d4692SfgschMAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 2273b55d4692SfgschLN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 2274b55d4692SfgschAS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 2275b55d4692Sfgschobjext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 2276b55d4692Sfgschdeplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 2277b305b0f1Sespie${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 2278b55d4692Sfgsch$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ 2279b305b0f1Sespie|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 2280b305b0f1Sespie 2281b305b0f1Sespie# Reload cache, that may have been modified by ltconfig 2282b305b0f1Sespieif test -r "$cache_file"; then 2283b305b0f1Sespie echo "loading cache $cache_file" 2284b305b0f1Sespie . $cache_file 2285b305b0f1Sespieelse 2286b305b0f1Sespie echo "creating cache $cache_file" 2287b305b0f1Sespie > $cache_file 2288b305b0f1Sespiefi 2289b305b0f1Sespie 2290b305b0f1Sespie 2291b305b0f1Sespie# This can be used to rebuild libtool when needed 2292b55d4692SfgschLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" 2293b305b0f1Sespie 2294b305b0f1Sespie# Always use our own libtool. 2295b305b0f1SespieLIBTOOL='$(SHELL) $(top_builddir)/libtool' 2296b305b0f1Sespie 2297b305b0f1Sespie# Redirect the config.log output again, so that the ltconfig log is not 2298b305b0f1Sespie# clobbered by the next message. 2299b305b0f1Sespieexec 5>>./config.log 2300b305b0f1Sespie 2301b305b0f1Sespie 2302b55d4692Sfgsch 2303b55d4692Sfgsch 2304b55d4692Sfgsch 2305b55d4692Sfgsch 2306b55d4692Sfgsch 2307b305b0f1Sespie# Check whether --enable-targets or --disable-targets was given. 2308b305b0f1Sespieif test "${enable_targets+set}" = set; then 2309b305b0f1Sespie enableval="$enable_targets" 2310b305b0f1Sespie case "${enableval}" in 2311b305b0f1Sespie yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } 2312b305b0f1Sespie ;; 2313b305b0f1Sespie no) enable_targets= ;; 2314b305b0f1Sespie *) enable_targets=$enableval ;; 2315b305b0f1Sespieesac 2316b305b0f1Sespiefi 2317b305b0f1Sespie# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. 2318b305b0f1Sespieif test "${enable_commonbfdlib+set}" = set; then 2319b305b0f1Sespie enableval="$enable_commonbfdlib" 2320b305b0f1Sespie case "${enableval}" in 2321b305b0f1Sespie yes) commonbfdlib=true ;; 2322b305b0f1Sespie no) commonbfdlib=false ;; 2323b305b0f1Sespie *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;; 2324b305b0f1Sespieesac 2325b305b0f1Sespiefi 2326b305b0f1Sespie 2327c074d1c9Sdrahnbuild_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 2328b55d4692Sfgsch# Check whether --enable-build-warnings or --disable-build-warnings was given. 2329b55d4692Sfgschif test "${enable_build_warnings+set}" = set; then 2330b55d4692Sfgsch enableval="$enable_build_warnings" 2331b55d4692Sfgsch case "${enableval}" in 2332b55d4692Sfgsch yes) ;; 2333b55d4692Sfgsch no) build_warnings="-w";; 2334b55d4692Sfgsch ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 2335b55d4692Sfgsch build_warnings="${build_warnings} ${t}";; 2336b55d4692Sfgsch *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 2337b55d4692Sfgsch build_warnings="${t} ${build_warnings}";; 2338b55d4692Sfgsch *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 2339b55d4692Sfgschesac 2340b55d4692Sfgschif test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 2341b55d4692Sfgsch echo "Setting warning flags = $build_warnings" 6>&1 2342b55d4692Sfgschfi 2343b55d4692Sfgschfi 2344b55d4692SfgschWARN_CFLAGS="" 2345b55d4692Sfgschif test "x${build_warnings}" != x -a "x$GCC" = xyes ; then 2346b55d4692Sfgsch WARN_CFLAGS="${build_warnings}" 2347b55d4692Sfgschfi 2348b55d4692Sfgsch 2349b55d4692Sfgsch 2350b305b0f1Sespie 2351b305b0f1Sespie 2352b305b0f1Sespie 2353b305b0f1Sespie 2354b305b0f1Sespieif test -z "$target" ; then 2355b305b0f1Sespie { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } 2356b305b0f1Sespiefi 2357b305b0f1Sespie 2358b305b0f1Sespieecho $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 2359*007c2a45Smiodecho "configure:2360: checking whether to enable maintainer-specific portions of Makefiles" >&5 2360b305b0f1Sespie # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 2361b305b0f1Sespieif test "${enable_maintainer_mode+set}" = set; then 2362b305b0f1Sespie enableval="$enable_maintainer_mode" 2363b305b0f1Sespie USE_MAINTAINER_MODE=$enableval 2364b305b0f1Sespieelse 2365b305b0f1Sespie USE_MAINTAINER_MODE=no 2366b305b0f1Sespiefi 2367b305b0f1Sespie 2368b305b0f1Sespie echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 2369b305b0f1Sespie 2370b305b0f1Sespie 2371b305b0f1Sespieif test $USE_MAINTAINER_MODE = yes; then 2372b305b0f1Sespie MAINTAINER_MODE_TRUE= 2373b305b0f1Sespie MAINTAINER_MODE_FALSE='#' 2374b305b0f1Sespieelse 2375b305b0f1Sespie MAINTAINER_MODE_TRUE='#' 2376b305b0f1Sespie MAINTAINER_MODE_FALSE= 2377b305b0f1Sespiefi 2378b305b0f1Sespie MAINT=$MAINTAINER_MODE_TRUE 2379b305b0f1Sespie 2380b305b0f1Sespie 2381c074d1c9Sdrahnecho $ac_n "checking whether to install libbfd""... $ac_c" 1>&6 2382*007c2a45Smiodecho "configure:2383: checking whether to install libbfd" >&5 2383c074d1c9Sdrahn # Check whether --enable-install-libbfd or --disable-install-libbfd was given. 2384c074d1c9Sdrahnif test "${enable_install_libbfd+set}" = set; then 2385c074d1c9Sdrahn enableval="$enable_install_libbfd" 2386c074d1c9Sdrahn install_libbfd_p=$enableval 2387c074d1c9Sdrahnelse 2388c074d1c9Sdrahn if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 2389c074d1c9Sdrahn install_libbfd_p=yes 2390c074d1c9Sdrahn else 2391c074d1c9Sdrahn install_libbfd_p=no 2392c074d1c9Sdrahn fi 2393c074d1c9Sdrahnfi 2394c074d1c9Sdrahn 2395c074d1c9Sdrahn echo "$ac_t""$install_libbfd_p" 1>&6 2396c074d1c9Sdrahn 2397c074d1c9Sdrahn 2398c074d1c9Sdrahnif test $install_libbfd_p = yes; then 2399c074d1c9Sdrahn INSTALL_LIBBFD_TRUE= 2400c074d1c9Sdrahn INSTALL_LIBBFD_FALSE='#' 2401c074d1c9Sdrahnelse 2402c074d1c9Sdrahn INSTALL_LIBBFD_TRUE='#' 2403c074d1c9Sdrahn INSTALL_LIBBFD_FALSE= 2404c074d1c9Sdrahnfi 2405c074d1c9Sdrahn # libbfd.a is a host library containing target dependent code 2406c074d1c9Sdrahn bfdlibdir='$(libdir)' 2407c074d1c9Sdrahn bfdincludedir='$(includedir)' 2408c074d1c9Sdrahn if test "${host}" != "${target}"; then 2409c074d1c9Sdrahn bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib' 2410c074d1c9Sdrahn bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include' 2411c074d1c9Sdrahn fi 2412c074d1c9Sdrahn 2413c074d1c9Sdrahn 2414c074d1c9Sdrahn 2415c074d1c9Sdrahn 2416b305b0f1Sespie 2417b305b0f1Sespie 2418b305b0f1Sespieecho $ac_n "checking for executable suffix""... $ac_c" 1>&6 2419*007c2a45Smiodecho "configure:2420: checking for executable suffix" >&5 2420b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 2421b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 2422b305b0f1Sespieelse 2423b305b0f1Sespie if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 2424b305b0f1Sespie ac_cv_exeext=.exe 2425b305b0f1Sespieelse 2426b305b0f1Sespie rm -f conftest* 2427b305b0f1Sespie echo 'int main () { return 0; }' > conftest.$ac_ext 2428b305b0f1Sespie ac_cv_exeext= 2429*007c2a45Smiod if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2430b305b0f1Sespie for file in conftest.*; do 2431b305b0f1Sespie case $file in 2432b305b0f1Sespie *.c | *.o | *.obj | *.ilk | *.pdb) ;; 2433b305b0f1Sespie *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 2434b305b0f1Sespie esac 2435b305b0f1Sespie done 2436b305b0f1Sespie else 2437b305b0f1Sespie { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 2438b305b0f1Sespie fi 2439b305b0f1Sespie rm -f conftest* 2440b305b0f1Sespie test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 2441b305b0f1Sespiefi 2442b305b0f1Sespiefi 2443b305b0f1Sespie 2444b305b0f1SespieEXEEXT="" 2445b305b0f1Sespietest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 2446b305b0f1Sespieecho "$ac_t""${ac_cv_exeext}" 1>&6 2447b305b0f1Sespieac_exeext=$EXEEXT 2448b305b0f1Sespie 2449b305b0f1Sespie 2450b305b0f1Sespie# host-specific stuff: 2451b305b0f1Sespie 2452b305b0f1Sespie# Extract the first word of "gcc", so it can be a program name with args. 2453b305b0f1Sespieset dummy gcc; ac_word=$2 2454b305b0f1Sespieecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 2455*007c2a45Smiodecho "configure:2456: checking for $ac_word" >&5 2456b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2457b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 2458b305b0f1Sespieelse 2459b305b0f1Sespie if test -n "$CC"; then 2460b305b0f1Sespie ac_cv_prog_CC="$CC" # Let the user override the test. 2461b305b0f1Sespieelse 2462b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2463b305b0f1Sespie ac_dummy="$PATH" 2464b305b0f1Sespie for ac_dir in $ac_dummy; do 2465b305b0f1Sespie test -z "$ac_dir" && ac_dir=. 2466b305b0f1Sespie if test -f $ac_dir/$ac_word; then 2467b305b0f1Sespie ac_cv_prog_CC="gcc" 2468b305b0f1Sespie break 2469b305b0f1Sespie fi 2470b305b0f1Sespie done 2471b305b0f1Sespie IFS="$ac_save_ifs" 2472b305b0f1Sespiefi 2473b305b0f1Sespiefi 2474b305b0f1SespieCC="$ac_cv_prog_CC" 2475b305b0f1Sespieif test -n "$CC"; then 2476b305b0f1Sespie echo "$ac_t""$CC" 1>&6 2477b305b0f1Sespieelse 2478b305b0f1Sespie echo "$ac_t""no" 1>&6 2479b305b0f1Sespiefi 2480b305b0f1Sespie 2481b305b0f1Sespieif test -z "$CC"; then 2482b305b0f1Sespie # Extract the first word of "cc", so it can be a program name with args. 2483b305b0f1Sespieset dummy cc; ac_word=$2 2484b305b0f1Sespieecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 2485*007c2a45Smiodecho "configure:2486: checking for $ac_word" >&5 2486b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2487b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 2488b305b0f1Sespieelse 2489b305b0f1Sespie if test -n "$CC"; then 2490b305b0f1Sespie ac_cv_prog_CC="$CC" # Let the user override the test. 2491b305b0f1Sespieelse 2492b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2493b305b0f1Sespie ac_prog_rejected=no 2494b305b0f1Sespie ac_dummy="$PATH" 2495b305b0f1Sespie for ac_dir in $ac_dummy; do 2496b305b0f1Sespie test -z "$ac_dir" && ac_dir=. 2497b305b0f1Sespie if test -f $ac_dir/$ac_word; then 2498b305b0f1Sespie if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 2499b305b0f1Sespie ac_prog_rejected=yes 2500b305b0f1Sespie continue 2501b305b0f1Sespie fi 2502b305b0f1Sespie ac_cv_prog_CC="cc" 2503b305b0f1Sespie break 2504b305b0f1Sespie fi 2505b305b0f1Sespie done 2506b305b0f1Sespie IFS="$ac_save_ifs" 2507b305b0f1Sespieif test $ac_prog_rejected = yes; then 2508b305b0f1Sespie # We found a bogon in the path, so make sure we never use it. 2509b305b0f1Sespie set dummy $ac_cv_prog_CC 2510b305b0f1Sespie shift 2511b305b0f1Sespie if test $# -gt 0; then 2512b305b0f1Sespie # We chose a different compiler from the bogus one. 2513b305b0f1Sespie # However, it has the same basename, so the bogon will be chosen 2514b305b0f1Sespie # first if we set CC to just the basename; use the full file name. 2515b305b0f1Sespie shift 2516b305b0f1Sespie set dummy "$ac_dir/$ac_word" "$@" 2517b305b0f1Sespie shift 2518b305b0f1Sespie ac_cv_prog_CC="$@" 2519b305b0f1Sespie fi 2520b305b0f1Sespiefi 2521b305b0f1Sespiefi 2522b305b0f1Sespiefi 2523b305b0f1SespieCC="$ac_cv_prog_CC" 2524b305b0f1Sespieif test -n "$CC"; then 2525b305b0f1Sespie echo "$ac_t""$CC" 1>&6 2526b305b0f1Sespieelse 2527b305b0f1Sespie echo "$ac_t""no" 1>&6 2528b305b0f1Sespiefi 2529b305b0f1Sespie 2530b305b0f1Sespie if test -z "$CC"; then 2531b305b0f1Sespie case "`uname -s`" in 2532b305b0f1Sespie *win32* | *WIN32*) 2533b305b0f1Sespie # Extract the first word of "cl", so it can be a program name with args. 2534b305b0f1Sespieset dummy cl; ac_word=$2 2535b305b0f1Sespieecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 2536*007c2a45Smiodecho "configure:2537: checking for $ac_word" >&5 2537b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2538b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 2539b305b0f1Sespieelse 2540b305b0f1Sespie if test -n "$CC"; then 2541b305b0f1Sespie ac_cv_prog_CC="$CC" # Let the user override the test. 2542b305b0f1Sespieelse 2543b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2544b305b0f1Sespie ac_dummy="$PATH" 2545b305b0f1Sespie for ac_dir in $ac_dummy; do 2546b305b0f1Sespie test -z "$ac_dir" && ac_dir=. 2547b305b0f1Sespie if test -f $ac_dir/$ac_word; then 2548b305b0f1Sespie ac_cv_prog_CC="cl" 2549b305b0f1Sespie break 2550b305b0f1Sespie fi 2551b305b0f1Sespie done 2552b305b0f1Sespie IFS="$ac_save_ifs" 2553b305b0f1Sespiefi 2554b305b0f1Sespiefi 2555b305b0f1SespieCC="$ac_cv_prog_CC" 2556b305b0f1Sespieif test -n "$CC"; then 2557b305b0f1Sespie echo "$ac_t""$CC" 1>&6 2558b305b0f1Sespieelse 2559b305b0f1Sespie echo "$ac_t""no" 1>&6 2560b305b0f1Sespiefi 2561b305b0f1Sespie ;; 2562b305b0f1Sespie esac 2563b305b0f1Sespie fi 2564b305b0f1Sespie test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2565b305b0f1Sespiefi 2566b305b0f1Sespie 2567b305b0f1Sespieecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2568*007c2a45Smiodecho "configure:2569: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2569b305b0f1Sespie 2570b305b0f1Sespieac_ext=c 2571b305b0f1Sespie# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2572b305b0f1Sespieac_cpp='$CPP $CPPFLAGS' 2573b305b0f1Sespieac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2574b305b0f1Sespieac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2575b305b0f1Sespiecross_compiling=$ac_cv_prog_cc_cross 2576b305b0f1Sespie 2577b305b0f1Sespiecat > conftest.$ac_ext << EOF 2578b305b0f1Sespie 2579*007c2a45Smiod#line 2580 "configure" 2580b305b0f1Sespie#include "confdefs.h" 2581b305b0f1Sespie 2582b305b0f1Sespiemain(){return(0);} 2583b305b0f1SespieEOF 2584*007c2a45Smiodif { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2585b305b0f1Sespie ac_cv_prog_cc_works=yes 2586b305b0f1Sespie # If we can't run a trivial program, we are probably using a cross compiler. 2587b305b0f1Sespie if (./conftest; exit) 2>/dev/null; then 2588b305b0f1Sespie ac_cv_prog_cc_cross=no 2589b305b0f1Sespie else 2590b305b0f1Sespie ac_cv_prog_cc_cross=yes 2591b305b0f1Sespie fi 2592b305b0f1Sespieelse 2593b305b0f1Sespie echo "configure: failed program was:" >&5 2594b305b0f1Sespie cat conftest.$ac_ext >&5 2595b305b0f1Sespie ac_cv_prog_cc_works=no 2596b305b0f1Sespiefi 2597b305b0f1Sespierm -fr conftest* 2598b305b0f1Sespieac_ext=c 2599b305b0f1Sespie# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2600b305b0f1Sespieac_cpp='$CPP $CPPFLAGS' 2601b305b0f1Sespieac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2602b305b0f1Sespieac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2603b305b0f1Sespiecross_compiling=$ac_cv_prog_cc_cross 2604b305b0f1Sespie 2605b305b0f1Sespieecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 2606b305b0f1Sespieif test $ac_cv_prog_cc_works = no; then 2607b305b0f1Sespie { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2608b305b0f1Sespiefi 2609b305b0f1Sespieecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2610*007c2a45Smiodecho "configure:2611: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2611b305b0f1Sespieecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2612b305b0f1Sespiecross_compiling=$ac_cv_prog_cc_cross 2613b305b0f1Sespie 2614b305b0f1Sespieecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2615*007c2a45Smiodecho "configure:2616: checking whether we are using GNU C" >&5 2616b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 2617b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 2618b305b0f1Sespieelse 2619b305b0f1Sespie cat > conftest.c <<EOF 2620b305b0f1Sespie#ifdef __GNUC__ 2621b305b0f1Sespie yes; 2622b305b0f1Sespie#endif 2623b305b0f1SespieEOF 2624*007c2a45Smiodif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2625b305b0f1Sespie ac_cv_prog_gcc=yes 2626b305b0f1Sespieelse 2627b305b0f1Sespie ac_cv_prog_gcc=no 2628b305b0f1Sespiefi 2629b305b0f1Sespiefi 2630b305b0f1Sespie 2631b305b0f1Sespieecho "$ac_t""$ac_cv_prog_gcc" 1>&6 2632b305b0f1Sespie 2633b305b0f1Sespieif test $ac_cv_prog_gcc = yes; then 2634b305b0f1Sespie GCC=yes 2635b305b0f1Sespieelse 2636b305b0f1Sespie GCC= 2637b305b0f1Sespiefi 2638b305b0f1Sespie 2639b305b0f1Sespieac_test_CFLAGS="${CFLAGS+set}" 2640b305b0f1Sespieac_save_CFLAGS="$CFLAGS" 2641b305b0f1SespieCFLAGS= 2642b305b0f1Sespieecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2643*007c2a45Smiodecho "configure:2644: checking whether ${CC-cc} accepts -g" >&5 2644b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 2645b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 2646b305b0f1Sespieelse 2647b305b0f1Sespie echo 'void f(){}' > conftest.c 2648b305b0f1Sespieif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2649b305b0f1Sespie ac_cv_prog_cc_g=yes 2650b305b0f1Sespieelse 2651b305b0f1Sespie ac_cv_prog_cc_g=no 2652b305b0f1Sespiefi 2653b305b0f1Sespierm -f conftest* 2654b305b0f1Sespie 2655b305b0f1Sespiefi 2656b305b0f1Sespie 2657b305b0f1Sespieecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 2658b305b0f1Sespieif test "$ac_test_CFLAGS" = set; then 2659b305b0f1Sespie CFLAGS="$ac_save_CFLAGS" 2660b305b0f1Sespieelif test $ac_cv_prog_cc_g = yes; then 2661b305b0f1Sespie if test "$GCC" = yes; then 2662b305b0f1Sespie CFLAGS="-g -O2" 2663b305b0f1Sespie else 2664b305b0f1Sespie CFLAGS="-g" 2665b305b0f1Sespie fi 2666b305b0f1Sespieelse 2667b305b0f1Sespie if test "$GCC" = yes; then 2668b305b0f1Sespie CFLAGS="-O2" 2669b305b0f1Sespie else 2670b305b0f1Sespie CFLAGS= 2671b305b0f1Sespie fi 2672b305b0f1Sespiefi 2673b305b0f1Sespie 2674b305b0f1Sespie 2675*007c2a45SmiodALL_LINGUAS="fr sv tr es da de id pt_BR ro nl" 2676b305b0f1Sespieecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2677*007c2a45Smiodecho "configure:2678: checking how to run the C preprocessor" >&5 2678b305b0f1Sespie# On Suns, sometimes $CPP names a directory. 2679b305b0f1Sespieif test -n "$CPP" && test -d "$CPP"; then 2680b305b0f1Sespie CPP= 2681b305b0f1Sespiefi 2682b305b0f1Sespieif test -z "$CPP"; then 2683b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2684b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 2685b305b0f1Sespieelse 2686b305b0f1Sespie # This must be in double quotes, not single quotes, because CPP may get 2687b305b0f1Sespie # substituted into the Makefile and "${CC-cc}" will confuse make. 2688b305b0f1Sespie CPP="${CC-cc} -E" 2689b305b0f1Sespie # On the NeXT, cc -E runs the code through the compiler's parser, 2690b305b0f1Sespie # not just through cpp. 2691b305b0f1Sespie cat > conftest.$ac_ext <<EOF 2692*007c2a45Smiod#line 2693 "configure" 2693b305b0f1Sespie#include "confdefs.h" 2694b305b0f1Sespie#include <assert.h> 2695b305b0f1SespieSyntax Error 2696b305b0f1SespieEOF 2697b305b0f1Sespieac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2698*007c2a45Smiod{ (eval echo configure:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2699b305b0f1Sespieac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2700b305b0f1Sespieif test -z "$ac_err"; then 2701b305b0f1Sespie : 2702b305b0f1Sespieelse 2703b305b0f1Sespie echo "$ac_err" >&5 2704b305b0f1Sespie echo "configure: failed program was:" >&5 2705b305b0f1Sespie cat conftest.$ac_ext >&5 2706b305b0f1Sespie rm -rf conftest* 2707b305b0f1Sespie CPP="${CC-cc} -E -traditional-cpp" 2708b305b0f1Sespie cat > conftest.$ac_ext <<EOF 2709*007c2a45Smiod#line 2710 "configure" 2710b305b0f1Sespie#include "confdefs.h" 2711b305b0f1Sespie#include <assert.h> 2712b305b0f1SespieSyntax Error 2713b305b0f1SespieEOF 2714b305b0f1Sespieac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2715*007c2a45Smiod{ (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2716b305b0f1Sespieac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2717b305b0f1Sespieif test -z "$ac_err"; then 2718b305b0f1Sespie : 2719b305b0f1Sespieelse 2720b305b0f1Sespie echo "$ac_err" >&5 2721b305b0f1Sespie echo "configure: failed program was:" >&5 2722b305b0f1Sespie cat conftest.$ac_ext >&5 2723b305b0f1Sespie rm -rf conftest* 2724b305b0f1Sespie CPP="${CC-cc} -nologo -E" 2725b305b0f1Sespie cat > conftest.$ac_ext <<EOF 2726*007c2a45Smiod#line 2727 "configure" 2727b305b0f1Sespie#include "confdefs.h" 2728b305b0f1Sespie#include <assert.h> 2729b305b0f1SespieSyntax Error 2730b305b0f1SespieEOF 2731b305b0f1Sespieac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2732*007c2a45Smiod{ (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2733b305b0f1Sespieac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2734b305b0f1Sespieif test -z "$ac_err"; then 2735b305b0f1Sespie : 2736b305b0f1Sespieelse 2737b305b0f1Sespie echo "$ac_err" >&5 2738b305b0f1Sespie echo "configure: failed program was:" >&5 2739b305b0f1Sespie cat conftest.$ac_ext >&5 2740b305b0f1Sespie rm -rf conftest* 2741b305b0f1Sespie CPP=/lib/cpp 2742b305b0f1Sespiefi 2743b305b0f1Sespierm -f conftest* 2744b305b0f1Sespiefi 2745b305b0f1Sespierm -f conftest* 2746b305b0f1Sespiefi 2747b305b0f1Sespierm -f conftest* 2748b305b0f1Sespie ac_cv_prog_CPP="$CPP" 2749b305b0f1Sespiefi 2750b305b0f1Sespie CPP="$ac_cv_prog_CPP" 2751b305b0f1Sespieelse 2752b305b0f1Sespie ac_cv_prog_CPP="$CPP" 2753b305b0f1Sespiefi 2754b305b0f1Sespieecho "$ac_t""$CPP" 1>&6 2755b305b0f1Sespie 2756b55d4692Sfgsch# Extract the first word of "ranlib", so it can be a program name with args. 2757b55d4692Sfgschset dummy ranlib; ac_word=$2 2758b55d4692Sfgschecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 2759*007c2a45Smiodecho "configure:2760: checking for $ac_word" >&5 2760b55d4692Sfgschif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2761b55d4692Sfgsch echo $ac_n "(cached) $ac_c" 1>&6 2762b55d4692Sfgschelse 2763b55d4692Sfgsch if test -n "$RANLIB"; then 2764b55d4692Sfgsch ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2765b55d4692Sfgschelse 2766b55d4692Sfgsch IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2767b55d4692Sfgsch ac_dummy="$PATH" 2768b55d4692Sfgsch for ac_dir in $ac_dummy; do 2769b55d4692Sfgsch test -z "$ac_dir" && ac_dir=. 2770b55d4692Sfgsch if test -f $ac_dir/$ac_word; then 2771b55d4692Sfgsch ac_cv_prog_RANLIB="ranlib" 2772b55d4692Sfgsch break 2773b55d4692Sfgsch fi 2774b55d4692Sfgsch done 2775b55d4692Sfgsch IFS="$ac_save_ifs" 2776b55d4692Sfgsch test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 2777b55d4692Sfgschfi 2778b55d4692Sfgschfi 2779b55d4692SfgschRANLIB="$ac_cv_prog_RANLIB" 2780b55d4692Sfgschif test -n "$RANLIB"; then 2781b55d4692Sfgsch echo "$ac_t""$RANLIB" 1>&6 2782b55d4692Sfgschelse 2783b55d4692Sfgsch echo "$ac_t""no" 1>&6 2784b55d4692Sfgschfi 2785b55d4692Sfgsch 2786b305b0f1Sespieecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2787*007c2a45Smiodecho "configure:2788: checking for ANSI C header files" >&5 2788b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2789b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 2790b305b0f1Sespieelse 2791b305b0f1Sespie cat > conftest.$ac_ext <<EOF 2792*007c2a45Smiod#line 2793 "configure" 2793b305b0f1Sespie#include "confdefs.h" 2794b305b0f1Sespie#include <stdlib.h> 2795b305b0f1Sespie#include <stdarg.h> 2796b305b0f1Sespie#include <string.h> 2797b305b0f1Sespie#include <float.h> 2798b305b0f1SespieEOF 2799b305b0f1Sespieac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2800*007c2a45Smiod{ (eval echo configure:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2801b305b0f1Sespieac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2802b305b0f1Sespieif test -z "$ac_err"; then 2803b305b0f1Sespie rm -rf conftest* 2804b305b0f1Sespie ac_cv_header_stdc=yes 2805b305b0f1Sespieelse 2806b305b0f1Sespie echo "$ac_err" >&5 2807b305b0f1Sespie echo "configure: failed program was:" >&5 2808b305b0f1Sespie cat conftest.$ac_ext >&5 2809b305b0f1Sespie rm -rf conftest* 2810b305b0f1Sespie ac_cv_header_stdc=no 2811b305b0f1Sespiefi 2812b305b0f1Sespierm -f conftest* 2813b305b0f1Sespie 2814b305b0f1Sespieif test $ac_cv_header_stdc = yes; then 2815b305b0f1Sespie # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2816b305b0f1Sespiecat > conftest.$ac_ext <<EOF 2817*007c2a45Smiod#line 2818 "configure" 2818b305b0f1Sespie#include "confdefs.h" 2819b305b0f1Sespie#include <string.h> 2820b305b0f1SespieEOF 2821b305b0f1Sespieif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2822b305b0f1Sespie egrep "memchr" >/dev/null 2>&1; then 2823b305b0f1Sespie : 2824b305b0f1Sespieelse 2825b305b0f1Sespie rm -rf conftest* 2826b305b0f1Sespie ac_cv_header_stdc=no 2827b305b0f1Sespiefi 2828b305b0f1Sespierm -f conftest* 2829b305b0f1Sespie 2830b305b0f1Sespiefi 2831b305b0f1Sespie 2832b305b0f1Sespieif test $ac_cv_header_stdc = yes; then 2833b305b0f1Sespie # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2834b305b0f1Sespiecat > conftest.$ac_ext <<EOF 2835*007c2a45Smiod#line 2836 "configure" 2836b305b0f1Sespie#include "confdefs.h" 2837b305b0f1Sespie#include <stdlib.h> 2838b305b0f1SespieEOF 2839b305b0f1Sespieif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2840b305b0f1Sespie egrep "free" >/dev/null 2>&1; then 2841b305b0f1Sespie : 2842b305b0f1Sespieelse 2843b305b0f1Sespie rm -rf conftest* 2844b305b0f1Sespie ac_cv_header_stdc=no 2845b305b0f1Sespiefi 2846b305b0f1Sespierm -f conftest* 2847b305b0f1Sespie 2848b305b0f1Sespiefi 2849b305b0f1Sespie 2850b305b0f1Sespieif test $ac_cv_header_stdc = yes; then 2851b305b0f1Sespie # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2852b305b0f1Sespieif test "$cross_compiling" = yes; then 2853b305b0f1Sespie : 2854b305b0f1Sespieelse 2855b305b0f1Sespie cat > conftest.$ac_ext <<EOF 2856*007c2a45Smiod#line 2857 "configure" 2857b305b0f1Sespie#include "confdefs.h" 2858b305b0f1Sespie#include <ctype.h> 2859b305b0f1Sespie#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2860b305b0f1Sespie#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2861b305b0f1Sespie#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2862b305b0f1Sespieint main () { int i; for (i = 0; i < 256; i++) 2863b305b0f1Sespieif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2864b305b0f1Sespieexit (0); } 2865b305b0f1Sespie 2866b305b0f1SespieEOF 2867*007c2a45Smiodif { (eval echo configure:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2868b305b0f1Sespiethen 2869b305b0f1Sespie : 2870b305b0f1Sespieelse 2871b305b0f1Sespie echo "configure: failed program was:" >&5 2872b305b0f1Sespie cat conftest.$ac_ext >&5 2873b305b0f1Sespie rm -fr conftest* 2874b305b0f1Sespie ac_cv_header_stdc=no 2875b305b0f1Sespiefi 2876b305b0f1Sespierm -fr conftest* 2877b305b0f1Sespiefi 2878b305b0f1Sespie 2879b305b0f1Sespiefi 2880b305b0f1Sespiefi 2881b305b0f1Sespie 2882b305b0f1Sespieecho "$ac_t""$ac_cv_header_stdc" 1>&6 2883b305b0f1Sespieif test $ac_cv_header_stdc = yes; then 2884b305b0f1Sespie cat >> confdefs.h <<\EOF 2885b305b0f1Sespie#define STDC_HEADERS 1 2886b305b0f1SespieEOF 2887b305b0f1Sespie 2888b305b0f1Sespiefi 2889b305b0f1Sespie 2890b305b0f1Sespieecho $ac_n "checking for working const""... $ac_c" 1>&6 2891*007c2a45Smiodecho "configure:2892: checking for working const" >&5 2892b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2893b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 2894b305b0f1Sespieelse 2895b305b0f1Sespie cat > conftest.$ac_ext <<EOF 2896*007c2a45Smiod#line 2897 "configure" 2897b305b0f1Sespie#include "confdefs.h" 2898b305b0f1Sespie 2899b305b0f1Sespieint main() { 2900b305b0f1Sespie 2901b305b0f1Sespie/* Ultrix mips cc rejects this. */ 2902b305b0f1Sespietypedef int charset[2]; const charset x; 2903b305b0f1Sespie/* SunOS 4.1.1 cc rejects this. */ 2904b305b0f1Sespiechar const *const *ccp; 2905b305b0f1Sespiechar **p; 2906b305b0f1Sespie/* NEC SVR4.0.2 mips cc rejects this. */ 2907b305b0f1Sespiestruct point {int x, y;}; 2908b305b0f1Sespiestatic struct point const zero = {0,0}; 2909b305b0f1Sespie/* AIX XL C 1.02.0.0 rejects this. 2910b305b0f1Sespie It does not let you subtract one const X* pointer from another in an arm 2911b305b0f1Sespie of an if-expression whose if-part is not a constant expression */ 2912b305b0f1Sespieconst char *g = "string"; 2913b305b0f1Sespieccp = &g + (g ? g-g : 0); 2914b305b0f1Sespie/* HPUX 7.0 cc rejects these. */ 2915b305b0f1Sespie++ccp; 2916b305b0f1Sespiep = (char**) ccp; 2917b305b0f1Sespieccp = (char const *const *) p; 2918b305b0f1Sespie{ /* SCO 3.2v4 cc rejects this. */ 2919b305b0f1Sespie char *t; 2920b305b0f1Sespie char const *s = 0 ? (char *) 0 : (char const *) 0; 2921b305b0f1Sespie 2922b305b0f1Sespie *t++ = 0; 2923b305b0f1Sespie} 2924b305b0f1Sespie{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2925b305b0f1Sespie int x[] = {25, 17}; 2926b305b0f1Sespie const int *foo = &x[0]; 2927b305b0f1Sespie ++foo; 2928b305b0f1Sespie} 2929b305b0f1Sespie{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2930b305b0f1Sespie typedef const int *iptr; 2931b305b0f1Sespie iptr p = 0; 2932b305b0f1Sespie ++p; 2933b305b0f1Sespie} 2934b305b0f1Sespie{ /* AIX XL C 1.02.0.0 rejects this saying 2935b305b0f1Sespie "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2936b305b0f1Sespie struct s { int j; const int *ap[3]; }; 2937b305b0f1Sespie struct s *b; b->j = 5; 2938b305b0f1Sespie} 2939b305b0f1Sespie{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2940b305b0f1Sespie const int foo = 10; 2941b305b0f1Sespie} 2942b305b0f1Sespie 2943b305b0f1Sespie; return 0; } 2944b305b0f1SespieEOF 2945*007c2a45Smiodif { (eval echo configure:2946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2946b305b0f1Sespie rm -rf conftest* 2947b305b0f1Sespie ac_cv_c_const=yes 2948b305b0f1Sespieelse 2949b305b0f1Sespie echo "configure: failed program was:" >&5 2950b305b0f1Sespie cat conftest.$ac_ext >&5 2951b305b0f1Sespie rm -rf conftest* 2952b305b0f1Sespie ac_cv_c_const=no 2953b305b0f1Sespiefi 2954b305b0f1Sespierm -f conftest* 2955b305b0f1Sespiefi 2956b305b0f1Sespie 2957b305b0f1Sespieecho "$ac_t""$ac_cv_c_const" 1>&6 2958b305b0f1Sespieif test $ac_cv_c_const = no; then 2959b305b0f1Sespie cat >> confdefs.h <<\EOF 2960b305b0f1Sespie#define const 2961b305b0f1SespieEOF 2962b305b0f1Sespie 2963b305b0f1Sespiefi 2964b305b0f1Sespie 2965b305b0f1Sespieecho $ac_n "checking for inline""... $ac_c" 1>&6 2966*007c2a45Smiodecho "configure:2967: checking for inline" >&5 2967b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2968b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 2969b305b0f1Sespieelse 2970b305b0f1Sespie ac_cv_c_inline=no 2971b305b0f1Sespiefor ac_kw in inline __inline__ __inline; do 2972b305b0f1Sespie cat > conftest.$ac_ext <<EOF 2973*007c2a45Smiod#line 2974 "configure" 2974b305b0f1Sespie#include "confdefs.h" 2975b305b0f1Sespie 2976b305b0f1Sespieint main() { 2977b305b0f1Sespie} $ac_kw foo() { 2978b305b0f1Sespie; return 0; } 2979b305b0f1SespieEOF 2980*007c2a45Smiodif { (eval echo configure:2981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2981b305b0f1Sespie rm -rf conftest* 2982b305b0f1Sespie ac_cv_c_inline=$ac_kw; break 2983b305b0f1Sespieelse 2984b305b0f1Sespie echo "configure: failed program was:" >&5 2985b305b0f1Sespie cat conftest.$ac_ext >&5 2986b305b0f1Sespiefi 2987b305b0f1Sespierm -f conftest* 2988b305b0f1Sespiedone 2989b305b0f1Sespie 2990b305b0f1Sespiefi 2991b305b0f1Sespie 2992b305b0f1Sespieecho "$ac_t""$ac_cv_c_inline" 1>&6 2993b305b0f1Sespiecase "$ac_cv_c_inline" in 2994b305b0f1Sespie inline | yes) ;; 2995b305b0f1Sespie no) cat >> confdefs.h <<\EOF 2996b305b0f1Sespie#define inline 2997b305b0f1SespieEOF 2998b305b0f1Sespie ;; 2999b305b0f1Sespie *) cat >> confdefs.h <<EOF 3000b305b0f1Sespie#define inline $ac_cv_c_inline 3001b305b0f1SespieEOF 3002b305b0f1Sespie ;; 3003b305b0f1Sespieesac 3004b305b0f1Sespie 3005b305b0f1Sespieecho $ac_n "checking for off_t""... $ac_c" 1>&6 3006*007c2a45Smiodecho "configure:3007: checking for off_t" >&5 3007b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 3008b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3009b305b0f1Sespieelse 3010b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3011*007c2a45Smiod#line 3012 "configure" 3012b305b0f1Sespie#include "confdefs.h" 3013b305b0f1Sespie#include <sys/types.h> 3014b305b0f1Sespie#if STDC_HEADERS 3015b305b0f1Sespie#include <stdlib.h> 3016b305b0f1Sespie#include <stddef.h> 3017b305b0f1Sespie#endif 3018b305b0f1SespieEOF 3019b305b0f1Sespieif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3020b305b0f1Sespie egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3021b305b0f1Sespie rm -rf conftest* 3022b305b0f1Sespie ac_cv_type_off_t=yes 3023b305b0f1Sespieelse 3024b305b0f1Sespie rm -rf conftest* 3025b305b0f1Sespie ac_cv_type_off_t=no 3026b305b0f1Sespiefi 3027b305b0f1Sespierm -f conftest* 3028b305b0f1Sespie 3029b305b0f1Sespiefi 3030b305b0f1Sespieecho "$ac_t""$ac_cv_type_off_t" 1>&6 3031b305b0f1Sespieif test $ac_cv_type_off_t = no; then 3032b305b0f1Sespie cat >> confdefs.h <<\EOF 3033b305b0f1Sespie#define off_t long 3034b305b0f1SespieEOF 3035b305b0f1Sespie 3036b305b0f1Sespiefi 3037b305b0f1Sespie 3038b305b0f1Sespieecho $ac_n "checking for size_t""... $ac_c" 1>&6 3039*007c2a45Smiodecho "configure:3040: checking for size_t" >&5 3040b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 3041b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3042b305b0f1Sespieelse 3043b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3044*007c2a45Smiod#line 3045 "configure" 3045b305b0f1Sespie#include "confdefs.h" 3046b305b0f1Sespie#include <sys/types.h> 3047b305b0f1Sespie#if STDC_HEADERS 3048b305b0f1Sespie#include <stdlib.h> 3049b305b0f1Sespie#include <stddef.h> 3050b305b0f1Sespie#endif 3051b305b0f1SespieEOF 3052b305b0f1Sespieif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3053b305b0f1Sespie egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3054b305b0f1Sespie rm -rf conftest* 3055b305b0f1Sespie ac_cv_type_size_t=yes 3056b305b0f1Sespieelse 3057b305b0f1Sespie rm -rf conftest* 3058b305b0f1Sespie ac_cv_type_size_t=no 3059b305b0f1Sespiefi 3060b305b0f1Sespierm -f conftest* 3061b305b0f1Sespie 3062b305b0f1Sespiefi 3063b305b0f1Sespieecho "$ac_t""$ac_cv_type_size_t" 1>&6 3064b305b0f1Sespieif test $ac_cv_type_size_t = no; then 3065b305b0f1Sespie cat >> confdefs.h <<\EOF 3066b305b0f1Sespie#define size_t unsigned 3067b305b0f1SespieEOF 3068b305b0f1Sespie 3069b305b0f1Sespiefi 3070b305b0f1Sespie 3071b305b0f1Sespie# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 3072b305b0f1Sespie# for constant arguments. Useless! 3073b305b0f1Sespieecho $ac_n "checking for working alloca.h""... $ac_c" 1>&6 3074*007c2a45Smiodecho "configure:3075: checking for working alloca.h" >&5 3075b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 3076b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3077b305b0f1Sespieelse 3078b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3079*007c2a45Smiod#line 3080 "configure" 3080b305b0f1Sespie#include "confdefs.h" 3081b305b0f1Sespie#include <alloca.h> 3082b305b0f1Sespieint main() { 3083b305b0f1Sespiechar *p = alloca(2 * sizeof(int)); 3084b305b0f1Sespie; return 0; } 3085b305b0f1SespieEOF 3086*007c2a45Smiodif { (eval echo configure:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3087b305b0f1Sespie rm -rf conftest* 3088b305b0f1Sespie ac_cv_header_alloca_h=yes 3089b305b0f1Sespieelse 3090b305b0f1Sespie echo "configure: failed program was:" >&5 3091b305b0f1Sespie cat conftest.$ac_ext >&5 3092b305b0f1Sespie rm -rf conftest* 3093b305b0f1Sespie ac_cv_header_alloca_h=no 3094b305b0f1Sespiefi 3095b305b0f1Sespierm -f conftest* 3096b305b0f1Sespiefi 3097b305b0f1Sespie 3098b305b0f1Sespieecho "$ac_t""$ac_cv_header_alloca_h" 1>&6 3099b305b0f1Sespieif test $ac_cv_header_alloca_h = yes; then 3100b305b0f1Sespie cat >> confdefs.h <<\EOF 3101b305b0f1Sespie#define HAVE_ALLOCA_H 1 3102b305b0f1SespieEOF 3103b305b0f1Sespie 3104b305b0f1Sespiefi 3105b305b0f1Sespie 3106b305b0f1Sespieecho $ac_n "checking for alloca""... $ac_c" 1>&6 3107*007c2a45Smiodecho "configure:3108: checking for alloca" >&5 3108b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 3109b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3110b305b0f1Sespieelse 3111b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3112*007c2a45Smiod#line 3113 "configure" 3113b305b0f1Sespie#include "confdefs.h" 3114b305b0f1Sespie 3115b305b0f1Sespie#ifdef __GNUC__ 3116b305b0f1Sespie# define alloca __builtin_alloca 3117b305b0f1Sespie#else 3118b305b0f1Sespie# ifdef _MSC_VER 3119b305b0f1Sespie# include <malloc.h> 3120b305b0f1Sespie# define alloca _alloca 3121b305b0f1Sespie# else 3122b305b0f1Sespie# if HAVE_ALLOCA_H 3123b305b0f1Sespie# include <alloca.h> 3124b305b0f1Sespie# else 3125b305b0f1Sespie# ifdef _AIX 3126b305b0f1Sespie #pragma alloca 3127b305b0f1Sespie# else 3128b305b0f1Sespie# ifndef alloca /* predefined by HP cc +Olibcalls */ 3129b305b0f1Sespiechar *alloca (); 3130b305b0f1Sespie# endif 3131b305b0f1Sespie# endif 3132b305b0f1Sespie# endif 3133b305b0f1Sespie# endif 3134b305b0f1Sespie#endif 3135b305b0f1Sespie 3136b305b0f1Sespieint main() { 3137b305b0f1Sespiechar *p = (char *) alloca(1); 3138b305b0f1Sespie; return 0; } 3139b305b0f1SespieEOF 3140*007c2a45Smiodif { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3141b305b0f1Sespie rm -rf conftest* 3142b305b0f1Sespie ac_cv_func_alloca_works=yes 3143b305b0f1Sespieelse 3144b305b0f1Sespie echo "configure: failed program was:" >&5 3145b305b0f1Sespie cat conftest.$ac_ext >&5 3146b305b0f1Sespie rm -rf conftest* 3147b305b0f1Sespie ac_cv_func_alloca_works=no 3148b305b0f1Sespiefi 3149b305b0f1Sespierm -f conftest* 3150b305b0f1Sespiefi 3151b305b0f1Sespie 3152b305b0f1Sespieecho "$ac_t""$ac_cv_func_alloca_works" 1>&6 3153b305b0f1Sespieif test $ac_cv_func_alloca_works = yes; then 3154b305b0f1Sespie cat >> confdefs.h <<\EOF 3155b305b0f1Sespie#define HAVE_ALLOCA 1 3156b305b0f1SespieEOF 3157b305b0f1Sespie 3158b305b0f1Sespiefi 3159b305b0f1Sespie 3160b305b0f1Sespieif test $ac_cv_func_alloca_works = no; then 3161b305b0f1Sespie # The SVR3 libPW and SVR4 libucb both contain incompatible functions 3162b305b0f1Sespie # that cause trouble. Some versions do not even contain alloca or 3163b305b0f1Sespie # contain a buggy version. If you still want to use their alloca, 3164b305b0f1Sespie # use ar to extract alloca.o from them instead of compiling alloca.c. 3165b305b0f1Sespie ALLOCA=alloca.${ac_objext} 3166b305b0f1Sespie cat >> confdefs.h <<\EOF 3167b305b0f1Sespie#define C_ALLOCA 1 3168b305b0f1SespieEOF 3169b305b0f1Sespie 3170b305b0f1Sespie 3171b305b0f1Sespieecho $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 3172*007c2a45Smiodecho "configure:3173: checking whether alloca needs Cray hooks" >&5 3173b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 3174b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3175b305b0f1Sespieelse 3176b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3177*007c2a45Smiod#line 3178 "configure" 3178b305b0f1Sespie#include "confdefs.h" 3179b305b0f1Sespie#if defined(CRAY) && ! defined(CRAY2) 3180b305b0f1Sespiewebecray 3181b305b0f1Sespie#else 3182b305b0f1Sespiewenotbecray 3183b305b0f1Sespie#endif 3184b305b0f1Sespie 3185b305b0f1SespieEOF 3186b305b0f1Sespieif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3187b305b0f1Sespie egrep "webecray" >/dev/null 2>&1; then 3188b305b0f1Sespie rm -rf conftest* 3189b305b0f1Sespie ac_cv_os_cray=yes 3190b305b0f1Sespieelse 3191b305b0f1Sespie rm -rf conftest* 3192b305b0f1Sespie ac_cv_os_cray=no 3193b305b0f1Sespiefi 3194b305b0f1Sespierm -f conftest* 3195b305b0f1Sespie 3196b305b0f1Sespiefi 3197b305b0f1Sespie 3198b305b0f1Sespieecho "$ac_t""$ac_cv_os_cray" 1>&6 3199b305b0f1Sespieif test $ac_cv_os_cray = yes; then 3200b305b0f1Sespiefor ac_func in _getb67 GETB67 getb67; do 3201b305b0f1Sespie echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3202*007c2a45Smiodecho "configure:3203: checking for $ac_func" >&5 3203b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3204b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3205b305b0f1Sespieelse 3206b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3207*007c2a45Smiod#line 3208 "configure" 3208b305b0f1Sespie#include "confdefs.h" 3209b305b0f1Sespie/* System header to define __stub macros and hopefully few prototypes, 3210b305b0f1Sespie which can conflict with char $ac_func(); below. */ 3211b305b0f1Sespie#include <assert.h> 3212b305b0f1Sespie/* Override any gcc2 internal prototype to avoid an error. */ 3213b305b0f1Sespie/* We use char because int might match the return type of a gcc2 3214b305b0f1Sespie builtin and then its argument prototype would still apply. */ 3215b305b0f1Sespiechar $ac_func(); 3216b305b0f1Sespie 3217b305b0f1Sespieint main() { 3218b305b0f1Sespie 3219b305b0f1Sespie/* The GNU C library defines this for functions which it implements 3220b305b0f1Sespie to always fail with ENOSYS. Some functions are actually named 3221b305b0f1Sespie something starting with __ and the normal name is an alias. */ 3222b305b0f1Sespie#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3223b305b0f1Sespiechoke me 3224b305b0f1Sespie#else 3225b305b0f1Sespie$ac_func(); 3226b305b0f1Sespie#endif 3227b305b0f1Sespie 3228b305b0f1Sespie; return 0; } 3229b305b0f1SespieEOF 3230*007c2a45Smiodif { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3231b305b0f1Sespie rm -rf conftest* 3232b305b0f1Sespie eval "ac_cv_func_$ac_func=yes" 3233b305b0f1Sespieelse 3234b305b0f1Sespie echo "configure: failed program was:" >&5 3235b305b0f1Sespie cat conftest.$ac_ext >&5 3236b305b0f1Sespie rm -rf conftest* 3237b305b0f1Sespie eval "ac_cv_func_$ac_func=no" 3238b305b0f1Sespiefi 3239b305b0f1Sespierm -f conftest* 3240b305b0f1Sespiefi 3241b305b0f1Sespie 3242b305b0f1Sespieif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3243b305b0f1Sespie echo "$ac_t""yes" 1>&6 3244b305b0f1Sespie cat >> confdefs.h <<EOF 3245b305b0f1Sespie#define CRAY_STACKSEG_END $ac_func 3246b305b0f1SespieEOF 3247b305b0f1Sespie 3248b305b0f1Sespie break 3249b305b0f1Sespieelse 3250b305b0f1Sespie echo "$ac_t""no" 1>&6 3251b305b0f1Sespiefi 3252b305b0f1Sespie 3253b305b0f1Sespiedone 3254b305b0f1Sespiefi 3255b305b0f1Sespie 3256b305b0f1Sespieecho $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 3257*007c2a45Smiodecho "configure:3258: checking stack direction for C alloca" >&5 3258b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 3259b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3260b305b0f1Sespieelse 3261b305b0f1Sespie if test "$cross_compiling" = yes; then 3262b305b0f1Sespie ac_cv_c_stack_direction=0 3263b305b0f1Sespieelse 3264b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3265*007c2a45Smiod#line 3266 "configure" 3266b305b0f1Sespie#include "confdefs.h" 3267b305b0f1Sespiefind_stack_direction () 3268b305b0f1Sespie{ 3269b305b0f1Sespie static char *addr = 0; 3270b305b0f1Sespie auto char dummy; 3271b305b0f1Sespie if (addr == 0) 3272b305b0f1Sespie { 3273b305b0f1Sespie addr = &dummy; 3274b305b0f1Sespie return find_stack_direction (); 3275b305b0f1Sespie } 3276b305b0f1Sespie else 3277b305b0f1Sespie return (&dummy > addr) ? 1 : -1; 3278b305b0f1Sespie} 3279b305b0f1Sespiemain () 3280b305b0f1Sespie{ 3281b305b0f1Sespie exit (find_stack_direction() < 0); 3282b305b0f1Sespie} 3283b305b0f1SespieEOF 3284*007c2a45Smiodif { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3285b305b0f1Sespiethen 3286b305b0f1Sespie ac_cv_c_stack_direction=1 3287b305b0f1Sespieelse 3288b305b0f1Sespie echo "configure: failed program was:" >&5 3289b305b0f1Sespie cat conftest.$ac_ext >&5 3290b305b0f1Sespie rm -fr conftest* 3291b305b0f1Sespie ac_cv_c_stack_direction=-1 3292b305b0f1Sespiefi 3293b305b0f1Sespierm -fr conftest* 3294b305b0f1Sespiefi 3295b305b0f1Sespie 3296b305b0f1Sespiefi 3297b305b0f1Sespie 3298b305b0f1Sespieecho "$ac_t""$ac_cv_c_stack_direction" 1>&6 3299b305b0f1Sespiecat >> confdefs.h <<EOF 3300b305b0f1Sespie#define STACK_DIRECTION $ac_cv_c_stack_direction 3301b305b0f1SespieEOF 3302b305b0f1Sespie 3303b305b0f1Sespiefi 3304b305b0f1Sespie 3305b305b0f1Sespiefor ac_hdr in unistd.h 3306b305b0f1Sespiedo 3307b305b0f1Sespieac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3308b305b0f1Sespieecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3309*007c2a45Smiodecho "configure:3310: checking for $ac_hdr" >&5 3310b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3311b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3312b305b0f1Sespieelse 3313b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3314*007c2a45Smiod#line 3315 "configure" 3315b305b0f1Sespie#include "confdefs.h" 3316b305b0f1Sespie#include <$ac_hdr> 3317b305b0f1SespieEOF 3318b305b0f1Sespieac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3319*007c2a45Smiod{ (eval echo configure:3320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3320b305b0f1Sespieac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3321b305b0f1Sespieif test -z "$ac_err"; then 3322b305b0f1Sespie rm -rf conftest* 3323b305b0f1Sespie eval "ac_cv_header_$ac_safe=yes" 3324b305b0f1Sespieelse 3325b305b0f1Sespie echo "$ac_err" >&5 3326b305b0f1Sespie echo "configure: failed program was:" >&5 3327b305b0f1Sespie cat conftest.$ac_ext >&5 3328b305b0f1Sespie rm -rf conftest* 3329b305b0f1Sespie eval "ac_cv_header_$ac_safe=no" 3330b305b0f1Sespiefi 3331b305b0f1Sespierm -f conftest* 3332b305b0f1Sespiefi 3333b305b0f1Sespieif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3334b305b0f1Sespie echo "$ac_t""yes" 1>&6 3335b305b0f1Sespie ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3336b305b0f1Sespie cat >> confdefs.h <<EOF 3337b305b0f1Sespie#define $ac_tr_hdr 1 3338b305b0f1SespieEOF 3339b305b0f1Sespie 3340b305b0f1Sespieelse 3341b305b0f1Sespie echo "$ac_t""no" 1>&6 3342b305b0f1Sespiefi 3343b305b0f1Sespiedone 3344b305b0f1Sespie 3345b305b0f1Sespiefor ac_func in getpagesize 3346b305b0f1Sespiedo 3347b305b0f1Sespieecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 3348*007c2a45Smiodecho "configure:3349: checking for $ac_func" >&5 3349b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3350b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3351b305b0f1Sespieelse 3352b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3353*007c2a45Smiod#line 3354 "configure" 3354b305b0f1Sespie#include "confdefs.h" 3355b305b0f1Sespie/* System header to define __stub macros and hopefully few prototypes, 3356b305b0f1Sespie which can conflict with char $ac_func(); below. */ 3357b305b0f1Sespie#include <assert.h> 3358b305b0f1Sespie/* Override any gcc2 internal prototype to avoid an error. */ 3359b305b0f1Sespie/* We use char because int might match the return type of a gcc2 3360b305b0f1Sespie builtin and then its argument prototype would still apply. */ 3361b305b0f1Sespiechar $ac_func(); 3362b305b0f1Sespie 3363b305b0f1Sespieint main() { 3364b305b0f1Sespie 3365b305b0f1Sespie/* The GNU C library defines this for functions which it implements 3366b305b0f1Sespie to always fail with ENOSYS. Some functions are actually named 3367b305b0f1Sespie something starting with __ and the normal name is an alias. */ 3368b305b0f1Sespie#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3369b305b0f1Sespiechoke me 3370b305b0f1Sespie#else 3371b305b0f1Sespie$ac_func(); 3372b305b0f1Sespie#endif 3373b305b0f1Sespie 3374b305b0f1Sespie; return 0; } 3375b305b0f1SespieEOF 3376*007c2a45Smiodif { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3377b305b0f1Sespie rm -rf conftest* 3378b305b0f1Sespie eval "ac_cv_func_$ac_func=yes" 3379b305b0f1Sespieelse 3380b305b0f1Sespie echo "configure: failed program was:" >&5 3381b305b0f1Sespie cat conftest.$ac_ext >&5 3382b305b0f1Sespie rm -rf conftest* 3383b305b0f1Sespie eval "ac_cv_func_$ac_func=no" 3384b305b0f1Sespiefi 3385b305b0f1Sespierm -f conftest* 3386b305b0f1Sespiefi 3387b305b0f1Sespie 3388b305b0f1Sespieif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3389b305b0f1Sespie echo "$ac_t""yes" 1>&6 3390b305b0f1Sespie ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3391b305b0f1Sespie cat >> confdefs.h <<EOF 3392b305b0f1Sespie#define $ac_tr_func 1 3393b305b0f1SespieEOF 3394b305b0f1Sespie 3395b305b0f1Sespieelse 3396b305b0f1Sespie echo "$ac_t""no" 1>&6 3397b305b0f1Sespiefi 3398b305b0f1Sespiedone 3399b305b0f1Sespie 3400b305b0f1Sespieecho $ac_n "checking for working mmap""... $ac_c" 1>&6 3401*007c2a45Smiodecho "configure:3402: checking for working mmap" >&5 3402b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 3403b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3404b305b0f1Sespieelse 3405b305b0f1Sespie if test "$cross_compiling" = yes; then 3406b305b0f1Sespie ac_cv_func_mmap_fixed_mapped=no 3407b305b0f1Sespieelse 3408b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3409*007c2a45Smiod#line 3410 "configure" 3410b305b0f1Sespie#include "confdefs.h" 3411b305b0f1Sespie 3412b305b0f1Sespie/* Thanks to Mike Haertel and Jim Avera for this test. 3413b305b0f1Sespie Here is a matrix of mmap possibilities: 3414b305b0f1Sespie mmap private not fixed 3415b305b0f1Sespie mmap private fixed at somewhere currently unmapped 3416b305b0f1Sespie mmap private fixed at somewhere already mapped 3417b305b0f1Sespie mmap shared not fixed 3418b305b0f1Sespie mmap shared fixed at somewhere currently unmapped 3419b305b0f1Sespie mmap shared fixed at somewhere already mapped 3420b305b0f1Sespie For private mappings, we should verify that changes cannot be read() 3421b305b0f1Sespie back from the file, nor mmap's back from the file at a different 3422b305b0f1Sespie address. (There have been systems where private was not correctly 3423b305b0f1Sespie implemented like the infamous i386 svr4.0, and systems where the 3424b305b0f1Sespie VM page cache was not coherent with the filesystem buffer cache 3425b305b0f1Sespie like early versions of FreeBSD and possibly contemporary NetBSD.) 3426b305b0f1Sespie For shared mappings, we should conversely verify that changes get 3427b305b0f1Sespie propogated back to all the places they're supposed to be. 3428b305b0f1Sespie 3429b305b0f1Sespie Grep wants private fixed already mapped. 3430b305b0f1Sespie The main things grep needs to know about mmap are: 3431b305b0f1Sespie * does it exist and is it safe to write into the mmap'd area 3432b305b0f1Sespie * how to use it (BSD variants) */ 3433b305b0f1Sespie#include <sys/types.h> 3434b305b0f1Sespie#include <fcntl.h> 3435b305b0f1Sespie#include <sys/mman.h> 3436b305b0f1Sespie 3437b305b0f1Sespie/* This mess was copied from the GNU getpagesize.h. */ 3438b305b0f1Sespie#ifndef HAVE_GETPAGESIZE 3439b305b0f1Sespie# ifdef HAVE_UNISTD_H 3440b305b0f1Sespie# include <unistd.h> 3441b305b0f1Sespie# endif 3442b305b0f1Sespie 3443b305b0f1Sespie/* Assume that all systems that can run configure have sys/param.h. */ 3444b305b0f1Sespie# ifndef HAVE_SYS_PARAM_H 3445b305b0f1Sespie# define HAVE_SYS_PARAM_H 1 3446b305b0f1Sespie# endif 3447b305b0f1Sespie 3448b305b0f1Sespie# ifdef _SC_PAGESIZE 3449b305b0f1Sespie# define getpagesize() sysconf(_SC_PAGESIZE) 3450b305b0f1Sespie# else /* no _SC_PAGESIZE */ 3451b305b0f1Sespie# ifdef HAVE_SYS_PARAM_H 3452b305b0f1Sespie# include <sys/param.h> 3453b305b0f1Sespie# ifdef EXEC_PAGESIZE 3454b305b0f1Sespie# define getpagesize() EXEC_PAGESIZE 3455b305b0f1Sespie# else /* no EXEC_PAGESIZE */ 3456b305b0f1Sespie# ifdef NBPG 3457b305b0f1Sespie# define getpagesize() NBPG * CLSIZE 3458b305b0f1Sespie# ifndef CLSIZE 3459b305b0f1Sespie# define CLSIZE 1 3460b305b0f1Sespie# endif /* no CLSIZE */ 3461b305b0f1Sespie# else /* no NBPG */ 3462b305b0f1Sespie# ifdef NBPC 3463b305b0f1Sespie# define getpagesize() NBPC 3464b305b0f1Sespie# else /* no NBPC */ 3465b305b0f1Sespie# ifdef PAGESIZE 3466b305b0f1Sespie# define getpagesize() PAGESIZE 3467b305b0f1Sespie# endif /* PAGESIZE */ 3468b305b0f1Sespie# endif /* no NBPC */ 3469b305b0f1Sespie# endif /* no NBPG */ 3470b305b0f1Sespie# endif /* no EXEC_PAGESIZE */ 3471b305b0f1Sespie# else /* no HAVE_SYS_PARAM_H */ 3472b305b0f1Sespie# define getpagesize() 8192 /* punt totally */ 3473b305b0f1Sespie# endif /* no HAVE_SYS_PARAM_H */ 3474b305b0f1Sespie# endif /* no _SC_PAGESIZE */ 3475b305b0f1Sespie 3476b305b0f1Sespie#endif /* no HAVE_GETPAGESIZE */ 3477b305b0f1Sespie 3478b305b0f1Sespie#ifdef __cplusplus 3479b305b0f1Sespieextern "C" { void *malloc(unsigned); } 3480b305b0f1Sespie#else 3481b305b0f1Sespiechar *malloc(); 3482b305b0f1Sespie#endif 3483b305b0f1Sespie 3484b305b0f1Sespieint 3485b305b0f1Sespiemain() 3486b305b0f1Sespie{ 3487b305b0f1Sespie char *data, *data2, *data3; 3488b305b0f1Sespie int i, pagesize; 3489b305b0f1Sespie int fd; 3490b305b0f1Sespie 3491b305b0f1Sespie pagesize = getpagesize(); 3492b305b0f1Sespie 3493b305b0f1Sespie /* 3494b305b0f1Sespie * First, make a file with some known garbage in it. 3495b305b0f1Sespie */ 3496b305b0f1Sespie data = malloc(pagesize); 3497b305b0f1Sespie if (!data) 3498b305b0f1Sespie exit(1); 3499b305b0f1Sespie for (i = 0; i < pagesize; ++i) 3500b305b0f1Sespie *(data + i) = rand(); 3501b305b0f1Sespie umask(0); 3502b305b0f1Sespie fd = creat("conftestmmap", 0600); 3503b305b0f1Sespie if (fd < 0) 3504b305b0f1Sespie exit(1); 3505b305b0f1Sespie if (write(fd, data, pagesize) != pagesize) 3506b305b0f1Sespie exit(1); 3507b305b0f1Sespie close(fd); 3508b305b0f1Sespie 3509b305b0f1Sespie /* 3510b305b0f1Sespie * Next, try to mmap the file at a fixed address which 3511b305b0f1Sespie * already has something else allocated at it. If we can, 3512b305b0f1Sespie * also make sure that we see the same garbage. 3513b305b0f1Sespie */ 3514b305b0f1Sespie fd = open("conftestmmap", O_RDWR); 3515b305b0f1Sespie if (fd < 0) 3516b305b0f1Sespie exit(1); 3517b305b0f1Sespie data2 = malloc(2 * pagesize); 3518b305b0f1Sespie if (!data2) 3519b305b0f1Sespie exit(1); 3520b305b0f1Sespie data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 3521b305b0f1Sespie if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 3522b305b0f1Sespie MAP_PRIVATE | MAP_FIXED, fd, 0L)) 3523b305b0f1Sespie exit(1); 3524b305b0f1Sespie for (i = 0; i < pagesize; ++i) 3525b305b0f1Sespie if (*(data + i) != *(data2 + i)) 3526b305b0f1Sespie exit(1); 3527b305b0f1Sespie 3528b305b0f1Sespie /* 3529b305b0f1Sespie * Finally, make sure that changes to the mapped area 3530b305b0f1Sespie * do not percolate back to the file as seen by read(). 3531b305b0f1Sespie * (This is a bug on some variants of i386 svr4.0.) 3532b305b0f1Sespie */ 3533b305b0f1Sespie for (i = 0; i < pagesize; ++i) 3534b305b0f1Sespie *(data2 + i) = *(data2 + i) + 1; 3535b305b0f1Sespie data3 = malloc(pagesize); 3536b305b0f1Sespie if (!data3) 3537b305b0f1Sespie exit(1); 3538b305b0f1Sespie if (read(fd, data3, pagesize) != pagesize) 3539b305b0f1Sespie exit(1); 3540b305b0f1Sespie for (i = 0; i < pagesize; ++i) 3541b305b0f1Sespie if (*(data + i) != *(data3 + i)) 3542b305b0f1Sespie exit(1); 3543b305b0f1Sespie close(fd); 3544b305b0f1Sespie unlink("conftestmmap"); 3545b305b0f1Sespie exit(0); 3546b305b0f1Sespie} 3547b305b0f1Sespie 3548b305b0f1SespieEOF 3549*007c2a45Smiodif { (eval echo configure:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3550b305b0f1Sespiethen 3551b305b0f1Sespie ac_cv_func_mmap_fixed_mapped=yes 3552b305b0f1Sespieelse 3553b305b0f1Sespie echo "configure: failed program was:" >&5 3554b305b0f1Sespie cat conftest.$ac_ext >&5 3555b305b0f1Sespie rm -fr conftest* 3556b305b0f1Sespie ac_cv_func_mmap_fixed_mapped=no 3557b305b0f1Sespiefi 3558b305b0f1Sespierm -fr conftest* 3559b305b0f1Sespiefi 3560b305b0f1Sespie 3561b305b0f1Sespiefi 3562b305b0f1Sespie 3563b305b0f1Sespieecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 3564b305b0f1Sespieif test $ac_cv_func_mmap_fixed_mapped = yes; then 3565b305b0f1Sespie cat >> confdefs.h <<\EOF 3566b305b0f1Sespie#define HAVE_MMAP 1 3567b305b0f1SespieEOF 3568b305b0f1Sespie 3569b305b0f1Sespiefi 3570b305b0f1Sespie 3571b305b0f1Sespie 3572b305b0f1Sespie for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 3573b305b0f1Sespieunistd.h values.h sys/param.h 3574b305b0f1Sespiedo 3575b305b0f1Sespieac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3576b305b0f1Sespieecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3577*007c2a45Smiodecho "configure:3578: checking for $ac_hdr" >&5 3578b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3579b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3580b305b0f1Sespieelse 3581b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3582*007c2a45Smiod#line 3583 "configure" 3583b305b0f1Sespie#include "confdefs.h" 3584b305b0f1Sespie#include <$ac_hdr> 3585b305b0f1SespieEOF 3586b305b0f1Sespieac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3587*007c2a45Smiod{ (eval echo configure:3588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3588b305b0f1Sespieac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3589b305b0f1Sespieif test -z "$ac_err"; then 3590b305b0f1Sespie rm -rf conftest* 3591b305b0f1Sespie eval "ac_cv_header_$ac_safe=yes" 3592b305b0f1Sespieelse 3593b305b0f1Sespie echo "$ac_err" >&5 3594b305b0f1Sespie echo "configure: failed program was:" >&5 3595b305b0f1Sespie cat conftest.$ac_ext >&5 3596b305b0f1Sespie rm -rf conftest* 3597b305b0f1Sespie eval "ac_cv_header_$ac_safe=no" 3598b305b0f1Sespiefi 3599b305b0f1Sespierm -f conftest* 3600b305b0f1Sespiefi 3601b305b0f1Sespieif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3602b305b0f1Sespie echo "$ac_t""yes" 1>&6 3603b305b0f1Sespie ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3604b305b0f1Sespie cat >> confdefs.h <<EOF 3605b305b0f1Sespie#define $ac_tr_hdr 1 3606b305b0f1SespieEOF 3607b305b0f1Sespie 3608b305b0f1Sespieelse 3609b305b0f1Sespie echo "$ac_t""no" 1>&6 3610b305b0f1Sespiefi 3611b305b0f1Sespiedone 3612b305b0f1Sespie 3613b305b0f1Sespie for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 3614b305b0f1Sespie__argz_count __argz_stringify __argz_next 3615b305b0f1Sespiedo 3616b305b0f1Sespieecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 3617*007c2a45Smiodecho "configure:3618: checking for $ac_func" >&5 3618b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3619b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3620b305b0f1Sespieelse 3621b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3622*007c2a45Smiod#line 3623 "configure" 3623b305b0f1Sespie#include "confdefs.h" 3624b305b0f1Sespie/* System header to define __stub macros and hopefully few prototypes, 3625b305b0f1Sespie which can conflict with char $ac_func(); below. */ 3626b305b0f1Sespie#include <assert.h> 3627b305b0f1Sespie/* Override any gcc2 internal prototype to avoid an error. */ 3628b305b0f1Sespie/* We use char because int might match the return type of a gcc2 3629b305b0f1Sespie builtin and then its argument prototype would still apply. */ 3630b305b0f1Sespiechar $ac_func(); 3631b305b0f1Sespie 3632b305b0f1Sespieint main() { 3633b305b0f1Sespie 3634b305b0f1Sespie/* The GNU C library defines this for functions which it implements 3635b305b0f1Sespie to always fail with ENOSYS. Some functions are actually named 3636b305b0f1Sespie something starting with __ and the normal name is an alias. */ 3637b305b0f1Sespie#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3638b305b0f1Sespiechoke me 3639b305b0f1Sespie#else 3640b305b0f1Sespie$ac_func(); 3641b305b0f1Sespie#endif 3642b305b0f1Sespie 3643b305b0f1Sespie; return 0; } 3644b305b0f1SespieEOF 3645*007c2a45Smiodif { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3646b305b0f1Sespie rm -rf conftest* 3647b305b0f1Sespie eval "ac_cv_func_$ac_func=yes" 3648b305b0f1Sespieelse 3649b305b0f1Sespie echo "configure: failed program was:" >&5 3650b305b0f1Sespie cat conftest.$ac_ext >&5 3651b305b0f1Sespie rm -rf conftest* 3652b305b0f1Sespie eval "ac_cv_func_$ac_func=no" 3653b305b0f1Sespiefi 3654b305b0f1Sespierm -f conftest* 3655b305b0f1Sespiefi 3656b305b0f1Sespie 3657b305b0f1Sespieif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3658b305b0f1Sespie echo "$ac_t""yes" 1>&6 3659b305b0f1Sespie ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3660b305b0f1Sespie cat >> confdefs.h <<EOF 3661b305b0f1Sespie#define $ac_tr_func 1 3662b305b0f1SespieEOF 3663b305b0f1Sespie 3664b305b0f1Sespieelse 3665b305b0f1Sespie echo "$ac_t""no" 1>&6 3666b305b0f1Sespiefi 3667b305b0f1Sespiedone 3668b305b0f1Sespie 3669b305b0f1Sespie 3670b305b0f1Sespie if test "${ac_cv_func_stpcpy+set}" != "set"; then 3671b305b0f1Sespie for ac_func in stpcpy 3672b305b0f1Sespiedo 3673b305b0f1Sespieecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 3674*007c2a45Smiodecho "configure:3675: checking for $ac_func" >&5 3675b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3676b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3677b305b0f1Sespieelse 3678b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3679*007c2a45Smiod#line 3680 "configure" 3680b305b0f1Sespie#include "confdefs.h" 3681b305b0f1Sespie/* System header to define __stub macros and hopefully few prototypes, 3682b305b0f1Sespie which can conflict with char $ac_func(); below. */ 3683b305b0f1Sespie#include <assert.h> 3684b305b0f1Sespie/* Override any gcc2 internal prototype to avoid an error. */ 3685b305b0f1Sespie/* We use char because int might match the return type of a gcc2 3686b305b0f1Sespie builtin and then its argument prototype would still apply. */ 3687b305b0f1Sespiechar $ac_func(); 3688b305b0f1Sespie 3689b305b0f1Sespieint main() { 3690b305b0f1Sespie 3691b305b0f1Sespie/* The GNU C library defines this for functions which it implements 3692b305b0f1Sespie to always fail with ENOSYS. Some functions are actually named 3693b305b0f1Sespie something starting with __ and the normal name is an alias. */ 3694b305b0f1Sespie#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3695b305b0f1Sespiechoke me 3696b305b0f1Sespie#else 3697b305b0f1Sespie$ac_func(); 3698b305b0f1Sespie#endif 3699b305b0f1Sespie 3700b305b0f1Sespie; return 0; } 3701b305b0f1SespieEOF 3702*007c2a45Smiodif { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3703b305b0f1Sespie rm -rf conftest* 3704b305b0f1Sespie eval "ac_cv_func_$ac_func=yes" 3705b305b0f1Sespieelse 3706b305b0f1Sespie echo "configure: failed program was:" >&5 3707b305b0f1Sespie cat conftest.$ac_ext >&5 3708b305b0f1Sespie rm -rf conftest* 3709b305b0f1Sespie eval "ac_cv_func_$ac_func=no" 3710b305b0f1Sespiefi 3711b305b0f1Sespierm -f conftest* 3712b305b0f1Sespiefi 3713b305b0f1Sespie 3714b305b0f1Sespieif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3715b305b0f1Sespie echo "$ac_t""yes" 1>&6 3716b305b0f1Sespie ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3717b305b0f1Sespie cat >> confdefs.h <<EOF 3718b305b0f1Sespie#define $ac_tr_func 1 3719b305b0f1SespieEOF 3720b305b0f1Sespie 3721b305b0f1Sespieelse 3722b305b0f1Sespie echo "$ac_t""no" 1>&6 3723b305b0f1Sespiefi 3724b305b0f1Sespiedone 3725b305b0f1Sespie 3726b305b0f1Sespie fi 3727b305b0f1Sespie if test "${ac_cv_func_stpcpy}" = "yes"; then 3728b305b0f1Sespie cat >> confdefs.h <<\EOF 3729b305b0f1Sespie#define HAVE_STPCPY 1 3730b305b0f1SespieEOF 3731b305b0f1Sespie 3732b305b0f1Sespie fi 3733b305b0f1Sespie 3734b305b0f1Sespie if test $ac_cv_header_locale_h = yes; then 3735b305b0f1Sespie echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 3736*007c2a45Smiodecho "configure:3737: checking for LC_MESSAGES" >&5 3737b305b0f1Sespieif eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then 3738b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3739b305b0f1Sespieelse 3740b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3741*007c2a45Smiod#line 3742 "configure" 3742b305b0f1Sespie#include "confdefs.h" 3743b305b0f1Sespie#include <locale.h> 3744b305b0f1Sespieint main() { 3745b305b0f1Sespiereturn LC_MESSAGES 3746b305b0f1Sespie; return 0; } 3747b305b0f1SespieEOF 3748*007c2a45Smiodif { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3749b305b0f1Sespie rm -rf conftest* 3750b305b0f1Sespie am_cv_val_LC_MESSAGES=yes 3751b305b0f1Sespieelse 3752b305b0f1Sespie echo "configure: failed program was:" >&5 3753b305b0f1Sespie cat conftest.$ac_ext >&5 3754b305b0f1Sespie rm -rf conftest* 3755b305b0f1Sespie am_cv_val_LC_MESSAGES=no 3756b305b0f1Sespiefi 3757b305b0f1Sespierm -f conftest* 3758b305b0f1Sespiefi 3759b305b0f1Sespie 3760b305b0f1Sespieecho "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 3761b305b0f1Sespie if test $am_cv_val_LC_MESSAGES = yes; then 3762b305b0f1Sespie cat >> confdefs.h <<\EOF 3763b305b0f1Sespie#define HAVE_LC_MESSAGES 1 3764b305b0f1SespieEOF 3765b305b0f1Sespie 3766b305b0f1Sespie fi 3767b305b0f1Sespie fi 3768b305b0f1Sespie echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 3769*007c2a45Smiodecho "configure:3770: checking whether NLS is requested" >&5 3770b305b0f1Sespie # Check whether --enable-nls or --disable-nls was given. 3771b305b0f1Sespieif test "${enable_nls+set}" = set; then 3772b305b0f1Sespie enableval="$enable_nls" 3773b305b0f1Sespie USE_NLS=$enableval 3774b305b0f1Sespieelse 3775b305b0f1Sespie USE_NLS=yes 3776b305b0f1Sespiefi 3777b305b0f1Sespie 3778b305b0f1Sespie echo "$ac_t""$USE_NLS" 1>&6 3779b305b0f1Sespie 3780b305b0f1Sespie 3781b305b0f1Sespie USE_INCLUDED_LIBINTL=no 3782b305b0f1Sespie 3783b305b0f1Sespie if test "$USE_NLS" = "yes"; then 3784b305b0f1Sespie cat >> confdefs.h <<\EOF 3785b305b0f1Sespie#define ENABLE_NLS 1 3786b305b0f1SespieEOF 3787b305b0f1Sespie 3788b305b0f1Sespie echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 3789*007c2a45Smiodecho "configure:3790: checking whether included gettext is requested" >&5 3790b305b0f1Sespie # Check whether --with-included-gettext or --without-included-gettext was given. 3791b305b0f1Sespieif test "${with_included_gettext+set}" = set; then 3792b305b0f1Sespie withval="$with_included_gettext" 3793b305b0f1Sespie nls_cv_force_use_gnu_gettext=$withval 3794b305b0f1Sespieelse 3795b305b0f1Sespie nls_cv_force_use_gnu_gettext=no 3796b305b0f1Sespiefi 3797b305b0f1Sespie 3798b305b0f1Sespie echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 3799b305b0f1Sespie 3800b305b0f1Sespie nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 3801b305b0f1Sespie if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 3802b305b0f1Sespie nls_cv_header_intl= 3803b305b0f1Sespie nls_cv_header_libgt= 3804b305b0f1Sespie CATOBJEXT=NONE 3805b305b0f1Sespie 3806b305b0f1Sespie ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` 3807b305b0f1Sespieecho $ac_n "checking for libintl.h""... $ac_c" 1>&6 3808*007c2a45Smiodecho "configure:3809: checking for libintl.h" >&5 3809b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3810b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3811b305b0f1Sespieelse 3812b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3813*007c2a45Smiod#line 3814 "configure" 3814b305b0f1Sespie#include "confdefs.h" 3815b305b0f1Sespie#include <libintl.h> 3816b305b0f1SespieEOF 3817b305b0f1Sespieac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3818*007c2a45Smiod{ (eval echo configure:3819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3819b305b0f1Sespieac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3820b305b0f1Sespieif test -z "$ac_err"; then 3821b305b0f1Sespie rm -rf conftest* 3822b305b0f1Sespie eval "ac_cv_header_$ac_safe=yes" 3823b305b0f1Sespieelse 3824b305b0f1Sespie echo "$ac_err" >&5 3825b305b0f1Sespie echo "configure: failed program was:" >&5 3826b305b0f1Sespie cat conftest.$ac_ext >&5 3827b305b0f1Sespie rm -rf conftest* 3828b305b0f1Sespie eval "ac_cv_header_$ac_safe=no" 3829b305b0f1Sespiefi 3830b305b0f1Sespierm -f conftest* 3831b305b0f1Sespiefi 3832b305b0f1Sespieif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3833b305b0f1Sespie echo "$ac_t""yes" 1>&6 3834b305b0f1Sespie echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 3835*007c2a45Smiodecho "configure:3836: checking for gettext in libc" >&5 3836b305b0f1Sespieif eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then 3837b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3838b305b0f1Sespieelse 3839b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3840*007c2a45Smiod#line 3841 "configure" 3841b305b0f1Sespie#include "confdefs.h" 3842b305b0f1Sespie#include <libintl.h> 3843b305b0f1Sespieint main() { 3844b305b0f1Sespiereturn (int) gettext ("") 3845b305b0f1Sespie; return 0; } 3846b305b0f1SespieEOF 3847*007c2a45Smiodif { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3848b305b0f1Sespie rm -rf conftest* 3849b305b0f1Sespie gt_cv_func_gettext_libc=yes 3850b305b0f1Sespieelse 3851b305b0f1Sespie echo "configure: failed program was:" >&5 3852b305b0f1Sespie cat conftest.$ac_ext >&5 3853b305b0f1Sespie rm -rf conftest* 3854b305b0f1Sespie gt_cv_func_gettext_libc=no 3855b305b0f1Sespiefi 3856b305b0f1Sespierm -f conftest* 3857b305b0f1Sespiefi 3858b305b0f1Sespie 3859b305b0f1Sespieecho "$ac_t""$gt_cv_func_gettext_libc" 1>&6 3860b305b0f1Sespie 3861b305b0f1Sespie if test "$gt_cv_func_gettext_libc" != "yes"; then 3862b305b0f1Sespie echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 3863*007c2a45Smiodecho "configure:3864: checking for bindtextdomain in -lintl" >&5 3864b305b0f1Sespieac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` 3865b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3866b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3867b305b0f1Sespieelse 3868b305b0f1Sespie ac_save_LIBS="$LIBS" 3869b305b0f1SespieLIBS="-lintl $LIBS" 3870b305b0f1Sespiecat > conftest.$ac_ext <<EOF 3871*007c2a45Smiod#line 3872 "configure" 3872b305b0f1Sespie#include "confdefs.h" 3873b305b0f1Sespie/* Override any gcc2 internal prototype to avoid an error. */ 3874b305b0f1Sespie/* We use char because int might match the return type of a gcc2 3875b305b0f1Sespie builtin and then its argument prototype would still apply. */ 3876b305b0f1Sespiechar bindtextdomain(); 3877b305b0f1Sespie 3878b305b0f1Sespieint main() { 3879b305b0f1Sespiebindtextdomain() 3880b305b0f1Sespie; return 0; } 3881b305b0f1SespieEOF 3882*007c2a45Smiodif { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3883b305b0f1Sespie rm -rf conftest* 3884b305b0f1Sespie eval "ac_cv_lib_$ac_lib_var=yes" 3885b305b0f1Sespieelse 3886b305b0f1Sespie echo "configure: failed program was:" >&5 3887b305b0f1Sespie cat conftest.$ac_ext >&5 3888b305b0f1Sespie rm -rf conftest* 3889b305b0f1Sespie eval "ac_cv_lib_$ac_lib_var=no" 3890b305b0f1Sespiefi 3891b305b0f1Sespierm -f conftest* 3892b305b0f1SespieLIBS="$ac_save_LIBS" 3893b305b0f1Sespie 3894b305b0f1Sespiefi 3895b305b0f1Sespieif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3896b305b0f1Sespie echo "$ac_t""yes" 1>&6 3897b305b0f1Sespie echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 3898*007c2a45Smiodecho "configure:3899: checking for gettext in libintl" >&5 3899b305b0f1Sespieif eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then 3900b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3901b305b0f1Sespieelse 3902b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3903*007c2a45Smiod#line 3904 "configure" 3904b305b0f1Sespie#include "confdefs.h" 3905b305b0f1Sespie 3906b305b0f1Sespieint main() { 3907b305b0f1Sespiereturn (int) gettext ("") 3908b305b0f1Sespie; return 0; } 3909b305b0f1SespieEOF 3910*007c2a45Smiodif { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3911b305b0f1Sespie rm -rf conftest* 3912b305b0f1Sespie gt_cv_func_gettext_libintl=yes 3913b305b0f1Sespieelse 3914b305b0f1Sespie echo "configure: failed program was:" >&5 3915b305b0f1Sespie cat conftest.$ac_ext >&5 3916b305b0f1Sespie rm -rf conftest* 3917b305b0f1Sespie gt_cv_func_gettext_libintl=no 3918b305b0f1Sespiefi 3919b305b0f1Sespierm -f conftest* 3920b305b0f1Sespiefi 3921b305b0f1Sespie 3922b305b0f1Sespieecho "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 3923b305b0f1Sespieelse 3924b305b0f1Sespie echo "$ac_t""no" 1>&6 3925b305b0f1Sespiefi 3926b305b0f1Sespie 3927b305b0f1Sespie fi 3928b305b0f1Sespie 3929b305b0f1Sespie if test "$gt_cv_func_gettext_libc" = "yes" \ 3930b305b0f1Sespie || test "$gt_cv_func_gettext_libintl" = "yes"; then 3931b305b0f1Sespie cat >> confdefs.h <<\EOF 3932b305b0f1Sespie#define HAVE_GETTEXT 1 3933b305b0f1SespieEOF 3934b305b0f1Sespie 3935b305b0f1Sespie # Extract the first word of "msgfmt", so it can be a program name with args. 3936b305b0f1Sespieset dummy msgfmt; ac_word=$2 3937b305b0f1Sespieecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3938*007c2a45Smiodecho "configure:3939: checking for $ac_word" >&5 3939b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 3940b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3941b305b0f1Sespieelse 3942b305b0f1Sespie case "$MSGFMT" in 3943b305b0f1Sespie /*) 3944b305b0f1Sespie ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3945b305b0f1Sespie ;; 3946b305b0f1Sespie *) 3947b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3948b305b0f1Sespie for ac_dir in $PATH; do 3949b305b0f1Sespie test -z "$ac_dir" && ac_dir=. 3950b305b0f1Sespie if test -f $ac_dir/$ac_word; then 3951b305b0f1Sespie if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 3952b305b0f1Sespie ac_cv_path_MSGFMT="$ac_dir/$ac_word" 3953b305b0f1Sespie break 3954b305b0f1Sespie fi 3955b305b0f1Sespie fi 3956b305b0f1Sespie done 3957b305b0f1Sespie IFS="$ac_save_ifs" 3958b305b0f1Sespie test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 3959b305b0f1Sespie ;; 3960b305b0f1Sespieesac 3961b305b0f1Sespiefi 3962b305b0f1SespieMSGFMT="$ac_cv_path_MSGFMT" 3963b305b0f1Sespieif test -n "$MSGFMT"; then 3964b305b0f1Sespie echo "$ac_t""$MSGFMT" 1>&6 3965b305b0f1Sespieelse 3966b305b0f1Sespie echo "$ac_t""no" 1>&6 3967b305b0f1Sespiefi 3968b305b0f1Sespie if test "$MSGFMT" != "no"; then 3969b305b0f1Sespie for ac_func in dcgettext 3970b305b0f1Sespiedo 3971b305b0f1Sespieecho $ac_n "checking for $ac_func""... $ac_c" 1>&6 3972*007c2a45Smiodecho "configure:3973: checking for $ac_func" >&5 3973b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3974b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 3975b305b0f1Sespieelse 3976b305b0f1Sespie cat > conftest.$ac_ext <<EOF 3977*007c2a45Smiod#line 3978 "configure" 3978b305b0f1Sespie#include "confdefs.h" 3979b305b0f1Sespie/* System header to define __stub macros and hopefully few prototypes, 3980b305b0f1Sespie which can conflict with char $ac_func(); below. */ 3981b305b0f1Sespie#include <assert.h> 3982b305b0f1Sespie/* Override any gcc2 internal prototype to avoid an error. */ 3983b305b0f1Sespie/* We use char because int might match the return type of a gcc2 3984b305b0f1Sespie builtin and then its argument prototype would still apply. */ 3985b305b0f1Sespiechar $ac_func(); 3986b305b0f1Sespie 3987b305b0f1Sespieint main() { 3988b305b0f1Sespie 3989b305b0f1Sespie/* The GNU C library defines this for functions which it implements 3990b305b0f1Sespie to always fail with ENOSYS. Some functions are actually named 3991b305b0f1Sespie something starting with __ and the normal name is an alias. */ 3992b305b0f1Sespie#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3993b305b0f1Sespiechoke me 3994b305b0f1Sespie#else 3995b305b0f1Sespie$ac_func(); 3996b305b0f1Sespie#endif 3997b305b0f1Sespie 3998b305b0f1Sespie; return 0; } 3999b305b0f1SespieEOF 4000*007c2a45Smiodif { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4001b305b0f1Sespie rm -rf conftest* 4002b305b0f1Sespie eval "ac_cv_func_$ac_func=yes" 4003b305b0f1Sespieelse 4004b305b0f1Sespie echo "configure: failed program was:" >&5 4005b305b0f1Sespie cat conftest.$ac_ext >&5 4006b305b0f1Sespie rm -rf conftest* 4007b305b0f1Sespie eval "ac_cv_func_$ac_func=no" 4008b305b0f1Sespiefi 4009b305b0f1Sespierm -f conftest* 4010b305b0f1Sespiefi 4011b305b0f1Sespie 4012b305b0f1Sespieif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4013b305b0f1Sespie echo "$ac_t""yes" 1>&6 4014b305b0f1Sespie ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4015b305b0f1Sespie cat >> confdefs.h <<EOF 4016b305b0f1Sespie#define $ac_tr_func 1 4017b305b0f1SespieEOF 4018b305b0f1Sespie 4019b305b0f1Sespieelse 4020b305b0f1Sespie echo "$ac_t""no" 1>&6 4021b305b0f1Sespiefi 4022b305b0f1Sespiedone 4023b305b0f1Sespie 4024b305b0f1Sespie # Extract the first word of "gmsgfmt", so it can be a program name with args. 4025b305b0f1Sespieset dummy gmsgfmt; ac_word=$2 4026b305b0f1Sespieecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 4027*007c2a45Smiodecho "configure:4028: checking for $ac_word" >&5 4028b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 4029b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 4030b305b0f1Sespieelse 4031b305b0f1Sespie case "$GMSGFMT" in 4032b305b0f1Sespie /*) 4033b305b0f1Sespie ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4034b305b0f1Sespie ;; 4035b305b0f1Sespie ?:/*) 4036b305b0f1Sespie ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 4037b305b0f1Sespie ;; 4038b305b0f1Sespie *) 4039b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4040b305b0f1Sespie ac_dummy="$PATH" 4041b305b0f1Sespie for ac_dir in $ac_dummy; do 4042b305b0f1Sespie test -z "$ac_dir" && ac_dir=. 4043b305b0f1Sespie if test -f $ac_dir/$ac_word; then 4044b305b0f1Sespie ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 4045b305b0f1Sespie break 4046b305b0f1Sespie fi 4047b305b0f1Sespie done 4048b305b0f1Sespie IFS="$ac_save_ifs" 4049b305b0f1Sespie test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4050b305b0f1Sespie ;; 4051b305b0f1Sespieesac 4052b305b0f1Sespiefi 4053b305b0f1SespieGMSGFMT="$ac_cv_path_GMSGFMT" 4054b305b0f1Sespieif test -n "$GMSGFMT"; then 4055b305b0f1Sespie echo "$ac_t""$GMSGFMT" 1>&6 4056b305b0f1Sespieelse 4057b305b0f1Sespie echo "$ac_t""no" 1>&6 4058b305b0f1Sespiefi 4059b305b0f1Sespie 4060b305b0f1Sespie # Extract the first word of "xgettext", so it can be a program name with args. 4061b305b0f1Sespieset dummy xgettext; ac_word=$2 4062b305b0f1Sespieecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 4063*007c2a45Smiodecho "configure:4064: checking for $ac_word" >&5 4064b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 4065b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 4066b305b0f1Sespieelse 4067b305b0f1Sespie case "$XGETTEXT" in 4068b305b0f1Sespie /*) 4069b305b0f1Sespie ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4070b305b0f1Sespie ;; 4071b305b0f1Sespie *) 4072b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 4073b305b0f1Sespie for ac_dir in $PATH; do 4074b305b0f1Sespie test -z "$ac_dir" && ac_dir=. 4075b305b0f1Sespie if test -f $ac_dir/$ac_word; then 4076b305b0f1Sespie if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 4077b305b0f1Sespie ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 4078b305b0f1Sespie break 4079b305b0f1Sespie fi 4080b305b0f1Sespie fi 4081b305b0f1Sespie done 4082b305b0f1Sespie IFS="$ac_save_ifs" 4083b305b0f1Sespie test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4084b305b0f1Sespie ;; 4085b305b0f1Sespieesac 4086b305b0f1Sespiefi 4087b305b0f1SespieXGETTEXT="$ac_cv_path_XGETTEXT" 4088b305b0f1Sespieif test -n "$XGETTEXT"; then 4089b305b0f1Sespie echo "$ac_t""$XGETTEXT" 1>&6 4090b305b0f1Sespieelse 4091b305b0f1Sespie echo "$ac_t""no" 1>&6 4092b305b0f1Sespiefi 4093b305b0f1Sespie 4094b305b0f1Sespie cat > conftest.$ac_ext <<EOF 4095*007c2a45Smiod#line 4096 "configure" 4096b305b0f1Sespie#include "confdefs.h" 4097b305b0f1Sespie 4098b305b0f1Sespieint main() { 4099b305b0f1Sespieextern int _nl_msg_cat_cntr; 4100b305b0f1Sespie return _nl_msg_cat_cntr 4101b305b0f1Sespie; return 0; } 4102b305b0f1SespieEOF 4103*007c2a45Smiodif { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4104b305b0f1Sespie rm -rf conftest* 4105b305b0f1Sespie CATOBJEXT=.gmo 4106b305b0f1Sespie DATADIRNAME=share 4107b305b0f1Sespieelse 4108b305b0f1Sespie echo "configure: failed program was:" >&5 4109b305b0f1Sespie cat conftest.$ac_ext >&5 4110b305b0f1Sespie rm -rf conftest* 4111b305b0f1Sespie CATOBJEXT=.mo 4112b305b0f1Sespie DATADIRNAME=lib 4113b305b0f1Sespiefi 4114b305b0f1Sespierm -f conftest* 4115b305b0f1Sespie INSTOBJEXT=.mo 4116b305b0f1Sespie fi 4117b305b0f1Sespie fi 4118b305b0f1Sespie 4119b305b0f1Sespieelse 4120b305b0f1Sespie echo "$ac_t""no" 1>&6 4121b305b0f1Sespiefi 4122b305b0f1Sespie 4123b305b0f1Sespie 4124b305b0f1Sespie 4125b305b0f1Sespie if test "$CATOBJEXT" = "NONE"; then 4126b305b0f1Sespie nls_cv_use_gnu_gettext=yes 4127b305b0f1Sespie fi 4128b305b0f1Sespie fi 4129b305b0f1Sespie 4130b305b0f1Sespie if test "$nls_cv_use_gnu_gettext" = "yes"; then 4131b305b0f1Sespie INTLOBJS="\$(GETTOBJS)" 4132b305b0f1Sespie # Extract the first word of "msgfmt", so it can be a program name with args. 4133b305b0f1Sespieset dummy msgfmt; ac_word=$2 4134b305b0f1Sespieecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 4135*007c2a45Smiodecho "configure:4136: checking for $ac_word" >&5 4136b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 4137b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 4138b305b0f1Sespieelse 4139b305b0f1Sespie case "$MSGFMT" in 4140b305b0f1Sespie /*) 4141b305b0f1Sespie ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4142b305b0f1Sespie ;; 4143b305b0f1Sespie *) 4144b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 4145b305b0f1Sespie for ac_dir in $PATH; do 4146b305b0f1Sespie test -z "$ac_dir" && ac_dir=. 4147b305b0f1Sespie if test -f $ac_dir/$ac_word; then 4148b305b0f1Sespie if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 4149b305b0f1Sespie ac_cv_path_MSGFMT="$ac_dir/$ac_word" 4150b305b0f1Sespie break 4151b305b0f1Sespie fi 4152b305b0f1Sespie fi 4153b305b0f1Sespie done 4154b305b0f1Sespie IFS="$ac_save_ifs" 4155b305b0f1Sespie test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 4156b305b0f1Sespie ;; 4157b305b0f1Sespieesac 4158b305b0f1Sespiefi 4159b305b0f1SespieMSGFMT="$ac_cv_path_MSGFMT" 4160b305b0f1Sespieif test -n "$MSGFMT"; then 4161b305b0f1Sespie echo "$ac_t""$MSGFMT" 1>&6 4162b305b0f1Sespieelse 4163b305b0f1Sespie echo "$ac_t""no" 1>&6 4164b305b0f1Sespiefi 4165b305b0f1Sespie 4166b305b0f1Sespie # Extract the first word of "gmsgfmt", so it can be a program name with args. 4167b305b0f1Sespieset dummy gmsgfmt; ac_word=$2 4168b305b0f1Sespieecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 4169*007c2a45Smiodecho "configure:4170: checking for $ac_word" >&5 4170b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 4171b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 4172b305b0f1Sespieelse 4173b305b0f1Sespie case "$GMSGFMT" in 4174b305b0f1Sespie /*) 4175b305b0f1Sespie ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4176b305b0f1Sespie ;; 4177b305b0f1Sespie ?:/*) 4178b305b0f1Sespie ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 4179b305b0f1Sespie ;; 4180b305b0f1Sespie *) 4181b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4182b305b0f1Sespie ac_dummy="$PATH" 4183b305b0f1Sespie for ac_dir in $ac_dummy; do 4184b305b0f1Sespie test -z "$ac_dir" && ac_dir=. 4185b305b0f1Sespie if test -f $ac_dir/$ac_word; then 4186b305b0f1Sespie ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 4187b305b0f1Sespie break 4188b305b0f1Sespie fi 4189b305b0f1Sespie done 4190b305b0f1Sespie IFS="$ac_save_ifs" 4191b305b0f1Sespie test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4192b305b0f1Sespie ;; 4193b305b0f1Sespieesac 4194b305b0f1Sespiefi 4195b305b0f1SespieGMSGFMT="$ac_cv_path_GMSGFMT" 4196b305b0f1Sespieif test -n "$GMSGFMT"; then 4197b305b0f1Sespie echo "$ac_t""$GMSGFMT" 1>&6 4198b305b0f1Sespieelse 4199b305b0f1Sespie echo "$ac_t""no" 1>&6 4200b305b0f1Sespiefi 4201b305b0f1Sespie 4202b305b0f1Sespie # Extract the first word of "xgettext", so it can be a program name with args. 4203b305b0f1Sespieset dummy xgettext; ac_word=$2 4204b305b0f1Sespieecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 4205*007c2a45Smiodecho "configure:4206: checking for $ac_word" >&5 4206b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 4207b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 4208b305b0f1Sespieelse 4209b305b0f1Sespie case "$XGETTEXT" in 4210b305b0f1Sespie /*) 4211b305b0f1Sespie ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4212b305b0f1Sespie ;; 4213b305b0f1Sespie *) 4214b305b0f1Sespie IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 4215b305b0f1Sespie for ac_dir in $PATH; do 4216b305b0f1Sespie test -z "$ac_dir" && ac_dir=. 4217b305b0f1Sespie if test -f $ac_dir/$ac_word; then 4218b305b0f1Sespie if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 4219b305b0f1Sespie ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 4220b305b0f1Sespie break 4221b305b0f1Sespie fi 4222b305b0f1Sespie fi 4223b305b0f1Sespie done 4224b305b0f1Sespie IFS="$ac_save_ifs" 4225b305b0f1Sespie test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4226b305b0f1Sespie ;; 4227b305b0f1Sespieesac 4228b305b0f1Sespiefi 4229b305b0f1SespieXGETTEXT="$ac_cv_path_XGETTEXT" 4230b305b0f1Sespieif test -n "$XGETTEXT"; then 4231b305b0f1Sespie echo "$ac_t""$XGETTEXT" 1>&6 4232b305b0f1Sespieelse 4233b305b0f1Sespie echo "$ac_t""no" 1>&6 4234b305b0f1Sespiefi 4235b305b0f1Sespie 4236b305b0f1Sespie 4237b305b0f1Sespie USE_INCLUDED_LIBINTL=yes 4238b305b0f1Sespie CATOBJEXT=.gmo 4239b305b0f1Sespie INSTOBJEXT=.mo 4240b305b0f1Sespie DATADIRNAME=share 4241b305b0f1Sespie INTLDEPS='$(top_builddir)/../intl/libintl.a' 4242b305b0f1Sespie INTLLIBS=$INTLDEPS 4243b305b0f1Sespie LIBS=`echo $LIBS | sed -e 's/-lintl//'` 4244b305b0f1Sespie nls_cv_header_intl=libintl.h 4245b305b0f1Sespie nls_cv_header_libgt=libgettext.h 4246b305b0f1Sespie fi 4247b305b0f1Sespie 4248b305b0f1Sespie if test "$XGETTEXT" != ":"; then 4249b305b0f1Sespie if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 4250b305b0f1Sespie : ; 4251b305b0f1Sespie else 4252b305b0f1Sespie echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 4253b305b0f1Sespie XGETTEXT=":" 4254b305b0f1Sespie fi 4255b305b0f1Sespie fi 4256b305b0f1Sespie 4257b305b0f1Sespie # We need to process the po/ directory. 4258b305b0f1Sespie POSUB=po 4259b305b0f1Sespie else 4260b305b0f1Sespie DATADIRNAME=share 4261b305b0f1Sespie nls_cv_header_intl=libintl.h 4262b305b0f1Sespie nls_cv_header_libgt=libgettext.h 4263b305b0f1Sespie fi 4264b305b0f1Sespie 4265b305b0f1Sespie # If this is used in GNU gettext we have to set USE_NLS to `yes' 4266b305b0f1Sespie # because some of the sources are only built for this goal. 4267b305b0f1Sespie if test "$PACKAGE" = gettext; then 4268b305b0f1Sespie USE_NLS=yes 4269b305b0f1Sespie USE_INCLUDED_LIBINTL=yes 4270b305b0f1Sespie fi 4271b305b0f1Sespie 4272b305b0f1Sespie for lang in $ALL_LINGUAS; do 4273b305b0f1Sespie GMOFILES="$GMOFILES $lang.gmo" 4274b305b0f1Sespie POFILES="$POFILES $lang.po" 4275b305b0f1Sespie done 4276b305b0f1Sespie 4277b305b0f1Sespie 4278b305b0f1Sespie 4279b305b0f1Sespie 4280b305b0f1Sespie 4281b305b0f1Sespie 4282b305b0f1Sespie 4283b305b0f1Sespie 4284b305b0f1Sespie 4285b305b0f1Sespie 4286b305b0f1Sespie 4287b305b0f1Sespie 4288b305b0f1Sespie 4289b305b0f1Sespie 4290b305b0f1Sespie if test "x$CATOBJEXT" != "x"; then 4291b305b0f1Sespie if test "x$ALL_LINGUAS" = "x"; then 4292b305b0f1Sespie LINGUAS= 4293b305b0f1Sespie else 4294b305b0f1Sespie echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 4295*007c2a45Smiodecho "configure:4296: checking for catalogs to be installed" >&5 4296b305b0f1Sespie NEW_LINGUAS= 4297b305b0f1Sespie for lang in ${LINGUAS=$ALL_LINGUAS}; do 4298b305b0f1Sespie case "$ALL_LINGUAS" in 4299b305b0f1Sespie *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 4300b305b0f1Sespie esac 4301b305b0f1Sespie done 4302b305b0f1Sespie LINGUAS=$NEW_LINGUAS 4303b305b0f1Sespie echo "$ac_t""$LINGUAS" 1>&6 4304b305b0f1Sespie fi 4305b305b0f1Sespie 4306b305b0f1Sespie if test -n "$LINGUAS"; then 4307b305b0f1Sespie for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 4308b305b0f1Sespie fi 4309b305b0f1Sespie fi 4310b305b0f1Sespie 4311b305b0f1Sespie if test $ac_cv_header_locale_h = yes; then 4312b305b0f1Sespie INCLUDE_LOCALE_H="#include <locale.h>" 4313b305b0f1Sespie else 4314b305b0f1Sespie INCLUDE_LOCALE_H="\ 4315b305b0f1Sespie/* The system does not provide the header <locale.h>. Take care yourself. */" 4316b305b0f1Sespie fi 4317b305b0f1Sespie 4318b305b0f1Sespie 4319b305b0f1Sespie if test -f $srcdir/po2tbl.sed.in; then 4320b305b0f1Sespie if test "$CATOBJEXT" = ".cat"; then 4321b305b0f1Sespie ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` 4322b305b0f1Sespieecho $ac_n "checking for linux/version.h""... $ac_c" 1>&6 4323*007c2a45Smiodecho "configure:4324: checking for linux/version.h" >&5 4324b305b0f1Sespieif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4325b305b0f1Sespie echo $ac_n "(cached) $ac_c" 1>&6 4326b305b0f1Sespieelse 4327b305b0f1Sespie cat > conftest.$ac_ext <<EOF 4328*007c2a45Smiod#line 4329 "configure" 4329b305b0f1Sespie#include "confdefs.h" 4330b305b0f1Sespie#include <linux/version.h> 4331b305b0f1SespieEOF 4332b305b0f1Sespieac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4333*007c2a45Smiod{ (eval echo configure:4334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4334b305b0f1Sespieac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4335b305b0f1Sespieif test -z "$ac_err"; then 4336b305b0f1Sespie rm -rf conftest* 4337b305b0f1Sespie eval "ac_cv_header_$ac_safe=yes" 4338b305b0f1Sespieelse 4339b305b0f1Sespie echo "$ac_err" >&5 4340b305b0f1Sespie echo "configure: failed program was:" >&5 4341b305b0f1Sespie cat conftest.$ac_ext >&5 4342b305b0f1Sespie rm -rf conftest* 4343b305b0f1Sespie eval "ac_cv_header_$ac_safe=no" 4344b305b0f1Sespiefi 4345b305b0f1Sespierm -f conftest* 4346b305b0f1Sespiefi 4347b305b0f1Sespieif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4348b305b0f1Sespie echo "$ac_t""yes" 1>&6 4349b305b0f1Sespie msgformat=linux 4350b305b0f1Sespieelse 4351b305b0f1Sespie echo "$ac_t""no" 1>&6 4352b305b0f1Sespiemsgformat=xopen 4353b305b0f1Sespiefi 4354b305b0f1Sespie 4355b305b0f1Sespie 4356b305b0f1Sespie sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed 4357b305b0f1Sespie fi 4358b305b0f1Sespie sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 4359b305b0f1Sespie $srcdir/po2tbl.sed.in > po2tbl.sed 4360b305b0f1Sespie fi 4361b305b0f1Sespie 4362b305b0f1Sespie if test "$PACKAGE" = "gettext"; then 4363b305b0f1Sespie GT_NO="#NO#" 4364b305b0f1Sespie GT_YES= 4365b305b0f1Sespie else 4366b305b0f1Sespie GT_NO= 4367b305b0f1Sespie GT_YES="#YES#" 4368b305b0f1Sespie fi 4369b305b0f1Sespie 4370b305b0f1Sespie 4371b305b0f1Sespie 4372b305b0f1Sespie MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" 4373b305b0f1Sespie 4374b305b0f1Sespie 4375b305b0f1Sespie l= 4376b305b0f1Sespie 4377b305b0f1Sespie 4378c074d1c9Sdrahn if test -f $srcdir/po/POTFILES.in; then 4379b305b0f1Sespie test -d po || mkdir po 4380b305b0f1Sespie if test "x$srcdir" != "x."; then 4381b305b0f1Sespie if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 4382b305b0f1Sespie posrcprefix="$srcdir/" 4383b305b0f1Sespie else 4384b305b0f1Sespie posrcprefix="../$srcdir/" 4385b305b0f1Sespie fi 4386b305b0f1Sespie else 4387b305b0f1Sespie posrcprefix="../" 4388b305b0f1Sespie fi 4389b305b0f1Sespie rm -f po/POTFILES 4390b305b0f1Sespie sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 4391b305b0f1Sespie < $srcdir/po/POTFILES.in > po/POTFILES 4392b305b0f1Sespie fi 4393b305b0f1Sespie 4394b305b0f1Sespie 4395b305b0f1Sespie. ${srcdir}/../bfd/configure.host 4396b305b0f1Sespie 4397c074d1c9Sdrahn# Put a plausible default for CC_FOR_BUILD in Makefile. 4398c074d1c9Sdrahnif test -z "$CC_FOR_BUILD"; then 4399c074d1c9Sdrahn if test "x$cross_compiling" = "xno"; then 4400c074d1c9Sdrahn CC_FOR_BUILD='$(CC)' 4401c074d1c9Sdrahn else 4402c074d1c9Sdrahn CC_FOR_BUILD=gcc 4403c074d1c9Sdrahn fi 4404c074d1c9Sdrahnfi 4405c074d1c9Sdrahn 4406c074d1c9Sdrahn# Also set EXEEXT_FOR_BUILD. 4407c074d1c9Sdrahnif test "x$cross_compiling" = "xno"; then 4408c074d1c9Sdrahn EXEEXT_FOR_BUILD='$(EXEEXT)' 4409c074d1c9Sdrahnelse 4410c074d1c9Sdrahn echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6 4411*007c2a45Smiodecho "configure:4412: checking for build system executable suffix" >&5 4412c074d1c9Sdrahnif eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then 4413c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 4414c074d1c9Sdrahnelse 4415c074d1c9Sdrahn rm -f conftest* 4416c074d1c9Sdrahn echo 'int main () { return 0; }' > conftest.c 4417c074d1c9Sdrahn bfd_cv_build_exeext= 4418c074d1c9Sdrahn ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 4419c074d1c9Sdrahn for file in conftest.*; do 4420c074d1c9Sdrahn case $file in 4421c074d1c9Sdrahn *.c | *.o | *.obj | *.ilk | *.pdb) ;; 4422c074d1c9Sdrahn *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4423c074d1c9Sdrahn esac 4424c074d1c9Sdrahn done 4425c074d1c9Sdrahn rm -f conftest* 4426c074d1c9Sdrahn test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 4427c074d1c9Sdrahnfi 4428c074d1c9Sdrahn 4429c074d1c9Sdrahnecho "$ac_t""$bfd_cv_build_exeext" 1>&6 4430c074d1c9Sdrahn EXEEXT_FOR_BUILD="" 4431c074d1c9Sdrahn test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 4432c074d1c9Sdrahnfi 4433c074d1c9Sdrahn 4434c074d1c9Sdrahn 4435b305b0f1Sespie 44362159047fSniklas# Find a good install program. We prefer a C program (faster), 44372159047fSniklas# so one script is as good as another. But avoid the broken or 44382159047fSniklas# incompatible versions: 44392159047fSniklas# SysV /etc/install, /usr/sbin/install 44402159047fSniklas# SunOS /usr/etc/install 44412159047fSniklas# IRIX /sbin/install 44422159047fSniklas# AIX /bin/install 4443b305b0f1Sespie# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 44442159047fSniklas# AFS /usr/afsws/bin/install, which mishandles nonexistent args 44452159047fSniklas# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 44462159047fSniklas# ./install, which can be erroneously created by make from ./install.sh. 44472159047fSniklasecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 4448*007c2a45Smiodecho "configure:4449: checking for a BSD compatible install" >&5 44492159047fSniklasif test -z "$INSTALL"; then 44502159047fSniklasif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 44512159047fSniklas echo $ac_n "(cached) $ac_c" 1>&6 44522159047fSniklaselse 4453b305b0f1Sespie IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 44542159047fSniklas for ac_dir in $PATH; do 44552159047fSniklas # Account for people who put trailing slashes in PATH elements. 44562159047fSniklas case "$ac_dir/" in 44572159047fSniklas /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 44582159047fSniklas *) 44592159047fSniklas # OSF1 and SCO ODT 3.0 have their own names for install. 4460b305b0f1Sespie # Don't use installbsd from OSF since it installs stuff as root 4461b305b0f1Sespie # by default. 4462b305b0f1Sespie for ac_prog in ginstall scoinst install; do 44632159047fSniklas if test -f $ac_dir/$ac_prog; then 44642159047fSniklas if test $ac_prog = install && 44652159047fSniklas grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 44662159047fSniklas # AIX install. It has an incompatible calling convention. 44672159047fSniklas : 44682159047fSniklas else 44692159047fSniklas ac_cv_path_install="$ac_dir/$ac_prog -c" 44702159047fSniklas break 2 44712159047fSniklas fi 44722159047fSniklas fi 44732159047fSniklas done 44742159047fSniklas ;; 44752159047fSniklas esac 44762159047fSniklas done 4477b305b0f1Sespie IFS="$ac_save_IFS" 4478c88b1d6cSniklas 44792159047fSniklasfi 4480c88b1d6cSniklas if test "${ac_cv_path_install+set}" = set; then 44812159047fSniklas INSTALL="$ac_cv_path_install" 4482c88b1d6cSniklas else 4483c88b1d6cSniklas # As a last resort, use the slow shell script. We don't cache a 4484c88b1d6cSniklas # path for INSTALL within a source directory, because that will 4485c88b1d6cSniklas # break other packages using the cache if that directory is 4486c88b1d6cSniklas # removed, or if the path is relative. 4487c88b1d6cSniklas INSTALL="$ac_install_sh" 4488c88b1d6cSniklas fi 44892159047fSniklasfi 44902159047fSniklasecho "$ac_t""$INSTALL" 1>&6 44912159047fSniklas 44922159047fSniklas# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 44932159047fSniklas# It thinks the first close brace ends the variable substitution. 44942159047fSniklastest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 44952159047fSniklas 4496b305b0f1Sespietest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 4497b305b0f1Sespie 44982159047fSniklastest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 44992159047fSniklas 45002159047fSniklas 4501b305b0f1Sespiefor ac_hdr in string.h strings.h stdlib.h 45022159047fSniklasdo 4503b305b0f1Sespieac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 45042159047fSniklasecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4505*007c2a45Smiodecho "configure:4506: checking for $ac_hdr" >&5 45062159047fSniklasif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 45072159047fSniklas echo $ac_n "(cached) $ac_c" 1>&6 45082159047fSniklaselse 45092159047fSniklas cat > conftest.$ac_ext <<EOF 4510*007c2a45Smiod#line 4511 "configure" 45112159047fSniklas#include "confdefs.h" 45122159047fSniklas#include <$ac_hdr> 45132159047fSniklasEOF 4514c88b1d6cSniklasac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4515*007c2a45Smiod{ (eval echo configure:4516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4516b305b0f1Sespieac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 45172159047fSniklasif test -z "$ac_err"; then 45182159047fSniklas rm -rf conftest* 45192159047fSniklas eval "ac_cv_header_$ac_safe=yes" 45202159047fSniklaselse 45212159047fSniklas echo "$ac_err" >&5 4522b305b0f1Sespie echo "configure: failed program was:" >&5 4523b305b0f1Sespie cat conftest.$ac_ext >&5 45242159047fSniklas rm -rf conftest* 45252159047fSniklas eval "ac_cv_header_$ac_safe=no" 45262159047fSniklasfi 45272159047fSniklasrm -f conftest* 45282159047fSniklasfi 45292159047fSniklasif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 45302159047fSniklas echo "$ac_t""yes" 1>&6 4531b305b0f1Sespie ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 45322159047fSniklas cat >> confdefs.h <<EOF 45332159047fSniklas#define $ac_tr_hdr 1 45342159047fSniklasEOF 45352159047fSniklas 45362159047fSniklaselse 45372159047fSniklas echo "$ac_t""no" 1>&6 45382159047fSniklasfi 45392159047fSniklasdone 45402159047fSniklas 45412159047fSniklas 4542b55d4692Sfgschcgen_maint=no 4543b55d4692Sfgschcgendir='$(srcdir)/../cgen' 4544b55d4692Sfgsch 4545b55d4692Sfgsch# Check whether --enable-cgen-maint or --disable-cgen-maint was given. 4546b55d4692Sfgschif test "${enable_cgen_maint+set}" = set; then 4547b55d4692Sfgsch enableval="$enable_cgen_maint" 4548b55d4692Sfgsch case "${enableval}" in 4549b55d4692Sfgsch yes) cgen_maint=yes ;; 4550b55d4692Sfgsch no) cgen_maint=no ;; 4551b55d4692Sfgsch *) 4552b55d4692Sfgsch # argument is cgen install directory (not implemented yet). 4553b55d4692Sfgsch # Having a `share' directory might be more appropriate for the .scm, 4554b55d4692Sfgsch # .cpu, etc. files. 4555b55d4692Sfgsch cgen_maint=yes 4556b55d4692Sfgsch cgendir=${cgen_maint}/lib/cgen 4557b55d4692Sfgsch ;; 4558b55d4692Sfgschesac 4559b55d4692Sfgschfi 4560b55d4692Sfgsch 4561b55d4692Sfgsch 4562b55d4692Sfgschif test x${cgen_maint} = xyes; then 4563b55d4692Sfgsch CGEN_MAINT_TRUE= 4564b55d4692Sfgsch CGEN_MAINT_FALSE='#' 4565b55d4692Sfgschelse 4566b55d4692Sfgsch CGEN_MAINT_TRUE='#' 4567b55d4692Sfgsch CGEN_MAINT_FALSE= 4568b55d4692Sfgschfi 4569b55d4692Sfgsch 4570b305b0f1Sespie 4571b305b0f1Sespieusing_cgen=no 4572b305b0f1Sespie 4573b305b0f1Sespie# Horrible hacks to build DLLs on Windows. 4574b305b0f1SespieWIN32LDFLAGS= 4575b305b0f1SespieWIN32LIBADD= 4576b305b0f1Sespiecase "${host}" in 4577b305b0f1Sespie*-*-cygwin*) 4578b305b0f1Sespie if test "$enable_shared" = "yes"; then 4579b305b0f1Sespie WIN32LDFLAGS="-no-undefined" 4580b305b0f1Sespie WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" 4581b305b0f1Sespie fi 4582b305b0f1Sespie ;; 4583b305b0f1Sespieesac 4584b305b0f1Sespie 4585b305b0f1Sespie 4586b305b0f1Sespie 45872159047fSniklas# target-specific stuff: 45882159047fSniklas 45892159047fSniklas# Canonicalize the secondary target names. 45902159047fSniklasif test -n "$enable_targets" ; then 45912159047fSniklas for targ in `echo $enable_targets | sed 's/,/ /g'` 45922159047fSniklas do 4593b305b0f1Sespie result=`$ac_config_sub $targ 2>/dev/null` 45942159047fSniklas if test -n "$result" ; then 45952159047fSniklas canon_targets="$canon_targets $result" 45962159047fSniklas else 45972159047fSniklas # Allow targets that config.sub doesn't recognize, like "all". 45982159047fSniklas canon_targets="$canon_targets $targ" 45992159047fSniklas fi 46002159047fSniklas done 46012159047fSniklasfi 46022159047fSniklas 46032159047fSniklasall_targets=false 46042159047fSniklasselarchs= 46052159047fSniklasfor targ in $target $canon_targets 46062159047fSniklasdo 46072159047fSniklas if test "x$targ" = "xall" ; then 46082159047fSniklas all_targets=true 46092159047fSniklas else 46102159047fSniklas . $srcdir/../bfd/config.bfd 46112159047fSniklas selarchs="$selarchs $targ_archs" 46122159047fSniklas fi 46132159047fSniklasdone 46142159047fSniklas 4615b305b0f1Sespie# Utility var, documents generic cgen support files. 4616b305b0f1Sespie 4617b305b0f1Sespiecgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo" 4618b305b0f1Sespie 46192159047fSniklas# We don't do any links based on the target system, just makefile config. 46202159047fSniklas 46212159047fSniklasif test x${all_targets} = xfalse ; then 46222159047fSniklas 46232159047fSniklas # Target architecture .o files. 46242159047fSniklas ta= 46252159047fSniklas 46262159047fSniklas for arch in $selarchs 46272159047fSniklas do 46282159047fSniklas ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` 46292159047fSniklas archdefs="$archdefs -DARCH_$ad" 46302159047fSniklas case "$arch" in 4631b305b0f1Sespie bfd_a29k_arch) ta="$ta a29k-dis.lo" ;; 46322159047fSniklas bfd_alliant_arch) ;; 4633b305b0f1Sespie bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; 4634b55d4692Sfgsch bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; 4635b305b0f1Sespie bfd_arm_arch) ta="$ta arm-dis.lo" ;; 4636b305b0f1Sespie bfd_avr_arch) ta="$ta avr-dis.lo" ;; 46372159047fSniklas bfd_convex_arch) ;; 4638b55d4692Sfgsch bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;; 4639b305b0f1Sespie bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; 4640b305b0f1Sespie bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; 4641c074d1c9Sdrahn bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; 4642b305b0f1Sespie bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; 4643b305b0f1Sespie bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; 4644b305b0f1Sespie bfd_h8500_arch) ta="$ta h8500-dis.lo" ;; 4645b305b0f1Sespie bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; 4646b305b0f1Sespie bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;; 4647b305b0f1Sespie bfd_i386_arch) ta="$ta i386-dis.lo" ;; 4648b55d4692Sfgsch bfd_i860_arch) ta="$ta i860-dis.lo" ;; 4649b305b0f1Sespie bfd_i960_arch) ta="$ta i960-dis.lo" ;; 4650b55d4692Sfgsch bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; 4651c074d1c9Sdrahn bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; 4652c074d1c9Sdrahn bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; 4653b305b0f1Sespie bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; 4654b55d4692Sfgsch bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 4655b55d4692Sfgsch bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 4656b305b0f1Sespie bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; 4657b305b0f1Sespie bfd_m88k_arch) ta="$ta m88k-dis.lo" ;; 4658b305b0f1Sespie bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; 4659b305b0f1Sespie bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;; 4660c074d1c9Sdrahn bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; 4661b305b0f1Sespie bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; 4662b305b0f1Sespie bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; 4663c074d1c9Sdrahn bfd_msp430_arch) ta="$ta msp430-dis.lo" ;; 4664b305b0f1Sespie bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; 4665c074d1c9Sdrahn bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;; 4666c074d1c9Sdrahn bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;; 4667c074d1c9Sdrahn bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; 4668b305b0f1Sespie bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; 4669b305b0f1Sespie bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 4670b55d4692Sfgsch bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 46712159047fSniklas bfd_pyramid_arch) ;; 46722159047fSniklas bfd_romp_arch) ;; 4673b305b0f1Sespie bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 4674c074d1c9Sdrahn bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; 4675b55d4692Sfgsch bfd_sh_arch) 4676c074d1c9Sdrahn # We can't decide what we want just from the CPU family. 4677c074d1c9Sdrahn # We want SH5 support unless a specific version of sh is 4678c074d1c9Sdrahn # specified, as in sh3-elf, sh3b-linux-gnu, etc. 4679c074d1c9Sdrahn # Include it just for ELF targets, since the SH5 bfd:s are ELF only. 4680c074d1c9Sdrahn for t in $target $canon_targets; do 4681c074d1c9Sdrahn case $t in 4682c074d1c9Sdrahn all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \ 4683c074d1c9Sdrahn sh-*-linux* | shl-*-linux*) 4684c074d1c9Sdrahn ta="$ta sh64-dis.lo sh64-opc.lo" 4685c074d1c9Sdrahn archdefs="$archdefs -DINCLUDE_SHMEDIA" 4686c074d1c9Sdrahn break;; 4687c074d1c9Sdrahn esac; 4688c074d1c9Sdrahn done 4689b55d4692Sfgsch ta="$ta sh-dis.lo" ;; 4690b305b0f1Sespie bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; 46912159047fSniklas bfd_tahoe_arch) ;; 4692b305b0f1Sespie bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; 4693c074d1c9Sdrahn bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; 4694b55d4692Sfgsch bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; 4695b305b0f1Sespie bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;; 4696b305b0f1Sespie bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 4697b305b0f1Sespie bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 4698b305b0f1Sespie bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 4699b305b0f1Sespie bfd_vax_arch) ta="$ta vax-dis.lo" ;; 4700b305b0f1Sespie bfd_w65_arch) ta="$ta w65-dis.lo" ;; 47012159047fSniklas bfd_we32k_arch) ;; 4702c074d1c9Sdrahn bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; 4703c074d1c9Sdrahn bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; 4704b305b0f1Sespie bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; 4705c074d1c9Sdrahn bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; 47062159047fSniklas 47072159047fSniklas "") ;; 47082159047fSniklas *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;; 47092159047fSniklas esac 47102159047fSniklas done 47112159047fSniklas 4712b305b0f1Sespie if test $using_cgen = yes ; then 4713b305b0f1Sespie ta="$ta $cgen_files" 4714b305b0f1Sespie fi 4715b305b0f1Sespie 47162159047fSniklas # Weed out duplicate .o files. 47172159047fSniklas f="" 47182159047fSniklas for i in $ta ; do 47192159047fSniklas case " $f " in 47202159047fSniklas *" $i "*) ;; 47212159047fSniklas *) f="$f $i" ;; 47222159047fSniklas esac 47232159047fSniklas done 47242159047fSniklas ta="$f" 47252159047fSniklas 47262159047fSniklas # And duplicate -D flags. 47272159047fSniklas f="" 47282159047fSniklas for i in $archdefs ; do 47292159047fSniklas case " $f " in 47302159047fSniklas *" $i "*) ;; 47312159047fSniklas *) f="$f $i" ;; 47322159047fSniklas esac 47332159047fSniklas done 47342159047fSniklas archdefs="$f" 47352159047fSniklas 47362159047fSniklas BFD_MACHINES="$ta" 47372159047fSniklas 47382159047fSniklaselse # all_targets is true 47392159047fSniklas archdefs=-DARCH_all 47402159047fSniklas BFD_MACHINES='$(ALL_MACHINES)' 47412159047fSniklasfi 47422159047fSniklas 47432159047fSniklas 47442159047fSniklas 47452159047fSniklas 47462159047fSniklastrap '' 1 2 15 47472159047fSniklascat > confcache <<\EOF 47482159047fSniklas# This file is a shell script that caches the results of configure 47492159047fSniklas# tests run on this system so they can be shared between configure 47502159047fSniklas# scripts and configure runs. It is not useful on other systems. 47512159047fSniklas# If it contains results you don't want to keep, you may remove or edit it. 47522159047fSniklas# 47532159047fSniklas# By default, configure uses ./config.cache as the cache file, 47542159047fSniklas# creating it if it does not exist already. You can give configure 47552159047fSniklas# the --cache-file=FILE option to use a different cache file; that is 47562159047fSniklas# what configure does when it calls configure scripts in 47572159047fSniklas# subdirectories, so they share the cache. 47582159047fSniklas# Giving --cache-file=/dev/null disables caching, for debugging configure. 47592159047fSniklas# config.status only pays attention to the cache file if you give it the 47602159047fSniklas# --recheck option to rerun configure. 47612159047fSniklas# 47622159047fSniklasEOF 4763b305b0f1Sespie# The following way of writing the cache mishandles newlines in values, 4764b305b0f1Sespie# but we know of no workaround that is simple, portable, and efficient. 4765b305b0f1Sespie# So, don't put newlines in cache variables' values. 47662159047fSniklas# Ultrix sh set writes to stderr and can't be redirected directly, 47672159047fSniklas# and sets the high bit in the cache file unless we assign to the vars. 47682159047fSniklas(set) 2>&1 | 4769b305b0f1Sespie case `(ac_space=' '; set | grep ac_space) 2>&1` in 4770b305b0f1Sespie *ac_space=\ *) 4771b305b0f1Sespie # `set' does not quote correctly, so add quotes (double-quote substitution 4772b305b0f1Sespie # turns \\\\ into \\, and sed turns \\ into \). 4773b305b0f1Sespie sed -n \ 4774b305b0f1Sespie -e "s/'/'\\\\''/g" \ 4775b305b0f1Sespie -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4776b305b0f1Sespie ;; 4777b305b0f1Sespie *) 4778b305b0f1Sespie # `set' quotes correctly as required by POSIX, so do not add quotes. 4779b305b0f1Sespie sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4780b305b0f1Sespie ;; 4781b305b0f1Sespie esac >> confcache 47822159047fSniklasif cmp -s $cache_file confcache; then 47832159047fSniklas : 47842159047fSniklaselse 47852159047fSniklas if test -w $cache_file; then 47862159047fSniklas echo "updating cache $cache_file" 47872159047fSniklas cat confcache > $cache_file 47882159047fSniklas else 47892159047fSniklas echo "not updating unwritable cache $cache_file" 47902159047fSniklas fi 47912159047fSniklasfi 47922159047fSniklasrm -f confcache 47932159047fSniklas 47942159047fSniklastrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 47952159047fSniklas 47962159047fSniklastest "x$prefix" = xNONE && prefix=$ac_default_prefix 47972159047fSniklas# Let make expand exec_prefix. 47982159047fSniklastest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 47992159047fSniklas 48002159047fSniklas# Any assignment to VPATH causes Sun make to only execute 48012159047fSniklas# the first set of double-colon rules, so remove it if not needed. 48022159047fSniklas# If there is a colon in the path, we need to keep it. 48032159047fSniklasif test "x$srcdir" = x.; then 48042159047fSniklas ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 48052159047fSniklasfi 48062159047fSniklas 48072159047fSniklastrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 48082159047fSniklas 48092159047fSniklasDEFS=-DHAVE_CONFIG_H 48102159047fSniklas 48112159047fSniklas# Without the "./", some shells look in PATH for config.status. 48122159047fSniklas: ${CONFIG_STATUS=./config.status} 48132159047fSniklas 48142159047fSniklasecho creating $CONFIG_STATUS 48152159047fSniklasrm -f $CONFIG_STATUS 48162159047fSniklascat > $CONFIG_STATUS <<EOF 48172159047fSniklas#! /bin/sh 48182159047fSniklas# Generated automatically by configure. 48192159047fSniklas# Run this file to recreate the current configuration. 48202159047fSniklas# This directory was configured as follows, 48212159047fSniklas# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 48222159047fSniklas# 48232159047fSniklas# $0 $ac_configure_args 48242159047fSniklas# 48252159047fSniklas# Compiler output produced by configure, useful for debugging 48262159047fSniklas# configure, is in ./config.log if it exists. 48272159047fSniklas 48282159047fSniklasac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 48292159047fSniklasfor ac_option 48302159047fSniklasdo 48312159047fSniklas case "\$ac_option" in 48322159047fSniklas -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 48332159047fSniklas echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 48342159047fSniklas exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 48352159047fSniklas -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4836b305b0f1Sespie echo "$CONFIG_STATUS generated by autoconf version 2.13" 48372159047fSniklas exit 0 ;; 48382159047fSniklas -help | --help | --hel | --he | --h) 48392159047fSniklas echo "\$ac_cs_usage"; exit 0 ;; 48402159047fSniklas *) echo "\$ac_cs_usage"; exit 1 ;; 48412159047fSniklas esac 48422159047fSniklasdone 48432159047fSniklas 48442159047fSniklasac_given_srcdir=$srcdir 48452159047fSniklasac_given_INSTALL="$INSTALL" 48462159047fSniklas 4847b305b0f1Sespietrap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4848c88b1d6cSniklasEOF 4849c88b1d6cSniklascat >> $CONFIG_STATUS <<EOF 48502159047fSniklas 48512159047fSniklas# Protect against being on the right side of a sed subst in config.status. 4852c88b1d6cSniklassed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4853c88b1d6cSniklas s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 48542159047fSniklas$ac_vpsub 48552159047fSniklas$extrasub 4856b305b0f1Sespies%@SHELL@%$SHELL%g 48572159047fSniklass%@CFLAGS@%$CFLAGS%g 48582159047fSniklass%@CPPFLAGS@%$CPPFLAGS%g 48592159047fSniklass%@CXXFLAGS@%$CXXFLAGS%g 4860b305b0f1Sespies%@FFLAGS@%$FFLAGS%g 48612159047fSniklass%@DEFS@%$DEFS%g 48622159047fSniklass%@LDFLAGS@%$LDFLAGS%g 48632159047fSniklass%@LIBS@%$LIBS%g 48642159047fSniklass%@exec_prefix@%$exec_prefix%g 48652159047fSniklass%@prefix@%$prefix%g 48662159047fSniklass%@program_transform_name@%$program_transform_name%g 4867c88b1d6cSniklass%@bindir@%$bindir%g 4868c88b1d6cSniklass%@sbindir@%$sbindir%g 4869c88b1d6cSniklass%@libexecdir@%$libexecdir%g 4870c88b1d6cSniklass%@datadir@%$datadir%g 4871c88b1d6cSniklass%@sysconfdir@%$sysconfdir%g 4872c88b1d6cSniklass%@sharedstatedir@%$sharedstatedir%g 4873c88b1d6cSniklass%@localstatedir@%$localstatedir%g 4874c88b1d6cSniklass%@libdir@%$libdir%g 4875c88b1d6cSniklass%@includedir@%$includedir%g 4876c88b1d6cSniklass%@oldincludedir@%$oldincludedir%g 4877c88b1d6cSniklass%@infodir@%$infodir%g 4878c88b1d6cSniklass%@mandir@%$mandir%g 48792159047fSniklass%@host@%$host%g 48802159047fSniklass%@host_alias@%$host_alias%g 48812159047fSniklass%@host_cpu@%$host_cpu%g 48822159047fSniklass%@host_vendor@%$host_vendor%g 48832159047fSniklass%@host_os@%$host_os%g 48842159047fSniklass%@target@%$target%g 48852159047fSniklass%@target_alias@%$target_alias%g 48862159047fSniklass%@target_cpu@%$target_cpu%g 48872159047fSniklass%@target_vendor@%$target_vendor%g 48882159047fSniklass%@target_os@%$target_os%g 48892159047fSniklass%@build@%$build%g 48902159047fSniklass%@build_alias@%$build_alias%g 48912159047fSniklass%@build_cpu@%$build_cpu%g 48922159047fSniklass%@build_vendor@%$build_vendor%g 48932159047fSniklass%@build_os@%$build_os%g 4894b305b0f1Sespies%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4895b305b0f1Sespies%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4896b305b0f1Sespies%@INSTALL_DATA@%$INSTALL_DATA%g 4897b305b0f1Sespies%@PACKAGE@%$PACKAGE%g 4898b305b0f1Sespies%@VERSION@%$VERSION%g 4899b305b0f1Sespies%@ACLOCAL@%$ACLOCAL%g 4900b305b0f1Sespies%@AUTOCONF@%$AUTOCONF%g 4901b305b0f1Sespies%@AUTOMAKE@%$AUTOMAKE%g 4902b305b0f1Sespies%@AUTOHEADER@%$AUTOHEADER%g 4903b305b0f1Sespies%@MAKEINFO@%$MAKEINFO%g 4904b305b0f1Sespies%@SET_MAKE@%$SET_MAKE%g 49052159047fSniklass%@AR@%$AR%g 49062159047fSniklass%@RANLIB@%$RANLIB%g 4907*007c2a45Smiods%@CC@%$CC%g 4908b305b0f1Sespies%@LN_S@%$LN_S%g 4909b55d4692Sfgschs%@OBJEXT@%$OBJEXT%g 4910b55d4692Sfgschs%@EXEEXT@%$EXEEXT%g 4911b55d4692Sfgschs%@STRIP@%$STRIP%g 4912b305b0f1Sespies%@LIBTOOL@%$LIBTOOL%g 4913b55d4692Sfgschs%@WARN_CFLAGS@%$WARN_CFLAGS%g 4914b305b0f1Sespies%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g 4915b305b0f1Sespies%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g 4916b305b0f1Sespies%@MAINT@%$MAINT%g 4917c074d1c9Sdrahns%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g 4918c074d1c9Sdrahns%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g 4919c074d1c9Sdrahns%@bfdlibdir@%$bfdlibdir%g 4920c074d1c9Sdrahns%@bfdincludedir@%$bfdincludedir%g 49212159047fSniklass%@CPP@%$CPP%g 4922b305b0f1Sespies%@ALLOCA@%$ALLOCA%g 4923b305b0f1Sespies%@USE_NLS@%$USE_NLS%g 4924b305b0f1Sespies%@MSGFMT@%$MSGFMT%g 4925b305b0f1Sespies%@GMSGFMT@%$GMSGFMT%g 4926b305b0f1Sespies%@XGETTEXT@%$XGETTEXT%g 4927b305b0f1Sespies%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g 4928b305b0f1Sespies%@CATALOGS@%$CATALOGS%g 4929b305b0f1Sespies%@CATOBJEXT@%$CATOBJEXT%g 4930b305b0f1Sespies%@DATADIRNAME@%$DATADIRNAME%g 4931b305b0f1Sespies%@GMOFILES@%$GMOFILES%g 4932b305b0f1Sespies%@INSTOBJEXT@%$INSTOBJEXT%g 4933b305b0f1Sespies%@INTLDEPS@%$INTLDEPS%g 4934b305b0f1Sespies%@INTLLIBS@%$INTLLIBS%g 4935b305b0f1Sespies%@INTLOBJS@%$INTLOBJS%g 4936b305b0f1Sespies%@POFILES@%$POFILES%g 4937b305b0f1Sespies%@POSUB@%$POSUB%g 4938b305b0f1Sespies%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g 4939b305b0f1Sespies%@GT_NO@%$GT_NO%g 4940b305b0f1Sespies%@GT_YES@%$GT_YES%g 4941b305b0f1Sespies%@MKINSTALLDIRS@%$MKINSTALLDIRS%g 4942b305b0f1Sespies%@l@%$l%g 4943c074d1c9Sdrahns%@CC_FOR_BUILD@%$CC_FOR_BUILD%g 4944c074d1c9Sdrahns%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g 4945b305b0f1Sespies%@HDEFINES@%$HDEFINES%g 4946b55d4692Sfgschs%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g 4947b55d4692Sfgschs%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g 4948b55d4692Sfgschs%@cgendir@%$cgendir%g 4949b305b0f1Sespies%@WIN32LDFLAGS@%$WIN32LDFLAGS%g 4950b305b0f1Sespies%@WIN32LIBADD@%$WIN32LIBADD%g 49512159047fSniklass%@archdefs@%$archdefs%g 49522159047fSniklass%@BFD_MACHINES@%$BFD_MACHINES%g 49532159047fSniklas 49542159047fSniklasCEOF 49552159047fSniklasEOF 4956b305b0f1Sespie 4957b305b0f1Sespiecat >> $CONFIG_STATUS <<\EOF 4958b305b0f1Sespie 4959b305b0f1Sespie# Split the substitutions into bite-sized pieces for seds with 4960b305b0f1Sespie# small command number limits, like on Digital OSF/1 and HP-UX. 4961b305b0f1Sespieac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 4962b305b0f1Sespieac_file=1 # Number of current file. 4963b305b0f1Sespieac_beg=1 # First line for current file. 4964b305b0f1Sespieac_end=$ac_max_sed_cmds # Line after last line for current file. 4965b305b0f1Sespieac_more_lines=: 4966b305b0f1Sespieac_sed_cmds="" 4967b305b0f1Sespiewhile $ac_more_lines; do 4968b305b0f1Sespie if test $ac_beg -gt 1; then 4969b305b0f1Sespie sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 4970b305b0f1Sespie else 4971b305b0f1Sespie sed "${ac_end}q" conftest.subs > conftest.s$ac_file 4972b305b0f1Sespie fi 4973b305b0f1Sespie if test ! -s conftest.s$ac_file; then 4974b305b0f1Sespie ac_more_lines=false 4975b305b0f1Sespie rm -f conftest.s$ac_file 4976b305b0f1Sespie else 4977b305b0f1Sespie if test -z "$ac_sed_cmds"; then 4978b305b0f1Sespie ac_sed_cmds="sed -f conftest.s$ac_file" 4979b305b0f1Sespie else 4980b305b0f1Sespie ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 4981b305b0f1Sespie fi 4982b305b0f1Sespie ac_file=`expr $ac_file + 1` 4983b305b0f1Sespie ac_beg=$ac_end 4984b305b0f1Sespie ac_end=`expr $ac_end + $ac_max_sed_cmds` 4985b305b0f1Sespie fi 4986b305b0f1Sespiedone 4987b305b0f1Sespieif test -z "$ac_sed_cmds"; then 4988b305b0f1Sespie ac_sed_cmds=cat 4989b305b0f1Sespiefi 4990b305b0f1SespieEOF 4991b305b0f1Sespie 49922159047fSniklascat >> $CONFIG_STATUS <<EOF 49932159047fSniklas 4994b305b0f1SespieCONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"} 49952159047fSniklasEOF 49962159047fSniklascat >> $CONFIG_STATUS <<\EOF 49972159047fSniklasfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 4998b305b0f1Sespie # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 49992159047fSniklas case "$ac_file" in 5000b305b0f1Sespie *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 50012159047fSniklas ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 50022159047fSniklas *) ac_file_in="${ac_file}.in" ;; 50032159047fSniklas esac 50042159047fSniklas 5005b305b0f1Sespie # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 50062159047fSniklas 50072159047fSniklas # Remove last slash and all that follows it. Not all systems have dirname. 50082159047fSniklas ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 50092159047fSniklas if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 50102159047fSniklas # The file is in a subdirectory. 50112159047fSniklas test ! -d "$ac_dir" && mkdir "$ac_dir" 50122159047fSniklas ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 50132159047fSniklas # A "../" for each directory in $ac_dir_suffix. 50142159047fSniklas ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 50152159047fSniklas else 50162159047fSniklas ac_dir_suffix= ac_dots= 50172159047fSniklas fi 50182159047fSniklas 50192159047fSniklas case "$ac_given_srcdir" in 50202159047fSniklas .) srcdir=. 50212159047fSniklas if test -z "$ac_dots"; then top_srcdir=. 50222159047fSniklas else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 50232159047fSniklas /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 50242159047fSniklas *) # Relative path. 50252159047fSniklas srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 50262159047fSniklas top_srcdir="$ac_dots$ac_given_srcdir" ;; 50272159047fSniklas esac 50282159047fSniklas 50292159047fSniklas case "$ac_given_INSTALL" in 50302159047fSniklas [/$]*) INSTALL="$ac_given_INSTALL" ;; 50312159047fSniklas *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 50322159047fSniklas esac 5033b305b0f1Sespie 50342159047fSniklas echo creating "$ac_file" 50352159047fSniklas rm -f "$ac_file" 50362159047fSniklas configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 50372159047fSniklas case "$ac_file" in 50382159047fSniklas *Makefile*) ac_comsub="1i\\ 50392159047fSniklas# $configure_input" ;; 50402159047fSniklas *) ac_comsub= ;; 50412159047fSniklas esac 5042b305b0f1Sespie 5043b305b0f1Sespie ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 50442159047fSniklas sed -e "$ac_comsub 50452159047fSniklass%@configure_input@%$configure_input%g 50462159047fSniklass%@srcdir@%$srcdir%g 50472159047fSniklass%@top_srcdir@%$top_srcdir%g 50482159047fSniklass%@INSTALL@%$INSTALL%g 5049b305b0f1Sespie" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 50502159047fSniklasfi; done 5051b305b0f1Sespierm -f conftest.s* 50522159047fSniklas 50532159047fSniklas# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 50542159047fSniklas# NAME is the cpp macro being defined and VALUE is the value it is being given. 50552159047fSniklas# 50562159047fSniklas# ac_d sets the value in "#define NAME VALUE" lines. 50572159047fSniklasac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 50582159047fSniklasac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 50592159047fSniklasac_dC='\3' 50602159047fSniklasac_dD='%g' 50612159047fSniklas# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 50622159047fSniklasac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 50632159047fSniklasac_uB='\([ ]\)%\1#\2define\3' 50642159047fSniklasac_uC=' ' 50652159047fSniklasac_uD='\4%g' 50662159047fSniklas# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 50672159047fSniklasac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 50682159047fSniklasac_eB='$%\1#\2define\3' 50692159047fSniklasac_eC=' ' 50702159047fSniklasac_eD='%g' 50712159047fSniklas 5072b305b0f1Sespieif test "${CONFIG_HEADERS+set}" != set; then 5073b305b0f1SespieEOF 5074b305b0f1Sespiecat >> $CONFIG_STATUS <<EOF 5075b305b0f1Sespie CONFIG_HEADERS="config.h:config.in" 5076b305b0f1SespieEOF 5077b305b0f1Sespiecat >> $CONFIG_STATUS <<\EOF 5078b305b0f1Sespiefi 50792159047fSniklasfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 5080b305b0f1Sespie # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 50812159047fSniklas case "$ac_file" in 5082b305b0f1Sespie *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 50832159047fSniklas ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 50842159047fSniklas *) ac_file_in="${ac_file}.in" ;; 50852159047fSniklas esac 50862159047fSniklas 50872159047fSniklas echo creating $ac_file 50882159047fSniklas 50892159047fSniklas rm -f conftest.frag conftest.in conftest.out 5090b305b0f1Sespie ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5091b305b0f1Sespie cat $ac_file_inputs > conftest.in 50922159047fSniklas 50932159047fSniklasEOF 50942159047fSniklas 50952159047fSniklas# Transform confdefs.h into a sed script conftest.vals that substitutes 50962159047fSniklas# the proper values into config.h.in to produce config.h. And first: 50972159047fSniklas# Protect against being on the right side of a sed subst in config.status. 50982159047fSniklas# Protect against being in an unquoted here document in config.status. 50992159047fSniklasrm -f conftest.vals 51002159047fSniklascat > conftest.hdr <<\EOF 51012159047fSniklass/[\\&%]/\\&/g 51022159047fSniklass%[\\$`]%\\&%g 51030c6d0228Sniklass%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 51042159047fSniklass%ac_d%ac_u%gp 51052159047fSniklass%ac_u%ac_e%gp 51062159047fSniklasEOF 51072159047fSniklassed -n -f conftest.hdr confdefs.h > conftest.vals 51082159047fSniklasrm -f conftest.hdr 51092159047fSniklas 51102159047fSniklas# This sed command replaces #undef with comments. This is necessary, for 51112159047fSniklas# example, in the case of _POSIX_SOURCE, which is predefined and required 51122159047fSniklas# on some systems where configure will not decide to define it. 51132159047fSniklascat >> conftest.vals <<\EOF 51142159047fSniklass%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 51152159047fSniklasEOF 51162159047fSniklas 51172159047fSniklas# Break up conftest.vals because some shells have a limit on 51182159047fSniklas# the size of here documents, and old seds have small limits too. 51192159047fSniklas 51202159047fSniklasrm -f conftest.tail 51212159047fSniklaswhile : 51222159047fSniklasdo 51232159047fSniklas ac_lines=`grep -c . conftest.vals` 51242159047fSniklas # grep -c gives empty output for an empty file on some AIX systems. 51252159047fSniklas if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 51262159047fSniklas # Write a limited-size here document to conftest.frag. 51272159047fSniklas echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 51282159047fSniklas sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 51292159047fSniklas echo 'CEOF 51302159047fSniklas sed -f conftest.frag conftest.in > conftest.out 51312159047fSniklas rm -f conftest.in 51322159047fSniklas mv conftest.out conftest.in 51332159047fSniklas' >> $CONFIG_STATUS 51342159047fSniklas sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 51352159047fSniklas rm -f conftest.vals 51362159047fSniklas mv conftest.tail conftest.vals 51372159047fSniklasdone 51382159047fSniklasrm -f conftest.vals 51392159047fSniklas 51402159047fSniklascat >> $CONFIG_STATUS <<\EOF 51412159047fSniklas rm -f conftest.frag conftest.h 51422159047fSniklas echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 51432159047fSniklas cat conftest.in >> conftest.h 51442159047fSniklas rm -f conftest.in 51452159047fSniklas if cmp -s $ac_file conftest.h 2>/dev/null; then 51462159047fSniklas echo "$ac_file is unchanged" 51472159047fSniklas rm -f conftest.h 51482159047fSniklas else 51490c6d0228Sniklas # Remove last slash and all that follows it. Not all systems have dirname. 51500c6d0228Sniklas ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 51510c6d0228Sniklas if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 51520c6d0228Sniklas # The file is in a subdirectory. 51530c6d0228Sniklas test ! -d "$ac_dir" && mkdir "$ac_dir" 51540c6d0228Sniklas fi 51552159047fSniklas rm -f $ac_file 51562159047fSniklas mv conftest.h $ac_file 51572159047fSniklas fi 51582159047fSniklasfi; done 51592159047fSniklas 5160b305b0f1SespieEOF 5161b305b0f1Sespiecat >> $CONFIG_STATUS <<EOF 51622159047fSniklas 5163b305b0f1Sespie 5164b305b0f1SespieEOF 5165b305b0f1Sespiecat >> $CONFIG_STATUS <<\EOF 5166b305b0f1Sespietest -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 5167b305b0f1Sespiesed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile 51682159047fSniklasexit 0 51692159047fSniklasEOF 51702159047fSniklaschmod +x $CONFIG_STATUS 51712159047fSniklasrm -fr confdefs* $ac_clean_files 51722159047fSniklastest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 51732159047fSniklas 5174