OSDN Git Service

d69b6e73acb8977e5ffe5f842b0cbb9d2c4d8e8c
[pf3gnuchains/pf3gnuchains4x.git] / newlib / libc / machine / i386 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for newlib 1.15.0.
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='newlib'
269 PACKAGE_TARNAME='newlib'
270 PACKAGE_VERSION='1.15.0'
271 PACKAGE_STRING='newlib 1.15.0'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="setjmp.S"
275 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 MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir CFLAGS CPPFLAGS ac_ct_CC EXEEXT LN_S LIBTOOL MACH_ADD_SETJMP_TRUE MACH_ADD_SETJMP_FALSE LIBOBJS LTLIBOBJS'
276 ac_subst_files=''
277
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
297
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
315
316 ac_prev=
317 for ac_option
318 do
319   # If the previous option needs an argument, assign it.
320   if test -n "$ac_prev"; then
321     eval "$ac_prev=\$ac_option"
322     ac_prev=
323     continue
324   fi
325
326   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328   # Accept the important Cygnus configure options, so we can diagnose typos.
329
330   case $ac_option in
331
332   -bindir | --bindir | --bindi | --bind | --bin | --bi)
333     ac_prev=bindir ;;
334   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335     bindir=$ac_optarg ;;
336
337   -build | --build | --buil | --bui | --bu)
338     ac_prev=build_alias ;;
339   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340     build_alias=$ac_optarg ;;
341
342   -cache-file | --cache-file | --cache-fil | --cache-fi \
343   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344     ac_prev=cache_file ;;
345   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347     cache_file=$ac_optarg ;;
348
349   --config-cache | -C)
350     cache_file=config.cache ;;
351
352   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353     ac_prev=datadir ;;
354   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355   | --da=*)
356     datadir=$ac_optarg ;;
357
358   -disable-* | --disable-*)
359     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360     # Reject names that are not valid shell variable names.
361     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363    { (exit 1); exit 1; }; }
364     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365     eval "enable_$ac_feature=no" ;;
366
367   -enable-* | --enable-*)
368     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369     # Reject names that are not valid shell variable names.
370     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372    { (exit 1); exit 1; }; }
373     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374     case $ac_option in
375       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376       *) ac_optarg=yes ;;
377     esac
378     eval "enable_$ac_feature='$ac_optarg'" ;;
379
380   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382   | --exec | --exe | --ex)
383     ac_prev=exec_prefix ;;
384   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386   | --exec=* | --exe=* | --ex=*)
387     exec_prefix=$ac_optarg ;;
388
389   -gas | --gas | --ga | --g)
390     # Obsolete; use --with-gas.
391     with_gas=yes ;;
392
393   -help | --help | --hel | --he | -h)
394     ac_init_help=long ;;
395   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396     ac_init_help=recursive ;;
397   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398     ac_init_help=short ;;
399
400   -host | --host | --hos | --ho)
401     ac_prev=host_alias ;;
402   -host=* | --host=* | --hos=* | --ho=*)
403     host_alias=$ac_optarg ;;
404
405   -includedir | --includedir | --includedi | --included | --include \
406   | --includ | --inclu | --incl | --inc)
407     ac_prev=includedir ;;
408   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409   | --includ=* | --inclu=* | --incl=* | --inc=*)
410     includedir=$ac_optarg ;;
411
412   -infodir | --infodir | --infodi | --infod | --info | --inf)
413     ac_prev=infodir ;;
414   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415     infodir=$ac_optarg ;;
416
417   -libdir | --libdir | --libdi | --libd)
418     ac_prev=libdir ;;
419   -libdir=* | --libdir=* | --libdi=* | --libd=*)
420     libdir=$ac_optarg ;;
421
422   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423   | --libexe | --libex | --libe)
424     ac_prev=libexecdir ;;
425   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426   | --libexe=* | --libex=* | --libe=*)
427     libexecdir=$ac_optarg ;;
428
429   -localstatedir | --localstatedir | --localstatedi | --localstated \
430   | --localstate | --localstat | --localsta | --localst \
431   | --locals | --local | --loca | --loc | --lo)
432     ac_prev=localstatedir ;;
433   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436     localstatedir=$ac_optarg ;;
437
438   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439     ac_prev=mandir ;;
440   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441     mandir=$ac_optarg ;;
442
443   -nfp | --nfp | --nf)
444     # Obsolete; use --without-fp.
445     with_fp=no ;;
446
447   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448   | --no-cr | --no-c | -n)
449     no_create=yes ;;
450
451   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453     no_recursion=yes ;;
454
455   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457   | --oldin | --oldi | --old | --ol | --o)
458     ac_prev=oldincludedir ;;
459   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462     oldincludedir=$ac_optarg ;;
463
464   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465     ac_prev=prefix ;;
466   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467     prefix=$ac_optarg ;;
468
469   -program-prefix | --program-prefix | --program-prefi | --program-pref \
470   | --program-pre | --program-pr | --program-p)
471     ac_prev=program_prefix ;;
472   -program-prefix=* | --program-prefix=* | --program-prefi=* \
473   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474     program_prefix=$ac_optarg ;;
475
476   -program-suffix | --program-suffix | --program-suffi | --program-suff \
477   | --program-suf | --program-su | --program-s)
478     ac_prev=program_suffix ;;
479   -program-suffix=* | --program-suffix=* | --program-suffi=* \
480   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481     program_suffix=$ac_optarg ;;
482
483   -program-transform-name | --program-transform-name \
484   | --program-transform-nam | --program-transform-na \
485   | --program-transform-n | --program-transform- \
486   | --program-transform | --program-transfor \
487   | --program-transfo | --program-transf \
488   | --program-trans | --program-tran \
489   | --progr-tra | --program-tr | --program-t)
490     ac_prev=program_transform_name ;;
491   -program-transform-name=* | --program-transform-name=* \
492   | --program-transform-nam=* | --program-transform-na=* \
493   | --program-transform-n=* | --program-transform-=* \
494   | --program-transform=* | --program-transfor=* \
495   | --program-transfo=* | --program-transf=* \
496   | --program-trans=* | --program-tran=* \
497   | --progr-tra=* | --program-tr=* | --program-t=*)
498     program_transform_name=$ac_optarg ;;
499
500   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501   | -silent | --silent | --silen | --sile | --sil)
502     silent=yes ;;
503
504   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505     ac_prev=sbindir ;;
506   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507   | --sbi=* | --sb=*)
508     sbindir=$ac_optarg ;;
509
510   -sharedstatedir | --sharedstatedir | --sharedstatedi \
511   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512   | --sharedst | --shareds | --shared | --share | --shar \
513   | --sha | --sh)
514     ac_prev=sharedstatedir ;;
515   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518   | --sha=* | --sh=*)
519     sharedstatedir=$ac_optarg ;;
520
521   -site | --site | --sit)
522     ac_prev=site ;;
523   -site=* | --site=* | --sit=*)
524     site=$ac_optarg ;;
525
526   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527     ac_prev=srcdir ;;
528   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529     srcdir=$ac_optarg ;;
530
531   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532   | --syscon | --sysco | --sysc | --sys | --sy)
533     ac_prev=sysconfdir ;;
534   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536     sysconfdir=$ac_optarg ;;
537
538   -target | --target | --targe | --targ | --tar | --ta | --t)
539     ac_prev=target_alias ;;
540   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541     target_alias=$ac_optarg ;;
542
543   -v | -verbose | --verbose | --verbos | --verbo | --verb)
544     verbose=yes ;;
545
546   -version | --version | --versio | --versi | --vers | -V)
547     ac_init_version=: ;;
548
549   -with-* | --with-*)
550     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid package name: $ac_package" >&2
554    { (exit 1); exit 1; }; }
555     ac_package=`echo $ac_package| sed 's/-/_/g'`
556     case $ac_option in
557       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558       *) ac_optarg=yes ;;
559     esac
560     eval "with_$ac_package='$ac_optarg'" ;;
561
562   -without-* | --without-*)
563     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid package name: $ac_package" >&2
567    { (exit 1); exit 1; }; }
568     ac_package=`echo $ac_package | sed 's/-/_/g'`
569     eval "with_$ac_package=no" ;;
570
571   --x)
572     # Obsolete; use --with-x.
573     with_x=yes ;;
574
575   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576   | --x-incl | --x-inc | --x-in | --x-i)
577     ac_prev=x_includes ;;
578   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580     x_includes=$ac_optarg ;;
581
582   -x-libraries | --x-libraries | --x-librarie | --x-librari \
583   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584     ac_prev=x_libraries ;;
585   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587     x_libraries=$ac_optarg ;;
588
589   -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591    { (exit 1); exit 1; }; }
592     ;;
593
594   *=*)
595     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596     # Reject names that are not valid shell variable names.
597     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599    { (exit 1); exit 1; }; }
600     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601     eval "$ac_envvar='$ac_optarg'"
602     export $ac_envvar ;;
603
604   *)
605     # FIXME: should be removed in autoconf 3.0.
606     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610     ;;
611
612   esac
613 done
614
615 if test -n "$ac_prev"; then
616   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617   { echo "$as_me: error: missing argument to $ac_option" >&2
618    { (exit 1); exit 1; }; }
619 fi
620
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
623 do
624   eval ac_val=$`echo $ac_var`
625   case $ac_val in
626     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628    { (exit 1); exit 1; }; };;
629   esac
630 done
631
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634               localstatedir libdir includedir oldincludedir infodir mandir
635 do
636   eval ac_val=$`echo $ac_var`
637   case $ac_val in
638     [\\/$]* | ?:[\\/]* ) ;;
639     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640    { (exit 1); exit 1; }; };;
641   esac
642 done
643
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
650
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653   if test "x$build_alias" = x; then
654     cross_compiling=maybe
655     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656     If a cross compiler is detected then cross compile mode will be used." >&2
657   elif test "x$build_alias" != "x$host_alias"; then
658     cross_compiling=yes
659   fi
660 fi
661
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665 test "$silent" = yes && exec 6>/dev/null
666
667
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670   ac_srcdir_defaulted=yes
671   # Try the directory containing this script, then its parent.
672   ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674          X"$0" : 'X\(//\)[^/]' \| \
675          X"$0" : 'X\(//\)$' \| \
676          X"$0" : 'X\(/\)' \| \
677          .     : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681           /^X\(\/\/\)$/{ s//\1/; q; }
682           /^X\(\/\).*/{ s//\1/; q; }
683           s/.*/./; q'`
684   srcdir=$ac_confdir
685   if test ! -r $srcdir/$ac_unique_file; then
686     srcdir=..
687   fi
688 else
689   ac_srcdir_defaulted=no
690 fi
691 if test ! -r $srcdir/$ac_unique_file; then
692   if test "$ac_srcdir_defaulted" = yes; then
693     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694    { (exit 1); exit 1; }; }
695   else
696     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697    { (exit 1); exit 1; }; }
698   fi
699 fi
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702    { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CCAS_set=${CCAS+set}
717 ac_env_CCAS_value=$CCAS
718 ac_cv_env_CCAS_set=${CCAS+set}
719 ac_cv_env_CCAS_value=$CCAS
720 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
721 ac_env_CCASFLAGS_value=$CCASFLAGS
722 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
723 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
724 ac_env_CC_set=${CC+set}
725 ac_env_CC_value=$CC
726 ac_cv_env_CC_set=${CC+set}
727 ac_cv_env_CC_value=$CC
728 ac_env_CFLAGS_set=${CFLAGS+set}
729 ac_env_CFLAGS_value=$CFLAGS
730 ac_cv_env_CFLAGS_set=${CFLAGS+set}
731 ac_cv_env_CFLAGS_value=$CFLAGS
732 ac_env_LDFLAGS_set=${LDFLAGS+set}
733 ac_env_LDFLAGS_value=$LDFLAGS
734 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
735 ac_cv_env_LDFLAGS_value=$LDFLAGS
736 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
737 ac_env_CPPFLAGS_value=$CPPFLAGS
738 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
739 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
740
741 #
742 # Report the --help message.
743 #
744 if test "$ac_init_help" = "long"; then
745   # Omit some internal or obsolete options to make the list less imposing.
746   # This message is too long to be a string in the A/UX 3.1 sh.
747   cat <<_ACEOF
748 \`configure' configures newlib 1.15.0 to adapt to many kinds of systems.
749
750 Usage: $0 [OPTION]... [VAR=VALUE]...
751
752 To assign environment variables (e.g., CC, CFLAGS...), specify them as
753 VAR=VALUE.  See below for descriptions of some of the useful variables.
754
755 Defaults for the options are specified in brackets.
756
757 Configuration:
758   -h, --help              display this help and exit
759       --help=short        display options specific to this package
760       --help=recursive    display the short help of all the included packages
761   -V, --version           display version information and exit
762   -q, --quiet, --silent   do not print \`checking...' messages
763       --cache-file=FILE   cache test results in FILE [disabled]
764   -C, --config-cache      alias for \`--cache-file=config.cache'
765   -n, --no-create         do not create output files
766       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
767
768 _ACEOF
769
770   cat <<_ACEOF
771 Installation directories:
772   --prefix=PREFIX         install architecture-independent files in PREFIX
773                           [$ac_default_prefix]
774   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
775                           [PREFIX]
776
777 By default, \`make install' will install all the files in
778 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
779 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
780 for instance \`--prefix=\$HOME'.
781
782 For better control, use the options below.
783
784 Fine tuning of the installation directories:
785   --bindir=DIR           user executables [EPREFIX/bin]
786   --sbindir=DIR          system admin executables [EPREFIX/sbin]
787   --libexecdir=DIR       program executables [EPREFIX/libexec]
788   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
789   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
790   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
791   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
792   --libdir=DIR           object code libraries [EPREFIX/lib]
793   --includedir=DIR       C header files [PREFIX/include]
794   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
795   --infodir=DIR          info documentation [PREFIX/info]
796   --mandir=DIR           man documentation [PREFIX/man]
797 _ACEOF
798
799   cat <<\_ACEOF
800
801 Program names:
802   --program-prefix=PREFIX            prepend PREFIX to installed program names
803   --program-suffix=SUFFIX            append SUFFIX to installed program names
804   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
805
806 System types:
807   --build=BUILD     configure for building on BUILD [guessed]
808   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
809 _ACEOF
810 fi
811
812 if test -n "$ac_init_help"; then
813   case $ac_init_help in
814      short | recursive ) echo "Configuration of newlib 1.15.0:";;
815    esac
816   cat <<\_ACEOF
817
818 Optional Features:
819   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
820   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
821   --enable-multilib         build many library versions (default)
822   --enable-target-optspace  optimize for space
823   --enable-malloc-debugging indicate malloc debugging requested
824   --enable-newlib-multithread        enable support for multiple threads
825   --enable-newlib-iconv     enable iconv library support
826   --enable-newlib-elix-level         supply desired elix library level (1-4)
827   --disable-newlib-io-float disable printf/scanf family float support
828   --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
829   --disable-dependency-tracking  speeds up one-time build
830   --enable-dependency-tracking   do not reject slow dependency extractors
831   --enable-maintainer-mode  enable make rules and dependencies not useful
832                           (and sometimes confusing) to the casual installer
833   --enable-shared=PKGS  build shared libraries default=yes
834   --enable-static=PKGS  build static libraries default=yes
835   --enable-fast-install=PKGS  optimize for fast installation default=yes
836   --disable-libtool-lock  avoid locking (might break parallel builds)
837
838 Optional Packages:
839   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
840   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
841   --with-gnu-ld           assume the C compiler uses GNU ld default=no
842   --with-pic              try to use only PIC/non-PIC objects default=use both
843
844 Some influential environment variables:
845   CCAS        assembler compiler command (defaults to CC)
846   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
847   CC          C compiler command
848   CFLAGS      C compiler flags
849   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
850               nonstandard directory <lib dir>
851   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
852               headers in a nonstandard directory <include dir>
853
854 Use these variables to override the choices made by `configure' or to help
855 it to find libraries and programs with nonstandard names/locations.
856
857 _ACEOF
858 fi
859
860 if test "$ac_init_help" = "recursive"; then
861   # If there are subdirs, report their specific --help.
862   ac_popdir=`pwd`
863   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864     test -d $ac_dir || continue
865     ac_builddir=.
866
867 if test "$ac_dir" != .; then
868   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869   # A "../" for each directory in $ac_dir_suffix.
870   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871 else
872   ac_dir_suffix= ac_top_builddir=
873 fi
874
875 case $srcdir in
876   .)  # No --srcdir option.  We are building in place.
877     ac_srcdir=.
878     if test -z "$ac_top_builddir"; then
879        ac_top_srcdir=.
880     else
881        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882     fi ;;
883   [\\/]* | ?:[\\/]* )  # Absolute path.
884     ac_srcdir=$srcdir$ac_dir_suffix;
885     ac_top_srcdir=$srcdir ;;
886   *) # Relative path.
887     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888     ac_top_srcdir=$ac_top_builddir$srcdir ;;
889 esac
890
891 # Do not use `cd foo && pwd` to compute absolute paths, because
892 # the directories may not exist.
893 case `pwd` in
894 .) ac_abs_builddir="$ac_dir";;
895 *)
896   case "$ac_dir" in
897   .) ac_abs_builddir=`pwd`;;
898   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
899   *) ac_abs_builddir=`pwd`/"$ac_dir";;
900   esac;;
901 esac
902 case $ac_abs_builddir in
903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
904 *)
905   case ${ac_top_builddir}. in
906   .) ac_abs_top_builddir=$ac_abs_builddir;;
907   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
908   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
909   esac;;
910 esac
911 case $ac_abs_builddir in
912 .) ac_abs_srcdir=$ac_srcdir;;
913 *)
914   case $ac_srcdir in
915   .) ac_abs_srcdir=$ac_abs_builddir;;
916   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
917   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
918   esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
922 *)
923   case $ac_top_srcdir in
924   .) ac_abs_top_srcdir=$ac_abs_builddir;;
925   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
926   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
927   esac;;
928 esac
929
930     cd $ac_dir
931     # Check for guested configure; otherwise get Cygnus style configure.
932     if test -f $ac_srcdir/configure.gnu; then
933       echo
934       $SHELL $ac_srcdir/configure.gnu  --help=recursive
935     elif test -f $ac_srcdir/configure; then
936       echo
937       $SHELL $ac_srcdir/configure  --help=recursive
938     elif test -f $ac_srcdir/configure.ac ||
939            test -f $ac_srcdir/configure.in; then
940       echo
941       $ac_configure --help
942     else
943       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944     fi
945     cd $ac_popdir
946   done
947 fi
948
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951   cat <<\_ACEOF
952 newlib configure 1.15.0
953 generated by GNU Autoconf 2.59
954
955 Copyright (C) 2003 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
958 _ACEOF
959   exit 0
960 fi
961 exec 5>config.log
962 cat >&5 <<_ACEOF
963 This file contains any messages produced by compilers while
964 running configure, to aid debugging if configure makes a mistake.
965
966 It was created by newlib $as_me 1.15.0, which was
967 generated by GNU Autoconf 2.59.  Invocation command line was
968
969   $ $0 $@
970
971 _ACEOF
972 {
973 cat <<_ASUNAME
974 ## --------- ##
975 ## Platform. ##
976 ## --------- ##
977
978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
983
984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
986
987 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
988 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
991 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
992 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
993 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
994
995 _ASUNAME
996
997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998 for as_dir in $PATH
999 do
1000   IFS=$as_save_IFS
1001   test -z "$as_dir" && as_dir=.
1002   echo "PATH: $as_dir"
1003 done
1004
1005 } >&5
1006
1007 cat >&5 <<_ACEOF
1008
1009
1010 ## ----------- ##
1011 ## Core tests. ##
1012 ## ----------- ##
1013
1014 _ACEOF
1015
1016
1017 # Keep a trace of the command line.
1018 # Strip out --no-create and --no-recursion so they do not pile up.
1019 # Strip out --silent because we don't want to record it for future runs.
1020 # Also quote any args containing shell meta-characters.
1021 # Make two passes to allow for proper duplicate-argument suppression.
1022 ac_configure_args=
1023 ac_configure_args0=
1024 ac_configure_args1=
1025 ac_sep=
1026 ac_must_keep_next=false
1027 for ac_pass in 1 2
1028 do
1029   for ac_arg
1030   do
1031     case $ac_arg in
1032     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034     | -silent | --silent | --silen | --sile | --sil)
1035       continue ;;
1036     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038     esac
1039     case $ac_pass in
1040     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1041     2)
1042       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043       if test $ac_must_keep_next = true; then
1044         ac_must_keep_next=false # Got value, back to normal.
1045       else
1046         case $ac_arg in
1047           *=* | --config-cache | -C | -disable-* | --disable-* \
1048           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050           | -with-* | --with-* | -without-* | --without-* | --x)
1051             case "$ac_configure_args0 " in
1052               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1053             esac
1054             ;;
1055           -* ) ac_must_keep_next=true ;;
1056         esac
1057       fi
1058       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059       # Get rid of the leading space.
1060       ac_sep=" "
1061       ;;
1062     esac
1063   done
1064 done
1065 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1067
1068 # When interrupted or exit'd, cleanup temporary files, and complete
1069 # config.log.  We remove comments because anyway the quotes in there
1070 # would cause problems or look ugly.
1071 # WARNING: Be sure not to use single quotes in there, as some shells,
1072 # such as our DU 5.0 friend, will then `close' the trap.
1073 trap 'exit_status=$?
1074   # Save into config.log some information that might help in debugging.
1075   {
1076     echo
1077
1078     cat <<\_ASBOX
1079 ## ---------------- ##
1080 ## Cache variables. ##
1081 ## ---------------- ##
1082 _ASBOX
1083     echo
1084     # The following way of writing the cache mishandles newlines in values,
1085 {
1086   (set) 2>&1 |
1087     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1088     *ac_space=\ *)
1089       sed -n \
1090         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1092       ;;
1093     *)
1094       sed -n \
1095         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1096       ;;
1097     esac;
1098 }
1099     echo
1100
1101     cat <<\_ASBOX
1102 ## ----------------- ##
1103 ## Output variables. ##
1104 ## ----------------- ##
1105 _ASBOX
1106     echo
1107     for ac_var in $ac_subst_vars
1108     do
1109       eval ac_val=$`echo $ac_var`
1110       echo "$ac_var='"'"'$ac_val'"'"'"
1111     done | sort
1112     echo
1113
1114     if test -n "$ac_subst_files"; then
1115       cat <<\_ASBOX
1116 ## ------------- ##
1117 ## Output files. ##
1118 ## ------------- ##
1119 _ASBOX
1120       echo
1121       for ac_var in $ac_subst_files
1122       do
1123         eval ac_val=$`echo $ac_var`
1124         echo "$ac_var='"'"'$ac_val'"'"'"
1125       done | sort
1126       echo
1127     fi
1128
1129     if test -s confdefs.h; then
1130       cat <<\_ASBOX
1131 ## ----------- ##
1132 ## confdefs.h. ##
1133 ## ----------- ##
1134 _ASBOX
1135       echo
1136       sed "/^$/d" confdefs.h | sort
1137       echo
1138     fi
1139     test "$ac_signal" != 0 &&
1140       echo "$as_me: caught signal $ac_signal"
1141     echo "$as_me: exit $exit_status"
1142   } >&5
1143   rm -f core *.core &&
1144   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1145     exit $exit_status
1146      ' 0
1147 for ac_signal in 1 2 13 15; do
1148   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1149 done
1150 ac_signal=0
1151
1152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1153 rm -rf conftest* confdefs.h
1154 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1155 echo >confdefs.h
1156
1157 # Predefined preprocessor variables.
1158
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_NAME "$PACKAGE_NAME"
1161 _ACEOF
1162
1163
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1166 _ACEOF
1167
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1171 _ACEOF
1172
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_STRING "$PACKAGE_STRING"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1181 _ACEOF
1182
1183
1184 # Let the site file select an alternate cache file if it wants to.
1185 # Prefer explicitly selected file to automatically selected ones.
1186 if test -z "$CONFIG_SITE"; then
1187   if test "x$prefix" != xNONE; then
1188     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1189   else
1190     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1191   fi
1192 fi
1193 for ac_site_file in $CONFIG_SITE; do
1194   if test -r "$ac_site_file"; then
1195     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196 echo "$as_me: loading site script $ac_site_file" >&6;}
1197     sed 's/^/| /' "$ac_site_file" >&5
1198     . "$ac_site_file"
1199   fi
1200 done
1201
1202 if test -r "$cache_file"; then
1203   # Some versions of bash will fail to source /dev/null (special
1204   # files actually), so we avoid doing that.
1205   if test -f "$cache_file"; then
1206     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207 echo "$as_me: loading cache $cache_file" >&6;}
1208     case $cache_file in
1209       [\\/]* | ?:[\\/]* ) . $cache_file;;
1210       *)                      . ./$cache_file;;
1211     esac
1212   fi
1213 else
1214   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215 echo "$as_me: creating cache $cache_file" >&6;}
1216   >$cache_file
1217 fi
1218
1219 # Check that the precious variables saved in the cache have kept the same
1220 # value.
1221 ac_cache_corrupted=false
1222 for ac_var in `(set) 2>&1 |
1223                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1224   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225   eval ac_new_set=\$ac_env_${ac_var}_set
1226   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227   eval ac_new_val="\$ac_env_${ac_var}_value"
1228   case $ac_old_set,$ac_new_set in
1229     set,)
1230       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1231 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1232       ac_cache_corrupted=: ;;
1233     ,set)
1234       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236       ac_cache_corrupted=: ;;
1237     ,);;
1238     *)
1239       if test "x$ac_old_val" != "x$ac_new_val"; then
1240         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1241 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1242         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1243 echo "$as_me:   former value:  $ac_old_val" >&2;}
1244         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1245 echo "$as_me:   current value: $ac_new_val" >&2;}
1246         ac_cache_corrupted=:
1247       fi;;
1248   esac
1249   # Pass precious variables to config.status.
1250   if test "$ac_new_set" = set; then
1251     case $ac_new_val in
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     *) ac_arg=$ac_var=$ac_new_val ;;
1255     esac
1256     case " $ac_configure_args " in
1257       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1258       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1259     esac
1260   fi
1261 done
1262 if $ac_cache_corrupted; then
1263   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1266 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267    { (exit 1); exit 1; }; }
1268 fi
1269
1270 ac_ext=c
1271 ac_cpp='$CPP $CPPFLAGS'
1272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304 ac_aux_dir=
1305 for ac_dir in ../../../.. $srcdir/../../../..; do
1306   if test -f $ac_dir/install-sh; then
1307     ac_aux_dir=$ac_dir
1308     ac_install_sh="$ac_aux_dir/install-sh -c"
1309     break
1310   elif test -f $ac_dir/install.sh; then
1311     ac_aux_dir=$ac_dir
1312     ac_install_sh="$ac_aux_dir/install.sh -c"
1313     break
1314   elif test -f $ac_dir/shtool; then
1315     ac_aux_dir=$ac_dir
1316     ac_install_sh="$ac_aux_dir/shtool install -c"
1317     break
1318   fi
1319 done
1320 if test -z "$ac_aux_dir"; then
1321   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&5
1322 echo "$as_me: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&2;}
1323    { (exit 1); exit 1; }; }
1324 fi
1325 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1326 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1327 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1328
1329
1330
1331 # Make sure we can run config.sub.
1332 $ac_config_sub sun4 >/dev/null 2>&1 ||
1333   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1334 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1335    { (exit 1); exit 1; }; }
1336
1337 echo "$as_me:$LINENO: checking build system type" >&5
1338 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1339 if test "${ac_cv_build+set}" = set; then
1340   echo $ECHO_N "(cached) $ECHO_C" >&6
1341 else
1342   ac_cv_build_alias=$build_alias
1343 test -z "$ac_cv_build_alias" &&
1344   ac_cv_build_alias=`$ac_config_guess`
1345 test -z "$ac_cv_build_alias" &&
1346   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1347 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1348    { (exit 1); exit 1; }; }
1349 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1350   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1352    { (exit 1); exit 1; }; }
1353
1354 fi
1355 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1356 echo "${ECHO_T}$ac_cv_build" >&6
1357 build=$ac_cv_build
1358 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361
1362
1363 am__api_version="1.9"
1364 # Find a good install program.  We prefer a C program (faster),
1365 # so one script is as good as another.  But avoid the broken or
1366 # incompatible versions:
1367 # SysV /etc/install, /usr/sbin/install
1368 # SunOS /usr/etc/install
1369 # IRIX /sbin/install
1370 # AIX /bin/install
1371 # AmigaOS /C/install, which installs bootblocks on floppy discs
1372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1375 # OS/2's system install, which has a completely different semantic
1376 # ./install, which can be erroneously created by make from ./install.sh.
1377 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1378 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1379 if test -z "$INSTALL"; then
1380 if test "${ac_cv_path_install+set}" = set; then
1381   echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384 for as_dir in $PATH
1385 do
1386   IFS=$as_save_IFS
1387   test -z "$as_dir" && as_dir=.
1388   # Account for people who put trailing slashes in PATH elements.
1389 case $as_dir/ in
1390   ./ | .// | /cC/* | \
1391   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1392   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1393   /usr/ucb/* ) ;;
1394   *)
1395     # OSF1 and SCO ODT 3.0 have their own names for install.
1396     # Don't use installbsd from OSF since it installs stuff as root
1397     # by default.
1398     for ac_prog in ginstall scoinst install; do
1399       for ac_exec_ext in '' $ac_executable_extensions; do
1400         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1401           if test $ac_prog = install &&
1402             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1403             # AIX install.  It has an incompatible calling convention.
1404             :
1405           elif test $ac_prog = install &&
1406             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1407             # program-specific install script used by HP pwplus--don't use.
1408             :
1409           else
1410             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1411             break 3
1412           fi
1413         fi
1414       done
1415     done
1416     ;;
1417 esac
1418 done
1419
1420
1421 fi
1422   if test "${ac_cv_path_install+set}" = set; then
1423     INSTALL=$ac_cv_path_install
1424   else
1425     # As a last resort, use the slow shell script.  We don't cache a
1426     # path for INSTALL within a source directory, because that will
1427     # break other packages using the cache if that directory is
1428     # removed, or if the path is relative.
1429     INSTALL=$ac_install_sh
1430   fi
1431 fi
1432 echo "$as_me:$LINENO: result: $INSTALL" >&5
1433 echo "${ECHO_T}$INSTALL" >&6
1434
1435 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1436 # It thinks the first close brace ends the variable substitution.
1437 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1438
1439 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1440
1441 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1442
1443 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1444 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1445 # Just in case
1446 sleep 1
1447 echo timestamp > conftest.file
1448 # Do `set' in a subshell so we don't clobber the current shell's
1449 # arguments.  Must try -L first in case configure is actually a
1450 # symlink; some systems play weird games with the mod time of symlinks
1451 # (eg FreeBSD returns the mod time of the symlink's containing
1452 # directory).
1453 if (
1454    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1455    if test "$*" = "X"; then
1456       # -L didn't work.
1457       set X `ls -t $srcdir/configure conftest.file`
1458    fi
1459    rm -f conftest.file
1460    if test "$*" != "X $srcdir/configure conftest.file" \
1461       && test "$*" != "X conftest.file $srcdir/configure"; then
1462
1463       # If neither matched, then we have a broken ls.  This can happen
1464       # if, for instance, CONFIG_SHELL is bash and it inherits a
1465       # broken ls alias from the environment.  This has actually
1466       # happened.  Such a system could not be considered "sane".
1467       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1468 alias in your environment" >&5
1469 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1470 alias in your environment" >&2;}
1471    { (exit 1); exit 1; }; }
1472    fi
1473
1474    test "$2" = conftest.file
1475    )
1476 then
1477    # Ok.
1478    :
1479 else
1480    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1481 Check your system clock" >&5
1482 echo "$as_me: error: newly created file is older than distributed files!
1483 Check your system clock" >&2;}
1484    { (exit 1); exit 1; }; }
1485 fi
1486 echo "$as_me:$LINENO: result: yes" >&5
1487 echo "${ECHO_T}yes" >&6
1488 test "$program_prefix" != NONE &&
1489   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1490 # Use a double $ so make ignores it.
1491 test "$program_suffix" != NONE &&
1492   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1493 # Double any \ or $.  echo might interpret backslashes.
1494 # By default was `s,x,x', remove it if useless.
1495 cat <<\_ACEOF >conftest.sed
1496 s/[\\$]/&&/g;s/;s,x,x,$//
1497 _ACEOF
1498 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1499 rm conftest.sed
1500
1501 # expand $ac_aux_dir to an absolute path
1502 am_aux_dir=`cd $ac_aux_dir && pwd`
1503
1504 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1505 # Use eval to expand $SHELL
1506 if eval "$MISSING --run true"; then
1507   am_missing_run="$MISSING --run "
1508 else
1509   am_missing_run=
1510   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1511 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1512 fi
1513
1514 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1515   # We used to keeping the `.' as first argument, in order to
1516   # allow $(mkdir_p) to be used without argument.  As in
1517   #   $(mkdir_p) $(somedir)
1518   # where $(somedir) is conditionally defined.  However this is wrong
1519   # for two reasons:
1520   #  1. if the package is installed by a user who cannot write `.'
1521   #     make install will fail,
1522   #  2. the above comment should most certainly read
1523   #     $(mkdir_p) $(DESTDIR)$(somedir)
1524   #     so it does not work when $(somedir) is undefined and
1525   #     $(DESTDIR) is not.
1526   #  To support the latter case, we have to write
1527   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1528   #  so the `.' trick is pointless.
1529   mkdir_p='mkdir -p --'
1530 else
1531   # On NextStep and OpenStep, the `mkdir' command does not
1532   # recognize any option.  It will interpret all options as
1533   # directories to create, and then abort because `.' already
1534   # exists.
1535   for d in ./-p ./--version;
1536   do
1537     test -d $d && rmdir $d
1538   done
1539   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1540   if test -f "$ac_aux_dir/mkinstalldirs"; then
1541     mkdir_p='$(mkinstalldirs)'
1542   else
1543     mkdir_p='$(install_sh) -d'
1544   fi
1545 fi
1546
1547 for ac_prog in gawk mawk nawk awk
1548 do
1549   # Extract the first word of "$ac_prog", so it can be a program name with args.
1550 set dummy $ac_prog; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_AWK+set}" = set; then
1554   echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556   if test -n "$AWK"; then
1557   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562   IFS=$as_save_IFS
1563   test -z "$as_dir" && as_dir=.
1564   for ac_exec_ext in '' $ac_executable_extensions; do
1565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566     ac_cv_prog_AWK="$ac_prog"
1567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568     break 2
1569   fi
1570 done
1571 done
1572
1573 fi
1574 fi
1575 AWK=$ac_cv_prog_AWK
1576 if test -n "$AWK"; then
1577   echo "$as_me:$LINENO: result: $AWK" >&5
1578 echo "${ECHO_T}$AWK" >&6
1579 else
1580   echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1582 fi
1583
1584   test -n "$AWK" && break
1585 done
1586
1587 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1588 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1589 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1590 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1591   echo $ECHO_N "(cached) $ECHO_C" >&6
1592 else
1593   cat >conftest.make <<\_ACEOF
1594 all:
1595         @echo 'ac_maketemp="$(MAKE)"'
1596 _ACEOF
1597 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1598 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1599 if test -n "$ac_maketemp"; then
1600   eval ac_cv_prog_make_${ac_make}_set=yes
1601 else
1602   eval ac_cv_prog_make_${ac_make}_set=no
1603 fi
1604 rm -f conftest.make
1605 fi
1606 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1607   echo "$as_me:$LINENO: result: yes" >&5
1608 echo "${ECHO_T}yes" >&6
1609   SET_MAKE=
1610 else
1611   echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1613   SET_MAKE="MAKE=${MAKE-make}"
1614 fi
1615
1616 rm -rf .tst 2>/dev/null
1617 mkdir .tst 2>/dev/null
1618 if test -d .tst; then
1619   am__leading_dot=.
1620 else
1621   am__leading_dot=_
1622 fi
1623 rmdir .tst 2>/dev/null
1624
1625 DEPDIR="${am__leading_dot}deps"
1626
1627           ac_config_commands="$ac_config_commands depfiles"
1628
1629
1630 am_make=${MAKE-make}
1631 cat > confinc << 'END'
1632 am__doit:
1633         @echo done
1634 .PHONY: am__doit
1635 END
1636 # If we don't find an include directive, just comment out the code.
1637 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1638 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1639 am__include="#"
1640 am__quote=
1641 _am_result=none
1642 # First try GNU make style include.
1643 echo "include confinc" > confmf
1644 # We grep out `Entering directory' and `Leaving directory'
1645 # messages which can occur if `w' ends up in MAKEFLAGS.
1646 # In particular we don't look at `^make:' because GNU make might
1647 # be invoked under some other name (usually "gmake"), in which
1648 # case it prints its new name instead of `make'.
1649 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1650    am__include=include
1651    am__quote=
1652    _am_result=GNU
1653 fi
1654 # Now try BSD make style include.
1655 if test "$am__include" = "#"; then
1656    echo '.include "confinc"' > confmf
1657    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1658       am__include=.include
1659       am__quote="\""
1660       _am_result=BSD
1661    fi
1662 fi
1663
1664
1665 echo "$as_me:$LINENO: result: $_am_result" >&5
1666 echo "${ECHO_T}$_am_result" >&6
1667 rm -f confinc confmf
1668
1669 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1670 if test "${enable_dependency_tracking+set}" = set; then
1671   enableval="$enable_dependency_tracking"
1672
1673 fi;
1674 if test "x$enable_dependency_tracking" != xno; then
1675   am_depcomp="$ac_aux_dir/depcomp"
1676   AMDEPBACKSLASH='\'
1677 fi
1678
1679
1680 if test "x$enable_dependency_tracking" != xno; then
1681   AMDEP_TRUE=
1682   AMDEP_FALSE='#'
1683 else
1684   AMDEP_TRUE='#'
1685   AMDEP_FALSE=
1686 fi
1687
1688
1689
1690
1691 # Check whether --enable-multilib or --disable-multilib was given.
1692 if test "${enable_multilib+set}" = set; then
1693   enableval="$enable_multilib"
1694   case "${enableval}" in
1695   yes) multilib=yes ;;
1696   no)  multilib=no ;;
1697   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1698 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1699    { (exit 1); exit 1; }; } ;;
1700  esac
1701 else
1702   multilib=yes
1703 fi;
1704 # Check whether --enable-target-optspace or --disable-target-optspace was given.
1705 if test "${enable_target_optspace+set}" = set; then
1706   enableval="$enable_target_optspace"
1707   case "${enableval}" in
1708   yes) target_optspace=yes ;;
1709   no)  target_optspace=no ;;
1710   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1711 echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1712    { (exit 1); exit 1; }; } ;;
1713  esac
1714 else
1715   target_optspace=
1716 fi;
1717 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1718 if test "${enable_malloc_debugging+set}" = set; then
1719   enableval="$enable_malloc_debugging"
1720   case "${enableval}" in
1721   yes) malloc_debugging=yes ;;
1722   no)  malloc_debugging=no ;;
1723   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1724 echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1725    { (exit 1); exit 1; }; } ;;
1726  esac
1727 else
1728   malloc_debugging=
1729 fi;
1730 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1731 if test "${enable_newlib_multithread+set}" = set; then
1732   enableval="$enable_newlib_multithread"
1733   case "${enableval}" in
1734   yes) newlib_multithread=yes ;;
1735   no)  newlib_multithread=no ;;
1736   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1737 echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1738    { (exit 1); exit 1; }; } ;;
1739  esac
1740 else
1741   newlib_multithread=yes
1742 fi;
1743 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1744 if test "${enable_newlib_iconv+set}" = set; then
1745   enableval="$enable_newlib_iconv"
1746   if test "${newlib_iconv+set}" != set; then
1747    case "${enableval}" in
1748      yes) newlib_iconv=yes ;;
1749      no)  newlib_iconv=no ;;
1750      *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1751 echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1752    { (exit 1); exit 1; }; } ;;
1753    esac
1754  fi
1755 else
1756   newlib_iconv=${newlib_iconv}
1757 fi;
1758 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1759 if test "${enable_newlib_elix_level+set}" = set; then
1760   enableval="$enable_newlib_elix_level"
1761   case "${enableval}" in
1762   0)   newlib_elix_level=0 ;;
1763   1)   newlib_elix_level=1 ;;
1764   2)   newlib_elix_level=2 ;;
1765   3)   newlib_elix_level=3 ;;
1766   4)   newlib_elix_level=4 ;;
1767   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1768 echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1769    { (exit 1); exit 1; }; } ;;
1770  esac
1771 else
1772   newlib_elix_level=0
1773 fi;
1774 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1775 if test "${enable_newlib_io_float+set}" = set; then
1776   enableval="$enable_newlib_io_float"
1777   case "${enableval}" in
1778   yes) newlib_io_float=yes ;;
1779   no)  newlib_io_float=no ;;
1780   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
1781 echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
1782    { (exit 1); exit 1; }; } ;;
1783  esac
1784 else
1785   newlib_io_float=yes
1786 fi;
1787 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
1788 if test "${enable_newlib_supplied_syscalls+set}" = set; then
1789   enableval="$enable_newlib_supplied_syscalls"
1790   case "${enableval}" in
1791   yes) newlib_may_supply_syscalls=yes ;;
1792   no)  newlib_may_supply_syscalls=no ;;
1793   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
1794 echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
1795    { (exit 1); exit 1; }; } ;;
1796  esac
1797 else
1798   newlib_may_supply_syscalls=yes
1799 fi;
1800
1801
1802 if test x${newlib_may_supply_syscalls} = xyes; then
1803   MAY_SUPPLY_SYSCALLS_TRUE=
1804   MAY_SUPPLY_SYSCALLS_FALSE='#'
1805 else
1806   MAY_SUPPLY_SYSCALLS_TRUE='#'
1807   MAY_SUPPLY_SYSCALLS_FALSE=
1808 fi
1809
1810
1811
1812 test -z "${with_target_subdir}" && with_target_subdir=.
1813
1814 if test "${srcdir}" = "."; then
1815   if test "${with_target_subdir}" != "."; then
1816     newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
1817   else
1818     newlib_basedir="${srcdir}/${with_multisrctop}../../.."
1819   fi
1820 else
1821   newlib_basedir="${srcdir}/../../.."
1822 fi
1823
1824
1825 echo "$as_me:$LINENO: checking host system type" >&5
1826 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1827 if test "${ac_cv_host+set}" = set; then
1828   echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830   ac_cv_host_alias=$host_alias
1831 test -z "$ac_cv_host_alias" &&
1832   ac_cv_host_alias=$ac_cv_build_alias
1833 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1834   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1835 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1836    { (exit 1); exit 1; }; }
1837
1838 fi
1839 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1840 echo "${ECHO_T}$ac_cv_host" >&6
1841 host=$ac_cv_host
1842 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1843 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1844 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1845
1846
1847
1848 # test to see if srcdir already configured
1849 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1850    test -f $srcdir/config.status; then
1851   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1852 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1853    { (exit 1); exit 1; }; }
1854 fi
1855
1856 # test whether we have cygpath
1857 if test -z "$CYGPATH_W"; then
1858   if (cygpath --version) >/dev/null 2>/dev/null; then
1859     CYGPATH_W='cygpath -w'
1860   else
1861     CYGPATH_W=echo
1862   fi
1863 fi
1864
1865
1866 # Define the identity of the package.
1867  PACKAGE='newlib'
1868  VERSION='1.15.0'
1869
1870
1871 # Some tools Automake needs.
1872
1873 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1874
1875
1876 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1877
1878
1879 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1880
1881
1882 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1883
1884
1885 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1886
1887 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1888
1889 # Installed binaries are usually stripped using `strip' when the user
1890 # run `make install-strip'.  However `strip' might not be the right
1891 # tool to use in cross-compilation environments, therefore Automake
1892 # will honor the `STRIP' environment variable to overrule this program.
1893 if test "$cross_compiling" != no; then
1894   if test -n "$ac_tool_prefix"; then
1895   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1896 set dummy ${ac_tool_prefix}strip; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_STRIP+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$STRIP"; then
1903   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 fi
1920 fi
1921 STRIP=$ac_cv_prog_STRIP
1922 if test -n "$STRIP"; then
1923   echo "$as_me:$LINENO: result: $STRIP" >&5
1924 echo "${ECHO_T}$STRIP" >&6
1925 else
1926   echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930 fi
1931 if test -z "$ac_cv_prog_STRIP"; then
1932   ac_ct_STRIP=$STRIP
1933   # Extract the first word of "strip", so it can be a program name with args.
1934 set dummy strip; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test -n "$ac_ct_STRIP"; then
1941   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948   for ac_exec_ext in '' $ac_executable_extensions; do
1949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950     ac_cv_prog_ac_ct_STRIP="strip"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956
1957   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1958 fi
1959 fi
1960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1961 if test -n "$ac_ct_STRIP"; then
1962   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1963 echo "${ECHO_T}$ac_ct_STRIP" >&6
1964 else
1965   echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969   STRIP=$ac_ct_STRIP
1970 else
1971   STRIP="$ac_cv_prog_STRIP"
1972 fi
1973
1974 fi
1975 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1976
1977 # We need awk for the "check" target.  The system "awk" is bad on
1978 # some platforms.
1979 # Always define AMTAR for backward compatibility.
1980
1981 AMTAR=${AMTAR-"${am_missing_run}tar"}
1982
1983 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1984
1985
1986
1987
1988
1989
1990 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1991 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1992 # are probably using a cross compiler, which will not be able to fully
1993 # link an executable.  This should really be fixed in autoconf
1994 # itself.
1995
1996
1997
1998
1999
2000
2001
2002 # Extract the first word of "gcc", so it can be a program name with args.
2003 set dummy gcc; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$CC"; then
2010   ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019     ac_cv_prog_CC="gcc"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037
2038 depcc="$CC"   am_compiler_list=
2039
2040 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2041 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2042 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2046   # We make a subdir and do the tests there.  Otherwise we can end up
2047   # making bogus files that we don't know about and never remove.  For
2048   # instance it was reported that on HP-UX the gcc test will end up
2049   # making a dummy file named `D' -- because `-MD' means `put the output
2050   # in D'.
2051   mkdir conftest.dir
2052   # Copy depcomp to subdir because otherwise we won't find it if we're
2053   # using a relative directory.
2054   cp "$am_depcomp" conftest.dir
2055   cd conftest.dir
2056   # We will build objects and dependencies in a subdirectory because
2057   # it helps to detect inapplicable dependency modes.  For instance
2058   # both Tru64's cc and ICC support -MD to output dependencies as a
2059   # side effect of compilation, but ICC will put the dependencies in
2060   # the current directory while Tru64 will put them in the object
2061   # directory.
2062   mkdir sub
2063
2064   am_cv_CC_dependencies_compiler_type=none
2065   if test "$am_compiler_list" = ""; then
2066      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2067   fi
2068   for depmode in $am_compiler_list; do
2069     # Setup a source with many dependencies, because some compilers
2070     # like to wrap large dependency lists on column 80 (with \), and
2071     # we should not choose a depcomp mode which is confused by this.
2072     #
2073     # We need to recreate these files for each test, as the compiler may
2074     # overwrite some of them when testing with obscure command lines.
2075     # This happens at least with the AIX C compiler.
2076     : > sub/conftest.c
2077     for i in 1 2 3 4 5 6; do
2078       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2079       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2080       # Solaris 8's {/usr,}/bin/sh.
2081       touch sub/conftst$i.h
2082     done
2083     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2084
2085     case $depmode in
2086     nosideeffect)
2087       # after this tag, mechanisms are not by side-effect, so they'll
2088       # only be used when explicitly requested
2089       if test "x$enable_dependency_tracking" = xyes; then
2090         continue
2091       else
2092         break
2093       fi
2094       ;;
2095     none) break ;;
2096     esac
2097     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2098     # mode.  It turns out that the SunPro C++ compiler does not properly
2099     # handle `-M -o', and we need to detect this.
2100     if depmode=$depmode \
2101        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2102        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2103        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2104          >/dev/null 2>conftest.err &&
2105        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2106        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2107        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2108       # icc doesn't choke on unknown options, it will just issue warnings
2109       # or remarks (even with -Werror).  So we grep stderr for any message
2110       # that says an option was ignored or not supported.
2111       # When given -MP, icc 7.0 and 7.1 complain thusly:
2112       #   icc: Command line warning: ignoring option '-M'; no argument required
2113       # The diagnosis changed in icc 8.0:
2114       #   icc: Command line remark: option '-MP' not supported
2115       if (grep 'ignoring option' conftest.err ||
2116           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2117         am_cv_CC_dependencies_compiler_type=$depmode
2118         break
2119       fi
2120     fi
2121   done
2122
2123   cd ..
2124   rm -rf conftest.dir
2125 else
2126   am_cv_CC_dependencies_compiler_type=none
2127 fi
2128
2129 fi
2130 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2131 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2132 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2133
2134
2135
2136 if
2137   test "x$enable_dependency_tracking" != xno \
2138   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2139   am__fastdepCC_TRUE=
2140   am__fastdepCC_FALSE='#'
2141 else
2142   am__fastdepCC_TRUE='#'
2143   am__fastdepCC_FALSE=
2144 fi
2145
2146
2147 if test -z "$CC"; then
2148   # Extract the first word of "cc", so it can be a program name with args.
2149 set dummy cc; ac_word=$2
2150 echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   if test -n "$CC"; then
2156   ac_cv_prog_CC="$CC" # Let the user override the test.
2157 else
2158   ac_prog_rejected=no
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2161 do
2162   IFS=$as_save_IFS
2163   test -z "$as_dir" && as_dir=.
2164   for ac_exec_ext in '' $ac_executable_extensions; do
2165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2166     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2167        ac_prog_rejected=yes
2168        continue
2169      fi
2170     ac_cv_prog_CC="cc"
2171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172     break 2
2173   fi
2174 done
2175 done
2176
2177 if test $ac_prog_rejected = yes; then
2178   # We found a bogon in the path, so make sure we never use it.
2179   set dummy $ac_cv_prog_CC
2180   shift
2181   if test $# != 0; then
2182     # We chose a different compiler from the bogus one.
2183     # However, it has the same basename, so the bogon will be chosen
2184     # first if we set CC to just the basename; use the full file name.
2185     shift
2186     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2187   fi
2188 fi
2189 fi
2190 fi
2191 CC=$ac_cv_prog_CC
2192 if test -n "$CC"; then
2193   echo "$as_me:$LINENO: result: $CC" >&5
2194 echo "${ECHO_T}$CC" >&6
2195 else
2196   echo "$as_me:$LINENO: result: no" >&5
2197 echo "${ECHO_T}no" >&6
2198 fi
2199
2200   test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2201 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2202    { (exit 1); exit 1; }; }
2203 fi
2204
2205 echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2206 echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2207 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   cat > conftest.c <<EOF
2211 #ifdef __GNUC__
2212   yes;
2213 #endif
2214 EOF
2215 if { ac_try='${CC-cc} -E conftest.c'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2221   ac_cv_c_compiler_gnu=yes
2222 else
2223   ac_cv_c_compiler_gnu=no
2224 fi
2225 fi
2226 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2227 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2228
2229 if test $ac_cv_c_compiler_gnu = yes; then
2230   GCC=yes
2231   ac_test_CFLAGS="${CFLAGS+set}"
2232   ac_save_CFLAGS="$CFLAGS"
2233   CFLAGS=
2234   ac_test_CFLAGS=${CFLAGS+set}
2235 ac_save_CFLAGS=$CFLAGS
2236 CFLAGS="-g"
2237 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2238 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2239 if test "${ac_cv_prog_cc_g+set}" = set; then
2240   echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242   cat >conftest.$ac_ext <<_ACEOF
2243 /* confdefs.h.  */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h.  */
2248
2249 int
2250 main ()
2251 {
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259   (eval $ac_compile) 2>conftest.er1
2260   ac_status=$?
2261   grep -v '^ *+' conftest.er1 >conftest.err
2262   rm -f conftest.er1
2263   cat conftest.err >&5
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); } &&
2266          { ac_try='test -z "$ac_c_werror_flag"
2267                          || test ! -s conftest.err'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; } &&
2273          { ac_try='test -s conftest.$ac_objext'
2274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275   (eval $ac_try) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; }; then
2279   ac_cv_prog_cc_g=yes
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 ac_cv_prog_cc_g=no
2285 fi
2286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287 fi
2288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2290 if test "$ac_test_CFLAGS" = set; then
2291   CFLAGS=$ac_save_CFLAGS
2292 elif test $ac_cv_prog_cc_g = yes; then
2293   if test "$GCC" = yes; then
2294     CFLAGS="-g -O2"
2295   else
2296     CFLAGS="-g"
2297   fi
2298 else
2299   if test "$GCC" = yes; then
2300     CFLAGS="-O2"
2301   else
2302     CFLAGS=
2303   fi
2304 fi
2305   if test "$ac_test_CFLAGS" = set; then
2306     CFLAGS="$ac_save_CFLAGS"
2307   elif test $ac_cv_prog_cc_g = yes; then
2308     CFLAGS="-g -O2"
2309   else
2310     CFLAGS="-O2"
2311   fi
2312 else
2313   GCC=
2314   test "${CFLAGS+set}" = set || CFLAGS="-g"
2315 fi
2316
2317
2318 if test -n "$ac_tool_prefix"; then
2319   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2320 set dummy ${ac_tool_prefix}as; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_AS+set}" = set; then
2324   echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326   if test -n "$AS"; then
2327   ac_cv_prog_AS="$AS" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332   IFS=$as_save_IFS
2333   test -z "$as_dir" && as_dir=.
2334   for ac_exec_ext in '' $ac_executable_extensions; do
2335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336     ac_cv_prog_AS="${ac_tool_prefix}as"
2337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338     break 2
2339   fi
2340 done
2341 done
2342
2343 fi
2344 fi
2345 AS=$ac_cv_prog_AS
2346 if test -n "$AS"; then
2347   echo "$as_me:$LINENO: result: $AS" >&5
2348 echo "${ECHO_T}$AS" >&6
2349 else
2350   echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2352 fi
2353
2354 fi
2355 if test -z "$ac_cv_prog_AS"; then
2356   ac_ct_AS=$AS
2357   # Extract the first word of "as", so it can be a program name with args.
2358 set dummy as; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   if test -n "$ac_ct_AS"; then
2365   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370   IFS=$as_save_IFS
2371   test -z "$as_dir" && as_dir=.
2372   for ac_exec_ext in '' $ac_executable_extensions; do
2373   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2374     ac_cv_prog_ac_ct_AS="as"
2375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376     break 2
2377   fi
2378 done
2379 done
2380
2381 fi
2382 fi
2383 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2384 if test -n "$ac_ct_AS"; then
2385   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2386 echo "${ECHO_T}$ac_ct_AS" >&6
2387 else
2388   echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2390 fi
2391
2392   AS=$ac_ct_AS
2393 else
2394   AS="$ac_cv_prog_AS"
2395 fi
2396
2397 if test -n "$ac_tool_prefix"; then
2398   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}ar; ac_word=$2
2400 echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2402 if test "${ac_cv_prog_AR+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   if test -n "$AR"; then
2406   ac_cv_prog_AR="$AR" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411   IFS=$as_save_IFS
2412   test -z "$as_dir" && as_dir=.
2413   for ac_exec_ext in '' $ac_executable_extensions; do
2414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415     ac_cv_prog_AR="${ac_tool_prefix}ar"
2416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417     break 2
2418   fi
2419 done
2420 done
2421
2422 fi
2423 fi
2424 AR=$ac_cv_prog_AR
2425 if test -n "$AR"; then
2426   echo "$as_me:$LINENO: result: $AR" >&5
2427 echo "${ECHO_T}$AR" >&6
2428 else
2429   echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2431 fi
2432
2433 fi
2434 if test -z "$ac_cv_prog_AR"; then
2435   ac_ct_AR=$AR
2436   # Extract the first word of "ar", so it can be a program name with args.
2437 set dummy ar; ac_word=$2
2438 echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2440 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   if test -n "$ac_ct_AR"; then
2444   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   for ac_exec_ext in '' $ac_executable_extensions; do
2452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453     ac_cv_prog_ac_ct_AR="ar"
2454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458 done
2459
2460 fi
2461 fi
2462 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2463 if test -n "$ac_ct_AR"; then
2464   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2465 echo "${ECHO_T}$ac_ct_AR" >&6
2466 else
2467   echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6
2469 fi
2470
2471   AR=$ac_ct_AR
2472 else
2473   AR="$ac_cv_prog_AR"
2474 fi
2475
2476 if test -n "$ac_tool_prefix"; then
2477   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2479 echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2481 if test "${ac_cv_prog_RANLIB+set}" = set; then
2482   echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484   if test -n "$RANLIB"; then
2485   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492   for ac_exec_ext in '' $ac_executable_extensions; do
2493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496     break 2
2497   fi
2498 done
2499 done
2500
2501 fi
2502 fi
2503 RANLIB=$ac_cv_prog_RANLIB
2504 if test -n "$RANLIB"; then
2505   echo "$as_me:$LINENO: result: $RANLIB" >&5
2506 echo "${ECHO_T}$RANLIB" >&6
2507 else
2508   echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2510 fi
2511
2512 fi
2513 if test -z "$ac_cv_prog_RANLIB"; then
2514   ac_ct_RANLIB=$RANLIB
2515   # Extract the first word of "ranlib", so it can be a program name with args.
2516 set dummy ranlib; ac_word=$2
2517 echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2519 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2520   echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522   if test -n "$ac_ct_RANLIB"; then
2523   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530   for ac_exec_ext in '' $ac_executable_extensions; do
2531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532     ac_cv_prog_ac_ct_RANLIB="ranlib"
2533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534     break 2
2535   fi
2536 done
2537 done
2538
2539   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2540 fi
2541 fi
2542 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2543 if test -n "$ac_ct_RANLIB"; then
2544   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2545 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2546 else
2547   echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6
2549 fi
2550
2551   RANLIB=$ac_ct_RANLIB
2552 else
2553   RANLIB="$ac_cv_prog_RANLIB"
2554 fi
2555
2556 if test -n "$ac_tool_prefix"; then
2557   # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2558 set dummy ${ac_tool_prefix}readelf; ac_word=$2
2559 echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2561 if test "${ac_cv_prog_READELF+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   if test -n "$READELF"; then
2565   ac_cv_prog_READELF="$READELF" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570   IFS=$as_save_IFS
2571   test -z "$as_dir" && as_dir=.
2572   for ac_exec_ext in '' $ac_executable_extensions; do
2573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574     ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576     break 2
2577   fi
2578 done
2579 done
2580
2581 fi
2582 fi
2583 READELF=$ac_cv_prog_READELF
2584 if test -n "$READELF"; then
2585   echo "$as_me:$LINENO: result: $READELF" >&5
2586 echo "${ECHO_T}$READELF" >&6
2587 else
2588   echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6
2590 fi
2591
2592 fi
2593 if test -z "$ac_cv_prog_READELF"; then
2594   ac_ct_READELF=$READELF
2595   # Extract the first word of "readelf", so it can be a program name with args.
2596 set dummy readelf; ac_word=$2
2597 echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2599 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2600   echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602   if test -n "$ac_ct_READELF"; then
2603   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2607 do
2608   IFS=$as_save_IFS
2609   test -z "$as_dir" && as_dir=.
2610   for ac_exec_ext in '' $ac_executable_extensions; do
2611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612     ac_cv_prog_ac_ct_READELF="readelf"
2613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614     break 2
2615   fi
2616 done
2617 done
2618
2619   test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2620 fi
2621 fi
2622 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2623 if test -n "$ac_ct_READELF"; then
2624   echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2625 echo "${ECHO_T}$ac_ct_READELF" >&6
2626 else
2627   echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2629 fi
2630
2631   READELF=$ac_ct_READELF
2632 else
2633   READELF="$ac_cv_prog_READELF"
2634 fi
2635
2636
2637 # Find a good install program.  We prefer a C program (faster),
2638 # so one script is as good as another.  But avoid the broken or
2639 # incompatible versions:
2640 # SysV /etc/install, /usr/sbin/install
2641 # SunOS /usr/etc/install
2642 # IRIX /sbin/install
2643 # AIX /bin/install
2644 # AmigaOS /C/install, which installs bootblocks on floppy discs
2645 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2646 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2647 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2648 # OS/2's system install, which has a completely different semantic
2649 # ./install, which can be erroneously created by make from ./install.sh.
2650 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2651 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2652 if test -z "$INSTALL"; then
2653 if test "${ac_cv_path_install+set}" = set; then
2654   echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661   # Account for people who put trailing slashes in PATH elements.
2662 case $as_dir/ in
2663   ./ | .// | /cC/* | \
2664   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2665   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2666   /usr/ucb/* ) ;;
2667   *)
2668     # OSF1 and SCO ODT 3.0 have their own names for install.
2669     # Don't use installbsd from OSF since it installs stuff as root
2670     # by default.
2671     for ac_prog in ginstall scoinst install; do
2672       for ac_exec_ext in '' $ac_executable_extensions; do
2673         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2674           if test $ac_prog = install &&
2675             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676             # AIX install.  It has an incompatible calling convention.
2677             :
2678           elif test $ac_prog = install &&
2679             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680             # program-specific install script used by HP pwplus--don't use.
2681             :
2682           else
2683             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2684             break 3
2685           fi
2686         fi
2687       done
2688     done
2689     ;;
2690 esac
2691 done
2692
2693
2694 fi
2695   if test "${ac_cv_path_install+set}" = set; then
2696     INSTALL=$ac_cv_path_install
2697   else
2698     # As a last resort, use the slow shell script.  We don't cache a
2699     # path for INSTALL within a source directory, because that will
2700     # break other packages using the cache if that directory is
2701     # removed, or if the path is relative.
2702     INSTALL=$ac_install_sh
2703   fi
2704 fi
2705 echo "$as_me:$LINENO: result: $INSTALL" >&5
2706 echo "${ECHO_T}$INSTALL" >&6
2707
2708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2709 # It thinks the first close brace ends the variable substitution.
2710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2711
2712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2713
2714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2715
2716
2717 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2718 ac_given_INSTALL=$INSTALL
2719
2720 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2721 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2722     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2723 if test "${enable_maintainer_mode+set}" = set; then
2724   enableval="$enable_maintainer_mode"
2725   USE_MAINTAINER_MODE=$enableval
2726 else
2727   USE_MAINTAINER_MODE=no
2728 fi;
2729   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2730 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2731
2732
2733 if test $USE_MAINTAINER_MODE = yes; then
2734   MAINTAINER_MODE_TRUE=
2735   MAINTAINER_MODE_FALSE='#'
2736 else
2737   MAINTAINER_MODE_TRUE='#'
2738   MAINTAINER_MODE_FALSE=
2739 fi
2740
2741   MAINT=$MAINTAINER_MODE_TRUE
2742
2743
2744 # By default we simply use the C compiler to build assembly code.
2745
2746 test "${CCAS+set}" = set || CCAS=$CC
2747 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2748
2749
2750
2751
2752 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2753 # at least currently, we never actually build a program, so we never
2754 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2755 # fails, because we are probably configuring with a cross compiler
2756 # which can't create executables.  So we include AC_EXEEXT to keep
2757 # automake happy, but we don't execute it, since we don't care about
2758 # the result.
2759 if false; then
2760
2761   dummy_var=1
2762 fi
2763
2764 . ${newlib_basedir}/configure.host
2765
2766 newlib_cflags="${newlib_cflags} -fno-builtin"
2767
2768 NEWLIB_CFLAGS=${newlib_cflags}
2769
2770
2771 LDFLAGS=${ldflags}
2772
2773
2774
2775
2776 if test x${newlib_elix_level} = x0; then
2777   ELIX_LEVEL_0_TRUE=
2778   ELIX_LEVEL_0_FALSE='#'
2779 else
2780   ELIX_LEVEL_0_TRUE='#'
2781   ELIX_LEVEL_0_FALSE=
2782 fi
2783
2784
2785
2786 if test x${newlib_elix_level} = x1; then
2787   ELIX_LEVEL_1_TRUE=
2788   ELIX_LEVEL_1_FALSE='#'
2789 else
2790   ELIX_LEVEL_1_TRUE='#'
2791   ELIX_LEVEL_1_FALSE=
2792 fi
2793
2794
2795
2796 if test x${newlib_elix_level} = x2; then
2797   ELIX_LEVEL_2_TRUE=
2798   ELIX_LEVEL_2_FALSE='#'
2799 else
2800   ELIX_LEVEL_2_TRUE='#'
2801   ELIX_LEVEL_2_FALSE=
2802 fi
2803
2804
2805
2806 if test x${newlib_elix_level} = x3; then
2807   ELIX_LEVEL_3_TRUE=
2808   ELIX_LEVEL_3_FALSE='#'
2809 else
2810   ELIX_LEVEL_3_TRUE='#'
2811   ELIX_LEVEL_3_FALSE=
2812 fi
2813
2814
2815
2816 if test x${newlib_elix_level} = x4; then
2817   ELIX_LEVEL_4_TRUE=
2818   ELIX_LEVEL_4_FALSE='#'
2819 else
2820   ELIX_LEVEL_4_TRUE='#'
2821   ELIX_LEVEL_4_FALSE=
2822 fi
2823
2824
2825
2826
2827 if test x${use_libtool} = xyes; then
2828   USE_LIBTOOL_TRUE=
2829   USE_LIBTOOL_FALSE='#'
2830 else
2831   USE_LIBTOOL_TRUE='#'
2832   USE_LIBTOOL_FALSE=
2833 fi
2834
2835
2836 # Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
2837 # use oext, which is set in configure.host based on the target platform.
2838 OBJEXT=${oext}
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851 if test "${use_libtool}" = "yes"; then
2852
2853 # Check whether --enable-shared or --disable-shared was given.
2854 if test "${enable_shared+set}" = set; then
2855   enableval="$enable_shared"
2856   p=${PACKAGE-default}
2857 case $enableval in
2858 yes) enable_shared=yes ;;
2859 no) enable_shared=no ;;
2860 *)
2861   enable_shared=no
2862   # Look at the argument we got.  We use all the common list separators.
2863   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2864   for pkg in $enableval; do
2865     if test "X$pkg" = "X$p"; then
2866       enable_shared=yes
2867     fi
2868   done
2869   IFS="$ac_save_ifs"
2870   ;;
2871 esac
2872 else
2873   enable_shared=yes
2874 fi;
2875 # Check whether --enable-static or --disable-static was given.
2876 if test "${enable_static+set}" = set; then
2877   enableval="$enable_static"
2878   p=${PACKAGE-default}
2879 case $enableval in
2880 yes) enable_static=yes ;;
2881 no) enable_static=no ;;
2882 *)
2883   enable_static=no
2884   # Look at the argument we got.  We use all the common list separators.
2885   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2886   for pkg in $enableval; do
2887     if test "X$pkg" = "X$p"; then
2888       enable_static=yes
2889     fi
2890   done
2891   IFS="$ac_save_ifs"
2892   ;;
2893 esac
2894 else
2895   enable_static=yes
2896 fi;
2897 # Check whether --enable-fast-install or --disable-fast-install was given.
2898 if test "${enable_fast_install+set}" = set; then
2899   enableval="$enable_fast_install"
2900   p=${PACKAGE-default}
2901 case $enableval in
2902 yes) enable_fast_install=yes ;;
2903 no) enable_fast_install=no ;;
2904 *)
2905   enable_fast_install=no
2906   # Look at the argument we got.  We use all the common list separators.
2907   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2908   for pkg in $enableval; do
2909     if test "X$pkg" = "X$p"; then
2910       enable_fast_install=yes
2911     fi
2912   done
2913   IFS="$ac_save_ifs"
2914   ;;
2915 esac
2916 else
2917   enable_fast_install=yes
2918 fi;
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 if test -n "$ac_tool_prefix"; then
2925   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2926 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2927 echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2929 if test "${ac_cv_prog_CC+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   if test -n "$CC"; then
2933   ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938   IFS=$as_save_IFS
2939   test -z "$as_dir" && as_dir=.
2940   for ac_exec_ext in '' $ac_executable_extensions; do
2941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944     break 2
2945   fi
2946 done
2947 done
2948
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953   echo "$as_me:$LINENO: result: $CC" >&5
2954 echo "${ECHO_T}$CC" >&6
2955 else
2956   echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6
2958 fi
2959
2960 fi
2961 if test -z "$ac_cv_prog_CC"; then
2962   ac_ct_CC=$CC
2963   # Extract the first word of "gcc", so it can be a program name with args.
2964 set dummy gcc; ac_word=$2
2965 echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   if test -n "$ac_ct_CC"; then
2971   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976   IFS=$as_save_IFS
2977   test -z "$as_dir" && as_dir=.
2978   for ac_exec_ext in '' $ac_executable_extensions; do
2979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980     ac_cv_prog_ac_ct_CC="gcc"
2981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982     break 2
2983   fi
2984 done
2985 done
2986
2987 fi
2988 fi
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2992 echo "${ECHO_T}$ac_ct_CC" >&6
2993 else
2994   echo "$as_me:$LINENO: result: no" >&5
2995 echo "${ECHO_T}no" >&6
2996 fi
2997
2998   CC=$ac_ct_CC
2999 else
3000   CC="$ac_cv_prog_CC"
3001 fi
3002
3003 if test -z "$CC"; then
3004   if test -n "$ac_tool_prefix"; then
3005   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3006 set dummy ${ac_tool_prefix}cc; ac_word=$2
3007 echo "$as_me:$LINENO: checking for $ac_word" >&5
3008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3009 if test "${ac_cv_prog_CC+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   if test -n "$CC"; then
3013   ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020   for ac_exec_ext in '' $ac_executable_extensions; do
3021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022     ac_cv_prog_CC="${ac_tool_prefix}cc"
3023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027 done
3028
3029 fi
3030 fi
3031 CC=$ac_cv_prog_CC
3032 if test -n "$CC"; then
3033   echo "$as_me:$LINENO: result: $CC" >&5
3034 echo "${ECHO_T}$CC" >&6
3035 else
3036   echo "$as_me:$LINENO: result: no" >&5
3037 echo "${ECHO_T}no" >&6
3038 fi
3039
3040 fi
3041 if test -z "$ac_cv_prog_CC"; then
3042   ac_ct_CC=$CC
3043   # Extract the first word of "cc", so it can be a program name with args.
3044 set dummy cc; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   if test -n "$ac_ct_CC"; then
3051   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058   for ac_exec_ext in '' $ac_executable_extensions; do
3059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060     ac_cv_prog_ac_ct_CC="cc"
3061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062     break 2
3063   fi
3064 done
3065 done
3066
3067 fi
3068 fi
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072 echo "${ECHO_T}$ac_ct_CC" >&6
3073 else
3074   echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6
3076 fi
3077
3078   CC=$ac_ct_CC
3079 else
3080   CC="$ac_cv_prog_CC"
3081 fi
3082
3083 fi
3084 if test -z "$CC"; then
3085   # Extract the first word of "cc", so it can be a program name with args.
3086 set dummy cc; ac_word=$2
3087 echo "$as_me:$LINENO: checking for $ac_word" >&5
3088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3089 if test "${ac_cv_prog_CC+set}" = set; then
3090   echo $ECHO_N "(cached) $ECHO_C" >&6
3091 else
3092   if test -n "$CC"; then
3093   ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095   ac_prog_rejected=no
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099   IFS=$as_save_IFS
3100   test -z "$as_dir" && as_dir=.
3101   for ac_exec_ext in '' $ac_executable_extensions; do
3102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3104        ac_prog_rejected=yes
3105        continue
3106      fi
3107     ac_cv_prog_CC="cc"
3108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3109     break 2
3110   fi
3111 done
3112 done
3113
3114 if test $ac_prog_rejected = yes; then
3115   # We found a bogon in the path, so make sure we never use it.
3116   set dummy $ac_cv_prog_CC
3117   shift
3118   if test $# != 0; then
3119     # We chose a different compiler from the bogus one.
3120     # However, it has the same basename, so the bogon will be chosen
3121     # first if we set CC to just the basename; use the full file name.
3122     shift
3123     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3124   fi
3125 fi
3126 fi
3127 fi
3128 CC=$ac_cv_prog_CC
3129 if test -n "$CC"; then
3130   echo "$as_me:$LINENO: result: $CC" >&5
3131 echo "${ECHO_T}$CC" >&6
3132 else
3133   echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3135 fi
3136
3137 fi
3138 if test -z "$CC"; then
3139   if test -n "$ac_tool_prefix"; then
3140   for ac_prog in cl
3141   do
3142     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3144 echo "$as_me:$LINENO: checking for $ac_word" >&5
3145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3146 if test "${ac_cv_prog_CC+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   if test -n "$CC"; then
3150   ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3154 do
3155   IFS=$as_save_IFS
3156   test -z "$as_dir" && as_dir=.
3157   for ac_exec_ext in '' $ac_executable_extensions; do
3158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161     break 2
3162   fi
3163 done
3164 done
3165
3166 fi
3167 fi
3168 CC=$ac_cv_prog_CC
3169 if test -n "$CC"; then
3170   echo "$as_me:$LINENO: result: $CC" >&5
3171 echo "${ECHO_T}$CC" >&6
3172 else
3173   echo "$as_me:$LINENO: result: no" >&5
3174 echo "${ECHO_T}no" >&6
3175 fi
3176
3177     test -n "$CC" && break
3178   done
3179 fi
3180 if test -z "$CC"; then
3181   ac_ct_CC=$CC
3182   for ac_prog in cl
3183 do
3184   # Extract the first word of "$ac_prog", so it can be a program name with args.
3185 set dummy $ac_prog; ac_word=$2
3186 echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3189   echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191   if test -n "$ac_ct_CC"; then
3192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199   for ac_exec_ext in '' $ac_executable_extensions; do
3200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201     ac_cv_prog_ac_ct_CC="$ac_prog"
3202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3203     break 2
3204   fi
3205 done
3206 done
3207
3208 fi
3209 fi
3210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211 if test -n "$ac_ct_CC"; then
3212   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3213 echo "${ECHO_T}$ac_ct_CC" >&6
3214 else
3215   echo "$as_me:$LINENO: result: no" >&5
3216 echo "${ECHO_T}no" >&6
3217 fi
3218
3219   test -n "$ac_ct_CC" && break
3220 done
3221
3222   CC=$ac_ct_CC
3223 fi
3224
3225 fi
3226
3227
3228 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: no acceptable C compiler found in \$PATH
3231 See \`config.log' for more details." >&2;}
3232    { (exit 1); exit 1; }; }
3233
3234 # Provide some information about the compiler.
3235 echo "$as_me:$LINENO:" \
3236      "checking for C compiler version" >&5
3237 ac_compiler=`set X $ac_compile; echo $2`
3238 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3239   (eval $ac_compiler --version </dev/null >&5) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }
3243 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3244   (eval $ac_compiler -v </dev/null >&5) 2>&5
3245   ac_status=$?
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); }
3248 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3249   (eval $ac_compiler -V </dev/null >&5) 2>&5
3250   ac_status=$?
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }
3253
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3260
3261 int
3262 main ()
3263 {
3264
3265   ;
3266   return 0;
3267 }
3268 _ACEOF
3269 ac_clean_files_save=$ac_clean_files
3270 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3271 # Try to create an executable without -o first, disregard a.out.
3272 # It will help us diagnose broken compilers, and finding out an intuition
3273 # of exeext.
3274 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3275 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3276 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3277 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3278   (eval $ac_link_default) 2>&5
3279   ac_status=$?
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); }; then
3282   # Find the output, starting from the most likely.  This scheme is
3283 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3284 # resort.
3285
3286 # Be careful to initialize this variable, since it used to be cached.
3287 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3288 ac_cv_exeext=
3289 # b.out is created by i960 compilers.
3290 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3291 do
3292   test -f "$ac_file" || continue
3293   case $ac_file in
3294     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3295         ;;
3296     conftest.$ac_ext )
3297         # This is the source file.
3298         ;;
3299     [ab].out )
3300         # We found the default executable, but exeext='' is most
3301         # certainly right.
3302         break;;
3303     *.* )
3304         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305         # FIXME: I believe we export ac_cv_exeext for Libtool,
3306         # but it would be cool to find out if it's true.  Does anybody
3307         # maintain Libtool? --akim.
3308         export ac_cv_exeext
3309         break;;
3310     * )
3311         break;;
3312   esac
3313 done
3314 else
3315   echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3319 See \`config.log' for more details." >&5
3320 echo "$as_me: error: C compiler cannot create executables
3321 See \`config.log' for more details." >&2;}
3322    { (exit 77); exit 77; }; }
3323 fi
3324
3325 ac_exeext=$ac_cv_exeext
3326 echo "$as_me:$LINENO: result: $ac_file" >&5
3327 echo "${ECHO_T}$ac_file" >&6
3328
3329 # Check the compiler produces executables we can run.  If not, either
3330 # the compiler is broken, or we cross compile.
3331 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3332 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3333 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3334 # If not cross compiling, check that we can run a simple program.
3335 if test "$cross_compiling" != yes; then
3336   if { ac_try='./$ac_file'
3337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338   (eval $ac_try) 2>&5
3339   ac_status=$?
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); }; }; then
3342     cross_compiling=no
3343   else
3344     if test "$cross_compiling" = maybe; then
3345         cross_compiling=yes
3346     else
3347         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3348 If you meant to cross compile, use \`--host'.
3349 See \`config.log' for more details." >&5
3350 echo "$as_me: error: cannot run C compiled programs.
3351 If you meant to cross compile, use \`--host'.
3352 See \`config.log' for more details." >&2;}
3353    { (exit 1); exit 1; }; }
3354     fi
3355   fi
3356 fi
3357 echo "$as_me:$LINENO: result: yes" >&5
3358 echo "${ECHO_T}yes" >&6
3359
3360 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3361 ac_clean_files=$ac_clean_files_save
3362 # Check the compiler produces executables we can run.  If not, either
3363 # the compiler is broken, or we cross compile.
3364 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3365 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3366 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3367 echo "${ECHO_T}$cross_compiling" >&6
3368
3369 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3370 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3372   (eval $ac_link) 2>&5
3373   ac_status=$?
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); }; then
3376   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3377 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3378 # work properly (i.e., refer to `conftest.exe'), while it won't with
3379 # `rm'.
3380 for ac_file in conftest.exe conftest conftest.*; do
3381   test -f "$ac_file" || continue
3382   case $ac_file in
3383     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3384     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385           export ac_cv_exeext
3386           break;;
3387     * ) break;;
3388   esac
3389 done
3390 else
3391   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3392 See \`config.log' for more details." >&5
3393 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3394 See \`config.log' for more details." >&2;}
3395    { (exit 1); exit 1; }; }
3396 fi
3397
3398 rm -f conftest$ac_cv_exeext
3399 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3400 echo "${ECHO_T}$ac_cv_exeext" >&6
3401
3402 rm -f conftest.$ac_ext
3403 EXEEXT=$ac_cv_exeext
3404 ac_exeext=$EXEEXT
3405 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3406 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3407 if test "${ac_cv_objext+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h.  */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h.  */
3416
3417 int
3418 main ()
3419 {
3420
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 rm -f conftest.o conftest.obj
3426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427   (eval $ac_compile) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; then
3431   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3432   case $ac_file in
3433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3434     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435        break;;
3436   esac
3437 done
3438 else
3439   echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3443 See \`config.log' for more details." >&5
3444 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details." >&2;}
3446    { (exit 1); exit 1; }; }
3447 fi
3448
3449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3450 fi
3451 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3452 echo "${ECHO_T}$ac_cv_objext" >&6
3453 OBJEXT=$ac_cv_objext
3454 ac_objext=$OBJEXT
3455 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3456 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3457 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466
3467 int
3468 main ()
3469 {
3470 #ifndef __GNUC__
3471        choke me
3472 #endif
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480   (eval $ac_compile) 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } &&
3487          { ac_try='test -z "$ac_c_werror_flag"
3488                          || test ! -s conftest.err'
3489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490   (eval $ac_try) 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); }; } &&
3494          { ac_try='test -s conftest.$ac_objext'
3495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496   (eval $ac_try) 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; }; then
3500   ac_compiler_gnu=yes
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 ac_compiler_gnu=no
3506 fi
3507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3508 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3509
3510 fi
3511 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3512 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3513 GCC=`test $ac_compiler_gnu = yes && echo yes`
3514 ac_test_CFLAGS=${CFLAGS+set}
3515 ac_save_CFLAGS=$CFLAGS
3516 CFLAGS="-g"
3517 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3518 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3519 if test "${ac_cv_prog_cc_g+set}" = set; then
3520   echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522   cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539   (eval $ac_compile) 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -z "$ac_c_werror_flag"
3547                          || test ! -s conftest.err'
3548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549   (eval $ac_try) 2>&5
3550   ac_status=$?
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); }; } &&
3553          { ac_try='test -s conftest.$ac_objext'
3554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555   (eval $ac_try) 2>&5
3556   ac_status=$?
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); }; }; then
3559   ac_cv_prog_cc_g=yes
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564 ac_cv_prog_cc_g=no
3565 fi
3566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3569 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3570 if test "$ac_test_CFLAGS" = set; then
3571   CFLAGS=$ac_save_CFLAGS
3572 elif test $ac_cv_prog_cc_g = yes; then
3573   if test "$GCC" = yes; then
3574     CFLAGS="-g -O2"
3575   else
3576     CFLAGS="-g"
3577   fi
3578 else
3579   if test "$GCC" = yes; then
3580     CFLAGS="-O2"
3581   else
3582     CFLAGS=
3583   fi
3584 fi
3585 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3586 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3587 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   ac_cv_prog_cc_stdc=no
3591 ac_save_CC=$CC
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598 #include <stdarg.h>
3599 #include <stdio.h>
3600 #include <sys/types.h>
3601 #include <sys/stat.h>
3602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3603 struct buf { int x; };
3604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3605 static char *e (p, i)
3606      char **p;
3607      int i;
3608 {
3609   return p[i];
3610 }
3611 static char *f (char * (*g) (char **, int), char **p, ...)
3612 {
3613   char *s;
3614   va_list v;
3615   va_start (v,p);
3616   s = g (p, va_arg (v,int));
3617   va_end (v);
3618   return s;
3619 }
3620
3621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3622    function prototypes and stuff, but not '\xHH' hex character constants.
3623    These don't provoke an error unfortunately, instead are silently treated
3624    as 'x'.  The following induces an error, until -std1 is added to get
3625    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3626    array size at least.  It's necessary to write '\x00'==0 to get something
3627    that's true only with -std1.  */
3628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3629
3630 int test (int i, double x);
3631 struct s1 {int (*f) (int a);};
3632 struct s2 {int (*f) (double a);};
3633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3634 int argc;
3635 char **argv;
3636 int
3637 main ()
3638 {
3639 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 # Don't try gcc -ansi; that turns off useful extensions and
3645 # breaks some systems' header files.
3646 # AIX                   -qlanglvl=ansi
3647 # Ultrix and OSF/1      -std1
3648 # HP-UX 10.20 and later -Ae
3649 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3650 # SVR4                  -Xc -D__EXTENSIONS__
3651 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3652 do
3653   CC="$ac_save_CC $ac_arg"
3654   rm -f conftest.$ac_objext
3655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3656   (eval $ac_compile) 2>conftest.er1
3657   ac_status=$?
3658   grep -v '^ *+' conftest.er1 >conftest.err
3659   rm -f conftest.er1
3660   cat conftest.err >&5
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); } &&
3663          { ac_try='test -z "$ac_c_werror_flag"
3664                          || test ! -s conftest.err'
3665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666   (eval $ac_try) 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); }; } &&
3670          { ac_try='test -s conftest.$ac_objext'
3671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672   (eval $ac_try) 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; }; then
3676   ac_cv_prog_cc_stdc=$ac_arg
3677 break
3678 else
3679   echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 fi
3683 rm -f conftest.err conftest.$ac_objext
3684 done
3685 rm -f conftest.$ac_ext conftest.$ac_objext
3686 CC=$ac_save_CC
3687
3688 fi
3689
3690 case "x$ac_cv_prog_cc_stdc" in
3691   x|xno)
3692     echo "$as_me:$LINENO: result: none needed" >&5
3693 echo "${ECHO_T}none needed" >&6 ;;
3694   *)
3695     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3696 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3697     CC="$CC $ac_cv_prog_cc_stdc" ;;
3698 esac
3699
3700 # Some people use a C++ compiler to compile C.  Since we use `exit',
3701 # in C++ we need to declare it.  In case someone uses the same compiler
3702 # for both compiling C and C++ we need to have the C++ compiler decide
3703 # the declaration of exit, since it's the most demanding environment.
3704 cat >conftest.$ac_ext <<_ACEOF
3705 #ifndef __cplusplus
3706   choke me
3707 #endif
3708 _ACEOF
3709 rm -f conftest.$ac_objext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711   (eval $ac_compile) 2>conftest.er1
3712   ac_status=$?
3713   grep -v '^ *+' conftest.er1 >conftest.err
3714   rm -f conftest.er1
3715   cat conftest.err >&5
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } &&
3718          { ac_try='test -z "$ac_c_werror_flag"
3719                          || test ! -s conftest.err'
3720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721   (eval $ac_try) 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }; } &&
3725          { ac_try='test -s conftest.$ac_objext'
3726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727   (eval $ac_try) 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); }; }; then
3731   for ac_declaration in \
3732    '' \
3733    'extern "C" void std::exit (int) throw (); using std::exit;' \
3734    'extern "C" void std::exit (int); using std::exit;' \
3735    'extern "C" void exit (int) throw ();' \
3736    'extern "C" void exit (int);' \
3737    'void exit (int);'
3738 do
3739   cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h.  */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h.  */
3745 $ac_declaration
3746 #include <stdlib.h>
3747 int
3748 main ()
3749 {
3750 exit (42);
3751   ;
3752   return 0;
3753 }
3754 _ACEOF
3755 rm -f conftest.$ac_objext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757   (eval $ac_compile) 2>conftest.er1
3758   ac_status=$?
3759   grep -v '^ *+' conftest.er1 >conftest.err
3760   rm -f conftest.er1
3761   cat conftest.err >&5
3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763   (exit $ac_status); } &&
3764          { ac_try='test -z "$ac_c_werror_flag"
3765                          || test ! -s conftest.err'
3766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767   (eval $ac_try) 2>&5
3768   ac_status=$?
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); }; } &&
3771          { ac_try='test -s conftest.$ac_objext'
3772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773   (eval $ac_try) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }; }; then
3777   :
3778 else
3779   echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782 continue
3783 fi
3784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3785   cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h.  */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h.  */
3791 $ac_declaration
3792 int
3793 main ()
3794 {
3795 exit (42);
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802   (eval $ac_compile) 2>conftest.er1
3803   ac_status=$?
3804   grep -v '^ *+' conftest.er1 >conftest.err
3805   rm -f conftest.er1
3806   cat conftest.err >&5
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); } &&
3809          { ac_try='test -z "$ac_c_werror_flag"
3810                          || test ! -s conftest.err'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; } &&
3816          { ac_try='test -s conftest.$ac_objext'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   break
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 fi
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829 done
3830 rm -f conftest*
3831 if test -n "$ac_declaration"; then
3832   echo '#ifdef __cplusplus' >>confdefs.h
3833   echo $ac_declaration      >>confdefs.h
3834   echo '#endif'             >>confdefs.h
3835 fi
3836
3837 else
3838   echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841 fi
3842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3843 ac_ext=c
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848
3849 depcc="$CC"   am_compiler_list=
3850
3851 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3852 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3853 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3857   # We make a subdir and do the tests there.  Otherwise we can end up
3858   # making bogus files that we don't know about and never remove.  For
3859   # instance it was reported that on HP-UX the gcc test will end up
3860   # making a dummy file named `D' -- because `-MD' means `put the output
3861   # in D'.
3862   mkdir conftest.dir
3863   # Copy depcomp to subdir because otherwise we won't find it if we're
3864   # using a relative directory.
3865   cp "$am_depcomp" conftest.dir
3866   cd conftest.dir
3867   # We will build objects and dependencies in a subdirectory because
3868   # it helps to detect inapplicable dependency modes.  For instance
3869   # both Tru64's cc and ICC support -MD to output dependencies as a
3870   # side effect of compilation, but ICC will put the dependencies in
3871   # the current directory while Tru64 will put them in the object
3872   # directory.
3873   mkdir sub
3874
3875   am_cv_CC_dependencies_compiler_type=none
3876   if test "$am_compiler_list" = ""; then
3877      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3878   fi
3879   for depmode in $am_compiler_list; do
3880     # Setup a source with many dependencies, because some compilers
3881     # like to wrap large dependency lists on column 80 (with \), and
3882     # we should not choose a depcomp mode which is confused by this.
3883     #
3884     # We need to recreate these files for each test, as the compiler may
3885     # overwrite some of them when testing with obscure command lines.
3886     # This happens at least with the AIX C compiler.
3887     : > sub/conftest.c
3888     for i in 1 2 3 4 5 6; do
3889       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3890       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3891       # Solaris 8's {/usr,}/bin/sh.
3892       touch sub/conftst$i.h
3893     done
3894     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3895
3896     case $depmode in
3897     nosideeffect)
3898       # after this tag, mechanisms are not by side-effect, so they'll
3899       # only be used when explicitly requested
3900       if test "x$enable_dependency_tracking" = xyes; then
3901         continue
3902       else
3903         break
3904       fi
3905       ;;
3906     none) break ;;
3907     esac
3908     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3909     # mode.  It turns out that the SunPro C++ compiler does not properly
3910     # handle `-M -o', and we need to detect this.
3911     if depmode=$depmode \
3912        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3913        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3914        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3915          >/dev/null 2>conftest.err &&
3916        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3917        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3918        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3919       # icc doesn't choke on unknown options, it will just issue warnings
3920       # or remarks (even with -Werror).  So we grep stderr for any message
3921       # that says an option was ignored or not supported.
3922       # When given -MP, icc 7.0 and 7.1 complain thusly:
3923       #   icc: Command line warning: ignoring option '-M'; no argument required
3924       # The diagnosis changed in icc 8.0:
3925       #   icc: Command line remark: option '-MP' not supported
3926       if (grep 'ignoring option' conftest.err ||
3927           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3928         am_cv_CC_dependencies_compiler_type=$depmode
3929         break
3930       fi
3931     fi
3932   done
3933
3934   cd ..
3935   rm -rf conftest.dir
3936 else
3937   am_cv_CC_dependencies_compiler_type=none
3938 fi
3939
3940 fi
3941 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3942 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3943 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3944
3945
3946
3947 if
3948   test "x$enable_dependency_tracking" != xno \
3949   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3950   am__fastdepCC_TRUE=
3951   am__fastdepCC_FALSE='#'
3952 else
3953   am__fastdepCC_TRUE='#'
3954   am__fastdepCC_FALSE=
3955 fi
3956
3957
3958
3959 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3960 if test "${with_gnu_ld+set}" = set; then
3961   withval="$with_gnu_ld"
3962   test "$withval" = no || with_gnu_ld=yes
3963 else
3964   with_gnu_ld=no
3965 fi;
3966 ac_prog=ld
3967 if test "$GCC" = yes; then
3968   # Check if gcc -print-prog-name=ld gives a path.
3969   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3970 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3971   case $host in
3972   *-*-mingw*)
3973     # gcc leaves a trailing carriage return which upsets mingw
3974     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3975   *)
3976     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3977   esac
3978   case $ac_prog in
3979     # Accept absolute paths.
3980     [\\/]* | [A-Za-z]:[\\/]*)
3981       re_direlt='/[^/][^/]*/\.\./'
3982       # Canonicalize the path of ld
3983       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3984       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3985         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3986       done
3987       test -z "$LD" && LD="$ac_prog"
3988       ;;
3989   "")
3990     # If it fails, then pretend we aren't using GCC.
3991     ac_prog=ld
3992     ;;
3993   *)
3994     # If it is relative, then search for the first ld in PATH.
3995     with_gnu_ld=unknown
3996     ;;
3997   esac
3998 elif test "$with_gnu_ld" = yes; then
3999   echo "$as_me:$LINENO: checking for GNU ld" >&5
4000 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4001 else
4002   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4003 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4004 fi
4005 if test "${lt_cv_path_LD+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   if test -z "$LD"; then
4009   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4010   for ac_dir in $PATH; do
4011     test -z "$ac_dir" && ac_dir=.
4012     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4013       lt_cv_path_LD="$ac_dir/$ac_prog"
4014       # Check to see if the program is GNU ld.  I'd rather use --version,
4015       # but apparently some GNU ld's only accept -v.
4016       # Break only if it was the GNU/non-GNU ld that we prefer.
4017       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4018         test "$with_gnu_ld" != no && break
4019       else
4020         test "$with_gnu_ld" != yes && break
4021       fi
4022     fi
4023   done
4024   IFS="$ac_save_ifs"
4025 else
4026   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4027 fi
4028 fi
4029
4030 LD="$lt_cv_path_LD"
4031 if test -n "$LD"; then
4032   echo "$as_me:$LINENO: result: $LD" >&5
4033 echo "${ECHO_T}$LD" >&6
4034 else
4035   echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4037 fi
4038 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4039 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4040    { (exit 1); exit 1; }; }
4041 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4042 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4043 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4047 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4048   lt_cv_prog_gnu_ld=yes
4049 else
4050   lt_cv_prog_gnu_ld=no
4051 fi
4052 fi
4053 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4054 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4055 with_gnu_ld=$lt_cv_prog_gnu_ld
4056
4057
4058 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4059 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4060 if test "${lt_cv_ld_reload_flag+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   lt_cv_ld_reload_flag='-r'
4064 fi
4065 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4066 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4067 reload_flag=$lt_cv_ld_reload_flag
4068 test -n "$reload_flag" && reload_flag=" $reload_flag"
4069
4070 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4071 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4072 if test "${lt_cv_path_NM+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   if test -n "$NM"; then
4076   # Let the user override the test.
4077   lt_cv_path_NM="$NM"
4078 else
4079   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4080   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4081     test -z "$ac_dir" && ac_dir=.
4082     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4083     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4084       # Check to see if the nm accepts a BSD-compat flag.
4085       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4086       #   nm: unknown option "B" ignored
4087       # Tru64's nm complains that /dev/null is an invalid object file
4088       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4089         lt_cv_path_NM="$tmp_nm -B"
4090         break
4091       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4092         lt_cv_path_NM="$tmp_nm -p"
4093         break
4094       else
4095         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4096         continue # so that we can try to find one that supports BSD flags
4097       fi
4098     fi
4099   done
4100   IFS="$ac_save_ifs"
4101   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4102 fi
4103 fi
4104
4105 NM="$lt_cv_path_NM"
4106 echo "$as_me:$LINENO: result: $NM" >&5
4107 echo "${ECHO_T}$NM" >&6
4108
4109 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4110 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4111 LN_S=$as_ln_s
4112 if test "$LN_S" = "ln -s"; then
4113   echo "$as_me:$LINENO: result: yes" >&5
4114 echo "${ECHO_T}yes" >&6
4115 else
4116   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4117 echo "${ECHO_T}no, using $LN_S" >&6
4118 fi
4119
4120 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4121 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4122 if test "${lt_cv_deplibs_check_method+set}" = set; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125   lt_cv_file_magic_cmd='$MAGIC_CMD'
4126 lt_cv_file_magic_test_file=
4127 lt_cv_deplibs_check_method='unknown'
4128 # Need to set the preceding variable on all platforms that support
4129 # interlibrary dependencies.
4130 # 'none' -- dependencies not supported.
4131 # `unknown' -- same as none, but documents that we really don't know.
4132 # 'pass_all' -- all dependencies passed with no checks.
4133 # 'test_compile' -- check by making test program.
4134 # 'file_magic [regex]' -- check by looking for files in library path
4135 # which responds to the $file_magic_cmd with a given egrep regex.
4136 # If you have `file' or equivalent on your system and you're not sure
4137 # whether `pass_all' will *always* work, you probably want this one.
4138
4139 case $host_os in
4140 aix*)
4141   lt_cv_deplibs_check_method=pass_all
4142   ;;
4143
4144 beos*)
4145   lt_cv_deplibs_check_method=pass_all
4146   ;;
4147
4148 bsdi4*)
4149   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4150   lt_cv_file_magic_cmd='/usr/bin/file -L'
4151   lt_cv_file_magic_test_file=/shlib/libc.so
4152   ;;
4153
4154 cygwin* | mingw* |pw32*)
4155   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4156   lt_cv_file_magic_cmd='$OBJDUMP -f'
4157   ;;
4158
4159 darwin* | rhapsody*)
4160   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4161   lt_cv_file_magic_cmd='/usr/bin/file -L'
4162   case "$host_os" in
4163   rhapsody* | darwin1.012)
4164     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4165     ;;
4166   *) # Darwin 1.3 on
4167     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4168     ;;
4169   esac
4170   ;;
4171
4172 freebsd* )
4173   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4174     case $host_cpu in
4175     i*86 )
4176       # Not sure whether the presence of OpenBSD here was a mistake.
4177       # Let's accept both of them until this is cleared up.
4178       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4179       lt_cv_file_magic_cmd=/usr/bin/file
4180       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4181       ;;
4182     esac
4183   else
4184     lt_cv_deplibs_check_method=pass_all
4185   fi
4186   ;;
4187
4188 gnu*)
4189   lt_cv_deplibs_check_method=pass_all
4190   ;;
4191
4192 hpux10.20*|hpux11*)
4193   case $host_cpu in
4194   hppa*)
4195     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4196     lt_cv_file_magic_cmd=/usr/bin/file
4197     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4198     ;;
4199   ia64*)
4200     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4201     lt_cv_file_magic_cmd=/usr/bin/file
4202     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4203     ;;
4204   esac
4205   ;;
4206
4207 irix5* | irix6*)
4208   case $host_os in
4209   irix5*)
4210     # this will be overridden with pass_all, but let us keep it just in case
4211     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4212     ;;
4213   *)
4214     case $LD in
4215     *-32|*"-32 ") libmagic=32-bit;;
4216     *-n32|*"-n32 ") libmagic=N32;;
4217     *-64|*"-64 ") libmagic=64-bit;;
4218     *) libmagic=never-match;;
4219     esac
4220     # this will be overridden with pass_all, but let us keep it just in case
4221     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4222     ;;
4223   esac
4224   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4225   lt_cv_deplibs_check_method=pass_all
4226   ;;
4227
4228 # This must be Linux ELF.
4229 linux-gnu*|linux-newlib*)
4230   case $host_cpu in
4231   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4232     lt_cv_deplibs_check_method=pass_all ;;
4233   *)
4234     # glibc up to 2.1.1 does not perform some relocations on ARM
4235     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4236   esac
4237   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4238   ;;
4239
4240 netbsd*)
4241   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4242     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4243   else
4244     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4245   fi
4246   ;;
4247
4248 newsos6)
4249   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4250   lt_cv_file_magic_cmd=/usr/bin/file
4251   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4252   ;;
4253
4254 osf3* | osf4* | osf5*)
4255   # this will be overridden with pass_all, but let us keep it just in case
4256   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4257   lt_cv_file_magic_test_file=/shlib/libc.so
4258   lt_cv_deplibs_check_method=pass_all
4259   ;;
4260
4261 sco3.2v5*)
4262   lt_cv_deplibs_check_method=pass_all
4263   ;;
4264
4265 solaris*)
4266   lt_cv_deplibs_check_method=pass_all
4267   lt_cv_file_magic_test_file=/lib/libc.so
4268   ;;
4269
4270 sysv5uw[78]* | sysv4*uw2*)
4271   lt_cv_deplibs_check_method=pass_all
4272   ;;
4273
4274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4275   case $host_vendor in
4276   ncr)
4277     lt_cv_deplibs_check_method=pass_all
4278     ;;
4279   motorola)
4280     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4281     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4282     ;;
4283   esac
4284   ;;
4285 esac
4286
4287 fi
4288 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4289 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4290 file_magic_cmd=$lt_cv_file_magic_cmd
4291 deplibs_check_method=$lt_cv_deplibs_check_method
4292
4293
4294
4295
4296 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4297
4298 # Only perform the check for file, if the check method requires it
4299 case $deplibs_check_method in
4300 file_magic*)
4301   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4302     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4303 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4304 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   case $MAGIC_CMD in
4308   /*)
4309   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4310   ;;
4311   ?:/*)
4312   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4313   ;;
4314   *)
4315   ac_save_MAGIC_CMD="$MAGIC_CMD"
4316   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4317   ac_dummy="/usr/bin:$PATH"
4318   for ac_dir in $ac_dummy; do
4319     test -z "$ac_dir" && ac_dir=.
4320     if test -f $ac_dir/${ac_tool_prefix}file; then
4321       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4322       if test -n "$file_magic_test_file"; then
4323         case $deplibs_check_method in
4324         "file_magic "*)
4325           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4326           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4327           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4328             egrep "$file_magic_regex" > /dev/null; then
4329             :
4330           else
4331             cat <<EOF 1>&2
4332
4333 *** Warning: the command libtool uses to detect shared libraries,
4334 *** $file_magic_cmd, produces output that libtool cannot recognize.
4335 *** The result is that libtool may fail to recognize shared libraries
4336 *** as such.  This will affect the creation of libtool libraries that
4337 *** depend on shared libraries, but programs linked with such libtool
4338 *** libraries will work regardless of this problem.  Nevertheless, you
4339 *** may want to report the problem to your system manager and/or to
4340 *** bug-libtool@gnu.org
4341
4342 EOF
4343           fi ;;
4344         esac
4345       fi
4346       break
4347     fi
4348   done
4349   IFS="$ac_save_ifs"
4350   MAGIC_CMD="$ac_save_MAGIC_CMD"
4351   ;;
4352 esac
4353 fi
4354
4355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4356 if test -n "$MAGIC_CMD"; then
4357   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4358 echo "${ECHO_T}$MAGIC_CMD" >&6
4359 else
4360   echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6
4362 fi
4363
4364 if test -z "$lt_cv_path_MAGIC_CMD"; then
4365   if test -n "$ac_tool_prefix"; then
4366     echo "$as_me:$LINENO: checking for file" >&5
4367 echo $ECHO_N "checking for file... $ECHO_C" >&6
4368 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   case $MAGIC_CMD in
4372   /*)
4373   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4374   ;;
4375   ?:/*)
4376   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4377   ;;
4378   *)
4379   ac_save_MAGIC_CMD="$MAGIC_CMD"
4380   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4381   ac_dummy="/usr/bin:$PATH"
4382   for ac_dir in $ac_dummy; do
4383     test -z "$ac_dir" && ac_dir=.
4384     if test -f $ac_dir/file; then
4385       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4386       if test -n "$file_magic_test_file"; then
4387         case $deplibs_check_method in
4388         "file_magic "*)
4389           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4390           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4391           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4392             egrep "$file_magic_regex" > /dev/null; then
4393             :
4394           else
4395             cat <<EOF 1>&2
4396
4397 *** Warning: the command libtool uses to detect shared libraries,
4398 *** $file_magic_cmd, produces output that libtool cannot recognize.
4399 *** The result is that libtool may fail to recognize shared libraries
4400 *** as such.  This will affect the creation of libtool libraries that
4401 *** depend on shared libraries, but programs linked with such libtool
4402 *** libraries will work regardless of this problem.  Nevertheless, you
4403 *** may want to report the problem to your system manager and/or to
4404 *** bug-libtool@gnu.org
4405
4406 EOF
4407           fi ;;
4408         esac
4409       fi
4410       break
4411     fi
4412   done
4413   IFS="$ac_save_ifs"
4414   MAGIC_CMD="$ac_save_MAGIC_CMD"
4415   ;;
4416 esac
4417 fi
4418
4419 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4420 if test -n "$MAGIC_CMD"; then
4421   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4422 echo "${ECHO_T}$MAGIC_CMD" >&6
4423 else
4424   echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426 fi
4427
4428   else
4429     MAGIC_CMD=:
4430   fi
4431 fi
4432
4433   fi
4434   ;;
4435 esac
4436
4437 if test -n "$ac_tool_prefix"; then
4438   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4440 echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442 if test "${ac_cv_prog_RANLIB+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   if test -n "$RANLIB"; then
4446   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453   for ac_exec_ext in '' $ac_executable_extensions; do
4454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460 done
4461
4462 fi
4463 fi
4464 RANLIB=$ac_cv_prog_RANLIB
4465 if test -n "$RANLIB"; then
4466   echo "$as_me:$LINENO: result: $RANLIB" >&5
4467 echo "${ECHO_T}$RANLIB" >&6
4468 else
4469   echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6
4471 fi
4472
4473 fi
4474 if test -z "$ac_cv_prog_RANLIB"; then
4475   ac_ct_RANLIB=$RANLIB
4476   # Extract the first word of "ranlib", so it can be a program name with args.
4477 set dummy ranlib; ac_word=$2
4478 echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   if test -n "$ac_ct_RANLIB"; then
4484   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493     ac_cv_prog_ac_ct_RANLIB="ranlib"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499
4500   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4501 fi
4502 fi
4503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4504 if test -n "$ac_ct_RANLIB"; then
4505   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4506 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4507 else
4508   echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512   RANLIB=$ac_ct_RANLIB
4513 else
4514   RANLIB="$ac_cv_prog_RANLIB"
4515 fi
4516
4517 if test -n "$ac_tool_prefix"; then
4518   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}strip; ac_word=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_prog_STRIP+set}" = set; then
4523   echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525   if test -n "$STRIP"; then
4526   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533   for ac_exec_ext in '' $ac_executable_extensions; do
4534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537     break 2
4538   fi
4539 done
4540 done
4541
4542 fi
4543 fi
4544 STRIP=$ac_cv_prog_STRIP
4545 if test -n "$STRIP"; then
4546   echo "$as_me:$LINENO: result: $STRIP" >&5
4547 echo "${ECHO_T}$STRIP" >&6
4548 else
4549   echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4551 fi
4552
4553 fi
4554 if test -z "$ac_cv_prog_STRIP"; then
4555   ac_ct_STRIP=$STRIP
4556   # Extract the first word of "strip", so it can be a program name with args.
4557 set dummy strip; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$ac_ct_STRIP"; then
4564   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573     ac_cv_prog_ac_ct_STRIP="strip"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579
4580   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4581 fi
4582 fi
4583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4584 if test -n "$ac_ct_STRIP"; then
4585   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4586 echo "${ECHO_T}$ac_ct_STRIP" >&6
4587 else
4588   echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4590 fi
4591
4592   STRIP=$ac_ct_STRIP
4593 else
4594   STRIP="$ac_cv_prog_STRIP"
4595 fi
4596
4597
4598 # Check for any special flags to pass to ltconfig.
4599 libtool_flags="--cache-file=$cache_file"
4600 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4601 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4602 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4603 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4604 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4605
4606
4607 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4608 if test "${enable_libtool_lock+set}" = set; then
4609   enableval="$enable_libtool_lock"
4610
4611 fi;
4612 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4613 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4614
4615
4616 # Check whether --with-pic or --without-pic was given.
4617 if test "${with_pic+set}" = set; then
4618   withval="$with_pic"
4619   pic_mode="$withval"
4620 else
4621   pic_mode=default
4622 fi;
4623 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4624 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4625
4626 # Some flags need to be propagated to the compiler or linker for good
4627 # libtool support.
4628 case $host in
4629 *-*-irix6*)
4630   # Find out which ABI we are using.
4631   echo '#line 4631 "configure"' > conftest.$ac_ext
4632   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633   (eval $ac_compile) 2>&5
4634   ac_status=$?
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); }; then
4637     case `/usr/bin/file conftest.$ac_objext` in
4638     *32-bit*)
4639       LD="${LD-ld} -32"
4640       ;;
4641     *N32*)
4642       LD="${LD-ld} -n32"
4643       ;;
4644     *64-bit*)
4645       LD="${LD-ld} -64"
4646       ;;
4647     esac
4648   fi
4649   rm -rf conftest*
4650   ;;
4651
4652 ia64-*-hpux*)
4653   # Find out which ABI we are using.
4654   echo 'int i;' > conftest.$ac_ext
4655   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656   (eval $ac_compile) 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }; then
4660     case "`/usr/bin/file conftest.o`" in
4661     *ELF-32*)
4662       HPUX_IA64_MODE="32"
4663       ;;
4664     *ELF-64*)
4665       HPUX_IA64_MODE="64"
4666       ;;
4667     esac
4668   fi
4669   rm -rf conftest*
4670   ;;
4671
4672 *-*-sco3.2v5*)
4673   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4674   SAVE_CFLAGS="$CFLAGS"
4675   CFLAGS="$CFLAGS -belf"
4676   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4677 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4678 if test "${lt_cv_cc_needs_belf+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681
4682
4683      ac_ext=c
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689      cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h.  */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h.  */
4695
4696 int
4697 main ()
4698 {
4699
4700   ;
4701   return 0;
4702 }
4703 _ACEOF
4704 rm -f conftest.$ac_objext conftest$ac_exeext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706   (eval $ac_link) 2>conftest.er1
4707   ac_status=$?
4708   grep -v '^ *+' conftest.er1 >conftest.err
4709   rm -f conftest.er1
4710   cat conftest.err >&5
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); } &&
4713          { ac_try='test -z "$ac_c_werror_flag"
4714                          || test ! -s conftest.err'
4715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716   (eval $ac_try) 2>&5
4717   ac_status=$?
4718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); }; } &&
4720          { ac_try='test -s conftest$ac_exeext'
4721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722   (eval $ac_try) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); }; }; then
4726   lt_cv_cc_needs_belf=yes
4727 else
4728   echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4730
4731 lt_cv_cc_needs_belf=no
4732 fi
4733 rm -f conftest.err conftest.$ac_objext \
4734       conftest$ac_exeext conftest.$ac_ext
4735      ac_ext=c
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740
4741 fi
4742 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4743 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4744   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4745     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4746     CFLAGS="$SAVE_CFLAGS"
4747   fi
4748   ;;
4749
4750
4751 esac
4752
4753
4754 # Save cache, so that ltconfig can load it
4755 cat >confcache <<\_ACEOF
4756 # This file is a shell script that caches the results of configure
4757 # tests run on this system so they can be shared between configure
4758 # scripts and configure runs, see configure's option --config-cache.
4759 # It is not useful on other systems.  If it contains results you don't
4760 # want to keep, you may remove or edit it.
4761 #
4762 # config.status only pays attention to the cache file if you give it
4763 # the --recheck option to rerun configure.
4764 #
4765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4767 # following values.
4768
4769 _ACEOF
4770
4771 # The following way of writing the cache mishandles newlines in values,
4772 # but we know of no workaround that is simple, portable, and efficient.
4773 # So, don't put newlines in cache variables' values.
4774 # Ultrix sh set writes to stderr and can't be redirected directly,
4775 # and sets the high bit in the cache file unless we assign to the vars.
4776 {
4777   (set) 2>&1 |
4778     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4779     *ac_space=\ *)
4780       # `set' does not quote correctly, so add quotes (double-quote
4781       # substitution turns \\\\ into \\, and sed turns \\ into \).
4782       sed -n \
4783         "s/'/'\\\\''/g;
4784           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4785       ;;
4786     *)
4787       # `set' quotes correctly as required by POSIX, so do not add quotes.
4788       sed -n \
4789         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4790       ;;
4791     esac;
4792 } |
4793   sed '
4794      t clear
4795      : clear
4796      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4797      t end
4798      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4799      : end' >>confcache
4800 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4801   if test -w $cache_file; then
4802     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4803     cat confcache >$cache_file
4804   else
4805     echo "not updating unwritable cache $cache_file"
4806   fi
4807 fi
4808 rm -f confcache
4809
4810 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4811 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4812 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4813 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4814 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4815 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4816 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4817 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4818 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4819 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4820 echo "$as_me: error: libtool configure failed" >&2;}
4821    { (exit 1); exit 1; }; }
4822
4823 # Reload cache, that may have been modified by ltconfig
4824 if test -r "$cache_file"; then
4825   # Some versions of bash will fail to source /dev/null (special
4826   # files actually), so we avoid doing that.
4827   if test -f "$cache_file"; then
4828     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4829 echo "$as_me: loading cache $cache_file" >&6;}
4830     case $cache_file in
4831       [\\/]* | ?:[\\/]* ) . $cache_file;;
4832       *)                      . ./$cache_file;;
4833     esac
4834   fi
4835 else
4836   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4837 echo "$as_me: creating cache $cache_file" >&6;}
4838   >$cache_file
4839 fi
4840
4841
4842 # This can be used to rebuild libtool when needed
4843 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4844
4845 # Always use our own libtool.
4846 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4847
4848 # Redirect the config.log output again, so that the ltconfig log is not
4849 # clobbered by the next message.
4850 exec 5>>./config.log
4851
4852
4853
4854
4855
4856
4857 fi
4858
4859
4860
4861 if test "x$mach_add_setjmp" = 'xtrue'; then
4862   MACH_ADD_SETJMP_TRUE=
4863   MACH_ADD_SETJMP_FALSE='#'
4864 else
4865   MACH_ADD_SETJMP_TRUE='#'
4866   MACH_ADD_SETJMP_FALSE=
4867 fi
4868
4869
4870           ac_config_files="$ac_config_files Makefile"
4871
4872 cat >confcache <<\_ACEOF
4873 # This file is a shell script that caches the results of configure
4874 # tests run on this system so they can be shared between configure
4875 # scripts and configure runs, see configure's option --config-cache.
4876 # It is not useful on other systems.  If it contains results you don't
4877 # want to keep, you may remove or edit it.
4878 #
4879 # config.status only pays attention to the cache file if you give it
4880 # the --recheck option to rerun configure.
4881 #
4882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4884 # following values.
4885
4886 _ACEOF
4887
4888 # The following way of writing the cache mishandles newlines in values,
4889 # but we know of no workaround that is simple, portable, and efficient.
4890 # So, don't put newlines in cache variables' values.
4891 # Ultrix sh set writes to stderr and can't be redirected directly,
4892 # and sets the high bit in the cache file unless we assign to the vars.
4893 {
4894   (set) 2>&1 |
4895     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4896     *ac_space=\ *)
4897       # `set' does not quote correctly, so add quotes (double-quote
4898       # substitution turns \\\\ into \\, and sed turns \\ into \).
4899       sed -n \
4900         "s/'/'\\\\''/g;
4901           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4902       ;;
4903     *)
4904       # `set' quotes correctly as required by POSIX, so do not add quotes.
4905       sed -n \
4906         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4907       ;;
4908     esac;
4909 } |
4910   sed '
4911      t clear
4912      : clear
4913      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4914      t end
4915      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4916      : end' >>confcache
4917 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4918   if test -w $cache_file; then
4919     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4920     cat confcache >$cache_file
4921   else
4922     echo "not updating unwritable cache $cache_file"
4923   fi
4924 fi
4925 rm -f confcache
4926
4927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4928 # Let make expand exec_prefix.
4929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4930
4931 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4932 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4933 # trailing colons and then remove the whole line if VPATH becomes empty
4934 # (actually we leave an empty line to preserve line numbers).
4935 if test "x$srcdir" = x.; then
4936   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4937 s/:*\$(srcdir):*/:/;
4938 s/:*\${srcdir}:*/:/;
4939 s/:*@srcdir@:*/:/;
4940 s/^\([^=]*=[     ]*\):*/\1/;
4941 s/:*$//;
4942 s/^[^=]*=[       ]*$//;
4943 }'
4944 fi
4945
4946 # Transform confdefs.h into DEFS.
4947 # Protect against shell expansion while executing Makefile rules.
4948 # Protect against Makefile macro expansion.
4949 #
4950 # If the first sed substitution is executed (which looks for macros that
4951 # take arguments), then we branch to the quote section.  Otherwise,
4952 # look for a macro that doesn't take arguments.
4953 cat >confdef2opt.sed <<\_ACEOF
4954 t clear
4955 : clear
4956 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
4957 t quote
4958 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
4959 t quote
4960 d
4961 : quote
4962 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
4963 s,\[,\\&,g
4964 s,\],\\&,g
4965 s,\$,$$,g
4966 p
4967 _ACEOF
4968 # We use echo to avoid assuming a particular line-breaking character.
4969 # The extra dot is to prevent the shell from consuming trailing
4970 # line-breaks from the sub-command output.  A line-break within
4971 # single-quotes doesn't work because, if this script is created in a
4972 # platform that uses two characters for line-breaks (e.g., DOS), tr
4973 # would break.
4974 ac_LF_and_DOT=`echo; echo .`
4975 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4976 rm -f confdef2opt.sed
4977
4978
4979 ac_libobjs=
4980 ac_ltlibobjs=
4981 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4982   # 1. Remove the extension, and $U if already installed.
4983   ac_i=`echo "$ac_i" |
4984          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4985   # 2. Add them.
4986   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4987   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4988 done
4989 LIBOBJS=$ac_libobjs
4990
4991 LTLIBOBJS=$ac_ltlibobjs
4992
4993
4994 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
4995   { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
4996 Usually this means the macro was only invoked conditionally." >&5
4997 echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
4998 Usually this means the macro was only invoked conditionally." >&2;}
4999    { (exit 1); exit 1; }; }
5000 fi
5001 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5002   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5003 Usually this means the macro was only invoked conditionally." >&5
5004 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5005 Usually this means the macro was only invoked conditionally." >&2;}
5006    { (exit 1); exit 1; }; }
5007 fi
5008 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5009   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5010 Usually this means the macro was only invoked conditionally." >&5
5011 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5012 Usually this means the macro was only invoked conditionally." >&2;}
5013    { (exit 1); exit 1; }; }
5014 fi
5015 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5016   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5017 Usually this means the macro was only invoked conditionally." >&5
5018 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5019 Usually this means the macro was only invoked conditionally." >&2;}
5020    { (exit 1); exit 1; }; }
5021 fi
5022 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
5023   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
5024 Usually this means the macro was only invoked conditionally." >&5
5025 echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
5026 Usually this means the macro was only invoked conditionally." >&2;}
5027    { (exit 1); exit 1; }; }
5028 fi
5029 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
5030   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
5031 Usually this means the macro was only invoked conditionally." >&5
5032 echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
5033 Usually this means the macro was only invoked conditionally." >&2;}
5034    { (exit 1); exit 1; }; }
5035 fi
5036 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
5037   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
5038 Usually this means the macro was only invoked conditionally." >&5
5039 echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
5040 Usually this means the macro was only invoked conditionally." >&2;}
5041    { (exit 1); exit 1; }; }
5042 fi
5043 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
5044   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
5045 Usually this means the macro was only invoked conditionally." >&5
5046 echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
5047 Usually this means the macro was only invoked conditionally." >&2;}
5048    { (exit 1); exit 1; }; }
5049 fi
5050 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
5051   { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
5052 Usually this means the macro was only invoked conditionally." >&5
5053 echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
5054 Usually this means the macro was only invoked conditionally." >&2;}
5055    { (exit 1); exit 1; }; }
5056 fi
5057 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
5058   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
5059 Usually this means the macro was only invoked conditionally." >&5
5060 echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
5061 Usually this means the macro was only invoked conditionally." >&2;}
5062    { (exit 1); exit 1; }; }
5063 fi
5064 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5065   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5066 Usually this means the macro was only invoked conditionally." >&5
5067 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5068 Usually this means the macro was only invoked conditionally." >&2;}
5069    { (exit 1); exit 1; }; }
5070 fi
5071 if test -z "${MACH_ADD_SETJMP_TRUE}" && test -z "${MACH_ADD_SETJMP_FALSE}"; then
5072   { { echo "$as_me:$LINENO: error: conditional \"MACH_ADD_SETJMP\" was never defined.
5073 Usually this means the macro was only invoked conditionally." >&5
5074 echo "$as_me: error: conditional \"MACH_ADD_SETJMP\" was never defined.
5075 Usually this means the macro was only invoked conditionally." >&2;}
5076    { (exit 1); exit 1; }; }
5077 fi
5078
5079 : ${CONFIG_STATUS=./config.status}
5080 ac_clean_files_save=$ac_clean_files
5081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5082 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5083 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5084 cat >$CONFIG_STATUS <<_ACEOF
5085 #! $SHELL
5086 # Generated by $as_me.
5087 # Run this file to recreate the current configuration.
5088 # Compiler output produced by configure, useful for debugging
5089 # configure, is in config.log if it exists.
5090
5091 debug=false
5092 ac_cs_recheck=false
5093 ac_cs_silent=false
5094 SHELL=\${CONFIG_SHELL-$SHELL}
5095 _ACEOF
5096
5097 cat >>$CONFIG_STATUS <<\_ACEOF
5098 ## --------------------- ##
5099 ## M4sh Initialization.  ##
5100 ## --------------------- ##
5101
5102 # Be Bourne compatible
5103 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5104   emulate sh
5105   NULLCMD=:
5106   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5107   # is contrary to our usage.  Disable this feature.
5108   alias -g '${1+"$@"}'='"$@"'
5109 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5110   set -o posix
5111 fi
5112 DUALCASE=1; export DUALCASE # for MKS sh
5113
5114 # Support unset when possible.
5115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5116   as_unset=unset
5117 else
5118   as_unset=false
5119 fi
5120
5121
5122 # Work around bugs in pre-3.0 UWIN ksh.
5123 $as_unset ENV MAIL MAILPATH
5124 PS1='$ '
5125 PS2='> '
5126 PS4='+ '
5127
5128 # NLS nuisances.
5129 for as_var in \
5130   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5131   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5132   LC_TELEPHONE LC_TIME
5133 do
5134   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5135     eval $as_var=C; export $as_var
5136   else
5137     $as_unset $as_var
5138   fi
5139 done
5140
5141 # Required to use basename.
5142 if expr a : '\(a\)' >/dev/null 2>&1; then
5143   as_expr=expr
5144 else
5145   as_expr=false
5146 fi
5147
5148 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5149   as_basename=basename
5150 else
5151   as_basename=false
5152 fi
5153
5154
5155 # Name of the executable.
5156 as_me=`$as_basename "$0" ||
5157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5158          X"$0" : 'X\(//\)$' \| \
5159          X"$0" : 'X\(/\)$' \| \
5160          .     : '\(.\)' 2>/dev/null ||
5161 echo X/"$0" |
5162     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5163           /^X\/\(\/\/\)$/{ s//\1/; q; }
5164           /^X\/\(\/\).*/{ s//\1/; q; }
5165           s/.*/./; q'`
5166
5167
5168 # PATH needs CR, and LINENO needs CR and PATH.
5169 # Avoid depending upon Character Ranges.
5170 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5171 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5172 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5173 as_cr_digits='0123456789'
5174 as_cr_alnum=$as_cr_Letters$as_cr_digits
5175
5176 # The user is always right.
5177 if test "${PATH_SEPARATOR+set}" != set; then
5178   echo "#! /bin/sh" >conf$$.sh
5179   echo  "exit 0"   >>conf$$.sh
5180   chmod +x conf$$.sh
5181   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5182     PATH_SEPARATOR=';'
5183   else
5184     PATH_SEPARATOR=:
5185   fi
5186   rm -f conf$$.sh
5187 fi
5188
5189
5190   as_lineno_1=$LINENO
5191   as_lineno_2=$LINENO
5192   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5193   test "x$as_lineno_1" != "x$as_lineno_2" &&
5194   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5195   # Find who we are.  Look in the path if we contain no path at all
5196   # relative or not.
5197   case $0 in
5198     *[\\/]* ) as_myself=$0 ;;
5199     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5201 do
5202   IFS=$as_save_IFS
5203   test -z "$as_dir" && as_dir=.
5204   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5205 done
5206
5207        ;;
5208   esac
5209   # We did not find ourselves, most probably we were run as `sh COMMAND'
5210   # in which case we are not to be found in the path.
5211   if test "x$as_myself" = x; then
5212     as_myself=$0
5213   fi
5214   if test ! -f "$as_myself"; then
5215     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5216 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5217    { (exit 1); exit 1; }; }
5218   fi
5219   case $CONFIG_SHELL in
5220   '')
5221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226   for as_base in sh bash ksh sh5; do
5227          case $as_dir in
5228          /*)
5229            if ("$as_dir/$as_base" -c '
5230   as_lineno_1=$LINENO
5231   as_lineno_2=$LINENO
5232   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5233   test "x$as_lineno_1" != "x$as_lineno_2" &&
5234   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5235              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5236              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5237              CONFIG_SHELL=$as_dir/$as_base
5238              export CONFIG_SHELL
5239              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5240            fi;;
5241          esac
5242        done
5243 done
5244 ;;
5245   esac
5246
5247   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5248   # uniformly replaced by the line number.  The first 'sed' inserts a
5249   # line-number line before each line; the second 'sed' does the real
5250   # work.  The second script uses 'N' to pair each line-number line
5251   # with the numbered line, and appends trailing '-' during
5252   # substitution so that $LINENO is not a special case at line end.
5253   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5254   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5255   sed '=' <$as_myself |
5256     sed '
5257       N
5258       s,$,-,
5259       : loop
5260       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5261       t loop
5262       s,-$,,
5263       s,^['$as_cr_digits']*\n,,
5264     ' >$as_me.lineno &&
5265   chmod +x $as_me.lineno ||
5266     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5267 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5268    { (exit 1); exit 1; }; }
5269
5270   # Don't try to exec as it changes $[0], causing all sort of problems
5271   # (the dirname of $[0] is not the place where we might find the
5272   # original and so on.  Autoconf is especially sensible to this).
5273   . ./$as_me.lineno
5274   # Exit status is that of the last command.
5275   exit
5276 }
5277
5278
5279 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5280   *c*,-n*) ECHO_N= ECHO_C='
5281 ' ECHO_T='      ' ;;
5282   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5283   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5284 esac
5285
5286 if expr a : '\(a\)' >/dev/null 2>&1; then
5287   as_expr=expr
5288 else
5289   as_expr=false
5290 fi
5291
5292 rm -f conf$$ conf$$.exe conf$$.file
5293 echo >conf$$.file
5294 if ln -s conf$$.file conf$$ 2>/dev/null; then
5295   # We could just check for DJGPP; but this test a) works b) is more generic
5296   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5297   if test -f conf$$.exe; then
5298     # Don't use ln at all; we don't have any links
5299     as_ln_s='cp -p'
5300   else
5301     as_ln_s='ln -s'
5302   fi
5303 elif ln conf$$.file conf$$ 2>/dev/null; then
5304   as_ln_s=ln
5305 else
5306   as_ln_s='cp -p'
5307 fi
5308 rm -f conf$$ conf$$.exe conf$$.file
5309
5310 if mkdir -p . 2>/dev/null; then
5311   as_mkdir_p=:
5312 else
5313   test -d ./-p && rmdir ./-p
5314   as_mkdir_p=false
5315 fi
5316
5317 as_executable_p="test -f"
5318
5319 # Sed expression to map a string onto a valid CPP name.
5320 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5321
5322 # Sed expression to map a string onto a valid variable name.
5323 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5324
5325
5326 # IFS
5327 # We need space, tab and new line, in precisely that order.
5328 as_nl='
5329 '
5330 IFS="   $as_nl"
5331
5332 # CDPATH.
5333 $as_unset CDPATH
5334
5335 exec 6>&1
5336
5337 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5338 # report actual input values of CONFIG_FILES etc. instead of their
5339 # values after options handling.  Logging --version etc. is OK.
5340 exec 5>>config.log
5341 {
5342   echo
5343   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5344 ## Running $as_me. ##
5345 _ASBOX
5346 } >&5
5347 cat >&5 <<_CSEOF
5348
5349 This file was extended by newlib $as_me 1.15.0, which was
5350 generated by GNU Autoconf 2.59.  Invocation command line was
5351
5352   CONFIG_FILES    = $CONFIG_FILES
5353   CONFIG_HEADERS  = $CONFIG_HEADERS
5354   CONFIG_LINKS    = $CONFIG_LINKS
5355   CONFIG_COMMANDS = $CONFIG_COMMANDS
5356   $ $0 $@
5357
5358 _CSEOF
5359 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5360 echo >&5
5361 _ACEOF
5362
5363 # Files that config.status was made for.
5364 if test -n "$ac_config_files"; then
5365   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5366 fi
5367
5368 if test -n "$ac_config_headers"; then
5369   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5370 fi
5371
5372 if test -n "$ac_config_links"; then
5373   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5374 fi
5375
5376 if test -n "$ac_config_commands"; then
5377   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5378 fi
5379
5380 cat >>$CONFIG_STATUS <<\_ACEOF
5381
5382 ac_cs_usage="\
5383 \`$as_me' instantiates files from templates according to the
5384 current configuration.
5385
5386 Usage: $0 [OPTIONS] [FILE]...
5387
5388   -h, --help       print this help, then exit
5389   -V, --version    print version number, then exit
5390   -q, --quiet      do not print progress messages
5391   -d, --debug      don't remove temporary files
5392       --recheck    update $as_me by reconfiguring in the same conditions
5393   --file=FILE[:TEMPLATE]
5394                    instantiate the configuration file FILE
5395
5396 Configuration files:
5397 $config_files
5398
5399 Configuration commands:
5400 $config_commands
5401
5402 Report bugs to <bug-autoconf@gnu.org>."
5403 _ACEOF
5404
5405 cat >>$CONFIG_STATUS <<_ACEOF
5406 ac_cs_version="\\
5407 newlib config.status 1.15.0
5408 configured by $0, generated by GNU Autoconf 2.59,
5409   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5410
5411 Copyright (C) 2003 Free Software Foundation, Inc.
5412 This config.status script is free software; the Free Software Foundation
5413 gives unlimited permission to copy, distribute and modify it."
5414 srcdir=$srcdir
5415 INSTALL="$INSTALL"
5416 _ACEOF
5417
5418 cat >>$CONFIG_STATUS <<\_ACEOF
5419 # If no file are specified by the user, then we need to provide default
5420 # value.  By we need to know if files were specified by the user.
5421 ac_need_defaults=:
5422 while test $# != 0
5423 do
5424   case $1 in
5425   --*=*)
5426     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5427     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5428     ac_shift=:
5429     ;;
5430   -*)
5431     ac_option=$1
5432     ac_optarg=$2
5433     ac_shift=shift
5434     ;;
5435   *) # This is not an option, so the user has probably given explicit
5436      # arguments.
5437      ac_option=$1
5438      ac_need_defaults=false;;
5439   esac
5440
5441   case $ac_option in
5442   # Handling of the options.
5443 _ACEOF
5444 cat >>$CONFIG_STATUS <<\_ACEOF
5445   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5446     ac_cs_recheck=: ;;
5447   --version | --vers* | -V )
5448     echo "$ac_cs_version"; exit 0 ;;
5449   --he | --h)
5450     # Conflict between --help and --header
5451     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5452 Try \`$0 --help' for more information." >&5
5453 echo "$as_me: error: ambiguous option: $1
5454 Try \`$0 --help' for more information." >&2;}
5455    { (exit 1); exit 1; }; };;
5456   --help | --hel | -h )
5457     echo "$ac_cs_usage"; exit 0 ;;
5458   --debug | --d* | -d )
5459     debug=: ;;
5460   --file | --fil | --fi | --f )
5461     $ac_shift
5462     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5463     ac_need_defaults=false;;
5464   --header | --heade | --head | --hea )
5465     $ac_shift
5466     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5467     ac_need_defaults=false;;
5468   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5469   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5470     ac_cs_silent=: ;;
5471
5472   # This is an error.
5473   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5474 Try \`$0 --help' for more information." >&5
5475 echo "$as_me: error: unrecognized option: $1
5476 Try \`$0 --help' for more information." >&2;}
5477    { (exit 1); exit 1; }; } ;;
5478
5479   *) ac_config_targets="$ac_config_targets $1" ;;
5480
5481   esac
5482   shift
5483 done
5484
5485 ac_configure_extra_args=
5486
5487 if $ac_cs_silent; then
5488   exec 6>/dev/null
5489   ac_configure_extra_args="$ac_configure_extra_args --silent"
5490 fi
5491
5492 _ACEOF
5493 cat >>$CONFIG_STATUS <<_ACEOF
5494 if \$ac_cs_recheck; then
5495   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5496   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5497 fi
5498
5499 _ACEOF
5500
5501 cat >>$CONFIG_STATUS <<_ACEOF
5502 #
5503 # INIT-COMMANDS section.
5504 #
5505
5506 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5507
5508 _ACEOF
5509
5510
5511
5512 cat >>$CONFIG_STATUS <<\_ACEOF
5513 for ac_config_target in $ac_config_targets
5514 do
5515   case "$ac_config_target" in
5516   # Handling of arguments.
5517   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5518   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5519   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5520 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5521    { (exit 1); exit 1; }; };;
5522   esac
5523 done
5524
5525 # If the user did not use the arguments to specify the items to instantiate,
5526 # then the envvar interface is used.  Set only those that are not.
5527 # We use the long form for the default assignment because of an extremely
5528 # bizarre bug on SunOS 4.1.3.
5529 if $ac_need_defaults; then
5530   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5531   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5532 fi
5533
5534 # Have a temporary directory for convenience.  Make it in the build tree
5535 # simply because there is no reason to put it here, and in addition,
5536 # creating and moving files from /tmp can sometimes cause problems.
5537 # Create a temporary directory, and hook for its removal unless debugging.
5538 $debug ||
5539 {
5540   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5541   trap '{ (exit 1); exit 1; }' 1 2 13 15
5542 }
5543
5544 # Create a (secure) tmp directory for tmp files.
5545
5546 {
5547   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5548   test -n "$tmp" && test -d "$tmp"
5549 }  ||
5550 {
5551   tmp=./confstat$$-$RANDOM
5552   (umask 077 && mkdir $tmp)
5553 } ||
5554 {
5555    echo "$me: cannot create a temporary directory in ." >&2
5556    { (exit 1); exit 1; }
5557 }
5558
5559 _ACEOF
5560
5561 cat >>$CONFIG_STATUS <<_ACEOF
5562
5563 #
5564 # CONFIG_FILES section.
5565 #
5566
5567 # No need to generate the scripts if there are no CONFIG_FILES.
5568 # This happens for instance when ./config.status config.h
5569 if test -n "\$CONFIG_FILES"; then
5570   # Protect against being on the right side of a sed subst in config.status.
5571   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5572    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5573 s,@SHELL@,$SHELL,;t t
5574 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5575 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5576 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5577 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5578 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5579 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5580 s,@exec_prefix@,$exec_prefix,;t t
5581 s,@prefix@,$prefix,;t t
5582 s,@program_transform_name@,$program_transform_name,;t t
5583 s,@bindir@,$bindir,;t t
5584 s,@sbindir@,$sbindir,;t t
5585 s,@libexecdir@,$libexecdir,;t t
5586 s,@datadir@,$datadir,;t t
5587 s,@sysconfdir@,$sysconfdir,;t t
5588 s,@sharedstatedir@,$sharedstatedir,;t t
5589 s,@localstatedir@,$localstatedir,;t t
5590 s,@libdir@,$libdir,;t t
5591 s,@includedir@,$includedir,;t t
5592 s,@oldincludedir@,$oldincludedir,;t t
5593 s,@infodir@,$infodir,;t t
5594 s,@mandir@,$mandir,;t t
5595 s,@build_alias@,$build_alias,;t t
5596 s,@host_alias@,$host_alias,;t t
5597 s,@target_alias@,$target_alias,;t t
5598 s,@DEFS@,$DEFS,;t t
5599 s,@ECHO_C@,$ECHO_C,;t t
5600 s,@ECHO_N@,$ECHO_N,;t t
5601 s,@ECHO_T@,$ECHO_T,;t t
5602 s,@LIBS@,$LIBS,;t t
5603 s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
5604 s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
5605 s,@newlib_basedir@,$newlib_basedir,;t t
5606 s,@build@,$build,;t t
5607 s,@build_cpu@,$build_cpu,;t t
5608 s,@build_vendor@,$build_vendor,;t t
5609 s,@build_os@,$build_os,;t t
5610 s,@host@,$host,;t t
5611 s,@host_cpu@,$host_cpu,;t t
5612 s,@host_vendor@,$host_vendor,;t t
5613 s,@host_os@,$host_os,;t t
5614 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5615 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5616 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5617 s,@CYGPATH_W@,$CYGPATH_W,;t t
5618 s,@PACKAGE@,$PACKAGE,;t t
5619 s,@VERSION@,$VERSION,;t t
5620 s,@ACLOCAL@,$ACLOCAL,;t t
5621 s,@AUTOCONF@,$AUTOCONF,;t t
5622 s,@AUTOMAKE@,$AUTOMAKE,;t t
5623 s,@AUTOHEADER@,$AUTOHEADER,;t t
5624 s,@MAKEINFO@,$MAKEINFO,;t t
5625 s,@install_sh@,$install_sh,;t t
5626 s,@STRIP@,$STRIP,;t t
5627 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5628 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5629 s,@mkdir_p@,$mkdir_p,;t t
5630 s,@AWK@,$AWK,;t t
5631 s,@SET_MAKE@,$SET_MAKE,;t t
5632 s,@am__leading_dot@,$am__leading_dot,;t t
5633 s,@AMTAR@,$AMTAR,;t t
5634 s,@am__tar@,$am__tar,;t t
5635 s,@am__untar@,$am__untar,;t t
5636 s,@CC@,$CC,;t t
5637 s,@DEPDIR@,$DEPDIR,;t t
5638 s,@am__include@,$am__include,;t t
5639 s,@am__quote@,$am__quote,;t t
5640 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5641 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5642 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5643 s,@CCDEPMODE@,$CCDEPMODE,;t t
5644 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5645 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5646 s,@AS@,$AS,;t t
5647 s,@ac_ct_AS@,$ac_ct_AS,;t t
5648 s,@AR@,$AR,;t t
5649 s,@ac_ct_AR@,$ac_ct_AR,;t t
5650 s,@RANLIB@,$RANLIB,;t t
5651 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5652 s,@READELF@,$READELF,;t t
5653 s,@ac_ct_READELF@,$ac_ct_READELF,;t t
5654 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5655 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5656 s,@MAINT@,$MAINT,;t t
5657 s,@CCAS@,$CCAS,;t t
5658 s,@CCASFLAGS@,$CCASFLAGS,;t t
5659 s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
5660 s,@LDFLAGS@,$LDFLAGS,;t t
5661 s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
5662 s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
5663 s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
5664 s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
5665 s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
5666 s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
5667 s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
5668 s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
5669 s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
5670 s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
5671 s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
5672 s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
5673 s,@OBJEXT@,$OBJEXT,;t t
5674 s,@oext@,$oext,;t t
5675 s,@aext@,$aext,;t t
5676 s,@lpfx@,$lpfx,;t t
5677 s,@libm_machine_dir@,$libm_machine_dir,;t t
5678 s,@machine_dir@,$machine_dir,;t t
5679 s,@sys_dir@,$sys_dir,;t t
5680 s,@CFLAGS@,$CFLAGS,;t t
5681 s,@CPPFLAGS@,$CPPFLAGS,;t t
5682 s,@ac_ct_CC@,$ac_ct_CC,;t t
5683 s,@EXEEXT@,$EXEEXT,;t t
5684 s,@LN_S@,$LN_S,;t t
5685 s,@LIBTOOL@,$LIBTOOL,;t t
5686 s,@MACH_ADD_SETJMP_TRUE@,$MACH_ADD_SETJMP_TRUE,;t t
5687 s,@MACH_ADD_SETJMP_FALSE@,$MACH_ADD_SETJMP_FALSE,;t t
5688 s,@LIBOBJS@,$LIBOBJS,;t t
5689 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5690 CEOF
5691
5692 _ACEOF
5693
5694   cat >>$CONFIG_STATUS <<\_ACEOF
5695   # Split the substitutions into bite-sized pieces for seds with
5696   # small command number limits, like on Digital OSF/1 and HP-UX.
5697   ac_max_sed_lines=48
5698   ac_sed_frag=1 # Number of current file.
5699   ac_beg=1 # First line for current file.
5700   ac_end=$ac_max_sed_lines # Line after last line for current file.
5701   ac_more_lines=:
5702   ac_sed_cmds=
5703   while $ac_more_lines; do
5704     if test $ac_beg -gt 1; then
5705       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5706     else
5707       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5708     fi
5709     if test ! -s $tmp/subs.frag; then
5710       ac_more_lines=false
5711     else
5712       # The purpose of the label and of the branching condition is to
5713       # speed up the sed processing (if there are no `@' at all, there
5714       # is no need to browse any of the substitutions).
5715       # These are the two extra sed commands mentioned above.
5716       (echo ':t
5717   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5718       if test -z "$ac_sed_cmds"; then
5719         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5720       else
5721         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5722       fi
5723       ac_sed_frag=`expr $ac_sed_frag + 1`
5724       ac_beg=$ac_end
5725       ac_end=`expr $ac_end + $ac_max_sed_lines`
5726     fi
5727   done
5728   if test -z "$ac_sed_cmds"; then
5729     ac_sed_cmds=cat
5730   fi
5731 fi # test -n "$CONFIG_FILES"
5732
5733 _ACEOF
5734 cat >>$CONFIG_STATUS <<\_ACEOF
5735 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5736   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5737   case $ac_file in
5738   - | *:- | *:-:* ) # input from stdin
5739         cat >$tmp/stdin
5740         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5741         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5742   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5743         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5744   * )   ac_file_in=$ac_file.in ;;
5745   esac
5746
5747   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5748   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5750          X"$ac_file" : 'X\(//\)[^/]' \| \
5751          X"$ac_file" : 'X\(//\)$' \| \
5752          X"$ac_file" : 'X\(/\)' \| \
5753          .     : '\(.\)' 2>/dev/null ||
5754 echo X"$ac_file" |
5755     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5756           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5757           /^X\(\/\/\)$/{ s//\1/; q; }
5758           /^X\(\/\).*/{ s//\1/; q; }
5759           s/.*/./; q'`
5760   { if $as_mkdir_p; then
5761     mkdir -p "$ac_dir"
5762   else
5763     as_dir="$ac_dir"
5764     as_dirs=
5765     while test ! -d "$as_dir"; do
5766       as_dirs="$as_dir $as_dirs"
5767       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5769          X"$as_dir" : 'X\(//\)[^/]' \| \
5770          X"$as_dir" : 'X\(//\)$' \| \
5771          X"$as_dir" : 'X\(/\)' \| \
5772          .     : '\(.\)' 2>/dev/null ||
5773 echo X"$as_dir" |
5774     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5775           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5776           /^X\(\/\/\)$/{ s//\1/; q; }
5777           /^X\(\/\).*/{ s//\1/; q; }
5778           s/.*/./; q'`
5779     done
5780     test ! -n "$as_dirs" || mkdir $as_dirs
5781   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5782 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5783    { (exit 1); exit 1; }; }; }
5784
5785   ac_builddir=.
5786
5787 if test "$ac_dir" != .; then
5788   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5789   # A "../" for each directory in $ac_dir_suffix.
5790   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5791 else
5792   ac_dir_suffix= ac_top_builddir=
5793 fi
5794
5795 case $srcdir in
5796   .)  # No --srcdir option.  We are building in place.
5797     ac_srcdir=.
5798     if test -z "$ac_top_builddir"; then
5799        ac_top_srcdir=.
5800     else
5801        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5802     fi ;;
5803   [\\/]* | ?:[\\/]* )  # Absolute path.
5804     ac_srcdir=$srcdir$ac_dir_suffix;
5805     ac_top_srcdir=$srcdir ;;
5806   *) # Relative path.
5807     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5808     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5809 esac
5810
5811 # Do not use `cd foo && pwd` to compute absolute paths, because
5812 # the directories may not exist.
5813 case `pwd` in
5814 .) ac_abs_builddir="$ac_dir";;
5815 *)
5816   case "$ac_dir" in
5817   .) ac_abs_builddir=`pwd`;;
5818   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5819   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5820   esac;;
5821 esac
5822 case $ac_abs_builddir in
5823 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5824 *)
5825   case ${ac_top_builddir}. in
5826   .) ac_abs_top_builddir=$ac_abs_builddir;;
5827   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5828   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5829   esac;;
5830 esac
5831 case $ac_abs_builddir in
5832 .) ac_abs_srcdir=$ac_srcdir;;
5833 *)
5834   case $ac_srcdir in
5835   .) ac_abs_srcdir=$ac_abs_builddir;;
5836   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5837   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5838   esac;;
5839 esac
5840 case $ac_abs_builddir in
5841 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5842 *)
5843   case $ac_top_srcdir in
5844   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5845   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5846   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5847   esac;;
5848 esac
5849
5850
5851   case $INSTALL in
5852   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5853   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5854   esac
5855
5856   if test x"$ac_file" != x-; then
5857     { echo "$as_me:$LINENO: creating $ac_file" >&5
5858 echo "$as_me: creating $ac_file" >&6;}
5859     rm -f "$ac_file"
5860   fi
5861   # Let's still pretend it is `configure' which instantiates (i.e., don't
5862   # use $as_me), people would be surprised to read:
5863   #    /* config.h.  Generated by config.status.  */
5864   if test x"$ac_file" = x-; then
5865     configure_input=
5866   else
5867     configure_input="$ac_file.  "
5868   fi
5869   configure_input=$configure_input"Generated from `echo $ac_file_in |
5870                                      sed 's,.*/,,'` by configure."
5871
5872   # First look for the input files in the build tree, otherwise in the
5873   # src tree.
5874   ac_file_inputs=`IFS=:
5875     for f in $ac_file_in; do
5876       case $f in
5877       -) echo $tmp/stdin ;;
5878       [\\/$]*)
5879          # Absolute (can't be DOS-style, as IFS=:)
5880          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5881 echo "$as_me: error: cannot find input file: $f" >&2;}
5882    { (exit 1); exit 1; }; }
5883          echo "$f";;
5884       *) # Relative
5885          if test -f "$f"; then
5886            # Build tree
5887            echo "$f"
5888          elif test -f "$srcdir/$f"; then
5889            # Source tree
5890            echo "$srcdir/$f"
5891          else
5892            # /dev/null tree
5893            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5894 echo "$as_me: error: cannot find input file: $f" >&2;}
5895    { (exit 1); exit 1; }; }
5896          fi;;
5897       esac
5898     done` || { (exit 1); exit 1; }
5899 _ACEOF
5900 cat >>$CONFIG_STATUS <<_ACEOF
5901   sed "$ac_vpsub
5902 $extrasub
5903 _ACEOF
5904 cat >>$CONFIG_STATUS <<\_ACEOF
5905 :t
5906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5907 s,@configure_input@,$configure_input,;t t
5908 s,@srcdir@,$ac_srcdir,;t t
5909 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5910 s,@top_srcdir@,$ac_top_srcdir,;t t
5911 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5912 s,@builddir@,$ac_builddir,;t t
5913 s,@abs_builddir@,$ac_abs_builddir,;t t
5914 s,@top_builddir@,$ac_top_builddir,;t t
5915 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5916 s,@INSTALL@,$ac_INSTALL,;t t
5917 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5918   rm -f $tmp/stdin
5919   if test x"$ac_file" != x-; then
5920     mv $tmp/out $ac_file
5921   else
5922     cat $tmp/out
5923     rm -f $tmp/out
5924   fi
5925
5926 done
5927 _ACEOF
5928 cat >>$CONFIG_STATUS <<\_ACEOF
5929
5930 #
5931 # CONFIG_COMMANDS section.
5932 #
5933 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5934   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5935   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5936   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5937 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5938          X"$ac_dest" : 'X\(//\)[^/]' \| \
5939          X"$ac_dest" : 'X\(//\)$' \| \
5940          X"$ac_dest" : 'X\(/\)' \| \
5941          .     : '\(.\)' 2>/dev/null ||
5942 echo X"$ac_dest" |
5943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5944           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5945           /^X\(\/\/\)$/{ s//\1/; q; }
5946           /^X\(\/\).*/{ s//\1/; q; }
5947           s/.*/./; q'`
5948   { if $as_mkdir_p; then
5949     mkdir -p "$ac_dir"
5950   else
5951     as_dir="$ac_dir"
5952     as_dirs=
5953     while test ! -d "$as_dir"; do
5954       as_dirs="$as_dir $as_dirs"
5955       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5957          X"$as_dir" : 'X\(//\)[^/]' \| \
5958          X"$as_dir" : 'X\(//\)$' \| \
5959          X"$as_dir" : 'X\(/\)' \| \
5960          .     : '\(.\)' 2>/dev/null ||
5961 echo X"$as_dir" |
5962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5963           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5964           /^X\(\/\/\)$/{ s//\1/; q; }
5965           /^X\(\/\).*/{ s//\1/; q; }
5966           s/.*/./; q'`
5967     done
5968     test ! -n "$as_dirs" || mkdir $as_dirs
5969   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5970 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5971    { (exit 1); exit 1; }; }; }
5972
5973   ac_builddir=.
5974
5975 if test "$ac_dir" != .; then
5976   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5977   # A "../" for each directory in $ac_dir_suffix.
5978   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5979 else
5980   ac_dir_suffix= ac_top_builddir=
5981 fi
5982
5983 case $srcdir in
5984   .)  # No --srcdir option.  We are building in place.
5985     ac_srcdir=.
5986     if test -z "$ac_top_builddir"; then
5987        ac_top_srcdir=.
5988     else
5989        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5990     fi ;;
5991   [\\/]* | ?:[\\/]* )  # Absolute path.
5992     ac_srcdir=$srcdir$ac_dir_suffix;
5993     ac_top_srcdir=$srcdir ;;
5994   *) # Relative path.
5995     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5996     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5997 esac
5998
5999 # Do not use `cd foo && pwd` to compute absolute paths, because
6000 # the directories may not exist.
6001 case `pwd` in
6002 .) ac_abs_builddir="$ac_dir";;
6003 *)
6004   case "$ac_dir" in
6005   .) ac_abs_builddir=`pwd`;;
6006   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6007   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6008   esac;;
6009 esac
6010 case $ac_abs_builddir in
6011 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6012 *)
6013   case ${ac_top_builddir}. in
6014   .) ac_abs_top_builddir=$ac_abs_builddir;;
6015   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6016   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6017   esac;;
6018 esac
6019 case $ac_abs_builddir in
6020 .) ac_abs_srcdir=$ac_srcdir;;
6021 *)
6022   case $ac_srcdir in
6023   .) ac_abs_srcdir=$ac_abs_builddir;;
6024   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6025   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6026   esac;;
6027 esac
6028 case $ac_abs_builddir in
6029 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6030 *)
6031   case $ac_top_srcdir in
6032   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6033   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6034   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6035   esac;;
6036 esac
6037
6038
6039   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6040 echo "$as_me: executing $ac_dest commands" >&6;}
6041   case $ac_dest in
6042     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6043   # Strip MF so we end up with the name of the file.
6044   mf=`echo "$mf" | sed -e 's/:.*$//'`
6045   # Check whether this is an Automake generated Makefile or not.
6046   # We used to match only the files named `Makefile.in', but
6047   # some people rename them; so instead we look at the file content.
6048   # Grep'ing the first line is not enough: some people post-process
6049   # each Makefile.in and add a new line on top of each file to say so.
6050   # So let's grep whole file.
6051   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6052     dirpart=`(dirname "$mf") 2>/dev/null ||
6053 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6054          X"$mf" : 'X\(//\)[^/]' \| \
6055          X"$mf" : 'X\(//\)$' \| \
6056          X"$mf" : 'X\(/\)' \| \
6057          .     : '\(.\)' 2>/dev/null ||
6058 echo X"$mf" |
6059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6060           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6061           /^X\(\/\/\)$/{ s//\1/; q; }
6062           /^X\(\/\).*/{ s//\1/; q; }
6063           s/.*/./; q'`
6064   else
6065     continue
6066   fi
6067   # Extract the definition of DEPDIR, am__include, and am__quote
6068   # from the Makefile without running `make'.
6069   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6070   test -z "$DEPDIR" && continue
6071   am__include=`sed -n 's/^am__include = //p' < "$mf"`
6072   test -z "am__include" && continue
6073   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6074   # When using ansi2knr, U may be empty or an underscore; expand it
6075   U=`sed -n 's/^U = //p' < "$mf"`
6076   # Find all dependency output files, they are included files with
6077   # $(DEPDIR) in their names.  We invoke sed twice because it is the
6078   # simplest approach to changing $(DEPDIR) to its actual value in the
6079   # expansion.
6080   for file in `sed -n "
6081     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6082        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6083     # Make sure the directory exists.
6084     test -f "$dirpart/$file" && continue
6085     fdir=`(dirname "$file") 2>/dev/null ||
6086 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6087          X"$file" : 'X\(//\)[^/]' \| \
6088          X"$file" : 'X\(//\)$' \| \
6089          X"$file" : 'X\(/\)' \| \
6090          .     : '\(.\)' 2>/dev/null ||
6091 echo X"$file" |
6092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6093           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6094           /^X\(\/\/\)$/{ s//\1/; q; }
6095           /^X\(\/\).*/{ s//\1/; q; }
6096           s/.*/./; q'`
6097     { if $as_mkdir_p; then
6098     mkdir -p $dirpart/$fdir
6099   else
6100     as_dir=$dirpart/$fdir
6101     as_dirs=
6102     while test ! -d "$as_dir"; do
6103       as_dirs="$as_dir $as_dirs"
6104       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6106          X"$as_dir" : 'X\(//\)[^/]' \| \
6107          X"$as_dir" : 'X\(//\)$' \| \
6108          X"$as_dir" : 'X\(/\)' \| \
6109          .     : '\(.\)' 2>/dev/null ||
6110 echo X"$as_dir" |
6111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6112           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6113           /^X\(\/\/\)$/{ s//\1/; q; }
6114           /^X\(\/\).*/{ s//\1/; q; }
6115           s/.*/./; q'`
6116     done
6117     test ! -n "$as_dirs" || mkdir $as_dirs
6118   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6119 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6120    { (exit 1); exit 1; }; }; }
6121
6122     # echo "creating $dirpart/$file"
6123     echo '# dummy' > "$dirpart/$file"
6124   done
6125 done
6126  ;;
6127   esac
6128 done
6129 _ACEOF
6130
6131 cat >>$CONFIG_STATUS <<\_ACEOF
6132
6133 { (exit 0); exit 0; }
6134 _ACEOF
6135 chmod +x $CONFIG_STATUS
6136 ac_clean_files=$ac_clean_files_save
6137
6138
6139 # configure is writing to config.log, and then calls config.status.
6140 # config.status does its own redirection, appending to config.log.
6141 # Unfortunately, on DOS this fails, as config.log is still kept open
6142 # by configure, so config.status won't be able to write to it; its
6143 # output is simply discarded.  So we exec the FD to /dev/null,
6144 # effectively closing config.log, so it can be properly (re)opened and
6145 # appended to by config.status.  When coming back to configure, we
6146 # need to make the FD available again.
6147 if test "$no_create" != yes; then
6148   ac_cs_success=:
6149   ac_config_status_args=
6150   test "$silent" = yes &&
6151     ac_config_status_args="$ac_config_status_args --quiet"
6152   exec 5>/dev/null
6153   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6154   exec 5>>config.log
6155   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6156   # would make configure fail if this is the last instruction.
6157   $ac_cs_success || { (exit 1); exit 1; }
6158 fi
6159