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