]> Git Repo - binutils.git/blame - gas/configure
* configure.in, configure: Initialize bfd_gas to no.
[binutils.git] / gas / configure
CommitLineData
b11fb939
KR
1#!/bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated automatically using autoconf version 1.107
4# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
5#
6# This configure script is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License as published
8# by the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10#
11# This script is distributed in the hope that it will be useful, but
12# WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14# Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
20ac_help=
21ac_help="${ac_help}
22 bfd-assembler use BFD back end for writing object files"
23# Save the original args to write them into config.status later.
24configure_args="$@"
25
26# Omit some internal, obsolete, or unimplemented options to make the
27# list less imposing.
28ac_usage="Usage: configure [options] [host]
29Options: [defaults in brackets after descriptions]
30Configuration:
31 --cache-file=FILE cache test results in FILE
32 --help print this message
33 --no-create do not create output files
34 --quiet, --silent do not print \`checking...' messages
35 --version print the version of autoconf that created configure
36Directories:
37 --exec-prefix=PREFIX install host dependent files in PREFIX [/usr/local]
38 --prefix=PREFIX install host independent files in PREFIX [/usr/local]
39 --srcdir=DIR find the sources in DIR [configure dir or ..]
40Host type:
41 --build=BUILD configure for building on BUILD [BUILD=HOST]
42 --host=HOST configure for HOST [guessed]
43 --target=TARGET configure for TARGET [TARGET=HOST]
44Features and packages:
45 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
46 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
47 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
48 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
49 --x-includes=DIR X include files are in DIR
50 --x-libraries=DIR X library files are in DIR
51--enable and --with options recognized:$ac_help"
52
53# Initialize some variables set by options.
54# The variables have the same names as the options, with
55# dashes changed to underlines.
56build=NONE
57cache_file=./config.cache
58exec_prefix=NONE
59host=NONE
60no_create=
61nonopt=NONE
62norecursion=
63prefix=NONE
64program_prefix=
65program_suffix=
66program_transform_name=
67silent=
68srcdir=
69target=NONE
70verbose=
71x_includes=NONE
72x_libraries=NONE
73
74# Initialize some other variables.
75subdirs=
76
77ac_prev=
78for ac_option
79do
80
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
84 ac_prev=
85 continue
86 fi
87
88 case "$ac_option" in
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 *) ac_optarg= ;;
91 esac
92
93 # Accept (but ignore some of) the important Cygnus configure
94 # options, so we can diagnose typos.
95
96 case "$ac_option" in
97
98 -build | --build | --buil | --bui | --bu | --b)
99 ac_prev=build ;;
100 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
101 build="$ac_optarg" ;;
102
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
109
110 -disable-* | --disable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
114 { echo "configure: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 fi
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117 eval "enable_${ac_feature}=no" ;;
118
119 -enable-* | --enable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
123 { echo "configure: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 fi
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 case "$ac_option" in
127 *=*) ;;
128 *) ac_optarg=yes ;;
129 esac
130 eval "enable_${ac_feature}='$ac_optarg'" ;;
131
132 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
133 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
134 | --exec | --exe | --ex)
135 ac_prev=exec_prefix ;;
136 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
137 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
138 | --exec=* | --exe=* | --ex=*)
139 exec_prefix="$ac_optarg" ;;
140
141 -gas | --gas | --ga | --g)
142 # Obsolete; use --with-gas.
143 with_gas=yes ;;
144
145 -help | --help | --hel | --he)
146 cat << EOF
147$ac_usage
148EOF
149 exit 0 ;;
150
151 -host | --host | --hos | --ho)
152 ac_prev=host ;;
153 -host=* | --host=* | --hos=* | --ho=*)
154 host="$ac_optarg" ;;
155
156 -nfp | --nfp | --nf)
157 # Obsolete; use --without-fp.
158 with_fp=no ;;
159
160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
161 | --no-cr | --no-c)
162 no_create=yes ;;
163
164 -norecursion | --norecursion | --norecursio | --norecursi \
165 | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
166 norecursion=yes ;;
167
168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
169 ac_prev=prefix ;;
170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
171 prefix="$ac_optarg" ;;
172
173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
174 | --program-pre | --program-pr | --program-p)
175 ac_prev=program_prefix ;;
176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
178 program_prefix="$ac_optarg" ;;
179
180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
181 | --program-suf | --program-su | --program-s)
182 ac_prev=program_suffix ;;
183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
185 program_suffix="$ac_optarg" ;;
186
187 -program-transform-name | --program-transform-name \
188 | --program-transform-nam | --program-transform-na \
189 | --program-transform-n | --program-transform- \
190 | --program-transform | --program-transfor \
191 | --program-transfo | --program-transf \
192 | --program-trans | --program-tran \
193 | --progr-tra | --program-tr | --program-t)
194 ac_prev=program_transform_name ;;
195 -program-transform-name=* | --program-transform-name=* \
196 | --program-transform-nam=* | --program-transform-na=* \
197 | --program-transform-n=* | --program-transform-=* \
198 | --program-transform=* | --program-transfor=* \
199 | --program-transfo=* | --program-transf=* \
200 | --program-trans=* | --program-tran=* \
201 | --progr-tra=* | --program-tr=* | --program-t=*)
202 program_transform_name="$ac_optarg" ;;
203
204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
205 | -silent | --silent | --silen | --sile | --sil)
206 silent=yes ;;
207
208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
209 ac_prev=srcdir ;;
210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
211 srcdir="$ac_optarg" ;;
212
213 -target | --target | --targe | --targ | --tar | --ta | --t)
214 ac_prev=target ;;
215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
216 target="$ac_optarg" ;;
217
218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
219 verbose=yes ;;
220
221 -version | --version | --versio | --versi | --vers)
222 echo "configure generated by autoconf version 1.107"
223 exit 0 ;;
224
225 -with-* | --with-*)
226 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
227 # Reject names that are not valid shell variable names.
228 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
229 { echo "configure: $ac_package: invalid package name" 1>&2; exit 1; }
230 fi
231 ac_package=`echo $ac_package| sed 's/-/_/g'`
232 case "$ac_option" in
233 *=*) ;;
234 *) ac_optarg=yes ;;
235 esac
236 eval "with_${ac_package}='$ac_optarg'" ;;
237
238 -without-* | --without-*)
239 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
240 # Reject names that are not valid shell variable names.
241 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
242 { echo "configure: $ac_package: invalid package name" 1>&2; exit 1; }
243 fi
244 ac_package=`echo $ac_package| sed 's/-/_/g'`
245 eval "with_${ac_package}=no" ;;
246
247 --x)
248 # Obsolete; use --with-x.
249 with_x=yes ;;
250
251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
252 | --x-incl | --x-inc | --x-in | --x-i)
253 ac_prev=x_includes ;;
254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
256 x_includes="$ac_optarg" ;;
257
258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
260 ac_prev=x_libraries ;;
261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
263 x_libraries="$ac_optarg" ;;
264
265 -*) { echo "configure: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
266 ;;
267
268 *)
269 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
270 echo "configure: warning: $ac_option: invalid host type" 1>&2
271 fi
272 if test "x$nonopt" != xNONE; then
273 { echo "configure: can only configure for one host and one target at a time" 1>&2; exit 1; }
274 fi
275 nonopt="$ac_option"
276 ;;
277
278 esac
279done
280
281if test -n "$ac_prev"; then
282 { echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
283fi
284
285trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
286trap 'rm -fr confdefs* $ac_clean_files' 0
287
288# File descriptor usage:
289# 0 unused; standard input
290# 1 file creation
291# 2 errors and warnings
292# 3 unused; some systems may open it to /dev/tty
293# 4 checking for... messages and results
294# 5 compiler messages saved in config.log
295if test "$silent" = yes; then
296 exec 4>/dev/null
297else
298 exec 4>&1
299fi
300exec 5>./config.log
301
302echo "\
303This file contains any messages produced by compilers while
304running configure, to aid debugging if configure makes a mistake.
305" 1>&5
306
307# Save the original args if we used an alternate arg parser.
308ac_configure_temp="${configure_args-$@}"
309# Strip out --no-create and --norecursion so they do not pile up.
310# Also quote any args containing spaces.
311configure_args=
312for ac_arg in $ac_configure_temp; do
313 case "$ac_arg" in
314 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
315 | --no-cr | --no-c) ;;
316 -norecursion | --norecursion | --norecursio | --norecursi \
317 | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
318 *[" "]*) configure_args="$configure_args '$ac_arg'" ;;
319 *) configure_args="$configure_args $ac_arg" ;;
320 esac
321done
322
323# NLS nuisances.
324# Only set LANG and LC_ALL to C if already set.
325# These must not be set unconditionally because not all systems understand
326# e.g. LANG=C (notably SCO).
327if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
328if test "${LANG+set}" = set; then LANG=C; export LANG; fi
329
330# confdefs.h avoids OS command line length limits that DEFS can exceed.
331rm -rf conftest* confdefs.h
332# AIX cpp loses on an empty file, so make sure it contains at least a newline.
333echo > confdefs.h
334
335# A filename unique to this package, relative to the directory that
336# configure is in, which we can look for to find out if srcdir is correct.
337ac_unique_file=as.h
338
339# Find the source files, if location was not specified.
340if test -z "$srcdir"; then
341 ac_srcdir_defaulted=yes
342 # Try the directory containing this script, then its parent.
343 ac_prog=$0
344 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
345 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
346 srcdir=$ac_confdir
347 if test ! -r $srcdir/$ac_unique_file; then
348 srcdir=..
349 fi
350else
351 ac_srcdir_defaulted=no
352fi
353if test ! -r $srcdir/$ac_unique_file; then
354 if test "$ac_srcdir_defaulted" = yes; then
355 { echo "configure: can not find sources in ${ac_confdir} or .." 1>&2; exit 1; }
356 else
357 { echo "configure: can not find sources in ${srcdir}" 1>&2; exit 1; }
358 fi
359fi
360
361# Prefer explicitly selected file to automatically selected ones.
362if test ! -r "$CONFIG_SITE"; then
363 if test "x$prefix" != xNONE; then
364 CONFIG_SITE=$prefix/lib/config.site
365 else
366 CONFIG_SITE=/usr/local/lib/config.site
367 fi
368 # System dependent files override system independent ones.
369 if test "x$exec_prefix" != xNONE && test "x$exec_prefix" != "x$prefix"; then
370 CONFIG_SITE="$CONFIG_SITE $exec_prefix/lib/config.site"
371 fi
372fi
373for ac_site_file in $CONFIG_SITE; do
374 if test -r "$ac_site_file"; then
375 echo "loading site script $ac_site_file"
376 . "$ac_site_file"
377 fi
378done
379
380if test -r "$cache_file"; then
381 echo "loading cache $cache_file"
382 . $cache_file
383else
384 echo "creating cache $cache_file"
385 > $cache_file
386fi
387
388ac_ext=c
389# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
390ac_cpp='${CPP} $CPPFLAGS'
391ac_compile='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&5 2>&5'
392
393
bdee23af 394bfd_gas=no
b11fb939
KR
395# Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
396enableval="$enable_bfd_assembler"
397if test -n "$enableval"; then
398 case "${enableval}" in
399 yes) need_bfd=yes bfd_gas=yes ;;
400 no) ;;
401 *) { echo "configure: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
402esac
403fi
404
405# Generate a header file -- gets more post-processing by Makefile later.
406
407
408ac_aux_dir=
409for ac_dir in `cd $srcdir;pwd`/.. ${srcdir}/`cd $srcdir;pwd`/..; do
410 if test -f $ac_dir/install.sh; then
411 ac_aux_dir=$ac_dir; break
412 fi
413done
414if test -z "$ac_aux_dir"; then
415 { echo "configure: can not find install.sh in `cd $srcdir;pwd`/.. ${srcdir}/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
416fi
417ac_config_guess=${ac_aux_dir}/config.guess
418ac_config_sub=${ac_aux_dir}/config.sub
419ac_configure=${ac_aux_dir}/configure # This should be Cygnus configure.
420ac_install_sh="${ac_aux_dir}/install.sh -c"
421
422# Do some error checking and defaulting for the host and target type.
423# The inputs are:
424# configure --host=HOST --target=TARGET --build=BUILD NONOPT
425#
426# The rules are:
427# 1. You are not allowed to specify --host, --target, and nonopt at the
428# same time.
429# 2. Host defaults to nonopt.
430# 3. If nonopt is not specified, then host defaults to the current host,
431# as determined by config.guess.
432# 4. Target defaults to nonopt.
433# 5. If nonopt is not specified, then target defaults to host.
434# 6. build defaults to empty (but implicitly to host).
435
436# The aliases save the names the user supplied, while $host etc.
437# will get canonicalized.
438case $host---$target---$nonopt in
439NONE---*---* | *---NONE---* | *---*---NONE) ;;
440*) { echo "configure: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
441esac
442
443# Make sure we can run config.sub.
444if ${ac_config_sub} sun4 >/dev/null 2>&1; then :
445else { echo "configure: can not run ${ac_config_sub}" 1>&2; exit 1; }
446fi
447
448if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
449 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
450 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
451 ac_n= ac_c='
452' ac_t=' '
453 else
454 ac_n=-n ac_c= ac_t=
455 fi
456else
457 ac_n= ac_c='\c' ac_t=
458fi
459echo $ac_n "checking host system type""... $ac_c" 1>&4
460
461host_alias=$host
462case "${host_alias}" in
463NONE)
464 case $nonopt in
465 NONE)
466 if host_alias=`${ac_config_guess}`; then :
467 else { echo "configure: can not guess host type; you must specify one" 1>&2; exit 1; }
468 fi ;;
469 *) host_alias=$nonopt ;;
470 esac ;;
471esac
472
473host=`${ac_config_sub} ${host_alias}`
474host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
475host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
476host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
477echo "$ac_t""$host" 1>&4
478
479echo $ac_n "checking target system type""... $ac_c" 1>&4
480
481target_alias=$target
482case "${target_alias}" in
483NONE)
484 case $nonopt in
485 NONE) target_alias=$host_alias ;;
486 *) target_alias=$nonopt ;;
487 esac ;;
488esac
489
490target=`${ac_config_sub} ${target_alias}`
491target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
492target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
493target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
494echo "$ac_t""$target" 1>&4
495
496echo $ac_n "checking build system type""... $ac_c" 1>&4
497
498build_alias=$build
499case "${build_alias}" in
500NONE) build= build_alias= ;;
501*)
502build=`${ac_config_sub} ${build_alias}`
503build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
504build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
505build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
506;;
507esac
508echo "$ac_t""$build" 1>&4
509
510
511
512emulation=generic
513
514# assign cpu type
515
516# check for architecture variants
517case ${target_cpu} in
518 hppa*) cpu_type=hppa ;;
519 i[45]86) cpu_type=i386 ;;
520 m680[012346]0) cpu_type=m68k ;;
521 m68008) cpu_type=m68k ;;
522 m683??) cpu_type=m68k ;;
523 m8*) cpu_type=m88k ;;
524 mips*el) cpu_type=mips endian=little;;
525 mips*) cpu_type=mips endian=big ;;
526 powerpc*) cpu_type=ppc ;;
527 rs6000*) cpu_type=ppc ;;
528 sparc64) cpu_type=sparc obj_format=elf cat >> confdefs.h <<\EOF
529#define sparcv9 1
530EOF
531 ;;
532 sparclite*) cpu_type=sparc ;;
533 *) cpu_type=${target_cpu} ;;
534esac
535
536# do we need the opcodes library?
537case ${cpu_type} in
538 alpha | vax)
539 ;;
540 *)
541 OPCODES_LIB="../opcodes/libopcodes.a"
542 ;;
543esac
544
545
546gas_target=${cpu_type}
547generic_target=${cpu_type}-${target_vendor}-${target_os}
548dev=no
549
550# assign object format
551case ${generic_target} in
552 a29k-amd-udi) obj_format=coff gas_target=ebmon29k ;;
553 a29k-amd-ebmon) obj_format=coff gas_target=ebmon29k ;;
554
555 alpha-*-netware*) obj_format=ecoff ;;
556 alpha-*-osf*) obj_format=ecoff ;;
557
558 hppa-*-*elf*) obj_format=elf emulation=hppa ;;
559 hppa-*-osf*) obj_format=som emulation=hppa ;;
560 hppa-*-hpux*) obj_format=som emulation=hppa ;;
561 hppa-*-bsd*) obj_format=som emulation=hppa ;;
562 hppa-*-hiux*) obj_format=som emulation=hppa ;;
563
564 h8300-*-coff) obj_format=coff ;;
565
566 i386-ibm-aix*) obj_format=coff gas_target=i386coff
567 emulation=i386aix ;;
568 i386-*-bsd*) obj_format=aout emulation=386bsd ;;
569 i386-*-netbsd0.8) obj_format=aout emulation=386bsd ;;
570 i386-*-netbsd*) obj_format=aout emulation=netbsd ;;
571 i386-*-linux*elf*) obj_format=elf emulation=linux ;;
572 i386-*-linux*coff*) obj_format=coff emulation=linux
573 gas_target=i386coff ;;
574 i386-*-linux*) obj_format=aout emulation=linux ;;
575 i386-*-lynxos*) obj_format=coff gas_target=i386coff
576 emulation=lynx ;;
577 i386-*-sysv4* | i386-*-solaris* | i386-*-elf)
578 obj_format=elf ;;
579 i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*)
580 obj_format=coff gas_target=i386coff ;;
581 i386-*-vsta) obj_format=aout ;;
582 i386-*-go32) obj_format=coff gas_target=i386coff ;;
583 i386-*-mach* | i386-*-gnu*)
584 obj_format=aout emulation=mach bfd_gas=yes ;;
585
586 i960-*-bout) obj_format=bout ;;
587 i960-*-coff) obj_format=coff emulation=ic960 gas_target=ic960coff ;;
588 i960-*-nindy*) obj_format=bout ;;
589 i960-*-vxworks4*) obj_format=bout ;;
590 i960-*-vxworks5.0) obj_format=bout ;;
591 i960-*-vxworks5.*) obj_format=coff emulation=ic960 gas_target=ic960coff ;;
592 i960-*-vxworks*) obj_format=bout ;;
593
594 m68k-wrs-vxworks | m68k-ericsson-ose | m68k-*-sunos*)
595 obj_format=aout emulation=sun3 ;;
596 m68k-motorola-sysv) obj_format=coff gas_target=m68kcoff emulation=delta ;;
597 m68k-bull-sysv3*) obj_format=coff gas_target=m68kcoff emulation=dpx2 ;;
598 m68k-apollo-*) obj_format=coff gas_target=apollo emulation=apollo ;;
599 m68k-*-coff | m68k-*-sysv*)
600 obj_format=coff gas_target=m68kcoff ;;
601 m68k-*-hpux) obj_format=hp300 emulation=hp300 ;;
602 m68k-*-lynxos*) obj_format=coff gas_target=m68kcoff
603 emulation=lynx ;;
604
605 m88k-*-coff*) obj_format=coff gas_target=m88kcoff ;;
606
607 # don't change emulation like *-*-bsd does
608 mips-*-bsd*) bfd_gas=yes obj_format=aout gas_target=mips-lit ;;
609 mips-*-ultrix*) obj_format=ecoff gas_target=mips-lit ;;
610 mips-*-ecoff*) obj_format=ecoff
611 case "$endian" in
612 big) gas_target=mips-big ;;
613 *) gas_target=mips-lit ;;
614 esac
615 ;;
616 mips-*-ecoff*) obj_format=ecoff gas_target=mips-big ;;
617 mips-*-irix5*) obj_format=elf gas_target=mips-big ;;
618 mips-*-irix*) obj_format=ecoff gas_target=mips-big ;;
619 mips-*-riscos*) obj_format=ecoff gas_target=mips-big ;;
620 mips-*-sysv*) obj_format=ecoff gas_target=mips-big ;;
621 mips-*-elf*) obj_format=elf
622 case "$endian" in
623 big) gas_target=mips-big ;;
624 *) gas_target=mips-lit ;;
625 esac
626 ;;
627 ppc-*-aix*) obj_format=coff bfd_gas=yes ;;
628 ppc-*-elf*) obj_format=elf bfd_gas=yes ;;
629 ppc-*-netware*) obj_format=elf emulation=ppcnw ;;
630 ppc-*-sysv4*) obj_format=elf bfd_gas=yes ;;
631
632 sh-*-coff) obj_format=coff ;;
633
634 ns32k-pc532-mach*) obj_format=aout emulation=pc532 bfd_gas=yes ;;
635 ns32k-pc532-netbsd*) obj_format=aout emulation=netbsd532 bfd_gas=yes ;;
636
637 sparc*-*-sunos4*) obj_format=aout emulation=sun3 bfd_gas=yes ;;
638 sparc*-*-aout | sparc*-*-vxworks)
639 obj_format=aout bfd_gas=yes ;;
640 sparc*-*-coff) obj_format=coff bfd_gas=yes ;;
641 sparc*-*-lynxos*) obj_format=coff bfd_gas=yes emulation=lynx ;;
642 sparc*-fujitsu-none) obj_format=aout bfd_gas=yes ;;
643 sparc*-*-elf | sparc*-*-solaris*)
644 obj_format=elf ;;
645
646 vax-*-bsd* | vax-*-ultrix*)
647 obj_format=aout ;;
648 vax-*-vms) obj_format=vms ;;
649
650 z8k-*-coff | z8k-*-sim)
651 obj_format=coff ;;
652
653 *-*-aout | *-*-scout)
654 obj_format=aout ;;
655 *-*-nindy*)
656 obj_format=bout ;;
657 *-*-bsd*)
658 obj_format=aout emulation=sun3 ;;
659 *-*-generic) obj_format=generic ;;
660 *-*-xray | *-*-hms) obj_format=coff ;;
661 *-*-sim) obj_format=coff ;;
662 *-*-elf | *-*-sysv4* | *-*-solaris*)
663 echo "configure: warning: GAS support for ELF format is incomplete" 1>&2
664 obj_format=elf dev=yes ;;
665 *-*-vxworks) obj_format=aout ;;
666 *-*-netware) obj_format=elf ;;
667esac
668
669# Assign floating point type. Most processors with FP support
670# IEEE FP. On those that don't support FP at all, usually IEEE
671# is emulated.
672case ${target_cpu} in
673 vax | tahoe ) atof=${target_cpu} ;;
674 *) atof=ieee ;;
675esac
676
677case "${obj_format}" in
678 "") { echo "configure: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
679esac
680
681
682
683if [ ! -r ${srcdir}/config/tc-${cpu_type}.c ]; then
684 { echo "configure: GAS does not support target CPU ${cpu_type}" 1>&2; exit 1; }
685fi
686
687if [ ! -r ${srcdir}/config/obj-${obj_format}.c ]; then
688 { echo "configure: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
689fi
690
691
692# and target makefile frag
693
694target_frag=${srcdir}/config/${gas_target}.mt
695
696
697case ${bfd_gas}-${obj_format} in
698 yes-coff) need_bfd=yes ;;
699 no-coff) need_bfd=yes
700 cat >> confdefs.h <<\EOF
701#define MANY_SEGMENTS 1
702EOF
703 ;;
704 *-elf) bfd_gas=yes ;;
705 *-ecoff) bfd_gas=yes ;;
706 *-som) bfd_gas=yes ;;
707 *) ;;
708esac
709
710case ${with_bfd_assembler}-${bfd_gas} in
711 yes-yes | no-no)
712 # We didn't override user's choice.
713 ;;
714 no-yes)
715 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
716 ;;
717 no-preferred)
718 bfd_gas=no
719 ;;
720 *-preferred)
721 bfd_gas=yes
722 ;;
723 -*)
724 # User specified nothing.
725 ;;
726esac
727
728reject_dev_configs=yes
729
730case ${reject_dev_configs}-${dev} in
731 yes-yes) # Oops.
732 { echo "configure: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
733 ;;
734esac
735
736
737
738
739case "${bfd_gas}" in
740 yes) cat >> confdefs.h <<\EOF
741#define BFD_ASSEMBLER 1
742EOF
743
744 need_bfd=yes ;;
745esac
746
747case "${need_bfd}" in
748 yes) BFDLIB=../bfd/libbfd.a
749 ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
750 ;;
751esac
752
753
754
755case "x${host_canon}" in
756 x${target_canon}) ;;
757 *) cat >> confdefs.h <<\EOF
758#define CROSS_COMPILE 1
759EOF
760;;
761esac
762
763cat >> confdefs.h <<EOF
764#define TARGET_ALIAS "${target_alias}"
765EOF
766
767cat >> confdefs.h <<EOF
768#define TARGET_CANONICAL "${target}"
769EOF
770
771cat >> confdefs.h <<EOF
772#define TARGET_CPU "${target_cpu}"
773EOF
774
775cat >> confdefs.h <<EOF
776#define TARGET_VENDOR "${target_vendor}"
777EOF
778
779cat >> confdefs.h <<EOF
780#define TARGET_OS "${target_os}"
781EOF
782
783
784case ${host} in
785 rs6000-*-*)
786 # The IBM compiler mis-compiles some expressions used in gas.
787 # This will tell gas to work around this lossage.
788 cat >> confdefs.h <<\EOF
789#define IBM_COMPILER_SUX 1
790EOF
791 ;;
792 i386-*-go32)
793 # Using fopen(..., "w") for a binary file breaks under DOS.
794 cat >> confdefs.h <<\EOF
795#define WANT_FOPEN_BIN 1
796EOF
797 ;;
798esac
799
800echo $ac_n "checking for CC""... $ac_c" 1>&4
801test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
802test -z "$CC" && CC=cc
803echo "$ac_t""setting CC to $CC" 1>&4
804
805# Find out if we are using GNU C, under whatever name.
806cat > conftest.c <<EOF
807#ifdef __GNUC__
808 yes
809#endif
810EOF
811${CC-cc} -E conftest.c > conftest.out 2>&1
812if egrep yes conftest.out >/dev/null 2>&1; then
813 GCC=yes
814else
815 GCC=
816fi
817rm -f conftest*
818
819# Make sure to not get an incompatible install:
820# SysV /etc/install, /usr/sbin/install
821# SunOS /usr/etc/install
822# IRIX /sbin/install
823# AIX /bin/install
824# AFS /usr/afsws/bin/install, which mishandles nonexistent args
825# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
826# ./install, which can be erroneously created by make from ./install.sh.
827echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
828if test -z "${INSTALL}"; then
829if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&4
831else
832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
833 for ac_dir in $PATH; do
834 case "$ac_dir" in
835 ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
836 *)
837 # OSF1 and SCO ODT 3.0 have their own names for install.
838 for ac_prog in ginstall installbsd scoinst install; do
839 if test -f $ac_dir/$ac_prog; then
840 if test $ac_prog = install &&
841 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
842 # AIX install. It has an incompatible calling convention.
843 # OSF/1 installbsd also uses dspmsg, but is usable.
844 :
845 else
846 ac_cv_path_install="$ac_dir/$ac_prog -c"
847 break 2
848 fi
849 fi
850 done
851 ;;
852 esac
853 done
854 IFS="$ac_save_ifs"
855 # As a last resort, use the slow shell script.
856 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
857fi
858 INSTALL="$ac_cv_path_install"
859fi
860echo "$ac_t""$INSTALL" 1>&4
861
862# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
863# It thinks the first close brace ends the variable substitution.
864test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
865
866test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
867
868
869echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
870# On Suns, sometimes $CPP names a directory.
871if test -n "$CPP" && test -d "$CPP"; then
872 CPP=
873fi
874if test -z "$CPP"; then
875if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&4
877else
878 # This must be in double quotes, not single quotes, because CPP may get
879 # substituted into the Makefile and "${CC-cc}" will confuse make.
880 CPP="${CC-cc} -E"
881 # On the NeXT, cc -E runs the code through the compiler's parser,
882 # not just through cpp.
883 cat > conftest.${ac_ext} <<EOF
884#line 884 "configure"
885#include "confdefs.h"
886#include <stdio.h>
887Syntax Error
888EOF
889# Some shells (Coherent) do redirections in the wrong order, so need
890# the parens.
891ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
892if test -z "$ac_err"; then
893 :
894else
895 rm -rf conftest*
896 CPP="${CC-cc} -E -traditional-cpp"
897 cat > conftest.${ac_ext} <<EOF
898#line 898 "configure"
899#include "confdefs.h"
900#include <stdio.h>
901Syntax Error
902EOF
903# Some shells (Coherent) do redirections in the wrong order, so need
904# the parens.
905ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
906if test -z "$ac_err"; then
907 :
908else
909 rm -rf conftest*
910 CPP=/lib/cpp
911fi
912rm -f conftest*
913fi
914rm -f conftest*
915 ac_cv_prog_CPP="$CPP"
916fi
917fi
918CPP="$ac_cv_prog_CPP"
919echo "$ac_t""$CPP" 1>&4
920echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
921if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&4
923else
924 cat > conftest.${ac_ext} <<EOF
925#line 925 "configure"
926#include "confdefs.h"
927#include <stdlib.h>
928#include <stdarg.h>
929#include <string.h>
930#include <float.h>
931EOF
932# Some shells (Coherent) do redirections in the wrong order, so need
933# the parens.
934ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
935if test -z "$ac_err"; then
936 rm -rf conftest*
937 ac_cv_header_stdc=yes
938else
939 rm -rf conftest*
940 ac_cv_header_stdc=no
941fi
942rm -f conftest*
943
944if test $ac_cv_header_stdc = yes; then
945 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
946cat > conftest.${ac_ext} <<EOF
947#line 947 "configure"
948#include "confdefs.h"
949#include <string.h>
950EOF
951eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
952if egrep "memchr" conftest.out >/dev/null 2>&1; then
953 :
954else
955 rm -rf conftest*
956 ac_cv_header_stdc=no
957fi
958rm -f conftest*
959
960fi
961
962if test $ac_cv_header_stdc = yes; then
963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
964cat > conftest.${ac_ext} <<EOF
965#line 965 "configure"
966#include "confdefs.h"
967#include <stdlib.h>
968EOF
969eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
970if egrep "free" conftest.out >/dev/null 2>&1; then
971 :
972else
973 rm -rf conftest*
974 ac_cv_header_stdc=no
975fi
976rm -f conftest*
977
978fi
979
980if test $ac_cv_header_stdc = yes; then
981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
982# If we cannot run a trivial program, we must be cross compiling.
983echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
984if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&4
986else
987 if test "$cross_compiling" = yes; then
988 { echo "configure: can not run test program while cross compiling" 1>&2; exit 1; }
989else
990cat > conftest.${ac_ext} <<EOF
991#line 991 "configure"
992#include "confdefs.h"
993main(){exit(0);}
994EOF
995eval $ac_compile
996if test -s conftest && (./conftest; exit) 2>/dev/null; then
997 ac_cv_c_cross=no
998else
999 ac_cv_c_cross=yes
1000fi
1001fi
1002rm -fr conftest*
1003fi
1004cross_compiling=$ac_cv_c_cross
1005echo "$ac_t""$ac_cv_c_cross" 1>&4
1006if test "$cross_compiling" = yes; then
1007 { echo "configure: can not run test program while cross compiling" 1>&2; exit 1; }
1008else
1009cat > conftest.${ac_ext} <<EOF
1010#line 1010 "configure"
1011#include "confdefs.h"
1012#include <ctype.h>
1013#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1014#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1015#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1016int main () { int i; for (i = 0; i < 256; i++)
1017if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1018exit (0); }
1019
1020EOF
1021eval $ac_compile
1022if test -s conftest && (./conftest; exit) 2>/dev/null; then
1023 :
1024else
1025 ac_stdc_headers=no
1026fi
1027fi
1028rm -fr conftest*
1029fi
1030fi
1031echo "$ac_t""$ac_cv_header_stdc" 1>&4
1032if test $ac_cv_header_stdc = yes; then
1033 cat >> confdefs.h <<\EOF
1034#define STDC_HEADERS 1
1035EOF
1036
1037fi
1038
1039for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
1040do
1041ac_safe=`echo "${ac_hdr}" | tr './' '__'`
1042echo $ac_n "checking for ${ac_hdr}""... $ac_c" 1>&4
1043if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&4
1045else
1046 cat > conftest.${ac_ext} <<EOF
1047#line 1047 "configure"
1048#include "confdefs.h"
1049#include <${ac_hdr}>
1050EOF
1051# Some shells (Coherent) do redirections in the wrong order, so need
1052# the parens.
1053ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
1054if test -z "$ac_err"; then
1055 rm -rf conftest*
1056 eval "ac_cv_header_$ac_safe=yes"
1057else
1058 rm -rf conftest*
1059 eval "ac_cv_header_$ac_safe=no"
1060fi
1061rm -f conftest*
1062fi
1063if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1064 echo "$ac_t""yes" 1>&4
1065 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
1066 cat >> confdefs.h <<EOF
1067#define ${ac_tr_hdr} 1
1068EOF
1069
1070else
1071 echo "$ac_t""no" 1>&4
1072fi
1073done
1074
1075
1076# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1077# for constant arguments. Useless!
1078echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
1079if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&4
1081else
1082 cat > conftest.${ac_ext} <<EOF
1083#line 1083 "configure"
1084#include "confdefs.h"
1085#include <alloca.h>
1086int main() { return 0; }
1087int t() {
1088char *p = alloca(2 * sizeof(int));
1089; return 0; }
1090EOF
1091if eval $ac_compile; then
1092 rm -rf conftest*
1093 ac_cv_header_alloca_h=yes
1094else
1095 rm -rf conftest*
1096 ac_cv_header_alloca_h=no
1097fi
1098rm -f conftest*
1099
1100fi
1101echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
1102if test $ac_cv_header_alloca_h = yes; then
1103 cat >> confdefs.h <<\EOF
1104#define HAVE_ALLOCA_H 1
1105EOF
1106
1107fi
1108
1109echo $ac_n "checking for alloca""... $ac_c" 1>&4
1110if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&4
1112else
1113 cat > conftest.${ac_ext} <<EOF
1114#line 1114 "configure"
1115#include "confdefs.h"
1116
1117#ifdef __GNUC__
1118# define alloca __builtin_alloca
1119#else
1120# if HAVE_ALLOCA_H
1121# include <alloca.h>
1122# else
1123# ifdef _AIX
1124 #pragma alloca
1125# else
1126# ifndef alloca /* predefined by HP cc +Olibcalls */
1127char *alloca ();
1128# endif
1129# endif
1130# endif
1131#endif
1132
1133int main() { return 0; }
1134int t() {
1135char *p = (char *) alloca(1);
1136; return 0; }
1137EOF
1138if eval $ac_compile; then
1139 rm -rf conftest*
1140 ac_cv_func_alloca=yes
1141else
1142 rm -rf conftest*
1143 ac_cv_func_alloca=no
1144fi
1145rm -f conftest*
1146
1147fi
1148echo "$ac_t""$ac_cv_func_alloca" 1>&4
1149if test $ac_cv_func_alloca = yes; then
1150 cat >> confdefs.h <<\EOF
1151#define HAVE_ALLOCA 1
1152EOF
1153
1154fi
1155
1156if test $ac_cv_func_alloca = no; then
1157 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1158 # that cause trouble. Some versions do not even contain alloca or
1159 # contain a buggy version. If you still want to use their alloca,
1160 # use ar to extract alloca.o from them instead of compiling alloca.c.
1161 ALLOCA=alloca.o
1162 cat >> confdefs.h <<\EOF
1163#define C_ALLOCA 1
1164EOF
1165
1166
1167echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
1168if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&4
1170else
1171 cat > conftest.${ac_ext} <<EOF
1172#line 1172 "configure"
1173#include "confdefs.h"
1174#if defined(CRAY) && ! defined(CRAY2)
1175webecray
1176#else
1177wenotbecray
1178#endif
1179
1180EOF
1181eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
1182if egrep "webecray" conftest.out >/dev/null 2>&1; then
1183 rm -rf conftest*
1184 ac_cv_os_cray=yes
1185else
1186 rm -rf conftest*
1187 ac_cv_os_cray=no
1188fi
1189rm -f conftest*
1190
1191fi
1192echo "$ac_t""$ac_cv_os_cray" 1>&4
1193if test $ac_cv_os_cray = yes; then
1194echo $ac_n "checking for _getb67""... $ac_c" 1>&4
1195if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&4
1197else
1198 cat > conftest.${ac_ext} <<EOF
1199#line 1199 "configure"
1200#include "confdefs.h"
1201#include <ctype.h> /* Arbitrary system header to define __stub macros. */
1202int main() { return 0; }
1203int t() {
1204
1205/* The GNU C library defines this for functions which it implements
1206 to always fail with ENOSYS. Some functions are actually named
1207 something starting with __ and the normal name is an alias. */
1208#if defined (__stub__getb67) || defined (__stub____getb67)
1209choke me
1210#else
1211/* Override any gcc2 internal prototype to avoid an error. */
1212char _getb67(); _getb67();
1213#endif
1214
1215; return 0; }
1216EOF
1217if eval $ac_compile; then
1218 rm -rf conftest*
1219 eval "ac_cv_func__getb67=yes"
1220else
1221 rm -rf conftest*
1222 eval "ac_cv_func__getb67=no"
1223fi
1224rm -f conftest*
1225
1226fi
1227if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
1228 echo "$ac_t""yes" 1>&4
1229 cat >> confdefs.h <<\EOF
1230#define CRAY_STACKSEG_END _getb67
1231EOF
1232
1233else
1234 echo "$ac_t""no" 1>&4
1235echo $ac_n "checking for GETB67""... $ac_c" 1>&4
1236if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&4
1238else
1239 cat > conftest.${ac_ext} <<EOF
1240#line 1240 "configure"
1241#include "confdefs.h"
1242#include <ctype.h> /* Arbitrary system header to define __stub macros. */
1243int main() { return 0; }
1244int t() {
1245
1246/* The GNU C library defines this for functions which it implements
1247 to always fail with ENOSYS. Some functions are actually named
1248 something starting with __ and the normal name is an alias. */
1249#if defined (__stub_GETB67) || defined (__stub___GETB67)
1250choke me
1251#else
1252/* Override any gcc2 internal prototype to avoid an error. */
1253char GETB67(); GETB67();
1254#endif
1255
1256; return 0; }
1257EOF
1258if eval $ac_compile; then
1259 rm -rf conftest*
1260 eval "ac_cv_func_GETB67=yes"
1261else
1262 rm -rf conftest*
1263 eval "ac_cv_func_GETB67=no"
1264fi
1265rm -f conftest*
1266
1267fi
1268if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
1269 echo "$ac_t""yes" 1>&4
1270 cat >> confdefs.h <<\EOF
1271#define CRAY_STACKSEG_END GETB67
1272EOF
1273
1274else
1275 echo "$ac_t""no" 1>&4
1276echo $ac_n "checking for getb67""... $ac_c" 1>&4
1277if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&4
1279else
1280 cat > conftest.${ac_ext} <<EOF
1281#line 1281 "configure"
1282#include "confdefs.h"
1283#include <ctype.h> /* Arbitrary system header to define __stub macros. */
1284int main() { return 0; }
1285int t() {
1286
1287/* The GNU C library defines this for functions which it implements
1288 to always fail with ENOSYS. Some functions are actually named
1289 something starting with __ and the normal name is an alias. */
1290#if defined (__stub_getb67) || defined (__stub___getb67)
1291choke me
1292#else
1293/* Override any gcc2 internal prototype to avoid an error. */
1294char getb67(); getb67();
1295#endif
1296
1297; return 0; }
1298EOF
1299if eval $ac_compile; then
1300 rm -rf conftest*
1301 eval "ac_cv_func_getb67=yes"
1302else
1303 rm -rf conftest*
1304 eval "ac_cv_func_getb67=no"
1305fi
1306rm -f conftest*
1307
1308fi
1309if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
1310 echo "$ac_t""yes" 1>&4
1311 cat >> confdefs.h <<\EOF
1312#define CRAY_STACKSEG_END getb67
1313EOF
1314
1315else
1316 echo "$ac_t""no" 1>&4
1317fi
1318
1319fi
1320
1321fi
1322
1323fi
1324
1325echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
1326if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&4
1328else
1329 if test "$cross_compiling" = yes; then
1330 echo "configure: warning: using default for cross-compiling" 1>&2
1331ac_cv_c_stack_direction=0
1332
1333else
1334cat > conftest.${ac_ext} <<EOF
1335#line 1335 "configure"
1336#include "confdefs.h"
1337find_stack_direction ()
1338{
1339 static char *addr = 0;
1340 auto char dummy;
1341 if (addr == 0)
1342 {
1343 addr = &dummy;
1344 return find_stack_direction ();
1345 }
1346 else
1347 return (&dummy > addr) ? 1 : -1;
1348}
1349main ()
1350{
1351 exit (find_stack_direction() < 0);
1352}
1353EOF
1354eval $ac_compile
1355if test -s conftest && (./conftest; exit) 2>/dev/null; then
1356 ac_cv_c_stack_direction=1
1357else
1358 ac_cv_c_stack_direction=-1
1359fi
1360fi
1361rm -fr conftest*
1362fi
1363echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
1364cat >> confdefs.h <<EOF
1365#define STACK_DIRECTION $ac_cv_c_stack_direction
1366EOF
1367
1368fi
1369
1370echo $ac_n "checking for inline""... $ac_c" 1>&4
1371if eval "test \"`echo '${'ac_cv_c_inline'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&4
1373else
1374 if test "$GCC" = yes; then
1375cat > conftest.${ac_ext} <<EOF
1376#line 1376 "configure"
1377#include "confdefs.h"
1378
1379int main() { return 0; }
1380int t() {
1381} inline foo() {
1382; return 0; }
1383EOF
1384if eval $ac_compile; then
1385 rm -rf conftest*
1386 ac_cv_c_inline=yes
1387else
1388 rm -rf conftest*
1389 ac_cv_c_inline=no
1390fi
1391rm -f conftest*
1392
1393else
1394 ac_cv_c_inline=no
1395fi
1396fi
1397echo "$ac_t""$ac_cv_c_inline" 1>&4
1398if test $ac_cv_c_inline = no; then
1399 cat >> confdefs.h <<\EOF
1400#define inline __inline
1401EOF
1402
1403fi
1404
1405
1406# Some non-ANSI preprocessors botch requoting inside strings. That's bad
1407# enough, but on some of those systems, the assert macro relies on requoting
1408# working properly!
1409echo "checking for working assert macro" 1>&4
1410cat > conftest.${ac_ext} <<EOF
1411#line 1411 "configure"
1412#include "confdefs.h"
1413#include <assert.h>
1414#include <stdio.h>
1415int main() { return 0; }
1416int t() {
1417
1418/* check for requoting problems */
1419static int a, b, c, d;
1420static char *s;
1421assert (!strcmp(s, "foo bar baz quux"));
1422/* check for newline handling */
1423assert (a == b
1424 || c == d);
1425
1426; return 0; }
1427EOF
1428if eval $ac_compile; then
1429 :
1430else
1431 rm -rf conftest*
1432 cat >> confdefs.h <<\EOF
1433#define BROKEN_ASSERT 1
1434EOF
1435
1436fi
1437rm -f conftest*
1438
1439
1440# On some systems, the system header files may not declare malloc, realloc,
1441# and free. There are places where gas needs these functions to have been
1442# declared -- such as when taking their addresses.
1443echo "checking whether malloc declaration is required" 1>&4
1444cat > conftest.${ac_ext} <<EOF
1445#line 1445 "configure"
1446#include "confdefs.h"
1447
1448#ifdef HAVE_MEMORY_H
1449#include <memory.h>
1450#endif
1451#ifdef HAVE_STRING_H
1452#include <string.h>
1453#endif
1454#ifdef HAVE_STDLIB_H
1455#include <stdlib.h>
1456#endif
1457#ifdef HAVE_UNISTD_H
1458#include <unistd.h>
1459#endif
1460
1461int main() { return 0; }
1462int t() {
1463
1464char *(*f) ();
1465f = (char *(*)()) malloc;
1466
1467; return 0; }
1468EOF
1469if eval $ac_compile; then
1470 :
1471else
1472 rm -rf conftest*
1473 cat >> confdefs.h <<\EOF
1474#define NEED_MALLOC_DECLARATION 1
1475EOF
1476
1477fi
1478rm -f conftest*
1479
1480echo "checking free declaration required" 1>&4
1481cat > conftest.${ac_ext} <<EOF
1482#line 1482 "configure"
1483#include "confdefs.h"
1484
1485#ifdef HAVE_MEMORY_H
1486#include <memory.h>
1487#endif
1488#ifdef HAVE_STRING_H
1489#include <string.h>
1490#endif
1491#ifdef HAVE_STDLIB_H
1492#include <stdlib.h>
1493#endif
1494#ifdef HAVE_UNISTD_H
1495#include <unistd.h>
1496#endif
1497
1498int main() { return 0; }
1499int t() {
1500
1501int (*f) ();
1502f = (int (*)()) free;
1503
1504; return 0; }
1505EOF
1506if eval $ac_compile; then
1507 :
1508else
1509 rm -rf conftest*
1510 cat >> confdefs.h <<\EOF
1511#define NEED_FREE_DECLARATION 1
1512EOF
1513
1514fi
1515rm -f conftest*
1516
1517
1518# Does errno.h declare errno, or do we have to add a separate declaration
1519# for it?
1520echo "checking errno declaration required" 1>&4
1521cat > conftest.${ac_ext} <<EOF
1522#line 1522 "configure"
1523#include "confdefs.h"
1524
1525#ifdef HAVE_ERRNO_H
1526#include <errno.h>
1527#endif
1528
1529int main() { return 0; }
1530int t() {
1531
1532int x;
1533x = errno;
1534
1535; return 0; }
1536EOF
1537if eval $ac_compile; then
1538 :
1539else
1540 rm -rf conftest*
1541 cat >> confdefs.h <<\EOF
1542#define NEED_ERRNO_DECLARATION 1
1543EOF
1544
1545fi
1546rm -f conftest*
1547
1548
1549subdirs="testsuite"
1550
1551
1552if test -w $cache_file; then
1553echo "updating cache $cache_file"
1554cat > $cache_file <<\EOF
1555# This file is a shell script that caches the results of configure
1556# tests run on this system so they can be shared between configure
1557# scripts and configure runs. It is not useful on other systems.
1558# If its contents are invalid for some reason, you may delete or edit it.
1559#
1560# By default, configure uses ./config.cache as the cache file,
1561# creating it if it does not exist already. You can give configure
1562# the --cache-file=FILE option to use a different cache file; that is
1563# what configure does when it calls configure scripts in
1564# subdirectories, so they share the cache.
1565# Giving --cache-file=/dev/null disables caching, for debugging configure.
1566# config.status only pays attention to the cache file if you give it the
1567# --recheck option to rerun configure.
1568EOF
1569# Ultrix sh set writes to stderr and can't be redirected directly.
1570(set) 2>&1 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1-'\2'}/p" >> $cache_file
1571else
1572echo "not updating unwritable cache $cache_file"
1573fi
1574
1575
1576test "x$prefix" = xNONE && prefix=/usr/local
1577# Let make expand exec_prefix.
1578test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1579
1580# Any assignment to VPATH causes Sun make to only execute
1581# the first set of double-colon rules, so remove it if not needed.
1582# If there is a colon in the path, we need to keep it.
1583if test "x$srcdir" = x.; then
1584 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1585fi
1586
1587trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1588
1589DEFS=-DHAVE_CONFIG_H
1590
1591# Without the "./", some shells look in PATH for config.status.
1592: ${CONFIG_STATUS=./config.status}
1593
1594echo creating ${CONFIG_STATUS}
1595rm -f ${CONFIG_STATUS}
1596cat > ${CONFIG_STATUS} <<EOF
1597#!/bin/sh
1598# Generated automatically by configure.
1599# Run this file to recreate the current configuration.
1600# This directory was configured as follows,
1601# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1602#
1603# $0 $configure_args
1604#
1605# Compiler output produced by configure, useful for debugging
1606# configure, is in ./config.log if it exists.
1607
1608ac_cs_usage="Usage: ${CONFIG_STATUS} [--recheck] [--version] [--help]"
1609for ac_option
1610do
1611 case "\$ac_option" in
1612 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1613 echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create --norecursion
1614 exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create --norecursion ;;
1615 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1616 echo "${CONFIG_STATUS} generated by autoconf version 1.107"
1617 exit 0 ;;
1618 -help | --help | --hel | --he | --h)
1619 echo "\$ac_cs_usage"; exit 0 ;;
1620 *) echo "\$ac_cs_usage"; exit 1 ;;
1621 esac
1622done
1623
1624ac_given_srcdir=$srcdir
1625ac_given_INSTALL="$INSTALL"
1626
1627trap 'rm -fr doc/Makefile Makefile conf conftest*; exit 1' 1 2 15
1628
1629# Protect against being on the right side of a sed subst in config.status.
1630sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1631 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1632$ac_vpsub
1633$extrasub
1634s%@LIBS@%$LIBS%g
1635s%@prefix@%$prefix%g
1636s%@exec_prefix@%$exec_prefix%g
1637s%@DEFS@%$DEFS%g
1638s%@CFLAGS@%$CFLAGS%g
1639s%@CXXFLAGS@%$CXXFLAGS%g
1640s%@CPPFLAGS@%$CPPFLAGS%g
1641s%@LDFLAGS@%$LDFLAGS%g
1642s%@host@%$host%g
1643s%@host_alias@%$host_alias%g
1644s%@host_cpu@%$host_cpu%g
1645s%@host_vendor@%$host_vendor%g
1646s%@host_os@%$host_os%g
1647s%@target@%$target%g
1648s%@target_alias@%$target_alias%g
1649s%@target_cpu@%$target_cpu%g
1650s%@target_vendor@%$target_vendor%g
1651s%@target_os@%$target_os%g
1652s%@build@%$build%g
1653s%@build_alias@%$build_alias%g
1654s%@build_cpu@%$build_cpu%g
1655s%@build_vendor@%$build_vendor%g
1656s%@build_os@%$build_os%g
1657s%@OPCODES_LIB@%$OPCODES_LIB%g
1658/@target_frag@/r $target_frag
1659s%@target_frag@%%g
1660s%@cpu_type@%$cpu_type%g
1661s%@obj_format@%$obj_format%g
1662s%@emulation@%$emulation%g
1663s%@atof@%$atof%g
1664s%@BFDLIB@%$BFDLIB%g
1665s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
1666s%@CC@%$CC%g
1667s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1668s%@INSTALL_DATA@%$INSTALL_DATA%g
1669s%@CPP@%$CPP%g
1670s%@ALLOCA@%$ALLOCA%g
1671s%@subdirs@%$subdirs%g
1672
1673CEOF
1674EOF
1675cat >> ${CONFIG_STATUS} <<\EOF
1676
1677CONFIG_FILES=${CONFIG_FILES-"doc/Makefile Makefile"}
1678for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
1679 # Support "outfile[:infile]", defaulting infile="outfile.in".
1680 case "$ac_file" in
1681 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1682 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1683 *) ac_file_in="${ac_file}.in" ;;
1684 esac
1685
1686 # Adjust relative srcdir, etc. for subdirectories.
1687
1688 # Remove last slash and all that follows it. Not all systems have dirname.
1689 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1690 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1691 # The file is in a subdirectory.
1692 test ! -d "$ac_dir" && mkdir "$ac_dir"
1693 ac_dir_suffix="/$ac_dir"
1694 # A "../" for each directory in $ac_dir_suffix.
1695 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1696 else
1697 ac_dir_suffix= ac_dots=
1698 fi
1699
1700 case "$ac_given_srcdir" in
1701 .) srcdir=.
1702 if test -z "$ac_dots"; then top_srcdir=.
1703 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1704 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1705 *) # Relative path.
1706 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1707 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1708 esac
1709
1710 case "$ac_given_INSTALL" in
1711 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1712 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1713 esac
1714 echo creating "$ac_file"
1715 rm -f "$ac_file"
1716 comment_str="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1717 case "$ac_file" in
1718 *.c | *.h | *.C | *.cc | *.cpp | *.hpp | *.m )
1719 ac_comsub="1i\\
1720/* $comment_str */" ;;
1721 * ) # Add the comment on the second line of scripts, first line of others.
1722 ac_comsub="
17231{
1724s/^#!/&/
1725t script
1726i\\
1727# $comment_str
1728b done
1729: script
1730a\\
1731# $comment_str
1732: done
1733}
1734" ;;
1735 esac
1736 sed -e "$ac_comsub
1737s%@srcdir@%$srcdir%g
1738s%@top_srcdir@%$top_srcdir%g
1739s%@INSTALL@%$INSTALL%g
1740" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1741fi; done
1742rm -f conftest.subs
1743
1744# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1745# NAME is the cpp macro being defined and VALUE is the value it is being given.
1746#
1747# ac_d sets the value in "#define NAME VALUE" lines.
1748ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1749ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1750ac_dC='\3'
1751ac_dD='%g'
1752# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1753ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1754ac_uB='\([ ]\)%\1#\2define\3'
1755ac_uC=' '
1756ac_uD='\4%g'
1757# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1758ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1759ac_eB='$%\1#\2define\3'
1760ac_eC=' '
1761ac_eD='%g'
1762
1763CONFIG_HEADERS=${CONFIG_HEADERS-"conf"}
1764for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
1765 # Support "outfile[:infile]", defaulting infile="outfile.in".
1766 case "$ac_file" in
1767 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1768 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1769 *) ac_file_in="${ac_file}.in" ;;
1770 esac
1771
1772 echo creating $ac_file
1773
1774 rm -f conftest.frag conftest.in conftest.out
1775 cp $ac_given_srcdir/$ac_file_in conftest.in
1776
1777EOF
1778
1779# Transform confdefs.h into a sed script conftest.vals that substitutes
1780# the proper values into config.h.in to produce config.h.
1781rm -f conftest.vals
1782cat > conftest.hdr <<\EOF
1783# Protect against being on the right side of a sed subst in config.status.
1784s/[\\&%]/\\&/g
1785# Protect against being in an unquoted here document in config.status.
1786s%[\\$`]%\\&%g
1787s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1788s%ac_d%ac_u%gp
1789s%ac_u%ac_e%gp
1790EOF
1791sed -n -f conftest.hdr confdefs.h > conftest.vals
1792rm -f conftest.hdr
1793
1794# This sed command replaces #undef with comments. This is necessary, for
1795# example, in the case of _POSIX_SOURCE, which is predefined and required
1796# on some systems where configure will not decide to define it.
1797cat >> conftest.vals <<\EOF
1798s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1799EOF
1800
1801# Break up conftest.vals because some shells have a limit on
1802# the size of here documents, and old seds have small limits too.
1803# Maximum number of lines to put in a single here document.
1804ac_max_here_lines=12
1805
1806rm -f conftest.tail
1807while :
1808do
1809 ac_lines=`grep -c . conftest.vals`
1810 # grep -c gives empty output for an empty file on some AIX systems.
1811 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1812 # Write a limited-size here document to conftest.frag.
1813 echo ' cat > conftest.frag <<CEOF' >> ${CONFIG_STATUS}
1814 sed ${ac_max_here_lines}q conftest.vals >> ${CONFIG_STATUS}
1815 echo 'CEOF
1816 sed -f conftest.frag conftest.in > conftest.out
1817 rm -f conftest.in
1818 mv conftest.out conftest.in
1819' >> ${CONFIG_STATUS}
1820 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1821 rm -f conftest.vals
1822 mv conftest.tail conftest.vals
1823done
1824rm -f conftest.vals
1825
1826# Now back to your regularly scheduled config.status.
1827cat >> ${CONFIG_STATUS} <<\EOF
1828 rm -f conftest.frag conftest.h
1829 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1830 cat conftest.in >> conftest.h
1831 rm -f conftest.in
1832 if cmp -s $ac_file conftest.h 2>/dev/null; then
1833 echo "$ac_file is unchanged"
1834 rm -f conftest.h
1835 else
1836 rm -f $ac_file
1837 mv conftest.h $ac_file
1838 fi
1839fi; done
1840
1841EOF
1842
1843cat >> ${CONFIG_STATUS} <<EOF
1844ac_links="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c"
1845ac_files="config/tc-${cpu_type}.c config/tc-${cpu_type}.h \
1846 config/obj-${obj_format}.h config/obj-${obj_format}.c \
1847 config/te-${emulation}.h config/atof-${atof}.c"
1848EOF
1849
1850cat >> ${CONFIG_STATUS} <<\EOF
1851while test -n "${ac_files}"; do
1852 set ${ac_links}; ac_link=$1; shift; ac_links=$*
1853 set ${ac_files}; ac_file=$1; shift; ac_files=$*
1854
1855 echo "linking ${ac_link} to ${srcdir}/${ac_file}"
1856
1857 if test ! -r ${srcdir}/${ac_file}; then
1858 { echo "configure: ${srcdir}/${ac_file}: File not found" 1>&2; exit 1; }
1859 fi
1860 rm -f ${ac_link}
1861 # Make a symlink if possible; otherwise try a hard link.
1862 if ln -s ${srcdir}/${ac_file} ${ac_link} 2>/dev/null ||
1863 ln ${srcdir}/${ac_file} ${ac_link}; then :
1864 else
1865 { echo "configure: can not link ${ac_link} to ${srcdir}/${ac_file}" 1>&2; exit 1; }
1866 fi
1867done
1868
1869EOF
1870chmod +x ${CONFIG_STATUS}
1871test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} ${CONFIG_STATUS}
1872
1873if test "${norecursion}" != yes; then
1874
1875 # Remove --cache-file and --srcdir arguments so they do not pile up.
1876 ac_sub_configure_args=
1877 ac_prev=
1878 for ac_arg in $configure_args; do
1879 if test -n "$ac_prev"; then
1880 ac_prev=
1881 continue
1882 fi
1883 case "$ac_arg" in
1884 -cache-file | --cache-file | --cache-fil | --cache-fi \
1885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1886 ac_prev=cache_file ;;
1887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1889 ;;
1890 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1891 ac_prev=srcdir ;;
1892 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1893 ;;
1894 *[" "]*) ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
1895 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1896 esac
1897 done
1898
1899 for ac_config_dir in testsuite; do
1900
1901 # Do not complain, so a configure script can configure whichever
1902 # parts of a large source tree are present.
1903 if test ! -d ${srcdir}/${ac_config_dir}; then
1904 continue
1905 fi
1906
1907 echo configuring in ${ac_config_dir}
1908
1909 case "${srcdir}" in
1910 .) ;;
1911 *)
1912 if test -d ./${ac_config_dir} || mkdir ./${ac_config_dir}; then :;
1913 else
1914 { echo "configure: can not create `pwd`/${ac_config_dir}" 1>&2; exit 1; }
1915 fi
1916 ;;
1917 esac
1918
1919 ac_popdir=`pwd`
1920 cd ${ac_config_dir}
1921
1922 case "${srcdir}" in
1923 .) # No --srcdir option. We are building in place.
1924 ac_sub_srcdir=${srcdir} ;;
1925 /*) # Absolute path.
1926 ac_sub_srcdir=${srcdir}/${ac_config_dir} ;;
1927 *) # Relative path.
1928 ac_sub_srcdir=../${srcdir}/${ac_config_dir} ;;
1929 esac
1930
1931 # Check for guested configure; otherwise get Cygnus style configure.
1932 if test -f ${ac_sub_srcdir}/configure; then
1933 ac_sub_configure=${ac_sub_srcdir}/configure
1934 elif test -f ${ac_sub_srcdir}/configure.in; then
1935 ac_sub_configure=${ac_configure}
1936 else
1937 echo "configure: warning: no configuration information is in ${ac_config_dir}" 1>&2
1938 ac_sub_configure=
1939 fi
1940
1941 # The recursion is here.
1942 if test -n "${ac_sub_configure}"; then
1943
1944 # Make the cache file name correct relative to the subdirectory.
1945 # A "../" for each directory in /${ac_config_dir}.
1946 ac_dots=`echo /${ac_config_dir}|sed 's%/[^/]*%../%g'`
1947 case "$cache_file" in
1948 /*) ac_sub_cache_file=$cache_file ;;
1949 *) # Relative path.
1950 ac_sub_cache_file="$ac_dots$cache_file" ;;
1951 esac
1952
1953 echo "running ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file --srcdir=${ac_sub_srcdir}"
1954 if ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file --srcdir=${ac_sub_srcdir}
1955 then :
1956 else
1957 { echo "configure: ${ac_sub_configure} failed for ${ac_config_dir}" 1>&2; exit 1; }
1958 fi
1959 fi
1960
1961 cd ${ac_popdir}
1962 done
1963fi
1964
This page took 0.212982 seconds and 4 git commands to generate.