This commit was generated by cvs2svn to track changes on a CVS vendor
[external/binutils.git] / opcodes / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-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"
18 ac_help="$ac_help
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"
22 ac_help="$ac_help
23   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25   --enable-targets        alternative target configurations"
26 ac_help="$ac_help
27   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library"
28 ac_help="$ac_help
29   --enable-maintainer-mode enable make rules and dependencies not useful
30                           (and sometimes confusing) to the casual installer"
31
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
35 build=NONE
36 cache_file=./config.cache
37 exec_prefix=NONE
38 host=NONE
39 no_create=
40 nonopt=NONE
41 no_recursion=
42 prefix=NONE
43 program_prefix=NONE
44 program_suffix=NONE
45 program_transform_name=s,x,x,
46 silent=
47 site=
48 srcdir=
49 target=NONE
50 verbose=
51 x_includes=NONE
52 x_libraries=NONE
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
65
66 # Initialize some other variables.
67 subdirs=
68 MFLAGS= MAKEFLAGS=
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
71 ac_max_here_lines=12
72
73 ac_prev=
74 for ac_option
75 do
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
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)
99     ac_prev=build ;;
100   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101     build="$ac_optarg" ;;
102
103   -cache-file | --cache-file | --cache-fil | --cache-fi \
104   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105     ac_prev=cache_file ;;
106   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108     cache_file="$ac_optarg" ;;
109
110   -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
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
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
157 Configuration:
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
163 Directory and file names:
164   --prefix=PREFIX         install architecture-independent files in PREFIX
165                           [$ac_default_prefix]
166   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
167                           [same as prefix]
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]
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
185   --program-transform-name=PROGRAM
186                           run sed PROGRAM on installed program names
187 EOF
188     cat << EOF
189 Host 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]
193 Features 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
200 EOF
201     if test -n "$ac_help"; then
202       echo "--enable and --with options recognized:$ac_help"
203     fi
204     exit 0 ;;
205
206   -host | --host | --hos | --ho)
207     ac_prev=host ;;
208   -host=* | --host=* | --hos=* | --ho=*)
209     host="$ac_optarg" ;;
210
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
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
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
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
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
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
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
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)
353     echo "configure generated by autoconf version 2.12.1"
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
399   *)
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
410 done
411
412 if test -n "$ac_prev"; then
413   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 fi
415
416 trap '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
426 if test "$silent" = yes; then
427   exec 6>/dev/null
428 else
429   exec 6>&1
430 fi
431 exec 5>./config.log
432
433 echo "\
434 This file contains any messages produced by compilers while
435 running 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.
440 ac_configure_args=
441 for ac_arg
442 do
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
452 done
453
454 # NLS nuisances.
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.
459 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
463
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 echo > 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.
471 ac_unique_file=z8k-dis.c
472
473 # Find the source files, if location was not specified.
474 if 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
484 else
485   ac_srcdir_defaulted=no
486 fi
487 if 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
493 fi
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495
496 # Prefer explicitly selected file to automatically selected ones.
497 if 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
503 fi
504 for 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
509 done
510
511 if test -r "$cache_file"; then
512   echo "loading cache $cache_file"
513   . $cache_file
514 else
515   echo "creating cache $cache_file"
516   > $cache_file
517 fi
518
519 ac_ext=c
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
525
526 if (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
534 else
535   ac_n= ac_c='\c' ac_t=
536 fi
537
538
539
540 ac_aux_dir=
541 for 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
551 done
552 if 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; }
554 fi
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_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.
575 case $host---$target---$nonopt in
576 NONE---*---* | *---NONE---* | *---*---NONE) ;;
577 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
578 esac
579
580
581 # Make sure we can run config.sub.
582 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
583 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
584 fi
585
586 echo $ac_n "checking host system type""... $ac_c" 1>&6
587 echo "configure:588: checking host system type" >&5
588
589 host_alias=$host
590 case "$host_alias" in
591 NONE)
592   case $nonopt in
593   NONE)
594     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
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 ;;
599 esac
600
601 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
602 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
603 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
604 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
605 echo "$ac_t""$host" 1>&6
606
607 echo $ac_n "checking target system type""... $ac_c" 1>&6
608 echo "configure:609: checking target system type" >&5
609
610 target_alias=$target
611 case "$target_alias" in
612 NONE)
613   case $nonopt in
614   NONE) target_alias=$host_alias ;;
615   *) target_alias=$nonopt ;;
616   esac ;;
617 esac
618
619 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
620 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
621 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
622 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
623 echo "$ac_t""$target" 1>&6
624
625 echo $ac_n "checking build system type""... $ac_c" 1>&6
626 echo "configure:627: checking build system type" >&5
627
628 build_alias=$build
629 case "$build_alias" in
630 NONE)
631   case $nonopt in
632   NONE) build_alias=$host_alias ;;
633   *) build_alias=$nonopt ;;
634   esac ;;
635 esac
636
637 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
638 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$build" 1>&6
642
643 test "$host_alias" != "$target_alias" &&
644   test "$program_prefix$program_suffix$program_transform_name" = \
645     NONENONEs,x,x, &&
646   program_prefix=${target_alias}-
647
648
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.
652 BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[  ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
653
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
661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
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.
665 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
666 echo "configure:667: checking for a BSD compatible install" >&5
667 if test -z "$INSTALL"; then
668 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
669   echo $ac_n "(cached) $ac_c" 1>&6
670 else
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.
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
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.
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
697 fi
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
707 fi
708 echo "$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.
712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
713
714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
715
716
717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
718
719 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
720 echo "configure:721: checking whether build environment is sane" >&5
721 # Just in case
722 sleep 1
723 echo 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).
729 if (
730    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
731    if test "$*" = "X"; then
732       # -L didn't work.
733       set X `ls -t $srcdir/configure conftestfile`
734    fi
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
743 alias in your environment" 1>&2; exit 1; }
744    fi
745
746    test "$2" = conftestfile
747    )
748 then
749    # Ok.
750    :
751 else
752    { echo "configure: error: newly created file is older than distributed files!
753 Check your system clock" 1>&2; exit 1; }
754 fi
755 rm -f conftest*
756 echo "$ac_t""yes" 1>&6
757 if test "$program_transform_name" = s,x,x,; then
758   program_transform_name=
759 else
760   # Double any \ or $.  echo might interpret backslashes.
761   cat <<\EOF_SED > conftestsed
762 s,\\,\\\\,g; s,\$,$$,g
763 EOF_SED
764   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
765   rm -f conftestsed
766 fi
767 test "$program_prefix" != NONE &&
768   program_transform_name="s,^,${program_prefix},; $program_transform_name"
769 # Use a double $ so make ignores it.
770 test "$program_suffix" != NONE &&
771   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
772
773 # sed with no file args requires a program.
774 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
775
776 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
777 echo "configure:778: checking whether ${MAKE-make} sets \${MAKE}" >&5
778 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
779 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
780   echo $ac_n "(cached) $ac_c" 1>&6
781 else
782   cat > conftestmake <<\EOF
783 all:
784         @echo 'ac_maketemp="${MAKE}"'
785 EOF
786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
787 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
788 if test -n "$ac_maketemp"; then
789   eval ac_cv_prog_make_${ac_make}_set=yes
790 else
791   eval ac_cv_prog_make_${ac_make}_set=no
792 fi
793 rm -f conftestmake
794 fi
795 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
796   echo "$ac_t""yes" 1>&6
797   SET_MAKE=
798 else
799   echo "$ac_t""no" 1>&6
800   SET_MAKE="MAKE=${MAKE-make}"
801 fi
802
803
804 PACKAGE=opcodes
805
806 VERSION=${BFD_VERSION}
807
808 if 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; }
810 fi
811 cat >> confdefs.h <<EOF
812 #define PACKAGE "$PACKAGE"
813 EOF
814
815 cat >> confdefs.h <<EOF
816 #define VERSION "$VERSION"
817 EOF
818
819
820
821 missing_dir=`cd $ac_aux_dir && pwd`
822 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
823 echo "configure:824: checking for working aclocal" >&5
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.
827 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
828    ACLOCAL=aclocal
829    echo "$ac_t""found" 1>&6
830 else
831    ACLOCAL="$missing_dir/missing aclocal"
832    echo "$ac_t""missing" 1>&6
833 fi
834
835 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
836 echo "configure:837: checking for working autoconf" >&5
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.
840 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
841    AUTOCONF=autoconf
842    echo "$ac_t""found" 1>&6
843 else
844    AUTOCONF="$missing_dir/missing autoconf"
845    echo "$ac_t""missing" 1>&6
846 fi
847
848 echo $ac_n "checking for working automake""... $ac_c" 1>&6
849 echo "configure:850: checking for working automake" >&5
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.
853 if (automake --version) < /dev/null > /dev/null 2>&1; then
854    AUTOMAKE=automake
855    echo "$ac_t""found" 1>&6
856 else
857    AUTOMAKE="$missing_dir/missing automake"
858    echo "$ac_t""missing" 1>&6
859 fi
860
861 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
862 echo "configure:863: checking for working autoheader" >&5
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.
866 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
867    AUTOHEADER=autoheader
868    echo "$ac_t""found" 1>&6
869 else
870    AUTOHEADER="$missing_dir/missing autoheader"
871    echo "$ac_t""missing" 1>&6
872 fi
873
874 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
875 echo "configure:876: checking for working makeinfo" >&5
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.
879 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
880    MAKEINFO=makeinfo
881    echo "$ac_t""found" 1>&6
882 else
883    MAKEINFO="$missing_dir/missing makeinfo"
884    echo "$ac_t""missing" 1>&6
885 fi
886
887
888
889 if test $host != $build; then
890   ac_tool_prefix=${host_alias}-
891 else
892   ac_tool_prefix=
893 fi
894
895 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
896 set dummy ${ac_tool_prefix}ar; ac_word=$2
897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
898 echo "configure:899: checking for $ac_word" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
900   echo $ac_n "(cached) $ac_c" 1>&6
901 else
902   if test -n "$AR"; then
903   ac_cv_prog_AR="$AR" # Let the user override the test.
904 else
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"
915 fi
916 fi
917 AR="$ac_cv_prog_AR"
918 if test -n "$AR"; then
919   echo "$ac_t""$AR" 1>&6
920 else
921   echo "$ac_t""no" 1>&6
922 fi
923
924
925
926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
931   echo $ac_n "(cached) $ac_c" 1>&6
932 else
933   if test -n "$RANLIB"; then
934   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
935 else
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"
945 fi
946 fi
947 RANLIB="$ac_cv_prog_RANLIB"
948 if test -n "$RANLIB"; then
949   echo "$ac_t""$RANLIB" 1>&6
950 else
951   echo "$ac_t""no" 1>&6
952 fi
953
954
955 if test -z "$ac_cv_prog_RANLIB"; then
956 if test -n "$ac_tool_prefix"; then
957   # Extract the first word of "ranlib", so it can be a program name with args.
958 set dummy ranlib; ac_word=$2
959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
960 echo "configure:961: checking for $ac_word" >&5
961 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
962   echo $ac_n "(cached) $ac_c" 1>&6
963 else
964   if test -n "$RANLIB"; then
965   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
966 else
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=":"
977 fi
978 fi
979 RANLIB="$ac_cv_prog_RANLIB"
980 if test -n "$RANLIB"; then
981   echo "$ac_t""$RANLIB" 1>&6
982 else
983   echo "$ac_t""no" 1>&6
984 fi
985
986 else
987   RANLIB=":"
988 fi
989 fi
990
991
992 # Check whether --enable-shared or --disable-shared was given.
993 if test "${enable_shared+set}" = set; then
994   enableval="$enable_shared"
995   p=${PACKAGE-default}
996 case "$enableval" in
997 yes) enable_shared=yes ;;
998 no) 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   ;;
1010 esac
1011 else
1012   enable_shared=no
1013 fi
1014
1015
1016 # Check whether --enable-static or --disable-static was given.
1017 if test "${enable_static+set}" = set; then
1018   enableval="$enable_static"
1019   p=${PACKAGE-default}
1020 case "$enableval" in
1021 yes) enable_static=yes ;;
1022 no) 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   ;;
1034 esac
1035 else
1036   enable_static=yes
1037 fi
1038
1039 # Extract the first word of "ranlib", so it can be a program name with args.
1040 set dummy ranlib; ac_word=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1044   echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046   if test -n "$RANLIB"; then
1047   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1048 else
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=":"
1059 fi
1060 fi
1061 RANLIB="$ac_cv_prog_RANLIB"
1062 if test -n "$RANLIB"; then
1063   echo "$ac_t""$RANLIB" 1>&6
1064 else
1065   echo "$ac_t""no" 1>&6
1066 fi
1067
1068 # Extract the first word of "gcc", so it can be a program name with args.
1069 set dummy gcc; ac_word=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1073   echo $ac_n "(cached) $ac_c" 1>&6
1074 else
1075   if test -n "$CC"; then
1076   ac_cv_prog_CC="$CC" # Let the user override the test.
1077 else
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"
1087 fi
1088 fi
1089 CC="$ac_cv_prog_CC"
1090 if test -n "$CC"; then
1091   echo "$ac_t""$CC" 1>&6
1092 else
1093   echo "$ac_t""no" 1>&6
1094 fi
1095
1096 if test -z "$CC"; then
1097   # Extract the first word of "cc", so it can be a program name with args.
1098 set dummy cc; ac_word=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1102   echo $ac_n "(cached) $ac_c" 1>&6
1103 else
1104   if test -n "$CC"; then
1105   ac_cv_prog_CC="$CC" # Let the user override the test.
1106 else
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"
1121 if 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
1134 fi
1135 fi
1136 fi
1137 CC="$ac_cv_prog_CC"
1138 if test -n "$CC"; then
1139   echo "$ac_t""$CC" 1>&6
1140 else
1141   echo "$ac_t""no" 1>&6
1142 fi
1143
1144   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1145 fi
1146
1147 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1149
1150 ac_ext=c
1151 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1152 ac_cpp='$CPP $CPPFLAGS'
1153 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1154 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1155 cross_compiling=$ac_cv_prog_cc_cross
1156
1157 cat > conftest.$ac_ext <<EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1160 main(){return(0);}
1161 EOF
1162 if { (eval echo configure:1163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
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
1170 else
1171   echo "configure: failed program was:" >&5
1172   cat conftest.$ac_ext >&5
1173   ac_cv_prog_cc_works=no
1174 fi
1175 rm -fr conftest*
1176
1177 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1178 if 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; }
1180 fi
1181 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1183 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1184 cross_compiling=$ac_cv_prog_cc_cross
1185
1186 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1187 echo "configure:1188: checking whether we are using GNU C" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1189   echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191   cat > conftest.c <<EOF
1192 #ifdef __GNUC__
1193   yes;
1194 #endif
1195 EOF
1196 if { 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
1197   ac_cv_prog_gcc=yes
1198 else
1199   ac_cv_prog_gcc=no
1200 fi
1201 fi
1202
1203 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1204
1205 if 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
1211 echo "configure:1212: checking whether ${CC-cc} accepts -g" >&5
1212 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1213   echo $ac_n "(cached) $ac_c" 1>&6
1214 else
1215   echo 'void f(){}' > conftest.c
1216 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1217   ac_cv_prog_cc_g=yes
1218 else
1219   ac_cv_prog_cc_g=no
1220 fi
1221 rm -f conftest*
1222
1223 fi
1224
1225 echo "$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
1233 else
1234   GCC=
1235   test "${CFLAGS+set}" = set || CFLAGS="-g"
1236 fi
1237
1238 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1239 if test "${with_gnu_ld+set}" = set; then
1240   withval="$with_gnu_ld"
1241   test "$withval" = no || with_gnu_ld=yes
1242 else
1243   with_gnu_ld=no
1244 fi
1245
1246
1247 ac_prog=ld
1248 if 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
1251 echo "configure:1252: checking for ld used by GCC" >&5
1252   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1253   case "$ac_prog" in
1254   # Accept absolute paths.
1255   /* | A-Za-z:\\*)
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
1267 elif test "$with_gnu_ld" = yes; then
1268   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1269 echo "configure:1270: checking for GNU ld" >&5
1270 else
1271   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1272 echo "configure:1273: checking for non-GNU ld" >&5
1273 fi
1274 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1275   echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277   if test -z "$LD"; then
1278   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1279   for ac_dir in $PATH; do
1280     test -z "$ac_dir" && ac_dir=.
1281     if test -f "$ac_dir/$ac_prog"; then
1282       ac_cv_path_LD="$ac_dir/$ac_prog"
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.
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
1288       else
1289         test "$with_gnu_ld" != yes && break
1290       fi
1291     fi
1292   done
1293   IFS="$ac_save_ifs"
1294 else
1295   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1296 fi
1297 fi
1298
1299 LD="$ac_cv_path_LD"
1300 if test -n "$LD"; then
1301   echo "$ac_t""$LD" 1>&6
1302 else
1303   echo "$ac_t""no" 1>&6
1304 fi
1305 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1306
1307 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1308 echo "configure:1309: checking if the linker ($LD) is GNU ld" >&5
1309 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1310   echo $ac_n "(cached) $ac_c" 1>&6
1311 else
1312   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1313 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1314   ac_cv_prog_gnu_ld=yes
1315 else
1316   ac_cv_prog_gnu_ld=no
1317 fi
1318 fi
1319
1320 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1321
1322
1323 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1324 echo "configure:1325: checking for BSD-compatible nm" >&5
1325 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1326   echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328   case "$NM" in
1329 /* | A-Za-z:\\*)
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
1335     test -z "$ac_dir" && ac_dir=.
1336     if test -f $ac_dir/nm; then
1337       # Check to see if the nm accepts a BSD-compat flag.
1338       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1339       #   nm: unknown option "B" ignored
1340       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1341         ac_cv_path_NM="$ac_dir/nm -B"
1342       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
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   ;;
1353 esac
1354 fi
1355
1356 NM="$ac_cv_path_NM"
1357 echo "$ac_t""$NM" 1>&6
1358
1359
1360 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1361 echo "configure:1362: checking whether ln -s works" >&5
1362 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1363   echo $ac_n "(cached) $ac_c" 1>&6
1364 else
1365   rm -f conftestdata
1366 if ln -s X conftestdata 2>/dev/null
1367 then
1368   rm -f conftestdata
1369   ac_cv_prog_LN_S="ln -s"
1370 else
1371   ac_cv_prog_LN_S=ln
1372 fi
1373 fi
1374 LN_S="$ac_cv_prog_LN_S"
1375 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1376   echo "$ac_t""yes" 1>&6
1377 else
1378   echo "$ac_t""no" 1>&6
1379 fi
1380
1381 # Always use our own libtool.
1382 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1383
1384 # Check for any special flags to pass to ltconfig.
1385 libtool_flags=
1386 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1387 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1388 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1389 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1390 test "$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.
1394 case "$host" in
1395 *-*-irix6*)
1396   # Find out which ABI we are using.
1397   echo '#line 1398 "configure"' > conftest.$ac_ext
1398   if { (eval echo configure:1399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1399     case "`/usr/bin/file conftest.o`" in
1400     *32-bit*)
1401       LD="${LD-ld} -32"
1402       ;;
1403     *N32*)
1404       LD="${LD-ld} -n32"
1405       ;;
1406     *64-bit*)
1407       LD="${LD-ld} -64"
1408       ;;
1409     esac
1410   fi
1411   rm -rf conftest*
1412   ;;
1413
1414 *-*-sco3.2v5*)
1415   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1416   CFLAGS="$CFLAGS -belf"
1417   ;;
1418 esac
1419
1420 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1421 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1422 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
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
1427
1428 # Check whether --enable-targets or --disable-targets was given.
1429 if test "${enable_targets+set}" = set; then
1430   enableval="$enable_targets"
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 ;;
1436 esac
1437 fi
1438 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1439 if 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; } ;;
1445 esac
1446 fi
1447
1448
1449
1450
1451
1452 if test -z "$target" ; then
1453     { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1454 fi
1455 if test "$program_transform_name" = s,x,x,; then
1456   program_transform_name=
1457 else
1458   # Double any \ or $.  echo might interpret backslashes.
1459   cat <<\EOF_SED > conftestsed
1460 s,\\,\\\\,g; s,\$,$$,g
1461 EOF_SED
1462   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1463   rm -f conftestsed
1464 fi
1465 test "$program_prefix" != NONE &&
1466   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1467 # Use a double $ so make ignores it.
1468 test "$program_suffix" != NONE &&
1469   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1470
1471 # sed with no file args requires a program.
1472 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1473
1474
1475 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1476 echo "configure:1477: checking whether to enable maintainer-specific portions of Makefiles" >&5
1477     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1478 if test "${enable_maintainer_mode+set}" = set; then
1479   enableval="$enable_maintainer_mode"
1480   USE_MAINTAINER_MODE=$enableval
1481 else
1482   USE_MAINTAINER_MODE=no
1483 fi
1484
1485   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1486   if test $USE_MAINTAINER_MODE = yes; then
1487     MAINT=
1488   else
1489     MAINT='#M#'
1490   fi
1491   
1492
1493 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1494 echo "configure:1495: checking for Cygwin32 environment" >&5
1495 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1496   echo $ac_n "(cached) $ac_c" 1>&6
1497 else
1498   cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501
1502 int main() {
1503 return __CYGWIN32__;
1504 ; return 0; }
1505 EOF
1506 if { (eval echo configure:1507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1507   rm -rf conftest*
1508   am_cv_cygwin32=yes
1509 else
1510   echo "configure: failed program was:" >&5
1511   cat conftest.$ac_ext >&5
1512   rm -rf conftest*
1513   am_cv_cygwin32=no
1514 fi
1515 rm -f conftest*
1516 rm -f conftest*
1517 fi
1518
1519 echo "$ac_t""$am_cv_cygwin32" 1>&6
1520 CYGWIN32=
1521 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1522 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1523 echo "configure:1524: checking for Mingw32 environment" >&5
1524 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1525   echo $ac_n "(cached) $ac_c" 1>&6
1526 else
1527   cat > conftest.$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1530
1531 int main() {
1532 return __MINGW32__;
1533 ; return 0; }
1534 EOF
1535 if { (eval echo configure:1536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1536   rm -rf conftest*
1537   am_cv_mingw32=yes
1538 else
1539   echo "configure: failed program was:" >&5
1540   cat conftest.$ac_ext >&5
1541   rm -rf conftest*
1542   am_cv_mingw32=no
1543 fi
1544 rm -f conftest*
1545 rm -f conftest*
1546 fi
1547
1548 echo "$ac_t""$am_cv_mingw32" 1>&6
1549 MINGW32=
1550 test "$am_cv_mingw32" = yes && MINGW32=yes
1551
1552
1553 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1554 echo "configure:1555: checking for executable suffix" >&5
1555 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1556   echo $ac_n "(cached) $ac_c" 1>&6
1557 else
1558   if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
1559 am_cv_exeext=.exe
1560 else
1561 cat > am_c_test.c << 'EOF'
1562 int main() {
1563 /* Nothing needed here */
1564 }
1565 EOF
1566 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1567 am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1568 rm -f am_c_test*
1569 fi
1570
1571 test x"${am_cv_exeext}" = x && am_cv_exeext=no
1572 fi
1573 EXEEXT=""
1574 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1575 echo "$ac_t""${am_cv_exeext}" 1>&6
1576
1577
1578 # host-specific stuff:
1579
1580 # Extract the first word of "gcc", so it can be a program name with args.
1581 set dummy gcc; ac_word=$2
1582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1583 echo "configure:1584: checking for $ac_word" >&5
1584 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1585   echo $ac_n "(cached) $ac_c" 1>&6
1586 else
1587   if test -n "$CC"; then
1588   ac_cv_prog_CC="$CC" # Let the user override the test.
1589 else
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"
1599 fi
1600 fi
1601 CC="$ac_cv_prog_CC"
1602 if test -n "$CC"; then
1603   echo "$ac_t""$CC" 1>&6
1604 else
1605   echo "$ac_t""no" 1>&6
1606 fi
1607
1608 if test -z "$CC"; then
1609   # Extract the first word of "cc", so it can be a program name with args.
1610 set dummy cc; ac_word=$2
1611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1612 echo "configure:1613: checking for $ac_word" >&5
1613 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1614   echo $ac_n "(cached) $ac_c" 1>&6
1615 else
1616   if test -n "$CC"; then
1617   ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
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"
1633 if 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
1646 fi
1647 fi
1648 fi
1649 CC="$ac_cv_prog_CC"
1650 if test -n "$CC"; then
1651   echo "$ac_t""$CC" 1>&6
1652 else
1653   echo "$ac_t""no" 1>&6
1654 fi
1655
1656   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1657 fi
1658
1659 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1660 echo "configure:1661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1661
1662 ac_ext=c
1663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1664 ac_cpp='$CPP $CPPFLAGS'
1665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1666 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1667 cross_compiling=$ac_cv_prog_cc_cross
1668
1669 cat > conftest.$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 main(){return(0);}
1673 EOF
1674 if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
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
1682 else
1683   echo "configure: failed program was:" >&5
1684   cat conftest.$ac_ext >&5
1685   ac_cv_prog_cc_works=no
1686 fi
1687 rm -fr conftest*
1688
1689 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1690 if 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; }
1692 fi
1693 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1694 echo "configure:1695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1695 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1696 cross_compiling=$ac_cv_prog_cc_cross
1697
1698 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1699 echo "configure:1700: checking whether we are using GNU C" >&5
1700 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1701   echo $ac_n "(cached) $ac_c" 1>&6
1702 else
1703   cat > conftest.c <<EOF
1704 #ifdef __GNUC__
1705   yes;
1706 #endif
1707 EOF
1708 if { 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
1709   ac_cv_prog_gcc=yes
1710 else
1711   ac_cv_prog_gcc=no
1712 fi
1713 fi
1714
1715 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1716
1717 if test $ac_cv_prog_gcc = yes; then
1718   GCC=yes
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
1723 echo "configure:1724: checking whether ${CC-cc} accepts -g" >&5
1724 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1725   echo $ac_n "(cached) $ac_c" 1>&6
1726 else
1727   echo 'void f(){}' > conftest.c
1728 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1729   ac_cv_prog_cc_g=yes
1730 else
1731   ac_cv_prog_cc_g=no
1732 fi
1733 rm -f conftest*
1734
1735 fi
1736
1737 echo "$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"
1744   fi
1745 else
1746   GCC=
1747   test "${CFLAGS+set}" = set || CFLAGS="-g"
1748 fi
1749
1750
1751 . ${srcdir}/../bfd/configure.host
1752
1753
1754
1755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1756
1757
1758 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1759 echo "configure:1760: checking how to run the C preprocessor" >&5
1760 # On Suns, sometimes $CPP names a directory.
1761 if test -n "$CPP" && test -d "$CPP"; then
1762   CPP=
1763 fi
1764 if test -z "$CPP"; then
1765 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1766   echo $ac_n "(cached) $ac_c" 1>&6
1767 else
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
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 #include <assert.h>
1777 Syntax Error
1778 EOF
1779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1780 { (eval echo configure:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1781 ac_err=`grep -v '^ *+' conftest.out`
1782 if test -z "$ac_err"; then
1783   :
1784 else
1785   echo "$ac_err" >&5
1786   echo "configure: failed program was:" >&5
1787   cat conftest.$ac_ext >&5
1788   rm -rf conftest*
1789   CPP="${CC-cc} -E -traditional-cpp"
1790   cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1793 #include <assert.h>
1794 Syntax Error
1795 EOF
1796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1797 { (eval echo configure:1798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1798 ac_err=`grep -v '^ *+' conftest.out`
1799 if test -z "$ac_err"; then
1800   :
1801 else
1802   echo "$ac_err" >&5
1803   echo "configure: failed program was:" >&5
1804   cat conftest.$ac_ext >&5
1805   rm -rf conftest*
1806   CPP=/lib/cpp
1807 fi
1808 rm -f conftest*
1809 fi
1810 rm -f conftest*
1811   ac_cv_prog_CPP="$CPP"
1812 fi
1813   CPP="$ac_cv_prog_CPP"
1814 else
1815   ac_cv_prog_CPP="$CPP"
1816 fi
1817 echo "$ac_t""$CPP" 1>&6
1818
1819 for ac_hdr in string.h strings.h stdlib.h
1820 do
1821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $ac_hdr" >&5
1824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1825   echo $ac_n "(cached) $ac_c" 1>&6
1826 else
1827   cat > conftest.$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1830 #include <$ac_hdr>
1831 EOF
1832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1833 { (eval echo configure:1834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1834 ac_err=`grep -v '^ *+' conftest.out`
1835 if test -z "$ac_err"; then
1836   rm -rf conftest*
1837   eval "ac_cv_header_$ac_safe=yes"
1838 else
1839   echo "$ac_err" >&5
1840   echo "configure: failed program was:" >&5
1841   cat conftest.$ac_ext >&5
1842   rm -rf conftest*
1843   eval "ac_cv_header_$ac_safe=no"
1844 fi
1845 rm -f conftest*
1846 fi
1847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1848   echo "$ac_t""yes" 1>&6
1849     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1850   cat >> confdefs.h <<EOF
1851 #define $ac_tr_hdr 1
1852 EOF
1853  
1854 else
1855   echo "$ac_t""no" 1>&6
1856 fi
1857 done
1858
1859
1860 # start-sanitize-cygnus
1861 use_cgen=no
1862 if 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
1870 fi
1871 if test $use_cgen = yes ; then
1872     # Extract the first word of "guile", so it can be a program name with args.
1873 set dummy guile; ac_word=$2
1874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_word" >&5
1876 if eval "test \"`echo '$''{'ac_cv_prog_SCHEME'+set}'`\" = set"; then
1877   echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879   if test -n "$SCHEME"; then
1880   ac_cv_prog_SCHEME="$SCHEME" # Let the user override the test.
1881 else
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"
1892 fi
1893 fi
1894 SCHEME="$ac_cv_prog_SCHEME"
1895 if test -n "$SCHEME"; then
1896   echo "$ac_t""$SCHEME" 1>&6
1897 else
1898   echo "$ac_t""no" 1>&6
1899 fi
1900
1901 fi
1902 # end-sanitize-cygnus
1903
1904 # target-specific stuff:
1905
1906 # Canonicalize the secondary target names.
1907 if test -n "$enable_targets" ; then
1908     for targ in `echo $enable_targets | sed 's/,/ /g'`
1909     do
1910         result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
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
1918 fi
1919
1920 all_targets=false
1921 selarchs=
1922 for targ in $target $canon_targets
1923 do
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
1930 done    
1931
1932 # Utility var, documents generic cgen support files.
1933
1934 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
1935
1936 # We don't do any links based on the target system, just makefile config.
1937
1938 if 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
1948         bfd_a29k_arch)          ta="$ta a29k-dis.lo" ;;
1949         bfd_alliant_arch)       ;;
1950         bfd_alpha_arch)         ta="$ta alpha-dis.lo alpha-opc.lo" ;;
1951         bfd_arc_arch)           ta="$ta arc-dis.lo arc-opc.lo" ;;
1952         bfd_arm_arch)           ta="$ta arm-dis.lo" ;;
1953         bfd_convex_arch)        ;;
1954         bfd_d10v_arch)          ta="$ta d10v-dis.lo d10v-opc.lo" ;;
1955 # start-sanitize-d30v
1956         bfd_d30v_arch)          ta="$ta d30v-dis.lo d30v-opc.lo" ;;
1957 # end-sanitize-d30v
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" ;;
1962         bfd_i860_arch)          ;;
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" ;;
1972         bfd_pyramid_arch)       ;;
1973         bfd_romp_arch)          ;;
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" ;;
1977         bfd_tahoe_arch)         ;;
1978         bfd_tic30_arch)         ta="$ta tic30-dis.lo" ;;
1979 # start-sanitize-tic80
1980         bfd_tic80_arch)         ta="$ta tic80-dis.lo tic80-opc.lo" ;;
1981 # end-sanitize-tic80
1982 # start-sanitize-sky
1983         bfd_dvp_arch)           ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
1984 # end-sanitize-sky
1985         bfd_v850_arch)          ta="$ta v850-opc.lo v850-dis.lo" ;;
1986 # start-sanitize-v850e
1987         bfd_v850e_arch)         ta="$ta v850-opc.lo v850-dis.lo" ;;
1988         bfd_v850ea_arch)        ta="$ta v850-opc.lo v850-dis.lo" ;;
1989 # end-sanitize-v850e
1990         bfd_vax_arch)           ;;
1991         bfd_w65_arch)           ta="$ta w65-dis.lo" ;;
1992         bfd_we32k_arch)         ;;
1993         bfd_z8k_arch)           ta="$ta z8k-dis.lo" ;;
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
2022 else    # all_targets is true
2023     archdefs=-DARCH_all
2024     BFD_MACHINES='$(ALL_MACHINES)'
2025 fi
2026
2027
2028
2029
2030 trap '' 1 2 15
2031 cat > 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 #
2046 EOF
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.
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 |
2053   case `(ac_space=' '; set) 2>&1 | grep ac_space` in
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
2066 if cmp -s $cache_file confcache; then
2067   :
2068 else
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
2075 fi
2076 rm -f confcache
2077
2078 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2079
2080 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2081 # Let make expand exec_prefix.
2082 test "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.
2087 if test "x$srcdir" = x.; then
2088   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2089 fi
2090
2091 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2092
2093 DEFS=-DHAVE_CONFIG_H
2094
2095 # Without the "./", some shells look in PATH for config.status.
2096 : ${CONFIG_STATUS=./config.status}
2097
2098 echo creating $CONFIG_STATUS
2099 rm -f $CONFIG_STATUS
2100 cat > $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
2112 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2113 for ac_option
2114 do
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)
2120     echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
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
2126 done
2127
2128 ac_given_srcdir=$srcdir
2129 ac_given_INSTALL="$INSTALL"
2130
2131 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2132 EOF
2133 cat >> $CONFIG_STATUS <<EOF
2134
2135 # Protect against being on the right side of a sed subst in config.status.
2136 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2137  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2138 $ac_vpsub
2139 $extrasub
2140 s%@SHELL@%$SHELL%g
2141 s%@CFLAGS@%$CFLAGS%g
2142 s%@CPPFLAGS@%$CPPFLAGS%g
2143 s%@CXXFLAGS@%$CXXFLAGS%g
2144 s%@DEFS@%$DEFS%g
2145 s%@LDFLAGS@%$LDFLAGS%g
2146 s%@LIBS@%$LIBS%g
2147 s%@exec_prefix@%$exec_prefix%g
2148 s%@prefix@%$prefix%g
2149 s%@program_transform_name@%$program_transform_name%g
2150 s%@bindir@%$bindir%g
2151 s%@sbindir@%$sbindir%g
2152 s%@libexecdir@%$libexecdir%g
2153 s%@datadir@%$datadir%g
2154 s%@sysconfdir@%$sysconfdir%g
2155 s%@sharedstatedir@%$sharedstatedir%g
2156 s%@localstatedir@%$localstatedir%g
2157 s%@libdir@%$libdir%g
2158 s%@includedir@%$includedir%g
2159 s%@oldincludedir@%$oldincludedir%g
2160 s%@infodir@%$infodir%g
2161 s%@mandir@%$mandir%g
2162 s%@host@%$host%g
2163 s%@host_alias@%$host_alias%g
2164 s%@host_cpu@%$host_cpu%g
2165 s%@host_vendor@%$host_vendor%g
2166 s%@host_os@%$host_os%g
2167 s%@target@%$target%g
2168 s%@target_alias@%$target_alias%g
2169 s%@target_cpu@%$target_cpu%g
2170 s%@target_vendor@%$target_vendor%g
2171 s%@target_os@%$target_os%g
2172 s%@build@%$build%g
2173 s%@build_alias@%$build_alias%g
2174 s%@build_cpu@%$build_cpu%g
2175 s%@build_vendor@%$build_vendor%g
2176 s%@build_os@%$build_os%g
2177 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2178 s%@INSTALL_DATA@%$INSTALL_DATA%g
2179 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2180 s%@PACKAGE@%$PACKAGE%g
2181 s%@VERSION@%$VERSION%g
2182 s%@ACLOCAL@%$ACLOCAL%g
2183 s%@AUTOCONF@%$AUTOCONF%g
2184 s%@AUTOMAKE@%$AUTOMAKE%g
2185 s%@AUTOHEADER@%$AUTOHEADER%g
2186 s%@MAKEINFO@%$MAKEINFO%g
2187 s%@SET_MAKE@%$SET_MAKE%g
2188 s%@AR@%$AR%g
2189 s%@RANLIB@%$RANLIB%g
2190 s%@CC@%$CC%g
2191 s%@LD@%$LD%g
2192 s%@NM@%$NM%g
2193 s%@LN_S@%$LN_S%g
2194 s%@LIBTOOL@%$LIBTOOL%g
2195 s%@MAINT@%$MAINT%g
2196 s%@EXEEXT@%$EXEEXT%g
2197 s%@HDEFINES@%$HDEFINES%g
2198 s%@CPP@%$CPP%g
2199 s%@SCHEME@%$SCHEME%g
2200 s%@archdefs@%$archdefs%g
2201 s%@BFD_MACHINES@%$BFD_MACHINES%g
2202
2203 CEOF
2204 EOF
2205
2206 cat >> $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.
2210 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2211 ac_file=1 # Number of current file.
2212 ac_beg=1 # First line for current file.
2213 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2214 ac_more_lines=:
2215 ac_sed_cmds=""
2216 while $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
2235 done
2236 if test -z "$ac_sed_cmds"; then
2237   ac_sed_cmds=cat
2238 fi
2239 EOF
2240
2241 cat >> $CONFIG_STATUS <<EOF
2242
2243 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2244 EOF
2245 cat >> $CONFIG_STATUS <<\EOF
2246 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2247   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2248   case "$ac_file" in
2249   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2250        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2251   *) ac_file_in="${ac_file}.in" ;;
2252   esac
2253
2254   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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
2278   case "$ac_given_INSTALL" in
2279   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2280   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2281   esac
2282
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
2291
2292   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2293   sed -e "$ac_comsub
2294 s%@configure_input@%$configure_input%g
2295 s%@srcdir@%$srcdir%g
2296 s%@top_srcdir@%$top_srcdir%g
2297 s%@INSTALL@%$INSTALL%g
2298 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2299 fi; done
2300 rm -f conftest.s*
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.
2306 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2307 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2308 ac_dC='\3'
2309 ac_dD='%g'
2310 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2311 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2312 ac_uB='\([      ]\)%\1#\2define\3'
2313 ac_uC=' '
2314 ac_uD='\4%g'
2315 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2316 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2317 ac_eB='$%\1#\2define\3'
2318 ac_eC=' '
2319 ac_eD='%g'
2320
2321 if test "${CONFIG_HEADERS+set}" != set; then
2322 EOF
2323 cat >> $CONFIG_STATUS <<EOF
2324   CONFIG_HEADERS="config.h:config.in"
2325 EOF
2326 cat >> $CONFIG_STATUS <<\EOF
2327 fi
2328 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2329   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2330   case "$ac_file" in
2331   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
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
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
2341
2342 EOF
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:
2346 # Protect against being on the right side of a sed subst in config.status.
2347 # Protect against being in an unquoted here document in config.status.
2348 rm -f conftest.vals
2349 cat > conftest.hdr <<\EOF
2350 s/[\\&%]/\\&/g
2351 s%[\\$`]%\\&%g
2352 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2353 s%ac_d%ac_u%gp
2354 s%ac_u%ac_e%gp
2355 EOF
2356 sed -n -f conftest.hdr confdefs.h > conftest.vals
2357 rm -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.
2362 cat >> conftest.vals <<\EOF
2363 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2364 EOF
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.
2368
2369 rm -f conftest.tail
2370 while :
2371 do
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
2386 done
2387 rm -f conftest.vals
2388
2389 cat >> $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
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
2404     rm -f $ac_file
2405     mv conftest.h $ac_file
2406   fi
2407 fi; done
2408
2409 EOF
2410 cat >> $CONFIG_STATUS <<EOF
2411
2412
2413 EOF
2414 cat >> $CONFIG_STATUS <<\EOF
2415 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2416
2417 exit 0
2418 EOF
2419 chmod +x $CONFIG_STATUS
2420 rm -fr confdefs* $ac_clean_files
2421 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2422