Mon Feb 2 18:30:34 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
833c46e1 1#! /bin/sh
fb589130 2
b11fb939 3# Guess values for system-dependent variables and create Makefiles.
b5db0960 4# Generated automatically using autoconf version 2.12.1
df586de2 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
b11fb939 6#
f2889110
KR
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
b11fb939 9
f2889110 10# Defaults:
b11fb939 11ac_help=
f2889110
KR
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
e2b4bd2a
ILT
14ac_help="$ac_help
15 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
16ac_help="$ac_help
17 --enable-shared build shared libraries [default=yes]"
18ac_help="$ac_help
19 --enable-static build static libraries [default=yes]"
28d3e4a3 20ac_help="$ac_help
d7b2038f 21 --enable-bfd-assembler use BFD back end for writing object files"
e7757ad0
KR
22ac_help="$ac_help
23 targets alternative target configurations besides the primary"
2e013bb7
ILT
24ac_help="$ac_help
25 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
e2b4bd2a
ILT
26ac_help="$ac_help
27 --enable-maintainer-mode enable make rules and dependencies not useful
28 (and sometimes confusing) to the casual installer"
b11fb939 29
b11fb939
KR
30# Initialize some variables set by options.
31# The variables have the same names as the options, with
32# dashes changed to underlines.
33build=NONE
34cache_file=./config.cache
35exec_prefix=NONE
36host=NONE
37no_create=
38nonopt=NONE
bf111c9f 39no_recursion=
b11fb939 40prefix=NONE
bf111c9f
KR
41program_prefix=NONE
42program_suffix=NONE
ba49e48d 43program_transform_name=s,x,x,
b11fb939 44silent=
f2889110 45site=
b11fb939
KR
46srcdir=
47target=NONE
48verbose=
49x_includes=NONE
50x_libraries=NONE
1c9dbb83
ILT
51bindir='${exec_prefix}/bin'
52sbindir='${exec_prefix}/sbin'
53libexecdir='${exec_prefix}/libexec'
54datadir='${prefix}/share'
55sysconfdir='${prefix}/etc'
56sharedstatedir='${prefix}/com'
57localstatedir='${prefix}/var'
58libdir='${exec_prefix}/lib'
59includedir='${prefix}/include'
60oldincludedir='/usr/include'
61infodir='${prefix}/info'
62mandir='${prefix}/man'
b11fb939
KR
63
64# Initialize some other variables.
65subdirs=
1c9dbb83 66MFLAGS= MAKEFLAGS=
ed1ed9f9 67SHELL=${CONFIG_SHELL-/bin/sh}
c6c7035c
MM
68# Maximum number of lines to put in a shell here document.
69ac_max_here_lines=12
b11fb939
KR
70
71ac_prev=
72for ac_option
73do
74
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
78 ac_prev=
79 continue
80 fi
81
82 case "$ac_option" in
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 *) ac_optarg= ;;
85 esac
86
bf111c9f 87 # Accept the important Cygnus configure options, so we can diagnose typos.
b11fb939
KR
88
89 case "$ac_option" in
90
1c9dbb83
ILT
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 ac_prev=bindir ;;
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
95
96 -build | --build | --buil | --bui | --bu)
b11fb939 97 ac_prev=build ;;
1c9dbb83 98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b11fb939
KR
99 build="$ac_optarg" ;;
100
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
107
1c9dbb83
ILT
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 ac_prev=datadir ;;
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 | --da=*)
112 datadir="$ac_optarg" ;;
113
b11fb939
KR
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
ba49e48d 118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
b11fb939
KR
119 fi
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
122
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
ba49e48d 127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
b11fb939
KR
128 fi
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 case "$ac_option" in
131 *=*) ;;
132 *) ac_optarg=yes ;;
133 esac
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
135
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
144
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
147 with_gas=yes ;;
148
149 -help | --help | --hel | --he)
f1698cb7
KR
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
b11fb939 152 cat << EOF
f1698cb7
KR
153Usage: configure [options] [host]
154Options: [defaults in brackets after descriptions]
155Configuration:
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
163 [$ac_default_prefix]
1c9dbb83 164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
f1698cb7 165 [same as prefix]
1c9dbb83
ILT
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
170 [PREFIX/share]
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 [PREFIX/com]
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
f1698cb7
KR
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
1c9dbb83
ILT
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
185EOF
186 cat << EOF
f1698cb7
KR
187Host type:
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
b11fb939 198EOF
1c9dbb83
ILT
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
201 fi
b11fb939
KR
202 exit 0 ;;
203
204 -host | --host | --hos | --ho)
205 ac_prev=host ;;
206 -host=* | --host=* | --hos=* | --ho=*)
207 host="$ac_optarg" ;;
208
1c9dbb83
ILT
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
215
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 ac_prev=infodir ;;
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
220
221 -libdir | --libdir | --libdi | --libd)
222 ac_prev=libdir ;;
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
225
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
232
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
241
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 ac_prev=mandir ;;
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
246
b11fb939
KR
247 -nfp | --nfp | --nf)
248 # Obsolete; use --without-fp.
249 with_fp=no ;;
250
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 | --no-cr | --no-c)
253 no_create=yes ;;
254
bf111c9f
KR
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 no_recursion=yes ;;
b11fb939 258
1c9dbb83
ILT
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
267
b11fb939
KR
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 ac_prev=prefix ;;
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
272
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
279
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
286
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
bf111c9f 302 program_transform_name="$ac_optarg" ;;
b11fb939
KR
303
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
306 silent=yes ;;
307
1c9dbb83
ILT
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 ac_prev=sbindir ;;
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 | --sbi=* | --sb=*)
312 sbindir="$ac_optarg" ;;
313
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
317 | --sha | --sh)
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 | --sha=* | --sh=*)
323 sharedstatedir="$ac_optarg" ;;
324
f2889110
KR
325 -site | --site | --sit)
326 ac_prev=site ;;
327 -site=* | --site=* | --sit=*)
328 site="$ac_optarg" ;;
329
b11fb939
KR
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 ac_prev=srcdir ;;
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
334
1c9dbb83
ILT
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
341
b11fb939
KR
342 -target | --target | --targe | --targ | --tar | --ta | --t)
343 ac_prev=target ;;
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
346
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 verbose=yes ;;
349
350 -version | --version | --versio | --versi | --vers)
b5db0960 351 echo "configure generated by autoconf version 2.12.1"
b11fb939
KR
352 exit 0 ;;
353
354 -with-* | --with-*)
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
ba49e48d 358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
b11fb939
KR
359 fi
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 case "$ac_option" in
362 *=*) ;;
363 *) ac_optarg=yes ;;
364 esac
365 eval "with_${ac_package}='$ac_optarg'" ;;
366
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
ba49e48d 371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
b11fb939
KR
372 fi
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
375
376 --x)
377 # Obsolete; use --with-x.
378 with_x=yes ;;
379
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
386
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
393
ba49e48d 394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
b11fb939
KR
395 ;;
396
1c9dbb83 397 *)
b11fb939
KR
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 fi
401 if test "x$nonopt" != xNONE; then
ba49e48d 402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
b11fb939
KR
403 fi
404 nonopt="$ac_option"
405 ;;
406
407 esac
408done
409
410if test -n "$ac_prev"; then
ba49e48d 411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
b11fb939
KR
412fi
413
833c46e1 414trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
b11fb939
KR
415
416# File descriptor usage:
833c46e1 417# 0 standard input
b11fb939
KR
418# 1 file creation
419# 2 errors and warnings
833c46e1
KR
420# 3 some systems may open it to /dev/tty
421# 4 used on the Kubota Titan
422# 6 checking for... messages and results
b11fb939
KR
423# 5 compiler messages saved in config.log
424if test "$silent" = yes; then
833c46e1 425 exec 6>/dev/null
b11fb939 426else
833c46e1 427 exec 6>&1
b11fb939
KR
428fi
429exec 5>./config.log
430
431echo "\
432This file contains any messages produced by compilers while
433running configure, to aid debugging if configure makes a mistake.
434" 1>&5
435
bf111c9f 436# Strip out --no-create and --no-recursion so they do not pile up.
e23b25ec
KR
437# Also quote any args containing shell metacharacters.
438ac_configure_args=
439for ac_arg
440do
b11fb939
KR
441 case "$ac_arg" in
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
bf111c9f
KR
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
e23b25ec
KR
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
b11fb939
KR
449 esac
450done
451
452# NLS nuisances.
c6c7035c
MM
453# Only set these to C if already set. These must not be set unconditionally
454# because not all systems understand e.g. LANG=C (notably SCO).
455# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456# Non-C LC_CTYPE values break the ctype check.
7d0f8249 457if test "${LANG+set}" = set; then LANG=C; export LANG; fi
c6c7035c
MM
458if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
b11fb939
KR
461
462# confdefs.h avoids OS command line length limits that DEFS can exceed.
463rm -rf conftest* confdefs.h
464# AIX cpp loses on an empty file, so make sure it contains at least a newline.
465echo > confdefs.h
466
467# A filename unique to this package, relative to the directory that
468# configure is in, which we can look for to find out if srcdir is correct.
469ac_unique_file=as.h
470
471# Find the source files, if location was not specified.
472if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
475 ac_prog=$0
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 srcdir=$ac_confdir
479 if test ! -r $srcdir/$ac_unique_file; then
480 srcdir=..
481 fi
482else
483 ac_srcdir_defaulted=no
484fi
485if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
ba49e48d 487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
b11fb939 488 else
ba49e48d 489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
b11fb939
KR
490 fi
491fi
f2889110 492srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
b11fb939
KR
493
494# Prefer explicitly selected file to automatically selected ones.
bf111c9f 495if test -z "$CONFIG_SITE"; then
b11fb939 496 if test "x$prefix" != xNONE; then
f2889110 497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
b11fb939 498 else
f2889110 499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
b11fb939
KR
500 fi
501fi
502for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
505 . "$ac_site_file"
506 fi
507done
508
509if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
511 . $cache_file
512else
513 echo "creating cache $cache_file"
514 > $cache_file
515fi
516
517ac_ext=c
518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
d0352cbb
DE
519ac_cpp='$CPP $CPPFLAGS'
520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
c6c7035c 522cross_compiling=$ac_cv_prog_cc_cross
b11fb939 523
bf111c9f
KR
524if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='
528' ac_t=' '
529 else
530 ac_n=-n ac_c= ac_t=
531 fi
532else
533 ac_n= ac_c='\c' ac_t=
534fi
535
b11fb939
KR
536
537
538ac_aux_dir=
e2b4bd2a 539for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
e23b25ec
KR
540 if test -f $ac_dir/install-sh; then
541 ac_aux_dir=$ac_dir
28d3e4a3 542 ac_install_sh="$ac_aux_dir/install-sh -c"
e23b25ec
KR
543 break
544 elif test -f $ac_dir/install.sh; then
545 ac_aux_dir=$ac_dir
28d3e4a3 546 ac_install_sh="$ac_aux_dir/install.sh -c"
e23b25ec 547 break
b11fb939
KR
548 fi
549done
550if test -z "$ac_aux_dir"; then
e2b4bd2a 551 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
b11fb939 552fi
28d3e4a3
KR
553ac_config_guess=$ac_aux_dir/config.guess
554ac_config_sub=$ac_aux_dir/config.sub
555ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
b11fb939 556
fb589130 557
b11fb939
KR
558# Do some error checking and defaulting for the host and target type.
559# The inputs are:
560# configure --host=HOST --target=TARGET --build=BUILD NONOPT
561#
562# The rules are:
563# 1. You are not allowed to specify --host, --target, and nonopt at the
1c9dbb83 564# same time.
b11fb939
KR
565# 2. Host defaults to nonopt.
566# 3. If nonopt is not specified, then host defaults to the current host,
567# as determined by config.guess.
f2889110
KR
568# 4. Target and build default to nonopt.
569# 5. If nonopt is not specified, then target and build default to host.
b11fb939
KR
570
571# The aliases save the names the user supplied, while $host etc.
572# will get canonicalized.
573case $host---$target---$nonopt in
574NONE---*---* | *---NONE---* | *---*---NONE) ;;
ba49e48d 575*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
b11fb939
KR
576esac
577
e23b25ec 578
b11fb939 579# Make sure we can run config.sub.
b5db0960 580if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
ba49e48d 581else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
b11fb939
KR
582fi
583
833c46e1 584echo $ac_n "checking host system type""... $ac_c" 1>&6
ed1ed9f9 585echo "configure:586: checking host system type" >&5
b11fb939
KR
586
587host_alias=$host
28d3e4a3 588case "$host_alias" in
b11fb939
KR
589NONE)
590 case $nonopt in
591 NONE)
b5db0960 592 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
ba49e48d 593 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
b11fb939
KR
594 fi ;;
595 *) host_alias=$nonopt ;;
596 esac ;;
597esac
598
b5db0960 599host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
c6c7035c
MM
600host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
601host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
602host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
833c46e1 603echo "$ac_t""$host" 1>&6
b11fb939 604
833c46e1 605echo $ac_n "checking target system type""... $ac_c" 1>&6
ed1ed9f9 606echo "configure:607: checking target system type" >&5
b11fb939
KR
607
608target_alias=$target
28d3e4a3 609case "$target_alias" in
b11fb939
KR
610NONE)
611 case $nonopt in
612 NONE) target_alias=$host_alias ;;
613 *) target_alias=$nonopt ;;
614 esac ;;
615esac
616
b5db0960 617target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
c6c7035c
MM
618target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
619target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
620target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
833c46e1 621echo "$ac_t""$target" 1>&6
b11fb939 622
833c46e1 623echo $ac_n "checking build system type""... $ac_c" 1>&6
ed1ed9f9 624echo "configure:625: checking build system type" >&5
b11fb939
KR
625
626build_alias=$build
28d3e4a3 627case "$build_alias" in
f2889110
KR
628NONE)
629 case $nonopt in
630 NONE) build_alias=$host_alias ;;
631 *) build_alias=$nonopt ;;
632 esac ;;
633esac
634
b5db0960 635build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
e2b4bd2a
ILT
636build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
637build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
638build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
639echo "$ac_t""$build" 1>&6
640
641test "$host_alias" != "$target_alias" &&
642 test "$program_prefix$program_suffix$program_transform_name" = \
643 NONENONEs,x,x, &&
644 program_prefix=${target_alias}-
645
646
647# Find a good install program. We prefer a C program (faster),
648# so one script is as good as another. But avoid the broken or
649# incompatible versions:
650# SysV /etc/install, /usr/sbin/install
651# SunOS /usr/etc/install
652# IRIX /sbin/install
653# AIX /bin/install
ed1ed9f9 654# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
e2b4bd2a
ILT
655# AFS /usr/afsws/bin/install, which mishandles nonexistent args
656# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
657# ./install, which can be erroneously created by make from ./install.sh.
658echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
ed1ed9f9 659echo "configure:660: checking for a BSD compatible install" >&5
e2b4bd2a
ILT
660if test -z "$INSTALL"; then
661if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
662 echo $ac_n "(cached) $ac_c" 1>&6
663else
664 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
665 for ac_dir in $PATH; do
666 # Account for people who put trailing slashes in PATH elements.
667 case "$ac_dir/" in
668 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
669 *)
670 # OSF1 and SCO ODT 3.0 have their own names for install.
ed1ed9f9
ILT
671 # Don't use installbsd from OSF since it installs stuff as root
672 # by default.
673 for ac_prog in ginstall scoinst install; do
e2b4bd2a
ILT
674 if test -f $ac_dir/$ac_prog; then
675 if test $ac_prog = install &&
676 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
677 # AIX install. It has an incompatible calling convention.
e2b4bd2a
ILT
678 :
679 else
680 ac_cv_path_install="$ac_dir/$ac_prog -c"
681 break 2
682 fi
683 fi
684 done
685 ;;
686 esac
687 done
688 IFS="$ac_save_IFS"
689
690fi
691 if test "${ac_cv_path_install+set}" = set; then
692 INSTALL="$ac_cv_path_install"
693 else
694 # As a last resort, use the slow shell script. We don't cache a
695 # path for INSTALL within a source directory, because that will
696 # break other packages using the cache if that directory is
697 # removed, or if the path is relative.
698 INSTALL="$ac_install_sh"
699 fi
700fi
701echo "$ac_t""$INSTALL" 1>&6
702
703# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
704# It thinks the first close brace ends the variable substitution.
705test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
706
707test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
708
709
710test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
711
712
713PACKAGE=gas
714
715VERSION=2.8.2
716
717if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
718 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
719fi
720cat >> confdefs.h <<EOF
721#define PACKAGE "$PACKAGE"
722EOF
723
724cat >> confdefs.h <<EOF
725#define VERSION "$VERSION"
726EOF
727
728echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
ed1ed9f9 729echo "configure:730: checking whether build environment is sane" >&5
e2b4bd2a
ILT
730# Just in case
731sleep 1
732echo timestamp > conftestfile
733# Do `set' in a subshell so we don't clobber the current shell's
734# arguments. Must try -L first in case configure is actually a
735# symlink; some systems play weird games with the mod time of symlinks
736# (eg FreeBSD returns the mod time of the symlink's containing
737# directory).
738if (
739 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
740 if test "" = "X"; then
741 # -L didn't work.
742 set X `ls -t $srcdir/configure conftestfile`
743 fi
744 test "$2" = conftestfile
745 )
746then
747 # Ok.
748 :
749else
750 { echo "configure: error: newly created file is older than distributed files!
751Check your system clock" 1>&2; exit 1; }
752fi
753rm -f conftest*
754echo "$ac_t""yes" 1>&6
755if test "$program_transform_name" = s,x,x,; then
756 program_transform_name=
757else
758 # Double any \ or $. echo might interpret backslashes.
759 cat <<\EOF_SED > conftestsed
760s,\\,\\\\,g; s,\$,$$,g
761EOF_SED
762 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
763 rm -f conftestsed
764fi
765test "$program_prefix" != NONE &&
766 program_transform_name="s,^,${program_prefix},; $program_transform_name"
767# Use a double $ so make ignores it.
768test "$program_suffix" != NONE &&
769 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
770
771# sed with no file args requires a program.
772test "$program_transform_name" = "" && program_transform_name="s,x,x,"
773
774missing_dir=`cd $ac_aux_dir && pwd`
775echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
ed1ed9f9 776echo "configure:777: checking for working aclocal" >&5
e2b4bd2a
ILT
777# Run test in a subshell; some versions of sh will print an error if
778# an executable is not found, even if stderr is redirected.
779# Redirect stdin to placate older versions of autoconf. Sigh.
780if (aclocal --version) < /dev/null > /dev/null 2>&1; then
781 ACLOCAL=aclocal
782 echo "$ac_t""found" 1>&6
783else
784 ACLOCAL="$missing_dir/missing aclocal"
785 echo "$ac_t""missing" 1>&6
786fi
787
788echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
ed1ed9f9 789echo "configure:790: checking for working autoconf" >&5
e2b4bd2a
ILT
790# Run test in a subshell; some versions of sh will print an error if
791# an executable is not found, even if stderr is redirected.
792# Redirect stdin to placate older versions of autoconf. Sigh.
793if (autoconf --version) < /dev/null > /dev/null 2>&1; then
794 AUTOCONF=autoconf
795 echo "$ac_t""found" 1>&6
796else
797 AUTOCONF="$missing_dir/missing autoconf"
798 echo "$ac_t""missing" 1>&6
799fi
800
801echo $ac_n "checking for working automake""... $ac_c" 1>&6
ed1ed9f9 802echo "configure:803: checking for working automake" >&5
e2b4bd2a
ILT
803# Run test in a subshell; some versions of sh will print an error if
804# an executable is not found, even if stderr is redirected.
805# Redirect stdin to placate older versions of autoconf. Sigh.
806if (automake --version) < /dev/null > /dev/null 2>&1; then
807 AUTOMAKE=automake
808 echo "$ac_t""found" 1>&6
809else
810 AUTOMAKE="$missing_dir/missing automake"
811 echo "$ac_t""missing" 1>&6
812fi
813
814echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
ed1ed9f9 815echo "configure:816: checking for working autoheader" >&5
e2b4bd2a
ILT
816# Run test in a subshell; some versions of sh will print an error if
817# an executable is not found, even if stderr is redirected.
818# Redirect stdin to placate older versions of autoconf. Sigh.
819if (autoheader --version) < /dev/null > /dev/null 2>&1; then
820 AUTOHEADER=autoheader
821 echo "$ac_t""found" 1>&6
822else
823 AUTOHEADER="$missing_dir/missing autoheader"
824 echo "$ac_t""missing" 1>&6
825fi
826
827echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
ed1ed9f9 828echo "configure:829: checking for working makeinfo" >&5
e2b4bd2a
ILT
829# Run test in a subshell; some versions of sh will print an error if
830# an executable is not found, even if stderr is redirected.
831# Redirect stdin to placate older versions of autoconf. Sigh.
832if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
833 MAKEINFO=makeinfo
834 echo "$ac_t""found" 1>&6
835else
836 MAKEINFO="$missing_dir/missing makeinfo"
837 echo "$ac_t""missing" 1>&6
838fi
839
840echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
ed1ed9f9 841echo "configure:842: checking whether ${MAKE-make} sets \${MAKE}" >&5
e2b4bd2a
ILT
842set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
843if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
845else
846 cat > conftestmake <<\EOF
847all:
848 @echo 'ac_maketemp="${MAKE}"'
849EOF
850# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
851eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
852if test -n "$ac_maketemp"; then
853 eval ac_cv_prog_make_${ac_make}_set=yes
854else
855 eval ac_cv_prog_make_${ac_make}_set=no
856fi
857rm -f conftestmake
858fi
859if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
860 echo "$ac_t""yes" 1>&6
861 SET_MAKE=
862else
863 echo "$ac_t""no" 1>&6
864 SET_MAKE="MAKE=${MAKE-make}"
865fi
866
867
868# Extract the first word of "gcc", so it can be a program name with args.
869set dummy gcc; ac_word=$2
870echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ed1ed9f9 871echo "configure:872: checking for $ac_word" >&5
e2b4bd2a
ILT
872if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
874else
875 if test -n "$CC"; then
876 ac_cv_prog_CC="$CC" # Let the user override the test.
877else
878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
879 for ac_dir in $PATH; do
880 test -z "$ac_dir" && ac_dir=.
881 if test -f $ac_dir/$ac_word; then
882 ac_cv_prog_CC="gcc"
883 break
884 fi
885 done
886 IFS="$ac_save_ifs"
887fi
888fi
889CC="$ac_cv_prog_CC"
890if test -n "$CC"; then
891 echo "$ac_t""$CC" 1>&6
892else
893 echo "$ac_t""no" 1>&6
894fi
895
896if test -z "$CC"; then
897 # Extract the first word of "cc", so it can be a program name with args.
898set dummy cc; ac_word=$2
899echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ed1ed9f9 900echo "configure:901: checking for $ac_word" >&5
e2b4bd2a
ILT
901if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
903else
904 if test -n "$CC"; then
905 ac_cv_prog_CC="$CC" # Let the user override the test.
906else
907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
908 ac_prog_rejected=no
909 for ac_dir in $PATH; do
910 test -z "$ac_dir" && ac_dir=.
911 if test -f $ac_dir/$ac_word; then
912 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
913 ac_prog_rejected=yes
914 continue
915 fi
916 ac_cv_prog_CC="cc"
917 break
918 fi
919 done
920 IFS="$ac_save_ifs"
921if test $ac_prog_rejected = yes; then
922 # We found a bogon in the path, so make sure we never use it.
923 set dummy $ac_cv_prog_CC
924 shift
925 if test $# -gt 0; then
926 # We chose a different compiler from the bogus one.
927 # However, it has the same basename, so the bogon will be chosen
928 # first if we set CC to just the basename; use the full file name.
929 shift
930 set dummy "$ac_dir/$ac_word" "$@"
931 shift
932 ac_cv_prog_CC="$@"
933 fi
934fi
935fi
936fi
937CC="$ac_cv_prog_CC"
938if test -n "$CC"; then
939 echo "$ac_t""$CC" 1>&6
940else
941 echo "$ac_t""no" 1>&6
942fi
943
944 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
945fi
946
947echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
ed1ed9f9 948echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
e2b4bd2a
ILT
949
950ac_ext=c
951# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952ac_cpp='$CPP $CPPFLAGS'
953ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955cross_compiling=$ac_cv_prog_cc_cross
956
957cat > conftest.$ac_ext <<EOF
ed1ed9f9 958#line 959 "configure"
e2b4bd2a
ILT
959#include "confdefs.h"
960main(){return(0);}
961EOF
ed1ed9f9 962if { (eval echo configure:963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
e2b4bd2a
ILT
963 ac_cv_prog_cc_works=yes
964 # If we can't run a trivial program, we are probably using a cross compiler.
965 if (./conftest; exit) 2>/dev/null; then
966 ac_cv_prog_cc_cross=no
967 else
968 ac_cv_prog_cc_cross=yes
969 fi
970else
971 echo "configure: failed program was:" >&5
972 cat conftest.$ac_ext >&5
973 ac_cv_prog_cc_works=no
974fi
975rm -fr conftest*
976
977echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
978if test $ac_cv_prog_cc_works = no; then
979 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
980fi
981echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ed1ed9f9 982echo "configure:983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
e2b4bd2a
ILT
983echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
984cross_compiling=$ac_cv_prog_cc_cross
985
986echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
ed1ed9f9 987echo "configure:988: checking whether we are using GNU C" >&5
e2b4bd2a
ILT
988if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990else
991 cat > conftest.c <<EOF
992#ifdef __GNUC__
993 yes;
994#endif
995EOF
ed1ed9f9 996if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
e2b4bd2a
ILT
997 ac_cv_prog_gcc=yes
998else
999 ac_cv_prog_gcc=no
1000fi
1001fi
1002
1003echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1004
1005if test $ac_cv_prog_gcc = yes; then
1006 GCC=yes
1007 ac_test_CFLAGS="${CFLAGS+set}"
1008 ac_save_CFLAGS="$CFLAGS"
1009 CFLAGS=
1010 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
ed1ed9f9 1011echo "configure:1012: checking whether ${CC-cc} accepts -g" >&5
e2b4bd2a
ILT
1012if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1014else
1015 echo 'void f(){}' > conftest.c
1016if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1017 ac_cv_prog_cc_g=yes
1018else
1019 ac_cv_prog_cc_g=no
1020fi
1021rm -f conftest*
1022
1023fi
1024
1025echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1026 if test "$ac_test_CFLAGS" = set; then
1027 CFLAGS="$ac_save_CFLAGS"
1028 elif test $ac_cv_prog_cc_g = yes; then
1029 CFLAGS="-g -O2"
1030 else
1031 CFLAGS="-O2"
1032 fi
1033else
1034 GCC=
1035 test "${CFLAGS+set}" = set || CFLAGS="-g"
1036fi
1037
1038# Extract the first word of "ranlib", so it can be a program name with args.
1039set dummy ranlib; ac_word=$2
1040echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ed1ed9f9 1041echo "configure:1042: checking for $ac_word" >&5
e2b4bd2a
ILT
1042if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1044else
1045 if test -n "$RANLIB"; then
1046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1047else
1048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1049 for ac_dir in $PATH; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1052 ac_cv_prog_RANLIB="ranlib"
1053 break
1054 fi
1055 done
1056 IFS="$ac_save_ifs"
1057 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1058fi
1059fi
1060RANLIB="$ac_cv_prog_RANLIB"
1061if test -n "$RANLIB"; then
1062 echo "$ac_t""$RANLIB" 1>&6
1063else
1064 echo "$ac_t""no" 1>&6
1065fi
1066
1067# Check whether --with-gnu-ld or --without-gnu-ld was given.
1068if test "${with_gnu_ld+set}" = set; then
1069 withval="$with_gnu_ld"
1070 test "$withval" = no || with_gnu_ld=yes
1071else
1072 with_gnu_ld=no
1073fi
1074
1075if test "$with_gnu_ld" = yes; then
1076 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
ed1ed9f9 1077echo "configure:1078: checking for GNU ld" >&5
e2b4bd2a
ILT
1078else
1079 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
ed1ed9f9 1080echo "configure:1081: checking for non-GNU ld" >&5
e2b4bd2a
ILT
1081fi
1082if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1084else
1085 case "$LD" in
6cc7a938 1086 "")
e2b4bd2a
ILT
1087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1088 for ac_dir in $PATH; do
1089 test -z "$ac_dir" && ac_dir=.
1090 if test -f "$ac_dir/ld"; then
1091 ac_cv_path_LD="$ac_dir/ld"
1092 # Check to see if the program is GNU ld. I'd rather use --version,
1093 # but apparently some GNU ld's only accept -v.
1094 # Break only if it was the GNU/non-GNU ld that we prefer.
1095 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1096 test "$with_gnu_ld" = yes && break
1097 else
1098 test "$with_gnu_ld" != yes && break
1099 fi
1100 fi
1101 done
1102 IFS="$ac_save_ifs"
1103 ;;
6cc7a938
ILT
1104 *)
1105 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1106 ;;
e2b4bd2a
ILT
1107esac
1108fi
1109
1110LD="$ac_cv_path_LD"
1111if test -n "$LD"; then
1112 echo "$ac_t""$LD" 1>&6
1113else
1114 echo "$ac_t""no" 1>&6
1115fi
1116test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1117
1118echo $ac_n "checking whether we are using GNU ld""... $ac_c" 1>&6
ed1ed9f9 1119echo "configure:1120: checking whether we are using GNU ld" >&5
e2b4bd2a
ILT
1120if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1122else
1123 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1124if $LD -v 2>&1 </dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1125 ac_cv_prog_gnu_ld=yes
1126else
1127 ac_cv_prog_gnu_ld=no
1128fi
1129fi
1130
1131echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1132
1133
1134echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
ed1ed9f9 1135echo "configure:1136: checking whether ln -s works" >&5
e2b4bd2a
ILT
1136if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1138else
1139 rm -f conftestdata
1140if ln -s X conftestdata 2>/dev/null
1141then
1142 rm -f conftestdata
1143 ac_cv_prog_LN_S="ln -s"
1144else
1145 ac_cv_prog_LN_S=ln
1146fi
1147fi
1148LN_S="$ac_cv_prog_LN_S"
1149if test "$ac_cv_prog_LN_S" = "ln -s"; then
1150 echo "$ac_t""yes" 1>&6
1151else
1152 echo "$ac_t""no" 1>&6
1153fi
1154
1155
1156
1157
1158
1159
1160
1161# Always use our own libtool.
0040c1e9 1162LIBTOOL='$(SHELL) $(top_builddir)/libtool'
e2b4bd2a
ILT
1163
1164
1165# Check whether --enable-shared or --disable-shared was given.
1166if test "${enable_shared+set}" = set; then
1167 enableval="$enable_shared"
0040c1e9
ILT
1168 p=${PACKAGE-bogus-package-name}
1169 case "$enableval" in
1170 yes) enable_shared=yes ;;
1171 no) enable_shared=no ;;
1172 # The value of $p (aka $PACKAGE) is assumed to come from AM_INIT_AUTOMAKE.
1173 # If it didn't, it'll be `bogus-package-name', thus making this condition
1174 # not be used.
1175 *$p*) enable_shared=yes ;;
1176 *) shared=no ;;
1177esac
e2b4bd2a
ILT
1178fi
1179
1180libtool_shared=
1181test "$enable_shared" = no && libtool_shared=" --disable-shared"
1182
1183# Check whether --enable-static or --disable-static was given.
1184if test "${enable_static+set}" = set; then
1185 enableval="$enable_static"
1186 if test "$enableval" = no; then
1187 enable_static=no
1188else
1189 enable_static=yes
1190fi
1191fi
1192
1193libtool_static=
1194test "$enable_static" = no && libtool_static=" --disable-static"
1195
1196libtool_flags="$libtool_shared$libtool_static"
1197test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1198test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1199test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1200
1201# Some flags need to be propagated to the compiler or linker for good
1202# libtool support.
1203case "$host" in
1204*-*-irix6*)
1205 ac_save_CFLAGS="$CFLAGS"
1206 # -n32 always needs to be added to the linker when using GCC.
1207 test "$ac_cv_prog_gcc" = yes && CFLAGS="$CFLAGS -n32"
1208 for f in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
1209 if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then
1210 LD="${LD-ld} $f"
1211 fi
1212 done
1213 CFLAGS="$ac_save_CFLAGS"
1214 ;;
1215
1216*-*-sco3.2v5*)
1217 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1218 CFLAGS="$CFLAGS -belf"
1219 ;;
1220esac
1221
1222# Actually configure libtool. ac_aux_dir is where install-sh is found.
1223CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1224LD="$LD" RANLIB="$RANLIB" LN_S="$LN_S" \
1225${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1226$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1227|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1228
1229
1230user_bfd_gas=
1231# Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1232if test "${enable_bfd_assembler+set}" = set; then
1233 enableval="$enable_bfd_assembler"
1234 case "${enableval}" in
1235 yes) need_bfd=yes user_bfd_gas=yes ;;
1236 no) user_bfd_gas=no ;;
1237 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1238esac
1239fi
1240# Check whether --enable-targets or --disable-targets was given.
1241if test "${enable_targets+set}" = set; then
1242 enableval="$enable_targets"
1243 case "${enableval}" in
1244 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1245 ;;
1246 no) enable_targets= ;;
1247 *) enable_targets=$enableval ;;
1248esac
1249fi
1250# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1251if test "${enable_commonbfdlib+set}" = set; then
1252 enableval="$enable_commonbfdlib"
1253 case "${enableval}" in
1254 yes) commonbfdlib=true ;;
1255 no) commonbfdlib=false ;;
1256 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1257esac
1258fi
1259
1260# Generate a header file
b11fb939 1261
318b02b6 1262
318b02b6 1263
b11fb939 1264
e7757ad0 1265te_file=generic
b11fb939 1266
e7757ad0
KR
1267canon_targets=""
1268if test -n "$enable_targets" ; then
1269 for t in `echo $enable_targets | sed 's/,/ /g'`; do
ec2f730d 1270 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null`
e7757ad0
KR
1271 if test -n "$result" ; then
1272 canon_targets="$canon_targets $result"
1273# else
1274# # Permit "all", etc. We don't support it yet though.
1275# canon_targets="$canon_targets $t"
1276 fi
1277 done
1278 _gas_uniq_list="$canon_targets"
1279_gas_uniq_newlist=""
1280for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
1281 case $_gas_uniq_i in
1282 _gas_uniq_dummy) ;;
1283 *) case " $_gas_uniq_newlist " in
1284 *" $_gas_uniq_i "*) ;;
1285 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
1286 esac ;;
1287 esac
1288done
1289canon_targets=$_gas_uniq_newlist
b11fb939 1290
e7757ad0 1291fi
b11fb939 1292
e7757ad0
KR
1293emulations=""
1294
1295for this_target in $target $canon_targets ; do
1296
64556643 1297 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
e7757ad0
KR
1298
1299 # check for architecture variants
2b09622a 1300 arch=
6ff87ead 1301 endian=
e7757ad0 1302 case ${cpu} in
0170f1c3 1303 alpha*) cpu_type=alpha ;;
ae09d880
ILT
1304 armeb) cpu_type=arm endian=big ;;
1305 arm*) cpu_type=arm endian=little ;;
76fb6d2f 1306 thumb*) cpu_type=arm endian=little ;;
e7757ad0 1307 hppa*) cpu_type=hppa ;;
7c2fadd1 1308 i[456]86) cpu_type=i386 ;;
e7757ad0
KR
1309 m680[012346]0) cpu_type=m68k ;;
1310 m68008) cpu_type=m68k ;;
1311 m683??) cpu_type=m68k ;;
1312 m8*) cpu_type=m88k ;;
e16b9537 1313 mips*el) cpu_type=mips endian=little ;;
01c655cc 1314# start-sanitize-r5900
ea1c39ce 1315 mips*5900*) cpu_type=mips endian=little ;;
01c655cc 1316# end-sanitize-r5900
e7757ad0
KR
1317 mips*) cpu_type=mips endian=big ;;
1318 powerpcle*) cpu_type=ppc endian=little ;;
1319 powerpc*) cpu_type=ppc endian=big ;;
1320 rs6000*) cpu_type=ppc ;;
2b09622a
DE
1321 sparclite*) cpu_type=sparc arch=sparclite ;;
1322 sparclet*) cpu_type=sparc arch=sparclet ;;
70ee7782 1323 sparc64*) cpu_type=sparc arch=v9-64 ;;
2b09622a 1324 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
756adc97 1325 v850*) cpu_type=v850 ;;
a1c7c0f3 1326 *) cpu_type=${cpu} ;;
e7757ad0
KR
1327 esac
1328
1329 if test ${this_target} = $target ; then
1330 target_cpu_type=${cpu_type}
6ff87ead
NC
1331 if test x${endian} = xbig; then
1332 cat >> confdefs.h <<\EOF
1333#define TARGET_BYTES_BIG_ENDIAN 1
1334EOF
1335
1336 elif test x${endian} = xlittle; then
1337 cat >> confdefs.h <<\EOF
1338#define TARGET_BYTES_BIG_ENDIAN 0
1339EOF
1340
1341 fi
e7757ad0
KR
1342 elif test ${target_cpu_type} != ${cpu_type} ; then
1343 continue
1344 fi
1345
e7757ad0
KR
1346 generic_target=${cpu_type}-$vendor-$os
1347 dev=no
1348 bfd_gas=no
1349 em=generic
1350
1351 # assign object format
1352 case ${generic_target} in
6ff87ead
NC
1353 a29k-*-coff) fmt=coff ;;
1354 a29k-amd-udi) fmt=coff ;;
1355 a29k-amd-ebmon) fmt=coff ;;
1356 a29k-nyu-sym1) fmt=coff ;;
e7757ad0
KR
1357 a29k-*-vxworks*) fmt=coff ;;
1358
0170f1c3
RH
1359 alpha*-*-*vms*) fmt=evax ;;
1360 alpha*-*-netware*) fmt=ecoff ;;
1361 alpha*-*-openbsd*) fmt=ecoff ;;
1362 alpha*-*-osf*) fmt=ecoff ;;
1363 alpha*-*-linuxecoff*) fmt=ecoff ;;
1364 alpha*-*-linux*) fmt=elf em=linux ;;
b11fb939 1365
e7757ad0 1366 arc-*-elf*) fmt=elf bfd_gas=yes ;;
4181c985 1367
6ff87ead
NC
1368 arm-*-riscix*) fmt=aout em=riscix ;;
1369 arm-*-aout) fmt=aout ;;
76fb6d2f 1370 arm-*-coff | thumb-*-coff) fmt=coff ;;
e7757ad0 1371 arm-*-riscix*) fmt=aout ;;
6ff87ead 1372 arm-*-pe) fmt=coff em=pe ;;
e7757ad0 1373
cbe7dccb 1374 d10v-*-*) fmt=elf bfd_gas=yes ;;
7d0f8249
MH
1375# start-sanitize-d30v
1376 d30v-*-*) fmt=elf bfd_gas=yes ;;
1377# end-sanitize-d30v
7be9a312 1378
e7757ad0
KR
1379 hppa-*-*elf*) fmt=elf em=hppa ;;
1380 hppa-*-lites*) fmt=elf em=hppa ;;
1381 hppa-*-osf*) fmt=som em=hppa ;;
332d5c49 1382 hppa-*-rtems*) fmt=elf em=hppa ;;
e7757ad0
KR
1383 hppa-*-hpux*) fmt=som em=hppa ;;
1384 hppa-*-bsd*) fmt=som em=hppa ;;
1385 hppa-*-hiux*) fmt=som em=hppa ;;
1386
1387 h8300-*-coff) fmt=coff ;;
1388
6ff87ead 1389 i386-ibm-aix*) fmt=coff em=i386aix ;;
7d0f8249 1390 i386-sequent-bsd*) fmt=aout em=dynix bfd_gas=yes ;;
e7757ad0
KR
1391 i386-*-bsd*) fmt=aout em=386bsd ;;
1392 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
1393 i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;;
76fb6d2f 1394 i386-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes;;
a1c7c0f3 1395 i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;;
6ff87ead 1396 i386-*-linux*coff*) fmt=coff em=linux ;;
e7757ad0 1397 i386-*-linux*) fmt=elf em=linux ;;
6ff87ead 1398 i386-*-lynxos*) fmt=coff em=lynx ;;
427a886a 1399 i386-*-sysv4* | i386-*-solaris* | i386-*-elf)
e7757ad0 1400 fmt=elf ;;
427a886a
ILT
1401 i386-*-freebsdelf*) fmt=elf ;;
1402 i386-*-freebsd*) fmt=aout em=386bsd ;;
6cc7a938
ILT
1403 i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*)
1404 fmt=coff ;;
1405 i386-*-sco3.2v5*) fmt=elf
6ff87ead
NC
1406 if test ${this_target} = $target; then
1407 cat >> confdefs.h <<\EOF
1408#define SCO_ELF 1
1409EOF
1410
1411 fi
1412 ;;
6cc7a938 1413 i386-*-sco3.2*) fmt=coff ;;
e7757ad0 1414 i386-*-vsta) fmt=aout ;;
60dc9fb2 1415 i386-*-msdosdjgpp* | i386-*-go32* | i386-go32-rtems*)
6ff87ead
NC
1416 fmt=coff em=go32;;
1417 i386-*-rtems*) fmt=coff ;;
6c186c48
SC
1418 i386-*-gnu*) fmt=elf ;;
1419 i386-*-mach*)
e7757ad0
KR
1420 fmt=aout em=mach bfd_gas=yes ;;
1421 i386-*-msdos*) fmt=aout ;;
6c186c48 1422 i386-*-moss*) fmt=elf ;;
6ff87ead 1423 i386-*-pe) fmt=coff em=pe ;;
0040c1e9
ILT
1424 i386-*-cygwin32*) fmt=coff em=pe bfd_gas=yes ;;
1425 i386-*-mingw32*) fmt=coff em=pe bfd_gas=yes ;;
1426 i386-*-*nt*) fmt=coff em=pe ;;
e7757ad0 1427 i960-*-bout) fmt=bout ;;
6ff87ead
NC
1428 i960-*-coff) fmt=coff em=ic960 ;;
1429 i960-*-rtems*) fmt=coff em=ic960 ;;
e7757ad0
KR
1430 i960-*-nindy*) fmt=bout ;;
1431 i960-*-vxworks4*) fmt=bout ;;
1432 i960-*-vxworks5.0) fmt=bout ;;
6ff87ead 1433 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
e7757ad0
KR
1434 i960-*-vxworks*) fmt=bout ;;
1435
374bdac7
DE
1436 m32r-*-*) fmt=elf bfd_gas=yes ;;
1437
e7757ad0
KR
1438 m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
1439 fmt=aout em=sun3 ;;
6ff87ead
NC
1440 m68k-motorola-sysv*) fmt=coff em=delta ;;
1441 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
1442 m68k-apollo-*) fmt=coff em=apollo ;;
fee3e248
ILT
1443 m68k-*-sysv4*) # must be before -sysv*
1444 fmt=elf em=svr4 ;;
1445 m68k-*-elf*) fmt=elf ;;
7be9a312 1446 m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
6ff87ead 1447 fmt=coff ;;
e7757ad0 1448 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
535cfd0f
ILT
1449 m68k-*-linux*aout*) fmt=aout em=linux ;;
1450 m68k-*-linux*) fmt=elf em=linux ;;
6ff87ead 1451 m68k-*-lynxos*) fmt=coff em=lynx ;;
e7757ad0 1452 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
76fb6d2f 1453 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
6ff87ead 1454 m68k-apple-aux*) fmt=coff em=aux ;;
2b37714a 1455 m68k-*-psos*) fmt=elf em=psos;;
e7757ad0 1456
6ff87ead
NC
1457 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
1458 m88k-*-coff*) fmt=coff ;;
e7757ad0
KR
1459
1460 # don't change em like *-*-bsd does
6ff87ead
NC
1461 mips-dec-netbsd*) fmt=elf endian=little ;;
1462 mips-dec-openbsd*) fmt=elf endian=little ;;
1463 mips-dec-bsd*) fmt=aout ;;
1464 mips-sony-bsd*) fmt=ecoff ;;
e7757ad0 1465 mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
6ff87ead
NC
1466 mips-*-ultrix*) fmt=ecoff endian=little ;;
1467 mips-*-osf*) fmt=ecoff endian=little ;;
1468 mips-*-ecoff*) fmt=ecoff ;;
1469 mips-*-ecoff*) fmt=ecoff ;;
1470 mips-*-irix6*) fmt=elf ;;
1471 mips-*-irix5*) fmt=elf ;;
1472 mips-*-irix*) fmt=ecoff ;;
1473 mips-*-lnews*) fmt=ecoff em=lnews ;;
1474 mips-*-riscos*) fmt=ecoff ;;
1475 mips-*-sysv*) fmt=ecoff ;;
fc984eb0 1476 mips-*-elf* | mips-*-rtems* | mips-*-linux* | mips-*-gnu* | mips-*-openbsd*)
6ff87ead 1477 fmt=elf ;;
ae1b99e4
JL
1478 mn10200-*-*) fmt=elf bfd_gas=yes ;;
1479 mn10300-*-*) fmt=elf bfd_gas=yes ;;
0ff513d9 1480 ppc-*-pe | ppc-*-cygwin32 | ppc-*-winnt*)
6ff87ead 1481 fmt=coff em=pe ;;
e7757ad0 1482 ppc-*-aix*) fmt=coff ;;
515c7142 1483 ppc-*-beos*) fmt=coff ;;
76fb6d2f 1484 ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
6ff87ead 1485 fmt=elf ;;
159e6ef8
MM
1486 ppc-*-linux*) fmt=elf
1487 case "$endian" in
6ff87ead 1488 big) ;;
159e6ef8
MM
1489 *) { echo "configure: error: Linux must be configured big endian" 1>&2; exit 1; } ;;
1490 esac
1491 ;;
1492 ppc-*-solaris*) fmt=elf
6ff87ead
NC
1493 if test ${this_target} = $target; then
1494 cat >> confdefs.h <<\EOF
1495#define TARGET_SOLARIS_COMMENT 1
1496EOF
1497
1498 fi
1499 if test x${endian} = xbig; then
1500 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
1501 fi
7be9a312 1502 ;;
6ff87ead 1503 ppc-*-rtems*) fmt=elf ;;
880b7429
KR
1504 ppc-*-macos* | ppc-*-mpw*)
1505 fmt=coff em=macos ;;
e7757ad0
KR
1506 ppc-*-netware*) fmt=elf em=ppcnw ;;
1507
df4021c1
DE
1508 sh-*-elf*) fmt=elf ;;
1509 sh-*-coff*) fmt=coff ;;
5e4e4739 1510 sh-*-rtems*) fmt=elf ;;
b11fb939 1511
5f757edc
ILT
1512 ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
1513 ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
76fb6d2f 1514 ns32k-pc532-openbsd*) fmt=aout em=nbsd532 ;;
e7757ad0 1515
7be9a312 1516 sparc-*-rtems*) fmt=aout ;;
e7757ad0 1517 sparc-*-sunos4*) fmt=aout em=sun3 ;;
df586de2 1518 sparc-*-aout | sparc*-*-vxworks*)
df4021c1 1519 fmt=aout em=sparcaout ;;
e7757ad0 1520 sparc-*-coff) fmt=coff ;;
2e013bb7
ILT
1521 sparc-*-linux*aout*) fmt=aout em=linux ;;
1522 sparc-*-linux*) fmt=elf em=linux ;;
e7757ad0
KR
1523 sparc-*-lynxos*) fmt=coff em=lynx ;;
1524 sparc-fujitsu-none) fmt=aout ;;
0b27ea39 1525 sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
e7757ad0
KR
1526 fmt=elf ;;
1527 sparc-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
76fb6d2f 1528 sparc-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
e7757ad0 1529
0e034c77
ILT
1530 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
1531 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
64556643 1532# start-sanitize-tic80
6ff87ead 1533 tic80-*-*) fmt=coff ;;
64556643 1534# end-sanitize-tic80
103dd764
DE
1535
1536# start-sanitize-sky
98b155a2 1537 dvp-*-*) fmt=elf bfd_gas=yes ;;
103dd764
DE
1538# end-sanitize-sky
1539
c6aa56bc 1540 v850-*-*) fmt=elf bfd_gas=yes ;;
53bdc990 1541
6ff87ead 1542# start-sanitize-v850e
53bdc990 1543 v850e-*-*) fmt=elf bfd_gas=yes ;;
60dc9fb2 1544 v850ea-*-*) fmt=elf bfd_gas=yes ;;
b5db0960 1545# end-sanitize-v850e
e7757ad0
KR
1546 vax-*-bsd* | vax-*-ultrix*)
1547 fmt=aout ;;
1548 vax-*-vms) fmt=vms ;;
1549
1550 z8k-*-coff | z8k-*-sim)
1551 fmt=coff ;;
1552
1553 w65-*-*) fmt=coff ;;
1554
1555 *-*-aout | *-*-scout)
1556 fmt=aout ;;
1557 *-*-nindy*)
1558 fmt=bout ;;
1559 *-*-bsd*)
1560 fmt=aout em=sun3 ;;
1561 *-*-generic) fmt=generic ;;
1562 *-*-xray | *-*-hms) fmt=coff ;;
1563 *-*-sim) fmt=coff ;;
1564 *-*-elf | *-*-sysv4* | *-*-solaris*)
6df07e7f 1565 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
e7757ad0
KR
1566 fmt=elf dev=yes ;;
1567 *-*-vxworks) fmt=aout ;;
1568 *-*-netware) fmt=elf ;;
1569 esac
1570
1571 case ${cpu_type}-${fmt} in
ed1ed9f9 1572 alpha*-*) bfd_gas=yes ;;
e7757ad0
KR
1573 arm-*) bfd_gas=yes ;;
1574 # not yet
1575 # i386-aout) bfd_gas=preferred ;;
1576 mips-*) bfd_gas=yes ;;
1577 ns32k-*) bfd_gas=yes ;;
1578 ppc-*) bfd_gas=yes ;;
1579 sparc-*) bfd_gas=yes ;;
1580 *-elf) bfd_gas=yes ;;
1581 *-ecoff) bfd_gas=yes ;;
1582 *-som) bfd_gas=yes ;;
1583 *) ;;
1584 esac
1585
5f757edc
ILT
1586# Other random stuff.
1587
ae09d880
ILT
1588 # do we need the opcodes library?
1589 case ${cpu_type} in
0e034c77 1590 vax | i386 | tic30)
7c2fadd1
ILT
1591 ;;
1592 *)
1593 need_opcodes=yes
f2e272e0
ILT
1594
1595 case "${enable_shared}" in
1596 yes) shared_opcodes=true ;;
1597 *opcodes*) shared_opcodes=true ;;
1598 *) shared_opcodes=false ;;
1599 esac
159e6ef8 1600 if test "${shared_opcodes}" = "true"; then
7c2fadd1
ILT
1601 # A shared libopcodes must be linked against libbfd.
1602 need_bfd=yes
1603 fi
1604 ;;
ae09d880
ILT
1605 esac
1606
5f757edc 1607 case ${cpu_type} in
374bdac7
DE
1608 m32r)
1609 case ${extra_objects} in
1610 *cgen.o*) ;;
1611 *) extra_objects="$extra_objects cgen.o"
374bdac7
DE
1612 cat >> confdefs.h <<\EOF
1613#define USING_CGEN 1
1614EOF
1615
1616 ;;
1617 esac
1618 ;;
1619
1c9dbb83
ILT
1620 m68k)
1621 case ${extra_objects} in
1622 *m68k-parse.o*) ;;
1623 *) extra_objects="$extra_objects m68k-parse.o" ;;
1624 esac
1625 ;;
efec4a28
DP
1626
1627 mips)
1628 echo ${extra_objects} | grep -s "itbl-parse.o"
1629 if test $? -ne 0 ; then
515c7142 1630 extra_objects="$extra_objects itbl-parse.o"
efec4a28
DP
1631 fi
1632
1633 echo ${extra_objects} | grep -s "itbl-lex.o"
1634 if test $? -ne 0 ; then
515c7142 1635 extra_objects="$extra_objects itbl-lex.o"
efec4a28
DP
1636 fi
1637
1638 echo ${extra_objects} | grep -s "itbl-ops.o"
1639 if test $? -ne 0 ; then
515c7142 1640 extra_objects="$extra_objects itbl-ops.o"
efec4a28
DP
1641 fi
1642 ;;
1643
2b09622a 1644 sparc)
e01e18a8
DE
1645 if test $this_target = $target ; then
1646 cat >> confdefs.h <<EOF
2b09622a
DE
1647#define DEFAULT_ARCH "${arch}"
1648EOF
1649
e01e18a8 1650 fi
2b09622a
DE
1651 ;;
1652
efec4a28
DP
1653 *)
1654 ;;
5f757edc
ILT
1655 esac
1656
e7757ad0
KR
1657# See if we really can support this configuration with the emulation code.
1658
1659 if test $this_target = $target ; then
1660 primary_bfd_gas=$bfd_gas
1661 obj_format=$fmt
e7757ad0
KR
1662 te_file=$em
1663
1664 if test $bfd_gas = no ; then
1665 # Can't support other configurations this way.
1666 break
1667 fi
1668 elif test $bfd_gas = no ; then
1669 # Can't support this configuration.
1670 break
1671 fi
1672
1673# From target name and format, produce a list of supported emulations.
1674
1675 case ${generic_target}-${fmt} in
1cb0d00d 1676 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
515c7142
ILT
1677 mips-*-linux*-*) case "$endian" in
1678 big) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1679 *) emulation="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
1680 esac ;;
1681 mips-*-lnews*-ecoff) ;;
e7757ad0 1682 mips-*-*-ecoff) case "$endian" in
1cb0d00d
KR
1683 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
1684 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
e7757ad0
KR
1685 esac ;;
1686 mips-*-*-elf) case "$endian" in
1cb0d00d
KR
1687 big) emulation="mipsbelf mipslelf mipself" ;;
1688 *) emulation="mipslelf mipsbelf mipself" ;;
515c7142
ILT
1689 # Uncommenting the next line will turn on support for i386 COFF
1690 # in any i386 ELF configuration. This probably doesn't work
1691 # correctly.
1692 # i386-*-*-elf) emulation="i386coff i386elf" ;;
e7757ad0
KR
1693 esac ;;
1694 esac
1695
1696 emulations="$emulations $emulation"
1697
e7757ad0 1698done
b11fb939
KR
1699
1700# Assign floating point type. Most processors with FP support
1701# IEEE FP. On those that don't support FP at all, usually IEEE
1702# is emulated.
1703case ${target_cpu} in
1704 vax | tahoe ) atof=${target_cpu} ;;
e7757ad0 1705 *) atof=ieee ;;
b11fb939
KR
1706esac
1707
1708case "${obj_format}" in
ba49e48d 1709 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
b11fb939
KR
1710esac
1711
1712
bf4bd1fc
ILT
1713if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
1714 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
b11fb939
KR
1715fi
1716
fb589130 1717if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
ba49e48d 1718 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
b11fb939
KR
1719fi
1720
e7757ad0 1721case ${user_bfd_gas}-${primary_bfd_gas} in
b11fb939
KR
1722 yes-yes | no-no)
1723 # We didn't override user's choice.
1724 ;;
1725 no-yes)
1726 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
1727 ;;
1728 no-preferred)
e7757ad0 1729 primary_bfd_gas=no
b11fb939
KR
1730 ;;
1731 *-preferred)
e7757ad0 1732 primary_bfd_gas=yes
b11fb939 1733 ;;
ba49e48d 1734 yes-*)
e7757ad0 1735 primary_bfd_gas=yes
ba49e48d 1736 ;;
b11fb939
KR
1737 -*)
1738 # User specified nothing.
1739 ;;
1740esac
1741
e7757ad0
KR
1742# Some COFF configurations want these random other flags set.
1743case ${obj_format} in
1744 coff)
1745 case ${target_cpu_type} in
1746 i386) cat >> confdefs.h <<\EOF
1747#define I386COFF 1
1748EOF
1749 ;;
1750 m68k) cat >> confdefs.h <<\EOF
1751#define M68KCOFF 1
1752EOF
1753 ;;
1754 m88k) cat >> confdefs.h <<\EOF
1755#define M88KCOFF 1
1756EOF
1757 ;;
1758 esac
1759 ;;
1760esac
1761
1762# Getting this done right is going to be a bitch. Each configuration specified
1763# with --enable-targets=... should be checked for environment, format, cpu, and
1764# bfd_gas setting.
1765#
1766# For each configuration, the necessary object file support code must be linked
1767# in. This might be only one, it might be up to four. The necessary emulation
1768# code needs to be provided, too.
1769#
1770# And then there's "--enable-targets=all"....
1771#
1772# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
1773
1774formats="${obj_format}"
1775emfiles=""
1776EMULATIONS=""
1777_gas_uniq_list="$emulations"
1778_gas_uniq_newlist=""
1779for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
1780 case $_gas_uniq_i in
1781 _gas_uniq_dummy) ;;
1782 *) case " $_gas_uniq_newlist " in
1783 *" $_gas_uniq_i "*) ;;
1784 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
1785 esac ;;
1786 esac
1787done
1788emulations=$_gas_uniq_newlist
1789
1790for em in . $emulations ; do
1791 case $em in
1792 .) continue ;;
1793 mipsbelf | mipslelf)
1794 fmt=elf file=mipself ;;
1795 mipsbecoff | mipslecoff)
1796 fmt=ecoff file=mipsecoff ;;
515c7142
ILT
1797 i386coff)
1798 fmt=coff file=i386coff ;;
1799 i386elf)
1800 fmt=elf file=i386elf ;;
e7757ad0
KR
1801 esac
1802 formats="$formats $fmt"
1803 emfiles="$emfiles e-$file.o"
1804 EMULATIONS="$EMULATIONS &$em,"
1805done
1806_gas_uniq_list="$formats"
1807_gas_uniq_newlist=""
1808for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
1809 case $_gas_uniq_i in
1810 _gas_uniq_dummy) ;;
1811 *) case " $_gas_uniq_newlist " in
1812 *" $_gas_uniq_i "*) ;;
1813 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
1814 esac ;;
1815 esac
1816done
1817formats=$_gas_uniq_newlist
1818
1819_gas_uniq_list="$emfiles"
1820_gas_uniq_newlist=""
1821for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
1822 case $_gas_uniq_i in
1823 _gas_uniq_dummy) ;;
1824 *) case " $_gas_uniq_newlist " in
1825 *" $_gas_uniq_i "*) ;;
1826 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
1827 esac ;;
1828 esac
1829done
1830emfiles=$_gas_uniq_newlist
1831
1832if test `set . $formats ; shift ; echo $#` -gt 1 ; then
1833 for fmt in $formats ; do
1834 case $fmt in
1835 aout) cat >> confdefs.h <<\EOF
1836#define OBJ_MAYBE_AOUT 1
1837EOF
1838 ;;
1839 bout) cat >> confdefs.h <<\EOF
1840#define OBJ_MAYBE_BOUT 1
1841EOF
1842 ;;
1843 coff) cat >> confdefs.h <<\EOF
1844#define OBJ_MAYBE_COFF 1
1845EOF
1846 ;;
1847 ecoff) cat >> confdefs.h <<\EOF
1848#define OBJ_MAYBE_ECOFF 1
1849EOF
1850 ;;
1851 elf) cat >> confdefs.h <<\EOF
1852#define OBJ_MAYBE_ELF 1
1853EOF
1854 ;;
1855 generic) cat >> confdefs.h <<\EOF
1856#define OBJ_MAYBE_GENERIC 1
1857EOF
1858 ;;
1859 hp300) cat >> confdefs.h <<\EOF
1860#define OBJ_MAYBE_HP300 1
1861EOF
1862 ;;
1863 ieee) cat >> confdefs.h <<\EOF
1864#define OBJ_MAYBE_IEEE 1
1865EOF
1866 ;;
1867 som) cat >> confdefs.h <<\EOF
1868#define OBJ_MAYBE_SOM 1
1869EOF
1870 ;;
1871 vms) cat >> confdefs.h <<\EOF
1872#define OBJ_MAYBE_VMS 1
1873EOF
1874 ;;
1875 esac
1876 extra_objects="$extra_objects obj-$fmt.o"
1877 done
1878 obj_format=multi
1879fi
1880if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
1881 te_file=multi
1882 extra_objects="$extra_objects $emfiles"
1883 DEFAULT_EMULATION=`set . $emulations ; echo $2`
1884 cat >> confdefs.h <<\EOF
1885#define USE_EMULATIONS 1
1886EOF
1887
1888fi
1889
1890cat >> confdefs.h <<EOF
1891#define EMULATIONS $EMULATIONS
1892EOF
1893
1894cat >> confdefs.h <<EOF
1895#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
1896EOF
1897
1898
bf4bd1fc 1899case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
318b02b6
KR
1900 yes-*-coff) need_bfd=yes ;;
1901 no-*-coff) need_bfd=yes
1902 cat >> confdefs.h <<\EOF
1903#define MANY_SEGMENTS 1
1904EOF
1905 ;;
1906esac
1907
b11fb939
KR
1908reject_dev_configs=yes
1909
1910case ${reject_dev_configs}-${dev} in
1911 yes-yes) # Oops.
ba49e48d 1912 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
b11fb939
KR
1913 ;;
1914esac
1915
b11fb939
KR
1916
1917
833c46e1
KR
1918
1919
1920
e7757ad0 1921case "${primary_bfd_gas}" in
b11fb939
KR
1922 yes) cat >> confdefs.h <<\EOF
1923#define BFD_ASSEMBLER 1
1924EOF
1925
1926 need_bfd=yes ;;
1927esac
1928
ae09d880
ILT
1929# do we need the opcodes library?
1930case "${need_opcodes}" in
7be9a312 1931yes)
e2b4bd2a 1932 OPCODES_LIB=../opcodes/libopcodes.la
7be9a312 1933 ;;
ae09d880
ILT
1934esac
1935
b11fb939 1936case "${need_bfd}" in
7be9a312 1937yes)
e2b4bd2a 1938 BFDLIB=../bfd/libbfd.la
7be9a312 1939 ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
7be9a312 1940 ;;
b11fb939
KR
1941esac
1942
1943
1944
1c9dbb83 1945
2e013bb7
ILT
1946
1947
b11fb939
KR
1948cat >> confdefs.h <<EOF
1949#define TARGET_ALIAS "${target_alias}"
1950EOF
1951
1952cat >> confdefs.h <<EOF
1953#define TARGET_CANONICAL "${target}"
1954EOF
1955
1956cat >> confdefs.h <<EOF
1957#define TARGET_CPU "${target_cpu}"
1958EOF
1959
1960cat >> confdefs.h <<EOF
1961#define TARGET_VENDOR "${target_vendor}"
1962EOF
1963
1964cat >> confdefs.h <<EOF
1965#define TARGET_OS "${target_os}"
1966EOF
1967
1968
330add8a
ILT
1969# Extract the first word of "gcc", so it can be a program name with args.
1970set dummy gcc; ac_word=$2
1971echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0e034c77 1972echo "configure:1973: checking for $ac_word" >&5
330add8a
ILT
1973if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1975else
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1978else
1979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1980 for ac_dir in $PATH; do
1981 test -z "$ac_dir" && ac_dir=.
1982 if test -f $ac_dir/$ac_word; then
1983 ac_cv_prog_CC="gcc"
1984 break
1985 fi
1986 done
1987 IFS="$ac_save_ifs"
330add8a
ILT
1988fi
1989fi
1990CC="$ac_cv_prog_CC"
1991if test -n "$CC"; then
1992 echo "$ac_t""$CC" 1>&6
1993else
1994 echo "$ac_t""no" 1>&6
1995fi
1996
d0352cbb
DE
1997if test -z "$CC"; then
1998 # Extract the first word of "cc", so it can be a program name with args.
1999set dummy cc; ac_word=$2
2000echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0e034c77 2001echo "configure:2002: checking for $ac_word" >&5
d0352cbb
DE
2002if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2004else
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2007else
2008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2009 ac_prog_rejected=no
2010 for ac_dir in $PATH; do
2011 test -z "$ac_dir" && ac_dir=.
2012 if test -f $ac_dir/$ac_word; then
2013 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2014 ac_prog_rejected=yes
2015 continue
2016 fi
2017 ac_cv_prog_CC="cc"
2018 break
2019 fi
2020 done
2021 IFS="$ac_save_ifs"
2022if test $ac_prog_rejected = yes; then
2023 # We found a bogon in the path, so make sure we never use it.
2024 set dummy $ac_cv_prog_CC
2025 shift
2026 if test $# -gt 0; then
2027 # We chose a different compiler from the bogus one.
2028 # However, it has the same basename, so the bogon will be chosen
2029 # first if we set CC to just the basename; use the full file name.
2030 shift
2031 set dummy "$ac_dir/$ac_word" "$@"
2032 shift
2033 ac_cv_prog_CC="$@"
2034 fi
2035fi
2036fi
2037fi
2038CC="$ac_cv_prog_CC"
2039if test -n "$CC"; then
2040 echo "$ac_t""$CC" 1>&6
2041else
2042 echo "$ac_t""no" 1>&6
2043fi
2044
2045 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2046fi
b11fb939 2047
c6c7035c 2048echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
0e034c77 2049echo "configure:2050: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
c6c7035c
MM
2050
2051ac_ext=c
2052# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2053ac_cpp='$CPP $CPPFLAGS'
2054ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2055ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2056cross_compiling=$ac_cv_prog_cc_cross
2057
2058cat > conftest.$ac_ext <<EOF
0e034c77 2059#line 2060 "configure"
c6c7035c
MM
2060#include "confdefs.h"
2061main(){return(0);}
2062EOF
0e034c77 2063if { (eval echo configure:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
c6c7035c
MM
2064 ac_cv_prog_cc_works=yes
2065 # If we can't run a trivial program, we are probably using a cross compiler.
2066 if (./conftest; exit) 2>/dev/null; then
2067 ac_cv_prog_cc_cross=no
2068 else
2069 ac_cv_prog_cc_cross=yes
2070 fi
2071else
2072 echo "configure: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2074 ac_cv_prog_cc_works=no
2075fi
2076rm -fr conftest*
2077
2078echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2079if test $ac_cv_prog_cc_works = no; then
2080 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2081fi
2082echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
0e034c77 2083echo "configure:2084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
c6c7035c
MM
2084echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2085cross_compiling=$ac_cv_prog_cc_cross
2086
330add8a 2087echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
0e034c77 2088echo "configure:2089: checking whether we are using GNU C" >&5
330add8a
ILT
2089if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2091else
2092 cat > conftest.c <<EOF
b11fb939 2093#ifdef __GNUC__
330add8a 2094 yes;
b11fb939
KR
2095#endif
2096EOF
0e034c77 2097if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
330add8a
ILT
2098 ac_cv_prog_gcc=yes
2099else
2100 ac_cv_prog_gcc=no
2101fi
2102fi
1c9dbb83 2103
330add8a 2104echo "$ac_t""$ac_cv_prog_gcc" 1>&6
c6c7035c 2105
330add8a 2106if test $ac_cv_prog_gcc = yes; then
b11fb939 2107 GCC=yes
c6c7035c
MM
2108 ac_test_CFLAGS="${CFLAGS+set}"
2109 ac_save_CFLAGS="$CFLAGS"
2110 CFLAGS=
2111 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
0e034c77 2112echo "configure:2113: checking whether ${CC-cc} accepts -g" >&5
c6c7035c 2113if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
330add8a 2114 echo $ac_n "(cached) $ac_c" 1>&6
b11fb939 2115else
330add8a
ILT
2116 echo 'void f(){}' > conftest.c
2117if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
c6c7035c 2118 ac_cv_prog_cc_g=yes
330add8a 2119else
c6c7035c 2120 ac_cv_prog_cc_g=no
b11fb939
KR
2121fi
2122rm -f conftest*
2123
330add8a 2124fi
1c9dbb83 2125
c6c7035c
MM
2126echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2127 if test "$ac_test_CFLAGS" = set; then
2128 CFLAGS="$ac_save_CFLAGS"
2129 elif test $ac_cv_prog_cc_g = yes; then
2130 CFLAGS="-g -O2"
2131 else
2132 CFLAGS="-O2"
330add8a
ILT
2133 fi
2134else
2135 GCC=
2136 test "${CFLAGS+set}" = set || CFLAGS="-g"
2137fi
2138
b11fb939 2139
e2b4bd2a
ILT
2140for ac_prog in 'bison -y' byacc
2141do
2142# Extract the first word of "$ac_prog", so it can be a program name with args.
2143set dummy $ac_prog; ac_word=$2
2144echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0e034c77 2145echo "configure:2146: checking for $ac_word" >&5
e2b4bd2a
ILT
2146if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2148else
2149 if test -n "$YACC"; then
2150 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2151else
2152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2153 for ac_dir in $PATH; do
2154 test -z "$ac_dir" && ac_dir=.
2155 if test -f $ac_dir/$ac_word; then
2156 ac_cv_prog_YACC="$ac_prog"
2157 break
2158 fi
2159 done
2160 IFS="$ac_save_ifs"
2161fi
2162fi
2163YACC="$ac_cv_prog_YACC"
2164if test -n "$YACC"; then
2165 echo "$ac_t""$YACC" 1>&6
2166else
2167 echo "$ac_t""no" 1>&6
2168fi
2169
2170test -n "$YACC" && break
2171done
2172test -n "$YACC" || YACC="yacc"
2173
2174# Extract the first word of "flex", so it can be a program name with args.
2175set dummy flex; ac_word=$2
2176echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0e034c77 2177echo "configure:2178: checking for $ac_word" >&5
e2b4bd2a
ILT
2178if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2180else
2181 if test -n "$LEX"; then
2182 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2183else
2184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2185 for ac_dir in $PATH; do
2186 test -z "$ac_dir" && ac_dir=.
2187 if test -f $ac_dir/$ac_word; then
2188 ac_cv_prog_LEX="flex"
2189 break
2190 fi
2191 done
2192 IFS="$ac_save_ifs"
2193 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2194fi
2195fi
2196LEX="$ac_cv_prog_LEX"
2197if test -n "$LEX"; then
2198 echo "$ac_t""$LEX" 1>&6
2199else
2200 echo "$ac_t""no" 1>&6
2201fi
2202
2203if test -z "$LEXLIB"
2204then
2205 case "$LEX" in
2206 flex*) ac_lib=fl ;;
2207 *) ac_lib=l ;;
2208 esac
2209 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
0e034c77 2210echo "configure:2211: checking for yywrap in -l$ac_lib" >&5
e2b4bd2a
ILT
2211ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2214else
2215 ac_save_LIBS="$LIBS"
2216LIBS="-l$ac_lib $LIBS"
2217cat > conftest.$ac_ext <<EOF
0e034c77 2218#line 2219 "configure"
e2b4bd2a
ILT
2219#include "confdefs.h"
2220/* Override any gcc2 internal prototype to avoid an error. */
2221/* We use char because int might match the return type of a gcc2
2222 builtin and then its argument prototype would still apply. */
2223char yywrap();
2224
2225int main() {
2226yywrap()
2227; return 0; }
2228EOF
0e034c77 2229if { (eval echo configure:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
e2b4bd2a
ILT
2230 rm -rf conftest*
2231 eval "ac_cv_lib_$ac_lib_var=yes"
2232else
2233 echo "configure: failed program was:" >&5
2234 cat conftest.$ac_ext >&5
2235 rm -rf conftest*
2236 eval "ac_cv_lib_$ac_lib_var=no"
2237fi
2238rm -f conftest*
2239LIBS="$ac_save_LIBS"
2240
2241fi
2242if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2243 echo "$ac_t""yes" 1>&6
2244 LEXLIB="-l$ac_lib"
2245else
2246 echo "$ac_t""no" 1>&6
2247fi
2248
2249fi
2250
833c46e1 2251echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
0e034c77 2252echo "configure:2253: checking how to run the C preprocessor" >&5
b11fb939
KR
2253# On Suns, sometimes $CPP names a directory.
2254if test -n "$CPP" && test -d "$CPP"; then
2255 CPP=
2256fi
2257if test -z "$CPP"; then
833c46e1
KR
2258if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
b11fb939
KR
2260else
2261 # This must be in double quotes, not single quotes, because CPP may get
2262 # substituted into the Makefile and "${CC-cc}" will confuse make.
2263 CPP="${CC-cc} -E"
2264 # On the NeXT, cc -E runs the code through the compiler's parser,
2265 # not just through cpp.
28d3e4a3 2266 cat > conftest.$ac_ext <<EOF
0e034c77 2267#line 2268 "configure"
b11fb939 2268#include "confdefs.h"
f2889110 2269#include <assert.h>
b11fb939
KR
2270Syntax Error
2271EOF
d0352cbb 2272ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0e034c77 2273{ (eval echo configure:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
bf111c9f 2274ac_err=`grep -v '^ *+' conftest.out`
b11fb939
KR
2275if test -z "$ac_err"; then
2276 :
2277else
fb589130 2278 echo "$ac_err" >&5
c6c7035c
MM
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
b11fb939
KR
2281 rm -rf conftest*
2282 CPP="${CC-cc} -E -traditional-cpp"
28d3e4a3 2283 cat > conftest.$ac_ext <<EOF
0e034c77 2284#line 2285 "configure"
b11fb939 2285#include "confdefs.h"
f2889110 2286#include <assert.h>
b11fb939
KR
2287Syntax Error
2288EOF
d0352cbb 2289ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0e034c77 2290{ (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
bf111c9f 2291ac_err=`grep -v '^ *+' conftest.out`
b11fb939
KR
2292if test -z "$ac_err"; then
2293 :
2294else
fb589130 2295 echo "$ac_err" >&5
c6c7035c
MM
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
b11fb939
KR
2298 rm -rf conftest*
2299 CPP=/lib/cpp
2300fi
2301rm -f conftest*
2302fi
2303rm -f conftest*
2304 ac_cv_prog_CPP="$CPP"
2305fi
e63c594d
FF
2306 CPP="$ac_cv_prog_CPP"
2307else
2308 ac_cv_prog_CPP="$CPP"
b11fb939 2309fi
833c46e1 2310echo "$ac_t""$CPP" 1>&6
fb589130 2311
e2b4bd2a 2312echo $ac_n "checking lex output file root""... $ac_c" 1>&6
0e034c77 2313echo "configure:2314: checking lex output file root" >&5
e2b4bd2a 2314if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
833c46e1 2315 echo $ac_n "(cached) $ac_c" 1>&6
b11fb939 2316else
e2b4bd2a
ILT
2317 # The minimal lex program is just a single line: %%. But some broken lexes
2318# (Solaris, I think it was) want two %% lines, so accommodate them.
2319echo '%%
2320%%' | $LEX
2321if test -f lex.yy.c; then
2322 ac_cv_prog_lex_root=lex.yy
2323elif test -f lexyy.c; then
2324 ac_cv_prog_lex_root=lexyy
2325else
2326 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2327fi
2328fi
2329
2330echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2331LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2332
2333echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
0e034c77 2334echo "configure:2335: checking whether yytext is a pointer" >&5
e2b4bd2a
ILT
2335if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2337else
2338 # POSIX says lex can declare yytext either as a pointer or an array; the
2339# default is implementation-dependent. Figure out which it is, since
2340# not all implementations provide the %pointer and %array declarations.
2341ac_cv_prog_lex_yytext_pointer=no
2342echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2343ac_save_LIBS="$LIBS"
2344LIBS="$LIBS $LEXLIB"
2345cat > conftest.$ac_ext <<EOF
0e034c77 2346#line 2347 "configure"
b11fb939 2347#include "confdefs.h"
e2b4bd2a
ILT
2348`cat $LEX_OUTPUT_ROOT.c`
2349int main() {
2350
2351; return 0; }
b11fb939 2352EOF
0e034c77 2353if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
b11fb939 2354 rm -rf conftest*
e2b4bd2a 2355 ac_cv_prog_lex_yytext_pointer=yes
b11fb939 2356else
c6c7035c
MM
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
b11fb939
KR
2359fi
2360rm -f conftest*
e2b4bd2a
ILT
2361LIBS="$ac_save_LIBS"
2362rm -f "${LEX_OUTPUT_ROOT}.c"
2363
b11fb939 2364fi
e2b4bd2a
ILT
2365
2366echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2367if test $ac_cv_prog_lex_yytext_pointer = yes; then
2368 cat >> confdefs.h <<\EOF
2369#define YYTEXT_POINTER 1
b11fb939 2370EOF
e2b4bd2a 2371
b11fb939 2372fi
b11fb939 2373
b11fb939 2374
e2b4bd2a 2375echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
0e034c77 2376echo "configure:2377: checking whether to enable maintainer-specific portions of Makefiles" >&5
e2b4bd2a
ILT
2377 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2378if test "${enable_maintainer_mode+set}" = set; then
2379 enableval="$enable_maintainer_mode"
2380 USE_MAINTAINER_MODE=$enableval
ba49e48d 2381else
e2b4bd2a 2382 USE_MAINTAINER_MODE=no
bf111c9f 2383fi
bf111c9f 2384
e2b4bd2a
ILT
2385 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2386 if test $USE_MAINTAINER_MODE = yes; then
2387 MAINT=
2388 else
2389 MAINT='#M#'
2390 fi
2391
2392
e42b2520 2393echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
0e034c77 2394echo "configure:2395: checking for Cygwin32 environment" >&5
e42b2520
RS
2395if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2397else
2398 cat > conftest.$ac_ext <<EOF
0e034c77 2399#line 2400 "configure"
e42b2520
RS
2400#include "confdefs.h"
2401
2402int main() {
6cc7a938 2403return __CYGWIN32__;
e42b2520
RS
2404; return 0; }
2405EOF
0e034c77 2406if { (eval echo configure:2407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
e42b2520
RS
2407 rm -rf conftest*
2408 am_cv_cygwin32=yes
2409else
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2412 rm -rf conftest*
2413 am_cv_cygwin32=no
2414fi
2415rm -f conftest*
2416rm -f conftest*
2417fi
2418
2419echo "$ac_t""$am_cv_cygwin32" 1>&6
2420CYGWIN32=
2421test "$am_cv_cygwin32" = yes && CYGWIN32=yes
6cc7a938 2422echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
0e034c77 2423echo "configure:2424: checking for Mingw32 environment" >&5
6cc7a938
ILT
2424if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2426else
2427 cat > conftest.$ac_ext <<EOF
0e034c77 2428#line 2429 "configure"
6cc7a938
ILT
2429#include "confdefs.h"
2430
2431int main() {
2432return __MINGW32__;
2433; return 0; }
2434EOF
0e034c77 2435if { (eval echo configure:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6cc7a938
ILT
2436 rm -rf conftest*
2437 am_cv_mingw32=yes
2438else
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2441 rm -rf conftest*
2442 am_cv_mingw32=no
2443fi
2444rm -f conftest*
2445rm -f conftest*
2446fi
2447
2448echo "$ac_t""$am_cv_mingw32" 1>&6
2449MINGW32=
2450test "$am_cv_mingw32" = yes && MINGW32=yes
2451
e2b4bd2a 2452
e42b2520 2453echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
0e034c77 2454echo "configure:2455: checking for executable suffix" >&5
e42b2520
RS
2455if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2457else
6cc7a938
ILT
2458
2459if test "$CYGWIN32" = yes -o "$MINGW32" = yes; then
e42b2520
RS
2460am_cv_exeext=.exe
2461else
2462cat > am_c_test.c << 'EOF'
2463int main() {
2464/* Nothing needed here */
2465}
2466EOF
2467${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
e2b4bd2a 2468am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
e42b2520
RS
2469rm -f am_c_test*
2470fi
2471
2472test x"${am_cv_exeext}" = x && am_cv_exeext=no
2473fi
2474EXEEXT=""
2475test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
2476echo "$ac_t""${am_cv_exeext}" 1>&6
2477
2478
e2b4bd2a
ILT
2479for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
2480do
2481ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2482echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0e034c77 2483echo "configure:2484: checking for $ac_hdr" >&5
e2b4bd2a
ILT
2484if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2486else
2487 cat > conftest.$ac_ext <<EOF
0e034c77 2488#line 2489 "configure"
e2b4bd2a
ILT
2489#include "confdefs.h"
2490#include <$ac_hdr>
2491EOF
2492ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0e034c77 2493{ (eval echo configure:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
e2b4bd2a
ILT
2494ac_err=`grep -v '^ *+' conftest.out`
2495if test -z "$ac_err"; then
2496 rm -rf conftest*
2497 eval "ac_cv_header_$ac_safe=yes"
2498else
2499 echo "$ac_err" >&5
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2502 rm -rf conftest*
2503 eval "ac_cv_header_$ac_safe=no"
2504fi
2505rm -f conftest*
2506fi
2507if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2508 echo "$ac_t""yes" 1>&6
2509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2510 cat >> confdefs.h <<EOF
2511#define $ac_tr_hdr 1
2512EOF
2513
2514else
2515 echo "$ac_t""no" 1>&6
2516fi
2517done
2518
2519
2520# Put this here so that autoconf's "cross-compiling" message doesn't confuse
2521# people who are not cross-compiling but are compiling cross-assemblers.
2522echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
0e034c77 2523echo "configure:2524: checking whether compiling a cross-assembler" >&5
e2b4bd2a
ILT
2524if test "${host}" = "${target}"; then
2525 cross_gas=no
2526else
2527 cross_gas=yes
2528 cat >> confdefs.h <<\EOF
2529#define CROSS_COMPILE 1
2530EOF
2531
2532fi
2533echo "$ac_t""$cross_gas" 1>&6
2534
b11fb939
KR
2535# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2536# for constant arguments. Useless!
833c46e1 2537echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
0e034c77 2538echo "configure:2539: checking for working alloca.h" >&5
833c46e1
KR
2539if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
b11fb939 2541else
28d3e4a3 2542 cat > conftest.$ac_ext <<EOF
0e034c77 2543#line 2544 "configure"
b11fb939
KR
2544#include "confdefs.h"
2545#include <alloca.h>
c6c7035c 2546int main() {
b11fb939
KR
2547char *p = alloca(2 * sizeof(int));
2548; return 0; }
2549EOF
0e034c77 2550if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
b11fb939
KR
2551 rm -rf conftest*
2552 ac_cv_header_alloca_h=yes
2553else
c6c7035c
MM
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
b11fb939
KR
2556 rm -rf conftest*
2557 ac_cv_header_alloca_h=no
2558fi
2559rm -f conftest*
b11fb939 2560fi
1c9dbb83 2561
833c46e1 2562echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
b11fb939
KR
2563if test $ac_cv_header_alloca_h = yes; then
2564 cat >> confdefs.h <<\EOF
2565#define HAVE_ALLOCA_H 1
2566EOF
2567
2568fi
2569
833c46e1 2570echo $ac_n "checking for alloca""... $ac_c" 1>&6
0e034c77 2571echo "configure:2572: checking for alloca" >&5
c6c7035c 2572if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
833c46e1 2573 echo $ac_n "(cached) $ac_c" 1>&6
b11fb939 2574else
28d3e4a3 2575 cat > conftest.$ac_ext <<EOF
0e034c77 2576#line 2577 "configure"
b11fb939
KR
2577#include "confdefs.h"
2578
2579#ifdef __GNUC__
2580# define alloca __builtin_alloca
2581#else
2582# if HAVE_ALLOCA_H
2583# include <alloca.h>
2584# else
2585# ifdef _AIX
2586 #pragma alloca
2587# else
2588# ifndef alloca /* predefined by HP cc +Olibcalls */
2589char *alloca ();
2590# endif
2591# endif
2592# endif
2593#endif
2594
c6c7035c 2595int main() {
b11fb939
KR
2596char *p = (char *) alloca(1);
2597; return 0; }
2598EOF
0e034c77 2599if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
b11fb939 2600 rm -rf conftest*
c6c7035c 2601 ac_cv_func_alloca_works=yes
b11fb939 2602else
c6c7035c
MM
2603 echo "configure: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
b11fb939 2605 rm -rf conftest*
c6c7035c 2606 ac_cv_func_alloca_works=no
b11fb939
KR
2607fi
2608rm -f conftest*
b11fb939 2609fi
1c9dbb83 2610
c6c7035c
MM
2611echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2612if test $ac_cv_func_alloca_works = yes; then
b11fb939
KR
2613 cat >> confdefs.h <<\EOF
2614#define HAVE_ALLOCA 1
2615EOF
2616
2617fi
2618
c6c7035c 2619if test $ac_cv_func_alloca_works = no; then
b11fb939
KR
2620 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2621 # that cause trouble. Some versions do not even contain alloca or
2622 # contain a buggy version. If you still want to use their alloca,
2623 # use ar to extract alloca.o from them instead of compiling alloca.c.
2624 ALLOCA=alloca.o
2625 cat >> confdefs.h <<\EOF
2626#define C_ALLOCA 1
2627EOF
2628
2629
833c46e1 2630echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
0e034c77 2631echo "configure:2632: checking whether alloca needs Cray hooks" >&5
833c46e1
KR
2632if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
b11fb939 2634else
28d3e4a3 2635 cat > conftest.$ac_ext <<EOF
0e034c77 2636#line 2637 "configure"
b11fb939
KR
2637#include "confdefs.h"
2638#if defined(CRAY) && ! defined(CRAY2)
2639webecray
2640#else
2641wenotbecray
2642#endif
2643
2644EOF
28d3e4a3 2645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
fb589130 2646 egrep "webecray" >/dev/null 2>&1; then
b11fb939
KR
2647 rm -rf conftest*
2648 ac_cv_os_cray=yes
2649else
2650 rm -rf conftest*
2651 ac_cv_os_cray=no
2652fi
2653rm -f conftest*
2654
2655fi
1c9dbb83 2656
833c46e1 2657echo "$ac_t""$ac_cv_os_cray" 1>&6
b11fb939 2658if test $ac_cv_os_cray = yes; then
833c46e1
KR
2659for ac_func in _getb67 GETB67 getb67; do
2660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0e034c77 2661echo "configure:2662: checking for $ac_func" >&5
833c46e1
KR
2662if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
b11fb939 2664else
28d3e4a3 2665 cat > conftest.$ac_ext <<EOF
0e034c77 2666#line 2667 "configure"
b11fb939 2667#include "confdefs.h"
833c46e1
KR
2668/* System header to define __stub macros and hopefully few prototypes,
2669 which can conflict with char $ac_func(); below. */
2670#include <assert.h>
f1698cb7 2671/* Override any gcc2 internal prototype to avoid an error. */
df586de2
ILT
2672/* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
1c9dbb83 2674char $ac_func();
f1698cb7 2675
c6c7035c 2676int main() {
b11fb939
KR
2677
2678/* The GNU C library defines this for functions which it implements
2679 to always fail with ENOSYS. Some functions are actually named
2680 something starting with __ and the normal name is an alias. */
833c46e1 2681#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b11fb939
KR
2682choke me
2683#else
833c46e1 2684$ac_func();
b11fb939
KR
2685#endif
2686
2687; return 0; }
2688EOF
0e034c77 2689if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
b11fb939 2690 rm -rf conftest*
833c46e1 2691 eval "ac_cv_func_$ac_func=yes"
b11fb939 2692else
c6c7035c
MM
2693 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
b11fb939 2695 rm -rf conftest*
833c46e1 2696 eval "ac_cv_func_$ac_func=no"
b11fb939
KR
2697fi
2698rm -f conftest*
7d0f8249 2699fi
c6c7035c 2700
833c46e1
KR
2701if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
2703 cat >> confdefs.h <<EOF
2704#define CRAY_STACKSEG_END $ac_func
b11fb939
KR
2705EOF
2706
833c46e1 2707 break
b11fb939 2708else
833c46e1 2709 echo "$ac_t""no" 1>&6
b11fb939
KR
2710fi
2711
833c46e1 2712done
b11fb939
KR
2713fi
2714
833c46e1 2715echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
0e034c77 2716echo "configure:2717: checking stack direction for C alloca" >&5
833c46e1
KR
2717if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
b11fb939
KR
2719else
2720 if test "$cross_compiling" = yes; then
bf111c9f 2721 ac_cv_c_stack_direction=0
b11fb939 2722else
c6c7035c 2723 cat > conftest.$ac_ext <<EOF
0e034c77 2724#line 2725 "configure"
b11fb939
KR
2725#include "confdefs.h"
2726find_stack_direction ()
2727{
2728 static char *addr = 0;
2729 auto char dummy;
2730 if (addr == 0)
2731 {
2732 addr = &dummy;
2733 return find_stack_direction ();
2734 }
2735 else
2736 return (&dummy > addr) ? 1 : -1;
2737}
2738main ()
2739{
2740 exit (find_stack_direction() < 0);
2741}
2742EOF
0e034c77 2743if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
c6c7035c 2744then
b11fb939
KR
2745 ac_cv_c_stack_direction=1
2746else
c6c7035c
MM
2747 echo "configure: failed program was:" >&5
2748 cat conftest.$ac_ext >&5
2749 rm -fr conftest*
b11fb939
KR
2750 ac_cv_c_stack_direction=-1
2751fi
7d0f8249 2752rm -fr conftest*
64556643
FF
2753fi
2754
c6c7035c
MM
2755fi
2756
833c46e1 2757echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
b11fb939
KR
2758cat >> confdefs.h <<EOF
2759#define STACK_DIRECTION $ac_cv_c_stack_direction
2760EOF
2761
2762fi
2763
833c46e1 2764echo $ac_n "checking for inline""... $ac_c" 1>&6
0e034c77 2765echo "configure:2766: checking for inline" >&5
833c46e1
KR
2766if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
b11fb939 2768else
833c46e1
KR
2769 ac_cv_c_inline=no
2770for ac_kw in inline __inline__ __inline; do
2771 cat > conftest.$ac_ext <<EOF
0e034c77 2772#line 2773 "configure"
b11fb939
KR
2773#include "confdefs.h"
2774
c6c7035c 2775int main() {
833c46e1 2776} $ac_kw foo() {
b11fb939
KR
2777; return 0; }
2778EOF
0e034c77 2779if { (eval echo configure:2780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b11fb939 2780 rm -rf conftest*
833c46e1 2781 ac_cv_c_inline=$ac_kw; break
c6c7035c
MM
2782else
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
b11fb939
KR
2785fi
2786rm -f conftest*
833c46e1 2787done
b11fb939
KR
2788
2789fi
1c9dbb83 2790
833c46e1
KR
2791echo "$ac_t""$ac_cv_c_inline" 1>&6
2792case "$ac_cv_c_inline" in
2793 inline | yes) ;;
2794 no) cat >> confdefs.h <<\EOF
2795#define inline
2796EOF
2797 ;;
2798 *) cat >> confdefs.h <<EOF
2799#define inline $ac_cv_c_inline
2800EOF
2801 ;;
2802esac
b11fb939
KR
2803
2804
ba49e48d
KR
2805# VMS doesn't have unlink.
2806for ac_func in unlink remove
b9419dd2 2807do
833c46e1 2808echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0e034c77 2809echo "configure:2810: checking for $ac_func" >&5
833c46e1
KR
2810if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
28d3e4a3
KR
2812else
2813 cat > conftest.$ac_ext <<EOF
0e034c77 2814#line 2815 "configure"
28d3e4a3 2815#include "confdefs.h"
833c46e1
KR
2816/* System header to define __stub macros and hopefully few prototypes,
2817 which can conflict with char $ac_func(); below. */
2818#include <assert.h>
f1698cb7 2819/* Override any gcc2 internal prototype to avoid an error. */
df586de2
ILT
2820/* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
1c9dbb83 2822char $ac_func();
f1698cb7 2823
c6c7035c 2824int main() {
28d3e4a3
KR
2825
2826/* The GNU C library defines this for functions which it implements
2827 to always fail with ENOSYS. Some functions are actually named
2828 something starting with __ and the normal name is an alias. */
b9419dd2 2829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28d3e4a3
KR
2830choke me
2831#else
f1698cb7 2832$ac_func();
28d3e4a3
KR
2833#endif
2834
2835; return 0; }
2836EOF
0e034c77 2837if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
28d3e4a3 2838 rm -rf conftest*
b9419dd2 2839 eval "ac_cv_func_$ac_func=yes"
28d3e4a3 2840else
c6c7035c
MM
2841 echo "configure: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
28d3e4a3 2843 rm -rf conftest*
b9419dd2 2844 eval "ac_cv_func_$ac_func=no"
28d3e4a3
KR
2845fi
2846rm -f conftest*
7d0f8249 2847fi
c6c7035c 2848
b9419dd2 2849if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
833c46e1 2850 echo "$ac_t""yes" 1>&6
1c9dbb83 2851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
b9419dd2
KR
2852 cat >> confdefs.h <<EOF
2853#define $ac_tr_func 1
28d3e4a3 2854EOF
b9419dd2 2855 break
28d3e4a3 2856else
833c46e1 2857 echo "$ac_t""no" 1>&6
28d3e4a3 2858fi
b9419dd2 2859done
28d3e4a3
KR
2860
2861
e63c594d
FF
2862# Some systems don't have sbrk().
2863for ac_func in sbrk
2864do
2865echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0e034c77 2866echo "configure:2867: checking for $ac_func" >&5
e63c594d
FF
2867if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2869else
2870 cat > conftest.$ac_ext <<EOF
0e034c77 2871#line 2872 "configure"
e63c594d
FF
2872#include "confdefs.h"
2873/* System header to define __stub macros and hopefully few prototypes,
2874 which can conflict with char $ac_func(); below. */
2875#include <assert.h>
2876/* Override any gcc2 internal prototype to avoid an error. */
df586de2
ILT
2877/* We use char because int might match the return type of a gcc2
2878 builtin and then its argument prototype would still apply. */
1c9dbb83 2879char $ac_func();
e63c594d 2880
c6c7035c 2881int main() {
e63c594d
FF
2882
2883/* The GNU C library defines this for functions which it implements
2884 to always fail with ENOSYS. Some functions are actually named
2885 something starting with __ and the normal name is an alias. */
2886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2887choke me
2888#else
2889$ac_func();
2890#endif
2891
2892; return 0; }
2893EOF
0e034c77 2894if { (eval echo configure:2895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
e63c594d
FF
2895 rm -rf conftest*
2896 eval "ac_cv_func_$ac_func=yes"
2897else
c6c7035c
MM
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
e63c594d
FF
2900 rm -rf conftest*
2901 eval "ac_cv_func_$ac_func=no"
2902fi
2903rm -f conftest*
7d0f8249 2904fi
c6c7035c 2905
e63c594d
FF
2906if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2907 echo "$ac_t""yes" 1>&6
1c9dbb83 2908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
e63c594d
FF
2909 cat >> confdefs.h <<EOF
2910#define $ac_tr_func 1
2911EOF
2912
2913else
2914 echo "$ac_t""no" 1>&6
2915fi
2916done
2917
2918
b11fb939
KR
2919# Some non-ANSI preprocessors botch requoting inside strings. That's bad
2920# enough, but on some of those systems, the assert macro relies on requoting
2921# working properly!
833c46e1 2922echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
0e034c77 2923echo "configure:2924: checking for working assert macro" >&5
833c46e1
KR
2924if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
fb589130 2926else
28d3e4a3 2927 cat > conftest.$ac_ext <<EOF
0e034c77 2928#line 2929 "configure"
b11fb939
KR
2929#include "confdefs.h"
2930#include <assert.h>
2931#include <stdio.h>
c6c7035c 2932int main() {
b11fb939
KR
2933
2934/* check for requoting problems */
2935static int a, b, c, d;
2936static char *s;
2937assert (!strcmp(s, "foo bar baz quux"));
2938/* check for newline handling */
2939assert (a == b
2940 || c == d);
2941
2942; return 0; }
2943EOF
0e034c77 2944if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
fb589130
KR
2945 rm -rf conftest*
2946 gas_cv_assert_ok=yes
b11fb939 2947else
c6c7035c
MM
2948 echo "configure: failed program was:" >&5
2949 cat conftest.$ac_ext >&5
b11fb939 2950 rm -rf conftest*
fb589130 2951 gas_cv_assert_ok=no
b11fb939
KR
2952fi
2953rm -f conftest*
fb589130 2954fi
833c46e1 2955echo "$ac_t""$gas_cv_assert_ok" 1>&6
fb589130
KR
2956test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
2957#define BROKEN_ASSERT 1
2958EOF
2959
b11fb939 2960
bf111c9f 2961
b11fb939
KR
2962# On some systems, the system header files may not declare malloc, realloc,
2963# and free. There are places where gas needs these functions to have been
2964# declared -- such as when taking their addresses.
bf111c9f 2965gas_test_headers="
b11fb939
KR
2966#ifdef HAVE_MEMORY_H
2967#include <memory.h>
2968#endif
2969#ifdef HAVE_STRING_H
2970#include <string.h>
5cece526
ILT
2971#else
2972#ifdef HAVE_STRINGS_H
2973#include <strings.h>
2974#endif
b11fb939
KR
2975#endif
2976#ifdef HAVE_STDLIB_H
2977#include <stdlib.h>
2978#endif
2979#ifdef HAVE_UNISTD_H
2980#include <unistd.h>
2981#endif
bf111c9f 2982"
b11fb939 2983
5cece526 2984echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
0e034c77 2985echo "configure:2986: checking whether declaration is required for strstr" >&5
5cece526
ILT
2986if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2988else
2989 cat > conftest.$ac_ext <<EOF
0e034c77 2990#line 2991 "configure"
5cece526
ILT
2991#include "confdefs.h"
2992$gas_test_headers
c6c7035c 2993int main() {
5cece526
ILT
2994
2995typedef char *(*f)();
2996f x;
2997x = (f) strstr;
2998
2999; return 0; }
3000EOF
0e034c77 3001if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5cece526
ILT
3002 rm -rf conftest*
3003 gas_cv_decl_needed_strstr=no
3004else
c6c7035c
MM
3005 echo "configure: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
5cece526
ILT
3007 rm -rf conftest*
3008 gas_cv_decl_needed_strstr=yes
3009fi
3010rm -f conftest*
5cece526
ILT
3011fi
3012echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
3013test $gas_cv_decl_needed_strstr = no || {
3014 cat >> confdefs.h <<\EOF
3015#define NEED_DECLARATION_STRSTR 1
3016EOF
3017
3018}
3019
3020
833c46e1 3021echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
0e034c77 3022echo "configure:3023: checking whether declaration is required for malloc" >&5
833c46e1
KR
3023if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
bf111c9f 3025else
28d3e4a3 3026 cat > conftest.$ac_ext <<EOF
0e034c77 3027#line 3028 "configure"
bf111c9f
KR
3028#include "confdefs.h"
3029$gas_test_headers
c6c7035c 3030int main() {
b11fb939 3031
bf111c9f
KR
3032typedef char *(*f)();
3033f x;
3034x = (f) malloc;
b11fb939
KR
3035
3036; return 0; }
3037EOF
0e034c77 3038if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
fb589130 3039 rm -rf conftest*
bf111c9f 3040 gas_cv_decl_needed_malloc=no
b11fb939 3041else
c6c7035c
MM
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
b11fb939 3044 rm -rf conftest*
bf111c9f 3045 gas_cv_decl_needed_malloc=yes
fb589130
KR
3046fi
3047rm -f conftest*
fb589130 3048fi
833c46e1 3049echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
bf111c9f
KR
3050test $gas_cv_decl_needed_malloc = no || {
3051 cat >> confdefs.h <<\EOF
3052#define NEED_DECLARATION_MALLOC 1
b11fb939
KR
3053EOF
3054
bf111c9f
KR
3055}
3056
b11fb939 3057
833c46e1 3058echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
0e034c77 3059echo "configure:3060: checking whether declaration is required for free" >&5
833c46e1
KR
3060if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
fb589130 3062else
28d3e4a3 3063 cat > conftest.$ac_ext <<EOF
0e034c77 3064#line 3065 "configure"
b11fb939 3065#include "confdefs.h"
bf111c9f 3066$gas_test_headers
c6c7035c 3067int main() {
b11fb939 3068
5f757edc 3069typedef void (*f)();
bf111c9f
KR
3070f x;
3071x = (f) free;
b11fb939
KR
3072
3073; return 0; }
3074EOF
0e034c77 3075if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
fb589130 3076 rm -rf conftest*
bf111c9f 3077 gas_cv_decl_needed_free=no
b11fb939 3078else
c6c7035c
MM
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
b11fb939 3081 rm -rf conftest*
bf111c9f 3082 gas_cv_decl_needed_free=yes
b11fb939
KR
3083fi
3084rm -f conftest*
fb589130 3085fi
833c46e1 3086echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
bf111c9f
KR
3087test $gas_cv_decl_needed_free = no || {
3088 cat >> confdefs.h <<\EOF
3089#define NEED_DECLARATION_FREE 1
fb589130
KR
3090EOF
3091
bf111c9f
KR
3092}
3093
b11fb939 3094
5cece526 3095echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
0e034c77 3096echo "configure:3097: checking whether declaration is required for sbrk" >&5
5cece526
ILT
3097if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3099else
3100 cat > conftest.$ac_ext <<EOF
0e034c77 3101#line 3102 "configure"
5cece526
ILT
3102#include "confdefs.h"
3103$gas_test_headers
c6c7035c 3104int main() {
5cece526
ILT
3105
3106typedef char *(*f)();
3107f x;
3108x = (f) sbrk;
3109
3110; return 0; }
3111EOF
0e034c77 3112if { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5cece526
ILT
3113 rm -rf conftest*
3114 gas_cv_decl_needed_sbrk=no
3115else
c6c7035c
MM
3116 echo "configure: failed program was:" >&5
3117 cat conftest.$ac_ext >&5
5cece526
ILT
3118 rm -rf conftest*
3119 gas_cv_decl_needed_sbrk=yes
3120fi
3121rm -f conftest*
5cece526
ILT
3122fi
3123echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
3124test $gas_cv_decl_needed_sbrk = no || {
3125 cat >> confdefs.h <<\EOF
3126#define NEED_DECLARATION_SBRK 1
3127EOF
3128
3129}
3130
3131
b11fb939
KR
3132# Does errno.h declare errno, or do we have to add a separate declaration
3133# for it?
bf111c9f 3134
833c46e1 3135echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
0e034c77 3136echo "configure:3137: checking whether declaration is required for errno" >&5
833c46e1
KR
3137if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
fb589130 3139else
28d3e4a3 3140 cat > conftest.$ac_ext <<EOF
0e034c77 3141#line 3142 "configure"
b11fb939
KR
3142#include "confdefs.h"
3143
3144#ifdef HAVE_ERRNO_H
3145#include <errno.h>
3146#endif
3147
c6c7035c 3148int main() {
b11fb939 3149
bf111c9f
KR
3150typedef int f;
3151f x;
3152x = (f) errno;
b11fb939
KR
3153
3154; return 0; }
3155EOF
0e034c77 3156if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
fb589130 3157 rm -rf conftest*
bf111c9f 3158 gas_cv_decl_needed_errno=no
b11fb939 3159else
c6c7035c
MM
3160 echo "configure: failed program was:" >&5
3161 cat conftest.$ac_ext >&5
b11fb939 3162 rm -rf conftest*
bf111c9f 3163 gas_cv_decl_needed_errno=yes
b11fb939
KR
3164fi
3165rm -f conftest*
fb589130 3166fi
833c46e1 3167echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
bf111c9f
KR
3168test $gas_cv_decl_needed_errno = no || {
3169 cat >> confdefs.h <<\EOF
3170#define NEED_DECLARATION_ERRNO 1
fb589130
KR
3171EOF
3172
bf111c9f
KR
3173}
3174
b11fb939 3175
515c7142
ILT
3176
3177
ba49e48d 3178trap '' 1 2 15
833c46e1 3179cat > confcache <<\EOF
b11fb939
KR
3180# This file is a shell script that caches the results of configure
3181# tests run on this system so they can be shared between configure
3182# scripts and configure runs. It is not useful on other systems.
bf111c9f 3183# If it contains results you don't want to keep, you may remove or edit it.
b11fb939
KR
3184#
3185# By default, configure uses ./config.cache as the cache file,
3186# creating it if it does not exist already. You can give configure
3187# the --cache-file=FILE option to use a different cache file; that is
3188# what configure does when it calls configure scripts in
3189# subdirectories, so they share the cache.
3190# Giving --cache-file=/dev/null disables caching, for debugging configure.
3191# config.status only pays attention to the cache file if you give it the
3192# --recheck option to rerun configure.
e23b25ec 3193#
b11fb939 3194EOF
c6c7035c
MM
3195# The following way of writing the cache mishandles newlines in values,
3196# but we know of no workaround that is simple, portable, and efficient.
3197# So, don't put newlines in cache variables' values.
833c46e1
KR
3198# Ultrix sh set writes to stderr and can't be redirected directly,
3199# and sets the high bit in the cache file unless we assign to the vars.
e23b25ec 3200(set) 2>&1 |
6cc7a938 3201 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
c6c7035c
MM
3202 *ac_space=\ *)
3203 # `set' does not quote correctly, so add quotes (double-quote substitution
3204 # turns \\\\ into \\, and sed turns \\ into \).
3205 sed -n \
3206 -e "s/'/'\\\\''/g" \
3207 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3208 ;;
3209 *)
3210 # `set' quotes correctly as required by POSIX, so do not add quotes.
3211 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3212 ;;
3213 esac >> confcache
833c46e1
KR
3214if cmp -s $cache_file confcache; then
3215 :
b11fb939 3216else
833c46e1
KR
3217 if test -w $cache_file; then
3218 echo "updating cache $cache_file"
3219 cat confcache > $cache_file
3220 else
3221 echo "not updating unwritable cache $cache_file"
3222 fi
b11fb939 3223fi
833c46e1 3224rm -f confcache
b11fb939 3225
833c46e1 3226trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
b11fb939 3227
f2889110 3228test "x$prefix" = xNONE && prefix=$ac_default_prefix
b11fb939
KR
3229# Let make expand exec_prefix.
3230test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3231
3232# Any assignment to VPATH causes Sun make to only execute
3233# the first set of double-colon rules, so remove it if not needed.
3234# If there is a colon in the path, we need to keep it.
3235if test "x$srcdir" = x.; then
3236 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3237fi
3238
3239trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3240
3241DEFS=-DHAVE_CONFIG_H
3242
3243# Without the "./", some shells look in PATH for config.status.
3244: ${CONFIG_STATUS=./config.status}
3245
28d3e4a3
KR
3246echo creating $CONFIG_STATUS
3247rm -f $CONFIG_STATUS
3248cat > $CONFIG_STATUS <<EOF
833c46e1 3249#! /bin/sh
b11fb939
KR
3250# Generated automatically by configure.
3251# Run this file to recreate the current configuration.
3252# This directory was configured as follows,
3253# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3254#
e23b25ec 3255# $0 $ac_configure_args
b11fb939
KR
3256#
3257# Compiler output produced by configure, useful for debugging
3258# configure, is in ./config.log if it exists.
3259
28d3e4a3 3260ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
b11fb939
KR
3261for ac_option
3262do
3263 case "\$ac_option" in
3264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
e23b25ec
KR
3265 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3266 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
b11fb939 3267 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
b5db0960 3268 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
b11fb939
KR
3269 exit 0 ;;
3270 -help | --help | --hel | --he | --h)
3271 echo "\$ac_cs_usage"; exit 0 ;;
3272 *) echo "\$ac_cs_usage"; exit 1 ;;
3273 esac
3274done
3275
3276ac_given_srcdir=$srcdir
3277ac_given_INSTALL="$INSTALL"
3278
e2b4bd2a 3279trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1c9dbb83
ILT
3280EOF
3281cat >> $CONFIG_STATUS <<EOF
b11fb939 3282
1c9dbb83
ILT
3283# Protect against being on the right side of a sed subst in config.status.
3284sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3285 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
b11fb939
KR
3286$ac_vpsub
3287$extrasub
ed1ed9f9 3288s%@SHELL@%$SHELL%g
b11fb939 3289s%@CFLAGS@%$CFLAGS%g
b11fb939 3290s%@CPPFLAGS@%$CPPFLAGS%g
bf111c9f
KR
3291s%@CXXFLAGS@%$CXXFLAGS%g
3292s%@DEFS@%$DEFS%g
b11fb939 3293s%@LDFLAGS@%$LDFLAGS%g
bf111c9f
KR
3294s%@LIBS@%$LIBS%g
3295s%@exec_prefix@%$exec_prefix%g
3296s%@prefix@%$prefix%g
ba49e48d 3297s%@program_transform_name@%$program_transform_name%g
1c9dbb83
ILT
3298s%@bindir@%$bindir%g
3299s%@sbindir@%$sbindir%g
3300s%@libexecdir@%$libexecdir%g
3301s%@datadir@%$datadir%g
3302s%@sysconfdir@%$sysconfdir%g
3303s%@sharedstatedir@%$sharedstatedir%g
3304s%@localstatedir@%$localstatedir%g
3305s%@libdir@%$libdir%g
3306s%@includedir@%$includedir%g
3307s%@oldincludedir@%$oldincludedir%g
3308s%@infodir@%$infodir%g
3309s%@mandir@%$mandir%g
b11fb939
KR
3310s%@host@%$host%g
3311s%@host_alias@%$host_alias%g
3312s%@host_cpu@%$host_cpu%g
3313s%@host_vendor@%$host_vendor%g
3314s%@host_os@%$host_os%g
3315s%@target@%$target%g
3316s%@target_alias@%$target_alias%g
3317s%@target_cpu@%$target_cpu%g
3318s%@target_vendor@%$target_vendor%g
3319s%@target_os@%$target_os%g
3320s%@build@%$build%g
3321s%@build_alias@%$build_alias%g
3322s%@build_cpu@%$build_cpu%g
3323s%@build_vendor@%$build_vendor%g
3324s%@build_os@%$build_os%g
e2b4bd2a
ILT
3325s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3326s%@INSTALL_DATA@%$INSTALL_DATA%g
3327s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3328s%@PACKAGE@%$PACKAGE%g
3329s%@VERSION@%$VERSION%g
3330s%@ACLOCAL@%$ACLOCAL%g
3331s%@AUTOCONF@%$AUTOCONF%g
3332s%@AUTOMAKE@%$AUTOMAKE%g
3333s%@AUTOHEADER@%$AUTOHEADER%g
3334s%@MAKEINFO@%$MAKEINFO%g
3335s%@SET_MAKE@%$SET_MAKE%g
3336s%@CC@%$CC%g
3337s%@RANLIB@%$RANLIB%g
3338s%@LD@%$LD%g
3339s%@LN_S@%$LN_S%g
3340s%@LIBTOOL@%$LIBTOOL%g
e7757ad0 3341s%@extra_objects@%$extra_objects%g
bf4bd1fc 3342s%@target_cpu_type@%$target_cpu_type%g
833c46e1 3343s%@obj_format@%$obj_format%g
515c7142 3344s%@te_file@%$te_file%g
833c46e1 3345s%@atof@%$atof%g
b11fb939 3346s%@BFDLIB@%$BFDLIB%g
2e013bb7 3347s%@OPCODES_LIB@%$OPCODES_LIB%g
b11fb939 3348s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
e2b4bd2a
ILT
3349s%@YACC@%$YACC%g
3350s%@LEX@%$LEX%g
3351s%@LEXLIB@%$LEXLIB%g
b11fb939 3352s%@CPP@%$CPP%g
e2b4bd2a
ILT
3353s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3354s%@MAINT@%$MAINT%g
e42b2520 3355s%@EXEEXT@%$EXEEXT%g
b11fb939 3356s%@ALLOCA@%$ALLOCA%g
b11fb939
KR
3357
3358CEOF
3359EOF
c6c7035c
MM
3360
3361cat >> $CONFIG_STATUS <<\EOF
3362
3363# Split the substitutions into bite-sized pieces for seds with
3364# small command number limits, like on Digital OSF/1 and HP-UX.
3365ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3366ac_file=1 # Number of current file.
3367ac_beg=1 # First line for current file.
3368ac_end=$ac_max_sed_cmds # Line after last line for current file.
3369ac_more_lines=:
3370ac_sed_cmds=""
3371while $ac_more_lines; do
3372 if test $ac_beg -gt 1; then
3373 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3374 else
3375 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3376 fi
3377 if test ! -s conftest.s$ac_file; then
3378 ac_more_lines=false
3379 rm -f conftest.s$ac_file
3380 else
3381 if test -z "$ac_sed_cmds"; then
3382 ac_sed_cmds="sed -f conftest.s$ac_file"
3383 else
3384 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3385 fi
3386 ac_file=`expr $ac_file + 1`
3387 ac_beg=$ac_end
3388 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3389 fi
3390done
3391if test -z "$ac_sed_cmds"; then
3392 ac_sed_cmds=cat
3393fi
3394EOF
3395
28d3e4a3 3396cat >> $CONFIG_STATUS <<EOF
b11fb939 3397
28d3e4a3 3398CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"}
bf111c9f 3399EOF
28d3e4a3
KR
3400cat >> $CONFIG_STATUS <<\EOF
3401for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
c6c7035c 3402 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b11fb939 3403 case "$ac_file" in
c6c7035c 3404 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
b11fb939
KR
3405 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3406 *) ac_file_in="${ac_file}.in" ;;
3407 esac
3408
c6c7035c 3409 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
b11fb939
KR
3410
3411 # Remove last slash and all that follows it. Not all systems have dirname.
3412 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3413 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3414 # The file is in a subdirectory.
3415 test ! -d "$ac_dir" && mkdir "$ac_dir"
833c46e1 3416 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
b11fb939
KR
3417 # A "../" for each directory in $ac_dir_suffix.
3418 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3419 else
3420 ac_dir_suffix= ac_dots=
3421 fi
3422
3423 case "$ac_given_srcdir" in
3424 .) srcdir=.
3425 if test -z "$ac_dots"; then top_srcdir=.
3426 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3427 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3428 *) # Relative path.
3429 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3430 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3431 esac
3432
3433 case "$ac_given_INSTALL" in
3434 [/$]*) INSTALL="$ac_given_INSTALL" ;;
28d3e4a3 3435 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
b11fb939 3436 esac
c6c7035c 3437
b11fb939
KR
3438 echo creating "$ac_file"
3439 rm -f "$ac_file"
28d3e4a3 3440 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
ba49e48d
KR
3441 case "$ac_file" in
3442 *Makefile*) ac_comsub="1i\\
3443# $configure_input" ;;
3444 *) ac_comsub= ;;
3445 esac
c6c7035c 3446
e2b4bd2a 3447 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
ba49e48d 3448 sed -e "$ac_comsub
28d3e4a3 3449s%@configure_input@%$configure_input%g
b11fb939
KR
3450s%@srcdir@%$srcdir%g
3451s%@top_srcdir@%$top_srcdir%g
3452s%@INSTALL@%$INSTALL%g
c6c7035c 3453" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
b11fb939 3454fi; done
c6c7035c 3455rm -f conftest.s*
b11fb939
KR
3456
3457# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3458# NAME is the cpp macro being defined and VALUE is the value it is being given.
3459#
3460# ac_d sets the value in "#define NAME VALUE" lines.
3461ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3462ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3463ac_dC='\3'
3464ac_dD='%g'
3465# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3466ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3467ac_uB='\([ ]\)%\1#\2define\3'
3468ac_uC=' '
3469ac_uD='\4%g'
3470# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3471ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3472ac_eB='$%\1#\2define\3'
3473ac_eC=' '
3474ac_eD='%g'
3475
c6c7035c
MM
3476if test "${CONFIG_HEADERS+set}" != set; then
3477EOF
3478cat >> $CONFIG_STATUS <<EOF
e2b4bd2a 3479 CONFIG_HEADERS="config.h:config.in"
c6c7035c
MM
3480EOF
3481cat >> $CONFIG_STATUS <<\EOF
3482fi
28d3e4a3 3483for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
c6c7035c 3484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b11fb939 3485 case "$ac_file" in
c6c7035c 3486 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
b11fb939
KR
3487 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3488 *) ac_file_in="${ac_file}.in" ;;
3489 esac
3490
3491 echo creating $ac_file
3492
3493 rm -f conftest.frag conftest.in conftest.out
e2b4bd2a 3494 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
c6c7035c 3495 cat $ac_file_inputs > conftest.in
b11fb939
KR
3496
3497EOF
3498
3499# Transform confdefs.h into a sed script conftest.vals that substitutes
fb589130 3500# the proper values into config.h.in to produce config.h. And first:
1c9dbb83 3501# Protect against being on the right side of a sed subst in config.status.
fb589130 3502# Protect against being in an unquoted here document in config.status.
b11fb939
KR
3503rm -f conftest.vals
3504cat > conftest.hdr <<\EOF
b11fb939 3505s/[\\&%]/\\&/g
b11fb939 3506s%[\\$`]%\\&%g
df586de2 3507s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
b11fb939
KR
3508s%ac_d%ac_u%gp
3509s%ac_u%ac_e%gp
3510EOF
3511sed -n -f conftest.hdr confdefs.h > conftest.vals
3512rm -f conftest.hdr
3513
3514# This sed command replaces #undef with comments. This is necessary, for
3515# example, in the case of _POSIX_SOURCE, which is predefined and required
3516# on some systems where configure will not decide to define it.
3517cat >> conftest.vals <<\EOF
3518s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3519EOF
3520
3521# Break up conftest.vals because some shells have a limit on
3522# the size of here documents, and old seds have small limits too.
b11fb939
KR
3523
3524rm -f conftest.tail
3525while :
3526do
3527 ac_lines=`grep -c . conftest.vals`
3528 # grep -c gives empty output for an empty file on some AIX systems.
3529 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3530 # Write a limited-size here document to conftest.frag.
28d3e4a3
KR
3531 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3532 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
b11fb939
KR
3533 echo 'CEOF
3534 sed -f conftest.frag conftest.in > conftest.out
3535 rm -f conftest.in
3536 mv conftest.out conftest.in
28d3e4a3 3537' >> $CONFIG_STATUS
b11fb939
KR
3538 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3539 rm -f conftest.vals
3540 mv conftest.tail conftest.vals
3541done
3542rm -f conftest.vals
3543
28d3e4a3 3544cat >> $CONFIG_STATUS <<\EOF
b11fb939
KR
3545 rm -f conftest.frag conftest.h
3546 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3547 cat conftest.in >> conftest.h
3548 rm -f conftest.in
3549 if cmp -s $ac_file conftest.h 2>/dev/null; then
3550 echo "$ac_file is unchanged"
3551 rm -f conftest.h
3552 else
df586de2
ILT
3553 # Remove last slash and all that follows it. Not all systems have dirname.
3554 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3555 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3556 # The file is in a subdirectory.
3557 test ! -d "$ac_dir" && mkdir "$ac_dir"
3558 fi
b11fb939
KR
3559 rm -f $ac_file
3560 mv conftest.h $ac_file
3561 fi
3562fi; done
3563
c6c7035c
MM
3564EOF
3565cat >> $CONFIG_STATUS <<EOF
6cc7a938 3566
515c7142
ILT
3567target_cpu_type=${target_cpu_type}
3568 obj_format=${obj_format}
3569 te_file=${te_file}
c6c7035c
MM
3570EOF
3571cat >> $CONFIG_STATUS <<\EOF
e2b4bd2a 3572test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
515c7142
ILT
3573rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
3574 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
3575 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
3576 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
3577 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
39ffbb4d
DE
3578 case ${target_cpu_type} in
3579 m32r) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;;
3580 esac
36e889af 3581exit 0
b11fb939 3582EOF
28d3e4a3 3583chmod +x $CONFIG_STATUS
bf111c9f 3584rm -fr confdefs* $ac_clean_files
833c46e1 3585test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
b11fb939 3586
This page took 0.465766 seconds and 4 git commands to generate.