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