Fri Mar 28 18:03:19 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
[deliverable/binutils-gdb.git] / gas / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-bfd-assembler use BFD back end for writing object files"
16 ac_help="$ac_help
17 targets alternative target configurations besides the primary"
18 ac_help="$ac_help
19 --enable-shared build shared BFD library"
20 ac_help="$ac_help
21 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
22
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
26 build=NONE
27 cache_file=./config.cache
28 exec_prefix=NONE
29 host=NONE
30 no_create=
31 nonopt=NONE
32 no_recursion=
33 prefix=NONE
34 program_prefix=NONE
35 program_suffix=NONE
36 program_transform_name=s,x,x,
37 silent=
38 site=
39 srcdir=
40 target=NONE
41 verbose=
42 x_includes=NONE
43 x_libraries=NONE
44 bindir='${exec_prefix}/bin'
45 sbindir='${exec_prefix}/sbin'
46 libexecdir='${exec_prefix}/libexec'
47 datadir='${prefix}/share'
48 sysconfdir='${prefix}/etc'
49 sharedstatedir='${prefix}/com'
50 localstatedir='${prefix}/var'
51 libdir='${exec_prefix}/lib'
52 includedir='${prefix}/include'
53 oldincludedir='/usr/include'
54 infodir='${prefix}/info'
55 mandir='${prefix}/man'
56
57 # Initialize some other variables.
58 subdirs=
59 MFLAGS= MAKEFLAGS=
60 # Maximum number of lines to put in a shell here document.
61 ac_max_here_lines=12
62
63 ac_prev=
64 for ac_option
65 do
66
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
70 ac_prev=
71 continue
72 fi
73
74 case "$ac_option" in
75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 *) ac_optarg= ;;
77 esac
78
79 # Accept the important Cygnus configure options, so we can diagnose typos.
80
81 case "$ac_option" in
82
83 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 ac_prev=bindir ;;
85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86 bindir="$ac_optarg" ;;
87
88 -build | --build | --buil | --bui | --bu)
89 ac_prev=build ;;
90 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 build="$ac_optarg" ;;
92
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 ac_prev=cache_file ;;
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
99
100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 ac_prev=datadir ;;
102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 | --da=*)
104 datadir="$ac_optarg" ;;
105
106 -disable-* | --disable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 fi
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
114
115 -enable-* | --enable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 fi
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 case "$ac_option" in
123 *=*) ;;
124 *) ac_optarg=yes ;;
125 esac
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
127
128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130 | --exec | --exe | --ex)
131 ac_prev=exec_prefix ;;
132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134 | --exec=* | --exe=* | --ex=*)
135 exec_prefix="$ac_optarg" ;;
136
137 -gas | --gas | --ga | --g)
138 # Obsolete; use --with-gas.
139 with_gas=yes ;;
140
141 -help | --help | --hel | --he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
144 cat << EOF
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
147 Configuration:
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
155 [$ac_default_prefix]
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 [same as prefix]
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
162 [PREFIX/share]
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 [PREFIX/com]
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
177 EOF
178 cat << EOF
179 Host type:
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
190 EOF
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
193 fi
194 exit 0 ;;
195
196 -host | --host | --hos | --ho)
197 ac_prev=host ;;
198 -host=* | --host=* | --hos=* | --ho=*)
199 host="$ac_optarg" ;;
200
201 -includedir | --includedir | --includedi | --included | --include \
202 | --includ | --inclu | --incl | --inc)
203 ac_prev=includedir ;;
204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205 | --includ=* | --inclu=* | --incl=* | --inc=*)
206 includedir="$ac_optarg" ;;
207
208 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 ac_prev=infodir ;;
210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211 infodir="$ac_optarg" ;;
212
213 -libdir | --libdir | --libdi | --libd)
214 ac_prev=libdir ;;
215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
216 libdir="$ac_optarg" ;;
217
218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219 | --libexe | --libex | --libe)
220 ac_prev=libexecdir ;;
221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222 | --libexe=* | --libex=* | --libe=*)
223 libexecdir="$ac_optarg" ;;
224
225 -localstatedir | --localstatedir | --localstatedi | --localstated \
226 | --localstate | --localstat | --localsta | --localst \
227 | --locals | --local | --loca | --loc | --lo)
228 ac_prev=localstatedir ;;
229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232 localstatedir="$ac_optarg" ;;
233
234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 ac_prev=mandir ;;
236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237 mandir="$ac_optarg" ;;
238
239 -nfp | --nfp | --nf)
240 # Obsolete; use --without-fp.
241 with_fp=no ;;
242
243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 | --no-cr | --no-c)
245 no_create=yes ;;
246
247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249 no_recursion=yes ;;
250
251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253 | --oldin | --oldi | --old | --ol | --o)
254 ac_prev=oldincludedir ;;
255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258 oldincludedir="$ac_optarg" ;;
259
260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 ac_prev=prefix ;;
262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263 prefix="$ac_optarg" ;;
264
265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
266 | --program-pre | --program-pr | --program-p)
267 ac_prev=program_prefix ;;
268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270 program_prefix="$ac_optarg" ;;
271
272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
273 | --program-suf | --program-su | --program-s)
274 ac_prev=program_suffix ;;
275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277 program_suffix="$ac_optarg" ;;
278
279 -program-transform-name | --program-transform-name \
280 | --program-transform-nam | --program-transform-na \
281 | --program-transform-n | --program-transform- \
282 | --program-transform | --program-transfor \
283 | --program-transfo | --program-transf \
284 | --program-trans | --program-tran \
285 | --progr-tra | --program-tr | --program-t)
286 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
295
296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297 | -silent | --silent | --silen | --sile | --sil)
298 silent=yes ;;
299
300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 ac_prev=sbindir ;;
302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 | --sbi=* | --sb=*)
304 sbindir="$ac_optarg" ;;
305
306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308 | --sharedst | --shareds | --shared | --share | --shar \
309 | --sha | --sh)
310 ac_prev=sharedstatedir ;;
311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 | --sha=* | --sh=*)
315 sharedstatedir="$ac_optarg" ;;
316
317 -site | --site | --sit)
318 ac_prev=site ;;
319 -site=* | --site=* | --sit=*)
320 site="$ac_optarg" ;;
321
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 ac_prev=srcdir ;;
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
326
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
333
334 -target | --target | --targe | --targ | --tar | --ta | --t)
335 ac_prev=target ;;
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
338
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 verbose=yes ;;
341
342 -version | --version | --versio | --versi | --vers)
343 echo "configure generated by autoconf version 2.12"
344 exit 0 ;;
345
346 -with-* | --with-*)
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 fi
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 case "$ac_option" in
354 *=*) ;;
355 *) ac_optarg=yes ;;
356 esac
357 eval "with_${ac_package}='$ac_optarg'" ;;
358
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 fi
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
367
368 --x)
369 # Obsolete; use --with-x.
370 with_x=yes ;;
371
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
378
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
385
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 ;;
388
389 *)
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 fi
393 if test "x$nonopt" != xNONE; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 fi
396 nonopt="$ac_option"
397 ;;
398
399 esac
400 done
401
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 fi
405
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
408 # File descriptor usage:
409 # 0 standard input
410 # 1 file creation
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
417 exec 6>/dev/null
418 else
419 exec 6>&1
420 fi
421 exec 5>./config.log
422
423 echo "\
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
426 " 1>&5
427
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
430 ac_configure_args=
431 for ac_arg
432 do
433 case "$ac_arg" in
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c) ;;
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 esac
442 done
443
444 # NLS nuisances.
445 # Only set these to C if already set. These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 echo > confdefs.h
458
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
461 ac_unique_file=as.h
462
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465 ac_srcdir_defaulted=yes
466 # Try the directory containing this script, then its parent.
467 ac_prog=$0
468 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 srcdir=$ac_confdir
471 if test ! -r $srcdir/$ac_unique_file; then
472 srcdir=..
473 fi
474 else
475 ac_srcdir_defaulted=no
476 fi
477 if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 else
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 fi
483 fi
484 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE; then
489 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 else
491 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 fi
493 fi
494 for ac_site_file in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
497 . "$ac_site_file"
498 fi
499 done
500
501 if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
503 . $cache_file
504 else
505 echo "creating cache $cache_file"
506 > $cache_file
507 fi
508
509 ac_ext=c
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp='$CPP $CPPFLAGS'
512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling=$ac_cv_prog_cc_cross
515
516 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
519 ac_n= ac_c='
520 ' ac_t=' '
521 else
522 ac_n=-n ac_c= ac_t=
523 fi
524 else
525 ac_n= ac_c='\c' ac_t=
526 fi
527
528 user_bfd_gas=
529 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
530 if test "${enable_bfd_assembler+set}" = set; then
531 enableval="$enable_bfd_assembler"
532 case "${enableval}" in
533 yes) need_bfd=yes user_bfd_gas=yes ;;
534 no) user_bfd_gas=no ;;
535 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
536 esac
537 fi
538 # Check whether --enable-targets or --disable-targets was given.
539 if test "${enable_targets+set}" = set; then
540 enableval="$enable_targets"
541 case "${enableval}" in
542 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
543 ;;
544 no) enable_targets= ;;
545 *) enable_targets=$enableval ;;
546 esac
547 fi
548 # Check whether --enable-shared or --disable-shared was given.
549 if test "${enable_shared+set}" = set; then
550 enableval="$enable_shared"
551 case "${enableval}" in
552 yes) shared=true shared_bfd=true shared_opcodes=true ;;
553 no) shared=false ;;
554 *bfd*opcodes*) shared=true shared_bfd=true shared_opcodes=true ;;
555 *opcodes*bfd*) shared=true shared_bfd=true shared_opcodes=true ;;
556 *bfd*) shared=true shared_bfd=true ;;
557 *opcodes*) shared=true shared_opcodes=true ;;
558 *) shared=false ;;
559 esac
560 fi
561 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
562 if test "${enable_commonbfdlib+set}" = set; then
563 enableval="$enable_commonbfdlib"
564 case "${enableval}" in
565 yes) commonbfdlib=true ;;
566 no) commonbfdlib=false ;;
567 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
568 esac
569 fi
570
571 # Generate a header file -- gets more post-processing by Makefile later.
572
573
574 ac_aux_dir=
575 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
576 if test -f $ac_dir/install-sh; then
577 ac_aux_dir=$ac_dir
578 ac_install_sh="$ac_aux_dir/install-sh -c"
579 break
580 elif test -f $ac_dir/install.sh; then
581 ac_aux_dir=$ac_dir
582 ac_install_sh="$ac_aux_dir/install.sh -c"
583 break
584 fi
585 done
586 if test -z "$ac_aux_dir"; then
587 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
588 fi
589 ac_config_guess=$ac_aux_dir/config.guess
590 ac_config_sub=$ac_aux_dir/config.sub
591 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
592
593
594 # Do some error checking and defaulting for the host and target type.
595 # The inputs are:
596 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
597 #
598 # The rules are:
599 # 1. You are not allowed to specify --host, --target, and nonopt at the
600 # same time.
601 # 2. Host defaults to nonopt.
602 # 3. If nonopt is not specified, then host defaults to the current host,
603 # as determined by config.guess.
604 # 4. Target and build default to nonopt.
605 # 5. If nonopt is not specified, then target and build default to host.
606
607 # The aliases save the names the user supplied, while $host etc.
608 # will get canonicalized.
609 case $host---$target---$nonopt in
610 NONE---*---* | *---NONE---* | *---*---NONE) ;;
611 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
612 esac
613
614
615 # Make sure we can run config.sub.
616 if $ac_config_sub sun4 >/dev/null 2>&1; then :
617 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
618 fi
619
620 echo $ac_n "checking host system type""... $ac_c" 1>&6
621 echo "configure:622: checking host system type" >&5
622
623 host_alias=$host
624 case "$host_alias" in
625 NONE)
626 case $nonopt in
627 NONE)
628 if host_alias=`$ac_config_guess`; then :
629 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
630 fi ;;
631 *) host_alias=$nonopt ;;
632 esac ;;
633 esac
634
635 host=`$ac_config_sub $host_alias`
636 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
637 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
638 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
639 echo "$ac_t""$host" 1>&6
640
641 echo $ac_n "checking target system type""... $ac_c" 1>&6
642 echo "configure:643: checking target system type" >&5
643
644 target_alias=$target
645 case "$target_alias" in
646 NONE)
647 case $nonopt in
648 NONE) target_alias=$host_alias ;;
649 *) target_alias=$nonopt ;;
650 esac ;;
651 esac
652
653 target=`$ac_config_sub $target_alias`
654 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
655 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
656 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
657 echo "$ac_t""$target" 1>&6
658
659 echo $ac_n "checking build system type""... $ac_c" 1>&6
660 echo "configure:661: checking build system type" >&5
661
662 build_alias=$build
663 case "$build_alias" in
664 NONE)
665 case $nonopt in
666 NONE) build_alias=$host_alias ;;
667 *) build_alias=$nonopt ;;
668 esac ;;
669 esac
670
671 build=`$ac_config_sub $build_alias`
672 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
673 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
674 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
675 echo "$ac_t""$build" 1>&6
676
677 test "$host_alias" != "$target_alias" &&
678 test "$program_prefix$program_suffix$program_transform_name" = \
679 NONENONEs,x,x, &&
680 program_prefix=${target_alias}-
681
682 if test "$program_transform_name" = s,x,x,; then
683 program_transform_name=
684 else
685 # Double any \ or $. echo might interpret backslashes.
686 cat <<\EOF_SED > conftestsed
687 s,\\,\\\\,g; s,\$,$$,g
688 EOF_SED
689 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
690 rm -f conftestsed
691 fi
692 test "$program_prefix" != NONE &&
693 program_transform_name="s,^,${program_prefix},; $program_transform_name"
694 # Use a double $ so make ignores it.
695 test "$program_suffix" != NONE &&
696 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
697
698 # sed with no file args requires a program.
699 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
700
701
702 te_file=generic
703
704 canon_targets=""
705 if test -n "$enable_targets" ; then
706 for t in `echo $enable_targets | sed 's/,/ /g'`; do
707 result=`$ac_config_sub $t 2>/dev/null`
708 if test -n "$result" ; then
709 canon_targets="$canon_targets $result"
710 # else
711 # # Permit "all", etc. We don't support it yet though.
712 # canon_targets="$canon_targets $t"
713 fi
714 done
715 _gas_uniq_list="$canon_targets"
716 _gas_uniq_newlist=""
717 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
718 case $_gas_uniq_i in
719 _gas_uniq_dummy) ;;
720 *) case " $_gas_uniq_newlist " in
721 *" $_gas_uniq_i "*) ;;
722 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
723 esac ;;
724 esac
725 done
726 canon_targets=$_gas_uniq_newlist
727
728 fi
729
730 emulations=""
731
732 for this_target in $target $canon_targets ; do
733
734 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
735
736 # check for architecture variants
737 case ${cpu} in
738 armeb) cpu_type=arm endian=big ;;
739 arm*) cpu_type=arm endian=little ;;
740 hppa*) cpu_type=hppa ;;
741 i[456]86) cpu_type=i386 ;;
742 m680[012346]0) cpu_type=m68k ;;
743 m68008) cpu_type=m68k ;;
744 m683??) cpu_type=m68k ;;
745 m8*) cpu_type=m88k ;;
746 mips*el) cpu_type=mips endian=little ;;
747 mips*) cpu_type=mips endian=big ;;
748 powerpcle*) cpu_type=ppc endian=little ;;
749 powerpc*) cpu_type=ppc endian=big ;;
750 rs6000*) cpu_type=ppc ;;
751 sparc64) cpu_type=sparc want_sparc_v9=true ;;
752 sparc*) cpu_type=sparc ;;
753 *) cpu_type=${cpu} ;;
754 esac
755
756 if test ${this_target} = $target ; then
757 target_cpu_type=${cpu_type}
758 elif test ${target_cpu_type} != ${cpu_type} ; then
759 continue
760 fi
761
762 targ=${cpu_type}
763 generic_target=${cpu_type}-$vendor-$os
764 dev=no
765 bfd_gas=no
766 em=generic
767
768 # assign object format
769 case ${generic_target} in
770 a29k-*-coff) fmt=coff targ=ebmon29k ;;
771 a29k-amd-udi) fmt=coff targ=ebmon29k ;;
772 a29k-amd-ebmon) fmt=coff targ=ebmon29k ;;
773 a29k-nyu-sym1) fmt=coff targ=ebmon29k ;;
774 a29k-*-vxworks*) fmt=coff ;;
775
776 alpha-*-*vms*) fmt=evax ;;
777 alpha-*-netware*) fmt=ecoff ;;
778 alpha-*-osf*) fmt=ecoff ;;
779 alpha-*-linuxecoff*) fmt=ecoff ;;
780 alpha-*-linux*) fmt=elf em=linux ;;
781
782 # start-sanitize-arc
783 arc-*-elf*) fmt=elf bfd_gas=yes ;;
784 # end-sanitize-arc
785
786 arm-*-riscix*) fmt=aout targ=arm-lit em=riscix ;;
787 arm-*-aout) fmt=aout
788 case "$endian" in
789 big) targ=arm-big ;;
790 *) targ=arm-lit ;;
791 esac
792 ;;
793 arm-*-coff) fmt=coff ;;
794 arm-*-riscix*) fmt=aout ;;
795 arm-*-pe) fmt=coff targ=armcoff em=pe ;;
796
797 d10v-*-*) fmt=elf bfd_gas=yes ;;
798 # start-sanitize-d30v
799 d30v-*-*) fmt=elf bfd_gas=yes ;;
800 # end-sanitize-d30v
801
802 hppa-*-*elf*) fmt=elf em=hppa ;;
803 hppa-*-lites*) fmt=elf em=hppa ;;
804 hppa-*-osf*) fmt=som em=hppa ;;
805 hppa-*-hpux*) fmt=som em=hppa ;;
806 hppa-*-bsd*) fmt=som em=hppa ;;
807 hppa-*-hiux*) fmt=som em=hppa ;;
808
809 h8300-*-coff) fmt=coff ;;
810
811 i386-ibm-aix*) fmt=coff targ=i386coff
812 em=i386aix ;;
813 i386-sequent-bsd*) fmt=aout em=dynix bfd_gas=yes ;;
814 i386-*-bsd*) fmt=aout em=386bsd ;;
815 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
816 i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;;
817 i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;;
818 i386-*-linux*coff*) fmt=coff em=linux
819 targ=i386coff ;;
820 i386-*-linux*) fmt=elf em=linux ;;
821 i386-*-lynxos*) fmt=coff targ=i386coff
822 em=lynx ;;
823 i386-*-sysv4* | i386-*-solaris* | i386-*-elf | i386-*-freebsdelf*)
824 fmt=elf ;;
825 i386-*-sco*elf*) fmt=elf targ=sco5 ;;
826 i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*)
827 fmt=coff targ=i386coff ;;
828 i386-*-vsta) fmt=aout ;;
829 i386-*-go32) fmt=coff targ=i386coff ;;
830 i386-*-rtems*) fmt=coff targ=i386coff ;;
831 i386-*-gnu*) fmt=elf ;;
832 i386-*-mach*)
833 fmt=aout em=mach bfd_gas=yes ;;
834 i386-*-msdos*) fmt=aout ;;
835 i386-*-moss*) fmt=elf ;;
836 i386-*-pe) fmt=coff targ=i386coff em=pe ;;
837 i386-*-cygwin32) fmt=coff targ=i386coff em=pe ;;
838 i386-*-*nt) fmt=coff targ=i386coff em=pe ;;
839 i960-*-bout) fmt=bout ;;
840 i960-*-coff) fmt=coff em=ic960 targ=ic960coff ;;
841 i960-*-rtems*) fmt=coff em=ic960 targ=ic960coff ;;
842 i960-*-nindy*) fmt=bout ;;
843 i960-*-vxworks4*) fmt=bout ;;
844 i960-*-vxworks5.0) fmt=bout ;;
845 i960-*-vxworks5.*) fmt=coff em=ic960 targ=ic960coff ;;
846 i960-*-vxworks*) fmt=bout ;;
847
848 m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
849 fmt=aout em=sun3 ;;
850 m68k-motorola-sysv*) fmt=coff targ=m68kcoff em=delta ;;
851 m68k-bull-sysv3*) fmt=coff targ=m68kcoff em=dpx2 ;;
852 m68k-apollo-*) fmt=coff targ=apollo em=apollo ;;
853 m68k-*-sysv4*) # must be before -sysv*
854 fmt=elf em=svr4 ;;
855 m68k-*-elf*) fmt=elf ;;
856 m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
857 fmt=coff targ=m68kcoff ;;
858 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
859 m68k-*-linux*aout*) fmt=aout em=linux ;;
860 m68k-*-linux*) fmt=elf em=linux ;;
861 m68k-*-lynxos*) fmt=coff targ=m68kcoff
862 em=lynx ;;
863 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
864 m68k-apple-aux*) fmt=coff targ=m68kcoff em=aux ;;
865 m68k-*-psos*) fmt=elf em=psos;;
866
867 m88k-motorola-sysv3*) fmt=coff targ=m88kcoff em=delt88 ;;
868 m88k-*-coff*) fmt=coff targ=m88kcoff ;;
869
870 # don't change em like *-*-bsd does
871 mips-dec-netbsd*) fmt=elf targ=mips-lit endian=little ;;
872 mips-dec-bsd*) fmt=aout targ=mips-lit ;;
873 mips-sony-bsd*) fmt=ecoff targ=mips-big ;;
874 mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
875 mips-*-ultrix*) fmt=ecoff targ=mips-lit endian=little ;;
876 mips-*-osf*) fmt=ecoff targ=mips-lit endian=little ;;
877 mips-*-ecoff*) fmt=ecoff
878 case "$endian" in
879 big) targ=mips-big ;;
880 *) targ=mips-lit ;;
881 esac
882 ;;
883 mips-*-ecoff*) fmt=ecoff targ=mips-big ;;
884 mips-*-gnu*) fmt=aout
885 case "$endian" in
886 big) targ=mips-big ;;
887 *) targ=mips-lit ;;
888 esac
889 ;;
890 mips-*-irix6*) fmt=elf targ=mips-big ;;
891 mips-*-irix5*) fmt=elf targ=mips-big ;;
892 mips-*-irix*) fmt=ecoff targ=mips-big ;;
893 mips-*-lnews*) fmt=ecoff targ=mips-lit em=lnews ;;
894 mips-*-riscos*) fmt=ecoff targ=mips-big ;;
895 mips-*-sysv*) fmt=ecoff targ=mips-big ;;
896 mips-*-elf* | mips-*-rtems* | mips-*-linux*)
897 fmt=elf
898 case "$endian" in
899 big) targ=mips-big ;;
900 *) targ=mips-lit ;;
901 esac
902 ;;
903 mn10200-*-*) fmt=elf bfd_gas=yes ;;
904 mn10300-*-*) fmt=elf bfd_gas=yes ;;
905 ppc-*-pe | ppc-*-cygwin32 | ppc-*-winnt*)
906 fmt=coff em=pe
907 case "$endian" in
908 big) targ=ppc-big ;;
909 *) targ=ppc-lit ;;
910 esac
911 ;;
912 ppc-*-aix*) fmt=coff ;;
913 ppc-*-beos*) fmt=coff ;;
914 ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
915 fmt=elf
916 case "$endian" in
917 big) targ=ppc-big ;;
918 *) targ=ppc-lit ;;
919 esac
920 ;;
921 ppc-*-linux*) fmt=elf
922 case "$endian" in
923 big) targ=ppc-big ;;
924 *) { echo "configure: error: Linux must be configured big endian" 1>&2; exit 1; } ;;
925 esac
926 ;;
927 ppc-*-solaris*) fmt=elf
928 case "$endian" in
929 big) { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; } ;;
930 *) targ=ppc-sol ;;
931 esac
932 ;;
933 ppc-*-rtems*)
934 fmt=elf
935 case "$endian" in
936 big) targ=ppc-big ;;
937 *) targ=ppc-lit ;;
938 esac
939 ;;
940 ppc-*-macos* | ppc-*-mpw*)
941 fmt=coff em=macos ;;
942 ppc-*-netware*) fmt=elf em=ppcnw ;;
943
944 sh-*-elf*) fmt=elf ;;
945 sh-*-coff*) fmt=coff ;;
946
947 ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
948 ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
949
950 sparc-*-rtems*) fmt=aout ;;
951 sparc-*-sunos4*) fmt=aout em=sun3 ;;
952 sparc-*-aout | sparc*-*-vxworks*)
953 fmt=aout em=sparcaout ;;
954 sparc-*-coff) fmt=coff ;;
955 sparc-*-linux*aout*) fmt=aout em=linux ;;
956 sparc-*-linux*) fmt=elf em=linux ;;
957 sparc-*-lynxos*) fmt=coff em=lynx ;;
958 sparc-fujitsu-none) fmt=aout ;;
959 sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
960 fmt=elf ;;
961 sparc-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
962
963 # start-sanitize-tic80
964 tic80-*-*) fmt=coff targ=tic80coff;;
965 # end-sanitize-tic80
966 v850-*-*) fmt=elf bfd_gas=yes ;;
967
968 vax-*-bsd* | vax-*-ultrix*)
969 fmt=aout ;;
970 vax-*-vms) fmt=vms ;;
971
972 z8k-*-coff | z8k-*-sim)
973 fmt=coff ;;
974
975 w65-*-*) fmt=coff ;;
976
977 *-*-aout | *-*-scout)
978 fmt=aout ;;
979 *-*-nindy*)
980 fmt=bout ;;
981 *-*-bsd*)
982 fmt=aout em=sun3 ;;
983 *-*-generic) fmt=generic ;;
984 *-*-xray | *-*-hms) fmt=coff ;;
985 *-*-sim) fmt=coff ;;
986 *-*-elf | *-*-sysv4* | *-*-solaris*)
987 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
988 fmt=elf dev=yes ;;
989 *-*-vxworks) fmt=aout ;;
990 *-*-netware) fmt=elf ;;
991 esac
992
993 case ${cpu_type}-${fmt} in
994 alpha-*) bfd_gas=yes ;;
995 arm-*) bfd_gas=yes ;;
996 # not yet
997 # i386-aout) bfd_gas=preferred ;;
998 mips-*) bfd_gas=yes ;;
999 ns32k-*) bfd_gas=yes ;;
1000 ppc-*) bfd_gas=yes ;;
1001 sparc-*) bfd_gas=yes ;;
1002 *-elf) bfd_gas=yes ;;
1003 *-ecoff) bfd_gas=yes ;;
1004 *-som) bfd_gas=yes ;;
1005 *) ;;
1006 esac
1007
1008 # Other random stuff.
1009
1010 # do we need the opcodes library?
1011 case ${cpu_type} in
1012 vax | i386)
1013 ;;
1014 *)
1015 need_opcodes=yes
1016 if test "${shared_opcodes}" = "true"; then
1017 # A shared libopcodes must be linked against libbfd.
1018 need_bfd=yes
1019 fi
1020 ;;
1021 esac
1022
1023 test -n "$want_sparc_v9" && cat >> confdefs.h <<\EOF
1024 #define SPARC_V9 1
1025 EOF
1026
1027
1028 case ${cpu}-${vendor}-${os} in
1029 sparc64-*-elf*) cat >> confdefs.h <<\EOF
1030 #define SPARC_ARCH64 1
1031 EOF
1032 ;;
1033 esac
1034
1035 case ${cpu_type} in
1036 m68k)
1037 case ${extra_objects} in
1038 *m68k-parse.o*) ;;
1039 *) extra_objects="$extra_objects m68k-parse.o" ;;
1040 esac
1041 ;;
1042
1043 mips)
1044 echo ${extra_objects} | grep -s "itbl-parse.o"
1045 if test $? -ne 0 ; then
1046 extra_objects="$extra_objects itbl-parse.o"
1047 fi
1048
1049 echo ${extra_objects} | grep -s "itbl-lex.o"
1050 if test $? -ne 0 ; then
1051 extra_objects="$extra_objects itbl-lex.o"
1052 fi
1053
1054 echo ${extra_objects} | grep -s "itbl-ops.o"
1055 if test $? -ne 0 ; then
1056 extra_objects="$extra_objects itbl-ops.o"
1057 fi
1058 ;;
1059
1060 *)
1061 ;;
1062 esac
1063
1064 # See if we really can support this configuration with the emulation code.
1065
1066 if test $this_target = $target ; then
1067 primary_bfd_gas=$bfd_gas
1068 obj_format=$fmt
1069 gas_target=$targ
1070 te_file=$em
1071
1072 if test $bfd_gas = no ; then
1073 # Can't support other configurations this way.
1074 break
1075 fi
1076 elif test $bfd_gas = no ; then
1077 # Can't support this configuration.
1078 break
1079 fi
1080
1081 # From target name and format, produce a list of supported emulations.
1082
1083 case ${generic_target}-${fmt} in
1084 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1085 mips-*-linux*-*) case "$endian" in
1086 big) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1087 *) emulation="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
1088 esac ;;
1089 mips-*-lnews*-ecoff) ;;
1090 mips-*-*-ecoff) case "$endian" in
1091 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
1092 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
1093 esac ;;
1094 mips-*-*-elf) case "$endian" in
1095 big) emulation="mipsbelf mipslelf mipself" ;;
1096 *) emulation="mipslelf mipsbelf mipself" ;;
1097 # Uncommenting the next line will turn on support for i386 COFF
1098 # in any i386 ELF configuration. This probably doesn't work
1099 # correctly.
1100 # i386-*-*-elf) emulation="i386coff i386elf" ;;
1101 esac ;;
1102 esac
1103
1104 emulations="$emulations $emulation"
1105
1106 done
1107
1108 # Assign floating point type. Most processors with FP support
1109 # IEEE FP. On those that don't support FP at all, usually IEEE
1110 # is emulated.
1111 case ${target_cpu} in
1112 vax | tahoe ) atof=${target_cpu} ;;
1113 *) atof=ieee ;;
1114 esac
1115
1116 case "${obj_format}" in
1117 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
1118 esac
1119
1120
1121 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
1122 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
1123 fi
1124
1125 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
1126 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
1127 fi
1128
1129 # and target makefile frag
1130
1131 target_frag=${srcdir}/config/${gas_target}.mt
1132 if test ! -r ${target_frag}; then
1133 target_frag=/dev/null # ick! but subst_file can't be conditionalized
1134 fi
1135
1136
1137 case ${user_bfd_gas}-${primary_bfd_gas} in
1138 yes-yes | no-no)
1139 # We didn't override user's choice.
1140 ;;
1141 no-yes)
1142 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
1143 ;;
1144 no-preferred)
1145 primary_bfd_gas=no
1146 ;;
1147 *-preferred)
1148 primary_bfd_gas=yes
1149 ;;
1150 yes-*)
1151 primary_bfd_gas=yes
1152 ;;
1153 -*)
1154 # User specified nothing.
1155 ;;
1156 esac
1157
1158 # Some COFF configurations want these random other flags set.
1159 case ${obj_format} in
1160 coff)
1161 case ${target_cpu_type} in
1162 i386) cat >> confdefs.h <<\EOF
1163 #define I386COFF 1
1164 EOF
1165 ;;
1166 m68k) cat >> confdefs.h <<\EOF
1167 #define M68KCOFF 1
1168 EOF
1169 ;;
1170 m88k) cat >> confdefs.h <<\EOF
1171 #define M88KCOFF 1
1172 EOF
1173 ;;
1174 esac
1175 ;;
1176 esac
1177
1178 # Getting this done right is going to be a bitch. Each configuration specified
1179 # with --enable-targets=... should be checked for environment, format, cpu, and
1180 # bfd_gas setting.
1181 #
1182 # For each configuration, the necessary object file support code must be linked
1183 # in. This might be only one, it might be up to four. The necessary emulation
1184 # code needs to be provided, too.
1185 #
1186 # And then there's "--enable-targets=all"....
1187 #
1188 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
1189
1190 formats="${obj_format}"
1191 emfiles=""
1192 EMULATIONS=""
1193 _gas_uniq_list="$emulations"
1194 _gas_uniq_newlist=""
1195 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
1196 case $_gas_uniq_i in
1197 _gas_uniq_dummy) ;;
1198 *) case " $_gas_uniq_newlist " in
1199 *" $_gas_uniq_i "*) ;;
1200 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
1201 esac ;;
1202 esac
1203 done
1204 emulations=$_gas_uniq_newlist
1205
1206 for em in . $emulations ; do
1207 case $em in
1208 .) continue ;;
1209 mipsbelf | mipslelf)
1210 fmt=elf file=mipself ;;
1211 mipsbecoff | mipslecoff)
1212 fmt=ecoff file=mipsecoff ;;
1213 i386coff)
1214 fmt=coff file=i386coff ;;
1215 i386elf)
1216 fmt=elf file=i386elf ;;
1217 esac
1218 formats="$formats $fmt"
1219 emfiles="$emfiles e-$file.o"
1220 EMULATIONS="$EMULATIONS &$em,"
1221 done
1222 _gas_uniq_list="$formats"
1223 _gas_uniq_newlist=""
1224 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
1225 case $_gas_uniq_i in
1226 _gas_uniq_dummy) ;;
1227 *) case " $_gas_uniq_newlist " in
1228 *" $_gas_uniq_i "*) ;;
1229 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
1230 esac ;;
1231 esac
1232 done
1233 formats=$_gas_uniq_newlist
1234
1235 _gas_uniq_list="$emfiles"
1236 _gas_uniq_newlist=""
1237 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
1238 case $_gas_uniq_i in
1239 _gas_uniq_dummy) ;;
1240 *) case " $_gas_uniq_newlist " in
1241 *" $_gas_uniq_i "*) ;;
1242 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
1243 esac ;;
1244 esac
1245 done
1246 emfiles=$_gas_uniq_newlist
1247
1248 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
1249 for fmt in $formats ; do
1250 case $fmt in
1251 aout) cat >> confdefs.h <<\EOF
1252 #define OBJ_MAYBE_AOUT 1
1253 EOF
1254 ;;
1255 bout) cat >> confdefs.h <<\EOF
1256 #define OBJ_MAYBE_BOUT 1
1257 EOF
1258 ;;
1259 coff) cat >> confdefs.h <<\EOF
1260 #define OBJ_MAYBE_COFF 1
1261 EOF
1262 ;;
1263 ecoff) cat >> confdefs.h <<\EOF
1264 #define OBJ_MAYBE_ECOFF 1
1265 EOF
1266 ;;
1267 elf) cat >> confdefs.h <<\EOF
1268 #define OBJ_MAYBE_ELF 1
1269 EOF
1270 ;;
1271 generic) cat >> confdefs.h <<\EOF
1272 #define OBJ_MAYBE_GENERIC 1
1273 EOF
1274 ;;
1275 hp300) cat >> confdefs.h <<\EOF
1276 #define OBJ_MAYBE_HP300 1
1277 EOF
1278 ;;
1279 ieee) cat >> confdefs.h <<\EOF
1280 #define OBJ_MAYBE_IEEE 1
1281 EOF
1282 ;;
1283 som) cat >> confdefs.h <<\EOF
1284 #define OBJ_MAYBE_SOM 1
1285 EOF
1286 ;;
1287 vms) cat >> confdefs.h <<\EOF
1288 #define OBJ_MAYBE_VMS 1
1289 EOF
1290 ;;
1291 esac
1292 extra_objects="$extra_objects obj-$fmt.o"
1293 done
1294 obj_format=multi
1295 fi
1296 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
1297 te_file=multi
1298 extra_objects="$extra_objects $emfiles"
1299 DEFAULT_EMULATION=`set . $emulations ; echo $2`
1300 cat >> confdefs.h <<\EOF
1301 #define USE_EMULATIONS 1
1302 EOF
1303
1304 fi
1305
1306 cat >> confdefs.h <<EOF
1307 #define EMULATIONS $EMULATIONS
1308 EOF
1309
1310 cat >> confdefs.h <<EOF
1311 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
1312 EOF
1313
1314
1315 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
1316 yes-*-coff) need_bfd=yes ;;
1317 no-*-coff) need_bfd=yes
1318 cat >> confdefs.h <<\EOF
1319 #define MANY_SEGMENTS 1
1320 EOF
1321 ;;
1322 esac
1323
1324 reject_dev_configs=yes
1325
1326 case ${reject_dev_configs}-${dev} in
1327 yes-yes) # Oops.
1328 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
1329 ;;
1330 esac
1331
1332
1333
1334
1335
1336
1337 case "${primary_bfd_gas}" in
1338 yes) cat >> confdefs.h <<\EOF
1339 #define BFD_ASSEMBLER 1
1340 EOF
1341
1342 need_bfd=yes ;;
1343 esac
1344
1345 # do we need the opcodes library?
1346 case "${need_opcodes}" in
1347 yes)
1348 OPCODES_DEP=../opcodes/libopcodes.a
1349 OPCODES_LIB='-L../opcodes -lopcodes'
1350
1351 # We need to handle some special cases for shared libraries.
1352 case "${host}" in
1353 *-*-sunos*)
1354 # On SunOS, we must link against the name we are going to install,
1355 # not -lbfd, since SunOS does not support SONAME.
1356 if test "${shared_opcodes}" = "true"; then
1357 OPCODES_LIB='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`'
1358 fi
1359 ;;
1360 alpha*-*-osf*)
1361 # On Alpha OSF/1, the native linker searches all the -L
1362 # directories for any LIB.so files, and only then searches for any
1363 # LIB.a files. That means that if there is an installed
1364 # libbfd.so, but this build is not done with --enable-shared, the
1365 # link will wind up being against the install libbfd.so rather
1366 # than the newly built libbfd. To avoid this, we must explicitly
1367 # link against libbfd.a when --enable-shared is not used.
1368 if test "${shared_opcodes}" != "true"; then
1369 OPCODES_LIB='../opcodes/libopcodes.a'
1370 fi
1371 ;;
1372 esac
1373 ;;
1374 esac
1375
1376 case "${need_bfd}" in
1377 yes)
1378 BFDDEP=../bfd/libbfd.a
1379 BFDLIB='-L../bfd -lbfd'
1380 ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
1381
1382 # We need to handle some special cases for shared libraries
1383 case "${host}" in
1384 *-*-sunos*)
1385 # On SunOS, we must link against the name we are going to install,
1386 # not -lbfd, since SunOS does not support SONAME.
1387 if test "${shared_bfd}" = "true"; then
1388 BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
1389 fi
1390 ;;
1391 alpha*-*-osf*)
1392 # On Alpha OSF/1, the native linker searches all the -L
1393 # directories for any LIB.so files, and only then searches for any
1394 # LIB.a files. That means that if there is an installed
1395 # libbfd.so, but this build is not done with --enable-shared, the
1396 # link will wind up being against the install libbfd.so rather
1397 # than the newly built libbfd. To avoid this, we must explicitly
1398 # link against libbfd.a when --enable-shared is not used.
1399 if test "${shared_bfd}" != "true"; then
1400 BFDLIB='../bfd/libbfd.a'
1401 fi
1402 ;;
1403 esac
1404
1405 if test "${commonbfdlib}" = "true"; then
1406 # when a shared libbfd is built with --enable-commonbfdlib,
1407 # all of libopcodes is available in libbfd.so
1408 OPCODES_LIB=
1409 fi
1410 ;;
1411 esac
1412
1413
1414
1415
1416
1417
1418
1419
1420 cat >> confdefs.h <<EOF
1421 #define TARGET_ALIAS "${target_alias}"
1422 EOF
1423
1424 cat >> confdefs.h <<EOF
1425 #define TARGET_CANONICAL "${target}"
1426 EOF
1427
1428 cat >> confdefs.h <<EOF
1429 #define TARGET_CPU "${target_cpu}"
1430 EOF
1431
1432 cat >> confdefs.h <<EOF
1433 #define TARGET_VENDOR "${target_vendor}"
1434 EOF
1435
1436 cat >> confdefs.h <<EOF
1437 #define TARGET_OS "${target_os}"
1438 EOF
1439
1440
1441 # Extract the first word of "gcc", so it can be a program name with args.
1442 set dummy gcc; ac_word=$2
1443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1444 echo "configure:1445: checking for $ac_word" >&5
1445 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1447 else
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1450 else
1451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1452 for ac_dir in $PATH; do
1453 test -z "$ac_dir" && ac_dir=.
1454 if test -f $ac_dir/$ac_word; then
1455 ac_cv_prog_CC="gcc"
1456 break
1457 fi
1458 done
1459 IFS="$ac_save_ifs"
1460 fi
1461 fi
1462 CC="$ac_cv_prog_CC"
1463 if test -n "$CC"; then
1464 echo "$ac_t""$CC" 1>&6
1465 else
1466 echo "$ac_t""no" 1>&6
1467 fi
1468
1469 if test -z "$CC"; then
1470 # Extract the first word of "cc", so it can be a program name with args.
1471 set dummy cc; ac_word=$2
1472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1473 echo "configure:1474: checking for $ac_word" >&5
1474 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1476 else
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1481 ac_prog_rejected=no
1482 for ac_dir in $PATH; do
1483 test -z "$ac_dir" && ac_dir=.
1484 if test -f $ac_dir/$ac_word; then
1485 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1486 ac_prog_rejected=yes
1487 continue
1488 fi
1489 ac_cv_prog_CC="cc"
1490 break
1491 fi
1492 done
1493 IFS="$ac_save_ifs"
1494 if test $ac_prog_rejected = yes; then
1495 # We found a bogon in the path, so make sure we never use it.
1496 set dummy $ac_cv_prog_CC
1497 shift
1498 if test $# -gt 0; then
1499 # We chose a different compiler from the bogus one.
1500 # However, it has the same basename, so the bogon will be chosen
1501 # first if we set CC to just the basename; use the full file name.
1502 shift
1503 set dummy "$ac_dir/$ac_word" "$@"
1504 shift
1505 ac_cv_prog_CC="$@"
1506 fi
1507 fi
1508 fi
1509 fi
1510 CC="$ac_cv_prog_CC"
1511 if test -n "$CC"; then
1512 echo "$ac_t""$CC" 1>&6
1513 else
1514 echo "$ac_t""no" 1>&6
1515 fi
1516
1517 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1518 fi
1519
1520 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1521 echo "configure:1522: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1522
1523 ac_ext=c
1524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1525 ac_cpp='$CPP $CPPFLAGS'
1526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1527 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1528 cross_compiling=$ac_cv_prog_cc_cross
1529
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1533 main(){return(0);}
1534 EOF
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1536 ac_cv_prog_cc_works=yes
1537 # If we can't run a trivial program, we are probably using a cross compiler.
1538 if (./conftest; exit) 2>/dev/null; then
1539 ac_cv_prog_cc_cross=no
1540 else
1541 ac_cv_prog_cc_cross=yes
1542 fi
1543 else
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1546 ac_cv_prog_cc_works=no
1547 fi
1548 rm -fr conftest*
1549
1550 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1551 if test $ac_cv_prog_cc_works = no; then
1552 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1553 fi
1554 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1555 echo "configure:1556: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1556 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1557 cross_compiling=$ac_cv_prog_cc_cross
1558
1559 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1560 echo "configure:1561: checking whether we are using GNU C" >&5
1561 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564 cat > conftest.c <<EOF
1565 #ifdef __GNUC__
1566 yes;
1567 #endif
1568 EOF
1569 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1570 ac_cv_prog_gcc=yes
1571 else
1572 ac_cv_prog_gcc=no
1573 fi
1574 fi
1575
1576 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1577
1578 if test $ac_cv_prog_gcc = yes; then
1579 GCC=yes
1580 ac_test_CFLAGS="${CFLAGS+set}"
1581 ac_save_CFLAGS="$CFLAGS"
1582 CFLAGS=
1583 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1584 echo "configure:1585: checking whether ${CC-cc} accepts -g" >&5
1585 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1587 else
1588 echo 'void f(){}' > conftest.c
1589 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1590 ac_cv_prog_cc_g=yes
1591 else
1592 ac_cv_prog_cc_g=no
1593 fi
1594 rm -f conftest*
1595
1596 fi
1597
1598 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1599 if test "$ac_test_CFLAGS" = set; then
1600 CFLAGS="$ac_save_CFLAGS"
1601 elif test $ac_cv_prog_cc_g = yes; then
1602 CFLAGS="-g -O2"
1603 else
1604 CFLAGS="-O2"
1605 fi
1606 else
1607 GCC=
1608 test "${CFLAGS+set}" = set || CFLAGS="-g"
1609 fi
1610
1611 # Find a good install program. We prefer a C program (faster),
1612 # so one script is as good as another. But avoid the broken or
1613 # incompatible versions:
1614 # SysV /etc/install, /usr/sbin/install
1615 # SunOS /usr/etc/install
1616 # IRIX /sbin/install
1617 # AIX /bin/install
1618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1620 # ./install, which can be erroneously created by make from ./install.sh.
1621 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1622 echo "configure:1623: checking for a BSD compatible install" >&5
1623 if test -z "$INSTALL"; then
1624 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1626 else
1627 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1628 for ac_dir in $PATH; do
1629 # Account for people who put trailing slashes in PATH elements.
1630 case "$ac_dir/" in
1631 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1632 *)
1633 # OSF1 and SCO ODT 3.0 have their own names for install.
1634 for ac_prog in ginstall installbsd scoinst install; do
1635 if test -f $ac_dir/$ac_prog; then
1636 if test $ac_prog = install &&
1637 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1638 # AIX install. It has an incompatible calling convention.
1639 # OSF/1 installbsd also uses dspmsg, but is usable.
1640 :
1641 else
1642 ac_cv_path_install="$ac_dir/$ac_prog -c"
1643 break 2
1644 fi
1645 fi
1646 done
1647 ;;
1648 esac
1649 done
1650 IFS="$ac_save_IFS"
1651
1652 fi
1653 if test "${ac_cv_path_install+set}" = set; then
1654 INSTALL="$ac_cv_path_install"
1655 else
1656 # As a last resort, use the slow shell script. We don't cache a
1657 # path for INSTALL within a source directory, because that will
1658 # break other packages using the cache if that directory is
1659 # removed, or if the path is relative.
1660 INSTALL="$ac_install_sh"
1661 fi
1662 fi
1663 echo "$ac_t""$INSTALL" 1>&6
1664
1665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1666 # It thinks the first close brace ends the variable substitution.
1667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1668
1669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1670
1671
1672 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1673 echo "configure:1674: checking how to run the C preprocessor" >&5
1674 # On Suns, sometimes $CPP names a directory.
1675 if test -n "$CPP" && test -d "$CPP"; then
1676 CPP=
1677 fi
1678 if test -z "$CPP"; then
1679 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1681 else
1682 # This must be in double quotes, not single quotes, because CPP may get
1683 # substituted into the Makefile and "${CC-cc}" will confuse make.
1684 CPP="${CC-cc} -E"
1685 # On the NeXT, cc -E runs the code through the compiler's parser,
1686 # not just through cpp.
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690 #include <assert.h>
1691 Syntax Error
1692 EOF
1693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1694 { (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1695 ac_err=`grep -v '^ *+' conftest.out`
1696 if test -z "$ac_err"; then
1697 :
1698 else
1699 echo "$ac_err" >&5
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1702 rm -rf conftest*
1703 CPP="${CC-cc} -E -traditional-cpp"
1704 cat > conftest.$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1707 #include <assert.h>
1708 Syntax Error
1709 EOF
1710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1711 { (eval echo configure:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1712 ac_err=`grep -v '^ *+' conftest.out`
1713 if test -z "$ac_err"; then
1714 :
1715 else
1716 echo "$ac_err" >&5
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1719 rm -rf conftest*
1720 CPP=/lib/cpp
1721 fi
1722 rm -f conftest*
1723 fi
1724 rm -f conftest*
1725 ac_cv_prog_CPP="$CPP"
1726 fi
1727 CPP="$ac_cv_prog_CPP"
1728 else
1729 ac_cv_prog_CPP="$CPP"
1730 fi
1731 echo "$ac_t""$CPP" 1>&6
1732
1733 for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
1734 do
1735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_hdr" >&5
1738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1740 else
1741 cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1744 #include <$ac_hdr>
1745 EOF
1746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1747 { (eval echo configure:1748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1748 ac_err=`grep -v '^ *+' conftest.out`
1749 if test -z "$ac_err"; then
1750 rm -rf conftest*
1751 eval "ac_cv_header_$ac_safe=yes"
1752 else
1753 echo "$ac_err" >&5
1754 echo "configure: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1756 rm -rf conftest*
1757 eval "ac_cv_header_$ac_safe=no"
1758 fi
1759 rm -f conftest*
1760 fi
1761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1764 cat >> confdefs.h <<EOF
1765 #define $ac_tr_hdr 1
1766 EOF
1767
1768 else
1769 echo "$ac_t""no" 1>&6
1770 fi
1771 done
1772
1773
1774 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
1775 # people who are not cross-compiling but are compiling cross-assemblers.
1776 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
1777 echo "configure:1778: checking whether compiling a cross-assembler" >&5
1778 if test "${host}" = "${target}"; then
1779 cross_gas=no
1780 else
1781 cross_gas=yes
1782 cat >> confdefs.h <<\EOF
1783 #define CROSS_COMPILE 1
1784 EOF
1785
1786 fi
1787 echo "$ac_t""$cross_gas" 1>&6
1788
1789 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1790 # for constant arguments. Useless!
1791 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1792 echo "configure:1793: checking for working alloca.h" >&5
1793 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1795 else
1796 cat > conftest.$ac_ext <<EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1799 #include <alloca.h>
1800 int main() {
1801 char *p = alloca(2 * sizeof(int));
1802 ; return 0; }
1803 EOF
1804 if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1805 rm -rf conftest*
1806 ac_cv_header_alloca_h=yes
1807 else
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1810 rm -rf conftest*
1811 ac_cv_header_alloca_h=no
1812 fi
1813 rm -f conftest*
1814 fi
1815
1816 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1817 if test $ac_cv_header_alloca_h = yes; then
1818 cat >> confdefs.h <<\EOF
1819 #define HAVE_ALLOCA_H 1
1820 EOF
1821
1822 fi
1823
1824 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1825 echo "configure:1826: checking for alloca" >&5
1826 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1828 else
1829 cat > conftest.$ac_ext <<EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1832
1833 #ifdef __GNUC__
1834 # define alloca __builtin_alloca
1835 #else
1836 # if HAVE_ALLOCA_H
1837 # include <alloca.h>
1838 # else
1839 # ifdef _AIX
1840 #pragma alloca
1841 # else
1842 # ifndef alloca /* predefined by HP cc +Olibcalls */
1843 char *alloca ();
1844 # endif
1845 # endif
1846 # endif
1847 #endif
1848
1849 int main() {
1850 char *p = (char *) alloca(1);
1851 ; return 0; }
1852 EOF
1853 if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1854 rm -rf conftest*
1855 ac_cv_func_alloca_works=yes
1856 else
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1859 rm -rf conftest*
1860 ac_cv_func_alloca_works=no
1861 fi
1862 rm -f conftest*
1863 fi
1864
1865 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1866 if test $ac_cv_func_alloca_works = yes; then
1867 cat >> confdefs.h <<\EOF
1868 #define HAVE_ALLOCA 1
1869 EOF
1870
1871 fi
1872
1873 if test $ac_cv_func_alloca_works = no; then
1874 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1875 # that cause trouble. Some versions do not even contain alloca or
1876 # contain a buggy version. If you still want to use their alloca,
1877 # use ar to extract alloca.o from them instead of compiling alloca.c.
1878 ALLOCA=alloca.o
1879 cat >> confdefs.h <<\EOF
1880 #define C_ALLOCA 1
1881 EOF
1882
1883
1884 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1885 echo "configure:1886: checking whether alloca needs Cray hooks" >&5
1886 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1888 else
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1892 #if defined(CRAY) && ! defined(CRAY2)
1893 webecray
1894 #else
1895 wenotbecray
1896 #endif
1897
1898 EOF
1899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1900 egrep "webecray" >/dev/null 2>&1; then
1901 rm -rf conftest*
1902 ac_cv_os_cray=yes
1903 else
1904 rm -rf conftest*
1905 ac_cv_os_cray=no
1906 fi
1907 rm -f conftest*
1908
1909 fi
1910
1911 echo "$ac_t""$ac_cv_os_cray" 1>&6
1912 if test $ac_cv_os_cray = yes; then
1913 for ac_func in _getb67 GETB67 getb67; do
1914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_func" >&5
1916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1922 /* System header to define __stub macros and hopefully few prototypes,
1923 which can conflict with char $ac_func(); below. */
1924 #include <assert.h>
1925 /* Override any gcc2 internal prototype to avoid an error. */
1926 /* We use char because int might match the return type of a gcc2
1927 builtin and then its argument prototype would still apply. */
1928 char $ac_func();
1929
1930 int main() {
1931
1932 /* The GNU C library defines this for functions which it implements
1933 to always fail with ENOSYS. Some functions are actually named
1934 something starting with __ and the normal name is an alias. */
1935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1936 choke me
1937 #else
1938 $ac_func();
1939 #endif
1940
1941 ; return 0; }
1942 EOF
1943 if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1944 rm -rf conftest*
1945 eval "ac_cv_func_$ac_func=yes"
1946 else
1947 echo "configure: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1949 rm -rf conftest*
1950 eval "ac_cv_func_$ac_func=no"
1951 fi
1952 rm -f conftest*
1953 fi
1954
1955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1956 echo "$ac_t""yes" 1>&6
1957 cat >> confdefs.h <<EOF
1958 #define CRAY_STACKSEG_END $ac_func
1959 EOF
1960
1961 break
1962 else
1963 echo "$ac_t""no" 1>&6
1964 fi
1965
1966 done
1967 fi
1968
1969 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1970 echo "configure:1971: checking stack direction for C alloca" >&5
1971 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1973 else
1974 if test "$cross_compiling" = yes; then
1975 ac_cv_c_stack_direction=0
1976 else
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1980 find_stack_direction ()
1981 {
1982 static char *addr = 0;
1983 auto char dummy;
1984 if (addr == 0)
1985 {
1986 addr = &dummy;
1987 return find_stack_direction ();
1988 }
1989 else
1990 return (&dummy > addr) ? 1 : -1;
1991 }
1992 main ()
1993 {
1994 exit (find_stack_direction() < 0);
1995 }
1996 EOF
1997 if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1998 then
1999 ac_cv_c_stack_direction=1
2000 else
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2003 rm -fr conftest*
2004 ac_cv_c_stack_direction=-1
2005 fi
2006 rm -fr conftest*
2007 fi
2008
2009 fi
2010
2011 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2012 cat >> confdefs.h <<EOF
2013 #define STACK_DIRECTION $ac_cv_c_stack_direction
2014 EOF
2015
2016 fi
2017
2018 echo $ac_n "checking for inline""... $ac_c" 1>&6
2019 echo "configure:2020: checking for inline" >&5
2020 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2022 else
2023 ac_cv_c_inline=no
2024 for ac_kw in inline __inline__ __inline; do
2025 cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028
2029 int main() {
2030 } $ac_kw foo() {
2031 ; return 0; }
2032 EOF
2033 if { (eval echo configure:2034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2034 rm -rf conftest*
2035 ac_cv_c_inline=$ac_kw; break
2036 else
2037 echo "configure: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2039 fi
2040 rm -f conftest*
2041 done
2042
2043 fi
2044
2045 echo "$ac_t""$ac_cv_c_inline" 1>&6
2046 case "$ac_cv_c_inline" in
2047 inline | yes) ;;
2048 no) cat >> confdefs.h <<\EOF
2049 #define inline
2050 EOF
2051 ;;
2052 *) cat >> confdefs.h <<EOF
2053 #define inline $ac_cv_c_inline
2054 EOF
2055 ;;
2056 esac
2057
2058
2059 # VMS doesn't have unlink.
2060 for ac_func in unlink remove
2061 do
2062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2063 echo "configure:2064: checking for $ac_func" >&5
2064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 /* System header to define __stub macros and hopefully few prototypes,
2071 which can conflict with char $ac_func(); below. */
2072 #include <assert.h>
2073 /* Override any gcc2 internal prototype to avoid an error. */
2074 /* We use char because int might match the return type of a gcc2
2075 builtin and then its argument prototype would still apply. */
2076 char $ac_func();
2077
2078 int main() {
2079
2080 /* The GNU C library defines this for functions which it implements
2081 to always fail with ENOSYS. Some functions are actually named
2082 something starting with __ and the normal name is an alias. */
2083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2084 choke me
2085 #else
2086 $ac_func();
2087 #endif
2088
2089 ; return 0; }
2090 EOF
2091 if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2092 rm -rf conftest*
2093 eval "ac_cv_func_$ac_func=yes"
2094 else
2095 echo "configure: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2097 rm -rf conftest*
2098 eval "ac_cv_func_$ac_func=no"
2099 fi
2100 rm -f conftest*
2101 fi
2102
2103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2104 echo "$ac_t""yes" 1>&6
2105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2106 cat >> confdefs.h <<EOF
2107 #define $ac_tr_func 1
2108 EOF
2109 break
2110 else
2111 echo "$ac_t""no" 1>&6
2112 fi
2113 done
2114
2115
2116 # Some systems don't have sbrk().
2117 for ac_func in sbrk
2118 do
2119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_func" >&5
2121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124 cat > conftest.$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2127 /* System header to define __stub macros and hopefully few prototypes,
2128 which can conflict with char $ac_func(); below. */
2129 #include <assert.h>
2130 /* Override any gcc2 internal prototype to avoid an error. */
2131 /* We use char because int might match the return type of a gcc2
2132 builtin and then its argument prototype would still apply. */
2133 char $ac_func();
2134
2135 int main() {
2136
2137 /* The GNU C library defines this for functions which it implements
2138 to always fail with ENOSYS. Some functions are actually named
2139 something starting with __ and the normal name is an alias. */
2140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2141 choke me
2142 #else
2143 $ac_func();
2144 #endif
2145
2146 ; return 0; }
2147 EOF
2148 if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2149 rm -rf conftest*
2150 eval "ac_cv_func_$ac_func=yes"
2151 else
2152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 rm -rf conftest*
2155 eval "ac_cv_func_$ac_func=no"
2156 fi
2157 rm -f conftest*
2158 fi
2159
2160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2161 echo "$ac_t""yes" 1>&6
2162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2163 cat >> confdefs.h <<EOF
2164 #define $ac_tr_func 1
2165 EOF
2166
2167 else
2168 echo "$ac_t""no" 1>&6
2169 fi
2170 done
2171
2172
2173 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
2174 # enough, but on some of those systems, the assert macro relies on requoting
2175 # working properly!
2176 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
2177 echo "configure:2178: checking for working assert macro" >&5
2178 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181 cat > conftest.$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2184 #include <assert.h>
2185 #include <stdio.h>
2186 int main() {
2187
2188 /* check for requoting problems */
2189 static int a, b, c, d;
2190 static char *s;
2191 assert (!strcmp(s, "foo bar baz quux"));
2192 /* check for newline handling */
2193 assert (a == b
2194 || c == d);
2195
2196 ; return 0; }
2197 EOF
2198 if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2199 rm -rf conftest*
2200 gas_cv_assert_ok=yes
2201 else
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2204 rm -rf conftest*
2205 gas_cv_assert_ok=no
2206 fi
2207 rm -f conftest*
2208 fi
2209 echo "$ac_t""$gas_cv_assert_ok" 1>&6
2210 test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
2211 #define BROKEN_ASSERT 1
2212 EOF
2213
2214
2215
2216 # On some systems, the system header files may not declare malloc, realloc,
2217 # and free. There are places where gas needs these functions to have been
2218 # declared -- such as when taking their addresses.
2219 gas_test_headers="
2220 #ifdef HAVE_MEMORY_H
2221 #include <memory.h>
2222 #endif
2223 #ifdef HAVE_STRING_H
2224 #include <string.h>
2225 #else
2226 #ifdef HAVE_STRINGS_H
2227 #include <strings.h>
2228 #endif
2229 #endif
2230 #ifdef HAVE_STDLIB_H
2231 #include <stdlib.h>
2232 #endif
2233 #ifdef HAVE_UNISTD_H
2234 #include <unistd.h>
2235 #endif
2236 "
2237
2238 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
2239 echo "configure:2240: checking whether declaration is required for strstr" >&5
2240 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2242 else
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 $gas_test_headers
2247 int main() {
2248
2249 typedef char *(*f)();
2250 f x;
2251 x = (f) strstr;
2252
2253 ; return 0; }
2254 EOF
2255 if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2256 rm -rf conftest*
2257 gas_cv_decl_needed_strstr=no
2258 else
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2261 rm -rf conftest*
2262 gas_cv_decl_needed_strstr=yes
2263 fi
2264 rm -f conftest*
2265 fi
2266 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
2267 test $gas_cv_decl_needed_strstr = no || {
2268 cat >> confdefs.h <<\EOF
2269 #define NEED_DECLARATION_STRSTR 1
2270 EOF
2271
2272 }
2273
2274
2275 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
2276 echo "configure:2277: checking whether declaration is required for malloc" >&5
2277 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2279 else
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2283 $gas_test_headers
2284 int main() {
2285
2286 typedef char *(*f)();
2287 f x;
2288 x = (f) malloc;
2289
2290 ; return 0; }
2291 EOF
2292 if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2293 rm -rf conftest*
2294 gas_cv_decl_needed_malloc=no
2295 else
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 rm -rf conftest*
2299 gas_cv_decl_needed_malloc=yes
2300 fi
2301 rm -f conftest*
2302 fi
2303 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
2304 test $gas_cv_decl_needed_malloc = no || {
2305 cat >> confdefs.h <<\EOF
2306 #define NEED_DECLARATION_MALLOC 1
2307 EOF
2308
2309 }
2310
2311
2312 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
2313 echo "configure:2314: checking whether declaration is required for free" >&5
2314 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2316 else
2317 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2320 $gas_test_headers
2321 int main() {
2322
2323 typedef void (*f)();
2324 f x;
2325 x = (f) free;
2326
2327 ; return 0; }
2328 EOF
2329 if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2330 rm -rf conftest*
2331 gas_cv_decl_needed_free=no
2332 else
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 rm -rf conftest*
2336 gas_cv_decl_needed_free=yes
2337 fi
2338 rm -f conftest*
2339 fi
2340 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
2341 test $gas_cv_decl_needed_free = no || {
2342 cat >> confdefs.h <<\EOF
2343 #define NEED_DECLARATION_FREE 1
2344 EOF
2345
2346 }
2347
2348
2349 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
2350 echo "configure:2351: checking whether declaration is required for sbrk" >&5
2351 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2353 else
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 $gas_test_headers
2358 int main() {
2359
2360 typedef char *(*f)();
2361 f x;
2362 x = (f) sbrk;
2363
2364 ; return 0; }
2365 EOF
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2367 rm -rf conftest*
2368 gas_cv_decl_needed_sbrk=no
2369 else
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 rm -rf conftest*
2373 gas_cv_decl_needed_sbrk=yes
2374 fi
2375 rm -f conftest*
2376 fi
2377 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
2378 test $gas_cv_decl_needed_sbrk = no || {
2379 cat >> confdefs.h <<\EOF
2380 #define NEED_DECLARATION_SBRK 1
2381 EOF
2382
2383 }
2384
2385
2386 # Does errno.h declare errno, or do we have to add a separate declaration
2387 # for it?
2388
2389 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
2390 echo "configure:2391: checking whether declaration is required for errno" >&5
2391 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2393 else
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397
2398 #ifdef HAVE_ERRNO_H
2399 #include <errno.h>
2400 #endif
2401
2402 int main() {
2403
2404 typedef int f;
2405 f x;
2406 x = (f) errno;
2407
2408 ; return 0; }
2409 EOF
2410 if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2411 rm -rf conftest*
2412 gas_cv_decl_needed_errno=no
2413 else
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2416 rm -rf conftest*
2417 gas_cv_decl_needed_errno=yes
2418 fi
2419 rm -f conftest*
2420 fi
2421 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
2422 test $gas_cv_decl_needed_errno = no || {
2423 cat >> confdefs.h <<\EOF
2424 #define NEED_DECLARATION_ERRNO 1
2425 EOF
2426
2427 }
2428
2429
2430 HLDFLAGS=
2431 HLDENV=
2432 RPATH_ENVVAR=LD_LIBRARY_PATH
2433 # If we have shared libraries, try to set rpath reasonably.
2434 if test "${shared}" = "true"; then
2435 case "${host}" in
2436 *-*-hpux*)
2437 HLDFLAGS='-Wl,+s,+b,$(libdir)'
2438 RPATH_ENVVAR=SHLIB_PATH
2439 ;;
2440 *-*-irix5* | *-*-irix6*)
2441 HLDFLAGS='-Wl,-rpath,$(libdir)'
2442 ;;
2443 *-*-linux*aout*)
2444 ;;
2445 *-*-linux*)
2446 HLDFLAGS='-Wl,-rpath,$(libdir)'
2447 ;;
2448 *-*-solaris*)
2449 HLDFLAGS='-R $(libdir)'
2450 ;;
2451 *-*-sysv4*)
2452 HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
2453 ;;
2454 esac
2455 fi
2456
2457 # On SunOS, if the linker supports the -rpath option, use it to
2458 # prevent ../bfd and ../opcodes from being included in the run time
2459 # search path.
2460 case "${host}" in
2461 *-*-sunos*)
2462 echo 'main () { }' > conftest.c
2463 ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
2464 if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
2465 :
2466 elif grep 'No such file' conftest.t >/dev/null 2>&1; then
2467 :
2468 elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
2469 :
2470 elif test "${shared}" = "true"; then
2471 HLDFLAGS='-Wl,-rpath=$(libdir)'
2472 else
2473 HLDFLAGS='-Wl,-rpath='
2474 fi
2475 rm -f conftest.t conftest.c conftest
2476 ;;
2477 esac
2478
2479
2480
2481
2482
2483
2484 trap '' 1 2 15
2485 cat > confcache <<\EOF
2486 # This file is a shell script that caches the results of configure
2487 # tests run on this system so they can be shared between configure
2488 # scripts and configure runs. It is not useful on other systems.
2489 # If it contains results you don't want to keep, you may remove or edit it.
2490 #
2491 # By default, configure uses ./config.cache as the cache file,
2492 # creating it if it does not exist already. You can give configure
2493 # the --cache-file=FILE option to use a different cache file; that is
2494 # what configure does when it calls configure scripts in
2495 # subdirectories, so they share the cache.
2496 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2497 # config.status only pays attention to the cache file if you give it the
2498 # --recheck option to rerun configure.
2499 #
2500 EOF
2501 # The following way of writing the cache mishandles newlines in values,
2502 # but we know of no workaround that is simple, portable, and efficient.
2503 # So, don't put newlines in cache variables' values.
2504 # Ultrix sh set writes to stderr and can't be redirected directly,
2505 # and sets the high bit in the cache file unless we assign to the vars.
2506 (set) 2>&1 |
2507 case `(ac_space=' '; set) 2>&1` in
2508 *ac_space=\ *)
2509 # `set' does not quote correctly, so add quotes (double-quote substitution
2510 # turns \\\\ into \\, and sed turns \\ into \).
2511 sed -n \
2512 -e "s/'/'\\\\''/g" \
2513 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2514 ;;
2515 *)
2516 # `set' quotes correctly as required by POSIX, so do not add quotes.
2517 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2518 ;;
2519 esac >> confcache
2520 if cmp -s $cache_file confcache; then
2521 :
2522 else
2523 if test -w $cache_file; then
2524 echo "updating cache $cache_file"
2525 cat confcache > $cache_file
2526 else
2527 echo "not updating unwritable cache $cache_file"
2528 fi
2529 fi
2530 rm -f confcache
2531
2532 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2533
2534 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2535 # Let make expand exec_prefix.
2536 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2537
2538 # Any assignment to VPATH causes Sun make to only execute
2539 # the first set of double-colon rules, so remove it if not needed.
2540 # If there is a colon in the path, we need to keep it.
2541 if test "x$srcdir" = x.; then
2542 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2543 fi
2544
2545 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2546
2547 DEFS=-DHAVE_CONFIG_H
2548
2549 # Without the "./", some shells look in PATH for config.status.
2550 : ${CONFIG_STATUS=./config.status}
2551
2552 echo creating $CONFIG_STATUS
2553 rm -f $CONFIG_STATUS
2554 cat > $CONFIG_STATUS <<EOF
2555 #! /bin/sh
2556 # Generated automatically by configure.
2557 # Run this file to recreate the current configuration.
2558 # This directory was configured as follows,
2559 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2560 #
2561 # $0 $ac_configure_args
2562 #
2563 # Compiler output produced by configure, useful for debugging
2564 # configure, is in ./config.log if it exists.
2565
2566 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2567 for ac_option
2568 do
2569 case "\$ac_option" in
2570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2571 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2572 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2573 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2574 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2575 exit 0 ;;
2576 -help | --help | --hel | --he | --h)
2577 echo "\$ac_cs_usage"; exit 0 ;;
2578 *) echo "\$ac_cs_usage"; exit 1 ;;
2579 esac
2580 done
2581
2582 ac_given_srcdir=$srcdir
2583 ac_given_INSTALL="$INSTALL"
2584
2585 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in conf" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2586 EOF
2587 cat >> $CONFIG_STATUS <<EOF
2588
2589 # Protect against being on the right side of a sed subst in config.status.
2590 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2591 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2592 $ac_vpsub
2593 $extrasub
2594 s%@CFLAGS@%$CFLAGS%g
2595 s%@CPPFLAGS@%$CPPFLAGS%g
2596 s%@CXXFLAGS@%$CXXFLAGS%g
2597 s%@DEFS@%$DEFS%g
2598 s%@LDFLAGS@%$LDFLAGS%g
2599 s%@LIBS@%$LIBS%g
2600 s%@exec_prefix@%$exec_prefix%g
2601 s%@prefix@%$prefix%g
2602 s%@program_transform_name@%$program_transform_name%g
2603 s%@bindir@%$bindir%g
2604 s%@sbindir@%$sbindir%g
2605 s%@libexecdir@%$libexecdir%g
2606 s%@datadir@%$datadir%g
2607 s%@sysconfdir@%$sysconfdir%g
2608 s%@sharedstatedir@%$sharedstatedir%g
2609 s%@localstatedir@%$localstatedir%g
2610 s%@libdir@%$libdir%g
2611 s%@includedir@%$includedir%g
2612 s%@oldincludedir@%$oldincludedir%g
2613 s%@infodir@%$infodir%g
2614 s%@mandir@%$mandir%g
2615 s%@host@%$host%g
2616 s%@host_alias@%$host_alias%g
2617 s%@host_cpu@%$host_cpu%g
2618 s%@host_vendor@%$host_vendor%g
2619 s%@host_os@%$host_os%g
2620 s%@target@%$target%g
2621 s%@target_alias@%$target_alias%g
2622 s%@target_cpu@%$target_cpu%g
2623 s%@target_vendor@%$target_vendor%g
2624 s%@target_os@%$target_os%g
2625 s%@build@%$build%g
2626 s%@build_alias@%$build_alias%g
2627 s%@build_cpu@%$build_cpu%g
2628 s%@build_vendor@%$build_vendor%g
2629 s%@build_os@%$build_os%g
2630 /@target_frag@/r $target_frag
2631 s%@target_frag@%%g
2632 s%@extra_objects@%$extra_objects%g
2633 s%@target_cpu_type@%$target_cpu_type%g
2634 s%@obj_format@%$obj_format%g
2635 s%@te_file@%$te_file%g
2636 s%@atof@%$atof%g
2637 s%@BFDDEP@%$BFDDEP%g
2638 s%@BFDLIB@%$BFDLIB%g
2639 s%@OPCODES_DEP@%$OPCODES_DEP%g
2640 s%@OPCODES_LIB@%$OPCODES_LIB%g
2641 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
2642 s%@CC@%$CC%g
2643 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2644 s%@INSTALL_DATA@%$INSTALL_DATA%g
2645 s%@CPP@%$CPP%g
2646 s%@ALLOCA@%$ALLOCA%g
2647 s%@HLDFLAGS@%$HLDFLAGS%g
2648 s%@HLDENV@%$HLDENV%g
2649 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
2650
2651 CEOF
2652 EOF
2653
2654 cat >> $CONFIG_STATUS <<\EOF
2655
2656 # Split the substitutions into bite-sized pieces for seds with
2657 # small command number limits, like on Digital OSF/1 and HP-UX.
2658 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2659 ac_file=1 # Number of current file.
2660 ac_beg=1 # First line for current file.
2661 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2662 ac_more_lines=:
2663 ac_sed_cmds=""
2664 while $ac_more_lines; do
2665 if test $ac_beg -gt 1; then
2666 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2667 else
2668 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2669 fi
2670 if test ! -s conftest.s$ac_file; then
2671 ac_more_lines=false
2672 rm -f conftest.s$ac_file
2673 else
2674 if test -z "$ac_sed_cmds"; then
2675 ac_sed_cmds="sed -f conftest.s$ac_file"
2676 else
2677 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2678 fi
2679 ac_file=`expr $ac_file + 1`
2680 ac_beg=$ac_end
2681 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2682 fi
2683 done
2684 if test -z "$ac_sed_cmds"; then
2685 ac_sed_cmds=cat
2686 fi
2687 EOF
2688
2689 cat >> $CONFIG_STATUS <<EOF
2690
2691 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"}
2692 EOF
2693 cat >> $CONFIG_STATUS <<\EOF
2694 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2695 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2696 case "$ac_file" in
2697 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2698 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2699 *) ac_file_in="${ac_file}.in" ;;
2700 esac
2701
2702 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2703
2704 # Remove last slash and all that follows it. Not all systems have dirname.
2705 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2706 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2707 # The file is in a subdirectory.
2708 test ! -d "$ac_dir" && mkdir "$ac_dir"
2709 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2710 # A "../" for each directory in $ac_dir_suffix.
2711 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2712 else
2713 ac_dir_suffix= ac_dots=
2714 fi
2715
2716 case "$ac_given_srcdir" in
2717 .) srcdir=.
2718 if test -z "$ac_dots"; then top_srcdir=.
2719 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2720 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2721 *) # Relative path.
2722 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2723 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2724 esac
2725
2726 case "$ac_given_INSTALL" in
2727 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2728 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2729 esac
2730
2731 echo creating "$ac_file"
2732 rm -f "$ac_file"
2733 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2734 case "$ac_file" in
2735 *Makefile*) ac_comsub="1i\\
2736 # $configure_input" ;;
2737 *) ac_comsub= ;;
2738 esac
2739
2740 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2741 sed -e "$ac_comsub
2742 s%@configure_input@%$configure_input%g
2743 s%@srcdir@%$srcdir%g
2744 s%@top_srcdir@%$top_srcdir%g
2745 s%@INSTALL@%$INSTALL%g
2746 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2747 fi; done
2748 rm -f conftest.s*
2749
2750 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2751 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2752 #
2753 # ac_d sets the value in "#define NAME VALUE" lines.
2754 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2755 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2756 ac_dC='\3'
2757 ac_dD='%g'
2758 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2759 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2760 ac_uB='\([ ]\)%\1#\2define\3'
2761 ac_uC=' '
2762 ac_uD='\4%g'
2763 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2764 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2765 ac_eB='$%\1#\2define\3'
2766 ac_eC=' '
2767 ac_eD='%g'
2768
2769 if test "${CONFIG_HEADERS+set}" != set; then
2770 EOF
2771 cat >> $CONFIG_STATUS <<EOF
2772 CONFIG_HEADERS="conf"
2773 EOF
2774 cat >> $CONFIG_STATUS <<\EOF
2775 fi
2776 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2777 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2778 case "$ac_file" in
2779 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2780 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2781 *) ac_file_in="${ac_file}.in" ;;
2782 esac
2783
2784 echo creating $ac_file
2785
2786 rm -f conftest.frag conftest.in conftest.out
2787 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2788 cat $ac_file_inputs > conftest.in
2789
2790 EOF
2791
2792 # Transform confdefs.h into a sed script conftest.vals that substitutes
2793 # the proper values into config.h.in to produce config.h. And first:
2794 # Protect against being on the right side of a sed subst in config.status.
2795 # Protect against being in an unquoted here document in config.status.
2796 rm -f conftest.vals
2797 cat > conftest.hdr <<\EOF
2798 s/[\\&%]/\\&/g
2799 s%[\\$`]%\\&%g
2800 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2801 s%ac_d%ac_u%gp
2802 s%ac_u%ac_e%gp
2803 EOF
2804 sed -n -f conftest.hdr confdefs.h > conftest.vals
2805 rm -f conftest.hdr
2806
2807 # This sed command replaces #undef with comments. This is necessary, for
2808 # example, in the case of _POSIX_SOURCE, which is predefined and required
2809 # on some systems where configure will not decide to define it.
2810 cat >> conftest.vals <<\EOF
2811 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2812 EOF
2813
2814 # Break up conftest.vals because some shells have a limit on
2815 # the size of here documents, and old seds have small limits too.
2816
2817 rm -f conftest.tail
2818 while :
2819 do
2820 ac_lines=`grep -c . conftest.vals`
2821 # grep -c gives empty output for an empty file on some AIX systems.
2822 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2823 # Write a limited-size here document to conftest.frag.
2824 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2825 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2826 echo 'CEOF
2827 sed -f conftest.frag conftest.in > conftest.out
2828 rm -f conftest.in
2829 mv conftest.out conftest.in
2830 ' >> $CONFIG_STATUS
2831 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2832 rm -f conftest.vals
2833 mv conftest.tail conftest.vals
2834 done
2835 rm -f conftest.vals
2836
2837 cat >> $CONFIG_STATUS <<\EOF
2838 rm -f conftest.frag conftest.h
2839 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2840 cat conftest.in >> conftest.h
2841 rm -f conftest.in
2842 if cmp -s $ac_file conftest.h 2>/dev/null; then
2843 echo "$ac_file is unchanged"
2844 rm -f conftest.h
2845 else
2846 # Remove last slash and all that follows it. Not all systems have dirname.
2847 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2848 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2849 # The file is in a subdirectory.
2850 test ! -d "$ac_dir" && mkdir "$ac_dir"
2851 fi
2852 rm -f $ac_file
2853 mv conftest.h $ac_file
2854 fi
2855 fi; done
2856
2857 EOF
2858 cat >> $CONFIG_STATUS <<EOF
2859 target_cpu_type=${target_cpu_type}
2860 obj_format=${obj_format}
2861 te_file=${te_file}
2862 EOF
2863 cat >> $CONFIG_STATUS <<\EOF
2864 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
2865 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
2866 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
2867 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
2868 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
2869 exit 0
2870 EOF
2871 chmod +x $CONFIG_STATUS
2872 rm -fr confdefs* $ac_clean_files
2873 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2874
This page took 0.162878 seconds and 5 git commands to generate.