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