Sanitize away vu0 stuff unless --keep-r5900.
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
c62d1274
ILT
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
a3515171 4# Generated automatically using autoconf version 2.12.1
e3659cbf 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
c62d1274
ILT
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
1daed53f
ILT
15 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
16ac_help="$ac_help
17 --enable-shared build shared libraries [default=yes]"
e0bf1022 18ac_help="$ac_help
1daed53f
ILT
19 --enable-static build static libraries [default=yes]"
20ac_help="$ac_help
21 --enable-targets alternative target configurations"
e0bf1022
ILT
22ac_help="$ac_help
23 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
1daed53f
ILT
24ac_help="$ac_help
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
c62d1274
ILT
27
28# Initialize some variables set by options.
29# The variables have the same names as the options, with
30# dashes changed to underlines.
31build=NONE
32cache_file=./config.cache
33exec_prefix=NONE
34host=NONE
35no_create=
36nonopt=NONE
37no_recursion=
38prefix=NONE
39program_prefix=NONE
40program_suffix=NONE
41program_transform_name=s,x,x,
42silent=
43site=
44srcdir=
45target=NONE
46verbose=
47x_includes=NONE
48x_libraries=NONE
00103dfa
ILT
49bindir='${exec_prefix}/bin'
50sbindir='${exec_prefix}/sbin'
51libexecdir='${exec_prefix}/libexec'
52datadir='${prefix}/share'
53sysconfdir='${prefix}/etc'
54sharedstatedir='${prefix}/com'
55localstatedir='${prefix}/var'
56libdir='${exec_prefix}/lib'
57includedir='${prefix}/include'
58oldincludedir='/usr/include'
59infodir='${prefix}/info'
60mandir='${prefix}/man'
c62d1274
ILT
61
62# Initialize some other variables.
63subdirs=
00103dfa 64MFLAGS= MAKEFLAGS=
cd66558c 65SHELL=${CONFIG_SHELL-/bin/sh}
9c03036a
DE
66# Maximum number of lines to put in a shell here document.
67ac_max_here_lines=12
c62d1274
ILT
68
69ac_prev=
70for ac_option
71do
72
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
76 ac_prev=
77 continue
78 fi
79
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
84
85 # Accept the important Cygnus configure options, so we can diagnose typos.
86
87 case "$ac_option" in
88
00103dfa
ILT
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
93
94 -build | --build | --buil | --bui | --bu)
c62d1274 95 ac_prev=build ;;
00103dfa 96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c62d1274
ILT
97 build="$ac_optarg" ;;
98
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
105
00103dfa
ILT
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
111
c62d1274
ILT
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 fi
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
120
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 fi
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 case "$ac_option" in
129 *=*) ;;
130 *) ac_optarg=yes ;;
131 esac
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
142
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
146
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
150 cat << EOF
151Usage: configure [options] [host]
152Options: [defaults in brackets after descriptions]
153Configuration:
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
161 [$ac_default_prefix]
00103dfa 162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
c62d1274 163 [same as prefix]
00103dfa
ILT
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
168 [PREFIX/share]
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 [PREFIX/com]
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
c62d1274
ILT
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
00103dfa
ILT
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
183EOF
184 cat << EOF
c62d1274
ILT
185Host type:
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
c62d1274 196EOF
00103dfa
ILT
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
199 fi
c62d1274
ILT
200 exit 0 ;;
201
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
206
00103dfa
ILT
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
213
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
218
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
223
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
230
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
239
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
244
c62d1274
ILT
245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
248
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
252
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 no_recursion=yes ;;
256
00103dfa
ILT
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
265
c62d1274
ILT
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 ac_prev=prefix ;;
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
270
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
277
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
284
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
301
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
304 silent=yes ;;
305
00103dfa
ILT
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
311
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
315 | --sha | --sh)
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 | --sha=* | --sh=*)
321 sharedstatedir="$ac_optarg" ;;
322
c62d1274
ILT
323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
327
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
332
00103dfa
ILT
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
339
c62d1274
ILT
340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
344
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
347
348 -version | --version | --versio | --versi | --vers)
a3515171 349 echo "configure generated by autoconf version 2.12.1"
c62d1274
ILT
350 exit 0 ;;
351
352 -with-* | --with-*)
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 fi
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "with_${ac_package}='$ac_optarg'" ;;
364
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 fi
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
373
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
377
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
384
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
391
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 ;;
394
00103dfa 395 *)
c62d1274
ILT
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 fi
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 fi
402 nonopt="$ac_option"
403 ;;
404
405 esac
406done
407
408if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414# File descriptor usage:
415# 0 standard input
416# 1 file creation
417# 2 errors and warnings
418# 3 some systems may open it to /dev/tty
419# 4 used on the Kubota Titan
420# 6 checking for... messages and results
421# 5 compiler messages saved in config.log
422if test "$silent" = yes; then
423 exec 6>/dev/null
424else
425 exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
439 case "$ac_arg" in
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 esac
448done
449
450# NLS nuisances.
9c03036a
DE
451# Only set these to C if already set. These must not be set unconditionally
452# because not all systems understand e.g. LANG=C (notably SCO).
453# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454# Non-C LC_CTYPE values break the ctype check.
c62d1274 455if test "${LANG+set}" = set; then LANG=C; export LANG; fi
9c03036a
DE
456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
c62d1274
ILT
459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
465# A filename unique to this package, relative to the directory that
466# configure is in, which we can look for to find out if srcdir is correct.
467ac_unique_file=z8k-dis.c
468
469# Find the source files, if location was not specified.
470if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
479 fi
480else
481 ac_srcdir_defaulted=no
482fi
483if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 else
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 else
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 fi
499fi
500for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
503 . "$ac_site_file"
504 fi
505done
506
1daed53f
ILT
507if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510else
511 echo "creating cache $cache_file"
512 > $cache_file
513fi
514
515ac_ext=c
516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517ac_cpp='$CPP $CPPFLAGS'
518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520cross_compiling=$ac_cv_prog_cc_cross
521
522if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525 ac_n= ac_c='
526' ac_t=' '
527 else
528 ac_n=-n ac_c= ac_t=
529 fi
530else
531 ac_n= ac_c='\c' ac_t=
532fi
533
534
535
536ac_aux_dir=
537for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538 if test -f $ac_dir/install-sh; then
539 ac_aux_dir=$ac_dir
540 ac_install_sh="$ac_aux_dir/install-sh -c"
541 break
542 elif test -f $ac_dir/install.sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install.sh -c"
545 break
546 fi
547done
548if test -z "$ac_aux_dir"; then
549 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550fi
551ac_config_guess=$ac_aux_dir/config.guess
552ac_config_sub=$ac_aux_dir/config.sub
553ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554
555
556# Do some error checking and defaulting for the host and target type.
557# The inputs are:
558# configure --host=HOST --target=TARGET --build=BUILD NONOPT
559#
560# The rules are:
561# 1. You are not allowed to specify --host, --target, and nonopt at the
562# same time.
563# 2. Host defaults to nonopt.
564# 3. If nonopt is not specified, then host defaults to the current host,
565# as determined by config.guess.
566# 4. Target and build default to nonopt.
567# 5. If nonopt is not specified, then target and build default to host.
568
569# The aliases save the names the user supplied, while $host etc.
570# will get canonicalized.
571case $host---$target---$nonopt in
572NONE---*---* | *---NONE---* | *---*---NONE) ;;
573*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
574esac
575
576
577# Make sure we can run config.sub.
a3515171 578if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1daed53f
ILT
579else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
580fi
581
582echo $ac_n "checking host system type""... $ac_c" 1>&6
788e3f91 583echo "configure:584: checking host system type" >&5
1daed53f
ILT
584
585host_alias=$host
586case "$host_alias" in
587NONE)
588 case $nonopt in
589 NONE)
a3515171 590 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1daed53f
ILT
591 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
592 fi ;;
593 *) host_alias=$nonopt ;;
594 esac ;;
595esac
596
a3515171 597host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1daed53f
ILT
598host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
599host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
600host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
601echo "$ac_t""$host" 1>&6
602
603echo $ac_n "checking target system type""... $ac_c" 1>&6
788e3f91 604echo "configure:605: checking target system type" >&5
1daed53f
ILT
605
606target_alias=$target
607case "$target_alias" in
608NONE)
609 case $nonopt in
610 NONE) target_alias=$host_alias ;;
611 *) target_alias=$nonopt ;;
612 esac ;;
613esac
614
a3515171 615target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1daed53f
ILT
616target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
617target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
618target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
619echo "$ac_t""$target" 1>&6
620
621echo $ac_n "checking build system type""... $ac_c" 1>&6
788e3f91 622echo "configure:623: checking build system type" >&5
1daed53f
ILT
623
624build_alias=$build
625case "$build_alias" in
626NONE)
627 case $nonopt in
628 NONE) build_alias=$host_alias ;;
629 *) build_alias=$nonopt ;;
630 esac ;;
631esac
632
a3515171 633build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1daed53f
ILT
634build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637echo "$ac_t""$build" 1>&6
638
639test "$host_alias" != "$target_alias" &&
640 test "$program_prefix$program_suffix$program_transform_name" = \
641 NONENONEs,x,x, &&
642 program_prefix=${target_alias}-
643
644
ef3c03a4
ILT
645# We currently only use the version number for the name of any shared
646# library. For user convenience, we always use the same version
647# number that BFD is using.
648BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
649
1daed53f
ILT
650# Find a good install program. We prefer a C program (faster),
651# so one script is as good as another. But avoid the broken or
652# incompatible versions:
653# SysV /etc/install, /usr/sbin/install
654# SunOS /usr/etc/install
655# IRIX /sbin/install
656# AIX /bin/install
cd66558c 657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1daed53f
ILT
658# AFS /usr/afsws/bin/install, which mishandles nonexistent args
659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
660# ./install, which can be erroneously created by make from ./install.sh.
661echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
ef3c03a4 662echo "configure:663: checking for a BSD compatible install" >&5
1daed53f
ILT
663if test -z "$INSTALL"; then
664if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
666else
667 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
668 for ac_dir in $PATH; do
669 # Account for people who put trailing slashes in PATH elements.
670 case "$ac_dir/" in
671 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
672 *)
673 # OSF1 and SCO ODT 3.0 have their own names for install.
cd66558c
NC
674 # Don't use installbsd from OSF since it installs stuff as root
675 # by default.
676 for ac_prog in ginstall scoinst install; do
1daed53f
ILT
677 if test -f $ac_dir/$ac_prog; then
678 if test $ac_prog = install &&
679 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
680 # AIX install. It has an incompatible calling convention.
1daed53f
ILT
681 :
682 else
683 ac_cv_path_install="$ac_dir/$ac_prog -c"
684 break 2
685 fi
686 fi
687 done
688 ;;
689 esac
690 done
691 IFS="$ac_save_IFS"
692
693fi
694 if test "${ac_cv_path_install+set}" = set; then
695 INSTALL="$ac_cv_path_install"
696 else
697 # As a last resort, use the slow shell script. We don't cache a
698 # path for INSTALL within a source directory, because that will
699 # break other packages using the cache if that directory is
700 # removed, or if the path is relative.
701 INSTALL="$ac_install_sh"
702 fi
703fi
704echo "$ac_t""$INSTALL" 1>&6
705
706# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
707# It thinks the first close brace ends the variable substitution.
708test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
709
710test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
711
712
713test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
714
715
716PACKAGE=opcodes
717
ef3c03a4 718VERSION=${BFD_VERSION}
1daed53f
ILT
719
720if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
721 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
722fi
723cat >> confdefs.h <<EOF
724#define PACKAGE "$PACKAGE"
725EOF
726
727cat >> confdefs.h <<EOF
728#define VERSION "$VERSION"
729EOF
730
731echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
ef3c03a4 732echo "configure:733: checking whether build environment is sane" >&5
1daed53f
ILT
733# Just in case
734sleep 1
735echo timestamp > conftestfile
736# Do `set' in a subshell so we don't clobber the current shell's
737# arguments. Must try -L first in case configure is actually a
738# symlink; some systems play weird games with the mod time of symlinks
739# (eg FreeBSD returns the mod time of the symlink's containing
740# directory).
741if (
742 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
743 if test "" = "X"; then
744 # -L didn't work.
745 set X `ls -t $srcdir/configure conftestfile`
746 fi
747 test "$2" = conftestfile
748 )
749then
750 # Ok.
751 :
752else
753 { echo "configure: error: newly created file is older than distributed files!
754Check your system clock" 1>&2; exit 1; }
755fi
756rm -f conftest*
757echo "$ac_t""yes" 1>&6
758if test "$program_transform_name" = s,x,x,; then
759 program_transform_name=
760else
761 # Double any \ or $. echo might interpret backslashes.
762 cat <<\EOF_SED > conftestsed
763s,\\,\\\\,g; s,\$,$$,g
764EOF_SED
765 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
766 rm -f conftestsed
767fi
768test "$program_prefix" != NONE &&
769 program_transform_name="s,^,${program_prefix},; $program_transform_name"
770# Use a double $ so make ignores it.
771test "$program_suffix" != NONE &&
772 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
773
774# sed with no file args requires a program.
775test "$program_transform_name" = "" && program_transform_name="s,x,x,"
776
777missing_dir=`cd $ac_aux_dir && pwd`
778echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
ef3c03a4 779echo "configure:780: checking for working aclocal" >&5
1daed53f
ILT
780# Run test in a subshell; some versions of sh will print an error if
781# an executable is not found, even if stderr is redirected.
782# Redirect stdin to placate older versions of autoconf. Sigh.
783if (aclocal --version) < /dev/null > /dev/null 2>&1; then
784 ACLOCAL=aclocal
785 echo "$ac_t""found" 1>&6
786else
787 ACLOCAL="$missing_dir/missing aclocal"
788 echo "$ac_t""missing" 1>&6
789fi
790
791echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
ef3c03a4 792echo "configure:793: checking for working autoconf" >&5
1daed53f
ILT
793# Run test in a subshell; some versions of sh will print an error if
794# an executable is not found, even if stderr is redirected.
795# Redirect stdin to placate older versions of autoconf. Sigh.
796if (autoconf --version) < /dev/null > /dev/null 2>&1; then
797 AUTOCONF=autoconf
798 echo "$ac_t""found" 1>&6
799else
800 AUTOCONF="$missing_dir/missing autoconf"
801 echo "$ac_t""missing" 1>&6
802fi
803
804echo $ac_n "checking for working automake""... $ac_c" 1>&6
ef3c03a4 805echo "configure:806: checking for working automake" >&5
1daed53f
ILT
806# Run test in a subshell; some versions of sh will print an error if
807# an executable is not found, even if stderr is redirected.
808# Redirect stdin to placate older versions of autoconf. Sigh.
809if (automake --version) < /dev/null > /dev/null 2>&1; then
810 AUTOMAKE=automake
811 echo "$ac_t""found" 1>&6
812else
813 AUTOMAKE="$missing_dir/missing automake"
814 echo "$ac_t""missing" 1>&6
815fi
816
817echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
ef3c03a4 818echo "configure:819: checking for working autoheader" >&5
1daed53f
ILT
819# Run test in a subshell; some versions of sh will print an error if
820# an executable is not found, even if stderr is redirected.
821# Redirect stdin to placate older versions of autoconf. Sigh.
822if (autoheader --version) < /dev/null > /dev/null 2>&1; then
823 AUTOHEADER=autoheader
824 echo "$ac_t""found" 1>&6
825else
826 AUTOHEADER="$missing_dir/missing autoheader"
827 echo "$ac_t""missing" 1>&6
828fi
829
830echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
ef3c03a4 831echo "configure:832: checking for working makeinfo" >&5
1daed53f
ILT
832# Run test in a subshell; some versions of sh will print an error if
833# an executable is not found, even if stderr is redirected.
834# Redirect stdin to placate older versions of autoconf. Sigh.
835if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
836 MAKEINFO=makeinfo
837 echo "$ac_t""found" 1>&6
838else
839 MAKEINFO="$missing_dir/missing makeinfo"
840 echo "$ac_t""missing" 1>&6
841fi
842
843echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
ef3c03a4 844echo "configure:845: checking whether ${MAKE-make} sets \${MAKE}" >&5
1daed53f
ILT
845set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
846if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
848else
849 cat > conftestmake <<\EOF
850all:
851 @echo 'ac_maketemp="${MAKE}"'
852EOF
853# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
854eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
855if test -n "$ac_maketemp"; then
856 eval ac_cv_prog_make_${ac_make}_set=yes
857else
858 eval ac_cv_prog_make_${ac_make}_set=no
859fi
860rm -f conftestmake
861fi
862if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
863 echo "$ac_t""yes" 1>&6
864 SET_MAKE=
865else
866 echo "$ac_t""no" 1>&6
867 SET_MAKE="MAKE=${MAKE-make}"
868fi
869
870
cd66558c
NC
871if test $host != $build; then
872 ac_tool_prefix=${host_alias}-
873else
874 ac_tool_prefix=
875fi
876
877# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
878set dummy ${ac_tool_prefix}ar; ac_word=$2
879echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ef3c03a4 880echo "configure:881: checking for $ac_word" >&5
cd66558c
NC
881if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
882 echo $ac_n "(cached) $ac_c" 1>&6
883else
884 if test -n "$AR"; then
885 ac_cv_prog_AR="$AR" # Let the user override the test.
886else
887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
888 for ac_dir in $PATH; do
889 test -z "$ac_dir" && ac_dir=.
890 if test -f $ac_dir/$ac_word; then
891 ac_cv_prog_AR="${ac_tool_prefix}ar"
892 break
893 fi
894 done
895 IFS="$ac_save_ifs"
896 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
897fi
898fi
899AR="$ac_cv_prog_AR"
900if test -n "$AR"; then
901 echo "$ac_t""$AR" 1>&6
902else
903 echo "$ac_t""no" 1>&6
904fi
905
906
907
908# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
909set dummy ${ac_tool_prefix}ranlib; ac_word=$2
910echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ef3c03a4 911echo "configure:912: checking for $ac_word" >&5
cd66558c
NC
912if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
914else
915 if test -n "$RANLIB"; then
916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
917else
918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
919 for ac_dir in $PATH; do
920 test -z "$ac_dir" && ac_dir=.
921 if test -f $ac_dir/$ac_word; then
922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
923 break
924 fi
925 done
926 IFS="$ac_save_ifs"
927fi
928fi
929RANLIB="$ac_cv_prog_RANLIB"
930if test -n "$RANLIB"; then
931 echo "$ac_t""$RANLIB" 1>&6
932else
933 echo "$ac_t""no" 1>&6
934fi
935
936
937if test -z "$ac_cv_prog_RANLIB"; then
938if test -n "$ac_tool_prefix"; then
939 # Extract the first word of "ranlib", so it can be a program name with args.
940set dummy ranlib; ac_word=$2
941echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ef3c03a4 942echo "configure:943: checking for $ac_word" >&5
cd66558c
NC
943if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
945else
946 if test -n "$RANLIB"; then
947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
948else
949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
950 for ac_dir in $PATH; do
951 test -z "$ac_dir" && ac_dir=.
952 if test -f $ac_dir/$ac_word; then
953 ac_cv_prog_RANLIB="ranlib"
954 break
955 fi
956 done
957 IFS="$ac_save_ifs"
958 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
959fi
960fi
961RANLIB="$ac_cv_prog_RANLIB"
962if test -n "$RANLIB"; then
963 echo "$ac_t""$RANLIB" 1>&6
964else
965 echo "$ac_t""no" 1>&6
966fi
967
968else
969 RANLIB=":"
970fi
971fi
972
973
788e3f91
ILT
974libtool_enable_shared=no
975
976# Extract the first word of "ranlib", so it can be a program name with args.
977set dummy ranlib; ac_word=$2
978echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ef3c03a4 979echo "configure:980: checking for $ac_word" >&5
788e3f91
ILT
980if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
982else
983 if test -n "$RANLIB"; then
984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
985else
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
987 for ac_dir in $PATH; do
988 test -z "$ac_dir" && ac_dir=.
989 if test -f $ac_dir/$ac_word; then
990 ac_cv_prog_RANLIB="ranlib"
991 break
992 fi
993 done
994 IFS="$ac_save_ifs"
995 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
996fi
997fi
998RANLIB="$ac_cv_prog_RANLIB"
999if test -n "$RANLIB"; then
1000 echo "$ac_t""$RANLIB" 1>&6
1001else
1002 echo "$ac_t""no" 1>&6
1003fi
1004
1daed53f
ILT
1005# Extract the first word of "gcc", so it can be a program name with args.
1006set dummy gcc; ac_word=$2
1007echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ef3c03a4 1008echo "configure:1009: checking for $ac_word" >&5
1daed53f
ILT
1009if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1011else
1012 if test -n "$CC"; then
1013 ac_cv_prog_CC="$CC" # Let the user override the test.
1014else
1015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1016 for ac_dir in $PATH; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1019 ac_cv_prog_CC="gcc"
1020 break
1021 fi
1022 done
1023 IFS="$ac_save_ifs"
1024fi
1025fi
1026CC="$ac_cv_prog_CC"
1027if test -n "$CC"; then
1028 echo "$ac_t""$CC" 1>&6
1029else
1030 echo "$ac_t""no" 1>&6
1031fi
1032
1033if test -z "$CC"; then
1034 # Extract the first word of "cc", so it can be a program name with args.
1035set dummy cc; ac_word=$2
1036echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ef3c03a4 1037echo "configure:1038: checking for $ac_word" >&5
1daed53f
ILT
1038if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1040else
1041 if test -n "$CC"; then
1042 ac_cv_prog_CC="$CC" # Let the user override the test.
1043else
1044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1045 ac_prog_rejected=no
1046 for ac_dir in $PATH; do
1047 test -z "$ac_dir" && ac_dir=.
1048 if test -f $ac_dir/$ac_word; then
1049 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1050 ac_prog_rejected=yes
1051 continue
1052 fi
1053 ac_cv_prog_CC="cc"
1054 break
1055 fi
1056 done
1057 IFS="$ac_save_ifs"
1058if test $ac_prog_rejected = yes; then
1059 # We found a bogon in the path, so make sure we never use it.
1060 set dummy $ac_cv_prog_CC
1061 shift
1062 if test $# -gt 0; then
1063 # We chose a different compiler from the bogus one.
1064 # However, it has the same basename, so the bogon will be chosen
1065 # first if we set CC to just the basename; use the full file name.
1066 shift
1067 set dummy "$ac_dir/$ac_word" "$@"
1068 shift
1069 ac_cv_prog_CC="$@"
1070 fi
1071fi
1072fi
1073fi
1074CC="$ac_cv_prog_CC"
1075if test -n "$CC"; then
1076 echo "$ac_t""$CC" 1>&6
1077else
1078 echo "$ac_t""no" 1>&6
1079fi
1080
1081 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1082fi
1083
1084echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
ef3c03a4 1085echo "configure:1086: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1daed53f
ILT
1086
1087ac_ext=c
1088# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1089ac_cpp='$CPP $CPPFLAGS'
1090ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1091ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1092cross_compiling=$ac_cv_prog_cc_cross
1093
1094cat > conftest.$ac_ext <<EOF
ef3c03a4 1095#line 1096 "configure"
1daed53f
ILT
1096#include "confdefs.h"
1097main(){return(0);}
1098EOF
ef3c03a4 1099if { (eval echo configure:1100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1daed53f
ILT
1100 ac_cv_prog_cc_works=yes
1101 # If we can't run a trivial program, we are probably using a cross compiler.
1102 if (./conftest; exit) 2>/dev/null; then
1103 ac_cv_prog_cc_cross=no
1104 else
1105 ac_cv_prog_cc_cross=yes
1106 fi
1107else
1108 echo "configure: failed program was:" >&5
1109 cat conftest.$ac_ext >&5
1110 ac_cv_prog_cc_works=no
1111fi
1112rm -fr conftest*
1113
1114echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1115if test $ac_cv_prog_cc_works = no; then
1116 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1117fi
1118echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ef3c03a4 1119echo "configure:1120: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1daed53f
ILT
1120echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1121cross_compiling=$ac_cv_prog_cc_cross
1122
1123echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
ef3c03a4 1124echo "configure:1125: checking whether we are using GNU C" >&5
1daed53f
ILT
1125if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1127else
1128 cat > conftest.c <<EOF
1129#ifdef __GNUC__
1130 yes;
1131#endif
1132EOF
ef3c03a4 1133if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1daed53f
ILT
1134 ac_cv_prog_gcc=yes
1135else
1136 ac_cv_prog_gcc=no
1137fi
1138fi
1139
1140echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1141
1142if test $ac_cv_prog_gcc = yes; then
1143 GCC=yes
1144 ac_test_CFLAGS="${CFLAGS+set}"
1145 ac_save_CFLAGS="$CFLAGS"
1146 CFLAGS=
1147 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
ef3c03a4 1148echo "configure:1149: checking whether ${CC-cc} accepts -g" >&5
1daed53f
ILT
1149if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1151else
1152 echo 'void f(){}' > conftest.c
1153if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1154 ac_cv_prog_cc_g=yes
1155else
1156 ac_cv_prog_cc_g=no
1157fi
1158rm -f conftest*
1159
1160fi
1161
1162echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1163 if test "$ac_test_CFLAGS" = set; then
1164 CFLAGS="$ac_save_CFLAGS"
1165 elif test $ac_cv_prog_cc_g = yes; then
1166 CFLAGS="-g -O2"
1167 else
1168 CFLAGS="-O2"
1169 fi
1170else
1171 GCC=
1172 test "${CFLAGS+set}" = set || CFLAGS="-g"
1173fi
1174
1daed53f
ILT
1175# Check whether --with-gnu-ld or --without-gnu-ld was given.
1176if test "${with_gnu_ld+set}" = set; then
1177 withval="$with_gnu_ld"
1178 test "$withval" = no || with_gnu_ld=yes
1179else
1180 with_gnu_ld=no
1181fi
1182
788e3f91
ILT
1183
1184ac_prog=ld
1185if test "$ac_cv_prog_gcc" = yes; then
1186 # Check if gcc -print-prog-name=ld gives a path.
1187 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
ef3c03a4 1188echo "configure:1189: checking for ld used by GCC" >&5
788e3f91
ILT
1189 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1190 case "$ac_prog" in
1191 # Accept absolute paths.
1192 /*)
1193 test -z "$LD" && LD="$ac_prog"
1194 ;;
1195 "")
1196 # If it fails, then pretend we aren't using GCC.
1197 ac_prog=ld
1198 ;;
1199 *)
1200 # If it is relative, then search for the first ld in PATH.
1201 with_gnu_ld=unknown
1202 ;;
1203 esac
1204elif test "$with_gnu_ld" = yes; then
1daed53f 1205 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
ef3c03a4 1206echo "configure:1207: checking for GNU ld" >&5
1daed53f
ILT
1207else
1208 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
ef3c03a4 1209echo "configure:1210: checking for non-GNU ld" >&5
1daed53f
ILT
1210fi
1211if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1213else
788e3f91 1214 if test -z "$LD"; then
1daed53f
ILT
1215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1216 for ac_dir in $PATH; do
1217 test -z "$ac_dir" && ac_dir=.
788e3f91
ILT
1218 if test -f "$ac_dir/$ac_prog"; then
1219 ac_cv_path_LD="$ac_dir/$ac_prog"
1daed53f
ILT
1220 # Check to see if the program is GNU ld. I'd rather use --version,
1221 # but apparently some GNU ld's only accept -v.
1222 # Break only if it was the GNU/non-GNU ld that we prefer.
788e3f91
ILT
1223 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1224 test "$with_gnu_ld" != no && break
1daed53f
ILT
1225 else
1226 test "$with_gnu_ld" != yes && break
1227 fi
1228 fi
1229 done
1230 IFS="$ac_save_ifs"
788e3f91 1231else
af36ce35 1232 ac_cv_path_LD="$LD" # Let the user override the test with a path.
788e3f91 1233fi
1daed53f
ILT
1234fi
1235
1236LD="$ac_cv_path_LD"
1237if test -n "$LD"; then
1238 echo "$ac_t""$LD" 1>&6
1239else
1240 echo "$ac_t""no" 1>&6
1241fi
1242test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1243
788e3f91 1244echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
ef3c03a4 1245echo "configure:1246: checking if the linker ($LD) is GNU ld" >&5
1daed53f
ILT
1246if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1248else
1249 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
788e3f91 1250if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1daed53f
ILT
1251 ac_cv_prog_gnu_ld=yes
1252else
1253 ac_cv_prog_gnu_ld=no
1254fi
1255fi
1256
1257echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1258
1259
788e3f91 1260echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
ef3c03a4 1261echo "configure:1262: checking for BSD-compatible nm" >&5
788e3f91
ILT
1262if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1264else
1265 case "$NM" in
1266/*)
1267 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1268 ;;
1269*)
1270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1271 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1272 test -z "$ac_dir" && dir=.
1273 if test -f $ac_dir/nm; then
1274 # Check to see if the nm accepts a BSD-compat flag.
1275 # Adding the `sed 1!d' prevents false positives on HP-UX, which says:
1276 # nm: unknown option "B" ignored
1277 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then
1278 ac_cv_path_NM="$ac_dir/nm -B"
1279 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then
1280 ac_cv_path_NM="$ac_dir/nm -p"
1281 else
1282 ac_cv_path_NM="$ac_dir/nm"
1283 fi
1284 break
1285 fi
1286 done
1287 IFS="$ac_save_ifs"
1288 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1289 ;;
1290esac
1291fi
1292
1293NM="$ac_cv_path_NM"
1294echo "$ac_t""$NM" 1>&6
1295
1296
1daed53f 1297echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
ef3c03a4 1298echo "configure:1299: checking whether ln -s works" >&5
1daed53f
ILT
1299if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301else
1302 rm -f conftestdata
1303if ln -s X conftestdata 2>/dev/null
1304then
1305 rm -f conftestdata
1306 ac_cv_prog_LN_S="ln -s"
1307else
1308 ac_cv_prog_LN_S=ln
1309fi
1310fi
1311LN_S="$ac_cv_prog_LN_S"
1312if test "$ac_cv_prog_LN_S" = "ln -s"; then
1313 echo "$ac_t""yes" 1>&6
1314else
1315 echo "$ac_t""no" 1>&6
1316fi
1317
1318
1319
1320
1321
1322
1323
788e3f91 1324
1daed53f 1325# Always use our own libtool.
bfc10abe 1326LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1daed53f
ILT
1327
1328
1329# Check whether --enable-shared or --disable-shared was given.
1330if test "${enable_shared+set}" = set; then
1331 enableval="$enable_shared"
ea0c3c6c
DE
1332 p=${PACKAGE-bogus-package-name}
1333 case "$enableval" in
788e3f91
ILT
1334 yes) libtool_enable_shared=yes ;;
1335 no) libtool_enable_shared=no ;;
ea0c3c6c
DE
1336 # The value of $p (aka $PACKAGE) is assumed to come from AM_INIT_AUTOMAKE.
1337 # If it didn't, it'll be `bogus-package-name', thus making this condition
1338 # not be used.
788e3f91
ILT
1339 *$p*) libtool_enable_shared=yes ;;
1340 *) libtool_enable_shared=no ;;
ea0c3c6c 1341esac
c62d1274
ILT
1342fi
1343
788e3f91 1344test -n "$libtool_enable_shared" && enable_shared="$libtool_enable_shared"
2f403ada
ILT
1345libtool_shared=
1346test "$enable_shared" = no && libtool_shared=" --disable-shared"
c62d1274 1347
1daed53f
ILT
1348# Check whether --enable-static or --disable-static was given.
1349if test "${enable_static+set}" = set; then
1350 enableval="$enable_static"
2f403ada 1351 if test "$enableval" = no; then
788e3f91 1352 libtool_enable_static=no
c62d1274 1353else
788e3f91 1354 libtool_enable_static=yes
2f403ada 1355fi
c62d1274
ILT
1356fi
1357
788e3f91 1358test -n "$libtool_enable_static" && enable_static="$libtool_enable_static"
2f403ada
ILT
1359libtool_static=
1360test "$enable_static" = no && libtool_static=" --disable-static"
c62d1274 1361
1daed53f
ILT
1362libtool_flags="$libtool_shared$libtool_static"
1363test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1364test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1365test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1366
1367# Some flags need to be propagated to the compiler or linker for good
1368# libtool support.
1369case "$host" in
ef3c03a4
ILT
1370*-*-irix*)
1371 # Find out which ABI we are using.
1372 echo '#line 1373 "configure"' > conftest.$ac_ext
1373 if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374 case "`/usr/bin/file conftest.o`" in
1375 *32-bit*)
1376 LD="${LD-ld} -32"
788e3f91 1377 ;;
ef3c03a4
ILT
1378 *N32*)
1379 LD="${LD-ld} -n32"
1380 ;;
1381 *64-bit*)
1382 LD="${LD-ld} -64"
788e3f91
ILT
1383 ;;
1384 esac
ef3c03a4
ILT
1385 fi
1386 rm -rf conftest*
1daed53f
ILT
1387 ;;
1388
1389*-*-sco3.2v5*)
1390 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1391 CFLAGS="$CFLAGS -belf"
1392 ;;
1393esac
1394
1395# Actually configure libtool. ac_aux_dir is where install-sh is found.
1396CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
788e3f91 1397LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1daed53f
ILT
1398${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1399$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1400|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1401
c62d1274
ILT
1402
1403# Check whether --enable-targets or --disable-targets was given.
00103dfa
ILT
1404if test "${enable_targets+set}" = set; then
1405 enableval="$enable_targets"
c62d1274
ILT
1406 case "${enableval}" in
1407 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1408 ;;
1409 no) enable_targets= ;;
1410 *) enable_targets=$enableval ;;
1411esac
1412fi
e0bf1022
ILT
1413# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1414if test "${enable_commonbfdlib+set}" = set; then
1415 enableval="$enable_commonbfdlib"
1416 case "${enableval}" in
1417 yes) commonbfdlib=true ;;
1418 no) commonbfdlib=false ;;
1419 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1420esac
1421fi
c62d1274 1422
824155e8
ILT
1423
1424
824155e8 1425
824155e8
ILT
1426
1427if test -z "$target" ; then
1428 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1429fi
46bcd2ec
ILT
1430if test "$program_transform_name" = s,x,x,; then
1431 program_transform_name=
1432else
1433 # Double any \ or $. echo might interpret backslashes.
1434 cat <<\EOF_SED > conftestsed
1435s,\\,\\\\,g; s,\$,$$,g
1436EOF_SED
1437 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1438 rm -f conftestsed
1439fi
1440test "$program_prefix" != NONE &&
1441 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1442# Use a double $ so make ignores it.
1443test "$program_suffix" != NONE &&
1444 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1445
1446# sed with no file args requires a program.
1447test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1448
824155e8 1449
1daed53f 1450echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
ef3c03a4 1451echo "configure:1452: checking whether to enable maintainer-specific portions of Makefiles" >&5
1daed53f
ILT
1452 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1453if test "${enable_maintainer_mode+set}" = set; then
1454 enableval="$enable_maintainer_mode"
1455 USE_MAINTAINER_MODE=$enableval
1456else
1457 USE_MAINTAINER_MODE=no
1458fi
c62d1274 1459
1daed53f
ILT
1460 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1461 if test $USE_MAINTAINER_MODE = yes; then
1462 MAINT=
e0bf1022 1463 else
1daed53f 1464 MAINT='#M#'
e0bf1022 1465 fi
1daed53f
ILT
1466
1467
1468echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
ef3c03a4 1469echo "configure:1470: checking for Cygwin32 environment" >&5
1daed53f
ILT
1470if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1472else
1473 cat > conftest.$ac_ext <<EOF
ef3c03a4 1474#line 1475 "configure"
1daed53f
ILT
1475#include "confdefs.h"
1476
1477int main() {
af36ce35 1478return __CYGWIN32__;
1daed53f
ILT
1479; return 0; }
1480EOF
ef3c03a4 1481if { (eval echo configure:1482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1daed53f
ILT
1482 rm -rf conftest*
1483 am_cv_cygwin32=yes
1484else
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1487 rm -rf conftest*
1488 am_cv_cygwin32=no
e0bf1022 1489fi
1daed53f
ILT
1490rm -f conftest*
1491rm -f conftest*
1492fi
1493
1494echo "$ac_t""$am_cv_cygwin32" 1>&6
1495CYGWIN32=
1496test "$am_cv_cygwin32" = yes && CYGWIN32=yes
af36ce35 1497echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
ef3c03a4 1498echo "configure:1499: checking for Mingw32 environment" >&5
af36ce35
ILT
1499if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1501else
1502 cat > conftest.$ac_ext <<EOF
ef3c03a4 1503#line 1504 "configure"
af36ce35
ILT
1504#include "confdefs.h"
1505
1506int main() {
1507return __MINGW32__;
1508; return 0; }
1509EOF
ef3c03a4 1510if { (eval echo configure:1511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af36ce35
ILT
1511 rm -rf conftest*
1512 am_cv_mingw32=yes
1513else
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1516 rm -rf conftest*
1517 am_cv_mingw32=no
1518fi
1519rm -f conftest*
1520rm -f conftest*
1521fi
1522
1523echo "$ac_t""$am_cv_mingw32" 1>&6
1524MINGW32=
1525test "$am_cv_mingw32" = yes && MINGW32=yes
1526
2b0c643b 1527
1daed53f 1528echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
ef3c03a4 1529echo "configure:1530: checking for executable suffix" >&5
1daed53f
ILT
1530if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1532else
af36ce35
ILT
1533
1534if test "$CYGWIN32" = yes -o "$MINGW32" = yes; then
1daed53f
ILT
1535am_cv_exeext=.exe
1536else
1537cat > am_c_test.c << 'EOF'
1538int main() {
1539/* Nothing needed here */
1540}
1541EOF
1542${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
2b0c643b 1543am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1daed53f
ILT
1544rm -f am_c_test*
1545fi
1546
1547test x"${am_cv_exeext}" = x && am_cv_exeext=no
1548fi
1549EXEEXT=""
1550test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1551echo "$ac_t""${am_cv_exeext}" 1>&6
1552
1553
1554# host-specific stuff:
e0bf1022 1555
00103dfa
ILT
1556# Extract the first word of "gcc", so it can be a program name with args.
1557set dummy gcc; ac_word=$2
1558echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ef3c03a4 1559echo "configure:1560: checking for $ac_word" >&5
00103dfa
ILT
1560if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1562else
1563 if test -n "$CC"; then
1564 ac_cv_prog_CC="$CC" # Let the user override the test.
1565else
1566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1567 for ac_dir in $PATH; do
1568 test -z "$ac_dir" && ac_dir=.
1569 if test -f $ac_dir/$ac_word; then
1570 ac_cv_prog_CC="gcc"
1571 break
1572 fi
1573 done
1574 IFS="$ac_save_ifs"
00103dfa
ILT
1575fi
1576fi
1577CC="$ac_cv_prog_CC"
1578if test -n "$CC"; then
1579 echo "$ac_t""$CC" 1>&6
1580else
1581 echo "$ac_t""no" 1>&6
1582fi
1583
7919b9ec
ILT
1584if test -z "$CC"; then
1585 # Extract the first word of "cc", so it can be a program name with args.
1586set dummy cc; ac_word=$2
1587echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ef3c03a4 1588echo "configure:1589: checking for $ac_word" >&5
7919b9ec
ILT
1589if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1591else
1592 if test -n "$CC"; then
1593 ac_cv_prog_CC="$CC" # Let the user override the test.
1594else
1595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1596 ac_prog_rejected=no
1597 for ac_dir in $PATH; do
1598 test -z "$ac_dir" && ac_dir=.
1599 if test -f $ac_dir/$ac_word; then
1600 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1601 ac_prog_rejected=yes
1602 continue
1603 fi
1604 ac_cv_prog_CC="cc"
1605 break
1606 fi
1607 done
1608 IFS="$ac_save_ifs"
1609if test $ac_prog_rejected = yes; then
1610 # We found a bogon in the path, so make sure we never use it.
1611 set dummy $ac_cv_prog_CC
1612 shift
1613 if test $# -gt 0; then
1614 # We chose a different compiler from the bogus one.
1615 # However, it has the same basename, so the bogon will be chosen
1616 # first if we set CC to just the basename; use the full file name.
1617 shift
1618 set dummy "$ac_dir/$ac_word" "$@"
1619 shift
1620 ac_cv_prog_CC="$@"
1621 fi
1622fi
1623fi
1624fi
1625CC="$ac_cv_prog_CC"
1626if test -n "$CC"; then
1627 echo "$ac_t""$CC" 1>&6
1628else
1629 echo "$ac_t""no" 1>&6
1630fi
1631
1632 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1633fi
c62d1274 1634
9c03036a 1635echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
ef3c03a4 1636echo "configure:1637: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9c03036a
DE
1637
1638ac_ext=c
1639# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1640ac_cpp='$CPP $CPPFLAGS'
1641ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1642ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1643cross_compiling=$ac_cv_prog_cc_cross
1644
1645cat > conftest.$ac_ext <<EOF
ef3c03a4 1646#line 1647 "configure"
9c03036a
DE
1647#include "confdefs.h"
1648main(){return(0);}
1649EOF
ef3c03a4 1650if { (eval echo configure:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9c03036a
DE
1651 ac_cv_prog_cc_works=yes
1652 # If we can't run a trivial program, we are probably using a cross compiler.
1653 if (./conftest; exit) 2>/dev/null; then
1654 ac_cv_prog_cc_cross=no
1655 else
1656 ac_cv_prog_cc_cross=yes
1657 fi
1658else
1659 echo "configure: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1661 ac_cv_prog_cc_works=no
1662fi
1663rm -fr conftest*
1664
1665echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1666if test $ac_cv_prog_cc_works = no; then
1667 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1668fi
1669echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ef3c03a4 1670echo "configure:1671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9c03036a
DE
1671echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1672cross_compiling=$ac_cv_prog_cc_cross
1673
00103dfa 1674echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
ef3c03a4 1675echo "configure:1676: checking whether we are using GNU C" >&5
00103dfa
ILT
1676if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1678else
1679 cat > conftest.c <<EOF
c62d1274
ILT
1680#ifdef __GNUC__
1681 yes;
1682#endif
1683EOF
ef3c03a4 1684if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
00103dfa
ILT
1685 ac_cv_prog_gcc=yes
1686else
1687 ac_cv_prog_gcc=no
1688fi
1689fi
1690
1691echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9c03036a 1692
00103dfa 1693if test $ac_cv_prog_gcc = yes; then
c62d1274 1694 GCC=yes
9c03036a
DE
1695 ac_test_CFLAGS="${CFLAGS+set}"
1696 ac_save_CFLAGS="$CFLAGS"
1697 CFLAGS=
1698 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
ef3c03a4 1699echo "configure:1700: checking whether ${CC-cc} accepts -g" >&5
9c03036a 1700if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
00103dfa
ILT
1701 echo $ac_n "(cached) $ac_c" 1>&6
1702else
1703 echo 'void f(){}' > conftest.c
1704if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9c03036a 1705 ac_cv_prog_cc_g=yes
00103dfa 1706else
9c03036a 1707 ac_cv_prog_cc_g=no
00103dfa
ILT
1708fi
1709rm -f conftest*
1710
1711fi
1712
9c03036a
DE
1713echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1714 if test "$ac_test_CFLAGS" = set; then
1715 CFLAGS="$ac_save_CFLAGS"
1716 elif test $ac_cv_prog_cc_g = yes; then
1717 CFLAGS="-g -O2"
1718 else
1719 CFLAGS="-O2"
c62d1274
ILT
1720 fi
1721else
1722 GCC=
1723 test "${CFLAGS+set}" = set || CFLAGS="-g"
1724fi
9b65d522
ILT
1725
1726
46bcd2ec
ILT
1727. ${srcdir}/../bfd/configure.host
1728
40db6118 1729
7919b9ec 1730
1daed53f 1731test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
e3659cbf 1732
e7c50cef 1733
c62d1274 1734echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
ef3c03a4 1735echo "configure:1736: checking how to run the C preprocessor" >&5
c62d1274
ILT
1736# On Suns, sometimes $CPP names a directory.
1737if test -n "$CPP" && test -d "$CPP"; then
1738 CPP=
1739fi
1740if test -z "$CPP"; then
1741if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1743else
1744 # This must be in double quotes, not single quotes, because CPP may get
1745 # substituted into the Makefile and "${CC-cc}" will confuse make.
1746 CPP="${CC-cc} -E"
1747 # On the NeXT, cc -E runs the code through the compiler's parser,
1748 # not just through cpp.
1749 cat > conftest.$ac_ext <<EOF
ef3c03a4 1750#line 1751 "configure"
c62d1274
ILT
1751#include "confdefs.h"
1752#include <assert.h>
1753Syntax Error
1754EOF
7919b9ec 1755ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ef3c03a4 1756{ (eval echo configure:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c62d1274
ILT
1757ac_err=`grep -v '^ *+' conftest.out`
1758if test -z "$ac_err"; then
1759 :
1760else
1761 echo "$ac_err" >&5
9c03036a
DE
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
c62d1274
ILT
1764 rm -rf conftest*
1765 CPP="${CC-cc} -E -traditional-cpp"
1766 cat > conftest.$ac_ext <<EOF
ef3c03a4 1767#line 1768 "configure"
c62d1274
ILT
1768#include "confdefs.h"
1769#include <assert.h>
1770Syntax Error
1771EOF
7919b9ec 1772ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ef3c03a4 1773{ (eval echo configure:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c62d1274
ILT
1774ac_err=`grep -v '^ *+' conftest.out`
1775if test -z "$ac_err"; then
1776 :
1777else
1778 echo "$ac_err" >&5
9c03036a
DE
1779 echo "configure: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
c62d1274
ILT
1781 rm -rf conftest*
1782 CPP=/lib/cpp
1783fi
1784rm -f conftest*
1785fi
1786rm -f conftest*
1787 ac_cv_prog_CPP="$CPP"
1788fi
1789 CPP="$ac_cv_prog_CPP"
1790else
1791 ac_cv_prog_CPP="$CPP"
1792fi
1793echo "$ac_t""$CPP" 1>&6
1794
9c03036a 1795for ac_hdr in string.h strings.h stdlib.h
c62d1274 1796do
9c03036a 1797ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c62d1274 1798echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ef3c03a4 1799echo "configure:1800: checking for $ac_hdr" >&5
c62d1274
ILT
1800if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802else
1803 cat > conftest.$ac_ext <<EOF
ef3c03a4 1804#line 1805 "configure"
c62d1274
ILT
1805#include "confdefs.h"
1806#include <$ac_hdr>
1807EOF
7919b9ec 1808ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ef3c03a4 1809{ (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c62d1274
ILT
1810ac_err=`grep -v '^ *+' conftest.out`
1811if test -z "$ac_err"; then
1812 rm -rf conftest*
1813 eval "ac_cv_header_$ac_safe=yes"
1814else
1815 echo "$ac_err" >&5
9c03036a
DE
1816 echo "configure: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
c62d1274
ILT
1818 rm -rf conftest*
1819 eval "ac_cv_header_$ac_safe=no"
1820fi
1821rm -f conftest*
1822fi
1823if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1824 echo "$ac_t""yes" 1>&6
9c03036a 1825 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c62d1274
ILT
1826 cat >> confdefs.h <<EOF
1827#define $ac_tr_hdr 1
1828EOF
1829
1830else
1831 echo "$ac_t""no" 1>&6
1832fi
1833done
1834
1835
bfc10abe
DE
1836# start-sanitize-cygnus
1837use_cgen=no
1838if test ${USE_MAINTAINER_MODE} = yes ; then
1839 for targ in $target $canon_targets
1840 do
1841 case $targ in
1842 all) use_cgen=yes ;;
1843 m32r-*-*) use_cgen=yes ;;
1844 esac
1845 done
1846fi
1847if test $use_cgen = yes ; then
1848 # Extract the first word of "guile", so it can be a program name with args.
1849set dummy guile; ac_word=$2
1850echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ef3c03a4 1851echo "configure:1852: checking for $ac_word" >&5
bfc10abe
DE
1852if eval "test \"`echo '$''{'ac_cv_prog_SCHEME'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1854else
1855 if test -n "$SCHEME"; then
1856 ac_cv_prog_SCHEME="$SCHEME" # Let the user override the test.
1857else
1858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1859 for ac_dir in $PATH; do
1860 test -z "$ac_dir" && ac_dir=.
1861 if test -f $ac_dir/$ac_word; then
1862 ac_cv_prog_SCHEME="guile"
1863 break
1864 fi
1865 done
1866 IFS="$ac_save_ifs"
1867 test -z "$ac_cv_prog_SCHEME" && ac_cv_prog_SCHEME="guile"
1868fi
1869fi
1870SCHEME="$ac_cv_prog_SCHEME"
1871if test -n "$SCHEME"; then
1872 echo "$ac_t""$SCHEME" 1>&6
1873else
1874 echo "$ac_t""no" 1>&6
1875fi
1876
1877fi
1878# end-sanitize-cygnus
1879
c62d1274
ILT
1880# target-specific stuff:
1881
1882# Canonicalize the secondary target names.
1883if test -n "$enable_targets" ; then
1884 for targ in `echo $enable_targets | sed 's/,/ /g'`
1885 do
1daed53f 1886 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
c62d1274
ILT
1887 if test -n "$result" ; then
1888 canon_targets="$canon_targets $result"
1889 else
1890 # Allow targets that config.sub doesn't recognize, like "all".
1891 canon_targets="$canon_targets $targ"
1892 fi
1893 done
1894fi
1895
1896all_targets=false
1897selarchs=
1898for targ in $target $canon_targets
1899do
1900 if test "x$targ" = "xall" ; then
1901 all_targets=true
1902 else
1903 . $srcdir/../bfd/config.bfd
1904 selarchs="$selarchs $targ_archs"
1905 fi
1906done
1907
9c03036a
DE
1908# Utility var, documents generic cgen support files.
1909
1daed53f 1910cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
9c03036a 1911
c62d1274
ILT
1912# We don't do any links based on the target system, just makefile config.
1913
1914if test x${all_targets} = xfalse ; then
1915
1916 # Target architecture .o files.
1917 ta=
1918
1919 for arch in $selarchs
1920 do
1921 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
1922 archdefs="$archdefs -DARCH_$ad"
1923 case "$arch" in
1daed53f 1924 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
00103dfa 1925 bfd_alliant_arch) ;;
1daed53f 1926 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
1daed53f 1927 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
1daed53f 1928 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
00103dfa 1929 bfd_convex_arch) ;;
1daed53f 1930 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
b2e3f844 1931# start-sanitize-d30v
1daed53f 1932 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
b2e3f844 1933# end-sanitize-d30v
1daed53f
ILT
1934 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
1935 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
1936 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
1937 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
f98c3369 1938 bfd_i860_arch) ;;
1daed53f
ILT
1939 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
1940 bfd_m32r_arch) ta="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;;
1941 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
1942 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
1943 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
1944 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
1945 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
1946 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
1947 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
00103dfa
ILT
1948 bfd_pyramid_arch) ;;
1949 bfd_romp_arch) ;;
1daed53f
ILT
1950 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
1951 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
1952 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
00103dfa 1953 bfd_tahoe_arch) ;;
788e3f91 1954 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
b2e3f844 1955# start-sanitize-tic80
1daed53f 1956 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
b2e3f844 1957# end-sanitize-tic80
80c396f6 1958# start-sanitize-sky
37130f11 1959 bfd_dvp_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
80c396f6 1960# end-sanitize-sky
1daed53f 1961 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
a3515171
CP
1962# start-sanitize-v850e
1963 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
cd66558c 1964 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
a3515171 1965# end-sanitize-v850e
c62d1274 1966 bfd_vax_arch) ;;
1daed53f 1967 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
c62d1274 1968 bfd_we32k_arch) ;;
1daed53f 1969 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
c62d1274
ILT
1970
1971 "") ;;
1972 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
1973 esac
1974 done
1975
1976 # Weed out duplicate .o files.
1977 f=""
1978 for i in $ta ; do
1979 case " $f " in
1980 *" $i "*) ;;
1981 *) f="$f $i" ;;
1982 esac
1983 done
1984 ta="$f"
1985
1986 # And duplicate -D flags.
1987 f=""
1988 for i in $archdefs ; do
1989 case " $f " in
1990 *" $i "*) ;;
1991 *) f="$f $i" ;;
1992 esac
1993 done
1994 archdefs="$f"
1995
1996 BFD_MACHINES="$ta"
1997
1998else # all_targets is true
1999 archdefs=-DARCH_all
2000 BFD_MACHINES='$(ALL_MACHINES)'
2001fi
2002
2003
2004
2005
c62d1274
ILT
2006trap '' 1 2 15
2007cat > confcache <<\EOF
2008# This file is a shell script that caches the results of configure
2009# tests run on this system so they can be shared between configure
2010# scripts and configure runs. It is not useful on other systems.
2011# If it contains results you don't want to keep, you may remove or edit it.
2012#
2013# By default, configure uses ./config.cache as the cache file,
2014# creating it if it does not exist already. You can give configure
2015# the --cache-file=FILE option to use a different cache file; that is
2016# what configure does when it calls configure scripts in
2017# subdirectories, so they share the cache.
2018# Giving --cache-file=/dev/null disables caching, for debugging configure.
2019# config.status only pays attention to the cache file if you give it the
2020# --recheck option to rerun configure.
2021#
2022EOF
9c03036a
DE
2023# The following way of writing the cache mishandles newlines in values,
2024# but we know of no workaround that is simple, portable, and efficient.
2025# So, don't put newlines in cache variables' values.
c62d1274
ILT
2026# Ultrix sh set writes to stderr and can't be redirected directly,
2027# and sets the high bit in the cache file unless we assign to the vars.
2028(set) 2>&1 |
3b1e6264 2029 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
9c03036a
DE
2030 *ac_space=\ *)
2031 # `set' does not quote correctly, so add quotes (double-quote substitution
2032 # turns \\\\ into \\, and sed turns \\ into \).
2033 sed -n \
2034 -e "s/'/'\\\\''/g" \
2035 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2036 ;;
2037 *)
2038 # `set' quotes correctly as required by POSIX, so do not add quotes.
2039 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2040 ;;
2041 esac >> confcache
c62d1274
ILT
2042if cmp -s $cache_file confcache; then
2043 :
2044else
2045 if test -w $cache_file; then
2046 echo "updating cache $cache_file"
2047 cat confcache > $cache_file
2048 else
2049 echo "not updating unwritable cache $cache_file"
2050 fi
2051fi
2052rm -f confcache
2053
2054trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2055
2056test "x$prefix" = xNONE && prefix=$ac_default_prefix
2057# Let make expand exec_prefix.
2058test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2059
2060# Any assignment to VPATH causes Sun make to only execute
2061# the first set of double-colon rules, so remove it if not needed.
2062# If there is a colon in the path, we need to keep it.
2063if test "x$srcdir" = x.; then
2064 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2065fi
2066
2067trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2068
2069DEFS=-DHAVE_CONFIG_H
2070
2071# Without the "./", some shells look in PATH for config.status.
2072: ${CONFIG_STATUS=./config.status}
2073
2074echo creating $CONFIG_STATUS
2075rm -f $CONFIG_STATUS
2076cat > $CONFIG_STATUS <<EOF
2077#! /bin/sh
2078# Generated automatically by configure.
2079# Run this file to recreate the current configuration.
2080# This directory was configured as follows,
2081# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2082#
2083# $0 $ac_configure_args
2084#
2085# Compiler output produced by configure, useful for debugging
2086# configure, is in ./config.log if it exists.
2087
2088ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2089for ac_option
2090do
2091 case "\$ac_option" in
2092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2093 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2094 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2095 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
a3515171 2096 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
c62d1274
ILT
2097 exit 0 ;;
2098 -help | --help | --hel | --he | --h)
2099 echo "\$ac_cs_usage"; exit 0 ;;
2100 *) echo "\$ac_cs_usage"; exit 1 ;;
2101 esac
2102done
2103
2104ac_given_srcdir=$srcdir
9b65d522 2105ac_given_INSTALL="$INSTALL"
c62d1274
ILT
2106
2107trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
e0bf1022
ILT
2108EOF
2109cat >> $CONFIG_STATUS <<EOF
c62d1274 2110
00103dfa 2111# Protect against being on the right side of a sed subst in config.status.
e0bf1022
ILT
2112sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2113 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
c62d1274
ILT
2114$ac_vpsub
2115$extrasub
cd66558c 2116s%@SHELL@%$SHELL%g
c62d1274
ILT
2117s%@CFLAGS@%$CFLAGS%g
2118s%@CPPFLAGS@%$CPPFLAGS%g
2119s%@CXXFLAGS@%$CXXFLAGS%g
2120s%@DEFS@%$DEFS%g
2121s%@LDFLAGS@%$LDFLAGS%g
2122s%@LIBS@%$LIBS%g
2123s%@exec_prefix@%$exec_prefix%g
2124s%@prefix@%$prefix%g
2125s%@program_transform_name@%$program_transform_name%g
00103dfa
ILT
2126s%@bindir@%$bindir%g
2127s%@sbindir@%$sbindir%g
2128s%@libexecdir@%$libexecdir%g
2129s%@datadir@%$datadir%g
2130s%@sysconfdir@%$sysconfdir%g
2131s%@sharedstatedir@%$sharedstatedir%g
2132s%@localstatedir@%$localstatedir%g
2133s%@libdir@%$libdir%g
2134s%@includedir@%$includedir%g
2135s%@oldincludedir@%$oldincludedir%g
2136s%@infodir@%$infodir%g
2137s%@mandir@%$mandir%g
c62d1274
ILT
2138s%@host@%$host%g
2139s%@host_alias@%$host_alias%g
2140s%@host_cpu@%$host_cpu%g
2141s%@host_vendor@%$host_vendor%g
2142s%@host_os@%$host_os%g
2143s%@target@%$target%g
2144s%@target_alias@%$target_alias%g
2145s%@target_cpu@%$target_cpu%g
2146s%@target_vendor@%$target_vendor%g
2147s%@target_os@%$target_os%g
2148s%@build@%$build%g
2149s%@build_alias@%$build_alias%g
2150s%@build_cpu@%$build_cpu%g
2151s%@build_vendor@%$build_vendor%g
2152s%@build_os@%$build_os%g
1daed53f
ILT
2153s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2154s%@INSTALL_DATA@%$INSTALL_DATA%g
2155s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2156s%@PACKAGE@%$PACKAGE%g
2157s%@VERSION@%$VERSION%g
2158s%@ACLOCAL@%$ACLOCAL%g
2159s%@AUTOCONF@%$AUTOCONF%g
2160s%@AUTOMAKE@%$AUTOMAKE%g
2161s%@AUTOHEADER@%$AUTOHEADER%g
2162s%@MAKEINFO@%$MAKEINFO%g
2163s%@SET_MAKE@%$SET_MAKE%g
cd66558c 2164s%@AR@%$AR%g
1daed53f 2165s%@RANLIB@%$RANLIB%g
cd66558c 2166s%@CC@%$CC%g
1daed53f 2167s%@LD@%$LD%g
788e3f91 2168s%@NM@%$NM%g
1daed53f
ILT
2169s%@LN_S@%$LN_S%g
2170s%@LIBTOOL@%$LIBTOOL%g
2171s%@MAINT@%$MAINT%g
2172s%@EXEEXT@%$EXEEXT%g
824155e8 2173s%@HDEFINES@%$HDEFINES%g
824155e8 2174s%@CPP@%$CPP%g
bfc10abe 2175s%@SCHEME@%$SCHEME%g
c62d1274
ILT
2176s%@archdefs@%$archdefs%g
2177s%@BFD_MACHINES@%$BFD_MACHINES%g
2178
2179CEOF
2180EOF
9c03036a
DE
2181
2182cat >> $CONFIG_STATUS <<\EOF
2183
2184# Split the substitutions into bite-sized pieces for seds with
2185# small command number limits, like on Digital OSF/1 and HP-UX.
2186ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2187ac_file=1 # Number of current file.
2188ac_beg=1 # First line for current file.
2189ac_end=$ac_max_sed_cmds # Line after last line for current file.
2190ac_more_lines=:
2191ac_sed_cmds=""
2192while $ac_more_lines; do
2193 if test $ac_beg -gt 1; then
2194 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2195 else
2196 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2197 fi
2198 if test ! -s conftest.s$ac_file; then
2199 ac_more_lines=false
2200 rm -f conftest.s$ac_file
2201 else
2202 if test -z "$ac_sed_cmds"; then
2203 ac_sed_cmds="sed -f conftest.s$ac_file"
2204 else
2205 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2206 fi
2207 ac_file=`expr $ac_file + 1`
2208 ac_beg=$ac_end
2209 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2210 fi
2211done
2212if test -z "$ac_sed_cmds"; then
2213 ac_sed_cmds=cat
2214fi
2215EOF
2216
c62d1274
ILT
2217cat >> $CONFIG_STATUS <<EOF
2218
2219CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2220EOF
2221cat >> $CONFIG_STATUS <<\EOF
2222for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9c03036a 2223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c62d1274 2224 case "$ac_file" in
9c03036a 2225 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
c62d1274
ILT
2226 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2227 *) ac_file_in="${ac_file}.in" ;;
2228 esac
2229
9c03036a 2230 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
c62d1274
ILT
2231
2232 # Remove last slash and all that follows it. Not all systems have dirname.
2233 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2234 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2235 # The file is in a subdirectory.
2236 test ! -d "$ac_dir" && mkdir "$ac_dir"
2237 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2238 # A "../" for each directory in $ac_dir_suffix.
2239 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2240 else
2241 ac_dir_suffix= ac_dots=
2242 fi
2243
2244 case "$ac_given_srcdir" in
2245 .) srcdir=.
2246 if test -z "$ac_dots"; then top_srcdir=.
2247 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2248 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2249 *) # Relative path.
2250 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2251 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2252 esac
2253
9b65d522
ILT
2254 case "$ac_given_INSTALL" in
2255 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2256 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2257 esac
9c03036a 2258
c62d1274
ILT
2259 echo creating "$ac_file"
2260 rm -f "$ac_file"
2261 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2262 case "$ac_file" in
2263 *Makefile*) ac_comsub="1i\\
2264# $configure_input" ;;
2265 *) ac_comsub= ;;
2266 esac
9c03036a
DE
2267
2268 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
c62d1274
ILT
2269 sed -e "$ac_comsub
2270s%@configure_input@%$configure_input%g
2271s%@srcdir@%$srcdir%g
2272s%@top_srcdir@%$top_srcdir%g
9b65d522 2273s%@INSTALL@%$INSTALL%g
9c03036a 2274" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
c62d1274 2275fi; done
9c03036a 2276rm -f conftest.s*
c62d1274
ILT
2277
2278# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2279# NAME is the cpp macro being defined and VALUE is the value it is being given.
2280#
2281# ac_d sets the value in "#define NAME VALUE" lines.
2282ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2283ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2284ac_dC='\3'
2285ac_dD='%g'
2286# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2287ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2288ac_uB='\([ ]\)%\1#\2define\3'
2289ac_uC=' '
2290ac_uD='\4%g'
2291# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2292ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2293ac_eB='$%\1#\2define\3'
2294ac_eC=' '
2295ac_eD='%g'
2296
9c03036a
DE
2297if test "${CONFIG_HEADERS+set}" != set; then
2298EOF
2299cat >> $CONFIG_STATUS <<EOF
2300 CONFIG_HEADERS="config.h:config.in"
2301EOF
2302cat >> $CONFIG_STATUS <<\EOF
2303fi
c62d1274 2304for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9c03036a 2305 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c62d1274 2306 case "$ac_file" in
9c03036a 2307 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
c62d1274
ILT
2308 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2309 *) ac_file_in="${ac_file}.in" ;;
2310 esac
2311
2312 echo creating $ac_file
2313
2314 rm -f conftest.frag conftest.in conftest.out
9c03036a
DE
2315 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2316 cat $ac_file_inputs > conftest.in
c62d1274
ILT
2317
2318EOF
2319
2320# Transform confdefs.h into a sed script conftest.vals that substitutes
2321# the proper values into config.h.in to produce config.h. And first:
00103dfa 2322# Protect against being on the right side of a sed subst in config.status.
c62d1274
ILT
2323# Protect against being in an unquoted here document in config.status.
2324rm -f conftest.vals
2325cat > conftest.hdr <<\EOF
2326s/[\\&%]/\\&/g
2327s%[\\$`]%\\&%g
e3659cbf 2328s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
c62d1274
ILT
2329s%ac_d%ac_u%gp
2330s%ac_u%ac_e%gp
2331EOF
2332sed -n -f conftest.hdr confdefs.h > conftest.vals
2333rm -f conftest.hdr
2334
2335# This sed command replaces #undef with comments. This is necessary, for
2336# example, in the case of _POSIX_SOURCE, which is predefined and required
2337# on some systems where configure will not decide to define it.
2338cat >> conftest.vals <<\EOF
2339s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2340EOF
2341
2342# Break up conftest.vals because some shells have a limit on
2343# the size of here documents, and old seds have small limits too.
c62d1274
ILT
2344
2345rm -f conftest.tail
2346while :
2347do
2348 ac_lines=`grep -c . conftest.vals`
2349 # grep -c gives empty output for an empty file on some AIX systems.
2350 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2351 # Write a limited-size here document to conftest.frag.
2352 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2353 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2354 echo 'CEOF
2355 sed -f conftest.frag conftest.in > conftest.out
2356 rm -f conftest.in
2357 mv conftest.out conftest.in
2358' >> $CONFIG_STATUS
2359 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2360 rm -f conftest.vals
2361 mv conftest.tail conftest.vals
2362done
2363rm -f conftest.vals
2364
2365cat >> $CONFIG_STATUS <<\EOF
2366 rm -f conftest.frag conftest.h
2367 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2368 cat conftest.in >> conftest.h
2369 rm -f conftest.in
2370 if cmp -s $ac_file conftest.h 2>/dev/null; then
2371 echo "$ac_file is unchanged"
2372 rm -f conftest.h
2373 else
e3659cbf
MH
2374 # Remove last slash and all that follows it. Not all systems have dirname.
2375 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2376 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2377 # The file is in a subdirectory.
2378 test ! -d "$ac_dir" && mkdir "$ac_dir"
2379 fi
c62d1274
ILT
2380 rm -f $ac_file
2381 mv conftest.h $ac_file
2382 fi
2383fi; done
2384
9c03036a
DE
2385EOF
2386cat >> $CONFIG_STATUS <<EOF
c62d1274 2387
a3515171 2388
9c03036a
DE
2389EOF
2390cat >> $CONFIG_STATUS <<\EOF
1daed53f
ILT
2391test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2392
c62d1274
ILT
2393exit 0
2394EOF
2395chmod +x $CONFIG_STATUS
2396rm -fr confdefs* $ac_clean_files
2397test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2398
This page took 0.198068 seconds and 4 git commands to generate.