12159047fSniklas#! /bin/sh 22159047fSniklas 3c074d1c9Sdrahn# Guess values for system-dependent variables and create Makefiles. 4c074d1c9Sdrahn# Generated automatically using autoconf version 2.13 5c074d1c9Sdrahn# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 62159047fSniklas# 7c074d1c9Sdrahn# This configure script is free software; the Free Software Foundation 8c074d1c9Sdrahn# gives unlimited permission to copy, distribute and modify it. 92159047fSniklas 10c074d1c9Sdrahn# Defaults: 11c074d1c9Sdrahnac_help= 12c074d1c9Sdrahnac_default_prefix=/usr/local 13c074d1c9Sdrahn# Any additions from configure.in: 14c074d1c9Sdrahnac_help="$ac_help 15007c2a45Smiod --enable-libada Builds libada directory" 16007c2a45Smiodac_help="$ac_help 17007c2a45Smiod --enable-serial-[{host,target,build}-]configure 18007c2a45Smiod Force sequential configuration of 19c074d1c9Sdrahn sub-packages for the host, target or build 20007c2a45Smiod machine, or all sub-packages" 21c074d1c9Sdrahnac_help="$ac_help 22c074d1c9Sdrahn --enable-maintainer-mode enable make rules and dependencies not useful 23c074d1c9Sdrahn (and sometimes confusing) to the casual installer" 242159047fSniklas 25c074d1c9Sdrahn# Initialize some variables set by options. 26c074d1c9Sdrahn# The variables have the same names as the options, with 27c074d1c9Sdrahn# dashes changed to underlines. 28c074d1c9Sdrahnbuild=NONE 29c074d1c9Sdrahncache_file=./config.cache 30c074d1c9Sdrahnexec_prefix=NONE 31c074d1c9Sdrahnhost=NONE 32c074d1c9Sdrahnno_create= 33c074d1c9Sdrahnnonopt=NONE 34c074d1c9Sdrahnno_recursion= 35c074d1c9Sdrahnprefix=NONE 36c074d1c9Sdrahnprogram_prefix=NONE 37c074d1c9Sdrahnprogram_suffix=NONE 38c074d1c9Sdrahnprogram_transform_name=s,x,x, 39c074d1c9Sdrahnsilent= 402159047fSniklassite= 412159047fSniklassrcdir= 42c074d1c9Sdrahntarget=NONE 43c074d1c9Sdrahnverbose= 44c074d1c9Sdrahnx_includes=NONE 45c074d1c9Sdrahnx_libraries=NONE 46b305b0f1Sespiebindir='${exec_prefix}/bin' 47b305b0f1Sespiesbindir='${exec_prefix}/sbin' 48b305b0f1Sespielibexecdir='${exec_prefix}/libexec' 49b305b0f1Sespiedatadir='${prefix}/share' 50b305b0f1Sespiesysconfdir='${prefix}/etc' 51b305b0f1Sespiesharedstatedir='${prefix}/com' 52b305b0f1Sespielocalstatedir='${prefix}/var' 53b305b0f1Sespielibdir='${exec_prefix}/lib' 54b305b0f1Sespieincludedir='${prefix}/include' 55b305b0f1Sespieoldincludedir='/usr/include' 56b305b0f1Sespieinfodir='${prefix}/info' 57b305b0f1Sespiemandir='${prefix}/man' 582159047fSniklas 59c074d1c9Sdrahn# Initialize some other variables. 60c074d1c9Sdrahnsubdirs= 61c074d1c9SdrahnMFLAGS= MAKEFLAGS= 62c074d1c9SdrahnSHELL=${CONFIG_SHELL-/bin/sh} 63c074d1c9Sdrahn# Maximum number of lines to put in a shell here document. 64c074d1c9Sdrahnac_max_here_lines=12 65b305b0f1Sespie 66c074d1c9Sdrahnac_prev= 67c074d1c9Sdrahnfor ac_option 68c074d1c9Sdrahndo 69c074d1c9Sdrahn 70c074d1c9Sdrahn # If the previous option needs an argument, assign it. 71c074d1c9Sdrahn if test -n "$ac_prev"; then 72c074d1c9Sdrahn eval "$ac_prev=\$ac_option" 73c074d1c9Sdrahn ac_prev= 74c074d1c9Sdrahn continue 75c074d1c9Sdrahn fi 76c074d1c9Sdrahn 77c074d1c9Sdrahn case "$ac_option" in 78c074d1c9Sdrahn -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 79c074d1c9Sdrahn *) ac_optarg= ;; 80c074d1c9Sdrahn esac 81c074d1c9Sdrahn 82c074d1c9Sdrahn # Accept the important Cygnus configure options, so we can diagnose typos. 83c074d1c9Sdrahn 84c074d1c9Sdrahn case "$ac_option" in 85c074d1c9Sdrahn 86c074d1c9Sdrahn -bindir | --bindir | --bindi | --bind | --bin | --bi) 87c074d1c9Sdrahn ac_prev=bindir ;; 88c074d1c9Sdrahn -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 89c074d1c9Sdrahn bindir="$ac_optarg" ;; 90c074d1c9Sdrahn 91c074d1c9Sdrahn -build | --build | --buil | --bui | --bu) 92c074d1c9Sdrahn ac_prev=build ;; 93c074d1c9Sdrahn -build=* | --build=* | --buil=* | --bui=* | --bu=*) 94c074d1c9Sdrahn build="$ac_optarg" ;; 95c074d1c9Sdrahn 96c074d1c9Sdrahn -cache-file | --cache-file | --cache-fil | --cache-fi \ 97c074d1c9Sdrahn | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 98c074d1c9Sdrahn ac_prev=cache_file ;; 99c074d1c9Sdrahn -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 100c074d1c9Sdrahn | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 101c074d1c9Sdrahn cache_file="$ac_optarg" ;; 102c074d1c9Sdrahn 103c074d1c9Sdrahn -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 104c074d1c9Sdrahn ac_prev=datadir ;; 105c074d1c9Sdrahn -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 106c074d1c9Sdrahn | --da=*) 107c074d1c9Sdrahn datadir="$ac_optarg" ;; 108c074d1c9Sdrahn 109c074d1c9Sdrahn -disable-* | --disable-*) 110c074d1c9Sdrahn ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 111c074d1c9Sdrahn # Reject names that are not valid shell variable names. 112c074d1c9Sdrahn if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 113c074d1c9Sdrahn { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 114c074d1c9Sdrahn fi 115c074d1c9Sdrahn ac_feature=`echo $ac_feature| sed 's/-/_/g'` 116c074d1c9Sdrahn eval "enable_${ac_feature}=no" ;; 117c074d1c9Sdrahn 118c074d1c9Sdrahn -enable-* | --enable-*) 119c074d1c9Sdrahn ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 120c074d1c9Sdrahn # Reject names that are not valid shell variable names. 121c074d1c9Sdrahn if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 122c074d1c9Sdrahn { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 123c074d1c9Sdrahn fi 124c074d1c9Sdrahn ac_feature=`echo $ac_feature| sed 's/-/_/g'` 125c074d1c9Sdrahn case "$ac_option" in 126c074d1c9Sdrahn *=*) ;; 127c074d1c9Sdrahn *) ac_optarg=yes ;; 128c074d1c9Sdrahn esac 129c074d1c9Sdrahn eval "enable_${ac_feature}='$ac_optarg'" ;; 130c074d1c9Sdrahn 131c074d1c9Sdrahn -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 132c074d1c9Sdrahn | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 133c074d1c9Sdrahn | --exec | --exe | --ex) 134c074d1c9Sdrahn ac_prev=exec_prefix ;; 135c074d1c9Sdrahn -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 136c074d1c9Sdrahn | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 137c074d1c9Sdrahn | --exec=* | --exe=* | --ex=*) 138c074d1c9Sdrahn exec_prefix="$ac_optarg" ;; 139c074d1c9Sdrahn 140c074d1c9Sdrahn -gas | --gas | --ga | --g) 141c074d1c9Sdrahn # Obsolete; use --with-gas. 142c074d1c9Sdrahn with_gas=yes ;; 143c074d1c9Sdrahn 144c074d1c9Sdrahn -help | --help | --hel | --he) 145c074d1c9Sdrahn # Omit some internal or obsolete options to make the list less imposing. 146c074d1c9Sdrahn # This message is too long to be a string in the A/UX 3.1 sh. 147c074d1c9Sdrahn cat << EOF 148c074d1c9SdrahnUsage: configure [options] [host] 149c074d1c9SdrahnOptions: [defaults in brackets after descriptions] 150c074d1c9SdrahnConfiguration: 151c074d1c9Sdrahn --cache-file=FILE cache test results in FILE 152c074d1c9Sdrahn --help print this message 153c074d1c9Sdrahn --no-create do not create output files 154c074d1c9Sdrahn --quiet, --silent do not print \`checking...' messages 155c074d1c9Sdrahn --version print the version of autoconf that created configure 156c074d1c9SdrahnDirectory and file names: 157c074d1c9Sdrahn --prefix=PREFIX install architecture-independent files in PREFIX 158c074d1c9Sdrahn [$ac_default_prefix] 159c074d1c9Sdrahn --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 160c074d1c9Sdrahn [same as prefix] 161c074d1c9Sdrahn --bindir=DIR user executables in DIR [EPREFIX/bin] 162c074d1c9Sdrahn --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 163c074d1c9Sdrahn --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 164c074d1c9Sdrahn --datadir=DIR read-only architecture-independent data in DIR 165c074d1c9Sdrahn [PREFIX/share] 166c074d1c9Sdrahn --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 167c074d1c9Sdrahn --sharedstatedir=DIR modifiable architecture-independent data in DIR 168c074d1c9Sdrahn [PREFIX/com] 169c074d1c9Sdrahn --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 170c074d1c9Sdrahn --libdir=DIR object code libraries in DIR [EPREFIX/lib] 171c074d1c9Sdrahn --includedir=DIR C header files in DIR [PREFIX/include] 172c074d1c9Sdrahn --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 173c074d1c9Sdrahn --infodir=DIR info documentation in DIR [PREFIX/info] 174c074d1c9Sdrahn --mandir=DIR man documentation in DIR [PREFIX/man] 175c074d1c9Sdrahn --srcdir=DIR find the sources in DIR [configure dir or ..] 176c074d1c9Sdrahn --program-prefix=PREFIX prepend PREFIX to installed program names 177c074d1c9Sdrahn --program-suffix=SUFFIX append SUFFIX to installed program names 178c074d1c9Sdrahn --program-transform-name=PROGRAM 179c074d1c9Sdrahn run sed PROGRAM on installed program names 180c074d1c9SdrahnEOF 181c074d1c9Sdrahn cat << EOF 182c074d1c9SdrahnHost type: 183c074d1c9Sdrahn --build=BUILD configure for building on BUILD [BUILD=HOST] 184c074d1c9Sdrahn --host=HOST configure for HOST [guessed] 185c074d1c9Sdrahn --target=TARGET configure for TARGET [TARGET=HOST] 186c074d1c9SdrahnFeatures and packages: 187c074d1c9Sdrahn --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 188c074d1c9Sdrahn --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 189c074d1c9Sdrahn --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 190c074d1c9Sdrahn --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 191c074d1c9Sdrahn --x-includes=DIR X include files are in DIR 192c074d1c9Sdrahn --x-libraries=DIR X library files are in DIR 193c074d1c9SdrahnEOF 194c074d1c9Sdrahn if test -n "$ac_help"; then 195c074d1c9Sdrahn echo "--enable and --with options recognized:$ac_help" 196c074d1c9Sdrahn fi 197c074d1c9Sdrahn exit 0 ;; 198c074d1c9Sdrahn 199c074d1c9Sdrahn -host | --host | --hos | --ho) 200c074d1c9Sdrahn ac_prev=host ;; 201c074d1c9Sdrahn -host=* | --host=* | --hos=* | --ho=*) 202c074d1c9Sdrahn host="$ac_optarg" ;; 203c074d1c9Sdrahn 204c074d1c9Sdrahn -includedir | --includedir | --includedi | --included | --include \ 205c074d1c9Sdrahn | --includ | --inclu | --incl | --inc) 206c074d1c9Sdrahn ac_prev=includedir ;; 207c074d1c9Sdrahn -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 208c074d1c9Sdrahn | --includ=* | --inclu=* | --incl=* | --inc=*) 209c074d1c9Sdrahn includedir="$ac_optarg" ;; 210c074d1c9Sdrahn 211c074d1c9Sdrahn -infodir | --infodir | --infodi | --infod | --info | --inf) 212c074d1c9Sdrahn ac_prev=infodir ;; 213c074d1c9Sdrahn -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 214c074d1c9Sdrahn infodir="$ac_optarg" ;; 215c074d1c9Sdrahn 216c074d1c9Sdrahn -libdir | --libdir | --libdi | --libd) 217c074d1c9Sdrahn ac_prev=libdir ;; 218c074d1c9Sdrahn -libdir=* | --libdir=* | --libdi=* | --libd=*) 219c074d1c9Sdrahn libdir="$ac_optarg" ;; 220c074d1c9Sdrahn 221c074d1c9Sdrahn -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 222c074d1c9Sdrahn | --libexe | --libex | --libe) 223c074d1c9Sdrahn ac_prev=libexecdir ;; 224c074d1c9Sdrahn -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 225c074d1c9Sdrahn | --libexe=* | --libex=* | --libe=*) 226c074d1c9Sdrahn libexecdir="$ac_optarg" ;; 227c074d1c9Sdrahn 228c074d1c9Sdrahn -localstatedir | --localstatedir | --localstatedi | --localstated \ 229c074d1c9Sdrahn | --localstate | --localstat | --localsta | --localst \ 230c074d1c9Sdrahn | --locals | --local | --loca | --loc | --lo) 231c074d1c9Sdrahn ac_prev=localstatedir ;; 232c074d1c9Sdrahn -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 233c074d1c9Sdrahn | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 234c074d1c9Sdrahn | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 235c074d1c9Sdrahn localstatedir="$ac_optarg" ;; 236c074d1c9Sdrahn 237c074d1c9Sdrahn -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 238c074d1c9Sdrahn ac_prev=mandir ;; 239c074d1c9Sdrahn -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 240c074d1c9Sdrahn mandir="$ac_optarg" ;; 241c074d1c9Sdrahn 242c074d1c9Sdrahn -nfp | --nfp | --nf) 243c074d1c9Sdrahn # Obsolete; use --without-fp. 244c074d1c9Sdrahn with_fp=no ;; 245c074d1c9Sdrahn 246c074d1c9Sdrahn -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 247c074d1c9Sdrahn | --no-cr | --no-c) 248c074d1c9Sdrahn no_create=yes ;; 249c074d1c9Sdrahn 250c074d1c9Sdrahn -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 251c074d1c9Sdrahn | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 252c074d1c9Sdrahn no_recursion=yes ;; 253c074d1c9Sdrahn 254c074d1c9Sdrahn -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 255c074d1c9Sdrahn | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 256c074d1c9Sdrahn | --oldin | --oldi | --old | --ol | --o) 257c074d1c9Sdrahn ac_prev=oldincludedir ;; 258c074d1c9Sdrahn -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 259c074d1c9Sdrahn | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 260c074d1c9Sdrahn | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 261c074d1c9Sdrahn oldincludedir="$ac_optarg" ;; 262c074d1c9Sdrahn 263c074d1c9Sdrahn -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 264c074d1c9Sdrahn ac_prev=prefix ;; 265c074d1c9Sdrahn -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 266c074d1c9Sdrahn prefix="$ac_optarg" ;; 267c074d1c9Sdrahn 268c074d1c9Sdrahn -program-prefix | --program-prefix | --program-prefi | --program-pref \ 269c074d1c9Sdrahn | --program-pre | --program-pr | --program-p) 270c074d1c9Sdrahn ac_prev=program_prefix ;; 271c074d1c9Sdrahn -program-prefix=* | --program-prefix=* | --program-prefi=* \ 272c074d1c9Sdrahn | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 273c074d1c9Sdrahn program_prefix="$ac_optarg" ;; 274c074d1c9Sdrahn 275c074d1c9Sdrahn -program-suffix | --program-suffix | --program-suffi | --program-suff \ 276c074d1c9Sdrahn | --program-suf | --program-su | --program-s) 277c074d1c9Sdrahn ac_prev=program_suffix ;; 278c074d1c9Sdrahn -program-suffix=* | --program-suffix=* | --program-suffi=* \ 279c074d1c9Sdrahn | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 280c074d1c9Sdrahn program_suffix="$ac_optarg" ;; 281c074d1c9Sdrahn 282c074d1c9Sdrahn -program-transform-name | --program-transform-name \ 283c074d1c9Sdrahn | --program-transform-nam | --program-transform-na \ 284c074d1c9Sdrahn | --program-transform-n | --program-transform- \ 285c074d1c9Sdrahn | --program-transform | --program-transfor \ 286c074d1c9Sdrahn | --program-transfo | --program-transf \ 287c074d1c9Sdrahn | --program-trans | --program-tran \ 288c074d1c9Sdrahn | --progr-tra | --program-tr | --program-t) 289c074d1c9Sdrahn ac_prev=program_transform_name ;; 290c074d1c9Sdrahn -program-transform-name=* | --program-transform-name=* \ 291c074d1c9Sdrahn | --program-transform-nam=* | --program-transform-na=* \ 292c074d1c9Sdrahn | --program-transform-n=* | --program-transform-=* \ 293c074d1c9Sdrahn | --program-transform=* | --program-transfor=* \ 294c074d1c9Sdrahn | --program-transfo=* | --program-transf=* \ 295c074d1c9Sdrahn | --program-trans=* | --program-tran=* \ 296c074d1c9Sdrahn | --progr-tra=* | --program-tr=* | --program-t=*) 297c074d1c9Sdrahn program_transform_name="$ac_optarg" ;; 298c074d1c9Sdrahn 299c074d1c9Sdrahn -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 300c074d1c9Sdrahn | -silent | --silent | --silen | --sile | --sil) 301c074d1c9Sdrahn silent=yes ;; 302c074d1c9Sdrahn 303c074d1c9Sdrahn -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 304c074d1c9Sdrahn ac_prev=sbindir ;; 305c074d1c9Sdrahn -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 306c074d1c9Sdrahn | --sbi=* | --sb=*) 307c074d1c9Sdrahn sbindir="$ac_optarg" ;; 308c074d1c9Sdrahn 309c074d1c9Sdrahn -sharedstatedir | --sharedstatedir | --sharedstatedi \ 310c074d1c9Sdrahn | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 311c074d1c9Sdrahn | --sharedst | --shareds | --shared | --share | --shar \ 312c074d1c9Sdrahn | --sha | --sh) 313c074d1c9Sdrahn ac_prev=sharedstatedir ;; 314c074d1c9Sdrahn -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 315c074d1c9Sdrahn | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 316c074d1c9Sdrahn | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 317c074d1c9Sdrahn | --sha=* | --sh=*) 318c074d1c9Sdrahn sharedstatedir="$ac_optarg" ;; 319c074d1c9Sdrahn 320c074d1c9Sdrahn -site | --site | --sit) 321c074d1c9Sdrahn ac_prev=site ;; 322c074d1c9Sdrahn -site=* | --site=* | --sit=*) 323c074d1c9Sdrahn site="$ac_optarg" ;; 324c074d1c9Sdrahn 325c074d1c9Sdrahn -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 326c074d1c9Sdrahn ac_prev=srcdir ;; 327c074d1c9Sdrahn -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 328c074d1c9Sdrahn srcdir="$ac_optarg" ;; 329c074d1c9Sdrahn 330c074d1c9Sdrahn -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 331c074d1c9Sdrahn | --syscon | --sysco | --sysc | --sys | --sy) 332c074d1c9Sdrahn ac_prev=sysconfdir ;; 333c074d1c9Sdrahn -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 334c074d1c9Sdrahn | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 335c074d1c9Sdrahn sysconfdir="$ac_optarg" ;; 336c074d1c9Sdrahn 337c074d1c9Sdrahn -target | --target | --targe | --targ | --tar | --ta | --t) 338c074d1c9Sdrahn ac_prev=target ;; 339c074d1c9Sdrahn -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 340c074d1c9Sdrahn target="$ac_optarg" ;; 341c074d1c9Sdrahn 342c074d1c9Sdrahn -v | -verbose | --verbose | --verbos | --verbo | --verb) 343c074d1c9Sdrahn verbose=yes ;; 344c074d1c9Sdrahn 345c074d1c9Sdrahn -version | --version | --versio | --versi | --vers) 346c074d1c9Sdrahn echo "configure generated by autoconf version 2.13" 347c074d1c9Sdrahn exit 0 ;; 348c074d1c9Sdrahn 349c074d1c9Sdrahn -with-* | --with-*) 350c074d1c9Sdrahn ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 351c074d1c9Sdrahn # Reject names that are not valid shell variable names. 352c074d1c9Sdrahn if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 353c074d1c9Sdrahn { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 354c074d1c9Sdrahn fi 355c074d1c9Sdrahn ac_package=`echo $ac_package| sed 's/-/_/g'` 356c074d1c9Sdrahn case "$ac_option" in 357c074d1c9Sdrahn *=*) ;; 358c074d1c9Sdrahn *) ac_optarg=yes ;; 359c074d1c9Sdrahn esac 360c074d1c9Sdrahn eval "with_${ac_package}='$ac_optarg'" ;; 361c074d1c9Sdrahn 362c074d1c9Sdrahn -without-* | --without-*) 363c074d1c9Sdrahn ac_package=`echo $ac_option|sed -e 's/-*without-//'` 364c074d1c9Sdrahn # Reject names that are not valid shell variable names. 365c074d1c9Sdrahn if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 366c074d1c9Sdrahn { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 367c074d1c9Sdrahn fi 368c074d1c9Sdrahn ac_package=`echo $ac_package| sed 's/-/_/g'` 369c074d1c9Sdrahn eval "with_${ac_package}=no" ;; 370c074d1c9Sdrahn 371c074d1c9Sdrahn --x) 372c074d1c9Sdrahn # Obsolete; use --with-x. 373c074d1c9Sdrahn with_x=yes ;; 374c074d1c9Sdrahn 375c074d1c9Sdrahn -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 376c074d1c9Sdrahn | --x-incl | --x-inc | --x-in | --x-i) 377c074d1c9Sdrahn ac_prev=x_includes ;; 378c074d1c9Sdrahn -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 379c074d1c9Sdrahn | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 380c074d1c9Sdrahn x_includes="$ac_optarg" ;; 381c074d1c9Sdrahn 382c074d1c9Sdrahn -x-libraries | --x-libraries | --x-librarie | --x-librari \ 383c074d1c9Sdrahn | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 384c074d1c9Sdrahn ac_prev=x_libraries ;; 385c074d1c9Sdrahn -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 386c074d1c9Sdrahn | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 387c074d1c9Sdrahn x_libraries="$ac_optarg" ;; 388c074d1c9Sdrahn 389c074d1c9Sdrahn -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 390c074d1c9Sdrahn ;; 391c074d1c9Sdrahn 392c074d1c9Sdrahn *) 393c074d1c9Sdrahn if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 394c074d1c9Sdrahn echo "configure: warning: $ac_option: invalid host type" 1>&2 395c074d1c9Sdrahn fi 396c074d1c9Sdrahn if test "x$nonopt" != xNONE; then 397c074d1c9Sdrahn { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 398c074d1c9Sdrahn fi 399c074d1c9Sdrahn nonopt="$ac_option" 400c074d1c9Sdrahn ;; 401c074d1c9Sdrahn 402c074d1c9Sdrahn esac 403c074d1c9Sdrahndone 404c074d1c9Sdrahn 405c074d1c9Sdrahnif test -n "$ac_prev"; then 406c074d1c9Sdrahn { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 407c074d1c9Sdrahnfi 408c074d1c9Sdrahn 409c074d1c9Sdrahntrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 410c074d1c9Sdrahn 411c074d1c9Sdrahn# File descriptor usage: 412c074d1c9Sdrahn# 0 standard input 413c074d1c9Sdrahn# 1 file creation 414c074d1c9Sdrahn# 2 errors and warnings 415c074d1c9Sdrahn# 3 some systems may open it to /dev/tty 416c074d1c9Sdrahn# 4 used on the Kubota Titan 417c074d1c9Sdrahn# 6 checking for... messages and results 418c074d1c9Sdrahn# 5 compiler messages saved in config.log 419c074d1c9Sdrahnif test "$silent" = yes; then 420c074d1c9Sdrahn exec 6>/dev/null 421c074d1c9Sdrahnelse 422c074d1c9Sdrahn exec 6>&1 423c074d1c9Sdrahnfi 424c074d1c9Sdrahnexec 5>./config.log 425c074d1c9Sdrahn 426c074d1c9Sdrahnecho "\ 427c074d1c9SdrahnThis file contains any messages produced by compilers while 428c074d1c9Sdrahnrunning configure, to aid debugging if configure makes a mistake. 429c074d1c9Sdrahn" 1>&5 430c074d1c9Sdrahn 431c074d1c9Sdrahn# Strip out --no-create and --no-recursion so they do not pile up. 432c074d1c9Sdrahn# Also quote any args containing shell metacharacters. 433c074d1c9Sdrahnac_configure_args= 434c074d1c9Sdrahnfor ac_arg 435c074d1c9Sdrahndo 436c074d1c9Sdrahn case "$ac_arg" in 437c074d1c9Sdrahn -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 438c074d1c9Sdrahn | --no-cr | --no-c) ;; 439c074d1c9Sdrahn -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 440c074d1c9Sdrahn | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 441c074d1c9Sdrahn *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 442c074d1c9Sdrahn ac_configure_args="$ac_configure_args '$ac_arg'" ;; 443c074d1c9Sdrahn *) ac_configure_args="$ac_configure_args $ac_arg" ;; 444c074d1c9Sdrahn esac 445c074d1c9Sdrahndone 446c074d1c9Sdrahn 447c074d1c9Sdrahn# NLS nuisances. 448c074d1c9Sdrahn# Only set these to C if already set. These must not be set unconditionally 449c074d1c9Sdrahn# because not all systems understand e.g. LANG=C (notably SCO). 450c074d1c9Sdrahn# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 451c074d1c9Sdrahn# Non-C LC_CTYPE values break the ctype check. 452c074d1c9Sdrahnif test "${LANG+set}" = set; then LANG=C; export LANG; fi 453c074d1c9Sdrahnif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 454c074d1c9Sdrahnif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 455c074d1c9Sdrahnif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 456c074d1c9Sdrahn 457c074d1c9Sdrahn# confdefs.h avoids OS command line length limits that DEFS can exceed. 458c074d1c9Sdrahnrm -rf conftest* confdefs.h 459c074d1c9Sdrahn# AIX cpp loses on an empty file, so make sure it contains at least a newline. 460c074d1c9Sdrahnecho > confdefs.h 461c074d1c9Sdrahn 462c074d1c9Sdrahn# A filename unique to this package, relative to the directory that 463c074d1c9Sdrahn# configure is in, which we can look for to find out if srcdir is correct. 464c074d1c9Sdrahnac_unique_file=move-if-change 465c074d1c9Sdrahn 466c074d1c9Sdrahn# Find the source files, if location was not specified. 467c074d1c9Sdrahnif test -z "$srcdir"; then 468c074d1c9Sdrahn ac_srcdir_defaulted=yes 469c074d1c9Sdrahn # Try the directory containing this script, then its parent. 470c074d1c9Sdrahn ac_prog=$0 471c074d1c9Sdrahn ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 472c074d1c9Sdrahn test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 473c074d1c9Sdrahn srcdir=$ac_confdir 474c074d1c9Sdrahn if test ! -r $srcdir/$ac_unique_file; then 475c074d1c9Sdrahn srcdir=.. 476c074d1c9Sdrahn fi 477c074d1c9Sdrahnelse 478c074d1c9Sdrahn ac_srcdir_defaulted=no 479c074d1c9Sdrahnfi 480c074d1c9Sdrahnif test ! -r $srcdir/$ac_unique_file; then 481c074d1c9Sdrahn if test "$ac_srcdir_defaulted" = yes; then 482c074d1c9Sdrahn { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 483c074d1c9Sdrahn else 484c074d1c9Sdrahn { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 485c074d1c9Sdrahn fi 486c074d1c9Sdrahnfi 487c074d1c9Sdrahnsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 488c074d1c9Sdrahn 489c074d1c9Sdrahn# Prefer explicitly selected file to automatically selected ones. 490c074d1c9Sdrahnif test -z "$CONFIG_SITE"; then 491c074d1c9Sdrahn if test "x$prefix" != xNONE; then 492c074d1c9Sdrahn CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 493c074d1c9Sdrahn else 494c074d1c9Sdrahn CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 495c074d1c9Sdrahn fi 496c074d1c9Sdrahnfi 497c074d1c9Sdrahnfor ac_site_file in $CONFIG_SITE; do 498c074d1c9Sdrahn if test -r "$ac_site_file"; then 499c074d1c9Sdrahn echo "loading site script $ac_site_file" 500c074d1c9Sdrahn . "$ac_site_file" 501c074d1c9Sdrahn fi 502c074d1c9Sdrahndone 503c074d1c9Sdrahn 504c074d1c9Sdrahnif test -r "$cache_file"; then 505c074d1c9Sdrahn echo "loading cache $cache_file" 506c074d1c9Sdrahn . $cache_file 507c074d1c9Sdrahnelse 508c074d1c9Sdrahn echo "creating cache $cache_file" 509c074d1c9Sdrahn > $cache_file 510c074d1c9Sdrahnfi 511c074d1c9Sdrahn 512c074d1c9Sdrahnac_ext=c 513c074d1c9Sdrahn# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 514c074d1c9Sdrahnac_cpp='$CPP $CPPFLAGS' 515c074d1c9Sdrahnac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 516c074d1c9Sdrahnac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 517c074d1c9Sdrahncross_compiling=$ac_cv_prog_cc_cross 518c074d1c9Sdrahn 519c074d1c9Sdrahnac_exeext= 520c074d1c9Sdrahnac_objext=o 521c074d1c9Sdrahnif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 522c074d1c9Sdrahn # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 523c074d1c9Sdrahn if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 524c074d1c9Sdrahn ac_n= ac_c=' 525c074d1c9Sdrahn' ac_t=' ' 526c074d1c9Sdrahn else 527c074d1c9Sdrahn ac_n=-n ac_c= ac_t= 528c074d1c9Sdrahn fi 529c074d1c9Sdrahnelse 530c074d1c9Sdrahn ac_n= ac_c='\c' ac_t= 531c074d1c9Sdrahnfi 532c074d1c9Sdrahn 533c074d1c9Sdrahn 534c074d1c9Sdrahn 535c074d1c9Sdrahnac_aux_dir= 536c074d1c9Sdrahnfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 537c074d1c9Sdrahn if test -f $ac_dir/install-sh; then 538c074d1c9Sdrahn ac_aux_dir=$ac_dir 539c074d1c9Sdrahn ac_install_sh="$ac_aux_dir/install-sh -c" 540c074d1c9Sdrahn break 541c074d1c9Sdrahn elif test -f $ac_dir/install.sh; then 542c074d1c9Sdrahn ac_aux_dir=$ac_dir 543c074d1c9Sdrahn ac_install_sh="$ac_aux_dir/install.sh -c" 544c074d1c9Sdrahn break 545c074d1c9Sdrahn fi 546c074d1c9Sdrahndone 547c074d1c9Sdrahnif test -z "$ac_aux_dir"; then 548c074d1c9Sdrahn { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 549c074d1c9Sdrahnfi 550c074d1c9Sdrahnac_config_guess=$ac_aux_dir/config.guess 551c074d1c9Sdrahnac_config_sub=$ac_aux_dir/config.sub 552c074d1c9Sdrahnac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 553c074d1c9Sdrahn 554c074d1c9Sdrahn 555c074d1c9Sdrahn# Do some error checking and defaulting for the host and target type. 556c074d1c9Sdrahn# The inputs are: 557c074d1c9Sdrahn# configure --host=HOST --target=TARGET --build=BUILD NONOPT 558c074d1c9Sdrahn# 559c074d1c9Sdrahn# The rules are: 560c074d1c9Sdrahn# 1. You are not allowed to specify --host, --target, and nonopt at the 561c074d1c9Sdrahn# same time. 562c074d1c9Sdrahn# 2. Host defaults to nonopt. 563c074d1c9Sdrahn# 3. If nonopt is not specified, then host defaults to the current host, 564c074d1c9Sdrahn# as determined by config.guess. 565c074d1c9Sdrahn# 4. Target and build default to nonopt. 566c074d1c9Sdrahn# 5. If nonopt is not specified, then target and build default to host. 567c074d1c9Sdrahn 568c074d1c9Sdrahn# The aliases save the names the user supplied, while $host etc. 569c074d1c9Sdrahn# will get canonicalized. 570c074d1c9Sdrahncase $host---$target---$nonopt in 571c074d1c9SdrahnNONE---*---* | *---NONE---* | *---*---NONE) ;; 572c074d1c9Sdrahn*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 573c074d1c9Sdrahnesac 574c074d1c9Sdrahn 575c074d1c9Sdrahn 576c074d1c9Sdrahn# Make sure we can run config.sub. 577c074d1c9Sdrahnif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 578c074d1c9Sdrahnelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 579c074d1c9Sdrahnfi 580c074d1c9Sdrahn 581c074d1c9Sdrahnecho $ac_n "checking host system type""... $ac_c" 1>&6 582007c2a45Smiodecho "configure:583: checking host system type" >&5 583c074d1c9Sdrahn 584c074d1c9Sdrahnhost_alias=$host 585c074d1c9Sdrahncase "$host_alias" in 586c074d1c9SdrahnNONE) 587c074d1c9Sdrahn case $nonopt in 588c074d1c9Sdrahn NONE) 589c074d1c9Sdrahn if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 590c074d1c9Sdrahn else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 591c074d1c9Sdrahn fi ;; 592c074d1c9Sdrahn *) host_alias=$nonopt ;; 593c074d1c9Sdrahn esac ;; 594c074d1c9Sdrahnesac 595c074d1c9Sdrahn 596c074d1c9Sdrahnhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 597c074d1c9Sdrahnhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 598c074d1c9Sdrahnhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 599c074d1c9Sdrahnhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 600c074d1c9Sdrahnecho "$ac_t""$host" 1>&6 601c074d1c9Sdrahn 602c074d1c9Sdrahnecho $ac_n "checking target system type""... $ac_c" 1>&6 603007c2a45Smiodecho "configure:604: checking target system type" >&5 604c074d1c9Sdrahn 605c074d1c9Sdrahntarget_alias=$target 606c074d1c9Sdrahncase "$target_alias" in 607c074d1c9SdrahnNONE) 608c074d1c9Sdrahn case $nonopt in 609c074d1c9Sdrahn NONE) target_alias=$host_alias ;; 610c074d1c9Sdrahn *) target_alias=$nonopt ;; 611c074d1c9Sdrahn esac ;; 612c074d1c9Sdrahnesac 613c074d1c9Sdrahn 614c074d1c9Sdrahntarget=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 615c074d1c9Sdrahntarget_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 616c074d1c9Sdrahntarget_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 617c074d1c9Sdrahntarget_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 618c074d1c9Sdrahnecho "$ac_t""$target" 1>&6 619c074d1c9Sdrahn 620c074d1c9Sdrahnecho $ac_n "checking build system type""... $ac_c" 1>&6 621007c2a45Smiodecho "configure:622: checking build system type" >&5 622c074d1c9Sdrahn 623c074d1c9Sdrahnbuild_alias=$build 624c074d1c9Sdrahncase "$build_alias" in 625c074d1c9SdrahnNONE) 626c074d1c9Sdrahn case $nonopt in 627c074d1c9Sdrahn NONE) build_alias=$host_alias ;; 628c074d1c9Sdrahn *) build_alias=$nonopt ;; 629c074d1c9Sdrahn esac ;; 630c074d1c9Sdrahnesac 631c074d1c9Sdrahn 632c074d1c9Sdrahnbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 633c074d1c9Sdrahnbuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 634c074d1c9Sdrahnbuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 635c074d1c9Sdrahnbuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 636c074d1c9Sdrahnecho "$ac_t""$build" 1>&6 637c074d1c9Sdrahn 638c074d1c9Sdrahntest "$host_alias" != "$target_alias" && 639c074d1c9Sdrahn test "$program_prefix$program_suffix$program_transform_name" = \ 640c074d1c9Sdrahn NONENONEs,x,x, && 641c074d1c9Sdrahn program_prefix=${target_alias}- 642c074d1c9Sdrahn 643c074d1c9Sdrahnif test "$program_transform_name" = s,x,x,; then 644c074d1c9Sdrahn program_transform_name= 645c074d1c9Sdrahnelse 646c074d1c9Sdrahn # Double any \ or $. echo might interpret backslashes. 647c074d1c9Sdrahn cat <<\EOF_SED > conftestsed 648c074d1c9Sdrahns,\\,\\\\,g; s,\$,$$,g 649c074d1c9SdrahnEOF_SED 650c074d1c9Sdrahn program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 651c074d1c9Sdrahn rm -f conftestsed 652c074d1c9Sdrahnfi 653c074d1c9Sdrahntest "$program_prefix" != NONE && 654c074d1c9Sdrahn program_transform_name="s,^,${program_prefix},; $program_transform_name" 655c074d1c9Sdrahn# Use a double $ so make ignores it. 656c074d1c9Sdrahntest "$program_suffix" != NONE && 657c074d1c9Sdrahn program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 658c074d1c9Sdrahn 659c074d1c9Sdrahn# sed with no file args requires a program. 660c074d1c9Sdrahntest "$program_transform_name" = "" && program_transform_name="s,x,x," 661c074d1c9Sdrahn 662c074d1c9Sdrahn 663007c2a45Smiod# Get 'install' or 'install-sh' and its variants. 664007c2a45Smiod# Find a good install program. We prefer a C program (faster), 665007c2a45Smiod# so one script is as good as another. But avoid the broken or 666007c2a45Smiod# incompatible versions: 667007c2a45Smiod# SysV /etc/install, /usr/sbin/install 668007c2a45Smiod# SunOS /usr/etc/install 669007c2a45Smiod# IRIX /sbin/install 670007c2a45Smiod# AIX /bin/install 671007c2a45Smiod# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 672007c2a45Smiod# AFS /usr/afsws/bin/install, which mishandles nonexistent args 673007c2a45Smiod# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 674007c2a45Smiod# ./install, which can be erroneously created by make from ./install.sh. 675007c2a45Smiodecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 676007c2a45Smiodecho "configure:677: checking for a BSD compatible install" >&5 677007c2a45Smiodif test -z "$INSTALL"; then 678007c2a45Smiodif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 679007c2a45Smiod echo $ac_n "(cached) $ac_c" 1>&6 680007c2a45Smiodelse 681007c2a45Smiod IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 682007c2a45Smiod for ac_dir in $PATH; do 683007c2a45Smiod # Account for people who put trailing slashes in PATH elements. 684007c2a45Smiod case "$ac_dir/" in 685007c2a45Smiod /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 686007c2a45Smiod *) 687007c2a45Smiod # OSF1 and SCO ODT 3.0 have their own names for install. 688007c2a45Smiod # Don't use installbsd from OSF since it installs stuff as root 689007c2a45Smiod # by default. 690007c2a45Smiod for ac_prog in ginstall scoinst install; do 691007c2a45Smiod if test -f $ac_dir/$ac_prog; then 692007c2a45Smiod if test $ac_prog = install && 693007c2a45Smiod grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 694007c2a45Smiod # AIX install. It has an incompatible calling convention. 695007c2a45Smiod : 696007c2a45Smiod else 697007c2a45Smiod ac_cv_path_install="$ac_dir/$ac_prog -c" 698007c2a45Smiod break 2 699007c2a45Smiod fi 700007c2a45Smiod fi 701007c2a45Smiod done 702007c2a45Smiod ;; 703007c2a45Smiod esac 704007c2a45Smiod done 705007c2a45Smiod IFS="$ac_save_IFS" 706007c2a45Smiod 707007c2a45Smiodfi 708007c2a45Smiod if test "${ac_cv_path_install+set}" = set; then 709007c2a45Smiod INSTALL="$ac_cv_path_install" 710007c2a45Smiod else 711007c2a45Smiod # As a last resort, use the slow shell script. We don't cache a 712007c2a45Smiod # path for INSTALL within a source directory, because that will 713007c2a45Smiod # break other packages using the cache if that directory is 714007c2a45Smiod # removed, or if the path is relative. 715007c2a45Smiod INSTALL="$ac_install_sh" 716007c2a45Smiod fi 717007c2a45Smiodfi 718007c2a45Smiodecho "$ac_t""$INSTALL" 1>&6 719007c2a45Smiod 720007c2a45Smiod# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 721007c2a45Smiod# It thinks the first close brace ends the variable substitution. 722007c2a45Smiodtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 723007c2a45Smiod 724007c2a45Smiodtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 725007c2a45Smiod 726007c2a45Smiodtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 727007c2a45Smiod 728007c2a45Smiod 729c074d1c9Sdrahn# Autoconf M4 include file defining utility macros for complex Canadian 730c074d1c9Sdrahn# cross builds. 731c074d1c9Sdrahn 732007c2a45Smiod 733007c2a45Smiod 734007c2a45Smiod 735007c2a45Smiod 736007c2a45Smiod 737c074d1c9Sdrahn#### 738c074d1c9Sdrahn# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM 739c074d1c9Sdrahn# or AC_INIT. 740c074d1c9Sdrahn# These demand that AC_CANONICAL_SYSTEM be called beforehand. 741c074d1c9Sdrahn 742c074d1c9Sdrahn#### 743c074d1c9Sdrahn# NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path]) 744c074d1c9Sdrahn# Like AC_CHECK_TOOL, but tries a prefix of the target, not the host. 745c074d1c9Sdrahn# Code is pretty much lifted from autoconf2.53. 746c074d1c9Sdrahn 747c074d1c9Sdrahn 748c074d1c9Sdrahn 749c074d1c9Sdrahn#### 750c074d1c9Sdrahn# NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path]) 751c074d1c9Sdrahn# Like AC_CHECK_TOOL, but requires the prefix if build!=host. 752c074d1c9Sdrahn 753c074d1c9Sdrahn 754c074d1c9Sdrahn 755c074d1c9Sdrahn#### 756c074d1c9Sdrahn# NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path]) 757c074d1c9Sdrahn# Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target. 758c074d1c9Sdrahn 759c074d1c9Sdrahn 760007c2a45Smiod### 761007c2a45Smiod# AC_PROG_CPP_WERROR 762007c2a45Smiod# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which 763007c2a45Smiod# triggers warnings from the preprocessor. Will be in autoconf 2.58. 764007c2a45Smiod# For now, using this also overrides header checks to use only the 765007c2a45Smiod# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a 766007c2a45Smiod# bit harder from here). 767007c2a45Smiod# Eventually autoconf will default to checking headers with the compiler 768007c2a45Smiod# instead, and we'll have to do this differently. 769007c2a45Smiod 770007c2a45Smiod# AC_PROG_CPP_WERROR 771007c2a45Smiod 772c074d1c9Sdrahn 773c074d1c9Sdrahn### we might need to use some other shell than /bin/sh for running subshells 774b305b0f1Sespie### If we are on Windows, search for the shell. This will permit people 775b305b0f1Sespie### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure 776b305b0f1Sespie### without also having to set CONFIG_SHELL. This code will work when 777b305b0f1Sespie### using bash, which sets OSTYPE. 778b305b0f1Sespiecase "${OSTYPE}" in 779b305b0f1Sespie*win32*) 780c074d1c9Sdrahn if test x${CONFIG_SHELL} = x ; then 781c074d1c9Sdrahn if test ! -f /bin/sh ; then 782c074d1c9Sdrahn if test x${SHELL} != x && test -f ${SHELL} ; then 783b305b0f1Sespie CONFIG_SHELL=${SHELL} 784b305b0f1Sespie export CONFIG_SHELL 785b305b0f1Sespie else 786b305b0f1Sespie for prog in sh sh.exe bash bash.exe; do 787b305b0f1Sespie IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 788b305b0f1Sespie for dir in $PATH; do 789b305b0f1Sespie test -z "$dir" && dir=. 790b305b0f1Sespie if test -f $dir/$prog; then 791b305b0f1Sespie CONFIG_SHELL=$dir/$prog 792b305b0f1Sespie export CONFIG_SHELL 793b305b0f1Sespie break 794b305b0f1Sespie fi 795b305b0f1Sespie done 796b305b0f1Sespie IFS="$save_ifs" 797b305b0f1Sespie test -n "${CONFIG_SHELL}" && break 798b305b0f1Sespie done 799b305b0f1Sespie fi 800b305b0f1Sespie fi 801b305b0f1Sespie fi 802b305b0f1Sespie ;; 803b305b0f1Sespieesac 804b305b0f1Sespie 8052159047fSniklasconfig_shell=${CONFIG_SHELL-/bin/sh} 8062159047fSniklas 8072159047fSniklasprogname=$0 8082159047fSniklas# if PWD already has a value, it is probably wrong. 809c074d1c9Sdrahnif test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi 8102159047fSniklas 811007c2a45Smiod# Export original configure arguments for use by sub-configures. These 812007c2a45Smiod# will be expanded by make, so quote '$'. 813007c2a45Smiodtmp="$progname $@" 814007c2a45Smiodsed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out 815007c2a45Smiod$tmp 816007c2a45SmiodEOF_SED 817007c2a45SmiodTOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out` 818007c2a45Smiodrm -f conftestsed.out 819b305b0f1Sespie 8202159047fSniklas 821c074d1c9Sdrahnmoveifchange=${srcdir}/move-if-change 8222159047fSniklas 8232159047fSniklas# Set srcdir to "." if that's what it is. 8242159047fSniklas# This is important for multilib support. 825c074d1c9Sdrahnpwd=`${PWDCMD-pwd}` 826c074d1c9Sdrahnsrcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` 827c074d1c9Sdrahnif test "${pwd}" = "${srcpwd}" ; then 8282159047fSniklas srcdir=. 8292159047fSniklasfi 8302159047fSniklas 831c074d1c9Sdrahntopsrcdir=$srcpwd 8322159047fSniklas 833c074d1c9Sdrahnextra_host_args= 834b305b0f1Sespie# Define the trigger file to make sure configure will re-run whenever 835b305b0f1Sespie# the gcc version number changes. 836c074d1c9Sdrahnif test "${with_gcc_version_trigger+set}" = set ; then 837b305b0f1Sespie gcc_version_trigger="$with_gcc_version_trigger" 838b305b0f1Sespie gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` 839b305b0f1Sespieelse 840b305b0f1Sespie # If gcc's sources are available, define the trigger file. 841c074d1c9Sdrahn if test -f ${topsrcdir}/gcc/version.c ; then 842b305b0f1Sespie gcc_version_trigger=${topsrcdir}/gcc/version.c 843b305b0f1Sespie gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` 844c074d1c9Sdrahn case "$ac_configure_args" in 845b305b0f1Sespie *--with-gcc-version-trigger=$gcc_version_trigger* ) 846b305b0f1Sespie ;; 847b305b0f1Sespie * ) 848c074d1c9Sdrahn # Add to all subconfigure arguments: build, host, and target. 849c074d1c9Sdrahn ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger" 850b305b0f1Sespie ;; 851b305b0f1Sespie esac 852b305b0f1Sespie fi 853b305b0f1Sespiefi 854b305b0f1Sespie 855c074d1c9Sdrahn### To add a new directory to the tree, first choose whether it is a target 856c074d1c9Sdrahn### or a host dependent tool. Then put it into the appropriate list 857c074d1c9Sdrahn### (library or tools, host or target), doing a dependency sort. 858c074d1c9Sdrahn 859c074d1c9Sdrahn# Subdirs will be configured in the order listed in build_configdirs, 860c074d1c9Sdrahn# configdirs, or target_configdirs; see the serialization section below. 861c074d1c9Sdrahn 862c074d1c9Sdrahn# Dependency sorting is only needed when *configuration* must be done in 863c074d1c9Sdrahn# a particular order. In all cases a dependency should be specified in 864c074d1c9Sdrahn# the Makefile, whether or not it's implicitly specified here. 865c074d1c9Sdrahn 866c074d1c9Sdrahn# Double entries in build_configdirs, configdirs, or target_configdirs may 867c074d1c9Sdrahn# cause circular dependencies and break everything horribly. 868c074d1c9Sdrahn 869c074d1c9Sdrahn# these libraries are used by various programs built for the host environment 870c074d1c9Sdrahn# 871007c2a45Smiodhost_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib" 872c074d1c9Sdrahn 873c074d1c9Sdrahn# these tools are built for the host environment 874c074d1c9Sdrahn# Note, the powerpc-eabi build depends on sim occurring before gdb in order to 875c074d1c9Sdrahn# know that we are building the simulator. 876c074d1c9Sdrahn# binutils, gas and ld appear in that order because it makes sense to run 877c074d1c9Sdrahn# "make check" in that particular order. 878c074d1c9Sdrahnhost_tools="texinfo byacc flex bison binutils gas ld gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar" 879c074d1c9Sdrahn 880c074d1c9Sdrahn# libgcj represents the runtime libraries only used by gcj. 881c074d1c9Sdrahnlibgcj="target-libffi \ 882c074d1c9Sdrahn target-boehm-gc \ 883c074d1c9Sdrahn target-zlib \ 884c074d1c9Sdrahn target-qthreads \ 885c074d1c9Sdrahn target-libjava" 886c074d1c9Sdrahn 887c074d1c9Sdrahn# these libraries are built for the target environment, and are built after 888c074d1c9Sdrahn# the host libraries and the host tools (which may be a cross compiler) 889c074d1c9Sdrahn# 890007c2a45Smiodtarget_libraries="target-libgloss \ 891c074d1c9Sdrahn target-newlib \ 892c074d1c9Sdrahn target-libstdc++-v3 \ 893c074d1c9Sdrahn target-libf2c \ 894c074d1c9Sdrahn ${libgcj} \ 895007c2a45Smiod target-libobjc \ 896007c2a45Smiod target-libada" 897c074d1c9Sdrahn 898007c2a45Smiod# these tools are built using the target libraries, and are intended to 899007c2a45Smiod# run only in the target environment 900c074d1c9Sdrahn# 901007c2a45Smiod# note: any program that *uses* libraries that are in the "target_libraries" 902c074d1c9Sdrahn# list belongs in this list. those programs are also very likely 903c074d1c9Sdrahn# candidates for the "native_only" list which follows 904c074d1c9Sdrahn# 905c074d1c9Sdrahntarget_tools="target-examples target-groff target-gperf target-rda" 906c074d1c9Sdrahn 907c074d1c9Sdrahn################################################################################ 908c074d1c9Sdrahn 909c074d1c9Sdrahn## All tools belong in one of the four categories, and are assigned above 910c074d1c9Sdrahn## We assign ${configdirs} this way to remove all embedded newlines. This 911c074d1c9Sdrahn## is important because configure will choke if they ever get through. 912c074d1c9Sdrahn## ${configdirs} is directories we build using the host tools. 913c074d1c9Sdrahn## ${target_configdirs} is directories we build using the target tools. 914c074d1c9Sdrahn# 915c074d1c9Sdrahnconfigdirs=`echo ${host_libs} ${host_tools}` 916007c2a45Smiodtarget_configdirs=`echo ${target_libraries} ${target_tools}` 917007c2a45Smiod 918007c2a45Smiod# Only make build modules if build != host. 919007c2a45Smiod# This should be done more generally, but at the moment it doesn't matter. 920007c2a45Smiodif test ${host_alias} != ${build_alias} ; then 921007c2a45Smiod # This is the only build module. 922007c2a45Smiod build_modules=libiberty 923007c2a45Smiodelse 924007c2a45Smiod build_modules= 925007c2a45Smiodfi 926007c2a45Smiod 927c074d1c9Sdrahn 928c074d1c9Sdrahn################################################################################ 929c074d1c9Sdrahn 930c074d1c9Sdrahnsrcname="gnu development package" 931c074d1c9Sdrahn 932c074d1c9Sdrahn# This gets set non-empty for some net releases of packages. 933c074d1c9Sdrahnappdirs="" 934c074d1c9Sdrahn 935c074d1c9Sdrahn# Define is_cross_compiler to save on calls to 'test'. 936c074d1c9Sdrahnis_cross_compiler= 937c074d1c9Sdrahnif test x"${host}" = x"${target}" ; then 938c074d1c9Sdrahn is_cross_compiler=no 9392159047fSniklaselse 940c074d1c9Sdrahn is_cross_compiler=yes 9412159047fSniklasfi 9422159047fSniklas 943007c2a45Smiod# Find the build and target subdir names. 944007c2a45Smiod case ${build_alias} in 945007c2a45Smiod "") build_noncanonical=${build} ;; 946007c2a45Smiod *) build_noncanonical=${build_alias} ;; 947007c2a45Smiodesac 9482159047fSniklas 949007c2a45Smiod case ${host_alias} in 950007c2a45Smiod "") host_noncanonical=${build_noncanonical} ;; 951007c2a45Smiod *) host_noncanonical=${host_alias} ;; 952007c2a45Smiodesac 953c074d1c9Sdrahn 954007c2a45Smiod case ${target_alias} in 955007c2a45Smiod "") target_noncanonical=${host_noncanonical} ;; 956007c2a45Smiod *) target_noncanonical=${target_alias} ;; 957007c2a45Smiodesac 958c074d1c9Sdrahn 959007c2a45Smiod # Prefix 'build-' so this never conflicts with target_subdir. 960007c2a45Smiodbuild_subdir="build-${build_noncanonical}" 961007c2a45Smiod# Not really a subdirectory, but here for completeness. 962007c2a45Smiodhost_subdir=. 963007c2a45Smiod# No prefix. 964007c2a45Smiodtarget_subdir=${target_noncanonical} 965007c2a45Smiod 966c074d1c9Sdrahn 967c074d1c9Sdrahn# Skipdirs are removed silently. 968c074d1c9Sdrahnskipdirs= 969c074d1c9Sdrahn# Noconfigdirs are removed loudly. 970c074d1c9Sdrahnnoconfigdirs="" 971c074d1c9Sdrahn 972c074d1c9Sdrahnuse_gnu_ld= 973c074d1c9Sdrahn# Make sure we don't let GNU ld be added if we didn't want it. 974c074d1c9Sdrahnif test x$with_gnu_ld = xno ; then 975c074d1c9Sdrahn use_gnu_ld=no 976c074d1c9Sdrahn noconfigdirs="$noconfigdirs ld" 977c074d1c9Sdrahnfi 978c074d1c9Sdrahn 979c074d1c9Sdrahnuse_gnu_as= 980c074d1c9Sdrahn# Make sure we don't let GNU as be added if we didn't want it. 981c074d1c9Sdrahnif test x$with_gnu_as = xno ; then 982c074d1c9Sdrahn use_gnu_as=no 983c074d1c9Sdrahn noconfigdirs="$noconfigdirs gas" 984c074d1c9Sdrahnfi 985c074d1c9Sdrahn 986c074d1c9Sdrahn# some tools are so dependent upon X11 that if we're not building with X, 987c074d1c9Sdrahn# it's not even worth trying to configure, much less build, that tool. 988c074d1c9Sdrahn 989c074d1c9Sdrahncase ${with_x} in 990c074d1c9Sdrahn yes | "") ;; # the default value for this tree is that X11 is available 991c074d1c9Sdrahn no) 992c074d1c9Sdrahn skipdirs="${skipdirs} tk tix itcl libgui" 993c074d1c9Sdrahn # We won't be able to build gdbtk without X. 994c074d1c9Sdrahn enable_gdbtk=no 995c074d1c9Sdrahn ;; 996c074d1c9Sdrahn *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; 997c074d1c9Sdrahnesac 998c074d1c9Sdrahn 999c074d1c9Sdrahn# Some tools are only suitable for building in a "native" situation. 1000c074d1c9Sdrahn# Remove these if host!=target. 1001c074d1c9Sdrahnnative_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" 1002c074d1c9Sdrahn 1003c074d1c9Sdrahn# Similarly, some are only suitable for cross toolchains. 1004c074d1c9Sdrahn# Remove these if host=target. 1005c074d1c9Sdrahncross_only="target-libgloss target-newlib target-opcodes" 1006c074d1c9Sdrahn 1007c074d1c9Sdrahncase $is_cross_compiler in 1008c074d1c9Sdrahn no) skipdirs="${skipdirs} ${cross_only}" ;; 1009c074d1c9Sdrahn yes) skipdirs="${skipdirs} ${native_only}" ;; 1010c074d1c9Sdrahnesac 1011c074d1c9Sdrahn 1012c074d1c9Sdrahn# If both --with-headers and --with-libs are specified, default to 1013c074d1c9Sdrahn# --without-newlib. 1014007c2a45Smiodif test x"${with_headers}" != x && test x"${with_headers} != xno \ 1015007c2a45Smiod && test x"${with_libs}" != x && test x"${with_libs} != xno ; then 1016c074d1c9Sdrahn if test x"${with_newlib}" = x ; then 1017c074d1c9Sdrahn with_newlib=no 1018c074d1c9Sdrahn fi 1019c074d1c9Sdrahnfi 1020c074d1c9Sdrahn 1021c074d1c9Sdrahn# Recognize --with-newlib/--without-newlib. 1022c074d1c9Sdrahncase ${with_newlib} in 1023c074d1c9Sdrahn no) skipdirs="${skipdirs} target-newlib" ;; 1024c074d1c9Sdrahn yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; 1025c074d1c9Sdrahnesac 1026c074d1c9Sdrahn 1027c074d1c9Sdrahn# Configure extra directories which are host specific 1028c074d1c9Sdrahn 1029c074d1c9Sdrahncase "${host}" in 1030c074d1c9Sdrahn *-cygwin*) 1031c074d1c9Sdrahn configdirs="$configdirs libtermcap" ;; 1032c074d1c9Sdrahnesac 1033c074d1c9Sdrahn 1034c074d1c9Sdrahn# Remove more programs from consideration, based on the host or 1035c074d1c9Sdrahn# target this usually means that a port of the program doesn't 1036c074d1c9Sdrahn# exist yet. 1037c074d1c9Sdrahn 1038c074d1c9Sdrahncase "${host}" in 1039c074d1c9Sdrahn hppa*64*-*-*) 1040c074d1c9Sdrahn noconfigdirs="$noconfigdirs byacc" 1041c074d1c9Sdrahn ;; 1042007c2a45Smiod i[3456789]86-*-vsta) 1043007c2a45Smiod noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext" 1044c074d1c9Sdrahn ;; 1045007c2a45Smiod i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*) 1046007c2a45Smiod noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi" 1047c074d1c9Sdrahn ;; 1048007c2a45Smiod i[3456789]86-*-mingw32*) 1049c074d1c9Sdrahn # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv" 1050007c2a45Smiod noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool" 1051c074d1c9Sdrahn ;; 1052007c2a45Smiod i[3456789]86-*-beos*) 1053c074d1c9Sdrahn noconfigdirs="$noconfigdirs tk itcl tix libgui gdb" 1054c074d1c9Sdrahn ;; 1055c074d1c9Sdrahn *-*-cygwin*) 1056007c2a45Smiod noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl" 1057c074d1c9Sdrahn ;; 1058c074d1c9Sdrahn *-*-netbsd*) 1059007c2a45Smiod noconfigdirs="$noconfigdirs rcs" 1060c074d1c9Sdrahn ;; 1061c074d1c9Sdrahn ppc*-*-pe) 1062007c2a45Smiod noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv" 1063c074d1c9Sdrahn ;; 1064c074d1c9Sdrahn powerpc-*-beos*) 1065c074d1c9Sdrahn noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline" 1066c074d1c9Sdrahn ;; 1067c074d1c9Sdrahn *-*-darwin*) 1068c074d1c9Sdrahn noconfigdirs="$noconfigdirs tk itcl tix libgui" 1069c074d1c9Sdrahn ;; 1070c074d1c9Sdrahnesac 1071c074d1c9Sdrahn 1072007c2a45Smiod# Check whether --enable-libada or --disable-libada was given. 1073007c2a45Smiodif test "${enable_libada+set}" = set; then 1074007c2a45Smiod enableval="$enable_libada" 1075007c2a45Smiod ENABLE_LIBADA=$enableval 1076007c2a45Smiodelse 1077007c2a45Smiod ENABLE_LIBADA=yes 1078007c2a45Smiodfi 1079007c2a45Smiod 1080007c2a45Smiodif test "${ENABLE_LIBADA}" != "yes" ; then 1081007c2a45Smiod noconfigdirs="$noconfigdirs target-libada" 1082007c2a45Smiodfi 1083007c2a45Smiod 1084c074d1c9Sdrahn# Save it here so that, even in case of --enable-libgcj, if the Java 1085c074d1c9Sdrahn# front-end isn't enabled, we still get libgcj disabled. 1086c074d1c9Sdrahnlibgcj_saved=$libgcj 1087c074d1c9Sdrahncase $enable_libgcj in 1088c074d1c9Sdrahnyes) 1089c074d1c9Sdrahn # If we reset it here, it won't get added to noconfigdirs in the 1090c074d1c9Sdrahn # target-specific build rules, so it will be forcibly enabled 1091c074d1c9Sdrahn # (unless the Java language itself isn't enabled). 1092c074d1c9Sdrahn libgcj= 1093c074d1c9Sdrahn ;; 1094c074d1c9Sdrahnno) 1095c074d1c9Sdrahn # Make sure we get it printed in the list of not supported target libs. 1096c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1097c074d1c9Sdrahn ;; 1098c074d1c9Sdrahnesac 1099c074d1c9Sdrahn 1100c074d1c9Sdrahncase "${target}" in 1101c074d1c9Sdrahn *-*-openbsd.*) 1102c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libiberty" 1103c074d1c9Sdrahn noconfigdirs="$noconfigdirs gdb" 1104c074d1c9Sdrahn ;; 1105c074d1c9Sdrahnesac 1106c074d1c9Sdrahn 1107c074d1c9Sdrahncase "${target}" in 1108c074d1c9Sdrahn *-*-chorusos) 1109c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1110c074d1c9Sdrahn ;; 1111007c2a45Smiod powerpc-*-darwin*) 1112007c2a45Smiod noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" 1113007c2a45Smiod noconfigdirs="$noconfigdirs target-libobjc" 1114007c2a45Smiod ;; 1115c074d1c9Sdrahn *-*-darwin*) 1116c074d1c9Sdrahn noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" 1117c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libobjc ${libgcj}" 1118c074d1c9Sdrahn ;; 1119c074d1c9Sdrahn *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) 1120c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1121c074d1c9Sdrahn ;; 1122c074d1c9Sdrahn *-*-kaos*) 1123c074d1c9Sdrahn # Remove unsupported stuff on all kaOS configurations. 1124c074d1c9Sdrahn skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-libf2c target-librx" 1125c074d1c9Sdrahn skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf" 1126c074d1c9Sdrahn skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib" 1127c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss" 1128c074d1c9Sdrahn ;; 1129c074d1c9Sdrahn *-*-netbsd*) 1130c074d1c9Sdrahn # Skip some stuff on all NetBSD configurations. 1131c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" 1132c074d1c9Sdrahn 1133c074d1c9Sdrahn # Skip some stuff that's unsupported on some NetBSD configurations. 1134c074d1c9Sdrahn case "${target}" in 1135c074d1c9Sdrahn i*86-*-netbsdelf*) ;; 1136c074d1c9Sdrahn arm*-*-netbsdelf*) ;; 1137c074d1c9Sdrahn *) 1138c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1139c074d1c9Sdrahn ;; 1140c074d1c9Sdrahn esac 1141c074d1c9Sdrahn ;; 1142c074d1c9Sdrahn *-*-netware) 1143c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}" 1144c074d1c9Sdrahn ;; 1145c074d1c9Sdrahn *-*-rtems*) 1146c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1147c074d1c9Sdrahn case ${target} in 1148c074d1c9Sdrahn h8300*-*-* | h8500-*-*) 1149c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libf2c" 11502159047fSniklas ;; 11512159047fSniklas *) ;; 11522159047fSniklas esac 1153c074d1c9Sdrahn ;; 1154007c2a45Smiod *-*-uclinux*) 1155007c2a45Smiod noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" 1156007c2a45Smiod ;; 1157c074d1c9Sdrahn *-*-vxworks*) 1158007c2a45Smiod noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}" 1159c074d1c9Sdrahn ;; 1160c074d1c9Sdrahn alpha*-dec-osf*) 1161c074d1c9Sdrahn # ld works, but does not support shared libraries. 1162c074d1c9Sdrahn # newlib is not 64 bit ready. I'm not sure about fileutils. 1163c074d1c9Sdrahn # gas doesn't generate exception information. 1164c074d1c9Sdrahn noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" 1165c074d1c9Sdrahn ;; 1166c074d1c9Sdrahn alpha*-*-*vms*) 1167c074d1c9Sdrahn noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" 1168c074d1c9Sdrahn ;; 1169c074d1c9Sdrahn alpha*-*-linux*) 1170c074d1c9Sdrahn # newlib is not 64 bit ready 1171c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib target-libgloss" 1172c074d1c9Sdrahn ;; 1173007c2a45Smiod alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) 1174c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib target-libgloss" 1175c074d1c9Sdrahn ;; 1176c074d1c9Sdrahn alpha*-*-*) 1177c074d1c9Sdrahn # newlib is not 64 bit ready 1178c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1179c074d1c9Sdrahn ;; 1180007c2a45Smiod am33_2.0-*-linux*) 1181007c2a45Smiod noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" 1182007c2a45Smiod ;; 1183c074d1c9Sdrahn sh-*-linux*) 1184c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" 1185c074d1c9Sdrahn ;; 1186c074d1c9Sdrahn sh*-*-pe|mips*-*-pe|*arm-wince-pe) 1187c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1188c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-examples" 1189c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" 1190c074d1c9Sdrahn noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim" 1191c074d1c9Sdrahn noconfigdirs="$noconfigdirs expect dejagnu" 1192c074d1c9Sdrahn # the C++ libraries don't build on top of CE's C libraries 1193c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libstdc++-v3" 1194c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib" 1195c074d1c9Sdrahn case "${host}" in 1196c074d1c9Sdrahn *-*-cygwin*) ;; # keep gdb and readline 1197c074d1c9Sdrahn *) noconfigdirs="$noconfigdirs gdb readline" 1198c074d1c9Sdrahn ;; 1199c074d1c9Sdrahn esac 1200c074d1c9Sdrahn ;; 1201c074d1c9Sdrahn arc-*-*) 1202c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1203c074d1c9Sdrahn ;; 1204c074d1c9Sdrahn arm-*-coff | strongarm-*-coff | xscale-*-coff) 1205c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1206c074d1c9Sdrahn ;; 1207c074d1c9Sdrahn arm-*-elf* | strongarm-*-elf* | xscale-*-elf*) 1208c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libffi target-qthreads" 1209c074d1c9Sdrahn ;; 1210c074d1c9Sdrahn arm-*-pe*) 1211c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1212c074d1c9Sdrahn ;; 1213c074d1c9Sdrahn arm-*-oabi*) 1214c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1215c074d1c9Sdrahn ;; 1216c074d1c9Sdrahn thumb-*-coff) 1217c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1218c074d1c9Sdrahn ;; 1219c074d1c9Sdrahn thumb-*-elf) 1220c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1221c074d1c9Sdrahn ;; 1222c074d1c9Sdrahn thumb-*-oabi) 1223c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1224c074d1c9Sdrahn ;; 1225c074d1c9Sdrahn thumb-*-pe) 1226c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1227c074d1c9Sdrahn ;; 1228c074d1c9Sdrahn arm-*-riscix*) 1229c074d1c9Sdrahn noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" 1230c074d1c9Sdrahn ;; 1231c074d1c9Sdrahn avr-*-*) 1232c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" 1233c074d1c9Sdrahn ;; 1234c074d1c9Sdrahn c4x-*-* | tic4x-*-*) 1235c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" 1236c074d1c9Sdrahn ;; 1237c074d1c9Sdrahn c54x*-*-* | tic54x-*-*) 1238c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" 1239c074d1c9Sdrahn ;; 1240c074d1c9Sdrahn cris-*-*) 1241007c2a45Smiod noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" 1242c074d1c9Sdrahn ;; 1243c074d1c9Sdrahn d10v-*-*) 1244c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" 1245c074d1c9Sdrahn ;; 1246c074d1c9Sdrahn d30v-*-*) 1247007c2a45Smiod noconfigdirs="$noconfigdirs ${libgcj} gdb" 1248c074d1c9Sdrahn ;; 1249c074d1c9Sdrahn fr30-*-elf*) 1250007c2a45Smiod noconfigdirs="$noconfigdirs ${libgcj} gdb" 1251c074d1c9Sdrahn ;; 1252c074d1c9Sdrahn frv-*-*) 1253c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1254c074d1c9Sdrahn ;; 1255c074d1c9Sdrahn h8300*-*-*) 1256007c2a45Smiod noconfigdirs="$noconfigdirs target-libgloss ${libgcj} target-libf2c" 1257c074d1c9Sdrahn ;; 1258c074d1c9Sdrahn h8500-*-*) 1259c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} target-libf2c" 1260c074d1c9Sdrahn ;; 1261c074d1c9Sdrahn hppa*64*-*-linux* | parisc*64*-*-linux*) 1262c074d1c9Sdrahn # In this case, it's because the hppa64-linux target is for 1263c074d1c9Sdrahn # the kernel only at this point and has no libc, and thus no 1264c074d1c9Sdrahn # headers, crt*.o, etc., all of which are needed by these. 1265c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-zlib" 1266c074d1c9Sdrahn ;; 1267c074d1c9Sdrahn hppa*-*-*elf* | \ 1268c074d1c9Sdrahn parisc*-*-linux* | hppa*-*-linux* | \ 1269c074d1c9Sdrahn hppa*-*-lites* | \ 1270c074d1c9Sdrahn hppa*-*-openbsd* | \ 1271c074d1c9Sdrahn hppa*64*-*-*) 1272c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1273c074d1c9Sdrahn # Do configure ld/binutils/gas for this case. 1274c074d1c9Sdrahn ;; 1275c074d1c9Sdrahn hppa*-*-*) 1276c074d1c9Sdrahn # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't 1277c074d1c9Sdrahn # build on HP-UX 10.20. 1278c074d1c9Sdrahn noconfigdirs="$noconfigdirs ld shellutils ${libgcj}" 1279c074d1c9Sdrahn ;; 1280007c2a45Smiod i960-*-*) 1281007c2a45Smiod noconfigdirs="$noconfigdirs ${libgcj} gdb" 1282007c2a45Smiod ;; 1283c074d1c9Sdrahn ia64*-*-elf*) 1284c074d1c9Sdrahn # No gdb support yet. 1285c074d1c9Sdrahn noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb" 1286c074d1c9Sdrahn ;; 1287c074d1c9Sdrahn ia64*-**-hpux*) 1288c074d1c9Sdrahn # No gdb or ld support yet. 1289007c2a45Smiod noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld" 1290c074d1c9Sdrahn ;; 1291007c2a45Smiod i[3456789]86-*-coff | i[3456789]86-*-elf) 1292c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1293c074d1c9Sdrahn ;; 1294007c2a45Smiod i[3456789]86-*-freebsd* | i[3456789]86-*-kfreebsd*-gnu) 1295c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib target-libgloss" 1296c074d1c9Sdrahn ;; 1297007c2a45Smiod i[3456789]86-*-linux*) 1298c074d1c9Sdrahn # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's 1299c074d1c9Sdrahn # not build java stuff by default. 1300c074d1c9Sdrahn case "${target}" in 1301c074d1c9Sdrahn *-*-*libc1*) 1302c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}";; 1303c074d1c9Sdrahn esac 13042159047fSniklas 1305c074d1c9Sdrahn # This section makes it possible to build newlib natively on linux. 1306c074d1c9Sdrahn # If we are using a cross compiler then don't configure newlib. 1307c074d1c9Sdrahn if test x${is_cross_compiler} != xno ; then 1308c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib" 13092159047fSniklas fi 1310c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss" 1311c074d1c9Sdrahn # If we are not using a cross compiler, do configure newlib. 1312c074d1c9Sdrahn # Note however, that newlib will only be configured in this situation 1313c074d1c9Sdrahn # if the --with-newlib option has been given, because otherwise 1314c074d1c9Sdrahn # 'target-newlib' will appear in skipdirs. 1315c074d1c9Sdrahn ;; 1316007c2a45Smiod i[3456789]86-*-mingw32*) 1317c074d1c9Sdrahn target_configdirs="$target_configdirs target-mingw" 1318c074d1c9Sdrahn noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}" 1319c074d1c9Sdrahn 1320c074d1c9Sdrahn # Can't build gdb for mingw32 if not native. 1321c074d1c9Sdrahn case "${host}" in 1322007c2a45Smiod i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc. 1323c074d1c9Sdrahn *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv" 1324c074d1c9Sdrahn ;; 1325c074d1c9Sdrahn esac 1326c074d1c9Sdrahn ;; 1327c074d1c9Sdrahn *-*-cygwin*) 1328c074d1c9Sdrahn target_configdirs="$target_configdirs target-libtermcap target-winsup" 1329c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" 1330c074d1c9Sdrahn # always build newlib. 1331c074d1c9Sdrahn skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 1332c074d1c9Sdrahn 1333c074d1c9Sdrahn # Can't build gdb for Cygwin if not native. 1334c074d1c9Sdrahn case "${host}" in 1335c074d1c9Sdrahn *-*-cygwin*) ;; # keep gdb tcl tk expect etc. 1336c074d1c9Sdrahn *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv" 1337c074d1c9Sdrahn ;; 1338c074d1c9Sdrahn esac 1339c074d1c9Sdrahn ;; 1340007c2a45Smiod i[3456789]86-*-pe) 1341c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" 1342c074d1c9Sdrahn ;; 1343007c2a45Smiod i[3456789]86-*-sco3.2v5*) 1344c074d1c9Sdrahn # The linker does not yet know about weak symbols in COFF, 1345c074d1c9Sdrahn # and is not configured to handle mixed ELF and COFF. 1346c074d1c9Sdrahn noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" 1347c074d1c9Sdrahn ;; 1348007c2a45Smiod i[3456789]86-*-sco*) 1349c074d1c9Sdrahn noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1350c074d1c9Sdrahn ;; 1351007c2a45Smiod i[3456789]86-*-solaris2*) 1352c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss" 1353c074d1c9Sdrahn ;; 1354007c2a45Smiod i[3456789]86-*-sysv4*) 1355c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1356c074d1c9Sdrahn ;; 1357007c2a45Smiod i[3456789]86-*-beos*) 1358c074d1c9Sdrahn noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" 1359c074d1c9Sdrahn ;; 1360007c2a45Smiod m32r-*-*) 1361007c2a45Smiod noconfigdirs="$noconfigdirs ${libgcj}" 1362007c2a45Smiod ;; 1363c074d1c9Sdrahn m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) 1364c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" 1365c074d1c9Sdrahn ;; 1366c074d1c9Sdrahn m68k-*-elf*) 1367c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1368c074d1c9Sdrahn ;; 1369c074d1c9Sdrahn m68k-*-coff*) 1370c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1371c074d1c9Sdrahn ;; 1372c074d1c9Sdrahn mcore-*-pe*) 1373c074d1c9Sdrahn # The EPOC C++ environment does not support exceptions or rtti, 1374c074d1c9Sdrahn # and so building libstdc++-v3 tends not to always work. 1375c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libstdc++-v3" 1376c074d1c9Sdrahn ;; 1377c074d1c9Sdrahn mmix-*-*) 1378c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss" 1379c074d1c9Sdrahn ;; 1380c074d1c9Sdrahn mn10200-*-*) 1381c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1382c074d1c9Sdrahn ;; 1383c074d1c9Sdrahn mn10300-*-*) 1384c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1385c074d1c9Sdrahn ;; 1386c074d1c9Sdrahn powerpc-*-aix*) 1387c074d1c9Sdrahn # copied from rs6000-*-* entry 1388007c2a45Smiod noconfigdirs="$noconfigdirs gprof target-libada target-libgloss ${libgcj}" 1389c074d1c9Sdrahn ;; 1390c074d1c9Sdrahn powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) 1391c074d1c9Sdrahn target_configdirs="$target_configdirs target-winsup" 1392c074d1c9Sdrahn noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}" 1393c074d1c9Sdrahn # always build newlib. 1394c074d1c9Sdrahn skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` 1395c074d1c9Sdrahn ;; 1396c074d1c9Sdrahn # This is temporary until we can link against shared libraries 1397c074d1c9Sdrahn powerpcle-*-solaris*) 1398c074d1c9Sdrahn noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}" 1399c074d1c9Sdrahn ;; 1400c074d1c9Sdrahn powerpc-*-beos*) 1401c074d1c9Sdrahn noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" 1402c074d1c9Sdrahn ;; 1403c074d1c9Sdrahn powerpc-*-eabi) 1404c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1405c074d1c9Sdrahn ;; 1406c074d1c9Sdrahn rs6000-*-lynxos*) 1407c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" 1408c074d1c9Sdrahn ;; 1409c074d1c9Sdrahn rs6000-*-aix*) 1410007c2a45Smiod noconfigdirs="$noconfigdirs gprof target-libada target-libgloss ${libgcj}" 1411c074d1c9Sdrahn ;; 1412c074d1c9Sdrahn rs6000-*-*) 1413c074d1c9Sdrahn noconfigdirs="$noconfigdirs gprof ${libgcj}" 1414c074d1c9Sdrahn ;; 1415c074d1c9Sdrahn m68k-apollo-*) 1416c074d1c9Sdrahn noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" 1417c074d1c9Sdrahn ;; 1418c074d1c9Sdrahn mips*-*-irix5*) 1419007c2a45Smiod noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1420c074d1c9Sdrahn ;; 1421c074d1c9Sdrahn mips*-*-irix6*) 1422c074d1c9Sdrahn # Linking libjava exceeds command-line length limits on at least 1423c074d1c9Sdrahn # IRIX 6.2, but not on IRIX 6.5. 1424c074d1c9Sdrahn # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham 1425c074d1c9Sdrahn # <oldham@codesourcery.com> 1426c074d1c9Sdrahn noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1427c074d1c9Sdrahn ;; 1428c074d1c9Sdrahn mips*-dec-bsd*) 1429c074d1c9Sdrahn noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1430c074d1c9Sdrahn ;; 1431007c2a45Smiod mips*-*-openbsd*) 1432007c2a45Smiod noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1433007c2a45Smiod ;; 1434c074d1c9Sdrahn mips*-*-bsd*) 1435c074d1c9Sdrahn noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" 1436c074d1c9Sdrahn ;; 1437c074d1c9Sdrahn mipstx39-*-*) 1438c074d1c9Sdrahn noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips 1439c074d1c9Sdrahn ;; 1440c074d1c9Sdrahn mips*-*-linux*) 1441c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib target-libgloss" 1442c074d1c9Sdrahn ;; 1443c074d1c9Sdrahn mips*-*-*) 1444c074d1c9Sdrahn noconfigdirs="$noconfigdirs gprof ${libgcj}" 1445c074d1c9Sdrahn ;; 1446c074d1c9Sdrahn romp-*-*) 1447c074d1c9Sdrahn noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" 1448c074d1c9Sdrahn ;; 1449c074d1c9Sdrahn sh-*-*) 1450c074d1c9Sdrahn case "${host}" in 1451007c2a45Smiod i[3456789]86-*-vsta) ;; # don't add gprof back in 1452007c2a45Smiod i[3456789]86-*-go32*) ;; # don't add gprof back in 1453007c2a45Smiod i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in 1454c074d1c9Sdrahn *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; 1455c074d1c9Sdrahn esac 1456c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1457c074d1c9Sdrahn ;; 1458c074d1c9Sdrahn sh64-*-*) 1459c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1460c074d1c9Sdrahn ;; 1461c074d1c9Sdrahn sparc-*-elf*) 1462c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1463c074d1c9Sdrahn ;; 1464c074d1c9Sdrahn sparc64-*-elf*) 1465c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1466c074d1c9Sdrahn ;; 1467c074d1c9Sdrahn sparclite-*-*) 1468c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1469c074d1c9Sdrahn ;; 1470c074d1c9Sdrahn sparc-*-sunos4*) 1471c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1472c074d1c9Sdrahn if test x${is_cross_compiler} != xno ; then 1473c074d1c9Sdrahn noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" 1474c074d1c9Sdrahn else 1475c074d1c9Sdrahn use_gnu_ld=no 1476c074d1c9Sdrahn fi 1477c074d1c9Sdrahn ;; 1478c074d1c9Sdrahn sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) 1479c074d1c9Sdrahn ;; 1480c074d1c9Sdrahn v810-*-*) 1481c074d1c9Sdrahn noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" 1482c074d1c9Sdrahn ;; 1483c074d1c9Sdrahn v850-*-*) 1484c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1485c074d1c9Sdrahn ;; 1486c074d1c9Sdrahn v850e-*-*) 1487c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1488c074d1c9Sdrahn ;; 1489c074d1c9Sdrahn v850ea-*-*) 1490c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" 1491c074d1c9Sdrahn ;; 1492007c2a45Smiod vax-*-openbsd*) 1493*6bf90127Smiod noconfigdirs="$noconfigdirs ${libgcj}" 1494007c2a45Smiod ;; 1495c074d1c9Sdrahn vax-*-vms) 1496c074d1c9Sdrahn noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" 1497c074d1c9Sdrahn ;; 1498c074d1c9Sdrahn vax-*-*) 1499c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1500c074d1c9Sdrahn ;; 1501007c2a45Smiod xtensa-*-*) 1502007c2a45Smiod noconfigdirs="$noconfigdirs ${libgcj}" 1503007c2a45Smiod ;; 1504c074d1c9Sdrahn ip2k-*-*) 1505c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" 1506c074d1c9Sdrahn ;; 1507c074d1c9Sdrahn *-*-linux*) 1508c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib target-libgloss" 1509c074d1c9Sdrahn ;; 1510c074d1c9Sdrahn *-*-lynxos*) 1511c074d1c9Sdrahn noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" 1512c074d1c9Sdrahn ;; 1513c074d1c9Sdrahn *-*-*) 1514c074d1c9Sdrahn noconfigdirs="$noconfigdirs ${libgcj}" 1515c074d1c9Sdrahn ;; 1516c074d1c9Sdrahnesac 1517c074d1c9Sdrahn 1518c074d1c9Sdrahn# If we aren't building newlib, then don't build libgloss, since libgloss 1519c074d1c9Sdrahn# depends upon some newlib header files. 1520c074d1c9Sdrahncase "${noconfigdirs}" in 1521c074d1c9Sdrahn *target-libgloss*) ;; 1522c074d1c9Sdrahn *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; 1523c074d1c9Sdrahnesac 1524c074d1c9Sdrahn 1525c074d1c9Sdrahn# Figure out what language subdirectories are present. 1526c074d1c9Sdrahn# Look if the user specified --enable-languages="..."; if not, use 1527c074d1c9Sdrahn# the environment variable $LANGUAGES if defined. $LANGUAGES might 1528c074d1c9Sdrahn# go away some day. 1529c074d1c9Sdrahn# NB: embedded tabs in this IF block -- do not untabify 1530c074d1c9Sdrahnif test x"${enable_languages+set}" != xset; then 1531c074d1c9Sdrahn if test x"${LANGUAGES+set}" = xset; then 1532c074d1c9Sdrahn enable_languages="${LANGUAGES}" 1533c074d1c9Sdrahn echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 1534c074d1c9Sdrahn else 1535c074d1c9Sdrahn enable_languages=all 1536c074d1c9Sdrahn fi 1537c074d1c9Sdrahnelse 1538c074d1c9Sdrahn if test x"${enable_languages}" = x || 1539c074d1c9Sdrahn test x"${enable_languages}" = xyes; 1540c074d1c9Sdrahn then 1541c074d1c9Sdrahn echo configure.in: --enable-languages needs at least one language argument 1>&2 1542c074d1c9Sdrahn exit 1 1543c074d1c9Sdrahn fi 1544c074d1c9Sdrahnfi 1545c074d1c9Sdrahnenable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` 1546c074d1c9Sdrahn 1547c074d1c9Sdrahn# First scan to see if an enabled language requires some other language. 1548c074d1c9Sdrahn# We assume that a given config-lang.in will list all the language 1549c074d1c9Sdrahn# front ends it requires, even if some are required indirectly. 1550007c2a45Smiodfor lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 1551007c2a45Smiod case ${lang_frag} in 1552c074d1c9Sdrahn ..) ;; 1553c074d1c9Sdrahn # The odd quoting in the next line works around 1554c074d1c9Sdrahn # an apparent bug in bash 1.12 on linux. 1555c074d1c9Sdrahn ${srcdir}/gcc/[*]/config-lang.in) ;; 1556c074d1c9Sdrahn *) 1557007c2a45Smiod # From the config-lang.in, get $language, $lang_requires 1558007c2a45Smiod language= 1559007c2a45Smiod lang_requires= 1560007c2a45Smiod . ${lang_frag} 1561007c2a45Smiod for other in ${lang_requires} ; do 1562c074d1c9Sdrahn case ,${enable_languages}, in 1563c074d1c9Sdrahn *,$other,*) ;; 1564c074d1c9Sdrahn *,all,*) ;; 1565007c2a45Smiod *,$language,*) 1566007c2a45Smiod echo " \`$other' language required by \`$language'; enabling" 1>&2 1567007c2a45Smiod enable_languages="${enable_languages},${other}" 1568c074d1c9Sdrahn ;; 1569c074d1c9Sdrahn esac 1570c074d1c9Sdrahn done 1571c074d1c9Sdrahn ;; 1572c074d1c9Sdrahn esac 1573c074d1c9Sdrahndone 1574c074d1c9Sdrahn 1575007c2a45Smiodfor lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do 1576007c2a45Smiod case ${lang_frag} in 1577c074d1c9Sdrahn ..) ;; 1578c074d1c9Sdrahn # The odd quoting in the next line works around 1579c074d1c9Sdrahn # an apparent bug in bash 1.12 on linux. 1580c074d1c9Sdrahn ${srcdir}/gcc/[*]/config-lang.in) ;; 1581c074d1c9Sdrahn *) 1582007c2a45Smiod # From the config-lang.in, get $language, $target_libs, 1583007c2a45Smiod # $lang_dirs, and $build_by_default 1584007c2a45Smiod language= 1585007c2a45Smiod target_libs= 1586007c2a45Smiod lang_dirs= 1587007c2a45Smiod build_by_default= 1588007c2a45Smiod . ${lang_frag} 1589007c2a45Smiod if test "x$language" = x ; then 1590007c2a45Smiod echo "${lang_frag} doesn't set \$language." 1>&2 1591c074d1c9Sdrahn exit 1 1592c074d1c9Sdrahn fi 1593007c2a45Smiod case ,${enable_languages}, in 1594007c2a45Smiod *,${language},*) 1595007c2a45Smiod # Language was explicitly selected; include it. 1596007c2a45Smiod add_this_lang=yes 1597007c2a45Smiod ;; 1598007c2a45Smiod *,all,*) 1599007c2a45Smiod # 'all' was selected; include 'default' languages. 1600007c2a45Smiod case ${build_by_default} in 1601007c2a45Smiod no) add_this_lang=no ;; 1602007c2a45Smiod *) add_this_lang=yes ;; 1603007c2a45Smiod esac 1604007c2a45Smiod ;; 1605c074d1c9Sdrahn *) add_this_lang=no ;; 1606c074d1c9Sdrahn esac 1607007c2a45Smiod case ${add_this_lang} in 1608007c2a45Smiod no) 1609007c2a45Smiod # Remove language-dependent dirs. 1610007c2a45Smiod eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" 1611007c2a45Smiod ;; 1612007c2a45Smiod esac 1613c074d1c9Sdrahn ;; 1614c074d1c9Sdrahn esac 1615c074d1c9Sdrahndone 1616c074d1c9Sdrahn 1617c074d1c9Sdrahn# Remove the entries in $skipdirs and $noconfigdirs from $configdirs and 1618c074d1c9Sdrahn# $target_configdirs. 1619c074d1c9Sdrahn# If we have the source for $noconfigdirs entries, add them to $notsupp. 1620c074d1c9Sdrahn 1621c074d1c9Sdrahnnotsupp="" 1622c074d1c9Sdrahnfor dir in . $skipdirs $noconfigdirs ; do 1623c074d1c9Sdrahn dirname=`echo $dir | sed -e s/target-//g` 1624c074d1c9Sdrahn if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 1625c074d1c9Sdrahn configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` 1626c074d1c9Sdrahn if test -r $srcdir/$dirname/configure ; then 1627c074d1c9Sdrahn if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 1628c074d1c9Sdrahn true 1629c074d1c9Sdrahn else 1630c074d1c9Sdrahn notsupp="$notsupp $dir" 1631c074d1c9Sdrahn fi 1632c074d1c9Sdrahn fi 1633c074d1c9Sdrahn fi 1634c074d1c9Sdrahn if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 1635c074d1c9Sdrahn target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` 1636c074d1c9Sdrahn if test -r $srcdir/$dirname/configure ; then 1637c074d1c9Sdrahn if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then 1638c074d1c9Sdrahn true 1639c074d1c9Sdrahn else 1640c074d1c9Sdrahn notsupp="$notsupp $dir" 1641c074d1c9Sdrahn fi 1642c074d1c9Sdrahn fi 1643c074d1c9Sdrahn fi 1644c074d1c9Sdrahndone 1645c074d1c9Sdrahn 1646c074d1c9Sdrahn# Sometimes the tools are distributed with libiberty but with no other 1647c074d1c9Sdrahn# libraries. In that case, we don't want to build target-libiberty. 1648c074d1c9Sdrahnif test -n "${target_configdirs}" ; then 1649c074d1c9Sdrahn others= 1650c074d1c9Sdrahn for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do 1651c074d1c9Sdrahn if test "$i" != "libiberty" ; then 1652c074d1c9Sdrahn if test -r $srcdir/$i/configure ; then 1653c074d1c9Sdrahn others=yes; 1654c074d1c9Sdrahn break; 1655c074d1c9Sdrahn fi 1656c074d1c9Sdrahn fi 1657c074d1c9Sdrahn done 1658c074d1c9Sdrahn if test -z "${others}" ; then 1659c074d1c9Sdrahn target_configdirs= 1660c074d1c9Sdrahn fi 1661c074d1c9Sdrahnfi 1662c074d1c9Sdrahn 1663c074d1c9Sdrahn# Quietly strip out all directories which aren't configurable in this tree. 1664c074d1c9Sdrahn# This relies on all configurable subdirectories being autoconfiscated, which 1665c074d1c9Sdrahn# is now the case. 1666c074d1c9Sdrahnconfigdirs_all="$configdirs" 1667c074d1c9Sdrahnconfigdirs= 1668c074d1c9Sdrahnfor i in ${configdirs_all} ; do 1669c074d1c9Sdrahn if test -f ${srcdir}/$i/configure ; then 1670c074d1c9Sdrahn configdirs="${configdirs} $i" 1671c074d1c9Sdrahn fi 1672c074d1c9Sdrahndone 1673c074d1c9Sdrahntarget_configdirs_all="$target_configdirs" 1674c074d1c9Sdrahntarget_configdirs= 1675c074d1c9Sdrahnfor i in ${target_configdirs_all} ; do 1676c074d1c9Sdrahn j=`echo $i | sed -e s/target-//g` 1677c074d1c9Sdrahn if test -f ${srcdir}/$j/configure ; then 1678c074d1c9Sdrahn target_configdirs="${target_configdirs} $i" 1679c074d1c9Sdrahn fi 1680c074d1c9Sdrahndone 1681c074d1c9Sdrahn 1682c074d1c9Sdrahn# Produce a warning message for the subdirs we can't configure. 1683c074d1c9Sdrahn# This isn't especially interesting in the Cygnus tree, but in the individual 1684c074d1c9Sdrahn# FSF releases, it's important to let people know when their machine isn't 1685c074d1c9Sdrahn# supported by the one or two programs in a package. 1686c074d1c9Sdrahn 1687c074d1c9Sdrahnif test -n "${notsupp}" && test -z "${norecursion}" ; then 1688c074d1c9Sdrahn # If $appdirs is non-empty, at least one of those directories must still 1689c074d1c9Sdrahn # be configured, or we error out. (E.g., if the gas release supports a 1690c074d1c9Sdrahn # specified target in some subdirs but not the gas subdir, we shouldn't 1691c074d1c9Sdrahn # pretend that all is well.) 1692c074d1c9Sdrahn if test -n "$appdirs" ; then 1693c074d1c9Sdrahn for dir in $appdirs ; do 1694c074d1c9Sdrahn if test -r $dir/Makefile.in ; then 1695c074d1c9Sdrahn if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 1696c074d1c9Sdrahn appdirs="" 1697c074d1c9Sdrahn break 1698c074d1c9Sdrahn fi 1699c074d1c9Sdrahn if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then 1700c074d1c9Sdrahn appdirs="" 1701c074d1c9Sdrahn break 1702c074d1c9Sdrahn fi 1703c074d1c9Sdrahn fi 1704c074d1c9Sdrahn done 1705c074d1c9Sdrahn if test -n "$appdirs" ; then 1706c074d1c9Sdrahn echo "*** This configuration is not supported by this package." 1>&2 1707c074d1c9Sdrahn exit 1 1708c074d1c9Sdrahn fi 1709c074d1c9Sdrahn fi 1710c074d1c9Sdrahn # Okay, some application will build, or we don't care to check. Still 1711c074d1c9Sdrahn # notify of subdirs not getting built. 1712c074d1c9Sdrahn echo "*** This configuration is not supported in the following subdirectories:" 1>&2 1713c074d1c9Sdrahn echo " ${notsupp}" 1>&2 1714c074d1c9Sdrahn echo " (Any other directories should still work fine.)" 1>&2 1715c074d1c9Sdrahnfi 1716c074d1c9Sdrahn 1717c074d1c9Sdrahncase "$host" in 1718c074d1c9Sdrahn *msdosdjgpp*) 1719c074d1c9Sdrahn enable_gdbtk=no ;; 1720c074d1c9Sdrahnesac 1721c074d1c9Sdrahn 1722c074d1c9Sdrahncopy_dirs= 1723c074d1c9Sdrahn 1724c074d1c9Sdrahn# Handle --with-headers=XXX. If the value is not "yes", the contents of 1725c074d1c9Sdrahn# the named directory are copied to $(tooldir)/sys-include. 1726007c2a45Smiodif test x"${with_headers}" != x && test x"${with_headers}" != xno ; then 1727c074d1c9Sdrahn if test x${is_cross_compiler} = xno ; then 1728c074d1c9Sdrahn echo 1>&2 '***' --with-headers is only supported when cross compiling 1729c074d1c9Sdrahn exit 1 1730c074d1c9Sdrahn fi 1731c074d1c9Sdrahn if test x"${with_headers}" != xyes ; then 1732c074d1c9Sdrahn case "${exec_prefixoption}" in 1733c074d1c9Sdrahn "") x=${prefix} ;; 1734c074d1c9Sdrahn *) x=${exec_prefix} ;; 1735c074d1c9Sdrahn esac 1736c074d1c9Sdrahn copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include" 1737c074d1c9Sdrahn fi 1738c074d1c9Sdrahnfi 1739c074d1c9Sdrahn 1740c074d1c9Sdrahn# Handle --with-libs=XXX. If the value is not "yes", the contents of 1741c074d1c9Sdrahn# the name directories are copied to $(tooldir)/lib. Multiple directories 1742c074d1c9Sdrahn# are permitted. 1743007c2a45Smiodif test x"${with_libs}" != x && test x"${with_libs}" != xno ; then 1744c074d1c9Sdrahn if test x${is_cross_compiler} = xno ; then 1745c074d1c9Sdrahn echo 1>&2 '***' --with-libs is only supported when cross compiling 1746c074d1c9Sdrahn exit 1 1747c074d1c9Sdrahn fi 1748c074d1c9Sdrahn if test x"${with_libs}" != xyes ; then 1749c074d1c9Sdrahn # Copy the libraries in reverse order, so that files in the first named 1750c074d1c9Sdrahn # library override files in subsequent libraries. 1751c074d1c9Sdrahn case "${exec_prefixoption}" in 1752c074d1c9Sdrahn "") x=${prefix} ;; 1753c074d1c9Sdrahn *) x=${exec_prefix} ;; 1754c074d1c9Sdrahn esac 1755c074d1c9Sdrahn for l in ${with_libs}; do 1756c074d1c9Sdrahn copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}" 1757c074d1c9Sdrahn done 1758c074d1c9Sdrahn fi 1759c074d1c9Sdrahnfi 1760c074d1c9Sdrahn 1761c074d1c9Sdrahn# Handle ${copy_dirs} 1762c074d1c9Sdrahnset fnord ${copy_dirs} 1763c074d1c9Sdrahnshift 1764c074d1c9Sdrahnwhile test $# != 0 ; do 1765c074d1c9Sdrahn if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then 1766c074d1c9Sdrahn : 1767c074d1c9Sdrahn else 1768c074d1c9Sdrahn echo Copying $1 to $2 1769c074d1c9Sdrahn 1770c074d1c9Sdrahn # Use the install script to create the directory and all required 1771c074d1c9Sdrahn # parent directories. 1772c074d1c9Sdrahn if test -d $2 ; then 1773c074d1c9Sdrahn : 1774c074d1c9Sdrahn else 1775c074d1c9Sdrahn echo >config.temp 1776c074d1c9Sdrahn ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED 1777c074d1c9Sdrahn fi 1778c074d1c9Sdrahn 1779c074d1c9Sdrahn # Copy the directory, assuming we have tar. 1780c074d1c9Sdrahn # FIXME: Should we use B in the second tar? Not all systems support it. 1781c074d1c9Sdrahn (cd $1; tar -cf - .) | (cd $2; tar -xpf -) 1782c074d1c9Sdrahn 1783c074d1c9Sdrahn # It is the responsibility of the user to correctly adjust all 1784c074d1c9Sdrahn # symlinks. If somebody can figure out how to handle them correctly 1785c074d1c9Sdrahn # here, feel free to add the code. 1786c074d1c9Sdrahn 1787c074d1c9Sdrahn echo $1 > $2/COPIED 1788c074d1c9Sdrahn fi 1789c074d1c9Sdrahn shift; shift 1790c074d1c9Sdrahndone 1791c074d1c9Sdrahn 1792c074d1c9Sdrahn# Work in distributions that contain no compiler tools, like Autoconf. 1793c074d1c9Sdrahntentative_cc="" 1794c074d1c9Sdrahnhost_makefile_frag=/dev/null 1795c074d1c9Sdrahnif test -d ${srcdir}/config ; then 1796c074d1c9Sdrahncase "${host}" in 1797c074d1c9Sdrahn m68k-hp-hpux*) 1798c074d1c9Sdrahn # Avoid "too much defining" errors from HPUX compiler. 1799c074d1c9Sdrahn tentative_cc="cc -Wp,-H256000" 1800c074d1c9Sdrahn # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding. 1801c074d1c9Sdrahn # If it's HP/UX ar, this should be harmless. 1802c074d1c9Sdrahn RANLIB="ar ts" 1803c074d1c9Sdrahn ;; 1804c074d1c9Sdrahn m68k-apollo-sysv*) 1805c074d1c9Sdrahn tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" 1806c074d1c9Sdrahn ;; 1807c074d1c9Sdrahn m68k-apollo-bsd*) 1808c074d1c9Sdrahn #None of the Apollo compilers can compile gas or binutils. The preprocessor 1809c074d1c9Sdrahn # chokes on bfd, the compiler won't let you assign integers to enums, and 1810c074d1c9Sdrahn # other problems. Defining CC to gcc is a questionable way to say "don't use 1811c074d1c9Sdrahn # the apollo compiler" (the preferred version of GCC could be called cc, 1812c074d1c9Sdrahn # or whatever), but I'm not sure leaving CC as cc is any better... 1813c074d1c9Sdrahn #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG 1814c074d1c9Sdrahn # Used to have BISON=yacc. 1815c074d1c9Sdrahn tentative_cc=gcc 1816c074d1c9Sdrahn ;; 1817c074d1c9Sdrahn m88k-dg-dgux*) 1818c074d1c9Sdrahn tentative_cc="gcc -Wall -ansi -D__using_DGUX" 1819c074d1c9Sdrahn ;; 1820c074d1c9Sdrahn m88k-harris-cxux*) 1821c074d1c9Sdrahn # Under CX/UX, we want to tell the compiler to use ANSI mode. 1822c074d1c9Sdrahn tentative_cc="cc -Xa" 1823c074d1c9Sdrahn host_makefile_frag="config/mh-cxux" 1824c074d1c9Sdrahn ;; 1825c074d1c9Sdrahn m88k-motorola-sysv*) 1826c074d1c9Sdrahn ;; 1827c074d1c9Sdrahn mips*-dec-ultrix*) 1828c074d1c9Sdrahn tentative_cc="cc -Wf,-XNg1000" 1829c074d1c9Sdrahn host_makefile_frag="config/mh-decstation" 1830c074d1c9Sdrahn ;; 1831c074d1c9Sdrahn mips*-nec-sysv4*) 1832c074d1c9Sdrahn # The C compiler on NEC MIPS SVR4 needs bigger tables. 1833c074d1c9Sdrahn tentative_cc="cc -ZXNd=5000 -ZXNg=1000" 1834c074d1c9Sdrahn host_makefile_frag="config/mh-necv4" 1835c074d1c9Sdrahn ;; 1836c074d1c9Sdrahn mips*-sgi-irix4*) 1837c074d1c9Sdrahn # Tell compiler to use K&R C. We can't compile under the SGI Ansi 1838c074d1c9Sdrahn # environment. Also bump switch table size so that cp-parse will 1839c074d1c9Sdrahn # compile. Bump string length limit so linker builds. 1840c074d1c9Sdrahn tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192" 1841c074d1c9Sdrahn ;; 1842c074d1c9Sdrahn mips*-*-sysv4*) 1843c074d1c9Sdrahn host_makefile_frag="config/mh-sysv4" 1844c074d1c9Sdrahn ;; 1845c074d1c9Sdrahn mips*-*-sysv*) 1846c074d1c9Sdrahn # This is for a MIPS running RISC/os 4.52C. 1847c074d1c9Sdrahn 1848c074d1c9Sdrahn # This is needed for GDB, but needs to be in the top-level make because 1849c074d1c9Sdrahn # if a library is compiled with the bsd headers and gets linked with the 1850c074d1c9Sdrahn # sysv system libraries all hell can break loose (e.g. a jmp_buf might be 1851c074d1c9Sdrahn # a different size). 1852c074d1c9Sdrahn # ptrace(2) apparently has problems in the BSD environment. No workaround is 1853c074d1c9Sdrahn # known except to select the sysv environment. Could we use /proc instead? 1854c074d1c9Sdrahn # These "sysv environments" and "bsd environments" often end up being a pain. 1855c074d1c9Sdrahn # 1856c074d1c9Sdrahn # This is not part of CFLAGS because perhaps not all C compilers have this 1857c074d1c9Sdrahn # option. 1858c074d1c9Sdrahn tentative_cc="cc -systype sysv" 1859c074d1c9Sdrahn ;; 1860c074d1c9Sdrahn i370-ibm-opened*) 1861c074d1c9Sdrahn tentative_cc="c89" 1862c074d1c9Sdrahn ;; 1863007c2a45Smiod i[3456789]86-*-sysv5*) 1864c074d1c9Sdrahn host_makefile_frag="config/mh-sysv5" 1865c074d1c9Sdrahn ;; 1866007c2a45Smiod i[3456789]86-*-dgux*) 1867c074d1c9Sdrahn tentative_cc="gcc -Wall -ansi -D__using_DGUX" 1868c074d1c9Sdrahn host_makefile_frag="config/mh-dgux386" 1869c074d1c9Sdrahn ;; 1870007c2a45Smiod i[3456789]86-ncr-sysv4.3*) 1871c074d1c9Sdrahn # The MetaWare compiler will generate a copyright message unless you 1872c074d1c9Sdrahn # turn it off by adding the -Hnocopyr flag. 1873c074d1c9Sdrahn tentative_cc="cc -Hnocopyr" 1874c074d1c9Sdrahn ;; 1875007c2a45Smiod i[3456789]86-ncr-sysv4*) 1876c074d1c9Sdrahn # for an NCR 3000 (i486/SVR4) system. 1877c074d1c9Sdrahn # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc. 1878c074d1c9Sdrahn # This compiler not only emits obnoxious copyright messages every time 1879c074d1c9Sdrahn # you run it, but it chokes and dies on a whole bunch of GNU source 1880c074d1c9Sdrahn # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc. 1881c074d1c9Sdrahn tentative_cc="/usr/ccs/ATT/cc" 1882c074d1c9Sdrahn host_makefile_frag="config/mh-ncr3000" 1883c074d1c9Sdrahn ;; 1884007c2a45Smiod i[3456789]86-*-sco3.2v5*) 1885c074d1c9Sdrahn ;; 1886007c2a45Smiod i[3456789]86-*-sco*) 1887c074d1c9Sdrahn # The native C compiler botches some simple uses of const. Unfortunately, 1888c074d1c9Sdrahn # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. 1889c074d1c9Sdrahn tentative_cc="cc -Dconst=" 1890c074d1c9Sdrahn host_makefile_frag="config/mh-sco" 1891c074d1c9Sdrahn ;; 1892007c2a45Smiod i[3456789]86-*-udk*) 1893c074d1c9Sdrahn host_makefile_frag="config/mh-sysv5" 1894c074d1c9Sdrahn ;; 1895007c2a45Smiod i[3456789]86-*-solaris2*) 1896c074d1c9Sdrahn host_makefile_frag="config/mh-sysv4" 1897c074d1c9Sdrahn ;; 1898007c2a45Smiod i[3456789]86-*-msdosdjgpp*) 1899c074d1c9Sdrahn host_makefile_frag="config/mh-djgpp" 1900c074d1c9Sdrahn ;; 1901c074d1c9Sdrahn *-cygwin*) 1902c074d1c9Sdrahn host_makefile_frag="config/mh-cygwin" 1903c074d1c9Sdrahn ;; 1904c074d1c9Sdrahn *-mingw32*) 1905c074d1c9Sdrahn host_makefile_frag="config/mh-mingw32" 1906c074d1c9Sdrahn ;; 1907c074d1c9Sdrahn *-interix*) 1908c074d1c9Sdrahn host_makefile_frag="config/mh-interix" 1909c074d1c9Sdrahn ;; 1910c074d1c9Sdrahn vax-*-ultrix2*) 1911c074d1c9Sdrahn # The old BSD pcc isn't up to compiling parts of gdb so use gcc 1912c074d1c9Sdrahn tentative_cc=gcc 1913c074d1c9Sdrahn ;; 1914c074d1c9Sdrahn *-*-solaris2*) 1915c074d1c9Sdrahn host_makefile_frag="config/mh-solaris" 1916c074d1c9Sdrahn ;; 1917c074d1c9Sdrahn m68k-sun-sunos*) 1918c074d1c9Sdrahn # Sun's C compiler needs the -J flag to be able to compile cp-parse.c 1919c074d1c9Sdrahn # without overflowing the jump tables (-J says to use a 32 bit table) 1920c074d1c9Sdrahn tentative_cc="cc -J" 1921c074d1c9Sdrahn ;; 1922c074d1c9Sdrahn *-hp-hpux*) 1923c074d1c9Sdrahn tentative_cc="cc -Wp,-H256000" 1924c074d1c9Sdrahn ;; 1925c074d1c9Sdrahn *-*-hiux*) 1926c074d1c9Sdrahn tentative_cc="cc -Wp,-H256000" 1927c074d1c9Sdrahn ;; 1928c074d1c9Sdrahn rs6000-*-lynxos*) 1929c074d1c9Sdrahn # /bin/cc is less than useful for our purposes. Always use GCC 1930c074d1c9Sdrahn tentative_cc="/usr/cygnus/progressive/bin/gcc" 1931c074d1c9Sdrahn host_makefile_frag="config/mh-lynxrs6k" 1932c074d1c9Sdrahn ;; 1933c074d1c9Sdrahn *-*-lynxos*) 1934c074d1c9Sdrahn # /bin/cc is less than useful for our purposes. Always use GCC 1935c074d1c9Sdrahn tentative_cc="/bin/gcc" 1936c074d1c9Sdrahn ;; 1937c074d1c9Sdrahn *-*-sysv4*) 1938c074d1c9Sdrahn host_makefile_frag="config/mh-sysv4" 1939c074d1c9Sdrahn ;; 1940c074d1c9Sdrahnesac 1941c074d1c9Sdrahnfi 1942c074d1c9Sdrahn 1943c074d1c9Sdrahnextra_arflags_for_target= 1944c074d1c9Sdrahnextra_nmflags_for_target= 1945c074d1c9Sdrahnextra_ranlibflags_for_target= 1946c074d1c9Sdrahntarget_makefile_frag=/dev/null 1947c074d1c9Sdrahncase "${target}" in 1948007c2a45Smiod i[3456789]86-*-netware*) 1949c074d1c9Sdrahn target_makefile_frag="config/mt-netware" 1950c074d1c9Sdrahn ;; 1951c074d1c9Sdrahn powerpc-*-netware*) 1952c074d1c9Sdrahn target_makefile_frag="config/mt-netware" 1953c074d1c9Sdrahn ;; 1954c074d1c9Sdrahn *-*-linux*) 1955c074d1c9Sdrahn target_makefile_frag="config/mt-linux" 1956c074d1c9Sdrahn ;; 1957c074d1c9Sdrahn *-*-aix4.[3456789]* | *-*-aix[56789].*) 1958c074d1c9Sdrahn # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm 1959c074d1c9Sdrahn # commands to handle both 32-bit and 64-bit objects. These flags are 1960c074d1c9Sdrahn # harmless if we're using GNU nm or ar. 1961c074d1c9Sdrahn extra_arflags_for_target=" -X32_64" 1962c074d1c9Sdrahn extra_nmflags_for_target=" -B -X32_64" 1963c074d1c9Sdrahn ;; 1964c074d1c9Sdrahn *-*-darwin*) 1965c074d1c9Sdrahn # ranlib from Darwin requires the -c flag to look at common symbols. 1966c074d1c9Sdrahn extra_ranlibflags_for_target=" -c" 1967c074d1c9Sdrahn ;; 1968c074d1c9Sdrahn mips*-*-pe | sh*-*-pe | *arm-wince-pe) 1969c074d1c9Sdrahn target_makefile_frag="config/mt-wince" 1970c074d1c9Sdrahn ;; 1971c074d1c9Sdrahnesac 1972c074d1c9Sdrahn 1973c074d1c9Sdrahnalphaieee_frag=/dev/null 1974c074d1c9Sdrahncase $target in 1975c074d1c9Sdrahn alpha*-*-*) 1976c074d1c9Sdrahn # This just makes sure to use the -mieee option to build target libs. 1977c074d1c9Sdrahn # This should probably be set individually by each library. 1978c074d1c9Sdrahn alphaieee_frag="config/mt-alphaieee" 1979c074d1c9Sdrahn ;; 1980c074d1c9Sdrahnesac 1981c074d1c9Sdrahn 1982c074d1c9Sdrahn# If --enable-target-optspace always use -Os instead of -O2 to build 1983c074d1c9Sdrahn# the target libraries, similarly if it is not specified, use -Os 1984c074d1c9Sdrahn# on selected platforms. 1985c074d1c9Sdrahnospace_frag=/dev/null 1986c074d1c9Sdrahncase "${enable_target_optspace}:${target}" in 1987c074d1c9Sdrahn yes:*) 1988c074d1c9Sdrahn ospace_frag="config/mt-ospace" 1989c074d1c9Sdrahn ;; 1990c074d1c9Sdrahn :d30v-*) 1991c074d1c9Sdrahn ospace_frag="config/mt-d30v" 1992c074d1c9Sdrahn ;; 1993c074d1c9Sdrahn :m32r-* | :d10v-* | :fr30-*) 1994c074d1c9Sdrahn ospace_frag="config/mt-ospace" 1995c074d1c9Sdrahn ;; 1996c074d1c9Sdrahn no:* | :*) 19972159047fSniklas ;; 19982159047fSniklas *) 1999c074d1c9Sdrahn echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 20002159047fSniklas ;; 20012159047fSniklasesac 20022159047fSniklas 2003c074d1c9Sdrahn# Set with_gnu_as and with_gnu_ld as appropriate. 2004c074d1c9Sdrahn# 2005c074d1c9Sdrahn# This is done by determining whether or not the appropriate directory 2006c074d1c9Sdrahn# is available, and by checking whether or not specific configurations 2007c074d1c9Sdrahn# have requested that this magic not happen. 2008c074d1c9Sdrahn# 2009c074d1c9Sdrahn# The command line options always override the explicit settings in 2010c074d1c9Sdrahn# configure.in, and the settings in configure.in override this magic. 2011c074d1c9Sdrahn# 2012c074d1c9Sdrahn# If the default for a toolchain is to use GNU as and ld, and you don't 2013c074d1c9Sdrahn# want to do that, then you should use the --without-gnu-as and 2014c074d1c9Sdrahn# --without-gnu-ld options for the configure script. 2015c074d1c9Sdrahn 2016c074d1c9Sdrahnif test x${use_gnu_as} = x && 2017c074d1c9Sdrahn echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then 2018c074d1c9Sdrahn with_gnu_as=yes 2019c074d1c9Sdrahn extra_host_args="$extra_host_args --with-gnu-as" 20202159047fSniklasfi 20212159047fSniklas 2022c074d1c9Sdrahnif test x${use_gnu_ld} = x && 2023c074d1c9Sdrahn echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then 2024c074d1c9Sdrahn with_gnu_ld=yes 2025c074d1c9Sdrahn extra_host_args="$extra_host_args --with-gnu-ld" 20262159047fSniklasfi 20272159047fSniklas 2028c074d1c9Sdrahn# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure 2029c074d1c9Sdrahn# can detect this case. 20302159047fSniklas 2031c074d1c9Sdrahnif test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then 2032c074d1c9Sdrahn with_newlib=yes 2033c074d1c9Sdrahn extra_host_args="$extra_host_args --with-newlib" 20342159047fSniklasfi 2035c074d1c9Sdrahn 2036c074d1c9Sdrahn 2037c074d1c9Sdrahn# Default to using --with-stabs for certain targets. 2038c074d1c9Sdrahnif test x${with_stabs} = x ; then 2039c074d1c9Sdrahn case "${target}" in 2040007c2a45Smiod mips*-*-irix[56]*) 2041c074d1c9Sdrahn ;; 2042c074d1c9Sdrahn mips*-*-* | alpha*-*-osf*) 2043c074d1c9Sdrahn with_stabs=yes; 2044c074d1c9Sdrahn extra_host_args="${extra_host_args} --with-stabs" 2045c074d1c9Sdrahn ;; 2046c074d1c9Sdrahn esac 2047c074d1c9Sdrahnfi 2048c074d1c9Sdrahn 2049c074d1c9Sdrahn# hpux11 in 64bit mode has libraries in a weird place. Arrange to find 2050c074d1c9Sdrahn# them automatically. 2051c074d1c9Sdrahncase "${host}" in 2052c074d1c9Sdrahn hppa*64*-*-hpux11*) 2053c074d1c9Sdrahn extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" 2054c074d1c9Sdrahn ;; 20552159047fSniklasesac 20562159047fSniklas 2057c074d1c9Sdrahn# If we aren't going to be using gcc, see if we can extract a definition 2058c074d1c9Sdrahn# of CC from the fragment. 2059c074d1c9Sdrahn# Actually, use the 'pre-extracted' version above. 2060c074d1c9Sdrahnif test -z "${CC}" && test "${build}" = "${host}" ; then 2061c074d1c9Sdrahn IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 2062c074d1c9Sdrahn found= 2063c074d1c9Sdrahn for dir in $PATH; do 2064c074d1c9Sdrahn test -z "$dir" && dir=. 2065c074d1c9Sdrahn if test -f $dir/gcc; then 2066c074d1c9Sdrahn found=yes 2067c074d1c9Sdrahn break 2068c074d1c9Sdrahn fi 2069c074d1c9Sdrahn done 2070c074d1c9Sdrahn IFS="$save_ifs" 2071c074d1c9Sdrahn if test -z "${found}" && test -n "${tentative_cc}" ; then 2072c074d1c9Sdrahn CC=$tentative_cc 2073c074d1c9Sdrahn fi 20742159047fSniklasfi 20752159047fSniklas 20762159047fSniklas# Some systems (e.g., one of the i386-aix systems the gas testers are 20772159047fSniklas# using) don't handle "\$" correctly, so don't use it here. 2078007c2a45Smiodtooldir='${exec_prefix}'/${target_alias} 2079c074d1c9Sdrahnbuild_tooldir=${tooldir} 2080b305b0f1Sespie 2081c88b1d6cSniklas# Generate a default definition for YACC. This is used if the makefile can't 2082c88b1d6cSniklas# locate bison or byacc in objdir. 2083c88b1d6cSniklas 2084c88b1d6cSniklasfor prog in 'bison -y' byacc yacc 2085c88b1d6cSniklasdo 2086c88b1d6cSniklas set dummy $prog; tmp=$2 2087c88b1d6cSniklas IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 2088c88b1d6cSniklas for dir in $PATH; do 2089c88b1d6cSniklas test -z "$dir" && dir=. 2090c88b1d6cSniklas if test -f $dir/$tmp; then 2091c88b1d6cSniklas DEFAULT_YACC="$prog" 2092c88b1d6cSniklas break 2093c88b1d6cSniklas fi 2094c88b1d6cSniklas done 2095c88b1d6cSniklas IFS="$save_ifs" 2096c88b1d6cSniklas 2097c88b1d6cSniklas test -n "$DEFAULT_YACC" && break 2098c88b1d6cSniklasdone 2099c88b1d6cSniklas 2100b305b0f1Sespie# Generate a default definition for M4. This is used if the makefile can't 2101b305b0f1Sespie# locate m4 in objdir. 2102b305b0f1Sespie 2103b305b0f1Sespiefor prog in gm4 gnum4 m4 2104b305b0f1Sespiedo 2105b305b0f1Sespie set dummy $prog; tmp=$2 2106b305b0f1Sespie IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 2107b305b0f1Sespie for dir in $PATH; do 2108b305b0f1Sespie test -z "$dir" && dir=. 2109b305b0f1Sespie if test -f $dir/$tmp; then 2110b305b0f1Sespie DEFAULT_M4="$prog" 2111b305b0f1Sespie break 2112b305b0f1Sespie fi 2113b305b0f1Sespie done 2114b305b0f1Sespie IFS="$save_ifs" 2115b305b0f1Sespie 2116b305b0f1Sespie test -n "$DEFAULT_M4" && break 2117b305b0f1Sespiedone 2118b305b0f1Sespie 2119c88b1d6cSniklas# Generate a default definition for LEX. This is used if the makefile can't 2120c88b1d6cSniklas# locate flex in objdir. 2121c88b1d6cSniklas 2122c88b1d6cSniklasfor prog in flex lex 2123c88b1d6cSniklasdo 2124c88b1d6cSniklas set dummy $prog; tmp=$2 2125c88b1d6cSniklas IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 2126c88b1d6cSniklas for dir in $PATH; do 2127c88b1d6cSniklas test -z "$dir" && dir=. 2128c88b1d6cSniklas if test -f $dir/$tmp; then 2129c88b1d6cSniklas DEFAULT_LEX="$prog" 2130c88b1d6cSniklas break 2131c88b1d6cSniklas fi 2132c88b1d6cSniklas done 2133c88b1d6cSniklas IFS="$save_ifs" 2134c88b1d6cSniklas 2135c88b1d6cSniklas test -n "$DEFAULT_LEX" && break 2136c88b1d6cSniklasdone 2137c88b1d6cSniklas 2138c074d1c9Sdrahnif test "${build}" != "${host}" ; then 21392159047fSniklas # If we are doing a Canadian Cross, in which the host and build systems 21402159047fSniklas # are not the same, we set reasonable default values for the tools. 21412159047fSniklas 2142b305b0f1Sespie BISON=${BISON-bison} 21432159047fSniklas CC=${CC-${host_alias}-gcc} 2144b55d4692Sfgsch CFLAGS=${CFLAGS-"-g -O2"} 2145b305b0f1Sespie CXX=${CXX-${host_alias}-c++} 2146b305b0f1Sespie CXXFLAGS=${CXXFLAGS-"-g -O2"} 21472159047fSniklas CC_FOR_BUILD=${CC_FOR_BUILD-gcc} 21482159047fSniklas CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc} 2149b305b0f1Sespie CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++} 2150c074d1c9Sdrahn GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj} 2151e93f7393Sniklas GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}} 2152c074d1c9Sdrahn BUILD_PREFIX=${build_alias}- 2153c074d1c9Sdrahn BUILD_PREFIX_1=${build_alias}- 21542159047fSniklas MAKEINFO=${MAKEINFO-makeinfo} 21552159047fSniklas 2156c074d1c9Sdrahn if test -z "${YACC}" ; then 21572159047fSniklas IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 21582159047fSniklas for dir in $PATH; do 21592159047fSniklas test -z "$dir" && dir=. 2160b305b0f1Sespie if test -f $dir/bison; then 2161b305b0f1Sespie YACC="bison -y" 21622159047fSniklas break 21632159047fSniklas fi 2164b305b0f1Sespie if test -f $dir/byacc; then 2165b305b0f1Sespie YACC=byacc 21662159047fSniklas break 21672159047fSniklas fi 21682159047fSniklas if test -f $dir/yacc; then 2169b305b0f1Sespie YACC=yacc 21702159047fSniklas break 21712159047fSniklas fi 21722159047fSniklas done 21732159047fSniklas IFS="$save_ifs" 2174c074d1c9Sdrahn if test -z "${YACC}" ; then 2175b305b0f1Sespie YACC="bison -y" 2176b305b0f1Sespie fi 21772159047fSniklas fi 21782159047fSniklas 2179c074d1c9Sdrahn if test -z "${LEX}" ; then 21802159047fSniklas IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 21812159047fSniklas for dir in $PATH; do 21822159047fSniklas test -z "$dir" && dir=. 21832159047fSniklas if test -f $dir/flex; then 21842159047fSniklas LEX=flex 21852159047fSniklas break 21862159047fSniklas fi 21872159047fSniklas if test -f $dir/lex; then 21882159047fSniklas LEX=lex 21892159047fSniklas break 21902159047fSniklas fi 21912159047fSniklas done 21922159047fSniklas IFS="$save_ifs" 21932159047fSniklas LEX=${LEX-flex} 21942159047fSniklas fi 21952159047fSniklas 21962159047fSniklaselse 2197c074d1c9Sdrahn # Set reasonable default values for some tools even if not Canadian. 2198c074d1c9Sdrahn # Of course, these are different reasonable default values, originally 2199c074d1c9Sdrahn # specified directly in the Makefile. 2200c074d1c9Sdrahn # We don't export, so that autoconf can do its job. 2201c074d1c9Sdrahn # Note that all these settings are above the fragment inclusion point 2202c074d1c9Sdrahn # in Makefile.in, so can still be overridden by fragments. 2203c074d1c9Sdrahn # This is all going to change when we autoconfiscate... 2204c074d1c9Sdrahn 2205c074d1c9Sdrahn BISON="\$(USUAL_BISON)" 2206c074d1c9Sdrahn CC_FOR_BUILD="\$(CC)" 2207c074d1c9Sdrahn GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)" 2208c074d1c9Sdrahn BUILD_PREFIX= 2209c074d1c9Sdrahn BUILD_PREFIX_1=loser- 2210c074d1c9Sdrahn MAKEINFO="\$(USUAL_MAKEINFO)" 2211c074d1c9Sdrahn LEX="\$(USUAL_LEX)" 2212c074d1c9Sdrahn YACC="\$(USUAL_YACC)" 2213c074d1c9Sdrahn 22142159047fSniklas # If CC is still not set, try to get gcc. 2215c074d1c9Sdrahn cc_prog_is_gcc= 2216c074d1c9Sdrahn if test -z "${CC}" ; then 22172159047fSniklas IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" 22182159047fSniklas for dir in $PATH; do 22192159047fSniklas test -z "$dir" && dir=. 22202159047fSniklas if test -f $dir/gcc; then 2221b305b0f1Sespie CC="gcc" 2222c074d1c9Sdrahn cc_prog_is_gcc=yes 2223b305b0f1Sespie echo 'void f(){}' > conftest.c 2224b305b0f1Sespie if test -z "`${CC} -g -c conftest.c 2>&1`"; then 2225b55d4692Sfgsch CFLAGS=${CFLAGS-"-g -O2"} 2226b305b0f1Sespie CXXFLAGS=${CXXFLAGS-"-g -O2"} 2227b305b0f1Sespie else 2228b55d4692Sfgsch CFLAGS=${CFLAGS-"-O2"} 2229b305b0f1Sespie CXXFLAGS=${CXXFLAGS-"-O2"} 2230b305b0f1Sespie fi 2231b305b0f1Sespie rm -f conftest* 22322159047fSniklas break 22332159047fSniklas fi 22342159047fSniklas done 22352159047fSniklas IFS="$save_ifs" 22362159047fSniklas CC=${CC-cc} 2237b305b0f1Sespie else 2238c074d1c9Sdrahn # Determine if we are using gcc. 2239c074d1c9Sdrahn cat > conftest.c <<EOF 2240c074d1c9Sdrahn#ifdef __GNUC__ 2241c074d1c9Sdrahn yes; 2242c074d1c9Sdrahn#endif 2243c074d1c9SdrahnEOF 2244c074d1c9Sdrahn if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then 2245c074d1c9Sdrahn cc_prog_is_gcc=yes 2246c074d1c9Sdrahn fi 2247c074d1c9Sdrahn rm -f conftest.c 2248b305b0f1Sespie if test -z "${CFLAGS}"; then 2249b305b0f1Sespie # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC 2250b305b0f1Sespie # is set to a version of gcc. 2251c074d1c9Sdrahn if test "$cc_prog_is_gcc" = yes; then 2252b305b0f1Sespie echo 'void f(){}' > conftest.c 2253b305b0f1Sespie if test -z "`${CC} -g -c conftest.c 2>&1`"; then 2254b55d4692Sfgsch CFLAGS=${CFLAGS-"-g -O2"} 2255b305b0f1Sespie CXXFLAGS=${CXXFLAGS-"-g -O2"} 2256b305b0f1Sespie else 2257b55d4692Sfgsch CFLAGS=${CFLAGS-"-O2"} 2258b305b0f1Sespie CXXFLAGS=${CXXFLAGS-"-O2"} 2259b305b0f1Sespie fi 2260b305b0f1Sespie rm -f conftest* 2261c074d1c9Sdrahn fi 2262c074d1c9Sdrahn fi 2263c074d1c9Sdrahn fi 2264c074d1c9Sdrahn 2265c074d1c9Sdrahn # We must set the default linker to the linker used by gcc for the correct 2266c074d1c9Sdrahn # operation of libtool. If LD is not defined and we are using gcc, try to 2267c074d1c9Sdrahn # set the LD default to the ld used by gcc. 2268c074d1c9Sdrahn if test -z "$LD"; then 2269c074d1c9Sdrahn if test "$cc_prog_is_gcc" = yes; then 2270c074d1c9Sdrahn case $build in 2271c074d1c9Sdrahn *-*-mingw*) 2272c074d1c9Sdrahn gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; 2273c074d1c9Sdrahn *) 2274c074d1c9Sdrahn gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; 2275c074d1c9Sdrahn esac 2276c074d1c9Sdrahn case $gcc_prog_ld in 2277c074d1c9Sdrahn # Accept absolute paths. 2278c074d1c9Sdrahn [\\/]* | [A-Za-z]:[\\/]*) 2279c074d1c9Sdrahn LD="$gcc_prog_ld" ;; 2280b305b0f1Sespie esac 2281b305b0f1Sespie fi 22822159047fSniklas fi 22832159047fSniklas 2284b305b0f1Sespie CXX=${CXX-"c++"} 2285b305b0f1Sespie CFLAGS=${CFLAGS-"-g"} 2286b305b0f1Sespie CXXFLAGS=${CXXFLAGS-"-g -O2"} 22872159047fSniklasfi 22882159047fSniklas 22892159047fSniklas# FIXME Should this be done recursively ??? (Useful for e.g. gdbtest) 22902159047fSniklas# Set up the list of links to be made. 22912159047fSniklas# ${links} is the list of link names, and ${files} is the list of names to link to. 22922159047fSniklas 22932159047fSniklas# Make the links. 22942159047fSniklasconfiglinks="${links}" 2295c074d1c9Sdrahnif test -r ./config.status ; then 2296c074d1c9Sdrahn mv -f ./config.status ./config.back 22972159047fSniklasfi 2298c074d1c9Sdrahnwhile test -n "${files}" ; do 22992159047fSniklas # set file to car of files, files to cdr of files 23002159047fSniklas set ${files}; file=$1; shift; files=$* 23012159047fSniklas set ${links}; link=$1; shift; links=$* 23022159047fSniklas 2303c074d1c9Sdrahn if test ! -r ${srcdir}/${file} ; then 2304c074d1c9Sdrahn if test ! -r ${file} ; then 23052159047fSniklas echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2 23062159047fSniklas echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2 23072159047fSniklas exit 1 2308b305b0f1Sespie else 2309b305b0f1Sespie srcfile=${file} 2310b305b0f1Sespie fi 2311b305b0f1Sespie else 2312b305b0f1Sespie srcfile=${srcdir}/${file} 23132159047fSniklas fi 23142159047fSniklas 23152159047fSniklas ${remove} -f ${link} 23162159047fSniklas # Make a symlink if possible, otherwise try a hard link 2317b305b0f1Sespie if ${symbolic_link} ${srcfile} ${link} >/dev/null 2>&1 ; then 23182159047fSniklas true 23192159047fSniklas else 23202159047fSniklas # We need to re-remove the file because Lynx leaves a 23212159047fSniklas # very strange directory there when it fails an NFS symlink. 23222159047fSniklas ${remove} -r -f ${link} 2323b305b0f1Sespie ${hard_link} ${srcfile} ${link} 23242159047fSniklas fi 2325c074d1c9Sdrahn if test ! -r ${link} ; then 2326b305b0f1Sespie echo '***' "${progname}: unable to link \"${link}\" to \"${srcfile}\"." 1>&2 23272159047fSniklas exit 1 23282159047fSniklas fi 23292159047fSniklas 2330b305b0f1Sespie echo "Linked \"${link}\" to \"${srcfile}\"." 23312159047fSniklasdone 23322159047fSniklas 23332159047fSniklas# Create a .gdbinit file which runs the one in srcdir 23342159047fSniklas# and tells GDB to look there for source files. 23352159047fSniklas 2336c074d1c9Sdrahnif test -r ${srcdir}/.gdbinit ; then 23372159047fSniklas case ${srcdir} in 23382159047fSniklas .) ;; 2339c074d1c9Sdrahn *) cat > ./.gdbinit <<EOF 23402159047fSniklas# ${NO_EDIT} 2341c074d1c9Sdrahndir ${srcdir} 23422159047fSniklasdir . 2343c074d1c9Sdrahnsource ${srcdir}/.gdbinit 23442159047fSniklasEOF 23452159047fSniklas ;; 23462159047fSniklas esac 23472159047fSniklasfi 23482159047fSniklas 2349c074d1c9Sdrahn# Make sure that the compiler is able to generate an executable. If it 2350c074d1c9Sdrahn# can't, we are probably in trouble. We don't care whether we can run the 2351c074d1c9Sdrahn# executable--we might be using a cross compiler--we only care whether it 2352c074d1c9Sdrahn# can be created. At this point the main configure script has set CC. 2353c074d1c9Sdrahnwe_are_ok=no 2354c074d1c9Sdrahnecho "int main () { return 0; }" > conftest.c 2355c074d1c9Sdrahn${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c 2356c074d1c9Sdrahnif test $? = 0 ; then 2357c074d1c9Sdrahn if test -s conftest || test -s conftest.exe ; then 2358c074d1c9Sdrahn we_are_ok=yes 2359b305b0f1Sespie fi 2360b305b0f1Sespiefi 2361c074d1c9Sdrahncase $we_are_ok in 2362c074d1c9Sdrahn no) 2363c074d1c9Sdrahn echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." 2364c074d1c9Sdrahn echo 1>&2 "*** You must set the environment variable CC to a working compiler." 2365c074d1c9Sdrahn rm -f conftest* 23662159047fSniklas exit 1 2367c074d1c9Sdrahn ;; 2368c074d1c9Sdrahnesac 2369c074d1c9Sdrahnrm -f conftest* 2370c074d1c9Sdrahn 2371c074d1c9Sdrahn# The Solaris /usr/ucb/cc compiler does not appear to work. 2372c074d1c9Sdrahncase "${host}" in 2373c074d1c9Sdrahn sparc-sun-solaris2*) 2374c074d1c9Sdrahn CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" 2375c074d1c9Sdrahn if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then 2376c074d1c9Sdrahn could_use= 2377c074d1c9Sdrahn test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" 2378c074d1c9Sdrahn if test -d /opt/cygnus/bin ; then 2379c074d1c9Sdrahn if test "$could_use" = "" ; then 2380c074d1c9Sdrahn could_use="/opt/cygnus/bin" 2381c074d1c9Sdrahn else 2382c074d1c9Sdrahn could_use="$could_use or /opt/cygnus/bin" 2383c074d1c9Sdrahn fi 2384c074d1c9Sdrahn fi 2385c074d1c9Sdrahn if test "$could_use" = "" ; then 2386c074d1c9Sdrahn echo "Warning: compilation may fail because you're using" 2387c074d1c9Sdrahn echo "/usr/ucb/cc. You should change your PATH or CC " 2388c074d1c9Sdrahn echo "variable and rerun configure." 2389c074d1c9Sdrahn else 2390c074d1c9Sdrahn echo "Warning: compilation may fail because you're using" 2391c074d1c9Sdrahn echo "/usr/ucb/cc, when you should use the C compiler from" 2392c074d1c9Sdrahn echo "$could_use. You should change your" 2393c074d1c9Sdrahn echo "PATH or CC variable and rerun configure." 23942159047fSniklas fi 23952159047fSniklas fi 23962159047fSniklas ;; 23972159047fSniklasesac 23982159047fSniklas 2399c074d1c9Sdrahn# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the 2400c074d1c9Sdrahn# binutils tools will find libbfd.so. 2401c074d1c9Sdrahncase "${enable_shared}" in 2402c074d1c9Sdrahn no | "") SET_LIB_PATH= ;; 2403c074d1c9Sdrahn *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;; 2404c074d1c9Sdrahnesac 24052159047fSniklas 2406c074d1c9Sdrahncase "${host}" in 2407c074d1c9Sdrahn *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; 2408c074d1c9Sdrahn *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; 2409c074d1c9Sdrahnesac 2410c074d1c9Sdrahn 2411c074d1c9Sdrahn# Record target_configdirs and the configure arguments for target and 2412c074d1c9Sdrahn# build configuration in Makefile. 2413c074d1c9Sdrahntarget_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` 2414c074d1c9Sdrahn 2415c074d1c9Sdrahn# This is the final value for target_configdirs. configdirs already 2416007c2a45Smiod# has its final value, as does build_modules. It's time to create some 2417007c2a45Smiod# lists of valid targets. 2418c074d1c9Sdrahn 2419c074d1c9Sdrahnall_build_modules= 2420c074d1c9Sdrahnconfigure_build_modules= 2421007c2a45Smiodfor module in ${build_modules} ; do 2422c074d1c9Sdrahn all_build_modules=all-build-${module} 2423c074d1c9Sdrahn configure_build_modules=configure-build-${module} 2424c074d1c9Sdrahndone 2425c074d1c9Sdrahn 2426c074d1c9Sdrahn# Determine whether gdb needs tk/tcl or not. 2427c074d1c9Sdrahn# Use 'maybe' since enable_gdbtk might be true even if tk isn't available 2428c074d1c9Sdrahn# and in that case we want gdb to be built without tk. Ugh! 2429c074d1c9Sdrahn# In fact I believe gdb is the *only* package directly dependent on tk, 2430c074d1c9Sdrahn# so we should be able to put the 'maybe's in unconditionally and 2431c074d1c9Sdrahn# leave out the maybe dependencies when enable_gdbtk is false. I'm not 2432c074d1c9Sdrahn# 100% sure that that's safe though. 2433c074d1c9Sdrahn 2434c074d1c9Sdrahngdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui" 2435c074d1c9Sdrahncase "$enable_gdbtk" in 2436c074d1c9Sdrahn no) 2437c074d1c9Sdrahn GDB_TK="" ;; 2438c074d1c9Sdrahn yes) 2439c074d1c9Sdrahn GDB_TK="${gdb_tk}" ;; 2440c074d1c9Sdrahn *) 2441c074d1c9Sdrahn # Only add the dependency on gdbtk when GDBtk is part of the gdb 2442c074d1c9Sdrahn # distro. Eventually someone will fix this and move Insight, nee 2443c074d1c9Sdrahn # gdbtk to a separate directory. 2444c074d1c9Sdrahn if test -d ${srcdir}/gdb/gdbtk ; then 2445c074d1c9Sdrahn GDB_TK="${gdb_tk}" 2446c074d1c9Sdrahn else 2447c074d1c9Sdrahn GDB_TK="" 2448c074d1c9Sdrahn fi 24492159047fSniklas ;; 24502159047fSniklasesac 24512159047fSniklas 2452c074d1c9Sdrahn# Create the 'maybe dependencies'. This uses a temporary file. 2453007c2a45Smiod 2454007c2a45Smiod# While at that, we remove Makefiles if we were started for recursive 2455007c2a45Smiod# configuration, so that the top-level Makefile reconfigures them, 2456007c2a45Smiod# like we used to do when configure itself was recursive. 2457c074d1c9Sdrahnrm -f maybedep.tmp 2458c074d1c9Sdrahnecho '# maybedep.tmp' > maybedep.tmp 2459007c2a45Smiod 2460007c2a45Smiod# Make-targets which may need maybe dependencies. 2461007c2a45Smiodmts="configure all install check clean distclean dvi info install-info" 2462007c2a45Smiodmts="${mts} installcheck mostlyclean maintainer-clean TAGS" 2463007c2a45Smiod 2464007c2a45Smiod# Loop over modules and make-targets. 2465007c2a45Smiodfor module in ${build_modules} ; do 2466007c2a45Smiod if test -z "${no_recursion}" \ 2467007c2a45Smiod && test -f ${build_subdir}/${module}/Makefile; then 2468007c2a45Smiod echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" 2469007c2a45Smiod rm -f ${build_subdir}/${module}/Makefile 2470007c2a45Smiod fi 2471007c2a45Smiod for mt in ${mts} ; do 2472007c2a45Smiod case ${mt} in 2473007c2a45Smiod install) ;; # No installing build modules. 2474007c2a45Smiod *) echo "maybe-${mt}-build-${module}: ${mt}-build-${module}" >> maybedep.tmp ;; 2475007c2a45Smiod esac 2476007c2a45Smiod done 2477007c2a45Smioddone 2478007c2a45Smiodfor module in ${configdirs} ; do 2479007c2a45Smiod if test -z "${no_recursion}" \ 2480007c2a45Smiod && test -f ${module}/Makefile; then 2481007c2a45Smiod echo 1>&2 "*** removing ${module}/Makefile to force reconfigure" 2482007c2a45Smiod rm -f ${module}/Makefile 2483007c2a45Smiod fi 2484007c2a45Smiod for mt in ${mts} ; do 2485007c2a45Smiod echo "maybe-${mt}-${module}: ${mt}-${module}" >> maybedep.tmp 2486007c2a45Smiod done 2487007c2a45Smioddone 2488007c2a45Smiodfor module in ${target_configdirs} ; do 2489007c2a45Smiod if test -z "${no_recursion}" \ 2490007c2a45Smiod && test -f ${target_subdir}/${module}/Makefile; then 2491007c2a45Smiod echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" 2492007c2a45Smiod rm -f ${target_subdir}/${module}/Makefile 2493007c2a45Smiod fi 2494007c2a45Smiod for mt in ${mts} ; do 2495007c2a45Smiod echo "maybe-${mt}-target-${module}: ${mt}-target-${module}" >> maybedep.tmp 2496007c2a45Smiod done 2497c074d1c9Sdrahndone 2498c074d1c9Sdrahnmaybe_dependencies=maybedep.tmp 2499c074d1c9Sdrahn 2500c074d1c9Sdrahn 2501c074d1c9Sdrahn# Create the serialization dependencies. This uses a temporary file. 2502c074d1c9Sdrahn 2503c074d1c9Sdrahn# Check whether --enable-serial-configure or --disable-serial-configure was given. 2504c074d1c9Sdrahnif test "${enable_serial_configure+set}" = set; then 2505c074d1c9Sdrahn enableval="$enable_serial_configure" 2506c074d1c9Sdrahn : 2507c074d1c9Sdrahnfi 2508c074d1c9Sdrahn 2509c074d1c9Sdrahn 2510007c2a45Smiodcase ${enable_serial_configure} in 2511007c2a45Smiod yes) 2512007c2a45Smiod enable_serial_build_configure=yes 2513007c2a45Smiod enable_serial_host_configure=yes 2514007c2a45Smiod enable_serial_target_configure=yes 2515007c2a45Smiod ;; 2516007c2a45Smiodesac 2517007c2a45Smiod 2518c074d1c9Sdrahn# These force 'configure's to be done one at a time, to avoid problems 2519c074d1c9Sdrahn# with contention over a shared config.cache. 2520c074d1c9Sdrahnrm -f serdep.tmp 2521c074d1c9Sdrahnecho '# serdep.tmp' > serdep.tmp 2522c074d1c9Sdrahnolditem= 2523007c2a45Smiodtest "x${enable_serial_build_configure}" = xyes && 2524c074d1c9Sdrahnfor item in ${build_configdirs} ; do 2525c074d1c9Sdrahn case ${olditem} in 2526c074d1c9Sdrahn "") ;; 2527c074d1c9Sdrahn *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; 2528c074d1c9Sdrahn esac 2529c074d1c9Sdrahn olditem=${item} 2530c074d1c9Sdrahndone 2531c074d1c9Sdrahnolditem= 2532007c2a45Smiodtest "x${enable_serial_host_configure}" = xyes && 2533c074d1c9Sdrahnfor item in ${configdirs} ; do 2534c074d1c9Sdrahn case ${olditem} in 2535c074d1c9Sdrahn "") ;; 2536c074d1c9Sdrahn *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; 2537c074d1c9Sdrahn esac 2538c074d1c9Sdrahn olditem=${item} 2539c074d1c9Sdrahndone 2540c074d1c9Sdrahnolditem= 2541007c2a45Smiodtest "x${enable_serial_target_configure}" = xyes && 2542c074d1c9Sdrahnfor item in ${target_configdirs} ; do 2543c074d1c9Sdrahn case ${olditem} in 2544c074d1c9Sdrahn "") ;; 2545c074d1c9Sdrahn *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; 2546c074d1c9Sdrahn esac 2547c074d1c9Sdrahn olditem=${item} 2548c074d1c9Sdrahndone 2549c074d1c9Sdrahnserialization_dependencies=serdep.tmp 2550c074d1c9Sdrahn# override on OpenBSD 2551c074d1c9Sdrahnserialization_dependencies=/dev/null 2552c074d1c9Sdrahn 2553c074d1c9Sdrahn 2554c074d1c9Sdrahn# Base args. Strip norecursion, cache-file, srcdir, host, build, 2555c074d1c9Sdrahn# target and nonopt. These are the ones we might not want to pass 2556007c2a45Smiod# down to subconfigures. Also strip program-prefix, program-suffix, 2557007c2a45Smiod# and program-transform-name, so that we can pass down a consistent 2558007c2a45Smiod# program-transform-name. If autoconf has put single quotes around 2559007c2a45Smiod# any of these arguments (because they contain shell metacharacters) 2560007c2a45Smiod# then this will fail; in practice this only happens for 2561007c2a45Smiod# --program-transform-name, so be sure to override --program-transform-name 2562007c2a45Smiod# at the end of the argument list. 2563007c2a45Smiod# These will be expanded by make, so quote '$'. 2564007c2a45Smiodcat <<\EOF_SED > conftestsed 2565007c2a45Smiods/ --no[^ ]* / / 2566007c2a45Smiods/ --c[a-z-]*[= ][^ ]* / / 2567007c2a45Smiods/ --sr[a-z-]*[= ][^ ]* / / 2568007c2a45Smiods/ --ho[a-z-]*[= ][^ ]* / / 2569007c2a45Smiods/ --bu[a-z-]*[= ][^ ]* / / 2570007c2a45Smiods/ --t[a-z-]*[= ][^ ]* / / 2571007c2a45Smiods/ --program-[pst][a-z-]*[= ][^ ]* / / 2572007c2a45Smiods/ -cache-file[= ][^ ]* / / 2573007c2a45Smiods/ -srcdir[= ][^ ]* / / 2574007c2a45Smiods/ -host[= ][^ ]* / / 2575007c2a45Smiods/ -build[= ][^ ]* / / 2576007c2a45Smiods/ -target[= ][^ ]* / / 2577007c2a45Smiods/ -program-prefix[= ][^ ]* / / 2578007c2a45Smiods/ -program-suffix[= ][^ ]* / / 2579007c2a45Smiods/ -program-transform-name[= ][^ ]* / / 2580007c2a45Smiods/ [^' -][^ ]* / / 2581007c2a45Smiods/^ *//;s/ *$// 2582007c2a45Smiods,\$,$$,g 2583007c2a45SmiodEOF_SED 2584007c2a45Smiodsed -f conftestsed <<EOF_SED > conftestsed.out 2585007c2a45Smiod ${ac_configure_args} 2586007c2a45SmiodEOF_SED 2587007c2a45Smiodbaseargs=`cat conftestsed.out` 2588007c2a45Smiodrm -f conftestsed conftestsed.out 2589007c2a45Smiod 2590007c2a45Smiod# Add in --program-transform-name, after --program-prefix and 2591007c2a45Smiod# --program-suffix have been applied to it. Autoconf has already 2592007c2a45Smiod# doubled dollar signs and backslashes in program_transform_name; we want 2593007c2a45Smiod# the backslashes un-doubled, and then the entire thing wrapped in single 2594007c2a45Smiod# quotes, because this will be expanded first by make and then by the shell. 2595007c2a45Smiod# Also, because we want to override the logic in subdir configure scripts to 2596007c2a45Smiod# choose program_transform_name, replace any s,x,x, with s,y,y,. 2597007c2a45Smiodsed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out 2598007c2a45Smiod${program_transform_name} 2599007c2a45SmiodEOF_SED 2600007c2a45Smiodgcc_transform_name=`cat conftestsed.out` 2601007c2a45Smiodrm -f conftestsed.out 2602007c2a45Smiodbaseargs="$baseargs --program-transform-name='${gcc_transform_name}'" 2603c074d1c9Sdrahn 2604c074d1c9Sdrahn# For the build-side libraries, we just need to pretend we're native, 2605c074d1c9Sdrahn# and not use the same cache file. Multilibs are neither needed nor 2606c074d1c9Sdrahn# desired. 2607c074d1c9Sdrahnbuild_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}" 2608c074d1c9Sdrahn 2609c074d1c9Sdrahn# For host modules, accept cache file option, or specification as blank. 26102159047fSniklascase "${cache_file}" in 26112159047fSniklas"") # empty 2612c074d1c9Sdrahn cache_file_option="" ;; 2613c074d1c9Sdrahn/* | [A-Za-z]:[\\/]* ) # absolute path 2614c074d1c9Sdrahn cache_file_option="--cache-file=${cache_file}" ;; 26152159047fSniklas*) # relative path 2616c074d1c9Sdrahn cache_file_option="--cache-file=../${cache_file}" ;; 2617c074d1c9Sdrahnesac 2618c074d1c9Sdrahn 2619007c2a45Smiod# Host dirs don't like to share a cache file either, horribly enough. 2620007c2a45Smiod# This seems to be due to autoconf 2.5x stupidity. 2621007c2a45Smiodhost_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}" 2622c074d1c9Sdrahn 2623c074d1c9Sdrahntarget_configargs=${baseargs} 2624c074d1c9Sdrahn 2625c074d1c9Sdrahn# Passing a --with-cross-host argument lets the target libraries know 2626c074d1c9Sdrahn# whether they are being built with a cross-compiler or being built 2627c074d1c9Sdrahn# native. However, it would be better to use other mechanisms to make the 2628c074d1c9Sdrahn# sorts of decisions they want to make on this basis. Please consider 2629c074d1c9Sdrahn# this option to be deprecated. FIXME. 2630c074d1c9Sdrahnif test x${is_cross_compiler} = xyes ; then 2631c074d1c9Sdrahn target_configargs="--with-cross-host=${host_alias} ${target_configargs}" 2632c074d1c9Sdrahnfi 2633c074d1c9Sdrahn 2634c074d1c9Sdrahn# Default to --enable-multilib. 2635c074d1c9Sdrahnif test x${enable_multilib} = x ; then 2636c074d1c9Sdrahn target_configargs="--enable-multilib ${target_configargs}" 2637c074d1c9Sdrahnfi 2638c074d1c9Sdrahn 2639c074d1c9Sdrahn# Pass --with-newlib if appropriate. Note that target_configdirs has 2640c074d1c9Sdrahn# changed from the earlier setting of with_newlib. 2641c074d1c9Sdrahnif test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then 2642c074d1c9Sdrahn target_configargs="--with-newlib ${target_configargs}" 2643c074d1c9Sdrahnfi 2644c074d1c9Sdrahn 2645007c2a45Smiod# Different target subdirs use different values of certain variables 2646007c2a45Smiod# (notably CXX). Worse, multilibs use *lots* of different values. 2647007c2a45Smiod# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that 2648007c2a45Smiod# it doesn't automatically accept command-line overrides of them. 2649007c2a45Smiod# This means it's not safe for target subdirs to share a cache file, 2650007c2a45Smiod# which is disgusting, but there you have it. Hopefully this can be 2651007c2a45Smiod# fixed in future. It's still worthwhile to use a cache file for each 2652007c2a45Smiod# directory. I think. 2653007c2a45Smiod 2654c074d1c9Sdrahn# Pass the appropriate --host, --build, and --cache-file arguments. 2655007c2a45Smiodtarget_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}" 2656c074d1c9Sdrahn 2657c074d1c9Sdrahn# provide a proper gxx_include_dir. 2658c074d1c9Sdrahn# Note, if you change the default, make sure to fix both here and in 2659c074d1c9Sdrahn# the gcc and libstdc++-v3 subdirectories. 2660c074d1c9Sdrahn# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. 2661c074d1c9Sdrahncase "${with_gxx_include_dir}" in 2662c074d1c9Sdrahn yes) 2663c074d1c9Sdrahn { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; } 2664c074d1c9Sdrahn ;; 2665c074d1c9Sdrahn no | "") 2666c074d1c9Sdrahn case "${enable_version_specific_runtime_libs}" in 2667c074d1c9Sdrahn yes) gxx_include_dir='${libsubdir}/include/c++' ;; 2668c074d1c9Sdrahn *) 2669c074d1c9Sdrahn . ${srcdir}/config.if 2670c074d1c9Sdrahn gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;; 2671c074d1c9Sdrahn esac ;; 2672c074d1c9Sdrahn *) gxx_include_dir=${with_gxx_include_dir} ;; 2673c074d1c9Sdrahnesac 2674c074d1c9Sdrahn 2675c074d1c9SdrahnFLAGS_FOR_TARGET= 2676c074d1c9Sdrahncase " $target_configdirs " in 2677c074d1c9Sdrahn *" newlib "*) 2678c074d1c9Sdrahn case " $target_configargs " in 2679c074d1c9Sdrahn *" --with-newlib "*) 2680c074d1c9Sdrahn case "$target" in 2681c074d1c9Sdrahn *-cygwin*) 2682007c2a45Smiod FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;; 2683c074d1c9Sdrahn esac 2684c074d1c9Sdrahn 2685c074d1c9Sdrahn # If we're not building GCC, don't discard standard headers. 2686c074d1c9Sdrahn if test -d ${srcdir}/gcc; then 2687c074d1c9Sdrahn FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' 2688c074d1c9Sdrahn 2689c074d1c9Sdrahn if test "${build}" != "${host}"; then 2690c074d1c9Sdrahn # On Canadian crosses, CC_FOR_TARGET will have already been set 2691c074d1c9Sdrahn # by `configure', so we won't have an opportunity to add -Bgcc/ 2692c074d1c9Sdrahn # to it. This is right: we don't want to search that directory 2693c074d1c9Sdrahn # for binaries, but we want the header files in there, so add 2694c074d1c9Sdrahn # them explicitly. 2695c074d1c9Sdrahn FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include' 2696c074d1c9Sdrahn 2697c074d1c9Sdrahn # Someone might think of using the pre-installed headers on 2698c074d1c9Sdrahn # Canadian crosses, in case the installed compiler is not fully 2699c074d1c9Sdrahn # compatible with the compiler being built. In this case, it 2700c074d1c9Sdrahn # would be better to flag an error than risking having 2701c074d1c9Sdrahn # incompatible object files being constructed. We can't 2702c074d1c9Sdrahn # guarantee that an error will be flagged, but let's hope the 2703c074d1c9Sdrahn # compiler will do it, when presented with incompatible header 2704c074d1c9Sdrahn # files. 2705c074d1c9Sdrahn fi 2706c074d1c9Sdrahn fi 2707c074d1c9Sdrahn 2708c074d1c9Sdrahn case "${target}-${is_cross_compiler}" in 2709007c2a45Smiod i[3456789]86-*-linux*-no) 2710c074d1c9Sdrahn # Here host == target, so we don't need to build gcc, 2711c074d1c9Sdrahn # so we don't want to discard standard headers. 2712c074d1c9Sdrahn FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` 2713c074d1c9Sdrahn ;; 2714c074d1c9Sdrahn *) 2715c074d1c9Sdrahn # If we're building newlib, use its generic headers last, but search 2716c074d1c9Sdrahn # for any libc-related directories first (so make it the last -B 2717c074d1c9Sdrahn # switch). 2718c074d1c9Sdrahn FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' 2719c074d1c9Sdrahn ;; 2720c074d1c9Sdrahn esac 2721c074d1c9Sdrahn ;; 2722c074d1c9Sdrahn esac 27232159047fSniklas ;; 27242159047fSniklasesac 27252159047fSniklas 2726007c2a45Smiod# Allow the user to override the flags for 2727007c2a45Smiod# our build compiler if desired. 2728007c2a45SmiodCFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} 2729007c2a45Smiod 2730c074d1c9Sdrahn# On Canadian crosses, we'll be searching the right directories for 2731c074d1c9Sdrahn# the previously-installed cross compiler, so don't bother to add 2732c074d1c9Sdrahn# flags for directories within the install tree of the compiler 2733c074d1c9Sdrahn# being built; programs in there won't even run. 2734c074d1c9Sdrahnif test "${build}" = "${host}" && test -d ${srcdir}/gcc; then 2735c074d1c9Sdrahn # Search for pre-installed headers if nothing else fits. 2736c074d1c9Sdrahn FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' 27372159047fSniklasfi 27382159047fSniklas 2739c074d1c9Sdrahnif test "x${use_gnu_ld}" = x && 2740c074d1c9Sdrahn echo " ${configdirs} " | grep " ld " > /dev/null ; then 2741c074d1c9Sdrahn # Arrange for us to find uninstalled linker scripts. 2742c074d1c9Sdrahn FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld' 27432159047fSniklasfi 27442159047fSniklas 2745c074d1c9Sdrahnif test "x${CC_FOR_TARGET+set}" = xset; then 2746c074d1c9Sdrahn : 2747c074d1c9Sdrahnelif test -d ${srcdir}/gcc; then 2748c074d1c9Sdrahn CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/' 2749c074d1c9Sdrahnelif test "$host" = "$target"; then 2750c074d1c9Sdrahn CC_FOR_TARGET='$(CC)' 2751c074d1c9Sdrahnelse 2752c074d1c9Sdrahn CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"` 2753c074d1c9Sdrahnfi 2754c074d1c9SdrahnCC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)' 2755c074d1c9Sdrahn 2756c074d1c9Sdrahnif test "x${GCJ_FOR_TARGET+set}" = xset; then 2757c074d1c9Sdrahn : 2758c074d1c9Sdrahnelif test -d ${srcdir}/gcc; then 2759c074d1c9Sdrahn GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/' 2760c074d1c9Sdrahnelif test "$host" = "$target"; then 2761c074d1c9Sdrahn GCJ_FOR_TARGET='gcj' 2762c074d1c9Sdrahnelse 2763c074d1c9Sdrahn GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"` 2764c074d1c9Sdrahnfi 2765c074d1c9SdrahnGCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)' 2766c074d1c9Sdrahn 2767c074d1c9Sdrahn# Don't use libstdc++-v3's flags to configure/build itself. 2768007c2a45Smiodlibstdcxx_flags='`test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' 2769c074d1c9Sdrahnraw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' 2770c074d1c9Sdrahn 2771c074d1c9Sdrahnif test "x${CXX_FOR_TARGET+set}" = xset; then 2772007c2a45Smiod if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then 2773007c2a45Smiod RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} 2774007c2a45Smiod fi 2775c074d1c9Sdrahnelif test -d ${srcdir}/gcc; then 2776c074d1c9Sdrahn # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead 2777c074d1c9Sdrahn # of g++ for linking C++ or Java, because g++ has -shared-libgcc by 2778c074d1c9Sdrahn # default whereas gcc does not. 2779c074d1c9Sdrahn # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for 2780c074d1c9Sdrahn # all other cases. 2781c074d1c9Sdrahn CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags 2782c074d1c9Sdrahn RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags 2783c074d1c9Sdrahnelif test "$host" = "$target"; then 2784c074d1c9Sdrahn CXX_FOR_TARGET='$(CXX)' 2785c074d1c9Sdrahn RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} 2786c074d1c9Sdrahnelse 2787c074d1c9Sdrahn CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"` 2788c074d1c9Sdrahn RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} 2789c074d1c9Sdrahnfi 2790c074d1c9SdrahnCXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)' 2791c074d1c9SdrahnRAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)' 2792c074d1c9Sdrahn 2793c074d1c9SdrahnqCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'` 2794c074d1c9SdrahnqRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'` 2795c074d1c9Sdrahn 2796c074d1c9Sdrahn# We want to defer the evaluation of `cmd`s and shell variables in 2797c074d1c9Sdrahn# CXX_FOR_TARGET when recursing in the top-level Makefile, such as for 2798c074d1c9Sdrahn# bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single 2799c074d1c9Sdrahn# quotes, but we still have to duplicate `$'s so that shell variables 2800c074d1c9Sdrahn# can be expanded by the nested make as shell variables, not as make 2801c074d1c9Sdrahn# macros. 2802c074d1c9SdrahnqqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'` 2803c074d1c9SdrahnqqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'` 2804c074d1c9Sdrahn 2805c074d1c9Sdrahn# Wrap CC_FOR_TARGET and friends, for certain types of builds. 2806c074d1c9SdrahnCC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}" 2807c074d1c9SdrahnGCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}" 2808c074d1c9SdrahnCXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}" 2809c074d1c9SdrahnRAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}" 2810c074d1c9SdrahnCXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}" 2811c074d1c9SdrahnRAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}" 2812c074d1c9Sdrahn 2813c074d1c9Sdrahn# Makefile fragments. 2814c074d1c9Sdrahnhost_makefile_frag=${srcdir}/${host_makefile_frag} 2815c074d1c9Sdrahntarget_makefile_frag=${srcdir}/${target_makefile_frag} 2816c074d1c9Sdrahnalphaieee_frag=${srcdir}/${alphaieee_frag} 2817c074d1c9Sdrahnospace_frag=${srcdir}/${ospace_frag} 2818c074d1c9Sdrahn 2819c074d1c9Sdrahn 2820c074d1c9Sdrahn 2821c074d1c9Sdrahn 2822c074d1c9Sdrahn 2823c074d1c9Sdrahn# Miscellanea: directories, flags, etc. 2824c074d1c9Sdrahn 2825c074d1c9Sdrahn 2826c074d1c9Sdrahn 2827c074d1c9Sdrahn 2828c074d1c9Sdrahn 2829c074d1c9Sdrahn 2830c074d1c9Sdrahn 2831c074d1c9Sdrahn 2832c074d1c9Sdrahn 2833c074d1c9Sdrahn 2834c074d1c9Sdrahn 2835c074d1c9Sdrahn 2836c074d1c9Sdrahn 2837c074d1c9Sdrahn# Build module lists & subconfigure args. 2838c074d1c9Sdrahn 2839c074d1c9Sdrahn 2840c074d1c9Sdrahn 2841c074d1c9Sdrahn 2842c074d1c9Sdrahn# Host module lists & subconfigure args. 2843c074d1c9Sdrahn 2844c074d1c9Sdrahn 2845c074d1c9Sdrahn 2846c074d1c9Sdrahn# Target module lists & subconfigure args. 2847c074d1c9Sdrahn 2848c074d1c9Sdrahn 2849c074d1c9Sdrahn 2850c074d1c9Sdrahn# Build tools. 2851c074d1c9Sdrahn 2852c074d1c9Sdrahn 2853c074d1c9Sdrahn 2854c074d1c9Sdrahn 2855c074d1c9Sdrahn 2856c074d1c9Sdrahn 2857c074d1c9Sdrahn 2858c074d1c9Sdrahn# Host tools. 2859c074d1c9Sdrahnncn_tool_prefix= 2860c074d1c9Sdrahntest -n "$host_alias" && ncn_tool_prefix=$host_alias- 2861c074d1c9Sdrahnncn_target_tool_prefix= 2862c074d1c9Sdrahntest -n "$target_alias" && ncn_target_tool_prefix=$target_alias- 2863c074d1c9Sdrahn 2864c074d1c9Sdrahn if test -n "$ncn_tool_prefix"; then 2865c074d1c9Sdrahn # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args. 2866c074d1c9Sdrahnset dummy ${ncn_tool_prefix}ar; ac_word=$2 2867c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 2868007c2a45Smiodecho "configure:2855: checking for $ac_word" >&5 2869c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 2870c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 2871c074d1c9Sdrahnelse 2872c074d1c9Sdrahn if test -n "$AR"; then 2873c074d1c9Sdrahn ac_cv_prog_AR="$AR" # Let the user override the test. 2874c074d1c9Sdrahnelse 2875c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2876c074d1c9Sdrahn ac_dummy="$PATH" 2877c074d1c9Sdrahn for ac_dir in $ac_dummy; do 2878c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 2879c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 2880c074d1c9Sdrahn ac_cv_prog_AR="${ncn_tool_prefix}ar" 2881c074d1c9Sdrahn break 28822159047fSniklas fi 28832159047fSniklas done 2884c074d1c9Sdrahn IFS="$ac_save_ifs" 2885c074d1c9Sdrahnfi 2886c074d1c9Sdrahnfi 2887c074d1c9SdrahnAR="$ac_cv_prog_AR" 2888c074d1c9Sdrahnif test -n "$AR"; then 2889c074d1c9Sdrahn echo "$ac_t""$AR" 1>&6 2890c074d1c9Sdrahnelse 2891c074d1c9Sdrahn echo "$ac_t""no" 1>&6 28922159047fSniklasfi 28932159047fSniklas 2894c074d1c9Sdrahnfi 2895c074d1c9Sdrahnif test -z "$ac_cv_prog_AR" ; then 2896c074d1c9Sdrahn if test $build = $host ; then 2897c074d1c9Sdrahn ncn_cv_AR=$AR 2898c074d1c9Sdrahn # Extract the first word of "ar", so it can be a program name with args. 2899c074d1c9Sdrahnset dummy ar; ac_word=$2 2900c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 2901007c2a45Smiodecho "configure:2888: checking for $ac_word" >&5 2902c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then 2903c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 2904c074d1c9Sdrahnelse 2905c074d1c9Sdrahn if test -n "$ncn_cv_AR"; then 2906c074d1c9Sdrahn ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test. 2907c074d1c9Sdrahnelse 2908c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2909c074d1c9Sdrahn ac_dummy="$PATH" 2910c074d1c9Sdrahn for ac_dir in $ac_dummy; do 2911c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 2912c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 2913c074d1c9Sdrahn ac_cv_prog_ncn_cv_AR="ar" 2914c074d1c9Sdrahn break 2915c074d1c9Sdrahn fi 2916c074d1c9Sdrahn done 2917c074d1c9Sdrahn IFS="$ac_save_ifs" 2918c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar" 2919c074d1c9Sdrahnfi 2920c074d1c9Sdrahnfi 2921c074d1c9Sdrahnncn_cv_AR="$ac_cv_prog_ncn_cv_AR" 2922c074d1c9Sdrahnif test -n "$ncn_cv_AR"; then 2923c074d1c9Sdrahn echo "$ac_t""$ncn_cv_AR" 1>&6 2924c074d1c9Sdrahnelse 2925c074d1c9Sdrahn echo "$ac_t""no" 1>&6 2926c074d1c9Sdrahnfi 2927c074d1c9Sdrahn 2928c074d1c9Sdrahn AR=$ncn_cv_AR 2929c074d1c9Sdrahn else 2930c074d1c9Sdrahn AR="${ncn_tool_prefix}ar" 2931c074d1c9Sdrahn fi 2932c074d1c9Sdrahnelse 2933c074d1c9Sdrahn AR="$ac_cv_prog_AR" 2934c074d1c9Sdrahnfi 2935c074d1c9Sdrahn 2936c074d1c9Sdrahn if test -n "$ncn_tool_prefix"; then 2937c074d1c9Sdrahn # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args. 2938c074d1c9Sdrahnset dummy ${ncn_tool_prefix}as; ac_word=$2 2939c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 2940007c2a45Smiodecho "configure:2927: checking for $ac_word" >&5 2941c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then 2942c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 2943c074d1c9Sdrahnelse 2944c074d1c9Sdrahn if test -n "$AS"; then 2945c074d1c9Sdrahn ac_cv_prog_AS="$AS" # Let the user override the test. 2946c074d1c9Sdrahnelse 2947c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2948c074d1c9Sdrahn ac_dummy="$PATH" 2949c074d1c9Sdrahn for ac_dir in $ac_dummy; do 2950c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 2951c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 2952c074d1c9Sdrahn ac_cv_prog_AS="${ncn_tool_prefix}as" 2953c074d1c9Sdrahn break 2954c074d1c9Sdrahn fi 2955c074d1c9Sdrahn done 2956c074d1c9Sdrahn IFS="$ac_save_ifs" 2957c074d1c9Sdrahnfi 2958c074d1c9Sdrahnfi 2959c074d1c9SdrahnAS="$ac_cv_prog_AS" 2960c074d1c9Sdrahnif test -n "$AS"; then 2961c074d1c9Sdrahn echo "$ac_t""$AS" 1>&6 2962c074d1c9Sdrahnelse 2963c074d1c9Sdrahn echo "$ac_t""no" 1>&6 2964c074d1c9Sdrahnfi 2965c074d1c9Sdrahn 2966c074d1c9Sdrahnfi 2967c074d1c9Sdrahnif test -z "$ac_cv_prog_AS" ; then 2968c074d1c9Sdrahn if test $build = $host ; then 2969c074d1c9Sdrahn ncn_cv_AS=$AS 2970c074d1c9Sdrahn # Extract the first word of "as", so it can be a program name with args. 2971c074d1c9Sdrahnset dummy as; ac_word=$2 2972c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 2973007c2a45Smiodecho "configure:2960: checking for $ac_word" >&5 2974c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then 2975c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 2976c074d1c9Sdrahnelse 2977c074d1c9Sdrahn if test -n "$ncn_cv_AS"; then 2978c074d1c9Sdrahn ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test. 2979c074d1c9Sdrahnelse 2980c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2981c074d1c9Sdrahn ac_dummy="$PATH" 2982c074d1c9Sdrahn for ac_dir in $ac_dummy; do 2983c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 2984c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 2985c074d1c9Sdrahn ac_cv_prog_ncn_cv_AS="as" 2986c074d1c9Sdrahn break 2987c074d1c9Sdrahn fi 2988c074d1c9Sdrahn done 2989c074d1c9Sdrahn IFS="$ac_save_ifs" 2990c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as" 2991c074d1c9Sdrahnfi 2992c074d1c9Sdrahnfi 2993c074d1c9Sdrahnncn_cv_AS="$ac_cv_prog_ncn_cv_AS" 2994c074d1c9Sdrahnif test -n "$ncn_cv_AS"; then 2995c074d1c9Sdrahn echo "$ac_t""$ncn_cv_AS" 1>&6 2996c074d1c9Sdrahnelse 2997c074d1c9Sdrahn echo "$ac_t""no" 1>&6 2998c074d1c9Sdrahnfi 2999c074d1c9Sdrahn 3000c074d1c9Sdrahn AS=$ncn_cv_AS 3001c074d1c9Sdrahn else 3002c074d1c9Sdrahn AS="${ncn_tool_prefix}as" 3003c074d1c9Sdrahn fi 3004c074d1c9Sdrahnelse 3005c074d1c9Sdrahn AS="$ac_cv_prog_AS" 3006c074d1c9Sdrahnfi 3007c074d1c9Sdrahn 3008c074d1c9Sdrahn if test -n "$ncn_tool_prefix"; then 3009c074d1c9Sdrahn # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args. 3010c074d1c9Sdrahnset dummy ${ncn_tool_prefix}dlltool; ac_word=$2 3011c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3012007c2a45Smiodecho "configure:2999: checking for $ac_word" >&5 3013c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then 3014c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3015c074d1c9Sdrahnelse 3016c074d1c9Sdrahn if test -n "$DLLTOOL"; then 3017c074d1c9Sdrahn ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3018c074d1c9Sdrahnelse 3019c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3020c074d1c9Sdrahn ac_dummy="$PATH" 3021c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3022c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3023c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3024c074d1c9Sdrahn ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool" 3025c074d1c9Sdrahn break 3026c074d1c9Sdrahn fi 3027c074d1c9Sdrahn done 3028c074d1c9Sdrahn IFS="$ac_save_ifs" 3029c074d1c9Sdrahnfi 3030c074d1c9Sdrahnfi 3031c074d1c9SdrahnDLLTOOL="$ac_cv_prog_DLLTOOL" 3032c074d1c9Sdrahnif test -n "$DLLTOOL"; then 3033c074d1c9Sdrahn echo "$ac_t""$DLLTOOL" 1>&6 3034c074d1c9Sdrahnelse 3035c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3036c074d1c9Sdrahnfi 3037c074d1c9Sdrahn 3038c074d1c9Sdrahnfi 3039c074d1c9Sdrahnif test -z "$ac_cv_prog_DLLTOOL" ; then 3040c074d1c9Sdrahn if test $build = $host ; then 3041c074d1c9Sdrahn ncn_cv_DLLTOOL=$DLLTOOL 3042c074d1c9Sdrahn # Extract the first word of "dlltool", so it can be a program name with args. 3043c074d1c9Sdrahnset dummy dlltool; ac_word=$2 3044c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3045007c2a45Smiodecho "configure:3032: checking for $ac_word" >&5 3046c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then 3047c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3048c074d1c9Sdrahnelse 3049c074d1c9Sdrahn if test -n "$ncn_cv_DLLTOOL"; then 3050c074d1c9Sdrahn ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test. 3051c074d1c9Sdrahnelse 3052c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3053c074d1c9Sdrahn ac_dummy="$PATH" 3054c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3055c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3056c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3057c074d1c9Sdrahn ac_cv_prog_ncn_cv_DLLTOOL="dlltool" 3058c074d1c9Sdrahn break 3059c074d1c9Sdrahn fi 3060c074d1c9Sdrahn done 3061c074d1c9Sdrahn IFS="$ac_save_ifs" 3062c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool" 3063c074d1c9Sdrahnfi 3064c074d1c9Sdrahnfi 3065c074d1c9Sdrahnncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL" 3066c074d1c9Sdrahnif test -n "$ncn_cv_DLLTOOL"; then 3067c074d1c9Sdrahn echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6 3068c074d1c9Sdrahnelse 3069c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3070c074d1c9Sdrahnfi 3071c074d1c9Sdrahn 3072c074d1c9Sdrahn DLLTOOL=$ncn_cv_DLLTOOL 3073c074d1c9Sdrahn else 3074c074d1c9Sdrahn DLLTOOL="${ncn_tool_prefix}dlltool" 3075c074d1c9Sdrahn fi 3076c074d1c9Sdrahnelse 3077c074d1c9Sdrahn DLLTOOL="$ac_cv_prog_DLLTOOL" 3078c074d1c9Sdrahnfi 3079c074d1c9Sdrahn 3080c074d1c9Sdrahn if test -n "$ncn_tool_prefix"; then 3081c074d1c9Sdrahn # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args. 3082c074d1c9Sdrahnset dummy ${ncn_tool_prefix}ld; ac_word=$2 3083c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3084007c2a45Smiodecho "configure:3071: checking for $ac_word" >&5 3085c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then 3086c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3087c074d1c9Sdrahnelse 3088c074d1c9Sdrahn if test -n "$LD"; then 3089c074d1c9Sdrahn ac_cv_prog_LD="$LD" # Let the user override the test. 3090c074d1c9Sdrahnelse 3091c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3092c074d1c9Sdrahn ac_dummy="$PATH" 3093c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3094c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3095c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3096c074d1c9Sdrahn ac_cv_prog_LD="${ncn_tool_prefix}ld" 3097c074d1c9Sdrahn break 3098c074d1c9Sdrahn fi 3099c074d1c9Sdrahn done 3100c074d1c9Sdrahn IFS="$ac_save_ifs" 3101c074d1c9Sdrahnfi 3102c074d1c9Sdrahnfi 3103c074d1c9SdrahnLD="$ac_cv_prog_LD" 3104c074d1c9Sdrahnif test -n "$LD"; then 3105c074d1c9Sdrahn echo "$ac_t""$LD" 1>&6 3106c074d1c9Sdrahnelse 3107c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3108c074d1c9Sdrahnfi 3109c074d1c9Sdrahn 3110c074d1c9Sdrahnfi 3111c074d1c9Sdrahnif test -z "$ac_cv_prog_LD" ; then 3112c074d1c9Sdrahn if test $build = $host ; then 3113c074d1c9Sdrahn ncn_cv_LD=$LD 3114c074d1c9Sdrahn # Extract the first word of "ld", so it can be a program name with args. 3115c074d1c9Sdrahnset dummy ld; ac_word=$2 3116c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3117007c2a45Smiodecho "configure:3104: checking for $ac_word" >&5 3118c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then 3119c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3120c074d1c9Sdrahnelse 3121c074d1c9Sdrahn if test -n "$ncn_cv_LD"; then 3122c074d1c9Sdrahn ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test. 3123c074d1c9Sdrahnelse 3124c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3125c074d1c9Sdrahn ac_dummy="$PATH" 3126c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3127c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3128c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3129c074d1c9Sdrahn ac_cv_prog_ncn_cv_LD="ld" 3130c074d1c9Sdrahn break 3131c074d1c9Sdrahn fi 3132c074d1c9Sdrahn done 3133c074d1c9Sdrahn IFS="$ac_save_ifs" 3134c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld" 3135c074d1c9Sdrahnfi 3136c074d1c9Sdrahnfi 3137c074d1c9Sdrahnncn_cv_LD="$ac_cv_prog_ncn_cv_LD" 3138c074d1c9Sdrahnif test -n "$ncn_cv_LD"; then 3139c074d1c9Sdrahn echo "$ac_t""$ncn_cv_LD" 1>&6 3140c074d1c9Sdrahnelse 3141c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3142c074d1c9Sdrahnfi 3143c074d1c9Sdrahn 3144c074d1c9Sdrahn LD=$ncn_cv_LD 3145c074d1c9Sdrahn else 3146c074d1c9Sdrahn LD="${ncn_tool_prefix}ld" 3147c074d1c9Sdrahn fi 3148c074d1c9Sdrahnelse 3149c074d1c9Sdrahn LD="$ac_cv_prog_LD" 3150c074d1c9Sdrahnfi 3151c074d1c9Sdrahn 3152c074d1c9Sdrahn if test -n "$ncn_tool_prefix"; then 3153c074d1c9Sdrahn # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args. 3154c074d1c9Sdrahnset dummy ${ncn_tool_prefix}nm; ac_word=$2 3155c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3156007c2a45Smiodecho "configure:3143: checking for $ac_word" >&5 3157c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then 3158c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3159c074d1c9Sdrahnelse 3160c074d1c9Sdrahn if test -n "$NM"; then 3161c074d1c9Sdrahn ac_cv_prog_NM="$NM" # Let the user override the test. 3162c074d1c9Sdrahnelse 3163c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3164c074d1c9Sdrahn ac_dummy="$PATH" 3165c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3166c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3167c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3168c074d1c9Sdrahn ac_cv_prog_NM="${ncn_tool_prefix}nm" 3169c074d1c9Sdrahn break 3170c074d1c9Sdrahn fi 3171c074d1c9Sdrahn done 3172c074d1c9Sdrahn IFS="$ac_save_ifs" 3173c074d1c9Sdrahnfi 3174c074d1c9Sdrahnfi 3175c074d1c9SdrahnNM="$ac_cv_prog_NM" 3176c074d1c9Sdrahnif test -n "$NM"; then 3177c074d1c9Sdrahn echo "$ac_t""$NM" 1>&6 3178c074d1c9Sdrahnelse 3179c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3180c074d1c9Sdrahnfi 3181c074d1c9Sdrahn 3182c074d1c9Sdrahnfi 3183c074d1c9Sdrahnif test -z "$ac_cv_prog_NM" ; then 3184c074d1c9Sdrahn if test $build = $host ; then 3185c074d1c9Sdrahn ncn_cv_NM=$NM 3186c074d1c9Sdrahn # Extract the first word of "nm", so it can be a program name with args. 3187c074d1c9Sdrahnset dummy nm; ac_word=$2 3188c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3189007c2a45Smiodecho "configure:3176: checking for $ac_word" >&5 3190c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then 3191c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3192c074d1c9Sdrahnelse 3193c074d1c9Sdrahn if test -n "$ncn_cv_NM"; then 3194c074d1c9Sdrahn ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test. 3195c074d1c9Sdrahnelse 3196c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3197c074d1c9Sdrahn ac_dummy="$PATH" 3198c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3199c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3200c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3201c074d1c9Sdrahn ac_cv_prog_ncn_cv_NM="nm" 3202c074d1c9Sdrahn break 3203c074d1c9Sdrahn fi 3204c074d1c9Sdrahn done 3205c074d1c9Sdrahn IFS="$ac_save_ifs" 3206c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm" 3207c074d1c9Sdrahnfi 3208c074d1c9Sdrahnfi 3209c074d1c9Sdrahnncn_cv_NM="$ac_cv_prog_ncn_cv_NM" 3210c074d1c9Sdrahnif test -n "$ncn_cv_NM"; then 3211c074d1c9Sdrahn echo "$ac_t""$ncn_cv_NM" 1>&6 3212c074d1c9Sdrahnelse 3213c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3214c074d1c9Sdrahnfi 3215c074d1c9Sdrahn 3216c074d1c9Sdrahn NM=$ncn_cv_NM 3217c074d1c9Sdrahn else 3218c074d1c9Sdrahn NM="${ncn_tool_prefix}nm" 3219c074d1c9Sdrahn fi 3220c074d1c9Sdrahnelse 3221c074d1c9Sdrahn NM="$ac_cv_prog_NM" 3222c074d1c9Sdrahnfi 3223c074d1c9Sdrahn 3224c074d1c9Sdrahn if test -n "$ncn_tool_prefix"; then 3225c074d1c9Sdrahn # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args. 3226c074d1c9Sdrahnset dummy ${ncn_tool_prefix}ranlib; ac_word=$2 3227c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3228007c2a45Smiodecho "configure:3215: checking for $ac_word" >&5 3229c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 3230c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3231c074d1c9Sdrahnelse 3232c074d1c9Sdrahn if test -n "$RANLIB"; then 3233c074d1c9Sdrahn ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3234c074d1c9Sdrahnelse 3235c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3236c074d1c9Sdrahn ac_dummy="$PATH" 3237c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3238c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3239c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3240c074d1c9Sdrahn ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib" 3241c074d1c9Sdrahn break 3242c074d1c9Sdrahn fi 3243c074d1c9Sdrahn done 3244c074d1c9Sdrahn IFS="$ac_save_ifs" 3245c074d1c9Sdrahnfi 3246c074d1c9Sdrahnfi 3247c074d1c9SdrahnRANLIB="$ac_cv_prog_RANLIB" 3248c074d1c9Sdrahnif test -n "$RANLIB"; then 3249c074d1c9Sdrahn echo "$ac_t""$RANLIB" 1>&6 3250c074d1c9Sdrahnelse 3251c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3252c074d1c9Sdrahnfi 3253c074d1c9Sdrahn 3254c074d1c9Sdrahnfi 3255c074d1c9Sdrahnif test -z "$ac_cv_prog_RANLIB" ; then 3256c074d1c9Sdrahn if test $build = $host ; then 3257c074d1c9Sdrahn ncn_cv_RANLIB=$RANLIB 3258c074d1c9Sdrahn # Extract the first word of "ranlib", so it can be a program name with args. 3259c074d1c9Sdrahnset dummy ranlib; ac_word=$2 3260c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3261007c2a45Smiodecho "configure:3248: checking for $ac_word" >&5 3262c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then 3263c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3264c074d1c9Sdrahnelse 3265c074d1c9Sdrahn if test -n "$ncn_cv_RANLIB"; then 3266c074d1c9Sdrahn ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test. 3267c074d1c9Sdrahnelse 3268c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3269c074d1c9Sdrahn ac_dummy="$PATH" 3270c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3271c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3272c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3273c074d1c9Sdrahn ac_cv_prog_ncn_cv_RANLIB="ranlib" 3274c074d1c9Sdrahn break 3275c074d1c9Sdrahn fi 3276c074d1c9Sdrahn done 3277c074d1c9Sdrahn IFS="$ac_save_ifs" 3278c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":" 3279c074d1c9Sdrahnfi 3280c074d1c9Sdrahnfi 3281c074d1c9Sdrahnncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB" 3282c074d1c9Sdrahnif test -n "$ncn_cv_RANLIB"; then 3283c074d1c9Sdrahn echo "$ac_t""$ncn_cv_RANLIB" 1>&6 3284c074d1c9Sdrahnelse 3285c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3286c074d1c9Sdrahnfi 3287c074d1c9Sdrahn 3288c074d1c9Sdrahn RANLIB=$ncn_cv_RANLIB 3289c074d1c9Sdrahn else 3290c074d1c9Sdrahn RANLIB=":" 3291c074d1c9Sdrahn fi 3292c074d1c9Sdrahnelse 3293c074d1c9Sdrahn RANLIB="$ac_cv_prog_RANLIB" 3294c074d1c9Sdrahnfi 3295c074d1c9Sdrahn 3296c074d1c9Sdrahn if test -n "$ncn_tool_prefix"; then 3297c074d1c9Sdrahn # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args. 3298c074d1c9Sdrahnset dummy ${ncn_tool_prefix}windres; ac_word=$2 3299c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3300007c2a45Smiodecho "configure:3287: checking for $ac_word" >&5 3301c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then 3302c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3303c074d1c9Sdrahnelse 3304c074d1c9Sdrahn if test -n "$WINDRES"; then 3305c074d1c9Sdrahn ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 3306c074d1c9Sdrahnelse 3307c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3308c074d1c9Sdrahn ac_dummy="$PATH" 3309c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3310c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3311c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3312c074d1c9Sdrahn ac_cv_prog_WINDRES="${ncn_tool_prefix}windres" 3313c074d1c9Sdrahn break 3314c074d1c9Sdrahn fi 3315c074d1c9Sdrahn done 3316c074d1c9Sdrahn IFS="$ac_save_ifs" 3317c074d1c9Sdrahnfi 3318c074d1c9Sdrahnfi 3319c074d1c9SdrahnWINDRES="$ac_cv_prog_WINDRES" 3320c074d1c9Sdrahnif test -n "$WINDRES"; then 3321c074d1c9Sdrahn echo "$ac_t""$WINDRES" 1>&6 3322c074d1c9Sdrahnelse 3323c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3324c074d1c9Sdrahnfi 3325c074d1c9Sdrahn 3326c074d1c9Sdrahnfi 3327c074d1c9Sdrahnif test -z "$ac_cv_prog_WINDRES" ; then 3328c074d1c9Sdrahn if test $build = $host ; then 3329c074d1c9Sdrahn ncn_cv_WINDRES=$WINDRES 3330c074d1c9Sdrahn # Extract the first word of "windres", so it can be a program name with args. 3331c074d1c9Sdrahnset dummy windres; ac_word=$2 3332c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3333007c2a45Smiodecho "configure:3320: checking for $ac_word" >&5 3334c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then 3335c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3336c074d1c9Sdrahnelse 3337c074d1c9Sdrahn if test -n "$ncn_cv_WINDRES"; then 3338c074d1c9Sdrahn ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test. 3339c074d1c9Sdrahnelse 3340c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3341c074d1c9Sdrahn ac_dummy="$PATH" 3342c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3343c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3344c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3345c074d1c9Sdrahn ac_cv_prog_ncn_cv_WINDRES="windres" 3346c074d1c9Sdrahn break 3347c074d1c9Sdrahn fi 3348c074d1c9Sdrahn done 3349c074d1c9Sdrahn IFS="$ac_save_ifs" 3350c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres" 3351c074d1c9Sdrahnfi 3352c074d1c9Sdrahnfi 3353c074d1c9Sdrahnncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES" 3354c074d1c9Sdrahnif test -n "$ncn_cv_WINDRES"; then 3355c074d1c9Sdrahn echo "$ac_t""$ncn_cv_WINDRES" 1>&6 3356c074d1c9Sdrahnelse 3357c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3358c074d1c9Sdrahnfi 3359c074d1c9Sdrahn 3360c074d1c9Sdrahn WINDRES=$ncn_cv_WINDRES 3361c074d1c9Sdrahn else 3362c074d1c9Sdrahn WINDRES="${ncn_tool_prefix}windres" 3363c074d1c9Sdrahn fi 3364c074d1c9Sdrahnelse 3365c074d1c9Sdrahn WINDRES="$ac_cv_prog_WINDRES" 3366c074d1c9Sdrahnfi 3367c074d1c9Sdrahn 3368c074d1c9Sdrahn if test -n "$ncn_tool_prefix"; then 3369c074d1c9Sdrahn # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args. 3370c074d1c9Sdrahnset dummy ${ncn_tool_prefix}objcopy; ac_word=$2 3371c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3372007c2a45Smiodecho "configure:3359: checking for $ac_word" >&5 3373c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then 3374c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3375c074d1c9Sdrahnelse 3376c074d1c9Sdrahn if test -n "$OBJCOPY"; then 3377c074d1c9Sdrahn ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 3378c074d1c9Sdrahnelse 3379c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3380c074d1c9Sdrahn ac_dummy="$PATH" 3381c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3382c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3383c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3384c074d1c9Sdrahn ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy" 3385c074d1c9Sdrahn break 3386c074d1c9Sdrahn fi 3387c074d1c9Sdrahn done 3388c074d1c9Sdrahn IFS="$ac_save_ifs" 3389c074d1c9Sdrahnfi 3390c074d1c9Sdrahnfi 3391c074d1c9SdrahnOBJCOPY="$ac_cv_prog_OBJCOPY" 3392c074d1c9Sdrahnif test -n "$OBJCOPY"; then 3393c074d1c9Sdrahn echo "$ac_t""$OBJCOPY" 1>&6 3394c074d1c9Sdrahnelse 3395c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3396c074d1c9Sdrahnfi 3397c074d1c9Sdrahn 3398c074d1c9Sdrahnfi 3399c074d1c9Sdrahnif test -z "$ac_cv_prog_OBJCOPY" ; then 3400c074d1c9Sdrahn if test $build = $host ; then 3401c074d1c9Sdrahn ncn_cv_OBJCOPY=$OBJCOPY 3402c074d1c9Sdrahn # Extract the first word of "objcopy", so it can be a program name with args. 3403c074d1c9Sdrahnset dummy objcopy; ac_word=$2 3404c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3405007c2a45Smiodecho "configure:3392: checking for $ac_word" >&5 3406c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then 3407c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3408c074d1c9Sdrahnelse 3409c074d1c9Sdrahn if test -n "$ncn_cv_OBJCOPY"; then 3410c074d1c9Sdrahn ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test. 3411c074d1c9Sdrahnelse 3412c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3413c074d1c9Sdrahn ac_dummy="$PATH" 3414c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3415c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3416c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3417c074d1c9Sdrahn ac_cv_prog_ncn_cv_OBJCOPY="objcopy" 3418c074d1c9Sdrahn break 3419c074d1c9Sdrahn fi 3420c074d1c9Sdrahn done 3421c074d1c9Sdrahn IFS="$ac_save_ifs" 3422c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy" 3423c074d1c9Sdrahnfi 3424c074d1c9Sdrahnfi 3425c074d1c9Sdrahnncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY" 3426c074d1c9Sdrahnif test -n "$ncn_cv_OBJCOPY"; then 3427c074d1c9Sdrahn echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6 3428c074d1c9Sdrahnelse 3429c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3430c074d1c9Sdrahnfi 3431c074d1c9Sdrahn 3432c074d1c9Sdrahn OBJCOPY=$ncn_cv_OBJCOPY 3433c074d1c9Sdrahn else 3434c074d1c9Sdrahn OBJCOPY="${ncn_tool_prefix}objcopy" 3435c074d1c9Sdrahn fi 3436c074d1c9Sdrahnelse 3437c074d1c9Sdrahn OBJCOPY="$ac_cv_prog_OBJCOPY" 3438c074d1c9Sdrahnfi 3439c074d1c9Sdrahn 3440c074d1c9Sdrahn if test -n "$ncn_tool_prefix"; then 3441c074d1c9Sdrahn # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args. 3442c074d1c9Sdrahnset dummy ${ncn_tool_prefix}objdump; ac_word=$2 3443c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3444007c2a45Smiodecho "configure:3431: checking for $ac_word" >&5 3445c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then 3446c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3447c074d1c9Sdrahnelse 3448c074d1c9Sdrahn if test -n "$OBJDUMP"; then 3449c074d1c9Sdrahn ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 3450c074d1c9Sdrahnelse 3451c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3452c074d1c9Sdrahn ac_dummy="$PATH" 3453c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3454c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3455c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3456c074d1c9Sdrahn ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump" 3457c074d1c9Sdrahn break 3458c074d1c9Sdrahn fi 3459c074d1c9Sdrahn done 3460c074d1c9Sdrahn IFS="$ac_save_ifs" 3461c074d1c9Sdrahnfi 3462c074d1c9Sdrahnfi 3463c074d1c9SdrahnOBJDUMP="$ac_cv_prog_OBJDUMP" 3464c074d1c9Sdrahnif test -n "$OBJDUMP"; then 3465c074d1c9Sdrahn echo "$ac_t""$OBJDUMP" 1>&6 3466c074d1c9Sdrahnelse 3467c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3468c074d1c9Sdrahnfi 3469c074d1c9Sdrahn 3470c074d1c9Sdrahnfi 3471c074d1c9Sdrahnif test -z "$ac_cv_prog_OBJDUMP" ; then 3472c074d1c9Sdrahn if test $build = $host ; then 3473c074d1c9Sdrahn ncn_cv_OBJDUMP=$OBJDUMP 3474c074d1c9Sdrahn # Extract the first word of "objdump", so it can be a program name with args. 3475c074d1c9Sdrahnset dummy objdump; ac_word=$2 3476c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3477007c2a45Smiodecho "configure:3464: checking for $ac_word" >&5 3478c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then 3479c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3480c074d1c9Sdrahnelse 3481c074d1c9Sdrahn if test -n "$ncn_cv_OBJDUMP"; then 3482c074d1c9Sdrahn ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test. 3483c074d1c9Sdrahnelse 3484c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3485c074d1c9Sdrahn ac_dummy="$PATH" 3486c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3487c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3488c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3489c074d1c9Sdrahn ac_cv_prog_ncn_cv_OBJDUMP="objdump" 3490c074d1c9Sdrahn break 3491c074d1c9Sdrahn fi 3492c074d1c9Sdrahn done 3493c074d1c9Sdrahn IFS="$ac_save_ifs" 3494c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump" 3495c074d1c9Sdrahnfi 3496c074d1c9Sdrahnfi 3497c074d1c9Sdrahnncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP" 3498c074d1c9Sdrahnif test -n "$ncn_cv_OBJDUMP"; then 3499c074d1c9Sdrahn echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6 3500c074d1c9Sdrahnelse 3501c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3502c074d1c9Sdrahnfi 3503c074d1c9Sdrahn 3504c074d1c9Sdrahn OBJDUMP=$ncn_cv_OBJDUMP 3505c074d1c9Sdrahn else 3506c074d1c9Sdrahn OBJDUMP="${ncn_tool_prefix}objdump" 3507c074d1c9Sdrahn fi 3508c074d1c9Sdrahnelse 3509c074d1c9Sdrahn OBJDUMP="$ac_cv_prog_OBJDUMP" 3510c074d1c9Sdrahnfi 3511c074d1c9Sdrahn 3512c074d1c9Sdrahn 3513c074d1c9Sdrahn 3514c074d1c9Sdrahn 3515c074d1c9Sdrahn 3516c074d1c9Sdrahn 3517c074d1c9Sdrahn 3518c074d1c9Sdrahn 3519c074d1c9Sdrahn 3520007c2a45Smiod 3521c074d1c9Sdrahn# Target tools. 3522c074d1c9Sdrahn if test -n "$ncn_target_tool_prefix"; then 3523c074d1c9Sdrahn # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args. 3524c074d1c9Sdrahnset dummy ${ncn_target_tool_prefix}ar; ac_word=$2 3525c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3526007c2a45Smiodecho "configure:3513: checking for $ac_word" >&5 3527c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then 3528c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3529c074d1c9Sdrahnelse 3530c074d1c9Sdrahn if test -n "$AR_FOR_TARGET"; then 3531c074d1c9Sdrahn ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. 3532c074d1c9Sdrahnelse 3533c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3534c074d1c9Sdrahn ac_dummy="$PATH" 3535c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3536c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3537c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3538c074d1c9Sdrahn ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}ar" 3539c074d1c9Sdrahn break 3540c074d1c9Sdrahn fi 3541c074d1c9Sdrahn done 3542c074d1c9Sdrahn IFS="$ac_save_ifs" 3543c074d1c9Sdrahnfi 3544c074d1c9Sdrahnfi 3545c074d1c9SdrahnAR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" 3546c074d1c9Sdrahnif test -n "$AR_FOR_TARGET"; then 3547c074d1c9Sdrahn echo "$ac_t""$AR_FOR_TARGET" 1>&6 3548c074d1c9Sdrahnelse 3549c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3550c074d1c9Sdrahnfi 3551c074d1c9Sdrahn 3552c074d1c9Sdrahnfi 3553c074d1c9Sdrahnif test -z "$ac_cv_prog_AR_FOR_TARGET" ; then 3554c074d1c9Sdrahn if test $build = $target ; then 3555c074d1c9Sdrahn ncn_cv_AR_FOR_TARGET=$AR_FOR_TARGET 3556c074d1c9Sdrahn # Extract the first word of "ar", so it can be a program name with args. 3557c074d1c9Sdrahnset dummy ar; ac_word=$2 3558c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3559007c2a45Smiodecho "configure:3546: checking for $ac_word" >&5 3560c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR_FOR_TARGET'+set}'`\" = set"; then 3561c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3562c074d1c9Sdrahnelse 3563c074d1c9Sdrahn if test -n "$ncn_cv_AR_FOR_TARGET"; then 3564c074d1c9Sdrahn ac_cv_prog_ncn_cv_AR_FOR_TARGET="$ncn_cv_AR_FOR_TARGET" # Let the user override the test. 3565c074d1c9Sdrahnelse 3566c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3567c074d1c9Sdrahn ac_dummy="$PATH" 3568c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3569c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3570c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3571c074d1c9Sdrahn ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar" 3572c074d1c9Sdrahn break 3573c074d1c9Sdrahn fi 3574c074d1c9Sdrahn done 3575c074d1c9Sdrahn IFS="$ac_save_ifs" 3576c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar" 3577c074d1c9Sdrahnfi 3578c074d1c9Sdrahnfi 3579c074d1c9Sdrahnncn_cv_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_AR_FOR_TARGET" 3580c074d1c9Sdrahnif test -n "$ncn_cv_AR_FOR_TARGET"; then 3581c074d1c9Sdrahn echo "$ac_t""$ncn_cv_AR_FOR_TARGET" 1>&6 3582c074d1c9Sdrahnelse 3583c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3584c074d1c9Sdrahnfi 3585c074d1c9Sdrahn 3586c074d1c9Sdrahn AR_FOR_TARGET=$ncn_cv_AR_FOR_TARGET 3587c074d1c9Sdrahn else 3588c074d1c9Sdrahn AR_FOR_TARGET="${ncn_target_tool_prefix}ar" 3589c074d1c9Sdrahn fi 3590c074d1c9Sdrahnelse 3591c074d1c9Sdrahn AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" 3592c074d1c9Sdrahnfi 3593c074d1c9Sdrahn 3594c074d1c9Sdrahn if test -n "$ncn_target_tool_prefix"; then 3595c074d1c9Sdrahn # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args. 3596c074d1c9Sdrahnset dummy ${ncn_target_tool_prefix}as; ac_word=$2 3597c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3598007c2a45Smiodecho "configure:3585: checking for $ac_word" >&5 3599c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then 3600c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3601c074d1c9Sdrahnelse 3602c074d1c9Sdrahn if test -n "$AS_FOR_TARGET"; then 3603c074d1c9Sdrahn ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. 3604c074d1c9Sdrahnelse 3605c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3606c074d1c9Sdrahn ac_dummy="$PATH" 3607c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3608c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3609c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3610c074d1c9Sdrahn ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}as" 3611c074d1c9Sdrahn break 3612c074d1c9Sdrahn fi 3613c074d1c9Sdrahn done 3614c074d1c9Sdrahn IFS="$ac_save_ifs" 3615c074d1c9Sdrahnfi 3616c074d1c9Sdrahnfi 3617c074d1c9SdrahnAS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" 3618c074d1c9Sdrahnif test -n "$AS_FOR_TARGET"; then 3619c074d1c9Sdrahn echo "$ac_t""$AS_FOR_TARGET" 1>&6 3620c074d1c9Sdrahnelse 3621c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3622c074d1c9Sdrahnfi 3623c074d1c9Sdrahn 3624c074d1c9Sdrahnfi 3625c074d1c9Sdrahnif test -z "$ac_cv_prog_AS_FOR_TARGET" ; then 3626c074d1c9Sdrahn if test $build = $target ; then 3627c074d1c9Sdrahn ncn_cv_AS_FOR_TARGET=$AS_FOR_TARGET 3628c074d1c9Sdrahn # Extract the first word of "as", so it can be a program name with args. 3629c074d1c9Sdrahnset dummy as; ac_word=$2 3630c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3631007c2a45Smiodecho "configure:3618: checking for $ac_word" >&5 3632c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS_FOR_TARGET'+set}'`\" = set"; then 3633c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3634c074d1c9Sdrahnelse 3635c074d1c9Sdrahn if test -n "$ncn_cv_AS_FOR_TARGET"; then 3636c074d1c9Sdrahn ac_cv_prog_ncn_cv_AS_FOR_TARGET="$ncn_cv_AS_FOR_TARGET" # Let the user override the test. 3637c074d1c9Sdrahnelse 3638c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3639c074d1c9Sdrahn ac_dummy="$PATH" 3640c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3641c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3642c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3643c074d1c9Sdrahn ac_cv_prog_ncn_cv_AS_FOR_TARGET="as" 3644c074d1c9Sdrahn break 3645c074d1c9Sdrahn fi 3646c074d1c9Sdrahn done 3647c074d1c9Sdrahn IFS="$ac_save_ifs" 3648c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_AS_FOR_TARGET="as" 3649c074d1c9Sdrahnfi 3650c074d1c9Sdrahnfi 3651c074d1c9Sdrahnncn_cv_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_AS_FOR_TARGET" 3652c074d1c9Sdrahnif test -n "$ncn_cv_AS_FOR_TARGET"; then 3653c074d1c9Sdrahn echo "$ac_t""$ncn_cv_AS_FOR_TARGET" 1>&6 3654c074d1c9Sdrahnelse 3655c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3656c074d1c9Sdrahnfi 3657c074d1c9Sdrahn 3658c074d1c9Sdrahn AS_FOR_TARGET=$ncn_cv_AS_FOR_TARGET 3659c074d1c9Sdrahn else 3660c074d1c9Sdrahn AS_FOR_TARGET="${ncn_target_tool_prefix}as" 3661c074d1c9Sdrahn fi 3662c074d1c9Sdrahnelse 3663c074d1c9Sdrahn AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" 3664c074d1c9Sdrahnfi 3665c074d1c9Sdrahn 3666c074d1c9Sdrahn if test -n "$ncn_target_tool_prefix"; then 3667c074d1c9Sdrahn # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args. 3668c074d1c9Sdrahnset dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2 3669c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3670007c2a45Smiodecho "configure:3657: checking for $ac_word" >&5 3671c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then 3672c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3673c074d1c9Sdrahnelse 3674c074d1c9Sdrahn if test -n "$DLLTOOL_FOR_TARGET"; then 3675c074d1c9Sdrahn ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. 3676c074d1c9Sdrahnelse 3677c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3678c074d1c9Sdrahn ac_dummy="$PATH" 3679c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3680c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3681c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3682c074d1c9Sdrahn ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool" 3683c074d1c9Sdrahn break 3684c074d1c9Sdrahn fi 3685c074d1c9Sdrahn done 3686c074d1c9Sdrahn IFS="$ac_save_ifs" 3687c074d1c9Sdrahnfi 3688c074d1c9Sdrahnfi 3689c074d1c9SdrahnDLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" 3690c074d1c9Sdrahnif test -n "$DLLTOOL_FOR_TARGET"; then 3691c074d1c9Sdrahn echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6 3692c074d1c9Sdrahnelse 3693c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3694c074d1c9Sdrahnfi 3695c074d1c9Sdrahn 3696c074d1c9Sdrahnfi 3697c074d1c9Sdrahnif test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then 3698c074d1c9Sdrahn if test $build = $target ; then 3699c074d1c9Sdrahn ncn_cv_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET 3700c074d1c9Sdrahn # Extract the first word of "dlltool", so it can be a program name with args. 3701c074d1c9Sdrahnset dummy dlltool; ac_word=$2 3702c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3703007c2a45Smiodecho "configure:3690: checking for $ac_word" >&5 3704c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then 3705c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3706c074d1c9Sdrahnelse 3707c074d1c9Sdrahn if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then 3708c074d1c9Sdrahn ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="$ncn_cv_DLLTOOL_FOR_TARGET" # Let the user override the test. 3709c074d1c9Sdrahnelse 3710c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3711c074d1c9Sdrahn ac_dummy="$PATH" 3712c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3713c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3714c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3715c074d1c9Sdrahn ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool" 3716c074d1c9Sdrahn break 3717c074d1c9Sdrahn fi 3718c074d1c9Sdrahn done 3719c074d1c9Sdrahn IFS="$ac_save_ifs" 3720c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool" 3721c074d1c9Sdrahnfi 3722c074d1c9Sdrahnfi 3723c074d1c9Sdrahnncn_cv_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET" 3724c074d1c9Sdrahnif test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then 3725c074d1c9Sdrahn echo "$ac_t""$ncn_cv_DLLTOOL_FOR_TARGET" 1>&6 3726c074d1c9Sdrahnelse 3727c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3728c074d1c9Sdrahnfi 3729c074d1c9Sdrahn 3730c074d1c9Sdrahn DLLTOOL_FOR_TARGET=$ncn_cv_DLLTOOL_FOR_TARGET 3731c074d1c9Sdrahn else 3732c074d1c9Sdrahn DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool" 3733c074d1c9Sdrahn fi 3734c074d1c9Sdrahnelse 3735c074d1c9Sdrahn DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" 3736c074d1c9Sdrahnfi 3737c074d1c9Sdrahn 3738c074d1c9Sdrahn if test -n "$ncn_target_tool_prefix"; then 3739c074d1c9Sdrahn # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args. 3740c074d1c9Sdrahnset dummy ${ncn_target_tool_prefix}ld; ac_word=$2 3741c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3742007c2a45Smiodecho "configure:3729: checking for $ac_word" >&5 3743c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then 3744c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3745c074d1c9Sdrahnelse 3746c074d1c9Sdrahn if test -n "$LD_FOR_TARGET"; then 3747c074d1c9Sdrahn ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. 3748c074d1c9Sdrahnelse 3749c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3750c074d1c9Sdrahn ac_dummy="$PATH" 3751c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3752c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3753c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3754c074d1c9Sdrahn ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}ld" 3755c074d1c9Sdrahn break 3756c074d1c9Sdrahn fi 3757c074d1c9Sdrahn done 3758c074d1c9Sdrahn IFS="$ac_save_ifs" 3759c074d1c9Sdrahnfi 3760c074d1c9Sdrahnfi 3761c074d1c9SdrahnLD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" 3762c074d1c9Sdrahnif test -n "$LD_FOR_TARGET"; then 3763c074d1c9Sdrahn echo "$ac_t""$LD_FOR_TARGET" 1>&6 3764c074d1c9Sdrahnelse 3765c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3766c074d1c9Sdrahnfi 3767c074d1c9Sdrahn 3768c074d1c9Sdrahnfi 3769c074d1c9Sdrahnif test -z "$ac_cv_prog_LD_FOR_TARGET" ; then 3770c074d1c9Sdrahn if test $build = $target ; then 3771c074d1c9Sdrahn ncn_cv_LD_FOR_TARGET=$LD_FOR_TARGET 3772c074d1c9Sdrahn # Extract the first word of "ld", so it can be a program name with args. 3773c074d1c9Sdrahnset dummy ld; ac_word=$2 3774c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3775007c2a45Smiodecho "configure:3762: checking for $ac_word" >&5 3776c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD_FOR_TARGET'+set}'`\" = set"; then 3777c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3778c074d1c9Sdrahnelse 3779c074d1c9Sdrahn if test -n "$ncn_cv_LD_FOR_TARGET"; then 3780c074d1c9Sdrahn ac_cv_prog_ncn_cv_LD_FOR_TARGET="$ncn_cv_LD_FOR_TARGET" # Let the user override the test. 3781c074d1c9Sdrahnelse 3782c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3783c074d1c9Sdrahn ac_dummy="$PATH" 3784c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3785c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3786c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3787c074d1c9Sdrahn ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld" 3788c074d1c9Sdrahn break 3789c074d1c9Sdrahn fi 3790c074d1c9Sdrahn done 3791c074d1c9Sdrahn IFS="$ac_save_ifs" 3792c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld" 3793c074d1c9Sdrahnfi 3794c074d1c9Sdrahnfi 3795c074d1c9Sdrahnncn_cv_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_LD_FOR_TARGET" 3796c074d1c9Sdrahnif test -n "$ncn_cv_LD_FOR_TARGET"; then 3797c074d1c9Sdrahn echo "$ac_t""$ncn_cv_LD_FOR_TARGET" 1>&6 3798c074d1c9Sdrahnelse 3799c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3800c074d1c9Sdrahnfi 3801c074d1c9Sdrahn 3802c074d1c9Sdrahn LD_FOR_TARGET=$ncn_cv_LD_FOR_TARGET 3803c074d1c9Sdrahn else 3804c074d1c9Sdrahn LD_FOR_TARGET="${ncn_target_tool_prefix}ld" 3805c074d1c9Sdrahn fi 3806c074d1c9Sdrahnelse 3807c074d1c9Sdrahn LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" 3808c074d1c9Sdrahnfi 3809c074d1c9Sdrahn 3810c074d1c9Sdrahn if test -n "$ncn_target_tool_prefix"; then 3811c074d1c9Sdrahn # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args. 3812c074d1c9Sdrahnset dummy ${ncn_target_tool_prefix}nm; ac_word=$2 3813c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3814007c2a45Smiodecho "configure:3801: checking for $ac_word" >&5 3815c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then 3816c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3817c074d1c9Sdrahnelse 3818c074d1c9Sdrahn if test -n "$NM_FOR_TARGET"; then 3819c074d1c9Sdrahn ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. 3820c074d1c9Sdrahnelse 3821c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3822c074d1c9Sdrahn ac_dummy="$PATH" 3823c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3824c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3825c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3826c074d1c9Sdrahn ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}nm" 3827c074d1c9Sdrahn break 3828c074d1c9Sdrahn fi 3829c074d1c9Sdrahn done 3830c074d1c9Sdrahn IFS="$ac_save_ifs" 3831c074d1c9Sdrahnfi 3832c074d1c9Sdrahnfi 3833c074d1c9SdrahnNM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" 3834c074d1c9Sdrahnif test -n "$NM_FOR_TARGET"; then 3835c074d1c9Sdrahn echo "$ac_t""$NM_FOR_TARGET" 1>&6 3836c074d1c9Sdrahnelse 3837c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3838c074d1c9Sdrahnfi 3839c074d1c9Sdrahn 3840c074d1c9Sdrahnfi 3841c074d1c9Sdrahnif test -z "$ac_cv_prog_NM_FOR_TARGET" ; then 3842c074d1c9Sdrahn if test $build = $target ; then 3843c074d1c9Sdrahn ncn_cv_NM_FOR_TARGET=$NM_FOR_TARGET 3844c074d1c9Sdrahn # Extract the first word of "nm", so it can be a program name with args. 3845c074d1c9Sdrahnset dummy nm; ac_word=$2 3846c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3847007c2a45Smiodecho "configure:3834: checking for $ac_word" >&5 3848c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM_FOR_TARGET'+set}'`\" = set"; then 3849c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3850c074d1c9Sdrahnelse 3851c074d1c9Sdrahn if test -n "$ncn_cv_NM_FOR_TARGET"; then 3852c074d1c9Sdrahn ac_cv_prog_ncn_cv_NM_FOR_TARGET="$ncn_cv_NM_FOR_TARGET" # Let the user override the test. 3853c074d1c9Sdrahnelse 3854c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3855c074d1c9Sdrahn ac_dummy="$PATH" 3856c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3857c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3858c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3859c074d1c9Sdrahn ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm" 3860c074d1c9Sdrahn break 3861c074d1c9Sdrahn fi 3862c074d1c9Sdrahn done 3863c074d1c9Sdrahn IFS="$ac_save_ifs" 3864c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm" 3865c074d1c9Sdrahnfi 3866c074d1c9Sdrahnfi 3867c074d1c9Sdrahnncn_cv_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_NM_FOR_TARGET" 3868c074d1c9Sdrahnif test -n "$ncn_cv_NM_FOR_TARGET"; then 3869c074d1c9Sdrahn echo "$ac_t""$ncn_cv_NM_FOR_TARGET" 1>&6 3870c074d1c9Sdrahnelse 3871c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3872c074d1c9Sdrahnfi 3873c074d1c9Sdrahn 3874c074d1c9Sdrahn NM_FOR_TARGET=$ncn_cv_NM_FOR_TARGET 3875c074d1c9Sdrahn else 3876c074d1c9Sdrahn NM_FOR_TARGET="${ncn_target_tool_prefix}nm" 3877c074d1c9Sdrahn fi 3878c074d1c9Sdrahnelse 3879c074d1c9Sdrahn NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" 3880c074d1c9Sdrahnfi 3881c074d1c9Sdrahn 3882c074d1c9Sdrahn if test -n "$ncn_target_tool_prefix"; then 3883c074d1c9Sdrahn # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args. 3884c074d1c9Sdrahnset dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2 3885c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3886007c2a45Smiodecho "configure:3873: checking for $ac_word" >&5 3887c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then 3888c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3889c074d1c9Sdrahnelse 3890c074d1c9Sdrahn if test -n "$RANLIB_FOR_TARGET"; then 3891c074d1c9Sdrahn ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. 3892c074d1c9Sdrahnelse 3893c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3894c074d1c9Sdrahn ac_dummy="$PATH" 3895c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3896c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3897c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3898c074d1c9Sdrahn ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib" 3899c074d1c9Sdrahn break 3900c074d1c9Sdrahn fi 3901c074d1c9Sdrahn done 3902c074d1c9Sdrahn IFS="$ac_save_ifs" 3903c074d1c9Sdrahnfi 3904c074d1c9Sdrahnfi 3905c074d1c9SdrahnRANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" 3906c074d1c9Sdrahnif test -n "$RANLIB_FOR_TARGET"; then 3907c074d1c9Sdrahn echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6 3908c074d1c9Sdrahnelse 3909c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3910c074d1c9Sdrahnfi 3911c074d1c9Sdrahn 3912c074d1c9Sdrahnfi 3913c074d1c9Sdrahnif test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then 3914c074d1c9Sdrahn if test $build = $target ; then 3915c074d1c9Sdrahn ncn_cv_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET 3916c074d1c9Sdrahn # Extract the first word of "ranlib", so it can be a program name with args. 3917c074d1c9Sdrahnset dummy ranlib; ac_word=$2 3918c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3919007c2a45Smiodecho "configure:3906: checking for $ac_word" >&5 3920c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET'+set}'`\" = set"; then 3921c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3922c074d1c9Sdrahnelse 3923c074d1c9Sdrahn if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then 3924c074d1c9Sdrahn ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="$ncn_cv_RANLIB_FOR_TARGET" # Let the user override the test. 3925c074d1c9Sdrahnelse 3926c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3927c074d1c9Sdrahn ac_dummy="$PATH" 3928c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3929c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3930c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3931c074d1c9Sdrahn ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="ranlib" 3932c074d1c9Sdrahn break 3933c074d1c9Sdrahn fi 3934c074d1c9Sdrahn done 3935c074d1c9Sdrahn IFS="$ac_save_ifs" 3936c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET=":" 3937c074d1c9Sdrahnfi 3938c074d1c9Sdrahnfi 3939c074d1c9Sdrahnncn_cv_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET" 3940c074d1c9Sdrahnif test -n "$ncn_cv_RANLIB_FOR_TARGET"; then 3941c074d1c9Sdrahn echo "$ac_t""$ncn_cv_RANLIB_FOR_TARGET" 1>&6 3942c074d1c9Sdrahnelse 3943c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3944c074d1c9Sdrahnfi 3945c074d1c9Sdrahn 3946c074d1c9Sdrahn RANLIB_FOR_TARGET=$ncn_cv_RANLIB_FOR_TARGET 3947c074d1c9Sdrahn else 3948c074d1c9Sdrahn RANLIB_FOR_TARGET=":" 3949c074d1c9Sdrahn fi 3950c074d1c9Sdrahnelse 3951c074d1c9Sdrahn RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" 3952c074d1c9Sdrahnfi 3953c074d1c9Sdrahn 3954c074d1c9Sdrahn if test -n "$ncn_target_tool_prefix"; then 3955c074d1c9Sdrahn # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args. 3956c074d1c9Sdrahnset dummy ${ncn_target_tool_prefix}windres; ac_word=$2 3957c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3958007c2a45Smiodecho "configure:3945: checking for $ac_word" >&5 3959c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then 3960c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3961c074d1c9Sdrahnelse 3962c074d1c9Sdrahn if test -n "$WINDRES_FOR_TARGET"; then 3963c074d1c9Sdrahn ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. 3964c074d1c9Sdrahnelse 3965c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3966c074d1c9Sdrahn ac_dummy="$PATH" 3967c074d1c9Sdrahn for ac_dir in $ac_dummy; do 3968c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 3969c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 3970c074d1c9Sdrahn ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres" 3971c074d1c9Sdrahn break 3972c074d1c9Sdrahn fi 3973c074d1c9Sdrahn done 3974c074d1c9Sdrahn IFS="$ac_save_ifs" 3975c074d1c9Sdrahnfi 3976c074d1c9Sdrahnfi 3977c074d1c9SdrahnWINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" 3978c074d1c9Sdrahnif test -n "$WINDRES_FOR_TARGET"; then 3979c074d1c9Sdrahn echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6 3980c074d1c9Sdrahnelse 3981c074d1c9Sdrahn echo "$ac_t""no" 1>&6 3982c074d1c9Sdrahnfi 3983c074d1c9Sdrahn 3984c074d1c9Sdrahnfi 3985c074d1c9Sdrahnif test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then 3986c074d1c9Sdrahn if test $build = $target ; then 3987c074d1c9Sdrahn ncn_cv_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET 3988c074d1c9Sdrahn # Extract the first word of "windres", so it can be a program name with args. 3989c074d1c9Sdrahnset dummy windres; ac_word=$2 3990c074d1c9Sdrahnecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 3991007c2a45Smiodecho "configure:3978: checking for $ac_word" >&5 3992c074d1c9Sdrahnif eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET'+set}'`\" = set"; then 3993c074d1c9Sdrahn echo $ac_n "(cached) $ac_c" 1>&6 3994c074d1c9Sdrahnelse 3995c074d1c9Sdrahn if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then 3996c074d1c9Sdrahn ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="$ncn_cv_WINDRES_FOR_TARGET" # Let the user override the test. 3997c074d1c9Sdrahnelse 3998c074d1c9Sdrahn IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3999c074d1c9Sdrahn ac_dummy="$PATH" 4000c074d1c9Sdrahn for ac_dir in $ac_dummy; do 4001c074d1c9Sdrahn test -z "$ac_dir" && ac_dir=. 4002c074d1c9Sdrahn if test -f $ac_dir/$ac_word; then 4003c074d1c9Sdrahn ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres" 4004c074d1c9Sdrahn break 4005c074d1c9Sdrahn fi 4006c074d1c9Sdrahn done 4007c074d1c9Sdrahn IFS="$ac_save_ifs" 4008c074d1c9Sdrahn test -z "$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres" 4009c074d1c9Sdrahnfi 4010c074d1c9Sdrahnfi 4011c074d1c9Sdrahnncn_cv_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET" 4012c074d1c9Sdrahnif test -n "$ncn_cv_WINDRES_FOR_TARGET"; then 4013c074d1c9Sdrahn echo "$ac_t""$ncn_cv_WINDRES_FOR_TARGET" 1>&6 4014c074d1c9Sdrahnelse 4015c074d1c9Sdrahn echo "$ac_t""no" 1>&6 4016c074d1c9Sdrahnfi 4017c074d1c9Sdrahn 4018c074d1c9Sdrahn WINDRES_FOR_TARGET=$ncn_cv_WINDRES_FOR_TARGET 4019c074d1c9Sdrahn else 4020c074d1c9Sdrahn WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres" 4021c074d1c9Sdrahn fi 4022c074d1c9Sdrahnelse 4023c074d1c9Sdrahn WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" 4024c074d1c9Sdrahnfi 4025c074d1c9Sdrahn 4026c074d1c9Sdrahn 4027c074d1c9Sdrahn 4028c074d1c9Sdrahn 4029c074d1c9Sdrahn 4030c074d1c9Sdrahn 4031c074d1c9Sdrahn 4032c074d1c9Sdrahn 4033c074d1c9Sdrahn 4034c074d1c9Sdrahn 4035c074d1c9Sdrahn 4036c074d1c9Sdrahn# Fix up target tools. 4037c074d1c9Sdrahnif test "x${build}" = "x${host}" ; then 4038c074d1c9Sdrahn # In this case, the newly built tools can and should be used, 4039c074d1c9Sdrahn # so we override the results of the autoconf tests. 4040c074d1c9Sdrahn # This should really only happen when the tools are actually being built, 4041c074d1c9Sdrahn # but that's a further refinement. The new build scheme, where 4042c074d1c9Sdrahn # tools are built into a structure paralleling where they're installed, 4043c074d1c9Sdrahn # should also eliminate all of this cleanly. 4044c074d1c9Sdrahn AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)" 4045c074d1c9Sdrahn AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)" 4046c074d1c9Sdrahn DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)" 4047c074d1c9Sdrahn LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)" 4048c074d1c9Sdrahn NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)" 4049c074d1c9Sdrahn RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)" 4050c074d1c9Sdrahn WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)" 4051c074d1c9Sdrahnfi 4052c074d1c9Sdrahn# Certain tools may need extra flags. 4053c074d1c9SdrahnAR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} 4054c074d1c9SdrahnRANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} 4055c074d1c9SdrahnNM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} 4056c074d1c9Sdrahn 4057c074d1c9Sdrahnecho $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 4058007c2a45Smiodecho "configure:4045: checking whether to enable maintainer-specific portions of Makefiles" >&5 4059c074d1c9Sdrahn# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 4060c074d1c9Sdrahnif test "${enable_maintainer_mode+set}" = set; then 4061c074d1c9Sdrahn enableval="$enable_maintainer_mode" 4062c074d1c9Sdrahn USE_MAINTAINER_MODE=$enableval 4063c074d1c9Sdrahnelse 4064c074d1c9Sdrahn USE_MAINTAINER_MODE=no 4065c074d1c9Sdrahnfi 4066c074d1c9Sdrahn 4067c074d1c9Sdrahnecho "$ac_t""$USE_MAINTAINER_MODE" 1>&6 4068c074d1c9Sdrahn 4069c074d1c9Sdrahn 4070c074d1c9Sdrahnif test "$USE_MAINTAINER_MODE" = yes; then 4071c074d1c9Sdrahn MAINTAINER_MODE_TRUE= 4072c074d1c9Sdrahn MAINTAINER_MODE_FALSE='#' 4073c074d1c9Sdrahnelse 4074c074d1c9Sdrahn MAINTAINER_MODE_TRUE='#' 4075c074d1c9Sdrahn MAINTAINER_MODE_FALSE= 4076c074d1c9Sdrahnfi 4077c074d1c9SdrahnMAINT=$MAINTAINER_MODE_TRUE 4078c074d1c9Sdrahn 4079c074d1c9Sdrahntrap '' 1 2 15 4080c074d1c9Sdrahncat > confcache <<\EOF 4081c074d1c9Sdrahn# This file is a shell script that caches the results of configure 4082c074d1c9Sdrahn# tests run on this system so they can be shared between configure 4083c074d1c9Sdrahn# scripts and configure runs. It is not useful on other systems. 4084c074d1c9Sdrahn# If it contains results you don't want to keep, you may remove or edit it. 4085c074d1c9Sdrahn# 4086c074d1c9Sdrahn# By default, configure uses ./config.cache as the cache file, 4087c074d1c9Sdrahn# creating it if it does not exist already. You can give configure 4088c074d1c9Sdrahn# the --cache-file=FILE option to use a different cache file; that is 4089c074d1c9Sdrahn# what configure does when it calls configure scripts in 4090c074d1c9Sdrahn# subdirectories, so they share the cache. 4091c074d1c9Sdrahn# Giving --cache-file=/dev/null disables caching, for debugging configure. 4092c074d1c9Sdrahn# config.status only pays attention to the cache file if you give it the 4093c074d1c9Sdrahn# --recheck option to rerun configure. 4094c074d1c9Sdrahn# 4095c074d1c9SdrahnEOF 4096c074d1c9Sdrahn# The following way of writing the cache mishandles newlines in values, 4097c074d1c9Sdrahn# but we know of no workaround that is simple, portable, and efficient. 4098c074d1c9Sdrahn# So, don't put newlines in cache variables' values. 4099c074d1c9Sdrahn# Ultrix sh set writes to stderr and can't be redirected directly, 4100c074d1c9Sdrahn# and sets the high bit in the cache file unless we assign to the vars. 4101c074d1c9Sdrahn(set) 2>&1 | 4102c074d1c9Sdrahn case `(ac_space=' '; set | grep ac_space) 2>&1` in 4103c074d1c9Sdrahn *ac_space=\ *) 4104c074d1c9Sdrahn # `set' does not quote correctly, so add quotes (double-quote substitution 4105c074d1c9Sdrahn # turns \\\\ into \\, and sed turns \\ into \). 4106c074d1c9Sdrahn sed -n \ 4107c074d1c9Sdrahn -e "s/'/'\\\\''/g" \ 4108c074d1c9Sdrahn -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4109c074d1c9Sdrahn ;; 4110c074d1c9Sdrahn *) 4111c074d1c9Sdrahn # `set' quotes correctly as required by POSIX, so do not add quotes. 4112c074d1c9Sdrahn sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4113c074d1c9Sdrahn ;; 4114c074d1c9Sdrahn esac >> confcache 4115c074d1c9Sdrahnif cmp -s $cache_file confcache; then 4116c074d1c9Sdrahn : 4117c074d1c9Sdrahnelse 4118c074d1c9Sdrahn if test -w $cache_file; then 4119c074d1c9Sdrahn echo "updating cache $cache_file" 4120c074d1c9Sdrahn cat confcache > $cache_file 4121c074d1c9Sdrahn else 4122c074d1c9Sdrahn echo "not updating unwritable cache $cache_file" 4123c074d1c9Sdrahn fi 4124c074d1c9Sdrahnfi 4125c074d1c9Sdrahnrm -f confcache 4126c074d1c9Sdrahn 4127c074d1c9Sdrahntrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 4128c074d1c9Sdrahn 4129c074d1c9Sdrahntest "x$prefix" = xNONE && prefix=$ac_default_prefix 4130c074d1c9Sdrahn# Let make expand exec_prefix. 4131c074d1c9Sdrahntest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4132c074d1c9Sdrahn 4133c074d1c9Sdrahn# Any assignment to VPATH causes Sun make to only execute 4134c074d1c9Sdrahn# the first set of double-colon rules, so remove it if not needed. 4135c074d1c9Sdrahn# If there is a colon in the path, we need to keep it. 4136c074d1c9Sdrahnif test "x$srcdir" = x.; then 4137c074d1c9Sdrahn ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 4138c074d1c9Sdrahnfi 4139c074d1c9Sdrahn 4140c074d1c9Sdrahntrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 4141c074d1c9Sdrahn 4142c074d1c9Sdrahn# Transform confdefs.h into DEFS. 4143c074d1c9Sdrahn# Protect against shell expansion while executing Makefile rules. 4144c074d1c9Sdrahn# Protect against Makefile macro expansion. 4145c074d1c9Sdrahncat > conftest.defs <<\EOF 4146c074d1c9Sdrahns%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 4147c074d1c9Sdrahns%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 4148c074d1c9Sdrahns%\[%\\&%g 4149c074d1c9Sdrahns%\]%\\&%g 4150c074d1c9Sdrahns%\$%$$%g 4151c074d1c9SdrahnEOF 4152c074d1c9SdrahnDEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 4153c074d1c9Sdrahnrm -f conftest.defs 4154c074d1c9Sdrahn 4155c074d1c9Sdrahn 4156c074d1c9Sdrahn# Without the "./", some shells look in PATH for config.status. 4157c074d1c9Sdrahn: ${CONFIG_STATUS=./config.status} 4158c074d1c9Sdrahn 4159c074d1c9Sdrahnecho creating $CONFIG_STATUS 4160c074d1c9Sdrahnrm -f $CONFIG_STATUS 4161c074d1c9Sdrahncat > $CONFIG_STATUS <<EOF 4162c074d1c9Sdrahn#! /bin/sh 4163c074d1c9Sdrahn# Generated automatically by configure. 4164c074d1c9Sdrahn# Run this file to recreate the current configuration. 4165c074d1c9Sdrahn# This directory was configured as follows, 4166c074d1c9Sdrahn# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4167c074d1c9Sdrahn# 4168c074d1c9Sdrahn# $0 $ac_configure_args 4169c074d1c9Sdrahn# 4170c074d1c9Sdrahn# Compiler output produced by configure, useful for debugging 4171c074d1c9Sdrahn# configure, is in ./config.log if it exists. 4172c074d1c9Sdrahn 4173c074d1c9Sdrahnac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4174c074d1c9Sdrahnfor ac_option 4175c074d1c9Sdrahndo 4176c074d1c9Sdrahn case "\$ac_option" in 4177c074d1c9Sdrahn -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4178c074d1c9Sdrahn echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4179c074d1c9Sdrahn exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4180c074d1c9Sdrahn -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4181c074d1c9Sdrahn echo "$CONFIG_STATUS generated by autoconf version 2.13" 4182c074d1c9Sdrahn exit 0 ;; 4183c074d1c9Sdrahn -help | --help | --hel | --he | --h) 4184c074d1c9Sdrahn echo "\$ac_cs_usage"; exit 0 ;; 4185c074d1c9Sdrahn *) echo "\$ac_cs_usage"; exit 1 ;; 4186c074d1c9Sdrahn esac 4187c074d1c9Sdrahndone 4188c074d1c9Sdrahn 4189c074d1c9Sdrahnac_given_srcdir=$srcdir 4190007c2a45Smiodac_given_INSTALL="$INSTALL" 4191c074d1c9Sdrahn 4192c074d1c9Sdrahntrap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4193c074d1c9SdrahnEOF 4194c074d1c9Sdrahncat >> $CONFIG_STATUS <<EOF 4195c074d1c9Sdrahn 4196c074d1c9Sdrahn# Protect against being on the right side of a sed subst in config.status. 4197c074d1c9Sdrahnsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4198c074d1c9Sdrahn s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4199c074d1c9Sdrahn$ac_vpsub 4200c074d1c9Sdrahn$extrasub 4201c074d1c9Sdrahns%@SHELL@%$SHELL%g 4202c074d1c9Sdrahns%@CFLAGS@%$CFLAGS%g 4203c074d1c9Sdrahns%@CPPFLAGS@%$CPPFLAGS%g 4204c074d1c9Sdrahns%@CXXFLAGS@%$CXXFLAGS%g 4205c074d1c9Sdrahns%@FFLAGS@%$FFLAGS%g 4206c074d1c9Sdrahns%@DEFS@%$DEFS%g 4207c074d1c9Sdrahns%@LDFLAGS@%$LDFLAGS%g 4208c074d1c9Sdrahns%@LIBS@%$LIBS%g 4209c074d1c9Sdrahns%@exec_prefix@%$exec_prefix%g 4210c074d1c9Sdrahns%@prefix@%$prefix%g 4211c074d1c9Sdrahns%@program_transform_name@%$program_transform_name%g 4212c074d1c9Sdrahns%@bindir@%$bindir%g 4213c074d1c9Sdrahns%@sbindir@%$sbindir%g 4214c074d1c9Sdrahns%@libexecdir@%$libexecdir%g 4215c074d1c9Sdrahns%@datadir@%$datadir%g 4216c074d1c9Sdrahns%@sysconfdir@%$sysconfdir%g 4217c074d1c9Sdrahns%@sharedstatedir@%$sharedstatedir%g 4218c074d1c9Sdrahns%@localstatedir@%$localstatedir%g 4219c074d1c9Sdrahns%@libdir@%$libdir%g 4220c074d1c9Sdrahns%@includedir@%$includedir%g 4221c074d1c9Sdrahns%@oldincludedir@%$oldincludedir%g 4222c074d1c9Sdrahns%@infodir@%$infodir%g 4223c074d1c9Sdrahns%@mandir@%$mandir%g 4224c074d1c9Sdrahns%@host@%$host%g 4225c074d1c9Sdrahns%@host_alias@%$host_alias%g 4226c074d1c9Sdrahns%@host_cpu@%$host_cpu%g 4227c074d1c9Sdrahns%@host_vendor@%$host_vendor%g 4228c074d1c9Sdrahns%@host_os@%$host_os%g 4229c074d1c9Sdrahns%@target@%$target%g 4230c074d1c9Sdrahns%@target_alias@%$target_alias%g 4231c074d1c9Sdrahns%@target_cpu@%$target_cpu%g 4232c074d1c9Sdrahns%@target_vendor@%$target_vendor%g 4233c074d1c9Sdrahns%@target_os@%$target_os%g 4234c074d1c9Sdrahns%@build@%$build%g 4235c074d1c9Sdrahns%@build_alias@%$build_alias%g 4236c074d1c9Sdrahns%@build_cpu@%$build_cpu%g 4237c074d1c9Sdrahns%@build_vendor@%$build_vendor%g 4238c074d1c9Sdrahns%@build_os@%$build_os%g 4239007c2a45Smiods%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4240007c2a45Smiods%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4241007c2a45Smiods%@INSTALL_DATA@%$INSTALL_DATA%g 4242c074d1c9Sdrahns%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g 4243007c2a45Smiods%@build_subdir@%$build_subdir%g 4244007c2a45Smiods%@host_subdir@%$host_subdir%g 4245007c2a45Smiods%@target_subdir@%$target_subdir%g 4246c074d1c9Sdrahn/@maybe_dependencies@/r $maybe_dependencies 4247c074d1c9Sdrahns%@maybe_dependencies@%%g 4248c074d1c9Sdrahn/@serialization_dependencies@/r $serialization_dependencies 4249c074d1c9Sdrahns%@serialization_dependencies@%%g 4250c074d1c9Sdrahn/@host_makefile_frag@/r $host_makefile_frag 4251c074d1c9Sdrahns%@host_makefile_frag@%%g 4252c074d1c9Sdrahn/@target_makefile_frag@/r $target_makefile_frag 4253c074d1c9Sdrahns%@target_makefile_frag@%%g 4254c074d1c9Sdrahn/@alphaieee_frag@/r $alphaieee_frag 4255c074d1c9Sdrahns%@alphaieee_frag@%%g 4256c074d1c9Sdrahn/@ospace_frag@/r $ospace_frag 4257c074d1c9Sdrahns%@ospace_frag@%%g 4258c074d1c9Sdrahns%@SET_LIB_PATH@%$SET_LIB_PATH%g 4259c074d1c9Sdrahns%@RPATH_ENVVAR@%$RPATH_ENVVAR%g 4260c074d1c9Sdrahns%@BUILD_PREFIX@%$BUILD_PREFIX%g 4261c074d1c9Sdrahns%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g 4262c074d1c9Sdrahns%@configlinks@%$configlinks%g 4263c074d1c9Sdrahns%@gcc_version_trigger@%$gcc_version_trigger%g 4264c074d1c9Sdrahns%@gcc_version@%$gcc_version%g 4265c074d1c9Sdrahns%@tooldir@%$tooldir%g 4266c074d1c9Sdrahns%@build_tooldir@%$build_tooldir%g 4267c074d1c9Sdrahns%@GDB_TK@%$GDB_TK%g 4268c074d1c9Sdrahns%@gxx_include_dir@%$gxx_include_dir%g 4269c074d1c9Sdrahns%@libstdcxx_incdir@%$libstdcxx_incdir%g 4270c074d1c9Sdrahns%@build_configargs@%$build_configargs%g 4271c074d1c9Sdrahns%@configure_build_modules@%$configure_build_modules%g 4272c074d1c9Sdrahns%@all_build_modules@%$all_build_modules%g 4273c074d1c9Sdrahns%@host_configargs@%$host_configargs%g 4274c074d1c9Sdrahns%@configdirs@%$configdirs%g 4275c074d1c9Sdrahns%@target_configargs@%$target_configargs%g 4276c074d1c9Sdrahns%@target_configdirs@%$target_configdirs%g 4277c074d1c9Sdrahns%@BISON@%$BISON%g 4278c074d1c9Sdrahns%@CC_FOR_BUILD@%$CC_FOR_BUILD%g 4279c074d1c9Sdrahns%@LEX@%$LEX%g 4280c074d1c9Sdrahns%@MAKEINFO@%$MAKEINFO%g 4281c074d1c9Sdrahns%@YACC@%$YACC%g 4282c074d1c9Sdrahns%@config_shell@%$config_shell%g 4283c074d1c9Sdrahns%@AR@%$AR%g 4284c074d1c9Sdrahns%@ncn_cv_AR@%$ncn_cv_AR%g 4285c074d1c9Sdrahns%@AS@%$AS%g 4286c074d1c9Sdrahns%@ncn_cv_AS@%$ncn_cv_AS%g 4287c074d1c9Sdrahns%@DLLTOOL@%$DLLTOOL%g 4288c074d1c9Sdrahns%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g 4289c074d1c9Sdrahns%@LD@%$LD%g 4290c074d1c9Sdrahns%@ncn_cv_LD@%$ncn_cv_LD%g 4291c074d1c9Sdrahns%@NM@%$NM%g 4292c074d1c9Sdrahns%@ncn_cv_NM@%$ncn_cv_NM%g 4293c074d1c9Sdrahns%@RANLIB@%$RANLIB%g 4294c074d1c9Sdrahns%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g 4295c074d1c9Sdrahns%@WINDRES@%$WINDRES%g 4296c074d1c9Sdrahns%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g 4297c074d1c9Sdrahns%@OBJCOPY@%$OBJCOPY%g 4298c074d1c9Sdrahns%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g 4299c074d1c9Sdrahns%@OBJDUMP@%$OBJDUMP%g 4300c074d1c9Sdrahns%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g 4301c074d1c9Sdrahns%@CC@%$CC%g 4302c074d1c9Sdrahns%@CXX@%$CXX%g 4303007c2a45Smiods%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g 4304c074d1c9Sdrahns%@DEFAULT_YACC@%$DEFAULT_YACC%g 4305c074d1c9Sdrahns%@DEFAULT_LEX@%$DEFAULT_LEX%g 4306c074d1c9Sdrahns%@DEFAULT_M4@%$DEFAULT_M4%g 4307c074d1c9Sdrahns%@AR_FOR_TARGET@%$AR_FOR_TARGET%g 4308c074d1c9Sdrahns%@ncn_cv_AR_FOR_TARGET@%$ncn_cv_AR_FOR_TARGET%g 4309c074d1c9Sdrahns%@AS_FOR_TARGET@%$AS_FOR_TARGET%g 4310c074d1c9Sdrahns%@ncn_cv_AS_FOR_TARGET@%$ncn_cv_AS_FOR_TARGET%g 4311c074d1c9Sdrahns%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g 4312c074d1c9Sdrahns%@ncn_cv_DLLTOOL_FOR_TARGET@%$ncn_cv_DLLTOOL_FOR_TARGET%g 4313c074d1c9Sdrahns%@LD_FOR_TARGET@%$LD_FOR_TARGET%g 4314c074d1c9Sdrahns%@ncn_cv_LD_FOR_TARGET@%$ncn_cv_LD_FOR_TARGET%g 4315c074d1c9Sdrahns%@NM_FOR_TARGET@%$NM_FOR_TARGET%g 4316c074d1c9Sdrahns%@ncn_cv_NM_FOR_TARGET@%$ncn_cv_NM_FOR_TARGET%g 4317c074d1c9Sdrahns%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g 4318c074d1c9Sdrahns%@ncn_cv_RANLIB_FOR_TARGET@%$ncn_cv_RANLIB_FOR_TARGET%g 4319c074d1c9Sdrahns%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g 4320c074d1c9Sdrahns%@ncn_cv_WINDRES_FOR_TARGET@%$ncn_cv_WINDRES_FOR_TARGET%g 4321c074d1c9Sdrahns%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g 4322c074d1c9Sdrahns%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g 4323c074d1c9Sdrahns%@CC_FOR_TARGET@%$CC_FOR_TARGET%g 4324c074d1c9Sdrahns%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g 4325c074d1c9Sdrahns%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g 4326c074d1c9Sdrahns%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g 4327c074d1c9Sdrahns%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g 4328c074d1c9Sdrahns%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g 4329c074d1c9Sdrahns%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g 4330c074d1c9Sdrahns%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g 4331c074d1c9Sdrahns%@MAINT@%$MAINT%g 4332c074d1c9Sdrahn 4333c074d1c9SdrahnCEOF 4334c074d1c9SdrahnEOF 4335c074d1c9Sdrahn 4336c074d1c9Sdrahncat >> $CONFIG_STATUS <<\EOF 4337c074d1c9Sdrahn 4338c074d1c9Sdrahn# Split the substitutions into bite-sized pieces for seds with 4339c074d1c9Sdrahn# small command number limits, like on Digital OSF/1 and HP-UX. 4340c074d1c9Sdrahnac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 4341c074d1c9Sdrahnac_file=1 # Number of current file. 4342c074d1c9Sdrahnac_beg=1 # First line for current file. 4343c074d1c9Sdrahnac_end=$ac_max_sed_cmds # Line after last line for current file. 4344c074d1c9Sdrahnac_more_lines=: 4345c074d1c9Sdrahnac_sed_cmds="" 4346c074d1c9Sdrahnwhile $ac_more_lines; do 4347c074d1c9Sdrahn if test $ac_beg -gt 1; then 4348c074d1c9Sdrahn sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 4349c074d1c9Sdrahn else 4350c074d1c9Sdrahn sed "${ac_end}q" conftest.subs > conftest.s$ac_file 4351c074d1c9Sdrahn fi 4352c074d1c9Sdrahn if test ! -s conftest.s$ac_file; then 4353c074d1c9Sdrahn ac_more_lines=false 4354c074d1c9Sdrahn rm -f conftest.s$ac_file 4355c074d1c9Sdrahn else 4356c074d1c9Sdrahn if test -z "$ac_sed_cmds"; then 4357c074d1c9Sdrahn ac_sed_cmds="sed -f conftest.s$ac_file" 4358c074d1c9Sdrahn else 4359c074d1c9Sdrahn ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 4360c074d1c9Sdrahn fi 4361c074d1c9Sdrahn ac_file=`expr $ac_file + 1` 4362c074d1c9Sdrahn ac_beg=$ac_end 4363c074d1c9Sdrahn ac_end=`expr $ac_end + $ac_max_sed_cmds` 4364c074d1c9Sdrahn fi 4365c074d1c9Sdrahndone 4366c074d1c9Sdrahnif test -z "$ac_sed_cmds"; then 4367c074d1c9Sdrahn ac_sed_cmds=cat 4368c074d1c9Sdrahnfi 4369c074d1c9SdrahnEOF 4370c074d1c9Sdrahn 4371c074d1c9Sdrahncat >> $CONFIG_STATUS <<EOF 4372c074d1c9Sdrahn 4373c074d1c9SdrahnCONFIG_FILES=\${CONFIG_FILES-"Makefile"} 4374c074d1c9SdrahnEOF 4375c074d1c9Sdrahncat >> $CONFIG_STATUS <<\EOF 4376c074d1c9Sdrahnfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 4377c074d1c9Sdrahn # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4378c074d1c9Sdrahn case "$ac_file" in 4379c074d1c9Sdrahn *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4380c074d1c9Sdrahn ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4381c074d1c9Sdrahn *) ac_file_in="${ac_file}.in" ;; 4382c074d1c9Sdrahn esac 4383c074d1c9Sdrahn 4384c074d1c9Sdrahn # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 4385c074d1c9Sdrahn 4386c074d1c9Sdrahn # Remove last slash and all that follows it. Not all systems have dirname. 4387c074d1c9Sdrahn ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4388c074d1c9Sdrahn if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4389c074d1c9Sdrahn # The file is in a subdirectory. 4390c074d1c9Sdrahn test ! -d "$ac_dir" && mkdir "$ac_dir" 4391c074d1c9Sdrahn ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 4392c074d1c9Sdrahn # A "../" for each directory in $ac_dir_suffix. 4393c074d1c9Sdrahn ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 4394c074d1c9Sdrahn else 4395c074d1c9Sdrahn ac_dir_suffix= ac_dots= 4396c074d1c9Sdrahn fi 4397c074d1c9Sdrahn 4398c074d1c9Sdrahn case "$ac_given_srcdir" in 4399c074d1c9Sdrahn .) srcdir=. 4400c074d1c9Sdrahn if test -z "$ac_dots"; then top_srcdir=. 4401c074d1c9Sdrahn else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 4402c074d1c9Sdrahn /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 4403c074d1c9Sdrahn *) # Relative path. 4404c074d1c9Sdrahn srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 4405c074d1c9Sdrahn top_srcdir="$ac_dots$ac_given_srcdir" ;; 4406c074d1c9Sdrahn esac 4407c074d1c9Sdrahn 4408007c2a45Smiod case "$ac_given_INSTALL" in 4409007c2a45Smiod [/$]*) INSTALL="$ac_given_INSTALL" ;; 4410007c2a45Smiod *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 4411007c2a45Smiod esac 4412c074d1c9Sdrahn 4413c074d1c9Sdrahn echo creating "$ac_file" 4414c074d1c9Sdrahn rm -f "$ac_file" 4415c074d1c9Sdrahn configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 4416c074d1c9Sdrahn case "$ac_file" in 4417c074d1c9Sdrahn *Makefile*) ac_comsub="1i\\ 4418c074d1c9Sdrahn# $configure_input" ;; 4419c074d1c9Sdrahn *) ac_comsub= ;; 4420c074d1c9Sdrahn esac 4421c074d1c9Sdrahn 4422c074d1c9Sdrahn ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4423c074d1c9Sdrahn sed -e "$ac_comsub 4424c074d1c9Sdrahns%@configure_input@%$configure_input%g 4425c074d1c9Sdrahns%@srcdir@%$srcdir%g 4426c074d1c9Sdrahns%@top_srcdir@%$top_srcdir%g 4427007c2a45Smiods%@INSTALL@%$INSTALL%g 4428c074d1c9Sdrahn" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 4429c074d1c9Sdrahnfi; done 4430c074d1c9Sdrahnrm -f conftest.s* 4431c074d1c9Sdrahn 4432c074d1c9SdrahnEOF 4433c074d1c9Sdrahncat >> $CONFIG_STATUS <<EOF 4434c074d1c9Sdrahn 4435c074d1c9SdrahnEOF 4436c074d1c9Sdrahncat >> $CONFIG_STATUS <<\EOF 44372159047fSniklas 44382159047fSniklasexit 0 4439c074d1c9SdrahnEOF 4440c074d1c9Sdrahnchmod +x $CONFIG_STATUS 4441c074d1c9Sdrahnrm -fr confdefs* $ac_clean_files 4442c074d1c9Sdrahntest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 44432159047fSniklas 4444