OSDN Git Service

c3d2348644da4f48ea8aa0e12abcc9a0c64da4da
[uclinux-h8/elf2flt.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
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  --with-libbfd=<file>  path to libbfd.a library to use "
16 ac_help="$ac_help
17  --with-libiberty=<file>  path to libiberty.a library to use "
18 ac_help="$ac_help
19  --with-bfd-include-dir=<dir>  include path for correct bfd.h "
20 ac_help="$ac_help
21  --with-binutils-include-dir=<dir>  include path for binutils headers "
22 ac_help="$ac_help
23  --disable-got-check - disable check for GOT (needed on H8) "
24
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
28 build=NONE
29 cache_file=./config.cache
30 exec_prefix=NONE
31 host=NONE
32 no_create=
33 nonopt=NONE
34 no_recursion=
35 prefix=NONE
36 program_prefix=NONE
37 program_suffix=NONE
38 program_transform_name=s,x,x,
39 silent=
40 site=
41 srcdir=
42 target=NONE
43 verbose=
44 x_includes=NONE
45 x_libraries=NONE
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
58
59 # Initialize some other variables.
60 subdirs=
61 MFLAGS= MAKEFLAGS=
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
64 ac_max_here_lines=12
65
66 ac_prev=
67 for ac_option
68 do
69
70   # If the previous option needs an argument, assign it.
71   if test -n "$ac_prev"; then
72     eval "$ac_prev=\$ac_option"
73     ac_prev=
74     continue
75   fi
76
77   case "$ac_option" in
78   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79   *) ac_optarg= ;;
80   esac
81
82   # Accept the important Cygnus configure options, so we can diagnose typos.
83
84   case "$ac_option" in
85
86   -bindir | --bindir | --bindi | --bind | --bin | --bi)
87     ac_prev=bindir ;;
88   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89     bindir="$ac_optarg" ;;
90
91   -build | --build | --buil | --bui | --bu)
92     ac_prev=build ;;
93   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94     build="$ac_optarg" ;;
95
96   -cache-file | --cache-file | --cache-fil | --cache-fi \
97   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98     ac_prev=cache_file ;;
99   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101     cache_file="$ac_optarg" ;;
102
103   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104     ac_prev=datadir ;;
105   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106   | --da=*)
107     datadir="$ac_optarg" ;;
108
109   -disable-* | --disable-*)
110     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111     # Reject names that are not valid shell variable names.
112     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114     fi
115     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116     eval "enable_${ac_feature}=no" ;;
117
118   -enable-* | --enable-*)
119     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120     # Reject names that are not valid shell variable names.
121     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123     fi
124     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125     case "$ac_option" in
126       *=*) ;;
127       *) ac_optarg=yes ;;
128     esac
129     eval "enable_${ac_feature}='$ac_optarg'" ;;
130
131   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133   | --exec | --exe | --ex)
134     ac_prev=exec_prefix ;;
135   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137   | --exec=* | --exe=* | --ex=*)
138     exec_prefix="$ac_optarg" ;;
139
140   -gas | --gas | --ga | --g)
141     # Obsolete; use --with-gas.
142     with_gas=yes ;;
143
144   -help | --help | --hel | --he)
145     # Omit some internal or obsolete options to make the list less imposing.
146     # This message is too long to be a string in the A/UX 3.1 sh.
147     cat << EOF
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
150 Configuration:
151   --cache-file=FILE       cache test results in FILE
152   --help                  print this message
153   --no-create             do not create output files
154   --quiet, --silent       do not print \`checking...' messages
155   --version               print the version of autoconf that created configure
156 Directory and file names:
157   --prefix=PREFIX         install architecture-independent files in PREFIX
158                           [$ac_default_prefix]
159   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
160                           [same as prefix]
161   --bindir=DIR            user executables in DIR [EPREFIX/bin]
162   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
163   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
164   --datadir=DIR           read-only architecture-independent data in DIR
165                           [PREFIX/share]
166   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
167   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
168                           [PREFIX/com]
169   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
170   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
171   --includedir=DIR        C header files in DIR [PREFIX/include]
172   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
173   --infodir=DIR           info documentation in DIR [PREFIX/info]
174   --mandir=DIR            man documentation in DIR [PREFIX/man]
175   --srcdir=DIR            find the sources in DIR [configure dir or ..]
176   --program-prefix=PREFIX prepend PREFIX to installed program names
177   --program-suffix=SUFFIX append SUFFIX to installed program names
178   --program-transform-name=PROGRAM
179                           run sed PROGRAM on installed program names
180 EOF
181     cat << EOF
182 Host type:
183   --build=BUILD           configure for building on BUILD [BUILD=HOST]
184   --host=HOST             configure for HOST [guessed]
185   --target=TARGET         configure for TARGET [TARGET=HOST]
186 Features and packages:
187   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
188   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
189   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
190   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
191   --x-includes=DIR        X include files are in DIR
192   --x-libraries=DIR       X library files are in DIR
193 EOF
194     if test -n "$ac_help"; then
195       echo "--enable and --with options recognized:$ac_help"
196     fi
197     exit 0 ;;
198
199   -host | --host | --hos | --ho)
200     ac_prev=host ;;
201   -host=* | --host=* | --hos=* | --ho=*)
202     host="$ac_optarg" ;;
203
204   -includedir | --includedir | --includedi | --included | --include \
205   | --includ | --inclu | --incl | --inc)
206     ac_prev=includedir ;;
207   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208   | --includ=* | --inclu=* | --incl=* | --inc=*)
209     includedir="$ac_optarg" ;;
210
211   -infodir | --infodir | --infodi | --infod | --info | --inf)
212     ac_prev=infodir ;;
213   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214     infodir="$ac_optarg" ;;
215
216   -libdir | --libdir | --libdi | --libd)
217     ac_prev=libdir ;;
218   -libdir=* | --libdir=* | --libdi=* | --libd=*)
219     libdir="$ac_optarg" ;;
220
221   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222   | --libexe | --libex | --libe)
223     ac_prev=libexecdir ;;
224   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225   | --libexe=* | --libex=* | --libe=*)
226     libexecdir="$ac_optarg" ;;
227
228   -localstatedir | --localstatedir | --localstatedi | --localstated \
229   | --localstate | --localstat | --localsta | --localst \
230   | --locals | --local | --loca | --loc | --lo)
231     ac_prev=localstatedir ;;
232   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235     localstatedir="$ac_optarg" ;;
236
237   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238     ac_prev=mandir ;;
239   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240     mandir="$ac_optarg" ;;
241
242   -nfp | --nfp | --nf)
243     # Obsolete; use --without-fp.
244     with_fp=no ;;
245
246   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247   | --no-cr | --no-c)
248     no_create=yes ;;
249
250   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252     no_recursion=yes ;;
253
254   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256   | --oldin | --oldi | --old | --ol | --o)
257     ac_prev=oldincludedir ;;
258   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261     oldincludedir="$ac_optarg" ;;
262
263   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264     ac_prev=prefix ;;
265   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266     prefix="$ac_optarg" ;;
267
268   -program-prefix | --program-prefix | --program-prefi | --program-pref \
269   | --program-pre | --program-pr | --program-p)
270     ac_prev=program_prefix ;;
271   -program-prefix=* | --program-prefix=* | --program-prefi=* \
272   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273     program_prefix="$ac_optarg" ;;
274
275   -program-suffix | --program-suffix | --program-suffi | --program-suff \
276   | --program-suf | --program-su | --program-s)
277     ac_prev=program_suffix ;;
278   -program-suffix=* | --program-suffix=* | --program-suffi=* \
279   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280     program_suffix="$ac_optarg" ;;
281
282   -program-transform-name | --program-transform-name \
283   | --program-transform-nam | --program-transform-na \
284   | --program-transform-n | --program-transform- \
285   | --program-transform | --program-transfor \
286   | --program-transfo | --program-transf \
287   | --program-trans | --program-tran \
288   | --progr-tra | --program-tr | --program-t)
289     ac_prev=program_transform_name ;;
290   -program-transform-name=* | --program-transform-name=* \
291   | --program-transform-nam=* | --program-transform-na=* \
292   | --program-transform-n=* | --program-transform-=* \
293   | --program-transform=* | --program-transfor=* \
294   | --program-transfo=* | --program-transf=* \
295   | --program-trans=* | --program-tran=* \
296   | --progr-tra=* | --program-tr=* | --program-t=*)
297     program_transform_name="$ac_optarg" ;;
298
299   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300   | -silent | --silent | --silen | --sile | --sil)
301     silent=yes ;;
302
303   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304     ac_prev=sbindir ;;
305   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306   | --sbi=* | --sb=*)
307     sbindir="$ac_optarg" ;;
308
309   -sharedstatedir | --sharedstatedir | --sharedstatedi \
310   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311   | --sharedst | --shareds | --shared | --share | --shar \
312   | --sha | --sh)
313     ac_prev=sharedstatedir ;;
314   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317   | --sha=* | --sh=*)
318     sharedstatedir="$ac_optarg" ;;
319
320   -site | --site | --sit)
321     ac_prev=site ;;
322   -site=* | --site=* | --sit=*)
323     site="$ac_optarg" ;;
324
325   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326     ac_prev=srcdir ;;
327   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328     srcdir="$ac_optarg" ;;
329
330   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331   | --syscon | --sysco | --sysc | --sys | --sy)
332     ac_prev=sysconfdir ;;
333   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335     sysconfdir="$ac_optarg" ;;
336
337   -target | --target | --targe | --targ | --tar | --ta | --t)
338     ac_prev=target ;;
339   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340     target="$ac_optarg" ;;
341
342   -v | -verbose | --verbose | --verbos | --verbo | --verb)
343     verbose=yes ;;
344
345   -version | --version | --versio | --versi | --vers)
346     echo "configure generated by autoconf version 2.13"
347     exit 0 ;;
348
349   -with-* | --with-*)
350     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351     # Reject names that are not valid shell variable names.
352     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354     fi
355     ac_package=`echo $ac_package| sed 's/-/_/g'`
356     case "$ac_option" in
357       *=*) ;;
358       *) ac_optarg=yes ;;
359     esac
360     eval "with_${ac_package}='$ac_optarg'" ;;
361
362   -without-* | --without-*)
363     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364     # Reject names that are not valid shell variable names.
365     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367     fi
368     ac_package=`echo $ac_package| sed 's/-/_/g'`
369     eval "with_${ac_package}=no" ;;
370
371   --x)
372     # Obsolete; use --with-x.
373     with_x=yes ;;
374
375   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376   | --x-incl | --x-inc | --x-in | --x-i)
377     ac_prev=x_includes ;;
378   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380     x_includes="$ac_optarg" ;;
381
382   -x-libraries | --x-libraries | --x-librarie | --x-librari \
383   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384     ac_prev=x_libraries ;;
385   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387     x_libraries="$ac_optarg" ;;
388
389   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390     ;;
391
392   *)
393     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394       echo "configure: warning: $ac_option: invalid host type" 1>&2
395     fi
396     if test "x$nonopt" != xNONE; then
397       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398     fi
399     nonopt="$ac_option"
400     ;;
401
402   esac
403 done
404
405 if test -n "$ac_prev"; then
406   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 fi
408
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410
411 # File descriptor usage:
412 # 0 standard input
413 # 1 file creation
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
420   exec 6>/dev/null
421 else
422   exec 6>&1
423 fi
424 exec 5>./config.log
425
426 echo "\
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
429 " 1>&5
430
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
433 ac_configure_args=
434 for ac_arg
435 do
436   case "$ac_arg" in
437   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438   | --no-cr | --no-c) ;;
439   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444   esac
445 done
446
447 # NLS nuisances.
448 # Only set these to C if already set.  These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
456
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
460 echo > confdefs.h
461
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=elf2flt.c
465
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468   ac_srcdir_defaulted=yes
469   # Try the directory containing this script, then its parent.
470   ac_prog=$0
471   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473   srcdir=$ac_confdir
474   if test ! -r $srcdir/$ac_unique_file; then
475     srcdir=..
476   fi
477 else
478   ac_srcdir_defaulted=no
479 fi
480 if test ! -r $srcdir/$ac_unique_file; then
481   if test "$ac_srcdir_defaulted" = yes; then
482     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483   else
484     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485   fi
486 fi
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491   if test "x$prefix" != xNONE; then
492     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493   else
494     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495   fi
496 fi
497 for ac_site_file in $CONFIG_SITE; do
498   if test -r "$ac_site_file"; then
499     echo "loading site script $ac_site_file"
500     . "$ac_site_file"
501   fi
502 done
503
504 if test -r "$cache_file"; then
505   echo "loading cache $cache_file"
506   . $cache_file
507 else
508   echo "creating cache $cache_file"
509   > $cache_file
510 fi
511
512 ac_ext=c
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
518
519 ac_exeext=
520 ac_objext=o
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524     ac_n= ac_c='
525 ' ac_t='        '
526   else
527     ac_n=-n ac_c= ac_t=
528   fi
529 else
530   ac_n= ac_c='\c' ac_t=
531 fi
532
533
534
535 # Check whether --with-libbfd or --without-libbfd was given.
536 if test "${with_libbfd+set}" = set; then
537   withval="$with_libbfd"
538    ac_libbfd=$withval 
539 else
540    ac_libbfd=NONE 
541
542 fi
543
544
545 # Check whether --with-libiberty or --without-libiberty was given.
546 if test "${with_libiberty+set}" = set; then
547   withval="$with_libiberty"
548    ac_libiberty=$withval 
549 else
550    ac_libiberty=NONE 
551
552 fi
553
554
555 # Check whether --with-bfd-include-dir or --without-bfd-include-dir was given.
556 if test "${with_bfd_include_dir+set}" = set; then
557   withval="$with_bfd_include_dir"
558    ac_bfd_include_dir=$withval 
559 else
560    ac_bfd_include_dir=NONE 
561
562 fi
563
564
565 # Check whether --with-binutils-include-dir or --without-binutils-include-dir was given.
566 if test "${with_binutils_include_dir+set}" = set; then
567   withval="$with_binutils_include_dir"
568    ac_binutils_include_dir=$withval 
569 else
570    ac_binutils_include_dir=NONE 
571
572 fi
573
574
575 # Check whether --enable-got-check or --disable-got-check was given.
576 if test "${enable_got_check+set}" = set; then
577   enableval="$enable_got_check"
578    got_check=$enableval 
579 else
580    got_check=yes 
581
582 fi
583
584
585 ac_aux_dir=
586 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
587   if test -f $ac_dir/install-sh; then
588     ac_aux_dir=$ac_dir
589     ac_install_sh="$ac_aux_dir/install-sh -c"
590     break
591   elif test -f $ac_dir/install.sh; then
592     ac_aux_dir=$ac_dir
593     ac_install_sh="$ac_aux_dir/install.sh -c"
594     break
595   fi
596 done
597 if test -z "$ac_aux_dir"; then
598   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
599 fi
600 ac_config_guess=$ac_aux_dir/config.guess
601 ac_config_sub=$ac_aux_dir/config.sub
602 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
603
604
605 # Make sure we can run config.sub.
606 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
607 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
608 fi
609
610 echo $ac_n "checking host system type""... $ac_c" 1>&6
611 echo "configure:612: checking host system type" >&5
612
613 host_alias=$host
614 case "$host_alias" in
615 NONE)
616   case $nonopt in
617   NONE)
618     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
619     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
620     fi ;;
621   *) host_alias=$nonopt ;;
622   esac ;;
623 esac
624
625 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
626 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
627 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
628 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
629 echo "$ac_t""$host" 1>&6
630
631 echo $ac_n "checking target system type""... $ac_c" 1>&6
632 echo "configure:633: checking target system type" >&5
633
634 target_alias=$target
635 case "$target_alias" in
636 NONE)
637   case $nonopt in
638   NONE) target_alias=$host_alias ;;
639   *) target_alias=$nonopt ;;
640   esac ;;
641 esac
642
643 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
644 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$target" 1>&6
648
649
650 # Extract the first word of "gcc", so it can be a program name with args.
651 set dummy gcc; ac_word=$2
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653 echo "configure:654: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655   echo $ac_n "(cached) $ac_c" 1>&6
656 else
657   if test -n "$CC"; then
658   ac_cv_prog_CC="$CC" # Let the user override the test.
659 else
660   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
661   ac_dummy="$PATH"
662   for ac_dir in $ac_dummy; do
663     test -z "$ac_dir" && ac_dir=.
664     if test -f $ac_dir/$ac_word; then
665       ac_cv_prog_CC="gcc"
666       break
667     fi
668   done
669   IFS="$ac_save_ifs"
670 fi
671 fi
672 CC="$ac_cv_prog_CC"
673 if test -n "$CC"; then
674   echo "$ac_t""$CC" 1>&6
675 else
676   echo "$ac_t""no" 1>&6
677 fi
678
679 if test -z "$CC"; then
680   # Extract the first word of "cc", so it can be a program name with args.
681 set dummy cc; ac_word=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685   echo $ac_n "(cached) $ac_c" 1>&6
686 else
687   if test -n "$CC"; then
688   ac_cv_prog_CC="$CC" # Let the user override the test.
689 else
690   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
691   ac_prog_rejected=no
692   ac_dummy="$PATH"
693   for ac_dir in $ac_dummy; do
694     test -z "$ac_dir" && ac_dir=.
695     if test -f $ac_dir/$ac_word; then
696       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
697         ac_prog_rejected=yes
698         continue
699       fi
700       ac_cv_prog_CC="cc"
701       break
702     fi
703   done
704   IFS="$ac_save_ifs"
705 if test $ac_prog_rejected = yes; then
706   # We found a bogon in the path, so make sure we never use it.
707   set dummy $ac_cv_prog_CC
708   shift
709   if test $# -gt 0; then
710     # We chose a different compiler from the bogus one.
711     # However, it has the same basename, so the bogon will be chosen
712     # first if we set CC to just the basename; use the full file name.
713     shift
714     set dummy "$ac_dir/$ac_word" "$@"
715     shift
716     ac_cv_prog_CC="$@"
717   fi
718 fi
719 fi
720 fi
721 CC="$ac_cv_prog_CC"
722 if test -n "$CC"; then
723   echo "$ac_t""$CC" 1>&6
724 else
725   echo "$ac_t""no" 1>&6
726 fi
727
728   if test -z "$CC"; then
729     case "`uname -s`" in
730     *win32* | *WIN32*)
731       # Extract the first word of "cl", so it can be a program name with args.
732 set dummy cl; ac_word=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736   echo $ac_n "(cached) $ac_c" 1>&6
737 else
738   if test -n "$CC"; then
739   ac_cv_prog_CC="$CC" # Let the user override the test.
740 else
741   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
742   ac_dummy="$PATH"
743   for ac_dir in $ac_dummy; do
744     test -z "$ac_dir" && ac_dir=.
745     if test -f $ac_dir/$ac_word; then
746       ac_cv_prog_CC="cl"
747       break
748     fi
749   done
750   IFS="$ac_save_ifs"
751 fi
752 fi
753 CC="$ac_cv_prog_CC"
754 if test -n "$CC"; then
755   echo "$ac_t""$CC" 1>&6
756 else
757   echo "$ac_t""no" 1>&6
758 fi
759  ;;
760     esac
761   fi
762   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
763 fi
764
765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
766 echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
767
768 ac_ext=c
769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
770 ac_cpp='$CPP $CPPFLAGS'
771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
773 cross_compiling=$ac_cv_prog_cc_cross
774
775 cat > conftest.$ac_ext << EOF
776
777 #line 778 "configure"
778 #include "confdefs.h"
779
780 main(){return(0);}
781 EOF
782 if { (eval echo configure:783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
783   ac_cv_prog_cc_works=yes
784   # If we can't run a trivial program, we are probably using a cross compiler.
785   if (./conftest; exit) 2>/dev/null; then
786     ac_cv_prog_cc_cross=no
787   else
788     ac_cv_prog_cc_cross=yes
789   fi
790 else
791   echo "configure: failed program was:" >&5
792   cat conftest.$ac_ext >&5
793   ac_cv_prog_cc_works=no
794 fi
795 rm -fr conftest*
796 ac_ext=c
797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
798 ac_cpp='$CPP $CPPFLAGS'
799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
801 cross_compiling=$ac_cv_prog_cc_cross
802
803 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
804 if test $ac_cv_prog_cc_works = no; then
805   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
806 fi
807 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
808 echo "configure:809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
809 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
810 cross_compiling=$ac_cv_prog_cc_cross
811
812 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
813 echo "configure:814: checking whether we are using GNU C" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
815   echo $ac_n "(cached) $ac_c" 1>&6
816 else
817   cat > conftest.c <<EOF
818 #ifdef __GNUC__
819   yes;
820 #endif
821 EOF
822 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
823   ac_cv_prog_gcc=yes
824 else
825   ac_cv_prog_gcc=no
826 fi
827 fi
828
829 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
830
831 if test $ac_cv_prog_gcc = yes; then
832   GCC=yes
833 else
834   GCC=
835 fi
836
837 ac_test_CFLAGS="${CFLAGS+set}"
838 ac_save_CFLAGS="$CFLAGS"
839 CFLAGS=
840 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
841 echo "configure:842: checking whether ${CC-cc} accepts -g" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
843   echo $ac_n "(cached) $ac_c" 1>&6
844 else
845   echo 'void f(){}' > conftest.c
846 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
847   ac_cv_prog_cc_g=yes
848 else
849   ac_cv_prog_cc_g=no
850 fi
851 rm -f conftest*
852
853 fi
854
855 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
856 if test "$ac_test_CFLAGS" = set; then
857   CFLAGS="$ac_save_CFLAGS"
858 elif test $ac_cv_prog_cc_g = yes; then
859   if test "$GCC" = yes; then
860     CFLAGS="-g -O2"
861   else
862     CFLAGS="-g"
863   fi
864 else
865   if test "$GCC" = yes; then
866     CFLAGS="-O2"
867   else
868     CFLAGS=
869   fi
870 fi
871
872 # Find a good install program.  We prefer a C program (faster),
873 # so one script is as good as another.  But avoid the broken or
874 # incompatible versions:
875 # SysV /etc/install, /usr/sbin/install
876 # SunOS /usr/etc/install
877 # IRIX /sbin/install
878 # AIX /bin/install
879 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
880 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
881 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
882 # ./install, which can be erroneously created by make from ./install.sh.
883 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
884 echo "configure:885: checking for a BSD compatible install" >&5
885 if test -z "$INSTALL"; then
886 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
887   echo $ac_n "(cached) $ac_c" 1>&6
888 else
889     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
890   for ac_dir in $PATH; do
891     # Account for people who put trailing slashes in PATH elements.
892     case "$ac_dir/" in
893     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
894     *)
895       # OSF1 and SCO ODT 3.0 have their own names for install.
896       # Don't use installbsd from OSF since it installs stuff as root
897       # by default.
898       for ac_prog in ginstall scoinst install; do
899         if test -f $ac_dir/$ac_prog; then
900           if test $ac_prog = install &&
901             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
902             # AIX install.  It has an incompatible calling convention.
903             :
904           else
905             ac_cv_path_install="$ac_dir/$ac_prog -c"
906             break 2
907           fi
908         fi
909       done
910       ;;
911     esac
912   done
913   IFS="$ac_save_IFS"
914
915 fi
916   if test "${ac_cv_path_install+set}" = set; then
917     INSTALL="$ac_cv_path_install"
918   else
919     # As a last resort, use the slow shell script.  We don't cache a
920     # path for INSTALL within a source directory, because that will
921     # break other packages using the cache if that directory is
922     # removed, or if the path is relative.
923     INSTALL="$ac_install_sh"
924   fi
925 fi
926 echo "$ac_t""$INSTALL" 1>&6
927
928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
929 # It thinks the first close brace ends the variable substitution.
930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
931
932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
933
934 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
935
936
937 if test "$ac_libiberty" = "NONE"; then
938   echo $ac_n "checking for objalloc_create in -liberty""... $ac_c" 1>&6
939 echo "configure:940: checking for objalloc_create in -liberty" >&5
940 ac_lib_var=`echo iberty'_'objalloc_create | sed 'y%./+-%__p_%'`
941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
942   echo $ac_n "(cached) $ac_c" 1>&6
943 else
944   ac_save_LIBS="$LIBS"
945 LIBS="-liberty  $LIBS"
946 cat > conftest.$ac_ext <<EOF
947 #line 948 "configure"
948 #include "confdefs.h"
949 /* Override any gcc2 internal prototype to avoid an error.  */
950 /* We use char because int might match the return type of a gcc2
951     builtin and then its argument prototype would still apply.  */
952 char objalloc_create();
953
954 int main() {
955 objalloc_create()
956 ; return 0; }
957 EOF
958 if { (eval echo configure:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
959   rm -rf conftest*
960   eval "ac_cv_lib_$ac_lib_var=yes"
961 else
962   echo "configure: failed program was:" >&5
963   cat conftest.$ac_ext >&5
964   rm -rf conftest*
965   eval "ac_cv_lib_$ac_lib_var=no"
966 fi
967 rm -f conftest*
968 LIBS="$ac_save_LIBS"
969
970 fi
971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
972   echo "$ac_t""yes" 1>&6
973     ac_tr_lib=HAVE_LIB`echo iberty | sed -e 's/[^a-zA-Z0-9_]/_/g' \
974     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
975   cat >> confdefs.h <<EOF
976 #define $ac_tr_lib 1
977 EOF
978
979   LIBS="-liberty $LIBS"
980
981 else
982   echo "$ac_t""no" 1>&6
983 fi
984
985   ac_libiberty=auto
986 else
987   LIBS="$ac_libiberty $LIBS"
988 fi
989 if test "$ac_libbfd" = "NONE"; then
990   echo $ac_n "checking for bfd_openr in -lbfd""... $ac_c" 1>&6
991 echo "configure:992: checking for bfd_openr in -lbfd" >&5
992 ac_lib_var=`echo bfd'_'bfd_openr | sed 'y%./+-%__p_%'`
993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
994   echo $ac_n "(cached) $ac_c" 1>&6
995 else
996   ac_save_LIBS="$LIBS"
997 LIBS="-lbfd  $LIBS"
998 cat > conftest.$ac_ext <<EOF
999 #line 1000 "configure"
1000 #include "confdefs.h"
1001 /* Override any gcc2 internal prototype to avoid an error.  */
1002 /* We use char because int might match the return type of a gcc2
1003     builtin and then its argument prototype would still apply.  */
1004 char bfd_openr();
1005
1006 int main() {
1007 bfd_openr()
1008 ; return 0; }
1009 EOF
1010 if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1011   rm -rf conftest*
1012   eval "ac_cv_lib_$ac_lib_var=yes"
1013 else
1014   echo "configure: failed program was:" >&5
1015   cat conftest.$ac_ext >&5
1016   rm -rf conftest*
1017   eval "ac_cv_lib_$ac_lib_var=no"
1018 fi
1019 rm -f conftest*
1020 LIBS="$ac_save_LIBS"
1021
1022 fi
1023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1024   echo "$ac_t""yes" 1>&6
1025     ac_tr_lib=HAVE_LIB`echo bfd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1026     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1027   cat >> confdefs.h <<EOF
1028 #define $ac_tr_lib 1
1029 EOF
1030
1031   LIBS="-lbfd $LIBS"
1032
1033 else
1034   echo "$ac_t""no" 1>&6
1035 fi
1036
1037   ac_libbfd=auto
1038 else
1039   LIBS="$ac_libbfd $LIBS"
1040 fi
1041
1042 bfd_include_dir=
1043 if test "$ac_bfd_include_dir" != "NONE"; then
1044   bfd_include_dir="-I$ac_bfd_include_dir"
1045 fi
1046
1047 binutils_include_dir=
1048 if test "$ac_binutils_include_dir" != "NONE"; then
1049   binutils_include_dir="-I$ac_binutils_include_dir"
1050 fi
1051
1052 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
1053         echo
1054         echo "You need to specify the location of the libfd.a and libiberty.a"
1055         echo "host libraries from the binutils package."
1056         echo
1057         echo "Run configure again specifying these options:"
1058         echo
1059         echo "  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
1060         echo
1061         exit 1
1062 fi
1063
1064 if test "$ac_bfd_include_dir" = "NONE" ; then
1065         echo
1066         echo "You need to specify the location of the bfd.h header from a"
1067         echo "configured/compiled version of the binutils package for your target."
1068         echo "Without this your elf2flt may crash as it will try to use the"
1069         echo "systems bfd.h which may be from a different binutils package."
1070         echo
1071         echo "Run configure again specifying these options:"
1072         echo
1073         echo "  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
1074         echo
1075         exit 1
1076 fi
1077
1078 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1079 echo "configure:1080: checking how to run the C preprocessor" >&5
1080 # On Suns, sometimes $CPP names a directory.
1081 if test -n "$CPP" && test -d "$CPP"; then
1082   CPP=
1083 fi
1084 if test -z "$CPP"; then
1085 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1086   echo $ac_n "(cached) $ac_c" 1>&6
1087 else
1088     # This must be in double quotes, not single quotes, because CPP may get
1089   # substituted into the Makefile and "${CC-cc}" will confuse make.
1090   CPP="${CC-cc} -E"
1091   # On the NeXT, cc -E runs the code through the compiler's parser,
1092   # not just through cpp.
1093   cat > conftest.$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1096 #include <assert.h>
1097 Syntax Error
1098 EOF
1099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1100 { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1102 if test -z "$ac_err"; then
1103   :
1104 else
1105   echo "$ac_err" >&5
1106   echo "configure: failed program was:" >&5
1107   cat conftest.$ac_ext >&5
1108   rm -rf conftest*
1109   CPP="${CC-cc} -E -traditional-cpp"
1110   cat > conftest.$ac_ext <<EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1113 #include <assert.h>
1114 Syntax Error
1115 EOF
1116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1117 { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1119 if test -z "$ac_err"; then
1120   :
1121 else
1122   echo "$ac_err" >&5
1123   echo "configure: failed program was:" >&5
1124   cat conftest.$ac_ext >&5
1125   rm -rf conftest*
1126   CPP="${CC-cc} -nologo -E"
1127   cat > conftest.$ac_ext <<EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1130 #include <assert.h>
1131 Syntax Error
1132 EOF
1133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1134 { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1136 if test -z "$ac_err"; then
1137   :
1138 else
1139   echo "$ac_err" >&5
1140   echo "configure: failed program was:" >&5
1141   cat conftest.$ac_ext >&5
1142   rm -rf conftest*
1143   CPP=/lib/cpp
1144 fi
1145 rm -f conftest*
1146 fi
1147 rm -f conftest*
1148 fi
1149 rm -f conftest*
1150   ac_cv_prog_CPP="$CPP"
1151 fi
1152   CPP="$ac_cv_prog_CPP"
1153 else
1154   ac_cv_prog_CPP="$CPP"
1155 fi
1156 echo "$ac_t""$CPP" 1>&6
1157
1158 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1159 echo "configure:1160: checking for ANSI C header files" >&5
1160 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1161   echo $ac_n "(cached) $ac_c" 1>&6
1162 else
1163   cat > conftest.$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1166 #include <stdlib.h>
1167 #include <stdarg.h>
1168 #include <string.h>
1169 #include <float.h>
1170 EOF
1171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1172 { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1174 if test -z "$ac_err"; then
1175   rm -rf conftest*
1176   ac_cv_header_stdc=yes
1177 else
1178   echo "$ac_err" >&5
1179   echo "configure: failed program was:" >&5
1180   cat conftest.$ac_ext >&5
1181   rm -rf conftest*
1182   ac_cv_header_stdc=no
1183 fi
1184 rm -f conftest*
1185
1186 if test $ac_cv_header_stdc = yes; then
1187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 #include <string.h>
1192 EOF
1193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1194   egrep "memchr" >/dev/null 2>&1; then
1195   :
1196 else
1197   rm -rf conftest*
1198   ac_cv_header_stdc=no
1199 fi
1200 rm -f conftest*
1201
1202 fi
1203
1204 if test $ac_cv_header_stdc = yes; then
1205   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1206 cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1209 #include <stdlib.h>
1210 EOF
1211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1212   egrep "free" >/dev/null 2>&1; then
1213   :
1214 else
1215   rm -rf conftest*
1216   ac_cv_header_stdc=no
1217 fi
1218 rm -f conftest*
1219
1220 fi
1221
1222 if test $ac_cv_header_stdc = yes; then
1223   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1224 if test "$cross_compiling" = yes; then
1225   :
1226 else
1227   cat > conftest.$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1230 #include <ctype.h>
1231 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1232 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1234 int main () { int i; for (i = 0; i < 256; i++)
1235 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1236 exit (0); }
1237
1238 EOF
1239 if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1240 then
1241   :
1242 else
1243   echo "configure: failed program was:" >&5
1244   cat conftest.$ac_ext >&5
1245   rm -fr conftest*
1246   ac_cv_header_stdc=no
1247 fi
1248 rm -fr conftest*
1249 fi
1250
1251 fi
1252 fi
1253
1254 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1255 if test $ac_cv_header_stdc = yes; then
1256   cat >> confdefs.h <<\EOF
1257 #define STDC_HEADERS 1
1258 EOF
1259
1260 fi
1261
1262 for ac_hdr in fcntl.h unistd.h bfd.h
1263 do
1264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1266 echo "configure:1267: checking for $ac_hdr" >&5
1267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1268   echo $ac_n "(cached) $ac_c" 1>&6
1269 else
1270   cat > conftest.$ac_ext <<EOF
1271 #line 1272 "configure"
1272 #include "confdefs.h"
1273 #include <$ac_hdr>
1274 EOF
1275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1276 { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1278 if test -z "$ac_err"; then
1279   rm -rf conftest*
1280   eval "ac_cv_header_$ac_safe=yes"
1281 else
1282   echo "$ac_err" >&5
1283   echo "configure: failed program was:" >&5
1284   cat conftest.$ac_ext >&5
1285   rm -rf conftest*
1286   eval "ac_cv_header_$ac_safe=no"
1287 fi
1288 rm -f conftest*
1289 fi
1290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1291   echo "$ac_t""yes" 1>&6
1292     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1293   cat >> confdefs.h <<EOF
1294 #define $ac_tr_hdr 1
1295 EOF
1296  
1297 else
1298   echo "$ac_t""no" 1>&6
1299 fi
1300 done
1301
1302
1303 echo $ac_n "checking for working const""... $ac_c" 1>&6
1304 echo "configure:1305: checking for working const" >&5
1305 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1306   echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308   cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311
1312 int main() {
1313
1314 /* Ultrix mips cc rejects this.  */
1315 typedef int charset[2]; const charset x;
1316 /* SunOS 4.1.1 cc rejects this.  */
1317 char const *const *ccp;
1318 char **p;
1319 /* NEC SVR4.0.2 mips cc rejects this.  */
1320 struct point {int x, y;};
1321 static struct point const zero = {0,0};
1322 /* AIX XL C 1.02.0.0 rejects this.
1323    It does not let you subtract one const X* pointer from another in an arm
1324    of an if-expression whose if-part is not a constant expression */
1325 const char *g = "string";
1326 ccp = &g + (g ? g-g : 0);
1327 /* HPUX 7.0 cc rejects these. */
1328 ++ccp;
1329 p = (char**) ccp;
1330 ccp = (char const *const *) p;
1331 { /* SCO 3.2v4 cc rejects this.  */
1332   char *t;
1333   char const *s = 0 ? (char *) 0 : (char const *) 0;
1334
1335   *t++ = 0;
1336 }
1337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1338   int x[] = {25, 17};
1339   const int *foo = &x[0];
1340   ++foo;
1341 }
1342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1343   typedef const int *iptr;
1344   iptr p = 0;
1345   ++p;
1346 }
1347 { /* AIX XL C 1.02.0.0 rejects this saying
1348      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1349   struct s { int j; const int *ap[3]; };
1350   struct s *b; b->j = 5;
1351 }
1352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1353   const int foo = 10;
1354 }
1355
1356 ; return 0; }
1357 EOF
1358 if { (eval echo configure:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1359   rm -rf conftest*
1360   ac_cv_c_const=yes
1361 else
1362   echo "configure: failed program was:" >&5
1363   cat conftest.$ac_ext >&5
1364   rm -rf conftest*
1365   ac_cv_c_const=no
1366 fi
1367 rm -f conftest*
1368 fi
1369
1370 echo "$ac_t""$ac_cv_c_const" 1>&6
1371 if test $ac_cv_c_const = no; then
1372   cat >> confdefs.h <<\EOF
1373 #define const 
1374 EOF
1375
1376 fi
1377
1378
1379 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1380 echo "configure:1381: checking for vprintf" >&5
1381 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1382   echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384   cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1387 /* System header to define __stub macros and hopefully few prototypes,
1388     which can conflict with char vprintf(); below.  */
1389 #include <assert.h>
1390 /* Override any gcc2 internal prototype to avoid an error.  */
1391 /* We use char because int might match the return type of a gcc2
1392     builtin and then its argument prototype would still apply.  */
1393 char vprintf();
1394
1395 int main() {
1396
1397 /* The GNU C library defines this for functions which it implements
1398     to always fail with ENOSYS.  Some functions are actually named
1399     something starting with __ and the normal name is an alias.  */
1400 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1401 choke me
1402 #else
1403 vprintf();
1404 #endif
1405
1406 ; return 0; }
1407 EOF
1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1409   rm -rf conftest*
1410   eval "ac_cv_func_vprintf=yes"
1411 else
1412   echo "configure: failed program was:" >&5
1413   cat conftest.$ac_ext >&5
1414   rm -rf conftest*
1415   eval "ac_cv_func_vprintf=no"
1416 fi
1417 rm -f conftest*
1418 fi
1419
1420 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1421   echo "$ac_t""yes" 1>&6
1422   cat >> confdefs.h <<\EOF
1423 #define HAVE_VPRINTF 1
1424 EOF
1425
1426 else
1427   echo "$ac_t""no" 1>&6
1428 fi
1429
1430 if test "$ac_cv_func_vprintf" != yes; then
1431 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1432 echo "configure:1433: checking for _doprnt" >&5
1433 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1434   echo $ac_n "(cached) $ac_c" 1>&6
1435 else
1436   cat > conftest.$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1439 /* System header to define __stub macros and hopefully few prototypes,
1440     which can conflict with char _doprnt(); below.  */
1441 #include <assert.h>
1442 /* Override any gcc2 internal prototype to avoid an error.  */
1443 /* We use char because int might match the return type of a gcc2
1444     builtin and then its argument prototype would still apply.  */
1445 char _doprnt();
1446
1447 int main() {
1448
1449 /* The GNU C library defines this for functions which it implements
1450     to always fail with ENOSYS.  Some functions are actually named
1451     something starting with __ and the normal name is an alias.  */
1452 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1453 choke me
1454 #else
1455 _doprnt();
1456 #endif
1457
1458 ; return 0; }
1459 EOF
1460 if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1461   rm -rf conftest*
1462   eval "ac_cv_func__doprnt=yes"
1463 else
1464   echo "configure: failed program was:" >&5
1465   cat conftest.$ac_ext >&5
1466   rm -rf conftest*
1467   eval "ac_cv_func__doprnt=no"
1468 fi
1469 rm -f conftest*
1470 fi
1471
1472 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1473   echo "$ac_t""yes" 1>&6
1474   cat >> confdefs.h <<\EOF
1475 #define HAVE_DOPRNT 1
1476 EOF
1477
1478 else
1479   echo "$ac_t""no" 1>&6
1480 fi
1481
1482 fi
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494 trap '' 1 2 15
1495 cat > confcache <<\EOF
1496 # This file is a shell script that caches the results of configure
1497 # tests run on this system so they can be shared between configure
1498 # scripts and configure runs.  It is not useful on other systems.
1499 # If it contains results you don't want to keep, you may remove or edit it.
1500 #
1501 # By default, configure uses ./config.cache as the cache file,
1502 # creating it if it does not exist already.  You can give configure
1503 # the --cache-file=FILE option to use a different cache file; that is
1504 # what configure does when it calls configure scripts in
1505 # subdirectories, so they share the cache.
1506 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1507 # config.status only pays attention to the cache file if you give it the
1508 # --recheck option to rerun configure.
1509 #
1510 EOF
1511 # The following way of writing the cache mishandles newlines in values,
1512 # but we know of no workaround that is simple, portable, and efficient.
1513 # So, don't put newlines in cache variables' values.
1514 # Ultrix sh set writes to stderr and can't be redirected directly,
1515 # and sets the high bit in the cache file unless we assign to the vars.
1516 (set) 2>&1 |
1517   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1518   *ac_space=\ *)
1519     # `set' does not quote correctly, so add quotes (double-quote substitution
1520     # turns \\\\ into \\, and sed turns \\ into \).
1521     sed -n \
1522       -e "s/'/'\\\\''/g" \
1523       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1524     ;;
1525   *)
1526     # `set' quotes correctly as required by POSIX, so do not add quotes.
1527     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1528     ;;
1529   esac >> confcache
1530 if cmp -s $cache_file confcache; then
1531   :
1532 else
1533   if test -w $cache_file; then
1534     echo "updating cache $cache_file"
1535     cat confcache > $cache_file
1536   else
1537     echo "not updating unwritable cache $cache_file"
1538   fi
1539 fi
1540 rm -f confcache
1541
1542 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1543
1544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1545 # Let make expand exec_prefix.
1546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1547
1548 # Any assignment to VPATH causes Sun make to only execute
1549 # the first set of double-colon rules, so remove it if not needed.
1550 # If there is a colon in the path, we need to keep it.
1551 if test "x$srcdir" = x.; then
1552   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1553 fi
1554
1555 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1556
1557 # Transform confdefs.h into DEFS.
1558 # Protect against shell expansion while executing Makefile rules.
1559 # Protect against Makefile macro expansion.
1560 cat > conftest.defs <<\EOF
1561 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1562 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1563 s%\[%\\&%g
1564 s%\]%\\&%g
1565 s%\$%$$%g
1566 EOF
1567 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1568 rm -f conftest.defs
1569
1570
1571 # Without the "./", some shells look in PATH for config.status.
1572 : ${CONFIG_STATUS=./config.status}
1573
1574 echo creating $CONFIG_STATUS
1575 rm -f $CONFIG_STATUS
1576 cat > $CONFIG_STATUS <<EOF
1577 #! /bin/sh
1578 # Generated automatically by configure.
1579 # Run this file to recreate the current configuration.
1580 # This directory was configured as follows,
1581 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1582 #
1583 # $0 $ac_configure_args
1584 #
1585 # Compiler output produced by configure, useful for debugging
1586 # configure, is in ./config.log if it exists.
1587
1588 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1589 for ac_option
1590 do
1591   case "\$ac_option" in
1592   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1593     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1594     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1595   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1596     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1597     exit 0 ;;
1598   -help | --help | --hel | --he | --h)
1599     echo "\$ac_cs_usage"; exit 0 ;;
1600   *) echo "\$ac_cs_usage"; exit 1 ;;
1601   esac
1602 done
1603
1604 ac_given_srcdir=$srcdir
1605 ac_given_INSTALL="$INSTALL"
1606
1607 trap 'rm -fr `echo "Makefile ld-elf2flt" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1608 EOF
1609 cat >> $CONFIG_STATUS <<EOF
1610
1611 # Protect against being on the right side of a sed subst in config.status.
1612 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1613  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1614 $ac_vpsub
1615 $extrasub
1616 s%@SHELL@%$SHELL%g
1617 s%@CFLAGS@%$CFLAGS%g
1618 s%@CPPFLAGS@%$CPPFLAGS%g
1619 s%@CXXFLAGS@%$CXXFLAGS%g
1620 s%@FFLAGS@%$FFLAGS%g
1621 s%@DEFS@%$DEFS%g
1622 s%@LDFLAGS@%$LDFLAGS%g
1623 s%@LIBS@%$LIBS%g
1624 s%@exec_prefix@%$exec_prefix%g
1625 s%@prefix@%$prefix%g
1626 s%@program_transform_name@%$program_transform_name%g
1627 s%@bindir@%$bindir%g
1628 s%@sbindir@%$sbindir%g
1629 s%@libexecdir@%$libexecdir%g
1630 s%@datadir@%$datadir%g
1631 s%@sysconfdir@%$sysconfdir%g
1632 s%@sharedstatedir@%$sharedstatedir%g
1633 s%@localstatedir@%$localstatedir%g
1634 s%@libdir@%$libdir%g
1635 s%@includedir@%$includedir%g
1636 s%@oldincludedir@%$oldincludedir%g
1637 s%@infodir@%$infodir%g
1638 s%@mandir@%$mandir%g
1639 s%@host@%$host%g
1640 s%@host_alias@%$host_alias%g
1641 s%@host_cpu@%$host_cpu%g
1642 s%@host_vendor@%$host_vendor%g
1643 s%@host_os@%$host_os%g
1644 s%@target@%$target%g
1645 s%@target_alias@%$target_alias%g
1646 s%@target_cpu@%$target_cpu%g
1647 s%@target_vendor@%$target_vendor%g
1648 s%@target_os@%$target_os%g
1649 s%@CC@%$CC%g
1650 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1651 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1652 s%@INSTALL_DATA@%$INSTALL_DATA%g
1653 s%@CPP@%$CPP%g
1654 s%@bfd_include_dir@%$bfd_include_dir%g
1655 s%@binutils_include_dir@%$binutils_include_dir%g
1656 s%@got_check@%$got_check%g
1657
1658 CEOF
1659 EOF
1660
1661 cat >> $CONFIG_STATUS <<\EOF
1662
1663 # Split the substitutions into bite-sized pieces for seds with
1664 # small command number limits, like on Digital OSF/1 and HP-UX.
1665 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1666 ac_file=1 # Number of current file.
1667 ac_beg=1 # First line for current file.
1668 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1669 ac_more_lines=:
1670 ac_sed_cmds=""
1671 while $ac_more_lines; do
1672   if test $ac_beg -gt 1; then
1673     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1674   else
1675     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1676   fi
1677   if test ! -s conftest.s$ac_file; then
1678     ac_more_lines=false
1679     rm -f conftest.s$ac_file
1680   else
1681     if test -z "$ac_sed_cmds"; then
1682       ac_sed_cmds="sed -f conftest.s$ac_file"
1683     else
1684       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1685     fi
1686     ac_file=`expr $ac_file + 1`
1687     ac_beg=$ac_end
1688     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1689   fi
1690 done
1691 if test -z "$ac_sed_cmds"; then
1692   ac_sed_cmds=cat
1693 fi
1694 EOF
1695
1696 cat >> $CONFIG_STATUS <<EOF
1697
1698 CONFIG_FILES=\${CONFIG_FILES-"Makefile ld-elf2flt"}
1699 EOF
1700 cat >> $CONFIG_STATUS <<\EOF
1701 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1702   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1703   case "$ac_file" in
1704   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1705        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1706   *) ac_file_in="${ac_file}.in" ;;
1707   esac
1708
1709   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1710
1711   # Remove last slash and all that follows it.  Not all systems have dirname.
1712   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1713   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1714     # The file is in a subdirectory.
1715     test ! -d "$ac_dir" && mkdir "$ac_dir"
1716     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1717     # A "../" for each directory in $ac_dir_suffix.
1718     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1719   else
1720     ac_dir_suffix= ac_dots=
1721   fi
1722
1723   case "$ac_given_srcdir" in
1724   .)  srcdir=.
1725       if test -z "$ac_dots"; then top_srcdir=.
1726       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1727   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1728   *) # Relative path.
1729     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1730     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1731   esac
1732
1733   case "$ac_given_INSTALL" in
1734   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1735   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1736   esac
1737
1738   echo creating "$ac_file"
1739   rm -f "$ac_file"
1740   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1741   case "$ac_file" in
1742   *Makefile*) ac_comsub="1i\\
1743 # $configure_input" ;;
1744   *) ac_comsub= ;;
1745   esac
1746
1747   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1748   sed -e "$ac_comsub
1749 s%@configure_input@%$configure_input%g
1750 s%@srcdir@%$srcdir%g
1751 s%@top_srcdir@%$top_srcdir%g
1752 s%@INSTALL@%$INSTALL%g
1753 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1754 fi; done
1755 rm -f conftest.s*
1756
1757 EOF
1758 cat >> $CONFIG_STATUS <<EOF
1759
1760 EOF
1761 cat >> $CONFIG_STATUS <<\EOF
1762
1763 exit 0
1764 EOF
1765 chmod +x $CONFIG_STATUS
1766 rm -fr confdefs* $ac_clean_files
1767 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1768
1769