sim/:
[platform/upstream/binutils.git] / sim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="Makefile.in"
275 ac_subdirs_all="$ac_subdirs_all arm"
276 ac_subdirs_all="$ac_subdirs_all cris"
277 ac_subdirs_all="$ac_subdirs_all d10v"
278 ac_subdirs_all="$ac_subdirs_all frv"
279 ac_subdirs_all="$ac_subdirs_all h8300"
280 ac_subdirs_all="$ac_subdirs_all iq2000"
281 ac_subdirs_all="$ac_subdirs_all m32c"
282 ac_subdirs_all="$ac_subdirs_all m32r"
283 ac_subdirs_all="$ac_subdirs_all m68hc11"
284 ac_subdirs_all="$ac_subdirs_all mcore"
285 ac_subdirs_all="$ac_subdirs_all mips"
286 ac_subdirs_all="$ac_subdirs_all mn10300"
287 ac_subdirs_all="$ac_subdirs_all sh64"
288 ac_subdirs_all="$ac_subdirs_all sh"
289 ac_subdirs_all="$ac_subdirs_all ppc"
290 ac_subdirs_all="$ac_subdirs_all v850"
291 ac_subdirs_all="$ac_subdirs_all testsuite"
292 ac_subdirs_all="$ac_subdirs_all common"
293 ac_subdirs_all="$ac_subdirs_all igen"
294 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR ac_ct_AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os HDEFINES CC_FOR_BUILD CFLAGS_FOR_BUILD subdirs LIBOBJS LTLIBOBJS'
295 ac_subst_files=''
296
297 # Initialize some variables set by options.
298 ac_init_help=
299 ac_init_version=false
300 # The variables have the same names as the options, with
301 # dashes changed to underlines.
302 cache_file=/dev/null
303 exec_prefix=NONE
304 no_create=
305 no_recursion=
306 prefix=NONE
307 program_prefix=NONE
308 program_suffix=NONE
309 program_transform_name=s,x,x,
310 silent=
311 site=
312 srcdir=
313 verbose=
314 x_includes=NONE
315 x_libraries=NONE
316
317 # Installation directory options.
318 # These are left unexpanded so users can "make install exec_prefix=/foo"
319 # and all the variables that are supposed to be based on exec_prefix
320 # by default will actually change.
321 # Use braces instead of parens because sh, perl, etc. also accept them.
322 bindir='${exec_prefix}/bin'
323 sbindir='${exec_prefix}/sbin'
324 libexecdir='${exec_prefix}/libexec'
325 datadir='${prefix}/share'
326 sysconfdir='${prefix}/etc'
327 sharedstatedir='${prefix}/com'
328 localstatedir='${prefix}/var'
329 libdir='${exec_prefix}/lib'
330 includedir='${prefix}/include'
331 oldincludedir='/usr/include'
332 infodir='${prefix}/info'
333 mandir='${prefix}/man'
334
335 ac_prev=
336 for ac_option
337 do
338   # If the previous option needs an argument, assign it.
339   if test -n "$ac_prev"; then
340     eval "$ac_prev=\$ac_option"
341     ac_prev=
342     continue
343   fi
344
345   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
346
347   # Accept the important Cygnus configure options, so we can diagnose typos.
348
349   case $ac_option in
350
351   -bindir | --bindir | --bindi | --bind | --bin | --bi)
352     ac_prev=bindir ;;
353   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
354     bindir=$ac_optarg ;;
355
356   -build | --build | --buil | --bui | --bu)
357     ac_prev=build_alias ;;
358   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
359     build_alias=$ac_optarg ;;
360
361   -cache-file | --cache-file | --cache-fil | --cache-fi \
362   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
363     ac_prev=cache_file ;;
364   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
365   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
366     cache_file=$ac_optarg ;;
367
368   --config-cache | -C)
369     cache_file=config.cache ;;
370
371   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
372     ac_prev=datadir ;;
373   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
374   | --da=*)
375     datadir=$ac_optarg ;;
376
377   -disable-* | --disable-*)
378     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
379     # Reject names that are not valid shell variable names.
380     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
381       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
382    { (exit 1); exit 1; }; }
383     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
384     eval "enable_$ac_feature=no" ;;
385
386   -enable-* | --enable-*)
387     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
388     # Reject names that are not valid shell variable names.
389     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
390       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
391    { (exit 1); exit 1; }; }
392     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
393     case $ac_option in
394       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
395       *) ac_optarg=yes ;;
396     esac
397     eval "enable_$ac_feature='$ac_optarg'" ;;
398
399   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
400   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
401   | --exec | --exe | --ex)
402     ac_prev=exec_prefix ;;
403   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
404   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
405   | --exec=* | --exe=* | --ex=*)
406     exec_prefix=$ac_optarg ;;
407
408   -gas | --gas | --ga | --g)
409     # Obsolete; use --with-gas.
410     with_gas=yes ;;
411
412   -help | --help | --hel | --he | -h)
413     ac_init_help=long ;;
414   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
415     ac_init_help=recursive ;;
416   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
417     ac_init_help=short ;;
418
419   -host | --host | --hos | --ho)
420     ac_prev=host_alias ;;
421   -host=* | --host=* | --hos=* | --ho=*)
422     host_alias=$ac_optarg ;;
423
424   -includedir | --includedir | --includedi | --included | --include \
425   | --includ | --inclu | --incl | --inc)
426     ac_prev=includedir ;;
427   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
428   | --includ=* | --inclu=* | --incl=* | --inc=*)
429     includedir=$ac_optarg ;;
430
431   -infodir | --infodir | --infodi | --infod | --info | --inf)
432     ac_prev=infodir ;;
433   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
434     infodir=$ac_optarg ;;
435
436   -libdir | --libdir | --libdi | --libd)
437     ac_prev=libdir ;;
438   -libdir=* | --libdir=* | --libdi=* | --libd=*)
439     libdir=$ac_optarg ;;
440
441   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
442   | --libexe | --libex | --libe)
443     ac_prev=libexecdir ;;
444   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
445   | --libexe=* | --libex=* | --libe=*)
446     libexecdir=$ac_optarg ;;
447
448   -localstatedir | --localstatedir | --localstatedi | --localstated \
449   | --localstate | --localstat | --localsta | --localst \
450   | --locals | --local | --loca | --loc | --lo)
451     ac_prev=localstatedir ;;
452   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
453   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
454   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
455     localstatedir=$ac_optarg ;;
456
457   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
458     ac_prev=mandir ;;
459   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
460     mandir=$ac_optarg ;;
461
462   -nfp | --nfp | --nf)
463     # Obsolete; use --without-fp.
464     with_fp=no ;;
465
466   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
467   | --no-cr | --no-c | -n)
468     no_create=yes ;;
469
470   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
471   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
472     no_recursion=yes ;;
473
474   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
475   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
476   | --oldin | --oldi | --old | --ol | --o)
477     ac_prev=oldincludedir ;;
478   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
479   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
480   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
481     oldincludedir=$ac_optarg ;;
482
483   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
484     ac_prev=prefix ;;
485   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
486     prefix=$ac_optarg ;;
487
488   -program-prefix | --program-prefix | --program-prefi | --program-pref \
489   | --program-pre | --program-pr | --program-p)
490     ac_prev=program_prefix ;;
491   -program-prefix=* | --program-prefix=* | --program-prefi=* \
492   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
493     program_prefix=$ac_optarg ;;
494
495   -program-suffix | --program-suffix | --program-suffi | --program-suff \
496   | --program-suf | --program-su | --program-s)
497     ac_prev=program_suffix ;;
498   -program-suffix=* | --program-suffix=* | --program-suffi=* \
499   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
500     program_suffix=$ac_optarg ;;
501
502   -program-transform-name | --program-transform-name \
503   | --program-transform-nam | --program-transform-na \
504   | --program-transform-n | --program-transform- \
505   | --program-transform | --program-transfor \
506   | --program-transfo | --program-transf \
507   | --program-trans | --program-tran \
508   | --progr-tra | --program-tr | --program-t)
509     ac_prev=program_transform_name ;;
510   -program-transform-name=* | --program-transform-name=* \
511   | --program-transform-nam=* | --program-transform-na=* \
512   | --program-transform-n=* | --program-transform-=* \
513   | --program-transform=* | --program-transfor=* \
514   | --program-transfo=* | --program-transf=* \
515   | --program-trans=* | --program-tran=* \
516   | --progr-tra=* | --program-tr=* | --program-t=*)
517     program_transform_name=$ac_optarg ;;
518
519   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
520   | -silent | --silent | --silen | --sile | --sil)
521     silent=yes ;;
522
523   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
524     ac_prev=sbindir ;;
525   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
526   | --sbi=* | --sb=*)
527     sbindir=$ac_optarg ;;
528
529   -sharedstatedir | --sharedstatedir | --sharedstatedi \
530   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
531   | --sharedst | --shareds | --shared | --share | --shar \
532   | --sha | --sh)
533     ac_prev=sharedstatedir ;;
534   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
535   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
536   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
537   | --sha=* | --sh=*)
538     sharedstatedir=$ac_optarg ;;
539
540   -site | --site | --sit)
541     ac_prev=site ;;
542   -site=* | --site=* | --sit=*)
543     site=$ac_optarg ;;
544
545   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
546     ac_prev=srcdir ;;
547   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
548     srcdir=$ac_optarg ;;
549
550   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
551   | --syscon | --sysco | --sysc | --sys | --sy)
552     ac_prev=sysconfdir ;;
553   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
554   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
555     sysconfdir=$ac_optarg ;;
556
557   -target | --target | --targe | --targ | --tar | --ta | --t)
558     ac_prev=target_alias ;;
559   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
560     target_alias=$ac_optarg ;;
561
562   -v | -verbose | --verbose | --verbos | --verbo | --verb)
563     verbose=yes ;;
564
565   -version | --version | --versio | --versi | --vers | -V)
566     ac_init_version=: ;;
567
568   -with-* | --with-*)
569     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
570     # Reject names that are not valid shell variable names.
571     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572       { echo "$as_me: error: invalid package name: $ac_package" >&2
573    { (exit 1); exit 1; }; }
574     ac_package=`echo $ac_package| sed 's/-/_/g'`
575     case $ac_option in
576       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577       *) ac_optarg=yes ;;
578     esac
579     eval "with_$ac_package='$ac_optarg'" ;;
580
581   -without-* | --without-*)
582     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
583     # Reject names that are not valid shell variable names.
584     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
585       { echo "$as_me: error: invalid package name: $ac_package" >&2
586    { (exit 1); exit 1; }; }
587     ac_package=`echo $ac_package | sed 's/-/_/g'`
588     eval "with_$ac_package=no" ;;
589
590   --x)
591     # Obsolete; use --with-x.
592     with_x=yes ;;
593
594   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
595   | --x-incl | --x-inc | --x-in | --x-i)
596     ac_prev=x_includes ;;
597   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
598   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
599     x_includes=$ac_optarg ;;
600
601   -x-libraries | --x-libraries | --x-librarie | --x-librari \
602   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
603     ac_prev=x_libraries ;;
604   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
605   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
606     x_libraries=$ac_optarg ;;
607
608   -*) { echo "$as_me: error: unrecognized option: $ac_option
609 Try \`$0 --help' for more information." >&2
610    { (exit 1); exit 1; }; }
611     ;;
612
613   *=*)
614     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
615     # Reject names that are not valid shell variable names.
616     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
617       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
618    { (exit 1); exit 1; }; }
619     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
620     eval "$ac_envvar='$ac_optarg'"
621     export $ac_envvar ;;
622
623   *)
624     # FIXME: should be removed in autoconf 3.0.
625     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
626     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
627       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
628     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
629     ;;
630
631   esac
632 done
633
634 if test -n "$ac_prev"; then
635   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
636   { echo "$as_me: error: missing argument to $ac_option" >&2
637    { (exit 1); exit 1; }; }
638 fi
639
640 # Be sure to have absolute paths.
641 for ac_var in exec_prefix prefix
642 do
643   eval ac_val=$`echo $ac_var`
644   case $ac_val in
645     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
646     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
647    { (exit 1); exit 1; }; };;
648   esac
649 done
650
651 # Be sure to have absolute paths.
652 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
653               localstatedir libdir includedir oldincludedir infodir mandir
654 do
655   eval ac_val=$`echo $ac_var`
656   case $ac_val in
657     [\\/$]* | ?:[\\/]* ) ;;
658     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
659    { (exit 1); exit 1; }; };;
660   esac
661 done
662
663 # There might be people who depend on the old broken behavior: `$host'
664 # used to hold the argument of --host etc.
665 # FIXME: To remove some day.
666 build=$build_alias
667 host=$host_alias
668 target=$target_alias
669
670 # FIXME: To remove some day.
671 if test "x$host_alias" != x; then
672   if test "x$build_alias" = x; then
673     cross_compiling=maybe
674     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
675     If a cross compiler is detected then cross compile mode will be used." >&2
676   elif test "x$build_alias" != "x$host_alias"; then
677     cross_compiling=yes
678   fi
679 fi
680
681 ac_tool_prefix=
682 test -n "$host_alias" && ac_tool_prefix=$host_alias-
683
684 test "$silent" = yes && exec 6>/dev/null
685
686
687 # Find the source files, if location was not specified.
688 if test -z "$srcdir"; then
689   ac_srcdir_defaulted=yes
690   # Try the directory containing this script, then its parent.
691   ac_confdir=`(dirname "$0") 2>/dev/null ||
692 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
693          X"$0" : 'X\(//\)[^/]' \| \
694          X"$0" : 'X\(//\)$' \| \
695          X"$0" : 'X\(/\)' \| \
696          .     : '\(.\)' 2>/dev/null ||
697 echo X"$0" |
698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
699           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
700           /^X\(\/\/\)$/{ s//\1/; q; }
701           /^X\(\/\).*/{ s//\1/; q; }
702           s/.*/./; q'`
703   srcdir=$ac_confdir
704   if test ! -r $srcdir/$ac_unique_file; then
705     srcdir=..
706   fi
707 else
708   ac_srcdir_defaulted=no
709 fi
710 if test ! -r $srcdir/$ac_unique_file; then
711   if test "$ac_srcdir_defaulted" = yes; then
712     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
713    { (exit 1); exit 1; }; }
714   else
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
716    { (exit 1); exit 1; }; }
717   fi
718 fi
719 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
720   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
721    { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751
752 #
753 # Report the --help message.
754 #
755 if test "$ac_init_help" = "long"; then
756   # Omit some internal or obsolete options to make the list less imposing.
757   # This message is too long to be a string in the A/UX 3.1 sh.
758   cat <<_ACEOF
759 \`configure' configures this package to adapt to many kinds of systems.
760
761 Usage: $0 [OPTION]... [VAR=VALUE]...
762
763 To assign environment variables (e.g., CC, CFLAGS...), specify them as
764 VAR=VALUE.  See below for descriptions of some of the useful variables.
765
766 Defaults for the options are specified in brackets.
767
768 Configuration:
769   -h, --help              display this help and exit
770       --help=short        display options specific to this package
771       --help=recursive    display the short help of all the included packages
772   -V, --version           display version information and exit
773   -q, --quiet, --silent   do not print \`checking...' messages
774       --cache-file=FILE   cache test results in FILE [disabled]
775   -C, --config-cache      alias for \`--cache-file=config.cache'
776   -n, --no-create         do not create output files
777       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
778
779 _ACEOF
780
781   cat <<_ACEOF
782 Installation directories:
783   --prefix=PREFIX         install architecture-independent files in PREFIX
784                           [$ac_default_prefix]
785   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
786                           [PREFIX]
787
788 By default, \`make install' will install all the files in
789 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
790 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
791 for instance \`--prefix=\$HOME'.
792
793 For better control, use the options below.
794
795 Fine tuning of the installation directories:
796   --bindir=DIR           user executables [EPREFIX/bin]
797   --sbindir=DIR          system admin executables [EPREFIX/sbin]
798   --libexecdir=DIR       program executables [EPREFIX/libexec]
799   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
800   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
801   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
802   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
803   --libdir=DIR           object code libraries [EPREFIX/lib]
804   --includedir=DIR       C header files [PREFIX/include]
805   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
806   --infodir=DIR          info documentation [PREFIX/info]
807   --mandir=DIR           man documentation [PREFIX/man]
808 _ACEOF
809
810   cat <<\_ACEOF
811
812 Program names:
813   --program-prefix=PREFIX            prepend PREFIX to installed program names
814   --program-suffix=SUFFIX            append SUFFIX to installed program names
815   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
816
817 System types:
818   --build=BUILD     configure for building on BUILD [guessed]
819   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
820   --target=TARGET   configure for building compilers for TARGET [HOST]
821 _ACEOF
822 fi
823
824 if test -n "$ac_init_help"; then
825
826   cat <<\_ACEOF
827
828 Optional Features:
829   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
830   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
831   --enable-sim
832
833 Some influential environment variables:
834   CC          C compiler command
835   CFLAGS      C compiler flags
836   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
837               nonstandard directory <lib dir>
838   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
839               headers in a nonstandard directory <include dir>
840
841 Use these variables to override the choices made by `configure' or to help
842 it to find libraries and programs with nonstandard names/locations.
843
844 _ACEOF
845 fi
846
847 if test "$ac_init_help" = "recursive"; then
848   # If there are subdirs, report their specific --help.
849   ac_popdir=`pwd`
850   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
851     test -d $ac_dir || continue
852     ac_builddir=.
853
854 if test "$ac_dir" != .; then
855   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
856   # A "../" for each directory in $ac_dir_suffix.
857   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
858 else
859   ac_dir_suffix= ac_top_builddir=
860 fi
861
862 case $srcdir in
863   .)  # No --srcdir option.  We are building in place.
864     ac_srcdir=.
865     if test -z "$ac_top_builddir"; then
866        ac_top_srcdir=.
867     else
868        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
869     fi ;;
870   [\\/]* | ?:[\\/]* )  # Absolute path.
871     ac_srcdir=$srcdir$ac_dir_suffix;
872     ac_top_srcdir=$srcdir ;;
873   *) # Relative path.
874     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
875     ac_top_srcdir=$ac_top_builddir$srcdir ;;
876 esac
877
878 # Do not use `cd foo && pwd` to compute absolute paths, because
879 # the directories may not exist.
880 case `pwd` in
881 .) ac_abs_builddir="$ac_dir";;
882 *)
883   case "$ac_dir" in
884   .) ac_abs_builddir=`pwd`;;
885   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
886   *) ac_abs_builddir=`pwd`/"$ac_dir";;
887   esac;;
888 esac
889 case $ac_abs_builddir in
890 .) ac_abs_top_builddir=${ac_top_builddir}.;;
891 *)
892   case ${ac_top_builddir}. in
893   .) ac_abs_top_builddir=$ac_abs_builddir;;
894   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
895   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
896   esac;;
897 esac
898 case $ac_abs_builddir in
899 .) ac_abs_srcdir=$ac_srcdir;;
900 *)
901   case $ac_srcdir in
902   .) ac_abs_srcdir=$ac_abs_builddir;;
903   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
904   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
905   esac;;
906 esac
907 case $ac_abs_builddir in
908 .) ac_abs_top_srcdir=$ac_top_srcdir;;
909 *)
910   case $ac_top_srcdir in
911   .) ac_abs_top_srcdir=$ac_abs_builddir;;
912   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
913   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
914   esac;;
915 esac
916
917     cd $ac_dir
918     # Check for guested configure; otherwise get Cygnus style configure.
919     if test -f $ac_srcdir/configure.gnu; then
920       echo
921       $SHELL $ac_srcdir/configure.gnu  --help=recursive
922     elif test -f $ac_srcdir/configure; then
923       echo
924       $SHELL $ac_srcdir/configure  --help=recursive
925     elif test -f $ac_srcdir/configure.ac ||
926            test -f $ac_srcdir/configure.in; then
927       echo
928       $ac_configure --help
929     else
930       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931     fi
932     cd $ac_popdir
933   done
934 fi
935
936 test -n "$ac_init_help" && exit 0
937 if $ac_init_version; then
938   cat <<\_ACEOF
939
940 Copyright (C) 2003 Free Software Foundation, Inc.
941 This configure script is free software; the Free Software Foundation
942 gives unlimited permission to copy, distribute and modify it.
943 _ACEOF
944   exit 0
945 fi
946 exec 5>config.log
947 cat >&5 <<_ACEOF
948 This file contains any messages produced by compilers while
949 running configure, to aid debugging if configure makes a mistake.
950
951 It was created by $as_me, which was
952 generated by GNU Autoconf 2.59.  Invocation command line was
953
954   $ $0 $@
955
956 _ACEOF
957 {
958 cat <<_ASUNAME
959 ## --------- ##
960 ## Platform. ##
961 ## --------- ##
962
963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
968
969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
971
972 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
973 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
976 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
977 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
978 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
979
980 _ASUNAME
981
982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983 for as_dir in $PATH
984 do
985   IFS=$as_save_IFS
986   test -z "$as_dir" && as_dir=.
987   echo "PATH: $as_dir"
988 done
989
990 } >&5
991
992 cat >&5 <<_ACEOF
993
994
995 ## ----------- ##
996 ## Core tests. ##
997 ## ----------- ##
998
999 _ACEOF
1000
1001
1002 # Keep a trace of the command line.
1003 # Strip out --no-create and --no-recursion so they do not pile up.
1004 # Strip out --silent because we don't want to record it for future runs.
1005 # Also quote any args containing shell meta-characters.
1006 # Make two passes to allow for proper duplicate-argument suppression.
1007 ac_configure_args=
1008 ac_configure_args0=
1009 ac_configure_args1=
1010 ac_sep=
1011 ac_must_keep_next=false
1012 for ac_pass in 1 2
1013 do
1014   for ac_arg
1015   do
1016     case $ac_arg in
1017     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1018     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019     | -silent | --silent | --silen | --sile | --sil)
1020       continue ;;
1021     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1022       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023     esac
1024     case $ac_pass in
1025     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1026     2)
1027       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1028       if test $ac_must_keep_next = true; then
1029         ac_must_keep_next=false # Got value, back to normal.
1030       else
1031         case $ac_arg in
1032           *=* | --config-cache | -C | -disable-* | --disable-* \
1033           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1034           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1035           | -with-* | --with-* | -without-* | --without-* | --x)
1036             case "$ac_configure_args0 " in
1037               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1038             esac
1039             ;;
1040           -* ) ac_must_keep_next=true ;;
1041         esac
1042       fi
1043       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1044       # Get rid of the leading space.
1045       ac_sep=" "
1046       ;;
1047     esac
1048   done
1049 done
1050 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1051 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1052
1053 # When interrupted or exit'd, cleanup temporary files, and complete
1054 # config.log.  We remove comments because anyway the quotes in there
1055 # would cause problems or look ugly.
1056 # WARNING: Be sure not to use single quotes in there, as some shells,
1057 # such as our DU 5.0 friend, will then `close' the trap.
1058 trap 'exit_status=$?
1059   # Save into config.log some information that might help in debugging.
1060   {
1061     echo
1062
1063     cat <<\_ASBOX
1064 ## ---------------- ##
1065 ## Cache variables. ##
1066 ## ---------------- ##
1067 _ASBOX
1068     echo
1069     # The following way of writing the cache mishandles newlines in values,
1070 {
1071   (set) 2>&1 |
1072     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1073     *ac_space=\ *)
1074       sed -n \
1075         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1076           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077       ;;
1078     *)
1079       sed -n \
1080         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1081       ;;
1082     esac;
1083 }
1084     echo
1085
1086     cat <<\_ASBOX
1087 ## ----------------- ##
1088 ## Output variables. ##
1089 ## ----------------- ##
1090 _ASBOX
1091     echo
1092     for ac_var in $ac_subst_vars
1093     do
1094       eval ac_val=$`echo $ac_var`
1095       echo "$ac_var='"'"'$ac_val'"'"'"
1096     done | sort
1097     echo
1098
1099     if test -n "$ac_subst_files"; then
1100       cat <<\_ASBOX
1101 ## ------------- ##
1102 ## Output files. ##
1103 ## ------------- ##
1104 _ASBOX
1105       echo
1106       for ac_var in $ac_subst_files
1107       do
1108         eval ac_val=$`echo $ac_var`
1109         echo "$ac_var='"'"'$ac_val'"'"'"
1110       done | sort
1111       echo
1112     fi
1113
1114     if test -s confdefs.h; then
1115       cat <<\_ASBOX
1116 ## ----------- ##
1117 ## confdefs.h. ##
1118 ## ----------- ##
1119 _ASBOX
1120       echo
1121       sed "/^$/d" confdefs.h | sort
1122       echo
1123     fi
1124     test "$ac_signal" != 0 &&
1125       echo "$as_me: caught signal $ac_signal"
1126     echo "$as_me: exit $exit_status"
1127   } >&5
1128   rm -f core *.core &&
1129   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1130     exit $exit_status
1131      ' 0
1132 for ac_signal in 1 2 13 15; do
1133   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1134 done
1135 ac_signal=0
1136
1137 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1138 rm -rf conftest* confdefs.h
1139 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1140 echo >confdefs.h
1141
1142 # Predefined preprocessor variables.
1143
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_NAME "$PACKAGE_NAME"
1146 _ACEOF
1147
1148
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1151 _ACEOF
1152
1153
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1156 _ACEOF
1157
1158
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_STRING "$PACKAGE_STRING"
1161 _ACEOF
1162
1163
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1166 _ACEOF
1167
1168
1169 # Let the site file select an alternate cache file if it wants to.
1170 # Prefer explicitly selected file to automatically selected ones.
1171 if test -z "$CONFIG_SITE"; then
1172   if test "x$prefix" != xNONE; then
1173     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1174   else
1175     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176   fi
1177 fi
1178 for ac_site_file in $CONFIG_SITE; do
1179   if test -r "$ac_site_file"; then
1180     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1181 echo "$as_me: loading site script $ac_site_file" >&6;}
1182     sed 's/^/| /' "$ac_site_file" >&5
1183     . "$ac_site_file"
1184   fi
1185 done
1186
1187 if test -r "$cache_file"; then
1188   # Some versions of bash will fail to source /dev/null (special
1189   # files actually), so we avoid doing that.
1190   if test -f "$cache_file"; then
1191     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1192 echo "$as_me: loading cache $cache_file" >&6;}
1193     case $cache_file in
1194       [\\/]* | ?:[\\/]* ) . $cache_file;;
1195       *)                      . ./$cache_file;;
1196     esac
1197   fi
1198 else
1199   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1200 echo "$as_me: creating cache $cache_file" >&6;}
1201   >$cache_file
1202 fi
1203
1204 # Check that the precious variables saved in the cache have kept the same
1205 # value.
1206 ac_cache_corrupted=false
1207 for ac_var in `(set) 2>&1 |
1208                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1209   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1210   eval ac_new_set=\$ac_env_${ac_var}_set
1211   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1212   eval ac_new_val="\$ac_env_${ac_var}_value"
1213   case $ac_old_set,$ac_new_set in
1214     set,)
1215       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1217       ac_cache_corrupted=: ;;
1218     ,set)
1219       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1220 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1221       ac_cache_corrupted=: ;;
1222     ,);;
1223     *)
1224       if test "x$ac_old_val" != "x$ac_new_val"; then
1225         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1226 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1227         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1228 echo "$as_me:   former value:  $ac_old_val" >&2;}
1229         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1230 echo "$as_me:   current value: $ac_new_val" >&2;}
1231         ac_cache_corrupted=:
1232       fi;;
1233   esac
1234   # Pass precious variables to config.status.
1235   if test "$ac_new_set" = set; then
1236     case $ac_new_val in
1237     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1238       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1239     *) ac_arg=$ac_var=$ac_new_val ;;
1240     esac
1241     case " $ac_configure_args " in
1242       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1243       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1244     esac
1245   fi
1246 done
1247 if $ac_cache_corrupted; then
1248   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1249 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1250   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1251 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1252    { (exit 1); exit 1; }; }
1253 fi
1254
1255 ac_ext=c
1256 ac_cpp='$CPP $CPPFLAGS'
1257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280 ac_ext=c
1281 ac_cpp='$CPP $CPPFLAGS'
1282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1285 if test -n "$ac_tool_prefix"; then
1286   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1287 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1288 echo "$as_me:$LINENO: checking for $ac_word" >&5
1289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1290 if test "${ac_cv_prog_CC+set}" = set; then
1291   echo $ECHO_N "(cached) $ECHO_C" >&6
1292 else
1293   if test -n "$CC"; then
1294   ac_cv_prog_CC="$CC" # Let the user override the test.
1295 else
1296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1297 for as_dir in $PATH
1298 do
1299   IFS=$as_save_IFS
1300   test -z "$as_dir" && as_dir=.
1301   for ac_exec_ext in '' $ac_executable_extensions; do
1302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1303     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1305     break 2
1306   fi
1307 done
1308 done
1309
1310 fi
1311 fi
1312 CC=$ac_cv_prog_CC
1313 if test -n "$CC"; then
1314   echo "$as_me:$LINENO: result: $CC" >&5
1315 echo "${ECHO_T}$CC" >&6
1316 else
1317   echo "$as_me:$LINENO: result: no" >&5
1318 echo "${ECHO_T}no" >&6
1319 fi
1320
1321 fi
1322 if test -z "$ac_cv_prog_CC"; then
1323   ac_ct_CC=$CC
1324   # Extract the first word of "gcc", so it can be a program name with args.
1325 set dummy gcc; ac_word=$2
1326 echo "$as_me:$LINENO: checking for $ac_word" >&5
1327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1329   echo $ECHO_N "(cached) $ECHO_C" >&6
1330 else
1331   if test -n "$ac_ct_CC"; then
1332   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1333 else
1334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335 for as_dir in $PATH
1336 do
1337   IFS=$as_save_IFS
1338   test -z "$as_dir" && as_dir=.
1339   for ac_exec_ext in '' $ac_executable_extensions; do
1340   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1341     ac_cv_prog_ac_ct_CC="gcc"
1342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1343     break 2
1344   fi
1345 done
1346 done
1347
1348 fi
1349 fi
1350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1351 if test -n "$ac_ct_CC"; then
1352   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1353 echo "${ECHO_T}$ac_ct_CC" >&6
1354 else
1355   echo "$as_me:$LINENO: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1357 fi
1358
1359   CC=$ac_ct_CC
1360 else
1361   CC="$ac_cv_prog_CC"
1362 fi
1363
1364 if test -z "$CC"; then
1365   if test -n "$ac_tool_prefix"; then
1366   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1367 set dummy ${ac_tool_prefix}cc; ac_word=$2
1368 echo "$as_me:$LINENO: checking for $ac_word" >&5
1369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1370 if test "${ac_cv_prog_CC+set}" = set; then
1371   echo $ECHO_N "(cached) $ECHO_C" >&6
1372 else
1373   if test -n "$CC"; then
1374   ac_cv_prog_CC="$CC" # Let the user override the test.
1375 else
1376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377 for as_dir in $PATH
1378 do
1379   IFS=$as_save_IFS
1380   test -z "$as_dir" && as_dir=.
1381   for ac_exec_ext in '' $ac_executable_extensions; do
1382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1383     ac_cv_prog_CC="${ac_tool_prefix}cc"
1384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1385     break 2
1386   fi
1387 done
1388 done
1389
1390 fi
1391 fi
1392 CC=$ac_cv_prog_CC
1393 if test -n "$CC"; then
1394   echo "$as_me:$LINENO: result: $CC" >&5
1395 echo "${ECHO_T}$CC" >&6
1396 else
1397   echo "$as_me:$LINENO: result: no" >&5
1398 echo "${ECHO_T}no" >&6
1399 fi
1400
1401 fi
1402 if test -z "$ac_cv_prog_CC"; then
1403   ac_ct_CC=$CC
1404   # Extract the first word of "cc", so it can be a program name with args.
1405 set dummy cc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   if test -n "$ac_ct_CC"; then
1412   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1413 else
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415 for as_dir in $PATH
1416 do
1417   IFS=$as_save_IFS
1418   test -z "$as_dir" && as_dir=.
1419   for ac_exec_ext in '' $ac_executable_extensions; do
1420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421     ac_cv_prog_ac_ct_CC="cc"
1422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423     break 2
1424   fi
1425 done
1426 done
1427
1428 fi
1429 fi
1430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1431 if test -n "$ac_ct_CC"; then
1432   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1433 echo "${ECHO_T}$ac_ct_CC" >&6
1434 else
1435   echo "$as_me:$LINENO: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1437 fi
1438
1439   CC=$ac_ct_CC
1440 else
1441   CC="$ac_cv_prog_CC"
1442 fi
1443
1444 fi
1445 if test -z "$CC"; then
1446   # Extract the first word of "cc", so it can be a program name with args.
1447 set dummy cc; ac_word=$2
1448 echo "$as_me:$LINENO: checking for $ac_word" >&5
1449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450 if test "${ac_cv_prog_CC+set}" = set; then
1451   echo $ECHO_N "(cached) $ECHO_C" >&6
1452 else
1453   if test -n "$CC"; then
1454   ac_cv_prog_CC="$CC" # Let the user override the test.
1455 else
1456   ac_prog_rejected=no
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458 for as_dir in $PATH
1459 do
1460   IFS=$as_save_IFS
1461   test -z "$as_dir" && as_dir=.
1462   for ac_exec_ext in '' $ac_executable_extensions; do
1463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1465        ac_prog_rejected=yes
1466        continue
1467      fi
1468     ac_cv_prog_CC="cc"
1469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1470     break 2
1471   fi
1472 done
1473 done
1474
1475 if test $ac_prog_rejected = yes; then
1476   # We found a bogon in the path, so make sure we never use it.
1477   set dummy $ac_cv_prog_CC
1478   shift
1479   if test $# != 0; then
1480     # We chose a different compiler from the bogus one.
1481     # However, it has the same basename, so the bogon will be chosen
1482     # first if we set CC to just the basename; use the full file name.
1483     shift
1484     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1485   fi
1486 fi
1487 fi
1488 fi
1489 CC=$ac_cv_prog_CC
1490 if test -n "$CC"; then
1491   echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1493 else
1494   echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1496 fi
1497
1498 fi
1499 if test -z "$CC"; then
1500   if test -n "$ac_tool_prefix"; then
1501   for ac_prog in cl
1502   do
1503     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1505 echo "$as_me:$LINENO: checking for $ac_word" >&5
1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1507 if test "${ac_cv_prog_CC+set}" = set; then
1508   echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510   if test -n "$CC"; then
1511   ac_cv_prog_CC="$CC" # Let the user override the test.
1512 else
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 for as_dir in $PATH
1515 do
1516   IFS=$as_save_IFS
1517   test -z "$as_dir" && as_dir=.
1518   for ac_exec_ext in '' $ac_executable_extensions; do
1519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1520     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1522     break 2
1523   fi
1524 done
1525 done
1526
1527 fi
1528 fi
1529 CC=$ac_cv_prog_CC
1530 if test -n "$CC"; then
1531   echo "$as_me:$LINENO: result: $CC" >&5
1532 echo "${ECHO_T}$CC" >&6
1533 else
1534   echo "$as_me:$LINENO: result: no" >&5
1535 echo "${ECHO_T}no" >&6
1536 fi
1537
1538     test -n "$CC" && break
1539   done
1540 fi
1541 if test -z "$CC"; then
1542   ac_ct_CC=$CC
1543   for ac_prog in cl
1544 do
1545   # Extract the first word of "$ac_prog", so it can be a program name with args.
1546 set dummy $ac_prog; ac_word=$2
1547 echo "$as_me:$LINENO: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1550   echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552   if test -n "$ac_ct_CC"; then
1553   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1554 else
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 for as_dir in $PATH
1557 do
1558   IFS=$as_save_IFS
1559   test -z "$as_dir" && as_dir=.
1560   for ac_exec_ext in '' $ac_executable_extensions; do
1561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562     ac_cv_prog_ac_ct_CC="$ac_prog"
1563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564     break 2
1565   fi
1566 done
1567 done
1568
1569 fi
1570 fi
1571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1572 if test -n "$ac_ct_CC"; then
1573   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1574 echo "${ECHO_T}$ac_ct_CC" >&6
1575 else
1576   echo "$as_me:$LINENO: result: no" >&5
1577 echo "${ECHO_T}no" >&6
1578 fi
1579
1580   test -n "$ac_ct_CC" && break
1581 done
1582
1583   CC=$ac_ct_CC
1584 fi
1585
1586 fi
1587
1588
1589 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1590 See \`config.log' for more details." >&5
1591 echo "$as_me: error: no acceptable C compiler found in \$PATH
1592 See \`config.log' for more details." >&2;}
1593    { (exit 1); exit 1; }; }
1594
1595 # Provide some information about the compiler.
1596 echo "$as_me:$LINENO:" \
1597      "checking for C compiler version" >&5
1598 ac_compiler=`set X $ac_compile; echo $2`
1599 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1600   (eval $ac_compiler --version </dev/null >&5) 2>&5
1601   ac_status=$?
1602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603   (exit $ac_status); }
1604 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1605   (eval $ac_compiler -v </dev/null >&5) 2>&5
1606   ac_status=$?
1607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1608   (exit $ac_status); }
1609 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1610   (eval $ac_compiler -V </dev/null >&5) 2>&5
1611   ac_status=$?
1612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1613   (exit $ac_status); }
1614
1615 cat >conftest.$ac_ext <<_ACEOF
1616 /* confdefs.h.  */
1617 _ACEOF
1618 cat confdefs.h >>conftest.$ac_ext
1619 cat >>conftest.$ac_ext <<_ACEOF
1620 /* end confdefs.h.  */
1621
1622 int
1623 main ()
1624 {
1625
1626   ;
1627   return 0;
1628 }
1629 _ACEOF
1630 ac_clean_files_save=$ac_clean_files
1631 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1632 # Try to create an executable without -o first, disregard a.out.
1633 # It will help us diagnose broken compilers, and finding out an intuition
1634 # of exeext.
1635 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1636 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1637 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1638 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1639   (eval $ac_link_default) 2>&5
1640   ac_status=$?
1641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1642   (exit $ac_status); }; then
1643   # Find the output, starting from the most likely.  This scheme is
1644 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1645 # resort.
1646
1647 # Be careful to initialize this variable, since it used to be cached.
1648 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1649 ac_cv_exeext=
1650 # b.out is created by i960 compilers.
1651 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1652 do
1653   test -f "$ac_file" || continue
1654   case $ac_file in
1655     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1656         ;;
1657     conftest.$ac_ext )
1658         # This is the source file.
1659         ;;
1660     [ab].out )
1661         # We found the default executable, but exeext='' is most
1662         # certainly right.
1663         break;;
1664     *.* )
1665         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1666         # FIXME: I believe we export ac_cv_exeext for Libtool,
1667         # but it would be cool to find out if it's true.  Does anybody
1668         # maintain Libtool? --akim.
1669         export ac_cv_exeext
1670         break;;
1671     * )
1672         break;;
1673   esac
1674 done
1675 else
1676   echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1680 See \`config.log' for more details." >&5
1681 echo "$as_me: error: C compiler cannot create executables
1682 See \`config.log' for more details." >&2;}
1683    { (exit 77); exit 77; }; }
1684 fi
1685
1686 ac_exeext=$ac_cv_exeext
1687 echo "$as_me:$LINENO: result: $ac_file" >&5
1688 echo "${ECHO_T}$ac_file" >&6
1689
1690 # Check the compiler produces executables we can run.  If not, either
1691 # the compiler is broken, or we cross compile.
1692 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1693 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1694 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1695 # If not cross compiling, check that we can run a simple program.
1696 if test "$cross_compiling" != yes; then
1697   if { ac_try='./$ac_file'
1698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1699   (eval $ac_try) 2>&5
1700   ac_status=$?
1701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702   (exit $ac_status); }; }; then
1703     cross_compiling=no
1704   else
1705     if test "$cross_compiling" = maybe; then
1706         cross_compiling=yes
1707     else
1708         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1709 If you meant to cross compile, use \`--host'.
1710 See \`config.log' for more details." >&5
1711 echo "$as_me: error: cannot run C compiled programs.
1712 If you meant to cross compile, use \`--host'.
1713 See \`config.log' for more details." >&2;}
1714    { (exit 1); exit 1; }; }
1715     fi
1716   fi
1717 fi
1718 echo "$as_me:$LINENO: result: yes" >&5
1719 echo "${ECHO_T}yes" >&6
1720
1721 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1722 ac_clean_files=$ac_clean_files_save
1723 # Check the compiler produces executables we can run.  If not, either
1724 # the compiler is broken, or we cross compile.
1725 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1726 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1727 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1728 echo "${ECHO_T}$cross_compiling" >&6
1729
1730 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1731 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1733   (eval $ac_link) 2>&5
1734   ac_status=$?
1735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1736   (exit $ac_status); }; then
1737   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1738 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1739 # work properly (i.e., refer to `conftest.exe'), while it won't with
1740 # `rm'.
1741 for ac_file in conftest.exe conftest conftest.*; do
1742   test -f "$ac_file" || continue
1743   case $ac_file in
1744     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1745     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1746           export ac_cv_exeext
1747           break;;
1748     * ) break;;
1749   esac
1750 done
1751 else
1752   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1753 See \`config.log' for more details." >&5
1754 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1755 See \`config.log' for more details." >&2;}
1756    { (exit 1); exit 1; }; }
1757 fi
1758
1759 rm -f conftest$ac_cv_exeext
1760 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1761 echo "${ECHO_T}$ac_cv_exeext" >&6
1762
1763 rm -f conftest.$ac_ext
1764 EXEEXT=$ac_cv_exeext
1765 ac_exeext=$EXEEXT
1766 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1767 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1768 if test "${ac_cv_objext+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   cat >conftest.$ac_ext <<_ACEOF
1772 /* confdefs.h.  */
1773 _ACEOF
1774 cat confdefs.h >>conftest.$ac_ext
1775 cat >>conftest.$ac_ext <<_ACEOF
1776 /* end confdefs.h.  */
1777
1778 int
1779 main ()
1780 {
1781
1782   ;
1783   return 0;
1784 }
1785 _ACEOF
1786 rm -f conftest.o conftest.obj
1787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1788   (eval $ac_compile) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }; then
1792   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1793   case $ac_file in
1794     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1795     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1796        break;;
1797   esac
1798 done
1799 else
1800   echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1804 See \`config.log' for more details." >&5
1805 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1806 See \`config.log' for more details." >&2;}
1807    { (exit 1); exit 1; }; }
1808 fi
1809
1810 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1811 fi
1812 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1813 echo "${ECHO_T}$ac_cv_objext" >&6
1814 OBJEXT=$ac_cv_objext
1815 ac_objext=$OBJEXT
1816 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1817 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1818 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1819   echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821   cat >conftest.$ac_ext <<_ACEOF
1822 /* confdefs.h.  */
1823 _ACEOF
1824 cat confdefs.h >>conftest.$ac_ext
1825 cat >>conftest.$ac_ext <<_ACEOF
1826 /* end confdefs.h.  */
1827
1828 int
1829 main ()
1830 {
1831 #ifndef __GNUC__
1832        choke me
1833 #endif
1834
1835   ;
1836   return 0;
1837 }
1838 _ACEOF
1839 rm -f conftest.$ac_objext
1840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1841   (eval $ac_compile) 2>conftest.er1
1842   ac_status=$?
1843   grep -v '^ *+' conftest.er1 >conftest.err
1844   rm -f conftest.er1
1845   cat conftest.err >&5
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); } &&
1848          { ac_try='test -z "$ac_c_werror_flag"
1849                          || test ! -s conftest.err'
1850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851   (eval $ac_try) 2>&5
1852   ac_status=$?
1853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854   (exit $ac_status); }; } &&
1855          { ac_try='test -s conftest.$ac_objext'
1856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1857   (eval $ac_try) 2>&5
1858   ac_status=$?
1859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860   (exit $ac_status); }; }; then
1861   ac_compiler_gnu=yes
1862 else
1863   echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_compiler_gnu=no
1867 fi
1868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1869 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1870
1871 fi
1872 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1873 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1874 GCC=`test $ac_compiler_gnu = yes && echo yes`
1875 ac_test_CFLAGS=${CFLAGS+set}
1876 ac_save_CFLAGS=$CFLAGS
1877 CFLAGS="-g"
1878 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1879 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1880 if test "${ac_cv_prog_cc_g+set}" = set; then
1881   echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883   cat >conftest.$ac_ext <<_ACEOF
1884 /* confdefs.h.  */
1885 _ACEOF
1886 cat confdefs.h >>conftest.$ac_ext
1887 cat >>conftest.$ac_ext <<_ACEOF
1888 /* end confdefs.h.  */
1889
1890 int
1891 main ()
1892 {
1893
1894   ;
1895   return 0;
1896 }
1897 _ACEOF
1898 rm -f conftest.$ac_objext
1899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1900   (eval $ac_compile) 2>conftest.er1
1901   ac_status=$?
1902   grep -v '^ *+' conftest.er1 >conftest.err
1903   rm -f conftest.er1
1904   cat conftest.err >&5
1905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906   (exit $ac_status); } &&
1907          { ac_try='test -z "$ac_c_werror_flag"
1908                          || test ! -s conftest.err'
1909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910   (eval $ac_try) 2>&5
1911   ac_status=$?
1912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913   (exit $ac_status); }; } &&
1914          { ac_try='test -s conftest.$ac_objext'
1915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1916   (eval $ac_try) 2>&5
1917   ac_status=$?
1918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919   (exit $ac_status); }; }; then
1920   ac_cv_prog_cc_g=yes
1921 else
1922   echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_cv_prog_cc_g=no
1926 fi
1927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1928 fi
1929 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1930 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1931 if test "$ac_test_CFLAGS" = set; then
1932   CFLAGS=$ac_save_CFLAGS
1933 elif test $ac_cv_prog_cc_g = yes; then
1934   if test "$GCC" = yes; then
1935     CFLAGS="-g -O2"
1936   else
1937     CFLAGS="-g"
1938   fi
1939 else
1940   if test "$GCC" = yes; then
1941     CFLAGS="-O2"
1942   else
1943     CFLAGS=
1944   fi
1945 fi
1946 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1947 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1948 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   ac_cv_prog_cc_stdc=no
1952 ac_save_CC=$CC
1953 cat >conftest.$ac_ext <<_ACEOF
1954 /* confdefs.h.  */
1955 _ACEOF
1956 cat confdefs.h >>conftest.$ac_ext
1957 cat >>conftest.$ac_ext <<_ACEOF
1958 /* end confdefs.h.  */
1959 #include <stdarg.h>
1960 #include <stdio.h>
1961 #include <sys/types.h>
1962 #include <sys/stat.h>
1963 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1964 struct buf { int x; };
1965 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1966 static char *e (p, i)
1967      char **p;
1968      int i;
1969 {
1970   return p[i];
1971 }
1972 static char *f (char * (*g) (char **, int), char **p, ...)
1973 {
1974   char *s;
1975   va_list v;
1976   va_start (v,p);
1977   s = g (p, va_arg (v,int));
1978   va_end (v);
1979   return s;
1980 }
1981
1982 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1983    function prototypes and stuff, but not '\xHH' hex character constants.
1984    These don't provoke an error unfortunately, instead are silently treated
1985    as 'x'.  The following induces an error, until -std1 is added to get
1986    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1987    array size at least.  It's necessary to write '\x00'==0 to get something
1988    that's true only with -std1.  */
1989 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1990
1991 int test (int i, double x);
1992 struct s1 {int (*f) (int a);};
1993 struct s2 {int (*f) (double a);};
1994 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1995 int argc;
1996 char **argv;
1997 int
1998 main ()
1999 {
2000 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2001   ;
2002   return 0;
2003 }
2004 _ACEOF
2005 # Don't try gcc -ansi; that turns off useful extensions and
2006 # breaks some systems' header files.
2007 # AIX                   -qlanglvl=ansi
2008 # Ultrix and OSF/1      -std1
2009 # HP-UX 10.20 and later -Ae
2010 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2011 # SVR4                  -Xc -D__EXTENSIONS__
2012 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2013 do
2014   CC="$ac_save_CC $ac_arg"
2015   rm -f conftest.$ac_objext
2016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2017   (eval $ac_compile) 2>conftest.er1
2018   ac_status=$?
2019   grep -v '^ *+' conftest.er1 >conftest.err
2020   rm -f conftest.er1
2021   cat conftest.err >&5
2022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023   (exit $ac_status); } &&
2024          { ac_try='test -z "$ac_c_werror_flag"
2025                          || test ! -s conftest.err'
2026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2027   (eval $ac_try) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }; } &&
2031          { ac_try='test -s conftest.$ac_objext'
2032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033   (eval $ac_try) 2>&5
2034   ac_status=$?
2035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036   (exit $ac_status); }; }; then
2037   ac_cv_prog_cc_stdc=$ac_arg
2038 break
2039 else
2040   echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 fi
2044 rm -f conftest.err conftest.$ac_objext
2045 done
2046 rm -f conftest.$ac_ext conftest.$ac_objext
2047 CC=$ac_save_CC
2048
2049 fi
2050
2051 case "x$ac_cv_prog_cc_stdc" in
2052   x|xno)
2053     echo "$as_me:$LINENO: result: none needed" >&5
2054 echo "${ECHO_T}none needed" >&6 ;;
2055   *)
2056     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2058     CC="$CC $ac_cv_prog_cc_stdc" ;;
2059 esac
2060
2061 # Some people use a C++ compiler to compile C.  Since we use `exit',
2062 # in C++ we need to declare it.  In case someone uses the same compiler
2063 # for both compiling C and C++ we need to have the C++ compiler decide
2064 # the declaration of exit, since it's the most demanding environment.
2065 cat >conftest.$ac_ext <<_ACEOF
2066 #ifndef __cplusplus
2067   choke me
2068 #endif
2069 _ACEOF
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072   (eval $ac_compile) 2>conftest.er1
2073   ac_status=$?
2074   grep -v '^ *+' conftest.er1 >conftest.err
2075   rm -f conftest.er1
2076   cat conftest.err >&5
2077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078   (exit $ac_status); } &&
2079          { ac_try='test -z "$ac_c_werror_flag"
2080                          || test ! -s conftest.err'
2081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082   (eval $ac_try) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   for ac_declaration in \
2093    '' \
2094    'extern "C" void std::exit (int) throw (); using std::exit;' \
2095    'extern "C" void std::exit (int); using std::exit;' \
2096    'extern "C" void exit (int) throw ();' \
2097    'extern "C" void exit (int);' \
2098    'void exit (int);'
2099 do
2100   cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h.  */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h.  */
2106 $ac_declaration
2107 #include <stdlib.h>
2108 int
2109 main ()
2110 {
2111 exit (42);
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 rm -f conftest.$ac_objext
2117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118   (eval $ac_compile) 2>conftest.er1
2119   ac_status=$?
2120   grep -v '^ *+' conftest.er1 >conftest.err
2121   rm -f conftest.er1
2122   cat conftest.err >&5
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); } &&
2125          { ac_try='test -z "$ac_c_werror_flag"
2126                          || test ! -s conftest.err'
2127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2128   (eval $ac_try) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }; } &&
2132          { ac_try='test -s conftest.$ac_objext'
2133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134   (eval $ac_try) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }; }; then
2138   :
2139 else
2140   echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143 continue
2144 fi
2145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2146   cat >conftest.$ac_ext <<_ACEOF
2147 /* confdefs.h.  */
2148 _ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h.  */
2152 $ac_declaration
2153 int
2154 main ()
2155 {
2156 exit (42);
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 rm -f conftest.$ac_objext
2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163   (eval $ac_compile) 2>conftest.er1
2164   ac_status=$?
2165   grep -v '^ *+' conftest.er1 >conftest.err
2166   rm -f conftest.er1
2167   cat conftest.err >&5
2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169   (exit $ac_status); } &&
2170          { ac_try='test -z "$ac_c_werror_flag"
2171                          || test ! -s conftest.err'
2172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173   (eval $ac_try) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; } &&
2177          { ac_try='test -s conftest.$ac_objext'
2178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179   (eval $ac_try) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; }; then
2183   break
2184 else
2185   echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 fi
2189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2190 done
2191 rm -f conftest*
2192 if test -n "$ac_declaration"; then
2193   echo '#ifdef __cplusplus' >>confdefs.h
2194   echo $ac_declaration      >>confdefs.h
2195   echo '#endif'             >>confdefs.h
2196 fi
2197
2198 else
2199   echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2201
2202 fi
2203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2204 ac_ext=c
2205 ac_cpp='$CPP $CPPFLAGS'
2206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2209
2210 ac_aux_dir=
2211 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2212   if test -f $ac_dir/install-sh; then
2213     ac_aux_dir=$ac_dir
2214     ac_install_sh="$ac_aux_dir/install-sh -c"
2215     break
2216   elif test -f $ac_dir/install.sh; then
2217     ac_aux_dir=$ac_dir
2218     ac_install_sh="$ac_aux_dir/install.sh -c"
2219     break
2220   elif test -f $ac_dir/shtool; then
2221     ac_aux_dir=$ac_dir
2222     ac_install_sh="$ac_aux_dir/shtool install -c"
2223     break
2224   fi
2225 done
2226 if test -z "$ac_aux_dir"; then
2227   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2228 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2229    { (exit 1); exit 1; }; }
2230 fi
2231 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2232 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2233 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2234
2235 # Find a good install program.  We prefer a C program (faster),
2236 # so one script is as good as another.  But avoid the broken or
2237 # incompatible versions:
2238 # SysV /etc/install, /usr/sbin/install
2239 # SunOS /usr/etc/install
2240 # IRIX /sbin/install
2241 # AIX /bin/install
2242 # AmigaOS /C/install, which installs bootblocks on floppy discs
2243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246 # OS/2's system install, which has a completely different semantic
2247 # ./install, which can be erroneously created by make from ./install.sh.
2248 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2249 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2250 if test -z "$INSTALL"; then
2251 if test "${ac_cv_path_install+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257   IFS=$as_save_IFS
2258   test -z "$as_dir" && as_dir=.
2259   # Account for people who put trailing slashes in PATH elements.
2260 case $as_dir/ in
2261   ./ | .// | /cC/* | \
2262   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2263   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2264   /usr/ucb/* ) ;;
2265   *)
2266     # OSF1 and SCO ODT 3.0 have their own names for install.
2267     # Don't use installbsd from OSF since it installs stuff as root
2268     # by default.
2269     for ac_prog in ginstall scoinst install; do
2270       for ac_exec_ext in '' $ac_executable_extensions; do
2271         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2272           if test $ac_prog = install &&
2273             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274             # AIX install.  It has an incompatible calling convention.
2275             :
2276           elif test $ac_prog = install &&
2277             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278             # program-specific install script used by HP pwplus--don't use.
2279             :
2280           else
2281             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2282             break 3
2283           fi
2284         fi
2285       done
2286     done
2287     ;;
2288 esac
2289 done
2290
2291
2292 fi
2293   if test "${ac_cv_path_install+set}" = set; then
2294     INSTALL=$ac_cv_path_install
2295   else
2296     # As a last resort, use the slow shell script.  We don't cache a
2297     # path for INSTALL within a source directory, because that will
2298     # break other packages using the cache if that directory is
2299     # removed, or if the path is relative.
2300     INSTALL=$ac_install_sh
2301   fi
2302 fi
2303 echo "$as_me:$LINENO: result: $INSTALL" >&5
2304 echo "${ECHO_T}$INSTALL" >&6
2305
2306 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2307 # It thinks the first close brace ends the variable substitution.
2308 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2309
2310 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2311
2312 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2313
2314 if test -n "$ac_tool_prefix"; then
2315   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}ar; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_AR+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322   if test -n "$AR"; then
2323   ac_cv_prog_AR="$AR" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330   for ac_exec_ext in '' $ac_executable_extensions; do
2331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332     ac_cv_prog_AR="${ac_tool_prefix}ar"
2333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334     break 2
2335   fi
2336 done
2337 done
2338
2339 fi
2340 fi
2341 AR=$ac_cv_prog_AR
2342 if test -n "$AR"; then
2343   echo "$as_me:$LINENO: result: $AR" >&5
2344 echo "${ECHO_T}$AR" >&6
2345 else
2346   echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 fi
2349
2350 fi
2351 if test -z "$ac_cv_prog_AR"; then
2352   ac_ct_AR=$AR
2353   # Extract the first word of "ar", so it can be a program name with args.
2354 set dummy ar; ac_word=$2
2355 echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2357 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   if test -n "$ac_ct_AR"; then
2361   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370     ac_cv_prog_ac_ct_AR="ar"
2371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372     break 2
2373   fi
2374 done
2375 done
2376
2377 fi
2378 fi
2379 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2380 if test -n "$ac_ct_AR"; then
2381   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2382 echo "${ECHO_T}$ac_ct_AR" >&6
2383 else
2384   echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2386 fi
2387
2388   AR=$ac_ct_AR
2389 else
2390   AR="$ac_cv_prog_AR"
2391 fi
2392
2393 if test -n "$ac_tool_prefix"; then
2394   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2395 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2396 echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2398 if test "${ac_cv_prog_RANLIB+set}" = set; then
2399   echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401   if test -n "$RANLIB"; then
2402   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407   IFS=$as_save_IFS
2408   test -z "$as_dir" && as_dir=.
2409   for ac_exec_ext in '' $ac_executable_extensions; do
2410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413     break 2
2414   fi
2415 done
2416 done
2417
2418 fi
2419 fi
2420 RANLIB=$ac_cv_prog_RANLIB
2421 if test -n "$RANLIB"; then
2422   echo "$as_me:$LINENO: result: $RANLIB" >&5
2423 echo "${ECHO_T}$RANLIB" >&6
2424 else
2425   echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6
2427 fi
2428
2429 fi
2430 if test -z "$ac_cv_prog_RANLIB"; then
2431   ac_ct_RANLIB=$RANLIB
2432   # Extract the first word of "ranlib", so it can be a program name with args.
2433 set dummy ranlib; ac_word=$2
2434 echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2436 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   if test -n "$ac_ct_RANLIB"; then
2440   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445   IFS=$as_save_IFS
2446   test -z "$as_dir" && as_dir=.
2447   for ac_exec_ext in '' $ac_executable_extensions; do
2448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449     ac_cv_prog_ac_ct_RANLIB="ranlib"
2450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451     break 2
2452   fi
2453 done
2454 done
2455
2456   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2457 fi
2458 fi
2459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2460 if test -n "$ac_ct_RANLIB"; then
2461   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2462 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2463 else
2464   echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6
2466 fi
2467
2468   RANLIB=$ac_ct_RANLIB
2469 else
2470   RANLIB="$ac_cv_prog_RANLIB"
2471 fi
2472
2473
2474 # Make sure we can run config.sub.
2475 $ac_config_sub sun4 >/dev/null 2>&1 ||
2476   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2477 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2478    { (exit 1); exit 1; }; }
2479
2480 echo "$as_me:$LINENO: checking build system type" >&5
2481 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2482 if test "${ac_cv_build+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   ac_cv_build_alias=$build_alias
2486 test -z "$ac_cv_build_alias" &&
2487   ac_cv_build_alias=`$ac_config_guess`
2488 test -z "$ac_cv_build_alias" &&
2489   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2490 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2491    { (exit 1); exit 1; }; }
2492 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2493   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2494 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2495    { (exit 1); exit 1; }; }
2496
2497 fi
2498 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2499 echo "${ECHO_T}$ac_cv_build" >&6
2500 build=$ac_cv_build
2501 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2502 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2503 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2504
2505
2506 echo "$as_me:$LINENO: checking host system type" >&5
2507 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2508 if test "${ac_cv_host+set}" = set; then
2509   echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511   ac_cv_host_alias=$host_alias
2512 test -z "$ac_cv_host_alias" &&
2513   ac_cv_host_alias=$ac_cv_build_alias
2514 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2515   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2516 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2517    { (exit 1); exit 1; }; }
2518
2519 fi
2520 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2521 echo "${ECHO_T}$ac_cv_host" >&6
2522 host=$ac_cv_host
2523 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2524 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2525 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2526
2527
2528 echo "$as_me:$LINENO: checking target system type" >&5
2529 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2530 if test "${ac_cv_target+set}" = set; then
2531   echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533   ac_cv_target_alias=$target_alias
2534 test "x$ac_cv_target_alias" = "x" &&
2535   ac_cv_target_alias=$ac_cv_host_alias
2536 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2537   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2538 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2539    { (exit 1); exit 1; }; }
2540
2541 fi
2542 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2543 echo "${ECHO_T}$ac_cv_target" >&6
2544 target=$ac_cv_target
2545 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2546 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2547 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2548
2549
2550 # The aliases save the names the user supplied, while $host etc.
2551 # will get canonicalized.
2552 test -n "$target_alias" &&
2553   test "$program_prefix$program_suffix$program_transform_name" = \
2554     NONENONEs,x,x, &&
2555   program_prefix=${target_alias}-
2556 test "$program_prefix" != NONE &&
2557   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2558 # Use a double $ so make ignores it.
2559 test "$program_suffix" != NONE &&
2560   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2561 # Double any \ or $.  echo might interpret backslashes.
2562 # By default was `s,x,x', remove it if useless.
2563 cat <<\_ACEOF >conftest.sed
2564 s/[\\$]/&&/g;s/;s,x,x,$//
2565 _ACEOF
2566 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2567 rm conftest.sed
2568
2569 ac_ext=c
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 if test -n "$ac_tool_prefix"; then
2575   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2576 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2577 echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   if test -n "$CC"; then
2583   ac_cv_prog_CC="$CC" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588   IFS=$as_save_IFS
2589   test -z "$as_dir" && as_dir=.
2590   for ac_exec_ext in '' $ac_executable_extensions; do
2591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594     break 2
2595   fi
2596 done
2597 done
2598
2599 fi
2600 fi
2601 CC=$ac_cv_prog_CC
2602 if test -n "$CC"; then
2603   echo "$as_me:$LINENO: result: $CC" >&5
2604 echo "${ECHO_T}$CC" >&6
2605 else
2606   echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6
2608 fi
2609
2610 fi
2611 if test -z "$ac_cv_prog_CC"; then
2612   ac_ct_CC=$CC
2613   # Extract the first word of "gcc", so it can be a program name with args.
2614 set dummy gcc; ac_word=$2
2615 echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620   if test -n "$ac_ct_CC"; then
2621   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626   IFS=$as_save_IFS
2627   test -z "$as_dir" && as_dir=.
2628   for ac_exec_ext in '' $ac_executable_extensions; do
2629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630     ac_cv_prog_ac_ct_CC="gcc"
2631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632     break 2
2633   fi
2634 done
2635 done
2636
2637 fi
2638 fi
2639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2640 if test -n "$ac_ct_CC"; then
2641   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2642 echo "${ECHO_T}$ac_ct_CC" >&6
2643 else
2644   echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6
2646 fi
2647
2648   CC=$ac_ct_CC
2649 else
2650   CC="$ac_cv_prog_CC"
2651 fi
2652
2653 if test -z "$CC"; then
2654   if test -n "$ac_tool_prefix"; then
2655   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}cc; ac_word=$2
2657 echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2659 if test "${ac_cv_prog_CC+set}" = set; then
2660   echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662   if test -n "$CC"; then
2663   ac_cv_prog_CC="$CC" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668   IFS=$as_save_IFS
2669   test -z "$as_dir" && as_dir=.
2670   for ac_exec_ext in '' $ac_executable_extensions; do
2671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672     ac_cv_prog_CC="${ac_tool_prefix}cc"
2673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674     break 2
2675   fi
2676 done
2677 done
2678
2679 fi
2680 fi
2681 CC=$ac_cv_prog_CC
2682 if test -n "$CC"; then
2683   echo "$as_me:$LINENO: result: $CC" >&5
2684 echo "${ECHO_T}$CC" >&6
2685 else
2686   echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6
2688 fi
2689
2690 fi
2691 if test -z "$ac_cv_prog_CC"; then
2692   ac_ct_CC=$CC
2693   # Extract the first word of "cc", so it can be a program name with args.
2694 set dummy cc; ac_word=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2698   echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700   if test -n "$ac_ct_CC"; then
2701   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708   for ac_exec_ext in '' $ac_executable_extensions; do
2709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710     ac_cv_prog_ac_ct_CC="cc"
2711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715 done
2716
2717 fi
2718 fi
2719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2720 if test -n "$ac_ct_CC"; then
2721   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2722 echo "${ECHO_T}$ac_ct_CC" >&6
2723 else
2724   echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2726 fi
2727
2728   CC=$ac_ct_CC
2729 else
2730   CC="$ac_cv_prog_CC"
2731 fi
2732
2733 fi
2734 if test -z "$CC"; then
2735   # Extract the first word of "cc", so it can be a program name with args.
2736 set dummy cc; ac_word=$2
2737 echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2739 if test "${ac_cv_prog_CC+set}" = set; then
2740   echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742   if test -n "$CC"; then
2743   ac_cv_prog_CC="$CC" # Let the user override the test.
2744 else
2745   ac_prog_rejected=no
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749   IFS=$as_save_IFS
2750   test -z "$as_dir" && as_dir=.
2751   for ac_exec_ext in '' $ac_executable_extensions; do
2752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2754        ac_prog_rejected=yes
2755        continue
2756      fi
2757     ac_cv_prog_CC="cc"
2758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759     break 2
2760   fi
2761 done
2762 done
2763
2764 if test $ac_prog_rejected = yes; then
2765   # We found a bogon in the path, so make sure we never use it.
2766   set dummy $ac_cv_prog_CC
2767   shift
2768   if test $# != 0; then
2769     # We chose a different compiler from the bogus one.
2770     # However, it has the same basename, so the bogon will be chosen
2771     # first if we set CC to just the basename; use the full file name.
2772     shift
2773     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2774   fi
2775 fi
2776 fi
2777 fi
2778 CC=$ac_cv_prog_CC
2779 if test -n "$CC"; then
2780   echo "$as_me:$LINENO: result: $CC" >&5
2781 echo "${ECHO_T}$CC" >&6
2782 else
2783   echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2785 fi
2786
2787 fi
2788 if test -z "$CC"; then
2789   if test -n "$ac_tool_prefix"; then
2790   for ac_prog in cl
2791   do
2792     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2796 if test "${ac_cv_prog_CC+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   if test -n "$CC"; then
2800   ac_cv_prog_CC="$CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805   IFS=$as_save_IFS
2806   test -z "$as_dir" && as_dir=.
2807   for ac_exec_ext in '' $ac_executable_extensions; do
2808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811     break 2
2812   fi
2813 done
2814 done
2815
2816 fi
2817 fi
2818 CC=$ac_cv_prog_CC
2819 if test -n "$CC"; then
2820   echo "$as_me:$LINENO: result: $CC" >&5
2821 echo "${ECHO_T}$CC" >&6
2822 else
2823   echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2825 fi
2826
2827     test -n "$CC" && break
2828   done
2829 fi
2830 if test -z "$CC"; then
2831   ac_ct_CC=$CC
2832   for ac_prog in cl
2833 do
2834   # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   if test -n "$ac_ct_CC"; then
2842   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849   for ac_exec_ext in '' $ac_executable_extensions; do
2850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851     ac_cv_prog_ac_ct_CC="$ac_prog"
2852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853     break 2
2854   fi
2855 done
2856 done
2857
2858 fi
2859 fi
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2863 echo "${ECHO_T}$ac_ct_CC" >&6
2864 else
2865   echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6
2867 fi
2868
2869   test -n "$ac_ct_CC" && break
2870 done
2871
2872   CC=$ac_ct_CC
2873 fi
2874
2875 fi
2876
2877
2878 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2879 See \`config.log' for more details." >&5
2880 echo "$as_me: error: no acceptable C compiler found in \$PATH
2881 See \`config.log' for more details." >&2;}
2882    { (exit 1); exit 1; }; }
2883
2884 # Provide some information about the compiler.
2885 echo "$as_me:$LINENO:" \
2886      "checking for C compiler version" >&5
2887 ac_compiler=`set X $ac_compile; echo $2`
2888 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2889   (eval $ac_compiler --version </dev/null >&5) 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }
2893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2894   (eval $ac_compiler -v </dev/null >&5) 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }
2898 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2899   (eval $ac_compiler -V </dev/null >&5) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }
2903
2904 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2905 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2906 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909   cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915
2916 int
2917 main ()
2918 {
2919 #ifndef __GNUC__
2920        choke me
2921 #endif
2922
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929   (eval $ac_compile) 2>conftest.er1
2930   ac_status=$?
2931   grep -v '^ *+' conftest.er1 >conftest.err
2932   rm -f conftest.er1
2933   cat conftest.err >&5
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); } &&
2936          { ac_try='test -z "$ac_c_werror_flag"
2937                          || test ! -s conftest.err'
2938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939   (eval $ac_try) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; } &&
2943          { ac_try='test -s conftest.$ac_objext'
2944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; }; then
2949   ac_compiler_gnu=yes
2950 else
2951   echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 ac_compiler_gnu=no
2955 fi
2956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2957 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2958
2959 fi
2960 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2961 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2962 GCC=`test $ac_compiler_gnu = yes && echo yes`
2963 ac_test_CFLAGS=${CFLAGS+set}
2964 ac_save_CFLAGS=$CFLAGS
2965 CFLAGS="-g"
2966 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2967 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2968 if test "${ac_cv_prog_cc_g+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977
2978 int
2979 main ()
2980 {
2981
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2988   (eval $ac_compile) 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } &&
2995          { ac_try='test -z "$ac_c_werror_flag"
2996                          || test ! -s conftest.err'
2997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998   (eval $ac_try) 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }; } &&
3002          { ac_try='test -s conftest.$ac_objext'
3003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004   (eval $ac_try) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }; }; then
3008   ac_cv_prog_cc_g=yes
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013 ac_cv_prog_cc_g=no
3014 fi
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016 fi
3017 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3018 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3019 if test "$ac_test_CFLAGS" = set; then
3020   CFLAGS=$ac_save_CFLAGS
3021 elif test $ac_cv_prog_cc_g = yes; then
3022   if test "$GCC" = yes; then
3023     CFLAGS="-g -O2"
3024   else
3025     CFLAGS="-g"
3026   fi
3027 else
3028   if test "$GCC" = yes; then
3029     CFLAGS="-O2"
3030   else
3031     CFLAGS=
3032   fi
3033 fi
3034 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3035 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3036 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   ac_cv_prog_cc_stdc=no
3040 ac_save_CC=$CC
3041 cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047 #include <stdarg.h>
3048 #include <stdio.h>
3049 #include <sys/types.h>
3050 #include <sys/stat.h>
3051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3052 struct buf { int x; };
3053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3054 static char *e (p, i)
3055      char **p;
3056      int i;
3057 {
3058   return p[i];
3059 }
3060 static char *f (char * (*g) (char **, int), char **p, ...)
3061 {
3062   char *s;
3063   va_list v;
3064   va_start (v,p);
3065   s = g (p, va_arg (v,int));
3066   va_end (v);
3067   return s;
3068 }
3069
3070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3071    function prototypes and stuff, but not '\xHH' hex character constants.
3072    These don't provoke an error unfortunately, instead are silently treated
3073    as 'x'.  The following induces an error, until -std1 is added to get
3074    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3075    array size at least.  It's necessary to write '\x00'==0 to get something
3076    that's true only with -std1.  */
3077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3078
3079 int test (int i, double x);
3080 struct s1 {int (*f) (int a);};
3081 struct s2 {int (*f) (double a);};
3082 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3083 int argc;
3084 char **argv;
3085 int
3086 main ()
3087 {
3088 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3089   ;
3090   return 0;
3091 }
3092 _ACEOF
3093 # Don't try gcc -ansi; that turns off useful extensions and
3094 # breaks some systems' header files.
3095 # AIX                   -qlanglvl=ansi
3096 # Ultrix and OSF/1      -std1
3097 # HP-UX 10.20 and later -Ae
3098 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3099 # SVR4                  -Xc -D__EXTENSIONS__
3100 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3101 do
3102   CC="$ac_save_CC $ac_arg"
3103   rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105   (eval $ac_compile) 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } &&
3112          { ac_try='test -z "$ac_c_werror_flag"
3113                          || test ! -s conftest.err'
3114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115   (eval $ac_try) 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; } &&
3119          { ac_try='test -s conftest.$ac_objext'
3120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121   (eval $ac_try) 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; }; then
3125   ac_cv_prog_cc_stdc=$ac_arg
3126 break
3127 else
3128   echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 fi
3132 rm -f conftest.err conftest.$ac_objext
3133 done
3134 rm -f conftest.$ac_ext conftest.$ac_objext
3135 CC=$ac_save_CC
3136
3137 fi
3138
3139 case "x$ac_cv_prog_cc_stdc" in
3140   x|xno)
3141     echo "$as_me:$LINENO: result: none needed" >&5
3142 echo "${ECHO_T}none needed" >&6 ;;
3143   *)
3144     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3145 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3146     CC="$CC $ac_cv_prog_cc_stdc" ;;
3147 esac
3148
3149 # Some people use a C++ compiler to compile C.  Since we use `exit',
3150 # in C++ we need to declare it.  In case someone uses the same compiler
3151 # for both compiling C and C++ we need to have the C++ compiler decide
3152 # the declaration of exit, since it's the most demanding environment.
3153 cat >conftest.$ac_ext <<_ACEOF
3154 #ifndef __cplusplus
3155   choke me
3156 #endif
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160   (eval $ac_compile) 2>conftest.er1
3161   ac_status=$?
3162   grep -v '^ *+' conftest.er1 >conftest.err
3163   rm -f conftest.er1
3164   cat conftest.err >&5
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); } &&
3167          { ac_try='test -z "$ac_c_werror_flag"
3168                          || test ! -s conftest.err'
3169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170   (eval $ac_try) 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; } &&
3174          { ac_try='test -s conftest.$ac_objext'
3175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176   (eval $ac_try) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; }; then
3180   for ac_declaration in \
3181    '' \
3182    'extern "C" void std::exit (int) throw (); using std::exit;' \
3183    'extern "C" void std::exit (int); using std::exit;' \
3184    'extern "C" void exit (int) throw ();' \
3185    'extern "C" void exit (int);' \
3186    'void exit (int);'
3187 do
3188   cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194 $ac_declaration
3195 #include <stdlib.h>
3196 int
3197 main ()
3198 {
3199 exit (42);
3200   ;
3201   return 0;
3202 }
3203 _ACEOF
3204 rm -f conftest.$ac_objext
3205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3206   (eval $ac_compile) 2>conftest.er1
3207   ac_status=$?
3208   grep -v '^ *+' conftest.er1 >conftest.err
3209   rm -f conftest.er1
3210   cat conftest.err >&5
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); } &&
3213          { ac_try='test -z "$ac_c_werror_flag"
3214                          || test ! -s conftest.err'
3215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216   (eval $ac_try) 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }; } &&
3220          { ac_try='test -s conftest.$ac_objext'
3221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222   (eval $ac_try) 2>&5
3223   ac_status=$?
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); }; }; then
3226   :
3227 else
3228   echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231 continue
3232 fi
3233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3234   cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h.  */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h.  */
3240 $ac_declaration
3241 int
3242 main ()
3243 {
3244 exit (42);
3245   ;
3246   return 0;
3247 }
3248 _ACEOF
3249 rm -f conftest.$ac_objext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3251   (eval $ac_compile) 2>conftest.er1
3252   ac_status=$?
3253   grep -v '^ *+' conftest.er1 >conftest.err
3254   rm -f conftest.er1
3255   cat conftest.err >&5
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); } &&
3258          { ac_try='test -z "$ac_c_werror_flag"
3259                          || test ! -s conftest.err'
3260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261   (eval $ac_try) 2>&5
3262   ac_status=$?
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }; } &&
3265          { ac_try='test -s conftest.$ac_objext'
3266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267   (eval $ac_try) 2>&5
3268   ac_status=$?
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); }; }; then
3271   break
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 fi
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3278 done
3279 rm -f conftest*
3280 if test -n "$ac_declaration"; then
3281   echo '#ifdef __cplusplus' >>confdefs.h
3282   echo $ac_declaration      >>confdefs.h
3283   echo '#endif'             >>confdefs.h
3284 fi
3285
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 fi
3291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292 ac_ext=c
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298
3299
3300 AR=${AR-ar}
3301
3302 if test -n "$ac_tool_prefix"; then
3303   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3305 echo "$as_me:$LINENO: checking for $ac_word" >&5
3306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307 if test "${ac_cv_prog_RANLIB+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310   if test -n "$RANLIB"; then
3311   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318   for ac_exec_ext in '' $ac_executable_extensions; do
3319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322     break 2
3323   fi
3324 done
3325 done
3326
3327 fi
3328 fi
3329 RANLIB=$ac_cv_prog_RANLIB
3330 if test -n "$RANLIB"; then
3331   echo "$as_me:$LINENO: result: $RANLIB" >&5
3332 echo "${ECHO_T}$RANLIB" >&6
3333 else
3334   echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336 fi
3337
3338 fi
3339 if test -z "$ac_cv_prog_RANLIB"; then
3340   ac_ct_RANLIB=$RANLIB
3341   # Extract the first word of "ranlib", so it can be a program name with args.
3342 set dummy ranlib; ac_word=$2
3343 echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   if test -n "$ac_ct_RANLIB"; then
3349   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354   IFS=$as_save_IFS
3355   test -z "$as_dir" && as_dir=.
3356   for ac_exec_ext in '' $ac_executable_extensions; do
3357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358     ac_cv_prog_ac_ct_RANLIB="ranlib"
3359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360     break 2
3361   fi
3362 done
3363 done
3364
3365   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3366 fi
3367 fi
3368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3369 if test -n "$ac_ct_RANLIB"; then
3370   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3371 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3372 else
3373   echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3375 fi
3376
3377   RANLIB=$ac_ct_RANLIB
3378 else
3379   RANLIB="$ac_cv_prog_RANLIB"
3380 fi
3381
3382
3383 # Put a plausible default for CC_FOR_BUILD in Makefile.
3384 if test "x$cross_compiling" = "xno"; then
3385   CC_FOR_BUILD='$(CC)'
3386 else
3387   CC_FOR_BUILD=gcc
3388 fi
3389
3390 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3391
3392
3393 # If a cpu ever has more than one simulator to choose from, use
3394 # --enable-sim=... to choose.
3395 # Check whether --enable-sim or --disable-sim was given.
3396 if test "${enable_sim+set}" = set; then
3397   enableval="$enable_sim"
3398   case "${enableval}" in
3399 yes | no) ;;
3400 *)      { { echo "$as_me:$LINENO: error: bad value ${enableval} given for --enable-sim option" >&5
3401 echo "$as_me: error: bad value ${enableval} given for --enable-sim option" >&2;}
3402    { (exit 1); exit 1; }; } ;;
3403 esac
3404 fi;
3405
3406 # WHEN ADDING ENTRIES TO THIS MATRIX:
3407
3408 # Make sure that the left side always has two dashes.  Otherwise you
3409 # can get spurious matches.  Even for unambiguous cases, do this as a
3410 # convention, else the table becomes a real mess to understand and
3411 # maintain.
3412
3413 if test "${enable_sim}" != no; then
3414    testsuite=no
3415    common=no
3416    igen=no
3417    case "${target}" in
3418        arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
3419
3420
3421 subdirs="$subdirs arm"
3422
3423            testsuite=yes
3424            common=yes
3425            ;;
3426        cris-*-* | crisv32-*-*)
3427
3428
3429 subdirs="$subdirs cris"
3430
3431            testsuite=yes
3432            common=yes
3433            ;;
3434        d10v-*-*)
3435
3436
3437 subdirs="$subdirs d10v"
3438
3439            ;;
3440        frv-*-*)
3441
3442
3443 subdirs="$subdirs frv"
3444
3445            testsuite=yes
3446            common=yes
3447            ;;
3448        h8300*-*-*)
3449
3450
3451 subdirs="$subdirs h8300"
3452
3453            testsuite=yes
3454            common=yes
3455            ;;
3456        iq2000-*-*)
3457
3458
3459 subdirs="$subdirs iq2000"
3460
3461            testsuite=yes
3462            common=yes
3463            ;;
3464        m32c-*-*)
3465
3466
3467 subdirs="$subdirs m32c"
3468
3469            common=yes
3470            ;;
3471        m32r-*-*)
3472
3473
3474 subdirs="$subdirs m32r"
3475
3476            testsuite=yes
3477            common=yes
3478            ;;
3479        m68hc11-*-*|m6811-*-*)
3480
3481
3482 subdirs="$subdirs m68hc11"
3483
3484            testsuite=yes
3485            common=yes
3486            ;;
3487        mcore-*-*)
3488
3489
3490 subdirs="$subdirs mcore"
3491
3492            testsuite=yes
3493            common=yes
3494            ;;
3495        mips*-*-*)
3496
3497
3498 subdirs="$subdirs mips"
3499
3500            testsuite=yes
3501            common=yes
3502            igen=yes
3503            ;;
3504        mn10300*-*-*)
3505
3506
3507 subdirs="$subdirs mn10300"
3508
3509            common=yes
3510            igen=yes
3511            ;;
3512        sh64-*-*)
3513
3514
3515 subdirs="$subdirs sh64"
3516
3517            testsuite=yes
3518            common=yes
3519            ;;
3520        sh-*-*)
3521
3522
3523 subdirs="$subdirs sh"
3524
3525            testsuite=yes
3526            common=yes
3527            ;;
3528        powerpc*-*-* )
3529
3530
3531 subdirs="$subdirs ppc"
3532
3533            common=yes
3534            ;;
3535        v850*-*-* )
3536
3537
3538 subdirs="$subdirs v850"
3539
3540            common=yes
3541            igen=yes
3542            ;;
3543    esac
3544    if test "$testsuite" = yes; then
3545
3546
3547 subdirs="$subdirs testsuite"
3548
3549    fi
3550    if test "$common" = yes; then
3551
3552
3553 subdirs="$subdirs common"
3554
3555    fi
3556    if test "$igen" = yes; then
3557
3558
3559 subdirs="$subdirs igen"
3560
3561    fi
3562 fi
3563
3564           ac_config_files="$ac_config_files Makefile"
3565 cat >confcache <<\_ACEOF
3566 # This file is a shell script that caches the results of configure
3567 # tests run on this system so they can be shared between configure
3568 # scripts and configure runs, see configure's option --config-cache.
3569 # It is not useful on other systems.  If it contains results you don't
3570 # want to keep, you may remove or edit it.
3571 #
3572 # config.status only pays attention to the cache file if you give it
3573 # the --recheck option to rerun configure.
3574 #
3575 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3576 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3577 # following values.
3578
3579 _ACEOF
3580
3581 # The following way of writing the cache mishandles newlines in values,
3582 # but we know of no workaround that is simple, portable, and efficient.
3583 # So, don't put newlines in cache variables' values.
3584 # Ultrix sh set writes to stderr and can't be redirected directly,
3585 # and sets the high bit in the cache file unless we assign to the vars.
3586 {
3587   (set) 2>&1 |
3588     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3589     *ac_space=\ *)
3590       # `set' does not quote correctly, so add quotes (double-quote
3591       # substitution turns \\\\ into \\, and sed turns \\ into \).
3592       sed -n \
3593         "s/'/'\\\\''/g;
3594           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3595       ;;
3596     *)
3597       # `set' quotes correctly as required by POSIX, so do not add quotes.
3598       sed -n \
3599         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3600       ;;
3601     esac;
3602 } |
3603   sed '
3604      t clear
3605      : clear
3606      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3607      t end
3608      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3609      : end' >>confcache
3610 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3611   if test -w $cache_file; then
3612     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3613     cat confcache >$cache_file
3614   else
3615     echo "not updating unwritable cache $cache_file"
3616   fi
3617 fi
3618 rm -f confcache
3619
3620 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3621 # Let make expand exec_prefix.
3622 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3623
3624 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3625 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3626 # trailing colons and then remove the whole line if VPATH becomes empty
3627 # (actually we leave an empty line to preserve line numbers).
3628 if test "x$srcdir" = x.; then
3629   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3630 s/:*\$(srcdir):*/:/;
3631 s/:*\${srcdir}:*/:/;
3632 s/:*@srcdir@:*/:/;
3633 s/^\([^=]*=[     ]*\):*/\1/;
3634 s/:*$//;
3635 s/^[^=]*=[       ]*$//;
3636 }'
3637 fi
3638
3639 # Transform confdefs.h into DEFS.
3640 # Protect against shell expansion while executing Makefile rules.
3641 # Protect against Makefile macro expansion.
3642 #
3643 # If the first sed substitution is executed (which looks for macros that
3644 # take arguments), then we branch to the quote section.  Otherwise,
3645 # look for a macro that doesn't take arguments.
3646 cat >confdef2opt.sed <<\_ACEOF
3647 t clear
3648 : clear
3649 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3650 t quote
3651 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3652 t quote
3653 d
3654 : quote
3655 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3656 s,\[,\\&,g
3657 s,\],\\&,g
3658 s,\$,$$,g
3659 p
3660 _ACEOF
3661 # We use echo to avoid assuming a particular line-breaking character.
3662 # The extra dot is to prevent the shell from consuming trailing
3663 # line-breaks from the sub-command output.  A line-break within
3664 # single-quotes doesn't work because, if this script is created in a
3665 # platform that uses two characters for line-breaks (e.g., DOS), tr
3666 # would break.
3667 ac_LF_and_DOT=`echo; echo .`
3668 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3669 rm -f confdef2opt.sed
3670
3671
3672 ac_libobjs=
3673 ac_ltlibobjs=
3674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3675   # 1. Remove the extension, and $U if already installed.
3676   ac_i=`echo "$ac_i" |
3677          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3678   # 2. Add them.
3679   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3680   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3681 done
3682 LIBOBJS=$ac_libobjs
3683
3684 LTLIBOBJS=$ac_ltlibobjs
3685
3686
3687
3688 : ${CONFIG_STATUS=./config.status}
3689 ac_clean_files_save=$ac_clean_files
3690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3691 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3692 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3693 cat >$CONFIG_STATUS <<_ACEOF
3694 #! $SHELL
3695 # Generated by $as_me.
3696 # Run this file to recreate the current configuration.
3697 # Compiler output produced by configure, useful for debugging
3698 # configure, is in config.log if it exists.
3699
3700 debug=false
3701 ac_cs_recheck=false
3702 ac_cs_silent=false
3703 SHELL=\${CONFIG_SHELL-$SHELL}
3704 _ACEOF
3705
3706 cat >>$CONFIG_STATUS <<\_ACEOF
3707 ## --------------------- ##
3708 ## M4sh Initialization.  ##
3709 ## --------------------- ##
3710
3711 # Be Bourne compatible
3712 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3713   emulate sh
3714   NULLCMD=:
3715   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3716   # is contrary to our usage.  Disable this feature.
3717   alias -g '${1+"$@"}'='"$@"'
3718 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3719   set -o posix
3720 fi
3721 DUALCASE=1; export DUALCASE # for MKS sh
3722
3723 # Support unset when possible.
3724 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3725   as_unset=unset
3726 else
3727   as_unset=false
3728 fi
3729
3730
3731 # Work around bugs in pre-3.0 UWIN ksh.
3732 $as_unset ENV MAIL MAILPATH
3733 PS1='$ '
3734 PS2='> '
3735 PS4='+ '
3736
3737 # NLS nuisances.
3738 for as_var in \
3739   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3740   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3741   LC_TELEPHONE LC_TIME
3742 do
3743   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3744     eval $as_var=C; export $as_var
3745   else
3746     $as_unset $as_var
3747   fi
3748 done
3749
3750 # Required to use basename.
3751 if expr a : '\(a\)' >/dev/null 2>&1; then
3752   as_expr=expr
3753 else
3754   as_expr=false
3755 fi
3756
3757 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3758   as_basename=basename
3759 else
3760   as_basename=false
3761 fi
3762
3763
3764 # Name of the executable.
3765 as_me=`$as_basename "$0" ||
3766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3767          X"$0" : 'X\(//\)$' \| \
3768          X"$0" : 'X\(/\)$' \| \
3769          .     : '\(.\)' 2>/dev/null ||
3770 echo X/"$0" |
3771     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3772           /^X\/\(\/\/\)$/{ s//\1/; q; }
3773           /^X\/\(\/\).*/{ s//\1/; q; }
3774           s/.*/./; q'`
3775
3776
3777 # PATH needs CR, and LINENO needs CR and PATH.
3778 # Avoid depending upon Character Ranges.
3779 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3780 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3781 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3782 as_cr_digits='0123456789'
3783 as_cr_alnum=$as_cr_Letters$as_cr_digits
3784
3785 # The user is always right.
3786 if test "${PATH_SEPARATOR+set}" != set; then
3787   echo "#! /bin/sh" >conf$$.sh
3788   echo  "exit 0"   >>conf$$.sh
3789   chmod +x conf$$.sh
3790   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3791     PATH_SEPARATOR=';'
3792   else
3793     PATH_SEPARATOR=:
3794   fi
3795   rm -f conf$$.sh
3796 fi
3797
3798
3799   as_lineno_1=$LINENO
3800   as_lineno_2=$LINENO
3801   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3802   test "x$as_lineno_1" != "x$as_lineno_2" &&
3803   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3804   # Find who we are.  Look in the path if we contain no path at all
3805   # relative or not.
3806   case $0 in
3807     *[\\/]* ) as_myself=$0 ;;
3808     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811   IFS=$as_save_IFS
3812   test -z "$as_dir" && as_dir=.
3813   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3814 done
3815
3816        ;;
3817   esac
3818   # We did not find ourselves, most probably we were run as `sh COMMAND'
3819   # in which case we are not to be found in the path.
3820   if test "x$as_myself" = x; then
3821     as_myself=$0
3822   fi
3823   if test ! -f "$as_myself"; then
3824     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3825 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3826    { (exit 1); exit 1; }; }
3827   fi
3828   case $CONFIG_SHELL in
3829   '')
3830     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3832 do
3833   IFS=$as_save_IFS
3834   test -z "$as_dir" && as_dir=.
3835   for as_base in sh bash ksh sh5; do
3836          case $as_dir in
3837          /*)
3838            if ("$as_dir/$as_base" -c '
3839   as_lineno_1=$LINENO
3840   as_lineno_2=$LINENO
3841   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3842   test "x$as_lineno_1" != "x$as_lineno_2" &&
3843   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3844              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3845              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3846              CONFIG_SHELL=$as_dir/$as_base
3847              export CONFIG_SHELL
3848              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3849            fi;;
3850          esac
3851        done
3852 done
3853 ;;
3854   esac
3855
3856   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3857   # uniformly replaced by the line number.  The first 'sed' inserts a
3858   # line-number line before each line; the second 'sed' does the real
3859   # work.  The second script uses 'N' to pair each line-number line
3860   # with the numbered line, and appends trailing '-' during
3861   # substitution so that $LINENO is not a special case at line end.
3862   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3863   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3864   sed '=' <$as_myself |
3865     sed '
3866       N
3867       s,$,-,
3868       : loop
3869       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3870       t loop
3871       s,-$,,
3872       s,^['$as_cr_digits']*\n,,
3873     ' >$as_me.lineno &&
3874   chmod +x $as_me.lineno ||
3875     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3876 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3877    { (exit 1); exit 1; }; }
3878
3879   # Don't try to exec as it changes $[0], causing all sort of problems
3880   # (the dirname of $[0] is not the place where we might find the
3881   # original and so on.  Autoconf is especially sensible to this).
3882   . ./$as_me.lineno
3883   # Exit status is that of the last command.
3884   exit
3885 }
3886
3887
3888 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3889   *c*,-n*) ECHO_N= ECHO_C='
3890 ' ECHO_T='      ' ;;
3891   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3892   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3893 esac
3894
3895 if expr a : '\(a\)' >/dev/null 2>&1; then
3896   as_expr=expr
3897 else
3898   as_expr=false
3899 fi
3900
3901 rm -f conf$$ conf$$.exe conf$$.file
3902 echo >conf$$.file
3903 if ln -s conf$$.file conf$$ 2>/dev/null; then
3904   # We could just check for DJGPP; but this test a) works b) is more generic
3905   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3906   if test -f conf$$.exe; then
3907     # Don't use ln at all; we don't have any links
3908     as_ln_s='cp -p'
3909   else
3910     as_ln_s='ln -s'
3911   fi
3912 elif ln conf$$.file conf$$ 2>/dev/null; then
3913   as_ln_s=ln
3914 else
3915   as_ln_s='cp -p'
3916 fi
3917 rm -f conf$$ conf$$.exe conf$$.file
3918
3919 if mkdir -p . 2>/dev/null; then
3920   as_mkdir_p=:
3921 else
3922   test -d ./-p && rmdir ./-p
3923   as_mkdir_p=false
3924 fi
3925
3926 as_executable_p="test -f"
3927
3928 # Sed expression to map a string onto a valid CPP name.
3929 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3930
3931 # Sed expression to map a string onto a valid variable name.
3932 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3933
3934
3935 # IFS
3936 # We need space, tab and new line, in precisely that order.
3937 as_nl='
3938 '
3939 IFS="   $as_nl"
3940
3941 # CDPATH.
3942 $as_unset CDPATH
3943
3944 exec 6>&1
3945
3946 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3947 # report actual input values of CONFIG_FILES etc. instead of their
3948 # values after options handling.  Logging --version etc. is OK.
3949 exec 5>>config.log
3950 {
3951   echo
3952   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3953 ## Running $as_me. ##
3954 _ASBOX
3955 } >&5
3956 cat >&5 <<_CSEOF
3957
3958 This file was extended by $as_me, which was
3959 generated by GNU Autoconf 2.59.  Invocation command line was
3960
3961   CONFIG_FILES    = $CONFIG_FILES
3962   CONFIG_HEADERS  = $CONFIG_HEADERS
3963   CONFIG_LINKS    = $CONFIG_LINKS
3964   CONFIG_COMMANDS = $CONFIG_COMMANDS
3965   $ $0 $@
3966
3967 _CSEOF
3968 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3969 echo >&5
3970 _ACEOF
3971
3972 # Files that config.status was made for.
3973 if test -n "$ac_config_files"; then
3974   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3975 fi
3976
3977 if test -n "$ac_config_headers"; then
3978   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3979 fi
3980
3981 if test -n "$ac_config_links"; then
3982   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3983 fi
3984
3985 if test -n "$ac_config_commands"; then
3986   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3987 fi
3988
3989 cat >>$CONFIG_STATUS <<\_ACEOF
3990
3991 ac_cs_usage="\
3992 \`$as_me' instantiates files from templates according to the
3993 current configuration.
3994
3995 Usage: $0 [OPTIONS] [FILE]...
3996
3997   -h, --help       print this help, then exit
3998   -V, --version    print version number, then exit
3999   -q, --quiet      do not print progress messages
4000   -d, --debug      don't remove temporary files
4001       --recheck    update $as_me by reconfiguring in the same conditions
4002   --file=FILE[:TEMPLATE]
4003                    instantiate the configuration file FILE
4004
4005 Configuration files:
4006 $config_files
4007
4008 Report bugs to <bug-autoconf@gnu.org>."
4009 _ACEOF
4010
4011 cat >>$CONFIG_STATUS <<_ACEOF
4012 ac_cs_version="\\
4013 config.status
4014 configured by $0, generated by GNU Autoconf 2.59,
4015   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4016
4017 Copyright (C) 2003 Free Software Foundation, Inc.
4018 This config.status script is free software; the Free Software Foundation
4019 gives unlimited permission to copy, distribute and modify it."
4020 srcdir=$srcdir
4021 INSTALL="$INSTALL"
4022 _ACEOF
4023
4024 cat >>$CONFIG_STATUS <<\_ACEOF
4025 # If no file are specified by the user, then we need to provide default
4026 # value.  By we need to know if files were specified by the user.
4027 ac_need_defaults=:
4028 while test $# != 0
4029 do
4030   case $1 in
4031   --*=*)
4032     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4033     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4034     ac_shift=:
4035     ;;
4036   -*)
4037     ac_option=$1
4038     ac_optarg=$2
4039     ac_shift=shift
4040     ;;
4041   *) # This is not an option, so the user has probably given explicit
4042      # arguments.
4043      ac_option=$1
4044      ac_need_defaults=false;;
4045   esac
4046
4047   case $ac_option in
4048   # Handling of the options.
4049 _ACEOF
4050 cat >>$CONFIG_STATUS <<\_ACEOF
4051   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4052     ac_cs_recheck=: ;;
4053   --version | --vers* | -V )
4054     echo "$ac_cs_version"; exit 0 ;;
4055   --he | --h)
4056     # Conflict between --help and --header
4057     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4058 Try \`$0 --help' for more information." >&5
4059 echo "$as_me: error: ambiguous option: $1
4060 Try \`$0 --help' for more information." >&2;}
4061    { (exit 1); exit 1; }; };;
4062   --help | --hel | -h )
4063     echo "$ac_cs_usage"; exit 0 ;;
4064   --debug | --d* | -d )
4065     debug=: ;;
4066   --file | --fil | --fi | --f )
4067     $ac_shift
4068     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4069     ac_need_defaults=false;;
4070   --header | --heade | --head | --hea )
4071     $ac_shift
4072     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4073     ac_need_defaults=false;;
4074   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4075   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4076     ac_cs_silent=: ;;
4077
4078   # This is an error.
4079   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4080 Try \`$0 --help' for more information." >&5
4081 echo "$as_me: error: unrecognized option: $1
4082 Try \`$0 --help' for more information." >&2;}
4083    { (exit 1); exit 1; }; } ;;
4084
4085   *) ac_config_targets="$ac_config_targets $1" ;;
4086
4087   esac
4088   shift
4089 done
4090
4091 ac_configure_extra_args=
4092
4093 if $ac_cs_silent; then
4094   exec 6>/dev/null
4095   ac_configure_extra_args="$ac_configure_extra_args --silent"
4096 fi
4097
4098 _ACEOF
4099 cat >>$CONFIG_STATUS <<_ACEOF
4100 if \$ac_cs_recheck; then
4101   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4102   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4103 fi
4104
4105 _ACEOF
4106
4107
4108
4109
4110
4111 cat >>$CONFIG_STATUS <<\_ACEOF
4112 for ac_config_target in $ac_config_targets
4113 do
4114   case "$ac_config_target" in
4115   # Handling of arguments.
4116   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4117   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4118 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4119    { (exit 1); exit 1; }; };;
4120   esac
4121 done
4122
4123 # If the user did not use the arguments to specify the items to instantiate,
4124 # then the envvar interface is used.  Set only those that are not.
4125 # We use the long form for the default assignment because of an extremely
4126 # bizarre bug on SunOS 4.1.3.
4127 if $ac_need_defaults; then
4128   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4129 fi
4130
4131 # Have a temporary directory for convenience.  Make it in the build tree
4132 # simply because there is no reason to put it here, and in addition,
4133 # creating and moving files from /tmp can sometimes cause problems.
4134 # Create a temporary directory, and hook for its removal unless debugging.
4135 $debug ||
4136 {
4137   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4138   trap '{ (exit 1); exit 1; }' 1 2 13 15
4139 }
4140
4141 # Create a (secure) tmp directory for tmp files.
4142
4143 {
4144   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4145   test -n "$tmp" && test -d "$tmp"
4146 }  ||
4147 {
4148   tmp=./confstat$$-$RANDOM
4149   (umask 077 && mkdir $tmp)
4150 } ||
4151 {
4152    echo "$me: cannot create a temporary directory in ." >&2
4153    { (exit 1); exit 1; }
4154 }
4155
4156 _ACEOF
4157
4158 cat >>$CONFIG_STATUS <<_ACEOF
4159
4160 #
4161 # CONFIG_FILES section.
4162 #
4163
4164 # No need to generate the scripts if there are no CONFIG_FILES.
4165 # This happens for instance when ./config.status config.h
4166 if test -n "\$CONFIG_FILES"; then
4167   # Protect against being on the right side of a sed subst in config.status.
4168   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4169    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4170 s,@SHELL@,$SHELL,;t t
4171 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4172 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4173 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4174 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4175 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4176 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4177 s,@exec_prefix@,$exec_prefix,;t t
4178 s,@prefix@,$prefix,;t t
4179 s,@program_transform_name@,$program_transform_name,;t t
4180 s,@bindir@,$bindir,;t t
4181 s,@sbindir@,$sbindir,;t t
4182 s,@libexecdir@,$libexecdir,;t t
4183 s,@datadir@,$datadir,;t t
4184 s,@sysconfdir@,$sysconfdir,;t t
4185 s,@sharedstatedir@,$sharedstatedir,;t t
4186 s,@localstatedir@,$localstatedir,;t t
4187 s,@libdir@,$libdir,;t t
4188 s,@includedir@,$includedir,;t t
4189 s,@oldincludedir@,$oldincludedir,;t t
4190 s,@infodir@,$infodir,;t t
4191 s,@mandir@,$mandir,;t t
4192 s,@build_alias@,$build_alias,;t t
4193 s,@host_alias@,$host_alias,;t t
4194 s,@target_alias@,$target_alias,;t t
4195 s,@DEFS@,$DEFS,;t t
4196 s,@ECHO_C@,$ECHO_C,;t t
4197 s,@ECHO_N@,$ECHO_N,;t t
4198 s,@ECHO_T@,$ECHO_T,;t t
4199 s,@LIBS@,$LIBS,;t t
4200 s,@CC@,$CC,;t t
4201 s,@CFLAGS@,$CFLAGS,;t t
4202 s,@LDFLAGS@,$LDFLAGS,;t t
4203 s,@CPPFLAGS@,$CPPFLAGS,;t t
4204 s,@ac_ct_CC@,$ac_ct_CC,;t t
4205 s,@EXEEXT@,$EXEEXT,;t t
4206 s,@OBJEXT@,$OBJEXT,;t t
4207 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4208 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4209 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4210 s,@AR@,$AR,;t t
4211 s,@ac_ct_AR@,$ac_ct_AR,;t t
4212 s,@RANLIB@,$RANLIB,;t t
4213 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4214 s,@build@,$build,;t t
4215 s,@build_cpu@,$build_cpu,;t t
4216 s,@build_vendor@,$build_vendor,;t t
4217 s,@build_os@,$build_os,;t t
4218 s,@host@,$host,;t t
4219 s,@host_cpu@,$host_cpu,;t t
4220 s,@host_vendor@,$host_vendor,;t t
4221 s,@host_os@,$host_os,;t t
4222 s,@target@,$target,;t t
4223 s,@target_cpu@,$target_cpu,;t t
4224 s,@target_vendor@,$target_vendor,;t t
4225 s,@target_os@,$target_os,;t t
4226 s,@HDEFINES@,$HDEFINES,;t t
4227 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
4228 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
4229 s,@subdirs@,$subdirs,;t t
4230 s,@LIBOBJS@,$LIBOBJS,;t t
4231 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4232 CEOF
4233
4234 _ACEOF
4235
4236   cat >>$CONFIG_STATUS <<\_ACEOF
4237   # Split the substitutions into bite-sized pieces for seds with
4238   # small command number limits, like on Digital OSF/1 and HP-UX.
4239   ac_max_sed_lines=48
4240   ac_sed_frag=1 # Number of current file.
4241   ac_beg=1 # First line for current file.
4242   ac_end=$ac_max_sed_lines # Line after last line for current file.
4243   ac_more_lines=:
4244   ac_sed_cmds=
4245   while $ac_more_lines; do
4246     if test $ac_beg -gt 1; then
4247       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4248     else
4249       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4250     fi
4251     if test ! -s $tmp/subs.frag; then
4252       ac_more_lines=false
4253     else
4254       # The purpose of the label and of the branching condition is to
4255       # speed up the sed processing (if there are no `@' at all, there
4256       # is no need to browse any of the substitutions).
4257       # These are the two extra sed commands mentioned above.
4258       (echo ':t
4259   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4260       if test -z "$ac_sed_cmds"; then
4261         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4262       else
4263         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4264       fi
4265       ac_sed_frag=`expr $ac_sed_frag + 1`
4266       ac_beg=$ac_end
4267       ac_end=`expr $ac_end + $ac_max_sed_lines`
4268     fi
4269   done
4270   if test -z "$ac_sed_cmds"; then
4271     ac_sed_cmds=cat
4272   fi
4273 fi # test -n "$CONFIG_FILES"
4274
4275 _ACEOF
4276 cat >>$CONFIG_STATUS <<\_ACEOF
4277 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4278   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4279   case $ac_file in
4280   - | *:- | *:-:* ) # input from stdin
4281         cat >$tmp/stdin
4282         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4283         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4284   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4285         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4286   * )   ac_file_in=$ac_file.in ;;
4287   esac
4288
4289   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4290   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4292          X"$ac_file" : 'X\(//\)[^/]' \| \
4293          X"$ac_file" : 'X\(//\)$' \| \
4294          X"$ac_file" : 'X\(/\)' \| \
4295          .     : '\(.\)' 2>/dev/null ||
4296 echo X"$ac_file" |
4297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4298           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4299           /^X\(\/\/\)$/{ s//\1/; q; }
4300           /^X\(\/\).*/{ s//\1/; q; }
4301           s/.*/./; q'`
4302   { if $as_mkdir_p; then
4303     mkdir -p "$ac_dir"
4304   else
4305     as_dir="$ac_dir"
4306     as_dirs=
4307     while test ! -d "$as_dir"; do
4308       as_dirs="$as_dir $as_dirs"
4309       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4311          X"$as_dir" : 'X\(//\)[^/]' \| \
4312          X"$as_dir" : 'X\(//\)$' \| \
4313          X"$as_dir" : 'X\(/\)' \| \
4314          .     : '\(.\)' 2>/dev/null ||
4315 echo X"$as_dir" |
4316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4317           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4318           /^X\(\/\/\)$/{ s//\1/; q; }
4319           /^X\(\/\).*/{ s//\1/; q; }
4320           s/.*/./; q'`
4321     done
4322     test ! -n "$as_dirs" || mkdir $as_dirs
4323   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4324 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4325    { (exit 1); exit 1; }; }; }
4326
4327   ac_builddir=.
4328
4329 if test "$ac_dir" != .; then
4330   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4331   # A "../" for each directory in $ac_dir_suffix.
4332   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4333 else
4334   ac_dir_suffix= ac_top_builddir=
4335 fi
4336
4337 case $srcdir in
4338   .)  # No --srcdir option.  We are building in place.
4339     ac_srcdir=.
4340     if test -z "$ac_top_builddir"; then
4341        ac_top_srcdir=.
4342     else
4343        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4344     fi ;;
4345   [\\/]* | ?:[\\/]* )  # Absolute path.
4346     ac_srcdir=$srcdir$ac_dir_suffix;
4347     ac_top_srcdir=$srcdir ;;
4348   *) # Relative path.
4349     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4350     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4351 esac
4352
4353 # Do not use `cd foo && pwd` to compute absolute paths, because
4354 # the directories may not exist.
4355 case `pwd` in
4356 .) ac_abs_builddir="$ac_dir";;
4357 *)
4358   case "$ac_dir" in
4359   .) ac_abs_builddir=`pwd`;;
4360   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4361   *) ac_abs_builddir=`pwd`/"$ac_dir";;
4362   esac;;
4363 esac
4364 case $ac_abs_builddir in
4365 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4366 *)
4367   case ${ac_top_builddir}. in
4368   .) ac_abs_top_builddir=$ac_abs_builddir;;
4369   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4370   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4371   esac;;
4372 esac
4373 case $ac_abs_builddir in
4374 .) ac_abs_srcdir=$ac_srcdir;;
4375 *)
4376   case $ac_srcdir in
4377   .) ac_abs_srcdir=$ac_abs_builddir;;
4378   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4379   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4380   esac;;
4381 esac
4382 case $ac_abs_builddir in
4383 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4384 *)
4385   case $ac_top_srcdir in
4386   .) ac_abs_top_srcdir=$ac_abs_builddir;;
4387   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4388   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4389   esac;;
4390 esac
4391
4392
4393   case $INSTALL in
4394   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4395   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4396   esac
4397
4398   if test x"$ac_file" != x-; then
4399     { echo "$as_me:$LINENO: creating $ac_file" >&5
4400 echo "$as_me: creating $ac_file" >&6;}
4401     rm -f "$ac_file"
4402   fi
4403   # Let's still pretend it is `configure' which instantiates (i.e., don't
4404   # use $as_me), people would be surprised to read:
4405   #    /* config.h.  Generated by config.status.  */
4406   if test x"$ac_file" = x-; then
4407     configure_input=
4408   else
4409     configure_input="$ac_file.  "
4410   fi
4411   configure_input=$configure_input"Generated from `echo $ac_file_in |
4412                                      sed 's,.*/,,'` by configure."
4413
4414   # First look for the input files in the build tree, otherwise in the
4415   # src tree.
4416   ac_file_inputs=`IFS=:
4417     for f in $ac_file_in; do
4418       case $f in
4419       -) echo $tmp/stdin ;;
4420       [\\/$]*)
4421          # Absolute (can't be DOS-style, as IFS=:)
4422          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4423 echo "$as_me: error: cannot find input file: $f" >&2;}
4424    { (exit 1); exit 1; }; }
4425          echo "$f";;
4426       *) # Relative
4427          if test -f "$f"; then
4428            # Build tree
4429            echo "$f"
4430          elif test -f "$srcdir/$f"; then
4431            # Source tree
4432            echo "$srcdir/$f"
4433          else
4434            # /dev/null tree
4435            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4436 echo "$as_me: error: cannot find input file: $f" >&2;}
4437    { (exit 1); exit 1; }; }
4438          fi;;
4439       esac
4440     done` || { (exit 1); exit 1; }
4441 _ACEOF
4442 cat >>$CONFIG_STATUS <<_ACEOF
4443   sed "$ac_vpsub
4444 $extrasub
4445 _ACEOF
4446 cat >>$CONFIG_STATUS <<\_ACEOF
4447 :t
4448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4449 s,@configure_input@,$configure_input,;t t
4450 s,@srcdir@,$ac_srcdir,;t t
4451 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4452 s,@top_srcdir@,$ac_top_srcdir,;t t
4453 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4454 s,@builddir@,$ac_builddir,;t t
4455 s,@abs_builddir@,$ac_abs_builddir,;t t
4456 s,@top_builddir@,$ac_top_builddir,;t t
4457 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4458 s,@INSTALL@,$ac_INSTALL,;t t
4459 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4460   rm -f $tmp/stdin
4461   if test x"$ac_file" != x-; then
4462     mv $tmp/out $ac_file
4463   else
4464     cat $tmp/out
4465     rm -f $tmp/out
4466   fi
4467
4468 done
4469 _ACEOF
4470
4471 cat >>$CONFIG_STATUS <<\_ACEOF
4472
4473 { (exit 0); exit 0; }
4474 _ACEOF
4475 chmod +x $CONFIG_STATUS
4476 ac_clean_files=$ac_clean_files_save
4477
4478
4479 # configure is writing to config.log, and then calls config.status.
4480 # config.status does its own redirection, appending to config.log.
4481 # Unfortunately, on DOS this fails, as config.log is still kept open
4482 # by configure, so config.status won't be able to write to it; its
4483 # output is simply discarded.  So we exec the FD to /dev/null,
4484 # effectively closing config.log, so it can be properly (re)opened and
4485 # appended to by config.status.  When coming back to configure, we
4486 # need to make the FD available again.
4487 if test "$no_create" != yes; then
4488   ac_cs_success=:
4489   ac_config_status_args=
4490   test "$silent" = yes &&
4491     ac_config_status_args="$ac_config_status_args --quiet"
4492   exec 5>/dev/null
4493   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4494   exec 5>>config.log
4495   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4496   # would make configure fail if this is the last instruction.
4497   $ac_cs_success || { (exit 1); exit 1; }
4498 fi
4499
4500 #
4501 # CONFIG_SUBDIRS section.
4502 #
4503 if test "$no_recursion" != yes; then
4504
4505   # Remove --cache-file and --srcdir arguments so they do not pile up.
4506   ac_sub_configure_args=
4507   ac_prev=
4508   for ac_arg in $ac_configure_args; do
4509     if test -n "$ac_prev"; then
4510       ac_prev=
4511       continue
4512     fi
4513     case $ac_arg in
4514     -cache-file | --cache-file | --cache-fil | --cache-fi \
4515     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4516       ac_prev=cache_file ;;
4517     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4518     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4519     | --c=*)
4520       ;;
4521     --config-cache | -C)
4522       ;;
4523     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4524       ac_prev=srcdir ;;
4525     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4526       ;;
4527     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4528       ac_prev=prefix ;;
4529     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4530       ;;
4531     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4532     esac
4533   done
4534
4535   # Always prepend --prefix to ensure using the same prefix
4536   # in subdir configurations.
4537   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
4538
4539   ac_popdir=`pwd`
4540   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
4541
4542     # Do not complain, so a configure script can configure whichever
4543     # parts of a large source tree are present.
4544     test -d $srcdir/$ac_dir || continue
4545
4546     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
4547 echo "$as_me: configuring in $ac_dir" >&6;}
4548     { if $as_mkdir_p; then
4549     mkdir -p "$ac_dir"
4550   else
4551     as_dir="$ac_dir"
4552     as_dirs=
4553     while test ! -d "$as_dir"; do
4554       as_dirs="$as_dir $as_dirs"
4555       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4557          X"$as_dir" : 'X\(//\)[^/]' \| \
4558          X"$as_dir" : 'X\(//\)$' \| \
4559          X"$as_dir" : 'X\(/\)' \| \
4560          .     : '\(.\)' 2>/dev/null ||
4561 echo X"$as_dir" |
4562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4563           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4564           /^X\(\/\/\)$/{ s//\1/; q; }
4565           /^X\(\/\).*/{ s//\1/; q; }
4566           s/.*/./; q'`
4567     done
4568     test ! -n "$as_dirs" || mkdir $as_dirs
4569   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4570 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4571    { (exit 1); exit 1; }; }; }
4572
4573     ac_builddir=.
4574
4575 if test "$ac_dir" != .; then
4576   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4577   # A "../" for each directory in $ac_dir_suffix.
4578   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4579 else
4580   ac_dir_suffix= ac_top_builddir=
4581 fi
4582
4583 case $srcdir in
4584   .)  # No --srcdir option.  We are building in place.
4585     ac_srcdir=.
4586     if test -z "$ac_top_builddir"; then
4587        ac_top_srcdir=.
4588     else
4589        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4590     fi ;;
4591   [\\/]* | ?:[\\/]* )  # Absolute path.
4592     ac_srcdir=$srcdir$ac_dir_suffix;
4593     ac_top_srcdir=$srcdir ;;
4594   *) # Relative path.
4595     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4596     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4597 esac
4598
4599 # Do not use `cd foo && pwd` to compute absolute paths, because
4600 # the directories may not exist.
4601 case `pwd` in
4602 .) ac_abs_builddir="$ac_dir";;
4603 *)
4604   case "$ac_dir" in
4605   .) ac_abs_builddir=`pwd`;;
4606   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4607   *) ac_abs_builddir=`pwd`/"$ac_dir";;
4608   esac;;
4609 esac
4610 case $ac_abs_builddir in
4611 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4612 *)
4613   case ${ac_top_builddir}. in
4614   .) ac_abs_top_builddir=$ac_abs_builddir;;
4615   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4616   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4617   esac;;
4618 esac
4619 case $ac_abs_builddir in
4620 .) ac_abs_srcdir=$ac_srcdir;;
4621 *)
4622   case $ac_srcdir in
4623   .) ac_abs_srcdir=$ac_abs_builddir;;
4624   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4625   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4626   esac;;
4627 esac
4628 case $ac_abs_builddir in
4629 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4630 *)
4631   case $ac_top_srcdir in
4632   .) ac_abs_top_srcdir=$ac_abs_builddir;;
4633   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4634   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4635   esac;;
4636 esac
4637
4638
4639     cd $ac_dir
4640
4641     # Check for guested configure; otherwise get Cygnus style configure.
4642     if test -f $ac_srcdir/configure.gnu; then
4643       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
4644     elif test -f $ac_srcdir/configure; then
4645       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
4646     elif test -f $ac_srcdir/configure.in; then
4647       ac_sub_configure=$ac_configure
4648     else
4649       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
4650 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
4651       ac_sub_configure=
4652     fi
4653
4654     # The recursion is here.
4655     if test -n "$ac_sub_configure"; then
4656       # Make the cache file name correct relative to the subdirectory.
4657       case $cache_file in
4658       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4659       *) # Relative path.
4660         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
4661       esac
4662
4663       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4664 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4665       # The eval makes quoting arguments work.
4666       eval $ac_sub_configure $ac_sub_configure_args \
4667            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
4668         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
4669 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
4670    { (exit 1); exit 1; }; }
4671     fi
4672
4673     cd $ac_popdir
4674   done
4675 fi
4676
4677
4678 exit 0