OSDN Git Service

gcc:
[pf3gnuchains/gcc-fork.git] / libcpp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for cpplib  .
4 #
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='cpplib'
271 PACKAGE_TARNAME='cpplib'
272 PACKAGE_VERSION=' '
273 PACKAGE_STRING='cpplib  '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
275
276 ac_unique_file="ucnid.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS ALLOCA USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS LIBICONV LTLIBICONV ENABLE_NLS_TRUE ENABLE_NLS_FALSE LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures cpplib   to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 Program names:
837   --program-prefix=PREFIX            prepend PREFIX to installed program names
838   --program-suffix=SUFFIX            append SUFFIX to installed program names
839   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841 System types:
842   --build=BUILD     configure for building on BUILD [guessed]
843   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
844   --target=TARGET   configure for building compilers for TARGET [HOST]
845 _ACEOF
846 fi
847
848 if test -n "$ac_init_help"; then
849   case $ac_init_help in
850      short | recursive ) echo "Configuration of cpplib  :";;
851    esac
852   cat <<\_ACEOF
853
854 Optional Features:
855   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
856   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
857   --enable-maintainer-mode  enable make rules and dependencies not useful
858                           (and sometimes confusing) to the casual installer
859   --disable-dependency-tracking  speeds up one-time build
860   --enable-dependency-tracking   do not reject slow dependency extractors
861   --disable-rpath         do not hardcode runtime library paths
862   --enable-checking      enable expensive run-time checks
863
864 Optional Packages:
865   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
866   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
867   --with-gnu-ld           assume the C compiler uses GNU ld default=no
868   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
869   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
870
871 Some influential environment variables:
872   CC          C compiler command
873   CFLAGS      C compiler flags
874   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
875               nonstandard directory <lib dir>
876   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
877               headers in a nonstandard directory <include dir>
878   CPP         C preprocessor
879
880 Use these variables to override the choices made by `configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
882
883 Report bugs to <gcc-bugs@gcc.gnu.org>.
884 _ACEOF
885 fi
886
887 if test "$ac_init_help" = "recursive"; then
888   # If there are subdirs, report their specific --help.
889   ac_popdir=`pwd`
890   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891     test -d $ac_dir || continue
892     ac_builddir=.
893
894 if test "$ac_dir" != .; then
895   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896   # A "../" for each directory in $ac_dir_suffix.
897   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 else
899   ac_dir_suffix= ac_top_builddir=
900 fi
901
902 case $srcdir in
903   .)  # No --srcdir option.  We are building in place.
904     ac_srcdir=.
905     if test -z "$ac_top_builddir"; then
906        ac_top_srcdir=.
907     else
908        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909     fi ;;
910   [\\/]* | ?:[\\/]* )  # Absolute path.
911     ac_srcdir=$srcdir$ac_dir_suffix;
912     ac_top_srcdir=$srcdir ;;
913   *) # Relative path.
914     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915     ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 esac
917
918 # Do not use `cd foo && pwd` to compute absolute paths, because
919 # the directories may not exist.
920 case `pwd` in
921 .) ac_abs_builddir="$ac_dir";;
922 *)
923   case "$ac_dir" in
924   .) ac_abs_builddir=`pwd`;;
925   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
926   *) ac_abs_builddir=`pwd`/"$ac_dir";;
927   esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *)
932   case ${ac_top_builddir}. in
933   .) ac_abs_top_builddir=$ac_abs_builddir;;
934   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
935   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936   esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_srcdir=$ac_srcdir;;
940 *)
941   case $ac_srcdir in
942   .) ac_abs_srcdir=$ac_abs_builddir;;
943   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
944   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945   esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *)
950   case $ac_top_srcdir in
951   .) ac_abs_top_srcdir=$ac_abs_builddir;;
952   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
953   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954   esac;;
955 esac
956
957     cd $ac_dir
958     # Check for guested configure; otherwise get Cygnus style configure.
959     if test -f $ac_srcdir/configure.gnu; then
960       echo
961       $SHELL $ac_srcdir/configure.gnu  --help=recursive
962     elif test -f $ac_srcdir/configure; then
963       echo
964       $SHELL $ac_srcdir/configure  --help=recursive
965     elif test -f $ac_srcdir/configure.ac ||
966            test -f $ac_srcdir/configure.in; then
967       echo
968       $ac_configure --help
969     else
970       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971     fi
972     cd $ac_popdir
973   done
974 fi
975
976 test -n "$ac_init_help" && exit 0
977 if $ac_init_version; then
978   cat <<\_ACEOF
979 cpplib configure
980 generated by GNU Autoconf 2.59
981
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986   exit 0
987 fi
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
992
993 It was created by cpplib $as_me  , which was
994 generated by GNU Autoconf 2.59.  Invocation command line was
995
996   $ $0 $@
997
998 _ACEOF
999 {
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1004
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1013
1014 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1015 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1018 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1019 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1020 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1021
1022 _ASUNAME
1023
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1026 do
1027   IFS=$as_save_IFS
1028   test -z "$as_dir" && as_dir=.
1029   echo "PATH: $as_dir"
1030 done
1031
1032 } >&5
1033
1034 cat >&5 <<_ACEOF
1035
1036
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1040
1041 _ACEOF
1042
1043
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1055 do
1056   for ac_arg
1057   do
1058     case $ac_arg in
1059     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061     | -silent | --silent | --silen | --sile | --sil)
1062       continue ;;
1063     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065     esac
1066     case $ac_pass in
1067     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068     2)
1069       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070       if test $ac_must_keep_next = true; then
1071         ac_must_keep_next=false # Got value, back to normal.
1072       else
1073         case $ac_arg in
1074           *=* | --config-cache | -C | -disable-* | --disable-* \
1075           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077           | -with-* | --with-* | -without-* | --without-* | --x)
1078             case "$ac_configure_args0 " in
1079               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080             esac
1081             ;;
1082           -* ) ac_must_keep_next=true ;;
1083         esac
1084       fi
1085       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086       # Get rid of the leading space.
1087       ac_sep=" "
1088       ;;
1089     esac
1090   done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log.  We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101   # Save into config.log some information that might help in debugging.
1102   {
1103     echo
1104
1105     cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110     echo
1111     # The following way of writing the cache mishandles newlines in values,
1112 {
1113   (set) 2>&1 |
1114     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115     *ac_space=\ *)
1116       sed -n \
1117         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119       ;;
1120     *)
1121       sed -n \
1122         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123       ;;
1124     esac;
1125 }
1126     echo
1127
1128     cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133     echo
1134     for ac_var in $ac_subst_vars
1135     do
1136       eval ac_val=$`echo $ac_var`
1137       echo "$ac_var='"'"'$ac_val'"'"'"
1138     done | sort
1139     echo
1140
1141     if test -n "$ac_subst_files"; then
1142       cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147       echo
1148       for ac_var in $ac_subst_files
1149       do
1150         eval ac_val=$`echo $ac_var`
1151         echo "$ac_var='"'"'$ac_val'"'"'"
1152       done | sort
1153       echo
1154     fi
1155
1156     if test -s confdefs.h; then
1157       cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162       echo
1163       sed "/^$/d" confdefs.h | sort
1164       echo
1165     fi
1166     test "$ac_signal" != 0 &&
1167       echo "$as_me: caught signal $ac_signal"
1168     echo "$as_me: exit $exit_status"
1169   } >&5
1170   rm -f core *.core &&
1171   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172     exit $exit_status
1173      ' 0
1174 for ac_signal in 1 2 13 15; do
1175   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1178
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1183
1184 # Predefined preprocessor variables.
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1209
1210
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214   if test "x$prefix" != xNONE; then
1215     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216   else
1217     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218   fi
1219 fi
1220 for ac_site_file in $CONFIG_SITE; do
1221   if test -r "$ac_site_file"; then
1222     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224     sed 's/^/| /' "$ac_site_file" >&5
1225     . "$ac_site_file"
1226   fi
1227 done
1228
1229 if test -r "$cache_file"; then
1230   # Some versions of bash will fail to source /dev/null (special
1231   # files actually), so we avoid doing that.
1232   if test -f "$cache_file"; then
1233     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235     case $cache_file in
1236       [\\/]* | ?:[\\/]* ) . $cache_file;;
1237       *)                      . ./$cache_file;;
1238     esac
1239   fi
1240 else
1241   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243   >$cache_file
1244 fi
1245
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252   eval ac_new_set=\$ac_env_${ac_var}_set
1253   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254   eval ac_new_val="\$ac_env_${ac_var}_value"
1255   case $ac_old_set,$ac_new_set in
1256     set,)
1257       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259       ac_cache_corrupted=: ;;
1260     ,set)
1261       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263       ac_cache_corrupted=: ;;
1264     ,);;
1265     *)
1266       if test "x$ac_old_val" != "x$ac_new_val"; then
1267         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1270 echo "$as_me:   former value:  $ac_old_val" >&2;}
1271         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1272 echo "$as_me:   current value: $ac_new_val" >&2;}
1273         ac_cache_corrupted=:
1274       fi;;
1275   esac
1276   # Pass precious variables to config.status.
1277   if test "$ac_new_set" = set; then
1278     case $ac_new_val in
1279     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281     *) ac_arg=$ac_var=$ac_new_val ;;
1282     esac
1283     case " $ac_configure_args " in
1284       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1285       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286     esac
1287   fi
1288 done
1289 if $ac_cache_corrupted; then
1290   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294    { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330 ac_aux_dir=
1331 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1332   if test -f $ac_dir/install-sh; then
1333     ac_aux_dir=$ac_dir
1334     ac_install_sh="$ac_aux_dir/install-sh -c"
1335     break
1336   elif test -f $ac_dir/install.sh; then
1337     ac_aux_dir=$ac_dir
1338     ac_install_sh="$ac_aux_dir/install.sh -c"
1339     break
1340   elif test -f $ac_dir/shtool; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/shtool install -c"
1343     break
1344   fi
1345 done
1346 if test -z "$ac_aux_dir"; then
1347   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1348 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1349    { (exit 1); exit 1; }; }
1350 fi
1351 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1352 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1353 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1354
1355 # Make sure we can run config.sub.
1356 $ac_config_sub sun4 >/dev/null 2>&1 ||
1357   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1358 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1359    { (exit 1); exit 1; }; }
1360
1361 echo "$as_me:$LINENO: checking build system type" >&5
1362 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1363 if test "${ac_cv_build+set}" = set; then
1364   echo $ECHO_N "(cached) $ECHO_C" >&6
1365 else
1366   ac_cv_build_alias=$build_alias
1367 test -z "$ac_cv_build_alias" &&
1368   ac_cv_build_alias=`$ac_config_guess`
1369 test -z "$ac_cv_build_alias" &&
1370   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1371 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1372    { (exit 1); exit 1; }; }
1373 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1374   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1375 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1376    { (exit 1); exit 1; }; }
1377
1378 fi
1379 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1380 echo "${ECHO_T}$ac_cv_build" >&6
1381 build=$ac_cv_build
1382 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1383 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1384 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385
1386
1387 echo "$as_me:$LINENO: checking host system type" >&5
1388 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1389 if test "${ac_cv_host+set}" = set; then
1390   echo $ECHO_N "(cached) $ECHO_C" >&6
1391 else
1392   ac_cv_host_alias=$host_alias
1393 test -z "$ac_cv_host_alias" &&
1394   ac_cv_host_alias=$ac_cv_build_alias
1395 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1396   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1397 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1398    { (exit 1); exit 1; }; }
1399
1400 fi
1401 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1402 echo "${ECHO_T}$ac_cv_host" >&6
1403 host=$ac_cv_host
1404 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407
1408
1409 echo "$as_me:$LINENO: checking target system type" >&5
1410 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1411 if test "${ac_cv_target+set}" = set; then
1412   echo $ECHO_N "(cached) $ECHO_C" >&6
1413 else
1414   ac_cv_target_alias=$target_alias
1415 test "x$ac_cv_target_alias" = "x" &&
1416   ac_cv_target_alias=$ac_cv_host_alias
1417 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1418   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1420    { (exit 1); exit 1; }; }
1421
1422 fi
1423 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1424 echo "${ECHO_T}$ac_cv_target" >&6
1425 target=$ac_cv_target
1426 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429
1430
1431 # The aliases save the names the user supplied, while $host etc.
1432 # will get canonicalized.
1433 test -n "$target_alias" &&
1434   test "$program_prefix$program_suffix$program_transform_name" = \
1435     NONENONEs,x,x, &&
1436   program_prefix=${target_alias}-
1437 am__api_version="1.8"
1438 # Find a good install program.  We prefer a C program (faster),
1439 # so one script is as good as another.  But avoid the broken or
1440 # incompatible versions:
1441 # SysV /etc/install, /usr/sbin/install
1442 # SunOS /usr/etc/install
1443 # IRIX /sbin/install
1444 # AIX /bin/install
1445 # AmigaOS /C/install, which installs bootblocks on floppy discs
1446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1449 # OS/2's system install, which has a completely different semantic
1450 # ./install, which can be erroneously created by make from ./install.sh.
1451 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1452 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1453 if test -z "$INSTALL"; then
1454 if test "${ac_cv_path_install+set}" = set; then
1455   echo $ECHO_N "(cached) $ECHO_C" >&6
1456 else
1457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458 for as_dir in $PATH
1459 do
1460   IFS=$as_save_IFS
1461   test -z "$as_dir" && as_dir=.
1462   # Account for people who put trailing slashes in PATH elements.
1463 case $as_dir/ in
1464   ./ | .// | /cC/* | \
1465   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1466   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1467   /usr/ucb/* ) ;;
1468   *)
1469     # OSF1 and SCO ODT 3.0 have their own names for install.
1470     # Don't use installbsd from OSF since it installs stuff as root
1471     # by default.
1472     for ac_prog in ginstall scoinst install; do
1473       for ac_exec_ext in '' $ac_executable_extensions; do
1474         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1475           if test $ac_prog = install &&
1476             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1477             # AIX install.  It has an incompatible calling convention.
1478             :
1479           elif test $ac_prog = install &&
1480             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1481             # program-specific install script used by HP pwplus--don't use.
1482             :
1483           else
1484             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1485             break 3
1486           fi
1487         fi
1488       done
1489     done
1490     ;;
1491 esac
1492 done
1493
1494
1495 fi
1496   if test "${ac_cv_path_install+set}" = set; then
1497     INSTALL=$ac_cv_path_install
1498   else
1499     # As a last resort, use the slow shell script.  We don't cache a
1500     # path for INSTALL within a source directory, because that will
1501     # break other packages using the cache if that directory is
1502     # removed, or if the path is relative.
1503     INSTALL=$ac_install_sh
1504   fi
1505 fi
1506 echo "$as_me:$LINENO: result: $INSTALL" >&5
1507 echo "${ECHO_T}$INSTALL" >&6
1508
1509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1510 # It thinks the first close brace ends the variable substitution.
1511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1512
1513 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1514
1515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1516
1517 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1518 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1519 # Just in case
1520 sleep 1
1521 echo timestamp > conftest.file
1522 # Do `set' in a subshell so we don't clobber the current shell's
1523 # arguments.  Must try -L first in case configure is actually a
1524 # symlink; some systems play weird games with the mod time of symlinks
1525 # (eg FreeBSD returns the mod time of the symlink's containing
1526 # directory).
1527 if (
1528    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1529    if test "$*" = "X"; then
1530       # -L didn't work.
1531       set X `ls -t $srcdir/configure conftest.file`
1532    fi
1533    rm -f conftest.file
1534    if test "$*" != "X $srcdir/configure conftest.file" \
1535       && test "$*" != "X conftest.file $srcdir/configure"; then
1536
1537       # If neither matched, then we have a broken ls.  This can happen
1538       # if, for instance, CONFIG_SHELL is bash and it inherits a
1539       # broken ls alias from the environment.  This has actually
1540       # happened.  Such a system could not be considered "sane".
1541       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1542 alias in your environment" >&5
1543 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1544 alias in your environment" >&2;}
1545    { (exit 1); exit 1; }; }
1546    fi
1547
1548    test "$2" = conftest.file
1549    )
1550 then
1551    # Ok.
1552    :
1553 else
1554    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1555 Check your system clock" >&5
1556 echo "$as_me: error: newly created file is older than distributed files!
1557 Check your system clock" >&2;}
1558    { (exit 1); exit 1; }; }
1559 fi
1560 echo "$as_me:$LINENO: result: yes" >&5
1561 echo "${ECHO_T}yes" >&6
1562 test "$program_prefix" != NONE &&
1563   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1564 # Use a double $ so make ignores it.
1565 test "$program_suffix" != NONE &&
1566   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1567 # Double any \ or $.  echo might interpret backslashes.
1568 # By default was `s,x,x', remove it if useless.
1569 cat <<\_ACEOF >conftest.sed
1570 s/[\\$]/&&/g;s/;s,x,x,$//
1571 _ACEOF
1572 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1573 rm conftest.sed
1574
1575 # expand $ac_aux_dir to an absolute path
1576 am_aux_dir=`cd $ac_aux_dir && pwd`
1577
1578 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1579 # Use eval to expand $SHELL
1580 if eval "$MISSING --run true"; then
1581   am_missing_run="$MISSING --run "
1582 else
1583   am_missing_run=
1584   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1585 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1586 fi
1587
1588 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1589   # Keeping the `.' argument allows $(mkdir_p) to be used without
1590   # argument.  Indeed, we sometimes output rules like
1591   #   $(mkdir_p) $(somedir)
1592   # where $(somedir) is conditionally defined.
1593   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1594   # expensive solution, as it forces Make to start a sub-shell.)
1595   mkdir_p='mkdir -p -- .'
1596 else
1597   # On NextStep and OpenStep, the `mkdir' command does not
1598   # recognize any option.  It will interpret all options as
1599   # directories to create, and then abort because `.' already
1600   # exists.
1601   for d in ./-p ./--version;
1602   do
1603     test -d $d && rmdir $d
1604   done
1605   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1606   if test -f "$ac_aux_dir/mkinstalldirs"; then
1607     mkdir_p='$(mkinstalldirs)'
1608   else
1609     mkdir_p='$(install_sh) -d'
1610   fi
1611 fi
1612
1613 for ac_prog in gawk mawk nawk awk
1614 do
1615   # Extract the first word of "$ac_prog", so it can be a program name with args.
1616 set dummy $ac_prog; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_AWK+set}" = set; then
1620   echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622   if test -n "$AWK"; then
1623   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1624 else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1627 do
1628   IFS=$as_save_IFS
1629   test -z "$as_dir" && as_dir=.
1630   for ac_exec_ext in '' $ac_executable_extensions; do
1631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632     ac_cv_prog_AWK="$ac_prog"
1633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634     break 2
1635   fi
1636 done
1637 done
1638
1639 fi
1640 fi
1641 AWK=$ac_cv_prog_AWK
1642 if test -n "$AWK"; then
1643   echo "$as_me:$LINENO: result: $AWK" >&5
1644 echo "${ECHO_T}$AWK" >&6
1645 else
1646   echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 fi
1649
1650   test -n "$AWK" && break
1651 done
1652
1653 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1654 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1655 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1656 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   cat >conftest.make <<\_ACEOF
1660 all:
1661         @echo 'ac_maketemp="$(MAKE)"'
1662 _ACEOF
1663 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1664 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1665 if test -n "$ac_maketemp"; then
1666   eval ac_cv_prog_make_${ac_make}_set=yes
1667 else
1668   eval ac_cv_prog_make_${ac_make}_set=no
1669 fi
1670 rm -f conftest.make
1671 fi
1672 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1673   echo "$as_me:$LINENO: result: yes" >&5
1674 echo "${ECHO_T}yes" >&6
1675   SET_MAKE=
1676 else
1677   echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679   SET_MAKE="MAKE=${MAKE-make}"
1680 fi
1681
1682 rm -rf .tst 2>/dev/null
1683 mkdir .tst 2>/dev/null
1684 if test -d .tst; then
1685   am__leading_dot=.
1686 else
1687   am__leading_dot=_
1688 fi
1689 rmdir .tst 2>/dev/null
1690
1691 # test to see if srcdir already configured
1692 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1693    test -f $srcdir/config.status; then
1694   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1695 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1696    { (exit 1); exit 1; }; }
1697 fi
1698
1699 # test whether we have cygpath
1700 if test -z "$CYGPATH_W"; then
1701   if (cygpath --version) >/dev/null 2>/dev/null; then
1702     CYGPATH_W='cygpath -w'
1703   else
1704     CYGPATH_W=echo
1705   fi
1706 fi
1707
1708
1709 # Define the identity of the package.
1710  PACKAGE='cpplib'
1711  VERSION=' '
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE "$PACKAGE"
1716 _ACEOF
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define VERSION "$VERSION"
1721 _ACEOF
1722
1723 # Some tools Automake needs.
1724
1725 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1726
1727
1728 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1729
1730
1731 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1732
1733
1734 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1735
1736
1737 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1738
1739
1740 AMTAR=${AMTAR-"${am_missing_run}tar"}
1741
1742 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1743
1744 # Installed binaries are usually stripped using `strip' when the user
1745 # run `make install-strip'.  However `strip' might not be the right
1746 # tool to use in cross-compilation environments, therefore Automake
1747 # will honor the `STRIP' environment variable to overrule this program.
1748 if test "$cross_compiling" != no; then
1749   if test -n "$ac_tool_prefix"; then
1750   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1751 set dummy ${ac_tool_prefix}strip; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_STRIP+set}" = set; then
1755   echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757   if test -n "$STRIP"; then
1758   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1759 else
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763   IFS=$as_save_IFS
1764   test -z "$as_dir" && as_dir=.
1765   for ac_exec_ext in '' $ac_executable_extensions; do
1766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769     break 2
1770   fi
1771 done
1772 done
1773
1774 fi
1775 fi
1776 STRIP=$ac_cv_prog_STRIP
1777 if test -n "$STRIP"; then
1778   echo "$as_me:$LINENO: result: $STRIP" >&5
1779 echo "${ECHO_T}$STRIP" >&6
1780 else
1781   echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 fi
1784
1785 fi
1786 if test -z "$ac_cv_prog_STRIP"; then
1787   ac_ct_STRIP=$STRIP
1788   # Extract the first word of "strip", so it can be a program name with args.
1789 set dummy strip; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$ac_ct_STRIP"; then
1796   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_ac_ct_STRIP="strip"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1813 fi
1814 fi
1815 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1816 if test -n "$ac_ct_STRIP"; then
1817   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1818 echo "${ECHO_T}$ac_ct_STRIP" >&6
1819 else
1820   echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1822 fi
1823
1824   STRIP=$ac_ct_STRIP
1825 else
1826   STRIP="$ac_cv_prog_STRIP"
1827 fi
1828
1829 fi
1830 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1831
1832 # We need awk for the "check" target.  The system "awk" is bad on
1833 # some platforms.
1834
1835
1836
1837 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1838 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1839     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1840 if test "${enable_maintainer_mode+set}" = set; then
1841   enableval="$enable_maintainer_mode"
1842   USE_MAINTAINER_MODE=$enableval
1843 else
1844   USE_MAINTAINER_MODE=no
1845 fi;
1846   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1847 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1848
1849
1850 if test $USE_MAINTAINER_MODE = yes; then
1851   MAINTAINER_MODE_TRUE=
1852   MAINTAINER_MODE_FALSE='#'
1853 else
1854   MAINTAINER_MODE_TRUE='#'
1855   MAINTAINER_MODE_FALSE=
1856 fi
1857
1858   MAINT=$MAINTAINER_MODE_TRUE
1859
1860
1861
1862 # Checks for programs.
1863 ac_ext=c
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868 if test -n "$ac_tool_prefix"; then
1869   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_CC+set}" = set; then
1874   echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876   if test -n "$CC"; then
1877   ac_cv_prog_CC="$CC" # Let the user override the test.
1878 else
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   for ac_exec_ext in '' $ac_executable_extensions; do
1885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888     break 2
1889   fi
1890 done
1891 done
1892
1893 fi
1894 fi
1895 CC=$ac_cv_prog_CC
1896 if test -n "$CC"; then
1897   echo "$as_me:$LINENO: result: $CC" >&5
1898 echo "${ECHO_T}$CC" >&6
1899 else
1900   echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1902 fi
1903
1904 fi
1905 if test -z "$ac_cv_prog_CC"; then
1906   ac_ct_CC=$CC
1907   # Extract the first word of "gcc", so it can be a program name with args.
1908 set dummy gcc; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1912   echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914   if test -n "$ac_ct_CC"; then
1915   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916 else
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922   for ac_exec_ext in '' $ac_executable_extensions; do
1923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924     ac_cv_prog_ac_ct_CC="gcc"
1925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926     break 2
1927   fi
1928 done
1929 done
1930
1931 fi
1932 fi
1933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1934 if test -n "$ac_ct_CC"; then
1935   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1936 echo "${ECHO_T}$ac_ct_CC" >&6
1937 else
1938   echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1940 fi
1941
1942   CC=$ac_ct_CC
1943 else
1944   CC="$ac_cv_prog_CC"
1945 fi
1946
1947 if test -z "$CC"; then
1948   if test -n "$ac_tool_prefix"; then
1949   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1950 set dummy ${ac_tool_prefix}cc; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_CC+set}" = set; then
1954   echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956   if test -n "$CC"; then
1957   ac_cv_prog_CC="$CC" # Let the user override the test.
1958 else
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1961 do
1962   IFS=$as_save_IFS
1963   test -z "$as_dir" && as_dir=.
1964   for ac_exec_ext in '' $ac_executable_extensions; do
1965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966     ac_cv_prog_CC="${ac_tool_prefix}cc"
1967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968     break 2
1969   fi
1970 done
1971 done
1972
1973 fi
1974 fi
1975 CC=$ac_cv_prog_CC
1976 if test -n "$CC"; then
1977   echo "$as_me:$LINENO: result: $CC" >&5
1978 echo "${ECHO_T}$CC" >&6
1979 else
1980   echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1982 fi
1983
1984 fi
1985 if test -z "$ac_cv_prog_CC"; then
1986   ac_ct_CC=$CC
1987   # Extract the first word of "cc", so it can be a program name with args.
1988 set dummy cc; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   if test -n "$ac_ct_CC"; then
1995   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000   IFS=$as_save_IFS
2001   test -z "$as_dir" && as_dir=.
2002   for ac_exec_ext in '' $ac_executable_extensions; do
2003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004     ac_cv_prog_ac_ct_CC="cc"
2005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006     break 2
2007   fi
2008 done
2009 done
2010
2011 fi
2012 fi
2013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2014 if test -n "$ac_ct_CC"; then
2015   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2016 echo "${ECHO_T}$ac_ct_CC" >&6
2017 else
2018   echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2020 fi
2021
2022   CC=$ac_ct_CC
2023 else
2024   CC="$ac_cv_prog_CC"
2025 fi
2026
2027 fi
2028 if test -z "$CC"; then
2029   # Extract the first word of "cc", so it can be a program name with args.
2030 set dummy cc; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034   echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036   if test -n "$CC"; then
2037   ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039   ac_prog_rejected=no
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2042 do
2043   IFS=$as_save_IFS
2044   test -z "$as_dir" && as_dir=.
2045   for ac_exec_ext in '' $ac_executable_extensions; do
2046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2048        ac_prog_rejected=yes
2049        continue
2050      fi
2051     ac_cv_prog_CC="cc"
2052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053     break 2
2054   fi
2055 done
2056 done
2057
2058 if test $ac_prog_rejected = yes; then
2059   # We found a bogon in the path, so make sure we never use it.
2060   set dummy $ac_cv_prog_CC
2061   shift
2062   if test $# != 0; then
2063     # We chose a different compiler from the bogus one.
2064     # However, it has the same basename, so the bogon will be chosen
2065     # first if we set CC to just the basename; use the full file name.
2066     shift
2067     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2068   fi
2069 fi
2070 fi
2071 fi
2072 CC=$ac_cv_prog_CC
2073 if test -n "$CC"; then
2074   echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6
2076 else
2077   echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2079 fi
2080
2081 fi
2082 if test -z "$CC"; then
2083   if test -n "$ac_tool_prefix"; then
2084   for ac_prog in cl
2085   do
2086     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_CC+set}" = set; then
2091   echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093   if test -n "$CC"; then
2094   ac_cv_prog_CC="$CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099   IFS=$as_save_IFS
2100   test -z "$as_dir" && as_dir=.
2101   for ac_exec_ext in '' $ac_executable_extensions; do
2102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105     break 2
2106   fi
2107 done
2108 done
2109
2110 fi
2111 fi
2112 CC=$ac_cv_prog_CC
2113 if test -n "$CC"; then
2114   echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6
2116 else
2117   echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2119 fi
2120
2121     test -n "$CC" && break
2122   done
2123 fi
2124 if test -z "$CC"; then
2125   ac_ct_CC=$CC
2126   for ac_prog in cl
2127 do
2128   # Extract the first word of "$ac_prog", so it can be a program name with args.
2129 set dummy $ac_prog; ac_word=$2
2130 echo "$as_me:$LINENO: checking for $ac_word" >&5
2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   if test -n "$ac_ct_CC"; then
2136   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2137 else
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2140 do
2141   IFS=$as_save_IFS
2142   test -z "$as_dir" && as_dir=.
2143   for ac_exec_ext in '' $ac_executable_extensions; do
2144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145     ac_cv_prog_ac_ct_CC="$ac_prog"
2146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147     break 2
2148   fi
2149 done
2150 done
2151
2152 fi
2153 fi
2154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2155 if test -n "$ac_ct_CC"; then
2156   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2157 echo "${ECHO_T}$ac_ct_CC" >&6
2158 else
2159   echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6
2161 fi
2162
2163   test -n "$ac_ct_CC" && break
2164 done
2165
2166   CC=$ac_ct_CC
2167 fi
2168
2169 fi
2170
2171
2172 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2173 See \`config.log' for more details." >&5
2174 echo "$as_me: error: no acceptable C compiler found in \$PATH
2175 See \`config.log' for more details." >&2;}
2176    { (exit 1); exit 1; }; }
2177
2178 # Provide some information about the compiler.
2179 echo "$as_me:$LINENO:" \
2180      "checking for C compiler version" >&5
2181 ac_compiler=`set X $ac_compile; echo $2`
2182 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2183   (eval $ac_compiler --version </dev/null >&5) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }
2187 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2188   (eval $ac_compiler -v </dev/null >&5) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }
2192 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2193   (eval $ac_compiler -V </dev/null >&5) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }
2197
2198 cat >conftest.$ac_ext <<_ACEOF
2199 /* confdefs.h.  */
2200 _ACEOF
2201 cat confdefs.h >>conftest.$ac_ext
2202 cat >>conftest.$ac_ext <<_ACEOF
2203 /* end confdefs.h.  */
2204
2205 int
2206 main ()
2207 {
2208
2209   ;
2210   return 0;
2211 }
2212 _ACEOF
2213 ac_clean_files_save=$ac_clean_files
2214 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2215 # Try to create an executable without -o first, disregard a.out.
2216 # It will help us diagnose broken compilers, and finding out an intuition
2217 # of exeext.
2218 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2219 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2220 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2221 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2222   (eval $ac_link_default) 2>&5
2223   ac_status=$?
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); }; then
2226   # Find the output, starting from the most likely.  This scheme is
2227 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2228 # resort.
2229
2230 # Be careful to initialize this variable, since it used to be cached.
2231 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2232 ac_cv_exeext=
2233 # b.out is created by i960 compilers.
2234 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2235 do
2236   test -f "$ac_file" || continue
2237   case $ac_file in
2238     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2239         ;;
2240     conftest.$ac_ext )
2241         # This is the source file.
2242         ;;
2243     [ab].out )
2244         # We found the default executable, but exeext='' is most
2245         # certainly right.
2246         break;;
2247     *.* )
2248         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2249         # FIXME: I believe we export ac_cv_exeext for Libtool,
2250         # but it would be cool to find out if it's true.  Does anybody
2251         # maintain Libtool? --akim.
2252         export ac_cv_exeext
2253         break;;
2254     * )
2255         break;;
2256   esac
2257 done
2258 else
2259   echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2261
2262 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: C compiler cannot create executables
2265 See \`config.log' for more details." >&2;}
2266    { (exit 77); exit 77; }; }
2267 fi
2268
2269 ac_exeext=$ac_cv_exeext
2270 echo "$as_me:$LINENO: result: $ac_file" >&5
2271 echo "${ECHO_T}$ac_file" >&6
2272
2273 # Check the compiler produces executables we can run.  If not, either
2274 # the compiler is broken, or we cross compile.
2275 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2276 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2277 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2278 # If not cross compiling, check that we can run a simple program.
2279 if test "$cross_compiling" != yes; then
2280   if { ac_try='./$ac_file'
2281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282   (eval $ac_try) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }; }; then
2286     cross_compiling=no
2287   else
2288     if test "$cross_compiling" = maybe; then
2289         cross_compiling=yes
2290     else
2291         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2292 If you meant to cross compile, use \`--host'.
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot run C compiled programs.
2295 If you meant to cross compile, use \`--host'.
2296 See \`config.log' for more details." >&2;}
2297    { (exit 1); exit 1; }; }
2298     fi
2299   fi
2300 fi
2301 echo "$as_me:$LINENO: result: yes" >&5
2302 echo "${ECHO_T}yes" >&6
2303
2304 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2305 ac_clean_files=$ac_clean_files_save
2306 # Check the compiler produces executables we can run.  If not, either
2307 # the compiler is broken, or we cross compile.
2308 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2309 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2310 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2311 echo "${ECHO_T}$cross_compiling" >&6
2312
2313 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2314 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2316   (eval $ac_link) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; then
2320   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2322 # work properly (i.e., refer to `conftest.exe'), while it won't with
2323 # `rm'.
2324 for ac_file in conftest.exe conftest conftest.*; do
2325   test -f "$ac_file" || continue
2326   case $ac_file in
2327     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2328     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329           export ac_cv_exeext
2330           break;;
2331     * ) break;;
2332   esac
2333 done
2334 else
2335   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2338 See \`config.log' for more details." >&2;}
2339    { (exit 1); exit 1; }; }
2340 fi
2341
2342 rm -f conftest$ac_cv_exeext
2343 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2344 echo "${ECHO_T}$ac_cv_exeext" >&6
2345
2346 rm -f conftest.$ac_ext
2347 EXEEXT=$ac_cv_exeext
2348 ac_exeext=$EXEEXT
2349 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2350 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2351 if test "${ac_cv_objext+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h.  */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h.  */
2360
2361 int
2362 main ()
2363 {
2364
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 rm -f conftest.o conftest.obj
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371   (eval $ac_compile) 2>&5
2372   ac_status=$?
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); }; then
2375   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2376   case $ac_file in
2377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2378     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2379        break;;
2380   esac
2381 done
2382 else
2383   echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2389 See \`config.log' for more details." >&2;}
2390    { (exit 1); exit 1; }; }
2391 fi
2392
2393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2394 fi
2395 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2396 echo "${ECHO_T}$ac_cv_objext" >&6
2397 OBJEXT=$ac_cv_objext
2398 ac_objext=$OBJEXT
2399 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2400 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2401 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h.  */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h.  */
2410
2411 int
2412 main ()
2413 {
2414 #ifndef __GNUC__
2415        choke me
2416 #endif
2417
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424   (eval $ac_compile) 2>conftest.er1
2425   ac_status=$?
2426   grep -v '^ *+' conftest.er1 >conftest.err
2427   rm -f conftest.er1
2428   cat conftest.err >&5
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); } &&
2431          { ac_try='test -z "$ac_c_werror_flag"
2432                          || test ! -s conftest.err'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; } &&
2438          { ac_try='test -s conftest.$ac_objext'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; }; then
2444   ac_compiler_gnu=yes
2445 else
2446   echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 ac_compiler_gnu=no
2450 fi
2451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453
2454 fi
2455 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2457 GCC=`test $ac_compiler_gnu = yes && echo yes`
2458 ac_test_CFLAGS=${CFLAGS+set}
2459 ac_save_CFLAGS=$CFLAGS
2460 CFLAGS="-g"
2461 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2462 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2463 if test "${ac_cv_prog_cc_g+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   cat >conftest.$ac_ext <<_ACEOF
2467 /* confdefs.h.  */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h.  */
2472
2473 int
2474 main ()
2475 {
2476
2477   ;
2478   return 0;
2479 }
2480 _ACEOF
2481 rm -f conftest.$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483   (eval $ac_compile) 2>conftest.er1
2484   ac_status=$?
2485   grep -v '^ *+' conftest.er1 >conftest.err
2486   rm -f conftest.er1
2487   cat conftest.err >&5
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); } &&
2490          { ac_try='test -z "$ac_c_werror_flag"
2491                          || test ! -s conftest.err'
2492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493   (eval $ac_try) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; } &&
2497          { ac_try='test -s conftest.$ac_objext'
2498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499   (eval $ac_try) 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }; }; then
2503   ac_cv_prog_cc_g=yes
2504 else
2505   echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508 ac_cv_prog_cc_g=no
2509 fi
2510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2511 fi
2512 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2513 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2514 if test "$ac_test_CFLAGS" = set; then
2515   CFLAGS=$ac_save_CFLAGS
2516 elif test $ac_cv_prog_cc_g = yes; then
2517   if test "$GCC" = yes; then
2518     CFLAGS="-g -O2"
2519   else
2520     CFLAGS="-g"
2521   fi
2522 else
2523   if test "$GCC" = yes; then
2524     CFLAGS="-O2"
2525   else
2526     CFLAGS=
2527   fi
2528 fi
2529 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2530 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2531 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   ac_cv_prog_cc_stdc=no
2535 ac_save_CC=$CC
2536 cat >conftest.$ac_ext <<_ACEOF
2537 /* confdefs.h.  */
2538 _ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h.  */
2542 #include <stdarg.h>
2543 #include <stdio.h>
2544 #include <sys/types.h>
2545 #include <sys/stat.h>
2546 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2547 struct buf { int x; };
2548 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2549 static char *e (p, i)
2550      char **p;
2551      int i;
2552 {
2553   return p[i];
2554 }
2555 static char *f (char * (*g) (char **, int), char **p, ...)
2556 {
2557   char *s;
2558   va_list v;
2559   va_start (v,p);
2560   s = g (p, va_arg (v,int));
2561   va_end (v);
2562   return s;
2563 }
2564
2565 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2566    function prototypes and stuff, but not '\xHH' hex character constants.
2567    These don't provoke an error unfortunately, instead are silently treated
2568    as 'x'.  The following induces an error, until -std1 is added to get
2569    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2570    array size at least.  It's necessary to write '\x00'==0 to get something
2571    that's true only with -std1.  */
2572 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2573
2574 int test (int i, double x);
2575 struct s1 {int (*f) (int a);};
2576 struct s2 {int (*f) (double a);};
2577 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2578 int argc;
2579 char **argv;
2580 int
2581 main ()
2582 {
2583 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 # Don't try gcc -ansi; that turns off useful extensions and
2589 # breaks some systems' header files.
2590 # AIX                   -qlanglvl=ansi
2591 # Ultrix and OSF/1      -std1
2592 # HP-UX 10.20 and later -Ae
2593 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2594 # SVR4                  -Xc -D__EXTENSIONS__
2595 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2596 do
2597   CC="$ac_save_CC $ac_arg"
2598   rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_c_werror_flag"
2608                          || test ! -s conftest.err'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   ac_cv_prog_cc_stdc=$ac_arg
2621 break
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 fi
2627 rm -f conftest.err conftest.$ac_objext
2628 done
2629 rm -f conftest.$ac_ext conftest.$ac_objext
2630 CC=$ac_save_CC
2631
2632 fi
2633
2634 case "x$ac_cv_prog_cc_stdc" in
2635   x|xno)
2636     echo "$as_me:$LINENO: result: none needed" >&5
2637 echo "${ECHO_T}none needed" >&6 ;;
2638   *)
2639     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2640 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2641     CC="$CC $ac_cv_prog_cc_stdc" ;;
2642 esac
2643
2644 # Some people use a C++ compiler to compile C.  Since we use `exit',
2645 # in C++ we need to declare it.  In case someone uses the same compiler
2646 # for both compiling C and C++ we need to have the C++ compiler decide
2647 # the declaration of exit, since it's the most demanding environment.
2648 cat >conftest.$ac_ext <<_ACEOF
2649 #ifndef __cplusplus
2650   choke me
2651 #endif
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655   (eval $ac_compile) 2>conftest.er1
2656   ac_status=$?
2657   grep -v '^ *+' conftest.er1 >conftest.err
2658   rm -f conftest.er1
2659   cat conftest.err >&5
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); } &&
2662          { ac_try='test -z "$ac_c_werror_flag"
2663                          || test ! -s conftest.err'
2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665   (eval $ac_try) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; } &&
2669          { ac_try='test -s conftest.$ac_objext'
2670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; }; then
2675   for ac_declaration in \
2676    '' \
2677    'extern "C" void std::exit (int) throw (); using std::exit;' \
2678    'extern "C" void std::exit (int); using std::exit;' \
2679    'extern "C" void exit (int) throw ();' \
2680    'extern "C" void exit (int);' \
2681    'void exit (int);'
2682 do
2683   cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689 $ac_declaration
2690 #include <stdlib.h>
2691 int
2692 main ()
2693 {
2694 exit (42);
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701   (eval $ac_compile) 2>conftest.er1
2702   ac_status=$?
2703   grep -v '^ *+' conftest.er1 >conftest.err
2704   rm -f conftest.er1
2705   cat conftest.err >&5
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); } &&
2708          { ac_try='test -z "$ac_c_werror_flag"
2709                          || test ! -s conftest.err'
2710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711   (eval $ac_try) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }; } &&
2715          { ac_try='test -s conftest.$ac_objext'
2716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717   (eval $ac_try) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; }; then
2721   :
2722 else
2723   echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2725
2726 continue
2727 fi
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729   cat >conftest.$ac_ext <<_ACEOF
2730 /* confdefs.h.  */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h.  */
2735 $ac_declaration
2736 int
2737 main ()
2738 {
2739 exit (42);
2740   ;
2741   return 0;
2742 }
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -z "$ac_c_werror_flag"
2754                          || test ! -s conftest.err'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   break
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 fi
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773 done
2774 rm -f conftest*
2775 if test -n "$ac_declaration"; then
2776   echo '#ifdef __cplusplus' >>confdefs.h
2777   echo $ac_declaration      >>confdefs.h
2778   echo '#endif'             >>confdefs.h
2779 fi
2780
2781 else
2782   echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2784
2785 fi
2786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2787 ac_ext=c
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 DEPDIR="${am__leading_dot}deps"
2793
2794           ac_config_commands="$ac_config_commands depfiles"
2795
2796
2797 am_make=${MAKE-make}
2798 cat > confinc << 'END'
2799 am__doit:
2800         @echo done
2801 .PHONY: am__doit
2802 END
2803 # If we don't find an include directive, just comment out the code.
2804 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2805 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2806 am__include="#"
2807 am__quote=
2808 _am_result=none
2809 # First try GNU make style include.
2810 echo "include confinc" > confmf
2811 # We grep out `Entering directory' and `Leaving directory'
2812 # messages which can occur if `w' ends up in MAKEFLAGS.
2813 # In particular we don't look at `^make:' because GNU make might
2814 # be invoked under some other name (usually "gmake"), in which
2815 # case it prints its new name instead of `make'.
2816 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2817    am__include=include
2818    am__quote=
2819    _am_result=GNU
2820 fi
2821 # Now try BSD make style include.
2822 if test "$am__include" = "#"; then
2823    echo '.include "confinc"' > confmf
2824    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2825       am__include=.include
2826       am__quote="\""
2827       _am_result=BSD
2828    fi
2829 fi
2830
2831
2832 echo "$as_me:$LINENO: result: $_am_result" >&5
2833 echo "${ECHO_T}$_am_result" >&6
2834 rm -f confinc confmf
2835
2836 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2837 if test "${enable_dependency_tracking+set}" = set; then
2838   enableval="$enable_dependency_tracking"
2839
2840 fi;
2841 if test "x$enable_dependency_tracking" != xno; then
2842   am_depcomp="$ac_aux_dir/depcomp"
2843   AMDEPBACKSLASH='\'
2844 fi
2845
2846
2847 if test "x$enable_dependency_tracking" != xno; then
2848   AMDEP_TRUE=
2849   AMDEP_FALSE='#'
2850 else
2851   AMDEP_TRUE='#'
2852   AMDEP_FALSE=
2853 fi
2854
2855
2856
2857
2858 depcc="$CC"   am_compiler_list=
2859
2860 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2861 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2862 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2863   echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2866   # We make a subdir and do the tests there.  Otherwise we can end up
2867   # making bogus files that we don't know about and never remove.  For
2868   # instance it was reported that on HP-UX the gcc test will end up
2869   # making a dummy file named `D' -- because `-MD' means `put the output
2870   # in D'.
2871   mkdir conftest.dir
2872   # Copy depcomp to subdir because otherwise we won't find it if we're
2873   # using a relative directory.
2874   cp "$am_depcomp" conftest.dir
2875   cd conftest.dir
2876   # We will build objects and dependencies in a subdirectory because
2877   # it helps to detect inapplicable dependency modes.  For instance
2878   # both Tru64's cc and ICC support -MD to output dependencies as a
2879   # side effect of compilation, but ICC will put the dependencies in
2880   # the current directory while Tru64 will put them in the object
2881   # directory.
2882   mkdir sub
2883
2884   am_cv_CC_dependencies_compiler_type=none
2885   if test "$am_compiler_list" = ""; then
2886      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2887   fi
2888   for depmode in $am_compiler_list; do
2889     # Setup a source with many dependencies, because some compilers
2890     # like to wrap large dependency lists on column 80 (with \), and
2891     # we should not choose a depcomp mode which is confused by this.
2892     #
2893     # We need to recreate these files for each test, as the compiler may
2894     # overwrite some of them when testing with obscure command lines.
2895     # This happens at least with the AIX C compiler.
2896     : > sub/conftest.c
2897     for i in 1 2 3 4 5 6; do
2898       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2899       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2900       # Solaris 8's {/usr,}/bin/sh.
2901       touch sub/conftst$i.h
2902     done
2903     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2904
2905     case $depmode in
2906     nosideeffect)
2907       # after this tag, mechanisms are not by side-effect, so they'll
2908       # only be used when explicitly requested
2909       if test "x$enable_dependency_tracking" = xyes; then
2910         continue
2911       else
2912         break
2913       fi
2914       ;;
2915     none) break ;;
2916     esac
2917     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2918     # mode.  It turns out that the SunPro C++ compiler does not properly
2919     # handle `-M -o', and we need to detect this.
2920     if depmode=$depmode \
2921        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2922        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2923        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2924          >/dev/null 2>conftest.err &&
2925        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2926        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2927        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2928       # icc doesn't choke on unknown options, it will just issue warnings
2929       # or remarks (even with -Werror).  So we grep stderr for any message
2930       # that says an option was ignored or not supported.
2931       # When given -MP, icc 7.0 and 7.1 complain thusly:
2932       #   icc: Command line warning: ignoring option '-M'; no argument required
2933       # The diagnosis changed in icc 8.0:
2934       #   icc: Command line remark: option '-MP' not supported
2935       if (grep 'ignoring option' conftest.err ||
2936           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2937         am_cv_CC_dependencies_compiler_type=$depmode
2938         break
2939       fi
2940     fi
2941   done
2942
2943   cd ..
2944   rm -rf conftest.dir
2945 else
2946   am_cv_CC_dependencies_compiler_type=none
2947 fi
2948
2949 fi
2950 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2951 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2952 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2953
2954
2955
2956 if
2957   test "x$enable_dependency_tracking" != xno \
2958   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2959   am__fastdepCC_TRUE=
2960   am__fastdepCC_FALSE='#'
2961 else
2962   am__fastdepCC_TRUE='#'
2963   am__fastdepCC_FALSE=
2964 fi
2965
2966
2967 if test -n "$ac_tool_prefix"; then
2968   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2970 echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2972 if test "${ac_cv_prog_RANLIB+set}" = set; then
2973   echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975   if test -n "$RANLIB"; then
2976   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983   for ac_exec_ext in '' $ac_executable_extensions; do
2984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988   fi
2989 done
2990 done
2991
2992 fi
2993 fi
2994 RANLIB=$ac_cv_prog_RANLIB
2995 if test -n "$RANLIB"; then
2996   echo "$as_me:$LINENO: result: $RANLIB" >&5
2997 echo "${ECHO_T}$RANLIB" >&6
2998 else
2999   echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6
3001 fi
3002
3003 fi
3004 if test -z "$ac_cv_prog_RANLIB"; then
3005   ac_ct_RANLIB=$RANLIB
3006   # Extract the first word of "ranlib", so it can be a program name with args.
3007 set dummy ranlib; ac_word=$2
3008 echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013   if test -n "$ac_ct_RANLIB"; then
3014   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021   for ac_exec_ext in '' $ac_executable_extensions; do
3022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023     ac_cv_prog_ac_ct_RANLIB="ranlib"
3024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028 done
3029
3030   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3031 fi
3032 fi
3033 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3034 if test -n "$ac_ct_RANLIB"; then
3035   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3036 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3037 else
3038   echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6
3040 fi
3041
3042   RANLIB=$ac_ct_RANLIB
3043 else
3044   RANLIB="$ac_cv_prog_RANLIB"
3045 fi
3046
3047
3048 # Checks for header files.
3049
3050 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3051 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3052 if test "${ac_cv_header_time+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055   cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061 #include <sys/types.h>
3062 #include <sys/time.h>
3063 #include <time.h>
3064
3065 int
3066 main ()
3067 {
3068 if ((struct tm *) 0)
3069 return 0;
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076   (eval $ac_compile) 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -z "$ac_c_werror_flag"
3084                          || test ! -s conftest.err'
3085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086   (eval $ac_try) 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; } &&
3090          { ac_try='test -s conftest.$ac_objext'
3091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092   (eval $ac_try) 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); }; }; then
3096   ac_cv_header_time=yes
3097 else
3098   echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101 ac_cv_header_time=no
3102 fi
3103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3104 fi
3105 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3106 echo "${ECHO_T}$ac_cv_header_time" >&6
3107 if test $ac_cv_header_time = yes; then
3108
3109 cat >>confdefs.h <<\_ACEOF
3110 #define TIME_WITH_SYS_TIME 1
3111 _ACEOF
3112
3113 fi
3114
3115 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
3116 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
3117 if test "${gcc_cv_header_string+set}" = set; then
3118   echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120   cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126 #include <string.h>
3127 #include <strings.h>
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138   (eval $ac_compile) 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -z "$ac_c_werror_flag"
3146                          || test ! -s conftest.err'
3147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148   (eval $ac_try) 2>&5
3149   ac_status=$?
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }; } &&
3152          { ac_try='test -s conftest.$ac_objext'
3153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154   (eval $ac_try) 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; }; then
3158   gcc_cv_header_string=yes
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 gcc_cv_header_string=no
3164 fi
3165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3166 fi
3167 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
3168 echo "${ECHO_T}$gcc_cv_header_string" >&6
3169 if test $gcc_cv_header_string = yes; then
3170
3171 cat >>confdefs.h <<\_ACEOF
3172 #define STRING_WITH_STRINGS 1
3173 _ACEOF
3174
3175 fi
3176
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3183 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3184 # On Suns, sometimes $CPP names a directory.
3185 if test -n "$CPP" && test -d "$CPP"; then
3186   CPP=
3187 fi
3188 if test -z "$CPP"; then
3189   if test "${ac_cv_prog_CPP+set}" = set; then
3190   echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192       # Double quotes because CPP needs to be expanded
3193     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3194     do
3195       ac_preproc_ok=false
3196 for ac_c_preproc_warn_flag in '' yes
3197 do
3198   # Use a header file that comes with gcc, so configuring glibc
3199   # with a fresh cross-compiler works.
3200   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3201   # <limits.h> exists even on freestanding compilers.
3202   # On the NeXT, cc -E runs the code through the compiler's parser,
3203   # not just through cpp. "Syntax error" is here to catch this case.
3204   cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h.  */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h.  */
3210 #ifdef __STDC__
3211 # include <limits.h>
3212 #else
3213 # include <assert.h>
3214 #endif
3215                      Syntax error
3216 _ACEOF
3217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3218   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3219   ac_status=$?
3220   grep -v '^ *+' conftest.er1 >conftest.err
3221   rm -f conftest.er1
3222   cat conftest.err >&5
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); } >/dev/null; then
3225   if test -s conftest.err; then
3226     ac_cpp_err=$ac_c_preproc_warn_flag
3227     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3228   else
3229     ac_cpp_err=
3230   fi
3231 else
3232   ac_cpp_err=yes
3233 fi
3234 if test -z "$ac_cpp_err"; then
3235   :
3236 else
3237   echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240   # Broken: fails on valid input.
3241 continue
3242 fi
3243 rm -f conftest.err conftest.$ac_ext
3244
3245   # OK, works on sane cases.  Now check whether non-existent headers
3246   # can be detected and how.
3247   cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h.  */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h.  */
3253 #include <ac_nonexistent.h>
3254 _ACEOF
3255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3257   ac_status=$?
3258   grep -v '^ *+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } >/dev/null; then
3263   if test -s conftest.err; then
3264     ac_cpp_err=$ac_c_preproc_warn_flag
3265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3266   else
3267     ac_cpp_err=
3268   fi
3269 else
3270   ac_cpp_err=yes
3271 fi
3272 if test -z "$ac_cpp_err"; then
3273   # Broken: success on invalid input.
3274 continue
3275 else
3276   echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3278
3279   # Passes both tests.
3280 ac_preproc_ok=:
3281 break
3282 fi
3283 rm -f conftest.err conftest.$ac_ext
3284
3285 done
3286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3287 rm -f conftest.err conftest.$ac_ext
3288 if $ac_preproc_ok; then
3289   break
3290 fi
3291
3292     done
3293     ac_cv_prog_CPP=$CPP
3294
3295 fi
3296   CPP=$ac_cv_prog_CPP
3297 else
3298   ac_cv_prog_CPP=$CPP
3299 fi
3300 echo "$as_me:$LINENO: result: $CPP" >&5
3301 echo "${ECHO_T}$CPP" >&6
3302 ac_preproc_ok=false
3303 for ac_c_preproc_warn_flag in '' yes
3304 do
3305   # Use a header file that comes with gcc, so configuring glibc
3306   # with a fresh cross-compiler works.
3307   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3308   # <limits.h> exists even on freestanding compilers.
3309   # On the NeXT, cc -E runs the code through the compiler's parser,
3310   # not just through cpp. "Syntax error" is here to catch this case.
3311   cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h.  */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h.  */
3317 #ifdef __STDC__
3318 # include <limits.h>
3319 #else
3320 # include <assert.h>
3321 #endif
3322                      Syntax error
3323 _ACEOF
3324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3326   ac_status=$?
3327   grep -v '^ *+' conftest.er1 >conftest.err
3328   rm -f conftest.er1
3329   cat conftest.err >&5
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); } >/dev/null; then
3332   if test -s conftest.err; then
3333     ac_cpp_err=$ac_c_preproc_warn_flag
3334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3335   else
3336     ac_cpp_err=
3337   fi
3338 else
3339   ac_cpp_err=yes
3340 fi
3341 if test -z "$ac_cpp_err"; then
3342   :
3343 else
3344   echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347   # Broken: fails on valid input.
3348 continue
3349 fi
3350 rm -f conftest.err conftest.$ac_ext
3351
3352   # OK, works on sane cases.  Now check whether non-existent headers
3353   # can be detected and how.
3354   cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h.  */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h.  */
3360 #include <ac_nonexistent.h>
3361 _ACEOF
3362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3364   ac_status=$?
3365   grep -v '^ *+' conftest.er1 >conftest.err
3366   rm -f conftest.er1
3367   cat conftest.err >&5
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); } >/dev/null; then
3370   if test -s conftest.err; then
3371     ac_cpp_err=$ac_c_preproc_warn_flag
3372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3373   else
3374     ac_cpp_err=
3375   fi
3376 else
3377   ac_cpp_err=yes
3378 fi
3379 if test -z "$ac_cpp_err"; then
3380   # Broken: success on invalid input.
3381 continue
3382 else
3383   echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386   # Passes both tests.
3387 ac_preproc_ok=:
3388 break
3389 fi
3390 rm -f conftest.err conftest.$ac_ext
3391
3392 done
3393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3394 rm -f conftest.err conftest.$ac_ext
3395 if $ac_preproc_ok; then
3396   :
3397 else
3398   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3399 See \`config.log' for more details." >&5
3400 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3401 See \`config.log' for more details." >&2;}
3402    { (exit 1); exit 1; }; }
3403 fi
3404
3405 ac_ext=c
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410
3411
3412 echo "$as_me:$LINENO: checking for egrep" >&5
3413 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3414 if test "${ac_cv_prog_egrep+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3418     then ac_cv_prog_egrep='grep -E'
3419     else ac_cv_prog_egrep='egrep'
3420     fi
3421 fi
3422 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3423 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3424  EGREP=$ac_cv_prog_egrep
3425
3426
3427 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3428 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3429 if test "${ac_cv_header_stdc+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438 #include <stdlib.h>
3439 #include <stdarg.h>
3440 #include <string.h>
3441 #include <float.h>
3442
3443 int
3444 main ()
3445 {
3446
3447   ;
3448   return 0;
3449 }
3450 _ACEOF
3451 rm -f conftest.$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453   (eval $ac_compile) 2>conftest.er1
3454   ac_status=$?
3455   grep -v '^ *+' conftest.er1 >conftest.err
3456   rm -f conftest.er1
3457   cat conftest.err >&5
3458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459   (exit $ac_status); } &&
3460          { ac_try='test -z "$ac_c_werror_flag"
3461                          || test ! -s conftest.err'
3462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463   (eval $ac_try) 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); }; } &&
3467          { ac_try='test -s conftest.$ac_objext'
3468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469   (eval $ac_try) 2>&5
3470   ac_status=$?
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); }; }; then
3473   ac_cv_header_stdc=yes
3474 else
3475   echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 ac_cv_header_stdc=no
3479 fi
3480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3481
3482 if test $ac_cv_header_stdc = yes; then
3483   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3484   cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3490 #include <string.h>
3491
3492 _ACEOF
3493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494   $EGREP "memchr" >/dev/null 2>&1; then
3495   :
3496 else
3497   ac_cv_header_stdc=no
3498 fi
3499 rm -f conftest*
3500
3501 fi
3502
3503 if test $ac_cv_header_stdc = yes; then
3504   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3505   cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511 #include <stdlib.h>
3512
3513 _ACEOF
3514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3515   $EGREP "free" >/dev/null 2>&1; then
3516   :
3517 else
3518   ac_cv_header_stdc=no
3519 fi
3520 rm -f conftest*
3521
3522 fi
3523
3524 if test $ac_cv_header_stdc = yes; then
3525   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3526   if test "$cross_compiling" = yes; then
3527   :
3528 else
3529   cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h.  */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h.  */
3535 #include <ctype.h>
3536 #if ((' ' & 0x0FF) == 0x020)
3537 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3538 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3539 #else
3540 # define ISLOWER(c) \
3541                    (('a' <= (c) && (c) <= 'i') \
3542                      || ('j' <= (c) && (c) <= 'r') \
3543                      || ('s' <= (c) && (c) <= 'z'))
3544 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3545 #endif
3546
3547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3548 int
3549 main ()
3550 {
3551   int i;
3552   for (i = 0; i < 256; i++)
3553     if (XOR (islower (i), ISLOWER (i))
3554         || toupper (i) != TOUPPER (i))
3555       exit(2);
3556   exit (0);
3557 }
3558 _ACEOF
3559 rm -f conftest$ac_exeext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3561   (eval $ac_link) 2>&5
3562   ac_status=$?
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566   (eval $ac_try) 2>&5
3567   ac_status=$?
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); }; }; then
3570   :
3571 else
3572   echo "$as_me: program exited with status $ac_status" >&5
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 ( exit $ac_status )
3577 ac_cv_header_stdc=no
3578 fi
3579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3580 fi
3581 fi
3582 fi
3583 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3584 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3585 if test $ac_cv_header_stdc = yes; then
3586
3587 cat >>confdefs.h <<\_ACEOF
3588 #define STDC_HEADERS 1
3589 _ACEOF
3590
3591 fi
3592
3593 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3604                   inttypes.h stdint.h unistd.h
3605 do
3606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3607 echo "$as_me:$LINENO: checking for $ac_header" >&5
3608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h.  */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h.  */
3618 $ac_includes_default
3619
3620 #include <$ac_header>
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624   (eval $ac_compile) 2>conftest.er1
3625   ac_status=$?
3626   grep -v '^ *+' conftest.er1 >conftest.err
3627   rm -f conftest.er1
3628   cat conftest.err >&5
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); } &&
3631          { ac_try='test -z "$ac_c_werror_flag"
3632                          || test ! -s conftest.err'
3633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634   (eval $ac_try) 2>&5
3635   ac_status=$?
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); }; } &&
3638          { ac_try='test -s conftest.$ac_objext'
3639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640   (eval $ac_try) 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); }; }; then
3644   eval "$as_ac_Header=yes"
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 eval "$as_ac_Header=no"
3650 fi
3651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3652 fi
3653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3656   cat >>confdefs.h <<_ACEOF
3657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3658 _ACEOF
3659
3660 fi
3661
3662 done
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675 for ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \
3676         stdlib.h strings.h string.h sys/file.h unistd.h
3677 do
3678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3680   echo "$as_me:$LINENO: checking for $ac_header" >&5
3681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 fi
3685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3687 else
3688   # Is the header compilable?
3689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h.  */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h.  */
3697 $ac_includes_default
3698 #include <$ac_header>
3699 _ACEOF
3700 rm -f conftest.$ac_objext
3701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702   (eval $ac_compile) 2>conftest.er1
3703   ac_status=$?
3704   grep -v '^ *+' conftest.er1 >conftest.err
3705   rm -f conftest.er1
3706   cat conftest.err >&5
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); } &&
3709          { ac_try='test -z "$ac_c_werror_flag"
3710                          || test ! -s conftest.err'
3711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712   (eval $ac_try) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }; } &&
3716          { ac_try='test -s conftest.$ac_objext'
3717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718   (eval $ac_try) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; }; then
3722   ac_header_compiler=yes
3723 else
3724   echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 ac_header_compiler=no
3728 fi
3729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3731 echo "${ECHO_T}$ac_header_compiler" >&6
3732
3733 # Is the header present?
3734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h.  */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h.  */
3742 #include <$ac_header>
3743 _ACEOF
3744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3746   ac_status=$?
3747   grep -v '^ *+' conftest.er1 >conftest.err
3748   rm -f conftest.er1
3749   cat conftest.err >&5
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } >/dev/null; then
3752   if test -s conftest.err; then
3753     ac_cpp_err=$ac_c_preproc_warn_flag
3754     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3755   else
3756     ac_cpp_err=
3757   fi
3758 else
3759   ac_cpp_err=yes
3760 fi
3761 if test -z "$ac_cpp_err"; then
3762   ac_header_preproc=yes
3763 else
3764   echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767   ac_header_preproc=no
3768 fi
3769 rm -f conftest.err conftest.$ac_ext
3770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3771 echo "${ECHO_T}$ac_header_preproc" >&6
3772
3773 # So?  What about this header?
3774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3775   yes:no: )
3776     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3780     ac_header_preproc=yes
3781     ;;
3782   no:yes:* )
3783     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3785     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3786 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3787     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3789     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3790 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3793     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3795     (
3796       cat <<\_ASBOX
3797 ## ----------------------------------- ##
3798 ## Report this to gcc-bugs@gcc.gnu.org ##
3799 ## ----------------------------------- ##
3800 _ASBOX
3801     ) |
3802       sed "s/^/$as_me: WARNING:     /" >&2
3803     ;;
3804 esac
3805 echo "$as_me:$LINENO: checking for $ac_header" >&5
3806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   eval "$as_ac_Header=\$ac_header_preproc"
3811 fi
3812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3814
3815 fi
3816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817   cat >>confdefs.h <<_ACEOF
3818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3819 _ACEOF
3820
3821 fi
3822
3823 done
3824
3825
3826 # Checks for typedefs, structures, and compiler characteristics.
3827 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3828 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3829 if test "${ac_cv_c_const+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838
3839 int
3840 main ()
3841 {
3842 /* FIXME: Include the comments suggested by Paul. */
3843 #ifndef __cplusplus
3844   /* Ultrix mips cc rejects this.  */
3845   typedef int charset[2];
3846   const charset x;
3847   /* SunOS 4.1.1 cc rejects this.  */
3848   char const *const *ccp;
3849   char **p;
3850   /* NEC SVR4.0.2 mips cc rejects this.  */
3851   struct point {int x, y;};
3852   static struct point const zero = {0,0};
3853   /* AIX XL C 1.02.0.0 rejects this.
3854      It does not let you subtract one const X* pointer from another in
3855      an arm of an if-expression whose if-part is not a constant
3856      expression */
3857   const char *g = "string";
3858   ccp = &g + (g ? g-g : 0);
3859   /* HPUX 7.0 cc rejects these. */
3860   ++ccp;
3861   p = (char**) ccp;
3862   ccp = (char const *const *) p;
3863   { /* SCO 3.2v4 cc rejects this.  */
3864     char *t;
3865     char const *s = 0 ? (char *) 0 : (char const *) 0;
3866
3867     *t++ = 0;
3868   }
3869   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3870     int x[] = {25, 17};
3871     const int *foo = &x[0];
3872     ++foo;
3873   }
3874   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3875     typedef const int *iptr;
3876     iptr p = 0;
3877     ++p;
3878   }
3879   { /* AIX XL C 1.02.0.0 rejects this saying
3880        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3881     struct s { int j; const int *ap[3]; };
3882     struct s *b; b->j = 5;
3883   }
3884   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3885     const int foo = 10;
3886   }
3887 #endif
3888
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 rm -f conftest.$ac_objext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895   (eval $ac_compile) 2>conftest.er1
3896   ac_status=$?
3897   grep -v '^ *+' conftest.er1 >conftest.err
3898   rm -f conftest.er1
3899   cat conftest.err >&5
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); } &&
3902          { ac_try='test -z "$ac_c_werror_flag"
3903                          || test ! -s conftest.err'
3904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905   (eval $ac_try) 2>&5
3906   ac_status=$?
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); }; } &&
3909          { ac_try='test -s conftest.$ac_objext'
3910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911   (eval $ac_try) 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); }; }; then
3915   ac_cv_c_const=yes
3916 else
3917   echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 ac_cv_c_const=no
3921 fi
3922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3925 echo "${ECHO_T}$ac_cv_c_const" >&6
3926 if test $ac_cv_c_const = no; then
3927
3928 cat >>confdefs.h <<\_ACEOF
3929 #define const
3930 _ACEOF
3931
3932 fi
3933
3934 echo "$as_me:$LINENO: checking for inline" >&5
3935 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3936 if test "${ac_cv_c_inline+set}" = set; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939   ac_cv_c_inline=no
3940 for ac_kw in inline __inline__ __inline; do
3941   cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h.  */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h.  */
3947 #ifndef __cplusplus
3948 typedef int foo_t;
3949 static $ac_kw foo_t static_foo () {return 0; }
3950 $ac_kw foo_t foo () {return 0; }
3951 #endif
3952
3953 _ACEOF
3954 rm -f conftest.$ac_objext
3955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956   (eval $ac_compile) 2>conftest.er1
3957   ac_status=$?
3958   grep -v '^ *+' conftest.er1 >conftest.err
3959   rm -f conftest.er1
3960   cat conftest.err >&5
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); } &&
3963          { ac_try='test -z "$ac_c_werror_flag"
3964                          || test ! -s conftest.err'
3965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966   (eval $ac_try) 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); }; } &&
3970          { ac_try='test -s conftest.$ac_objext'
3971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972   (eval $ac_try) 2>&5
3973   ac_status=$?
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); }; }; then
3976   ac_cv_c_inline=$ac_kw; break
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 fi
3982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3983 done
3984
3985 fi
3986 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3987 echo "${ECHO_T}$ac_cv_c_inline" >&6
3988
3989
3990 case $ac_cv_c_inline in
3991   inline | yes) ;;
3992   *)
3993     case $ac_cv_c_inline in
3994       no) ac_val=;;
3995       *) ac_val=$ac_cv_c_inline;;
3996     esac
3997     cat >>confdefs.h <<_ACEOF
3998 #ifndef __cplusplus
3999 #define inline $ac_val
4000 #endif
4001 _ACEOF
4002     ;;
4003 esac
4004
4005 echo "$as_me:$LINENO: checking for obstacks" >&5
4006 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
4007 if test "${ac_cv_func_obstack+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h.  */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h.  */
4016 #include "obstack.h"
4017 int
4018 main ()
4019 {
4020 struct obstack *mem; obstack_free(mem,(char *) 0)
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 rm -f conftest.$ac_objext conftest$ac_exeext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4027   (eval $ac_link) 2>conftest.er1
4028   ac_status=$?
4029   grep -v '^ *+' conftest.er1 >conftest.err
4030   rm -f conftest.er1
4031   cat conftest.err >&5
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); } &&
4034          { ac_try='test -z "$ac_c_werror_flag"
4035                          || test ! -s conftest.err'
4036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037   (eval $ac_try) 2>&5
4038   ac_status=$?
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); }; } &&
4041          { ac_try='test -s conftest$ac_exeext'
4042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043   (eval $ac_try) 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; }; then
4047   ac_cv_func_obstack=yes
4048 else
4049   echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4051
4052 ac_cv_func_obstack=no
4053 fi
4054 rm -f conftest.err conftest.$ac_objext \
4055       conftest$ac_exeext conftest.$ac_ext
4056 fi
4057 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
4058 echo "${ECHO_T}$ac_cv_func_obstack" >&6
4059 if test $ac_cv_func_obstack = yes; then
4060
4061 cat >>confdefs.h <<\_ACEOF
4062 #define HAVE_OBSTACK 1
4063 _ACEOF
4064
4065 else
4066   case $LIBOBJS in
4067     "obstack.$ac_objext"   | \
4068   *" obstack.$ac_objext"   | \
4069     "obstack.$ac_objext "* | \
4070   *" obstack.$ac_objext "* ) ;;
4071   *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
4072 esac
4073
4074 fi
4075
4076 echo "$as_me:$LINENO: checking for off_t" >&5
4077 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4078 if test "${ac_cv_type_off_t+set}" = set; then
4079   echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081   cat >conftest.$ac_ext <<_ACEOF
4082 /* confdefs.h.  */
4083 _ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h.  */
4087 $ac_includes_default
4088 int
4089 main ()
4090 {
4091 if ((off_t *) 0)
4092   return 0;
4093 if (sizeof (off_t))
4094   return 0;
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101   (eval $ac_compile) 2>conftest.er1
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
4105   cat conftest.err >&5
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } &&
4108          { ac_try='test -z "$ac_c_werror_flag"
4109                          || test ! -s conftest.err'
4110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111   (eval $ac_try) 2>&5
4112   ac_status=$?
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); }; } &&
4115          { ac_try='test -s conftest.$ac_objext'
4116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117   (eval $ac_try) 2>&5
4118   ac_status=$?
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); }; }; then
4121   ac_cv_type_off_t=yes
4122 else
4123   echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 ac_cv_type_off_t=no
4127 fi
4128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129 fi
4130 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4131 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4132 if test $ac_cv_type_off_t = yes; then
4133   :
4134 else
4135
4136 cat >>confdefs.h <<_ACEOF
4137 #define off_t long
4138 _ACEOF
4139
4140 fi
4141
4142 echo "$as_me:$LINENO: checking for size_t" >&5
4143 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4144 if test "${ac_cv_type_size_t+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h.  */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h.  */
4153 $ac_includes_default
4154 int
4155 main ()
4156 {
4157 if ((size_t *) 0)
4158   return 0;
4159 if (sizeof (size_t))
4160   return 0;
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167   (eval $ac_compile) 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } &&
4174          { ac_try='test -z "$ac_c_werror_flag"
4175                          || test ! -s conftest.err'
4176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177   (eval $ac_try) 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; } &&
4181          { ac_try='test -s conftest.$ac_objext'
4182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183   (eval $ac_try) 2>&5
4184   ac_status=$?
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); }; }; then
4187   ac_cv_type_size_t=yes
4188 else
4189   echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4191
4192 ac_cv_type_size_t=no
4193 fi
4194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4195 fi
4196 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4197 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4198 if test $ac_cv_type_size_t = yes; then
4199   :
4200 else
4201
4202 cat >>confdefs.h <<_ACEOF
4203 #define size_t unsigned
4204 _ACEOF
4205
4206 fi
4207
4208 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4209 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4210 if test "${ac_cv_struct_tm+set}" = set; then
4211   echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213   cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h.  */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h.  */
4219 #include <sys/types.h>
4220 #include <time.h>
4221
4222 int
4223 main ()
4224 {
4225 struct tm *tp; tp->tm_sec;
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest.$ac_objext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232   (eval $ac_compile) 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } &&
4239          { ac_try='test -z "$ac_c_werror_flag"
4240                          || test ! -s conftest.err'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; } &&
4246          { ac_try='test -s conftest.$ac_objext'
4247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248   (eval $ac_try) 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; }; then
4252   ac_cv_struct_tm=time.h
4253 else
4254   echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ac_cv_struct_tm=sys/time.h
4258 fi
4259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4260 fi
4261 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4262 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4263 if test $ac_cv_struct_tm = sys/time.h; then
4264
4265 cat >>confdefs.h <<\_ACEOF
4266 #define TM_IN_SYS_TIME 1
4267 _ACEOF
4268
4269 fi
4270
4271 echo "$as_me:$LINENO: checking for int" >&5
4272 echo $ECHO_N "checking for int... $ECHO_C" >&6
4273 if test "${ac_cv_type_int+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h.  */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h.  */
4282 $ac_includes_default
4283 int
4284 main ()
4285 {
4286 if ((int *) 0)
4287   return 0;
4288 if (sizeof (int))
4289   return 0;
4290   ;
4291   return 0;
4292 }
4293 _ACEOF
4294 rm -f conftest.$ac_objext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296   (eval $ac_compile) 2>conftest.er1
4297   ac_status=$?
4298   grep -v '^ *+' conftest.er1 >conftest.err
4299   rm -f conftest.er1
4300   cat conftest.err >&5
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); } &&
4303          { ac_try='test -z "$ac_c_werror_flag"
4304                          || test ! -s conftest.err'
4305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306   (eval $ac_try) 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); }; } &&
4310          { ac_try='test -s conftest.$ac_objext'
4311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312   (eval $ac_try) 2>&5
4313   ac_status=$?
4314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315   (exit $ac_status); }; }; then
4316   ac_cv_type_int=yes
4317 else
4318   echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4320
4321 ac_cv_type_int=no
4322 fi
4323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4324 fi
4325 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4326 echo "${ECHO_T}$ac_cv_type_int" >&6
4327
4328 echo "$as_me:$LINENO: checking size of int" >&5
4329 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4330 if test "${ac_cv_sizeof_int+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   if test "$ac_cv_type_int" = yes; then
4334   # The cast to unsigned long works around a bug in the HP C Compiler
4335   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4336   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4337   # This bug is HP SR number 8606223364.
4338   if test "$cross_compiling" = yes; then
4339   # Depending upon the size, compute the lo and hi bounds.
4340 cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h.  */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h.  */
4346 $ac_includes_default
4347 int
4348 main ()
4349 {
4350 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4351 test_array [0] = 0
4352
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 rm -f conftest.$ac_objext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359   (eval $ac_compile) 2>conftest.er1
4360   ac_status=$?
4361   grep -v '^ *+' conftest.er1 >conftest.err
4362   rm -f conftest.er1
4363   cat conftest.err >&5
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); } &&
4366          { ac_try='test -z "$ac_c_werror_flag"
4367                          || test ! -s conftest.err'
4368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369   (eval $ac_try) 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; } &&
4373          { ac_try='test -s conftest.$ac_objext'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; }; then
4379   ac_lo=0 ac_mid=0
4380   while :; do
4381     cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h.  */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h.  */
4387 $ac_includes_default
4388 int
4389 main ()
4390 {
4391 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4392 test_array [0] = 0
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400   (eval $ac_compile) 2>conftest.er1
4401   ac_status=$?
4402   grep -v '^ *+' conftest.er1 >conftest.err
4403   rm -f conftest.er1
4404   cat conftest.err >&5
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } &&
4407          { ac_try='test -z "$ac_c_werror_flag"
4408                          || test ! -s conftest.err'
4409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410   (eval $ac_try) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; } &&
4414          { ac_try='test -s conftest.$ac_objext'
4415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416   (eval $ac_try) 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; }; then
4420   ac_hi=$ac_mid; break
4421 else
4422   echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4424
4425 ac_lo=`expr $ac_mid + 1`
4426                     if test $ac_lo -le $ac_mid; then
4427                       ac_lo= ac_hi=
4428                       break
4429                     fi
4430                     ac_mid=`expr 2 '*' $ac_mid + 1`
4431 fi
4432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4433   done
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 $ac_includes_default
4445 int
4446 main ()
4447 {
4448 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4449 test_array [0] = 0
4450
4451   ;
4452   return 0;
4453 }
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457   (eval $ac_compile) 2>conftest.er1
4458   ac_status=$?
4459   grep -v '^ *+' conftest.er1 >conftest.err
4460   rm -f conftest.er1
4461   cat conftest.err >&5
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); } &&
4464          { ac_try='test -z "$ac_c_werror_flag"
4465                          || test ! -s conftest.err'
4466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467   (eval $ac_try) 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; } &&
4471          { ac_try='test -s conftest.$ac_objext'
4472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473   (eval $ac_try) 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); }; }; then
4477   ac_hi=-1 ac_mid=-1
4478   while :; do
4479     cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485 $ac_includes_default
4486 int
4487 main ()
4488 {
4489 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4490 test_array [0] = 0
4491
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 rm -f conftest.$ac_objext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498   (eval $ac_compile) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -z "$ac_c_werror_flag"
4506                          || test ! -s conftest.err'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; } &&
4512          { ac_try='test -s conftest.$ac_objext'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   ac_lo=$ac_mid; break
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523 ac_hi=`expr '(' $ac_mid ')' - 1`
4524                        if test $ac_mid -le $ac_hi; then
4525                          ac_lo= ac_hi=
4526                          break
4527                        fi
4528                        ac_mid=`expr 2 '*' $ac_mid`
4529 fi
4530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4531   done
4532 else
4533   echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4535
4536 ac_lo= ac_hi=
4537 fi
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4539 fi
4540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4541 # Binary search between lo and hi bounds.
4542 while test "x$ac_lo" != "x$ac_hi"; do
4543   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4544   cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 $ac_includes_default
4551 int
4552 main ()
4553 {
4554 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4555 test_array [0] = 0
4556
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563   (eval $ac_compile) 2>conftest.er1
4564   ac_status=$?
4565   grep -v '^ *+' conftest.er1 >conftest.err
4566   rm -f conftest.er1
4567   cat conftest.err >&5
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); } &&
4570          { ac_try='test -z "$ac_c_werror_flag"
4571                          || test ! -s conftest.err'
4572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573   (eval $ac_try) 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; } &&
4577          { ac_try='test -s conftest.$ac_objext'
4578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579   (eval $ac_try) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; }; then
4583   ac_hi=$ac_mid
4584 else
4585   echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 ac_lo=`expr '(' $ac_mid ')' + 1`
4589 fi
4590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4591 done
4592 case $ac_lo in
4593 ?*) ac_cv_sizeof_int=$ac_lo;;
4594 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4595 See \`config.log' for more details." >&5
4596 echo "$as_me: error: cannot compute sizeof (int), 77
4597 See \`config.log' for more details." >&2;}
4598    { (exit 1); exit 1; }; } ;;
4599 esac
4600 else
4601   if test "$cross_compiling" = yes; then
4602   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4603 See \`config.log' for more details." >&5
4604 echo "$as_me: error: cannot run test program while cross compiling
4605 See \`config.log' for more details." >&2;}
4606    { (exit 1); exit 1; }; }
4607 else
4608   cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h.  */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h.  */
4614 $ac_includes_default
4615 long longval () { return (long) (sizeof (int)); }
4616 unsigned long ulongval () { return (long) (sizeof (int)); }
4617 #include <stdio.h>
4618 #include <stdlib.h>
4619 int
4620 main ()
4621 {
4622
4623   FILE *f = fopen ("conftest.val", "w");
4624   if (! f)
4625     exit (1);
4626   if (((long) (sizeof (int))) < 0)
4627     {
4628       long i = longval ();
4629       if (i != ((long) (sizeof (int))))
4630         exit (1);
4631       fprintf (f, "%ld\n", i);
4632     }
4633   else
4634     {
4635       unsigned long i = ulongval ();
4636       if (i != ((long) (sizeof (int))))
4637         exit (1);
4638       fprintf (f, "%lu\n", i);
4639     }
4640   exit (ferror (f) || fclose (f) != 0);
4641
4642   ;
4643   return 0;
4644 }
4645 _ACEOF
4646 rm -f conftest$ac_exeext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4648   (eval $ac_link) 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653   (eval $ac_try) 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; }; then
4657   ac_cv_sizeof_int=`cat conftest.val`
4658 else
4659   echo "$as_me: program exited with status $ac_status" >&5
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663 ( exit $ac_status )
4664 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4665 See \`config.log' for more details." >&5
4666 echo "$as_me: error: cannot compute sizeof (int), 77
4667 See \`config.log' for more details." >&2;}
4668    { (exit 1); exit 1; }; }
4669 fi
4670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4671 fi
4672 fi
4673 rm -f conftest.val
4674 else
4675   ac_cv_sizeof_int=0
4676 fi
4677 fi
4678 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4679 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4680 cat >>confdefs.h <<_ACEOF
4681 #define SIZEOF_INT $ac_cv_sizeof_int
4682 _ACEOF
4683
4684
4685 echo "$as_me:$LINENO: checking for long" >&5
4686 echo $ECHO_N "checking for long... $ECHO_C" >&6
4687 if test "${ac_cv_type_long+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h.  */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h.  */
4696 $ac_includes_default
4697 int
4698 main ()
4699 {
4700 if ((long *) 0)
4701   return 0;
4702 if (sizeof (long))
4703   return 0;
4704   ;
4705   return 0;
4706 }
4707 _ACEOF
4708 rm -f conftest.$ac_objext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710   (eval $ac_compile) 2>conftest.er1
4711   ac_status=$?
4712   grep -v '^ *+' conftest.er1 >conftest.err
4713   rm -f conftest.er1
4714   cat conftest.err >&5
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); } &&
4717          { ac_try='test -z "$ac_c_werror_flag"
4718                          || test ! -s conftest.err'
4719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720   (eval $ac_try) 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); }; } &&
4724          { ac_try='test -s conftest.$ac_objext'
4725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726   (eval $ac_try) 2>&5
4727   ac_status=$?
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); }; }; then
4730   ac_cv_type_long=yes
4731 else
4732   echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 ac_cv_type_long=no
4736 fi
4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4738 fi
4739 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4740 echo "${ECHO_T}$ac_cv_type_long" >&6
4741
4742 echo "$as_me:$LINENO: checking size of long" >&5
4743 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4744 if test "${ac_cv_sizeof_long+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   if test "$ac_cv_type_long" = yes; then
4748   # The cast to unsigned long works around a bug in the HP C Compiler
4749   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4750   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4751   # This bug is HP SR number 8606223364.
4752   if test "$cross_compiling" = yes; then
4753   # Depending upon the size, compute the lo and hi bounds.
4754 cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h.  */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h.  */
4760 $ac_includes_default
4761 int
4762 main ()
4763 {
4764 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4765 test_array [0] = 0
4766
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773   (eval $ac_compile) 2>conftest.er1
4774   ac_status=$?
4775   grep -v '^ *+' conftest.er1 >conftest.err
4776   rm -f conftest.er1
4777   cat conftest.err >&5
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); } &&
4780          { ac_try='test -z "$ac_c_werror_flag"
4781                          || test ! -s conftest.err'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; } &&
4787          { ac_try='test -s conftest.$ac_objext'
4788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789   (eval $ac_try) 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; }; then
4793   ac_lo=0 ac_mid=0
4794   while :; do
4795     cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h.  */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h.  */
4801 $ac_includes_default
4802 int
4803 main ()
4804 {
4805 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4806 test_array [0] = 0
4807
4808   ;
4809   return 0;
4810 }
4811 _ACEOF
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814   (eval $ac_compile) 2>conftest.er1
4815   ac_status=$?
4816   grep -v '^ *+' conftest.er1 >conftest.err
4817   rm -f conftest.er1
4818   cat conftest.err >&5
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } &&
4821          { ac_try='test -z "$ac_c_werror_flag"
4822                          || test ! -s conftest.err'
4823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824   (eval $ac_try) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; } &&
4828          { ac_try='test -s conftest.$ac_objext'
4829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830   (eval $ac_try) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; }; then
4834   ac_hi=$ac_mid; break
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 ac_lo=`expr $ac_mid + 1`
4840                     if test $ac_lo -le $ac_mid; then
4841                       ac_lo= ac_hi=
4842                       break
4843                     fi
4844                     ac_mid=`expr 2 '*' $ac_mid + 1`
4845 fi
4846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4847   done
4848 else
4849   echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852 cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h.  */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h.  */
4858 $ac_includes_default
4859 int
4860 main ()
4861 {
4862 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4863 test_array [0] = 0
4864
4865   ;
4866   return 0;
4867 }
4868 _ACEOF
4869 rm -f conftest.$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871   (eval $ac_compile) 2>conftest.er1
4872   ac_status=$?
4873   grep -v '^ *+' conftest.er1 >conftest.err
4874   rm -f conftest.er1
4875   cat conftest.err >&5
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); } &&
4878          { ac_try='test -z "$ac_c_werror_flag"
4879                          || test ! -s conftest.err'
4880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881   (eval $ac_try) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; } &&
4885          { ac_try='test -s conftest.$ac_objext'
4886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887   (eval $ac_try) 2>&5
4888   ac_status=$?
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); }; }; then
4891   ac_hi=-1 ac_mid=-1
4892   while :; do
4893     cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h.  */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h.  */
4899 $ac_includes_default
4900 int
4901 main ()
4902 {
4903 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4904 test_array [0] = 0
4905
4906   ;
4907   return 0;
4908 }
4909 _ACEOF
4910 rm -f conftest.$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912   (eval $ac_compile) 2>conftest.er1
4913   ac_status=$?
4914   grep -v '^ *+' conftest.er1 >conftest.err
4915   rm -f conftest.er1
4916   cat conftest.err >&5
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); } &&
4919          { ac_try='test -z "$ac_c_werror_flag"
4920                          || test ! -s conftest.err'
4921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922   (eval $ac_try) 2>&5
4923   ac_status=$?
4924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925   (exit $ac_status); }; } &&
4926          { ac_try='test -s conftest.$ac_objext'
4927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928   (eval $ac_try) 2>&5
4929   ac_status=$?
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); }; }; then
4932   ac_lo=$ac_mid; break
4933 else
4934   echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4936
4937 ac_hi=`expr '(' $ac_mid ')' - 1`
4938                        if test $ac_mid -le $ac_hi; then
4939                          ac_lo= ac_hi=
4940                          break
4941                        fi
4942                        ac_mid=`expr 2 '*' $ac_mid`
4943 fi
4944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4945   done
4946 else
4947   echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 ac_lo= ac_hi=
4951 fi
4952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4953 fi
4954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4955 # Binary search between lo and hi bounds.
4956 while test "x$ac_lo" != "x$ac_hi"; do
4957   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4958   cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h.  */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h.  */
4964 $ac_includes_default
4965 int
4966 main ()
4967 {
4968 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4969 test_array [0] = 0
4970
4971   ;
4972   return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977   (eval $ac_compile) 2>conftest.er1
4978   ac_status=$?
4979   grep -v '^ *+' conftest.er1 >conftest.err
4980   rm -f conftest.er1
4981   cat conftest.err >&5
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); } &&
4984          { ac_try='test -z "$ac_c_werror_flag"
4985                          || test ! -s conftest.err'
4986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987   (eval $ac_try) 2>&5
4988   ac_status=$?
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); }; } &&
4991          { ac_try='test -s conftest.$ac_objext'
4992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993   (eval $ac_try) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); }; }; then
4997   ac_hi=$ac_mid
4998 else
4999   echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002 ac_lo=`expr '(' $ac_mid ')' + 1`
5003 fi
5004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5005 done
5006 case $ac_lo in
5007 ?*) ac_cv_sizeof_long=$ac_lo;;
5008 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5009 See \`config.log' for more details." >&5
5010 echo "$as_me: error: cannot compute sizeof (long), 77
5011 See \`config.log' for more details." >&2;}
5012    { (exit 1); exit 1; }; } ;;
5013 esac
5014 else
5015   if test "$cross_compiling" = yes; then
5016   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5017 See \`config.log' for more details." >&5
5018 echo "$as_me: error: cannot run test program while cross compiling
5019 See \`config.log' for more details." >&2;}
5020    { (exit 1); exit 1; }; }
5021 else
5022   cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h.  */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h.  */
5028 $ac_includes_default
5029 long longval () { return (long) (sizeof (long)); }
5030 unsigned long ulongval () { return (long) (sizeof (long)); }
5031 #include <stdio.h>
5032 #include <stdlib.h>
5033 int
5034 main ()
5035 {
5036
5037   FILE *f = fopen ("conftest.val", "w");
5038   if (! f)
5039     exit (1);
5040   if (((long) (sizeof (long))) < 0)
5041     {
5042       long i = longval ();
5043       if (i != ((long) (sizeof (long))))
5044         exit (1);
5045       fprintf (f, "%ld\n", i);
5046     }
5047   else
5048     {
5049       unsigned long i = ulongval ();
5050       if (i != ((long) (sizeof (long))))
5051         exit (1);
5052       fprintf (f, "%lu\n", i);
5053     }
5054   exit (ferror (f) || fclose (f) != 0);
5055
5056   ;
5057   return 0;
5058 }
5059 _ACEOF
5060 rm -f conftest$ac_exeext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062   (eval $ac_link) 2>&5
5063   ac_status=$?
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067   (eval $ac_try) 2>&5
5068   ac_status=$?
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); }; }; then
5071   ac_cv_sizeof_long=`cat conftest.val`
5072 else
5073   echo "$as_me: program exited with status $ac_status" >&5
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 ( exit $ac_status )
5078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5079 See \`config.log' for more details." >&5
5080 echo "$as_me: error: cannot compute sizeof (long), 77
5081 See \`config.log' for more details." >&2;}
5082    { (exit 1); exit 1; }; }
5083 fi
5084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5085 fi
5086 fi
5087 rm -f conftest.val
5088 else
5089   ac_cv_sizeof_long=0
5090 fi
5091 fi
5092 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5093 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5094 cat >>confdefs.h <<_ACEOF
5095 #define SIZEOF_LONG $ac_cv_sizeof_long
5096 _ACEOF
5097
5098
5099
5100
5101
5102
5103
5104 for ac_func in putc_unlocked fputc_unlocked fputs_unlocked \
5105         fwrite_unlocked fprintf_unlocked
5106 do
5107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5108 echo "$as_me:$LINENO: checking for $ac_func" >&5
5109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5110 if eval "test \"\${$as_ac_var+set}\" = set"; then
5111   echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113   cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h.  */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h.  */
5119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5121 #define $ac_func innocuous_$ac_func
5122
5123 /* System header to define __stub macros and hopefully few prototypes,
5124     which can conflict with char $ac_func (); below.
5125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5126     <limits.h> exists even on freestanding compilers.  */
5127
5128 #ifdef __STDC__
5129 # include <limits.h>
5130 #else
5131 # include <assert.h>
5132 #endif
5133
5134 #undef $ac_func
5135
5136 /* Override any gcc2 internal prototype to avoid an error.  */
5137 #ifdef __cplusplus
5138 extern "C"
5139 {
5140 #endif
5141 /* We use char because int might match the return type of a gcc2
5142    builtin and then its argument prototype would still apply.  */
5143 char $ac_func ();
5144 /* The GNU C library defines this for functions which it implements
5145     to always fail with ENOSYS.  Some functions are actually named
5146     something starting with __ and the normal name is an alias.  */
5147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5148 choke me
5149 #else
5150 char (*f) () = $ac_func;
5151 #endif
5152 #ifdef __cplusplus
5153 }
5154 #endif
5155
5156 int
5157 main ()
5158 {
5159 return f != $ac_func;
5160   ;
5161   return 0;
5162 }
5163 _ACEOF
5164 rm -f conftest.$ac_objext conftest$ac_exeext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5166   (eval $ac_link) 2>conftest.er1
5167   ac_status=$?
5168   grep -v '^ *+' conftest.er1 >conftest.err
5169   rm -f conftest.er1
5170   cat conftest.err >&5
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } &&
5173          { ac_try='test -z "$ac_c_werror_flag"
5174                          || test ! -s conftest.err'
5175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176   (eval $ac_try) 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }; } &&
5180          { ac_try='test -s conftest$ac_exeext'
5181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182   (eval $ac_try) 2>&5
5183   ac_status=$?
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); }; }; then
5186   eval "$as_ac_var=yes"
5187 else
5188   echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5190
5191 eval "$as_ac_var=no"
5192 fi
5193 rm -f conftest.err conftest.$ac_objext \
5194       conftest$ac_exeext conftest.$ac_ext
5195 fi
5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5198 if test `eval echo '${'$as_ac_var'}'` = yes; then
5199   cat >>confdefs.h <<_ACEOF
5200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5201 _ACEOF
5202
5203 fi
5204 done
5205
5206 echo "$as_me:$LINENO: checking whether abort is declared" >&5
5207 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
5208 if test "${ac_cv_have_decl_abort+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211   cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h.  */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h.  */
5217 $ac_includes_default
5218 int
5219 main ()
5220 {
5221 #ifndef abort
5222   char *p = (char *) abort;
5223 #endif
5224
5225   ;
5226   return 0;
5227 }
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231   (eval $ac_compile) 2>conftest.er1
5232   ac_status=$?
5233   grep -v '^ *+' conftest.er1 >conftest.err
5234   rm -f conftest.er1
5235   cat conftest.err >&5
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } &&
5238          { ac_try='test -z "$ac_c_werror_flag"
5239                          || test ! -s conftest.err'
5240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241   (eval $ac_try) 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); }; } &&
5245          { ac_try='test -s conftest.$ac_objext'
5246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247   (eval $ac_try) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }; }; then
5251   ac_cv_have_decl_abort=yes
5252 else
5253   echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5255
5256 ac_cv_have_decl_abort=no
5257 fi
5258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5259 fi
5260 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
5261 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
5262 if test $ac_cv_have_decl_abort = yes; then
5263
5264 cat >>confdefs.h <<_ACEOF
5265 #define HAVE_DECL_ABORT 1
5266 _ACEOF
5267
5268
5269 else
5270   cat >>confdefs.h <<_ACEOF
5271 #define HAVE_DECL_ABORT 0
5272 _ACEOF
5273
5274
5275 fi
5276 echo "$as_me:$LINENO: checking whether errno is declared" >&5
5277 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
5278 if test "${ac_cv_have_decl_errno+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h.  */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h.  */
5287 $ac_includes_default
5288 int
5289 main ()
5290 {
5291 #ifndef errno
5292   char *p = (char *) errno;
5293 #endif
5294
5295   ;
5296   return 0;
5297 }
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301   (eval $ac_compile) 2>conftest.er1
5302   ac_status=$?
5303   grep -v '^ *+' conftest.er1 >conftest.err
5304   rm -f conftest.er1
5305   cat conftest.err >&5
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } &&
5308          { ac_try='test -z "$ac_c_werror_flag"
5309                          || test ! -s conftest.err'
5310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; } &&
5315          { ac_try='test -s conftest.$ac_objext'
5316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317   (eval $ac_try) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   ac_cv_have_decl_errno=yes
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 ac_cv_have_decl_errno=no
5327 fi
5328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329 fi
5330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
5331 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
5332 if test $ac_cv_have_decl_errno = yes; then
5333
5334 cat >>confdefs.h <<_ACEOF
5335 #define HAVE_DECL_ERRNO 1
5336 _ACEOF
5337
5338
5339 else
5340   cat >>confdefs.h <<_ACEOF
5341 #define HAVE_DECL_ERRNO 0
5342 _ACEOF
5343
5344
5345 fi
5346 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
5347 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
5348 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h.  */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h.  */
5357 $ac_includes_default
5358 int
5359 main ()
5360 {
5361 #ifndef putc_unlocked
5362   char *p = (char *) putc_unlocked;
5363 #endif
5364
5365   ;
5366   return 0;
5367 }
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371   (eval $ac_compile) 2>conftest.er1
5372   ac_status=$?
5373   grep -v '^ *+' conftest.er1 >conftest.err
5374   rm -f conftest.er1
5375   cat conftest.err >&5
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); } &&
5378          { ac_try='test -z "$ac_c_werror_flag"
5379                          || test ! -s conftest.err'
5380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381   (eval $ac_try) 2>&5
5382   ac_status=$?
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); }; } &&
5385          { ac_try='test -s conftest.$ac_objext'
5386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387   (eval $ac_try) 2>&5
5388   ac_status=$?
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); }; }; then
5391   ac_cv_have_decl_putc_unlocked=yes
5392 else
5393   echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396 ac_cv_have_decl_putc_unlocked=no
5397 fi
5398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5399 fi
5400 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
5401 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
5402 if test $ac_cv_have_decl_putc_unlocked = yes; then
5403
5404 cat >>confdefs.h <<_ACEOF
5405 #define HAVE_DECL_PUTC_UNLOCKED 1
5406 _ACEOF
5407
5408
5409 else
5410   cat >>confdefs.h <<_ACEOF
5411 #define HAVE_DECL_PUTC_UNLOCKED 0
5412 _ACEOF
5413
5414
5415 fi
5416 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
5417 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
5418 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421   cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h.  */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h.  */
5427 $ac_includes_default
5428 int
5429 main ()
5430 {
5431 #ifndef fputc_unlocked
5432   char *p = (char *) fputc_unlocked;
5433 #endif
5434
5435   ;
5436   return 0;
5437 }
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441   (eval $ac_compile) 2>conftest.er1
5442   ac_status=$?
5443   grep -v '^ *+' conftest.er1 >conftest.err
5444   rm -f conftest.er1
5445   cat conftest.err >&5
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); } &&
5448          { ac_try='test -z "$ac_c_werror_flag"
5449                          || test ! -s conftest.err'
5450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451   (eval $ac_try) 2>&5
5452   ac_status=$?
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); }; } &&
5455          { ac_try='test -s conftest.$ac_objext'
5456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457   (eval $ac_try) 2>&5
5458   ac_status=$?
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); }; }; then
5461   ac_cv_have_decl_fputc_unlocked=yes
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466 ac_cv_have_decl_fputc_unlocked=no
5467 fi
5468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 fi
5470 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
5471 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
5472 if test $ac_cv_have_decl_fputc_unlocked = yes; then
5473
5474 cat >>confdefs.h <<_ACEOF
5475 #define HAVE_DECL_FPUTC_UNLOCKED 1
5476 _ACEOF
5477
5478
5479 else
5480   cat >>confdefs.h <<_ACEOF
5481 #define HAVE_DECL_FPUTC_UNLOCKED 0
5482 _ACEOF
5483
5484
5485 fi
5486 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
5487 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
5488 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h.  */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h.  */
5497 $ac_includes_default
5498 int
5499 main ()
5500 {
5501 #ifndef fputs_unlocked
5502   char *p = (char *) fputs_unlocked;
5503 #endif
5504
5505   ;
5506   return 0;
5507 }
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511   (eval $ac_compile) 2>conftest.er1
5512   ac_status=$?
5513   grep -v '^ *+' conftest.er1 >conftest.err
5514   rm -f conftest.er1
5515   cat conftest.err >&5
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); } &&
5518          { ac_try='test -z "$ac_c_werror_flag"
5519                          || test ! -s conftest.err'
5520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521   (eval $ac_try) 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); }; } &&
5525          { ac_try='test -s conftest.$ac_objext'
5526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527   (eval $ac_try) 2>&5
5528   ac_status=$?
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); }; }; then
5531   ac_cv_have_decl_fputs_unlocked=yes
5532 else
5533   echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5535
5536 ac_cv_have_decl_fputs_unlocked=no
5537 fi
5538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5539 fi
5540 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
5541 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
5542 if test $ac_cv_have_decl_fputs_unlocked = yes; then
5543
5544 cat >>confdefs.h <<_ACEOF
5545 #define HAVE_DECL_FPUTS_UNLOCKED 1
5546 _ACEOF
5547
5548
5549 else
5550   cat >>confdefs.h <<_ACEOF
5551 #define HAVE_DECL_FPUTS_UNLOCKED 0
5552 _ACEOF
5553
5554
5555 fi
5556 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
5557 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
5558 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
5559   echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561   cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h.  */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h.  */
5567 $ac_includes_default
5568 int
5569 main ()
5570 {
5571 #ifndef fwrite_unlocked
5572   char *p = (char *) fwrite_unlocked;
5573 #endif
5574
5575   ;
5576   return 0;
5577 }
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581   (eval $ac_compile) 2>conftest.er1
5582   ac_status=$?
5583   grep -v '^ *+' conftest.er1 >conftest.err
5584   rm -f conftest.er1
5585   cat conftest.err >&5
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } &&
5588          { ac_try='test -z "$ac_c_werror_flag"
5589                          || test ! -s conftest.err'
5590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591   (eval $ac_try) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); }; } &&
5595          { ac_try='test -s conftest.$ac_objext'
5596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597   (eval $ac_try) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; }; then
5601   ac_cv_have_decl_fwrite_unlocked=yes
5602 else
5603   echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 ac_cv_have_decl_fwrite_unlocked=no
5607 fi
5608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5609 fi
5610 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
5611 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
5612 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
5613
5614 cat >>confdefs.h <<_ACEOF
5615 #define HAVE_DECL_FWRITE_UNLOCKED 1
5616 _ACEOF
5617
5618
5619 else
5620   cat >>confdefs.h <<_ACEOF
5621 #define HAVE_DECL_FWRITE_UNLOCKED 0
5622 _ACEOF
5623
5624
5625 fi
5626 echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5
5627 echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6
5628 if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h.  */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h.  */
5637 $ac_includes_default
5638 int
5639 main ()
5640 {
5641 #ifndef fprintf_unlocked
5642   char *p = (char *) fprintf_unlocked;
5643 #endif
5644
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651   (eval $ac_compile) 2>conftest.er1
5652   ac_status=$?
5653   grep -v '^ *+' conftest.er1 >conftest.err
5654   rm -f conftest.er1
5655   cat conftest.err >&5
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } &&
5658          { ac_try='test -z "$ac_c_werror_flag"
5659                          || test ! -s conftest.err'
5660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661   (eval $ac_try) 2>&5
5662   ac_status=$?
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); }; } &&
5665          { ac_try='test -s conftest.$ac_objext'
5666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667   (eval $ac_try) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; }; then
5671   ac_cv_have_decl_fprintf_unlocked=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_have_decl_fprintf_unlocked=no
5677 fi
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5679 fi
5680 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5
5681 echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6
5682 if test $ac_cv_have_decl_fprintf_unlocked = yes; then
5683
5684 cat >>confdefs.h <<_ACEOF
5685 #define HAVE_DECL_FPRINTF_UNLOCKED 1
5686 _ACEOF
5687
5688
5689 else
5690   cat >>confdefs.h <<_ACEOF
5691 #define HAVE_DECL_FPRINTF_UNLOCKED 0
5692 _ACEOF
5693
5694
5695 fi
5696
5697
5698
5699 # Checks for library functions.
5700 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5701 # for constant arguments.  Useless!
5702 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5703 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5704 if test "${ac_cv_working_alloca_h+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h.  */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h.  */
5713 #include <alloca.h>
5714 int
5715 main ()
5716 {
5717 char *p = (char *) alloca (2 * sizeof (int));
5718   ;
5719   return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext conftest$ac_exeext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5724   (eval $ac_link) 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } &&
5731          { ac_try='test -z "$ac_c_werror_flag"
5732                          || test ! -s conftest.err'
5733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734   (eval $ac_try) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; } &&
5738          { ac_try='test -s conftest$ac_exeext'
5739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744   ac_cv_working_alloca_h=yes
5745 else
5746   echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 ac_cv_working_alloca_h=no
5750 fi
5751 rm -f conftest.err conftest.$ac_objext \
5752       conftest$ac_exeext conftest.$ac_ext
5753 fi
5754 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5755 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5756 if test $ac_cv_working_alloca_h = yes; then
5757
5758 cat >>confdefs.h <<\_ACEOF
5759 #define HAVE_ALLOCA_H 1
5760 _ACEOF
5761
5762 fi
5763
5764 echo "$as_me:$LINENO: checking for alloca" >&5
5765 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5766 if test "${ac_cv_func_alloca_works+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h.  */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h.  */
5775 #ifdef __GNUC__
5776 # define alloca __builtin_alloca
5777 #else
5778 # ifdef _MSC_VER
5779 #  include <malloc.h>
5780 #  define alloca _alloca
5781 # else
5782 #  if HAVE_ALLOCA_H
5783 #   include <alloca.h>
5784 #  else
5785 #   ifdef _AIX
5786  #pragma alloca
5787 #   else
5788 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5789 char *alloca ();
5790 #    endif
5791 #   endif
5792 #  endif
5793 # endif
5794 #endif
5795
5796 int
5797 main ()
5798 {
5799 char *p = (char *) alloca (1);
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806   (eval $ac_link) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag"
5814                          || test ! -s conftest.err'
5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816   (eval $ac_try) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; } &&
5820          { ac_try='test -s conftest$ac_exeext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   ac_cv_func_alloca_works=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 ac_cv_func_alloca_works=no
5832 fi
5833 rm -f conftest.err conftest.$ac_objext \
5834       conftest$ac_exeext conftest.$ac_ext
5835 fi
5836 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5837 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5838
5839 if test $ac_cv_func_alloca_works = yes; then
5840
5841 cat >>confdefs.h <<\_ACEOF
5842 #define HAVE_ALLOCA 1
5843 _ACEOF
5844
5845 else
5846   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5847 # that cause trouble.  Some versions do not even contain alloca or
5848 # contain a buggy version.  If you still want to use their alloca,
5849 # use ar to extract alloca.o from them instead of compiling alloca.c.
5850
5851 ALLOCA=alloca.$ac_objext
5852
5853 cat >>confdefs.h <<\_ACEOF
5854 #define C_ALLOCA 1
5855 _ACEOF
5856
5857
5858 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5859 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5860 if test "${ac_cv_os_cray+set}" = set; then
5861   echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863   cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h.  */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h.  */
5869 #if defined(CRAY) && ! defined(CRAY2)
5870 webecray
5871 #else
5872 wenotbecray
5873 #endif
5874
5875 _ACEOF
5876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5877   $EGREP "webecray" >/dev/null 2>&1; then
5878   ac_cv_os_cray=yes
5879 else
5880   ac_cv_os_cray=no
5881 fi
5882 rm -f conftest*
5883
5884 fi
5885 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5886 echo "${ECHO_T}$ac_cv_os_cray" >&6
5887 if test $ac_cv_os_cray = yes; then
5888   for ac_func in _getb67 GETB67 getb67; do
5889     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5890 echo "$as_me:$LINENO: checking for $ac_func" >&5
5891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5892 if eval "test \"\${$as_ac_var+set}\" = set"; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h.  */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h.  */
5901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5903 #define $ac_func innocuous_$ac_func
5904
5905 /* System header to define __stub macros and hopefully few prototypes,
5906     which can conflict with char $ac_func (); below.
5907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5908     <limits.h> exists even on freestanding compilers.  */
5909
5910 #ifdef __STDC__
5911 # include <limits.h>
5912 #else
5913 # include <assert.h>
5914 #endif
5915
5916 #undef $ac_func
5917
5918 /* Override any gcc2 internal prototype to avoid an error.  */
5919 #ifdef __cplusplus
5920 extern "C"
5921 {
5922 #endif
5923 /* We use char because int might match the return type of a gcc2
5924    builtin and then its argument prototype would still apply.  */
5925 char $ac_func ();
5926 /* The GNU C library defines this for functions which it implements
5927     to always fail with ENOSYS.  Some functions are actually named
5928     something starting with __ and the normal name is an alias.  */
5929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5930 choke me
5931 #else
5932 char (*f) () = $ac_func;
5933 #endif
5934 #ifdef __cplusplus
5935 }
5936 #endif
5937
5938 int
5939 main ()
5940 {
5941 return f != $ac_func;
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948   (eval $ac_link) 2>conftest.er1
5949   ac_status=$?
5950   grep -v '^ *+' conftest.er1 >conftest.err
5951   rm -f conftest.er1
5952   cat conftest.err >&5
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); } &&
5955          { ac_try='test -z "$ac_c_werror_flag"
5956                          || test ! -s conftest.err'
5957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958   (eval $ac_try) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }; } &&
5962          { ac_try='test -s conftest$ac_exeext'
5963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964   (eval $ac_try) 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; }; then
5968   eval "$as_ac_var=yes"
5969 else
5970   echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 eval "$as_ac_var=no"
5974 fi
5975 rm -f conftest.err conftest.$ac_objext \
5976       conftest$ac_exeext conftest.$ac_ext
5977 fi
5978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5980 if test `eval echo '${'$as_ac_var'}'` = yes; then
5981
5982 cat >>confdefs.h <<_ACEOF
5983 #define CRAY_STACKSEG_END $ac_func
5984 _ACEOF
5985
5986     break
5987 fi
5988
5989   done
5990 fi
5991
5992 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5993 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5994 if test "${ac_cv_c_stack_direction+set}" = set; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   if test "$cross_compiling" = yes; then
5998   ac_cv_c_stack_direction=0
5999 else
6000   cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h.  */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h.  */
6006 int
6007 find_stack_direction ()
6008 {
6009   static char *addr = 0;
6010   auto char dummy;
6011   if (addr == 0)
6012     {
6013       addr = &dummy;
6014       return find_stack_direction ();
6015     }
6016   else
6017     return (&dummy > addr) ? 1 : -1;
6018 }
6019
6020 int
6021 main ()
6022 {
6023   exit (find_stack_direction () < 0);
6024 }
6025 _ACEOF
6026 rm -f conftest$ac_exeext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6028   (eval $ac_link) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033   (eval $ac_try) 2>&5
6034   ac_status=$?
6035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); }; }; then
6037   ac_cv_c_stack_direction=1
6038 else
6039   echo "$as_me: program exited with status $ac_status" >&5
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 ( exit $ac_status )
6044 ac_cv_c_stack_direction=-1
6045 fi
6046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6047 fi
6048 fi
6049 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6050 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6051
6052 cat >>confdefs.h <<_ACEOF
6053 #define STACK_DIRECTION $ac_cv_c_stack_direction
6054 _ACEOF
6055
6056
6057 fi
6058
6059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6061 if test "${ac_cv_header_stdc+set}" = set; then
6062   echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064   cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h.  */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h.  */
6070 #include <stdlib.h>
6071 #include <stdarg.h>
6072 #include <string.h>
6073 #include <float.h>
6074
6075 int
6076 main ()
6077 {
6078
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085   (eval $ac_compile) 2>conftest.er1
6086   ac_status=$?
6087   grep -v '^ *+' conftest.er1 >conftest.err
6088   rm -f conftest.er1
6089   cat conftest.err >&5
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); } &&
6092          { ac_try='test -z "$ac_c_werror_flag"
6093                          || test ! -s conftest.err'
6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; } &&
6099          { ac_try='test -s conftest.$ac_objext'
6100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101   (eval $ac_try) 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); }; }; then
6105   ac_cv_header_stdc=yes
6106 else
6107   echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110 ac_cv_header_stdc=no
6111 fi
6112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113
6114 if test $ac_cv_header_stdc = yes; then
6115   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6116   cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h.  */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h.  */
6122 #include <string.h>
6123
6124 _ACEOF
6125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6126   $EGREP "memchr" >/dev/null 2>&1; then
6127   :
6128 else
6129   ac_cv_header_stdc=no
6130 fi
6131 rm -f conftest*
6132
6133 fi
6134
6135 if test $ac_cv_header_stdc = yes; then
6136   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6137   cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143 #include <stdlib.h>
6144
6145 _ACEOF
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147   $EGREP "free" >/dev/null 2>&1; then
6148   :
6149 else
6150   ac_cv_header_stdc=no
6151 fi
6152 rm -f conftest*
6153
6154 fi
6155
6156 if test $ac_cv_header_stdc = yes; then
6157   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6158   if test "$cross_compiling" = yes; then
6159   :
6160 else
6161   cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h.  */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h.  */
6167 #include <ctype.h>
6168 #if ((' ' & 0x0FF) == 0x020)
6169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6171 #else
6172 # define ISLOWER(c) \
6173                    (('a' <= (c) && (c) <= 'i') \
6174                      || ('j' <= (c) && (c) <= 'r') \
6175                      || ('s' <= (c) && (c) <= 'z'))
6176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6177 #endif
6178
6179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6180 int
6181 main ()
6182 {
6183   int i;
6184   for (i = 0; i < 256; i++)
6185     if (XOR (islower (i), ISLOWER (i))
6186         || toupper (i) != TOUPPER (i))
6187       exit(2);
6188   exit (0);
6189 }
6190 _ACEOF
6191 rm -f conftest$ac_exeext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193   (eval $ac_link) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   :
6203 else
6204   echo "$as_me: program exited with status $ac_status" >&5
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208 ( exit $ac_status )
6209 ac_cv_header_stdc=no
6210 fi
6211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6212 fi
6213 fi
6214 fi
6215 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6216 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6217 if test $ac_cv_header_stdc = yes; then
6218
6219 cat >>confdefs.h <<\_ACEOF
6220 #define STDC_HEADERS 1
6221 _ACEOF
6222
6223 fi
6224
6225
6226   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6227 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6228 if test "${am_cv_langinfo_codeset+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h.  */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h.  */
6237 #include <langinfo.h>
6238 int
6239 main ()
6240 {
6241 char* cs = nl_langinfo(CODESET);
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext conftest$ac_exeext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248   (eval $ac_link) 2>conftest.er1
6249   ac_status=$?
6250   grep -v '^ *+' conftest.er1 >conftest.err
6251   rm -f conftest.er1
6252   cat conftest.err >&5
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); } &&
6255          { ac_try='test -z "$ac_c_werror_flag"
6256                          || test ! -s conftest.err'
6257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258   (eval $ac_try) 2>&5
6259   ac_status=$?
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); }; } &&
6262          { ac_try='test -s conftest$ac_exeext'
6263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264   (eval $ac_try) 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; }; then
6268   am_cv_langinfo_codeset=yes
6269 else
6270   echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 am_cv_langinfo_codeset=no
6274 fi
6275 rm -f conftest.err conftest.$ac_objext \
6276       conftest$ac_exeext conftest.$ac_ext
6277
6278 fi
6279 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6280 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6281   if test $am_cv_langinfo_codeset = yes; then
6282
6283 cat >>confdefs.h <<\_ACEOF
6284 #define HAVE_LANGINFO_CODESET 1
6285 _ACEOF
6286
6287   fi
6288
6289 # If we haven't got the data from the intl directory,
6290 # assume NLS is disabled.
6291 USE_NLS=no
6292 LIBINTL=
6293 LIBINTL_DEP=
6294 INCINTL=
6295 XGETTEXT=
6296 GMSGFMT=
6297 POSUB=
6298 if test -f ../intl/config.intl; then
6299   . ../intl/config.intl
6300 fi
6301 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6302 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6303 if test x"$USE_NLS" != xyes; then
6304   echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6
6306 else
6307   echo "$as_me:$LINENO: result: yes" >&5
6308 echo "${ECHO_T}yes" >&6
6309
6310 cat >>confdefs.h <<\_ACEOF
6311 #define ENABLE_NLS 1
6312 _ACEOF
6313
6314
6315   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6316 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6317   # Look for .po and .gmo files in the source directory.
6318   CATALOGS=
6319   XLINGUAS=
6320   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6321     # If there aren't any .gmo files the shell will give us the
6322     # literal string "../path/to/srcdir/po/*.gmo" which has to be
6323     # weeded out.
6324     case "$cat" in *\**)
6325       continue;;
6326     esac
6327     # The quadruple backslash is collapsed to a double backslash
6328     # by the backticks, then collapsed again by the double quotes,
6329     # leaving us with one backslash in the sed expression (right
6330     # before the dot that mustn't act as a wildcard).
6331     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
6332     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
6333     # The user is allowed to set LINGUAS to a list of languages to
6334     # install catalogs for.  If it's empty that means "all of them."
6335     if test "x$LINGUAS" = x; then
6336       CATALOGS="$CATALOGS $cat"
6337       XLINGUAS="$XLINGUAS $lang"
6338     else
6339       case "$LINGUAS" in *$lang*)
6340         CATALOGS="$CATALOGS $cat"
6341         XLINGUAS="$XLINGUAS $lang"
6342         ;;
6343       esac
6344     fi
6345   done
6346   LINGUAS="$XLINGUAS"
6347   echo "$as_me:$LINENO: result: $LINGUAS" >&5
6348 echo "${ECHO_T}$LINGUAS" >&6
6349 fi
6350
6351 echo "$as_me:$LINENO: checking for uchar" >&5
6352 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
6353 if test "${gcc_cv_type_uchar+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h.  */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h.  */
6362
6363 #include "ansidecl.h"
6364 #include "system.h"
6365
6366 int
6367 main ()
6368 {
6369 if ((uchar *)0) return 0;
6370  if (sizeof(uchar)) return 0;
6371   ;
6372   return 0;
6373 }
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377   (eval $ac_compile) 2>conftest.er1
6378   ac_status=$?
6379   grep -v '^ *+' conftest.er1 >conftest.err
6380   rm -f conftest.er1
6381   cat conftest.err >&5
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); } &&
6384          { ac_try='test -z "$ac_c_werror_flag"
6385                          || test ! -s conftest.err'
6386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387   (eval $ac_try) 2>&5
6388   ac_status=$?
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); }; } &&
6391          { ac_try='test -s conftest.$ac_objext'
6392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393   (eval $ac_try) 2>&5
6394   ac_status=$?
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); }; }; then
6397   ac_cv_type_uchar=yes
6398 else
6399   echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6401
6402 ac_cv_type_uchar=no
6403 fi
6404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6405 fi
6406 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
6407 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
6408 if test $ac_cv_type_uchar = yes; then
6409
6410 cat >>confdefs.h <<\_ACEOF
6411 #define HAVE_UCHAR 1
6412 _ACEOF
6413
6414 fi
6415
6416
6417       if test "X$prefix" = "XNONE"; then
6418     acl_final_prefix="$ac_default_prefix"
6419   else
6420     acl_final_prefix="$prefix"
6421   fi
6422   if test "X$exec_prefix" = "XNONE"; then
6423     acl_final_exec_prefix='${prefix}'
6424   else
6425     acl_final_exec_prefix="$exec_prefix"
6426   fi
6427   acl_save_prefix="$prefix"
6428   prefix="$acl_final_prefix"
6429   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6430   prefix="$acl_save_prefix"
6431
6432
6433 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6434 if test "${with_gnu_ld+set}" = set; then
6435   withval="$with_gnu_ld"
6436   test "$withval" = no || with_gnu_ld=yes
6437 else
6438   with_gnu_ld=no
6439 fi;
6440 # Prepare PATH_SEPARATOR.
6441 # The user is always right.
6442 if test "${PATH_SEPARATOR+set}" != set; then
6443   echo "#! /bin/sh" >conf$$.sh
6444   echo  "exit 0"   >>conf$$.sh
6445   chmod +x conf$$.sh
6446   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6447     PATH_SEPARATOR=';'
6448   else
6449     PATH_SEPARATOR=:
6450   fi
6451   rm -f conf$$.sh
6452 fi
6453 ac_prog=ld
6454 if test "$GCC" = yes; then
6455   # Check if gcc -print-prog-name=ld gives a path.
6456   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6457 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6458   case $host in
6459   *-*-mingw*)
6460     # gcc leaves a trailing carriage return which upsets mingw
6461     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6462   *)
6463     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6464   esac
6465   case $ac_prog in
6466     # Accept absolute paths.
6467     [\\/]* | [A-Za-z]:[\\/]*)
6468       re_direlt='/[^/][^/]*/\.\./'
6469       # Canonicalize the path of ld
6470       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6471       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6472         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6473       done
6474       test -z "$LD" && LD="$ac_prog"
6475       ;;
6476   "")
6477     # If it fails, then pretend we aren't using GCC.
6478     ac_prog=ld
6479     ;;
6480   *)
6481     # If it is relative, then search for the first ld in PATH.
6482     with_gnu_ld=unknown
6483     ;;
6484   esac
6485 elif test "$with_gnu_ld" = yes; then
6486   echo "$as_me:$LINENO: checking for GNU ld" >&5
6487 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6488 else
6489   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6490 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6491 fi
6492 if test "${acl_cv_path_LD+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   if test -z "$LD"; then
6496   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6497   for ac_dir in $PATH; do
6498     test -z "$ac_dir" && ac_dir=.
6499     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6500       acl_cv_path_LD="$ac_dir/$ac_prog"
6501       # Check to see if the program is GNU ld.  I'd rather use --version,
6502       # but apparently some GNU ld's only accept -v.
6503       # Break only if it was the GNU/non-GNU ld that we prefer.
6504       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6505       *GNU* | *'with BFD'*)
6506         test "$with_gnu_ld" != no && break ;;
6507       *)
6508         test "$with_gnu_ld" != yes && break ;;
6509       esac
6510     fi
6511   done
6512   IFS="$ac_save_ifs"
6513 else
6514   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6515 fi
6516 fi
6517
6518 LD="$acl_cv_path_LD"
6519 if test -n "$LD"; then
6520   echo "$as_me:$LINENO: result: $LD" >&5
6521 echo "${ECHO_T}$LD" >&6
6522 else
6523   echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6
6525 fi
6526 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6527 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6528    { (exit 1); exit 1; }; }
6529 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6530 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6531 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6535 case `$LD -v 2>&1 </dev/null` in
6536 *GNU* | *'with BFD'*)
6537   acl_cv_prog_gnu_ld=yes ;;
6538 *)
6539   acl_cv_prog_gnu_ld=no ;;
6540 esac
6541 fi
6542 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6543 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6544 with_gnu_ld=$acl_cv_prog_gnu_ld
6545
6546
6547
6548                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6549 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6550 if test "${acl_cv_rpath+set}" = set; then
6551   echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553
6554     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6555     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6556     . ./conftest.sh
6557     rm -f ./conftest.sh
6558     acl_cv_rpath=done
6559
6560 fi
6561 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6562 echo "${ECHO_T}$acl_cv_rpath" >&6
6563   wl="$acl_cv_wl"
6564   libext="$acl_cv_libext"
6565   shlibext="$acl_cv_shlibext"
6566   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6567   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6568   hardcode_direct="$acl_cv_hardcode_direct"
6569   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6570     # Check whether --enable-rpath or --disable-rpath was given.
6571 if test "${enable_rpath+set}" = set; then
6572   enableval="$enable_rpath"
6573   :
6574 else
6575   enable_rpath=yes
6576 fi;
6577
6578
6579
6580
6581
6582
6583
6584     use_additional=yes
6585
6586   acl_save_prefix="$prefix"
6587   prefix="$acl_final_prefix"
6588   acl_save_exec_prefix="$exec_prefix"
6589   exec_prefix="$acl_final_exec_prefix"
6590
6591     eval additional_includedir=\"$includedir\"
6592     eval additional_libdir=\"$libdir\"
6593
6594   exec_prefix="$acl_save_exec_prefix"
6595   prefix="$acl_save_prefix"
6596
6597
6598 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6599 if test "${with_libiconv_prefix+set}" = set; then
6600   withval="$with_libiconv_prefix"
6601
6602     if test "X$withval" = "Xno"; then
6603       use_additional=no
6604     else
6605       if test "X$withval" = "X"; then
6606
6607   acl_save_prefix="$prefix"
6608   prefix="$acl_final_prefix"
6609   acl_save_exec_prefix="$exec_prefix"
6610   exec_prefix="$acl_final_exec_prefix"
6611
6612           eval additional_includedir=\"$includedir\"
6613           eval additional_libdir=\"$libdir\"
6614
6615   exec_prefix="$acl_save_exec_prefix"
6616   prefix="$acl_save_prefix"
6617
6618       else
6619         additional_includedir="$withval/include"
6620         additional_libdir="$withval/lib"
6621       fi
6622     fi
6623
6624 fi;
6625       LIBICONV=
6626   LTLIBICONV=
6627   INCICONV=
6628   rpathdirs=
6629   ltrpathdirs=
6630   names_already_handled=
6631   names_next_round='iconv '
6632   while test -n "$names_next_round"; do
6633     names_this_round="$names_next_round"
6634     names_next_round=
6635     for name in $names_this_round; do
6636       already_handled=
6637       for n in $names_already_handled; do
6638         if test "$n" = "$name"; then
6639           already_handled=yes
6640           break
6641         fi
6642       done
6643       if test -z "$already_handled"; then
6644         names_already_handled="$names_already_handled $name"
6645                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6646         eval value=\"\$HAVE_LIB$uppername\"
6647         if test -n "$value"; then
6648           if test "$value" = yes; then
6649             eval value=\"\$LIB$uppername\"
6650             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6651             eval value=\"\$LTLIB$uppername\"
6652             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6653           else
6654                                     :
6655           fi
6656         else
6657                               found_dir=
6658           found_la=
6659           found_so=
6660           found_a=
6661           if test $use_additional = yes; then
6662             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6663               found_dir="$additional_libdir"
6664               found_so="$additional_libdir/lib$name.$shlibext"
6665               if test -f "$additional_libdir/lib$name.la"; then
6666                 found_la="$additional_libdir/lib$name.la"
6667               fi
6668             else
6669               if test -f "$additional_libdir/lib$name.$libext"; then
6670                 found_dir="$additional_libdir"
6671                 found_a="$additional_libdir/lib$name.$libext"
6672                 if test -f "$additional_libdir/lib$name.la"; then
6673                   found_la="$additional_libdir/lib$name.la"
6674                 fi
6675               fi
6676             fi
6677           fi
6678           if test "X$found_dir" = "X"; then
6679             for x in $LDFLAGS $LTLIBICONV; do
6680
6681   acl_save_prefix="$prefix"
6682   prefix="$acl_final_prefix"
6683   acl_save_exec_prefix="$exec_prefix"
6684   exec_prefix="$acl_final_exec_prefix"
6685   eval x=\"$x\"
6686   exec_prefix="$acl_save_exec_prefix"
6687   prefix="$acl_save_prefix"
6688
6689               case "$x" in
6690                 -L*)
6691                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6692                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6693                     found_dir="$dir"
6694                     found_so="$dir/lib$name.$shlibext"
6695                     if test -f "$dir/lib$name.la"; then
6696                       found_la="$dir/lib$name.la"
6697                     fi
6698                   else
6699                     if test -f "$dir/lib$name.$libext"; then
6700                       found_dir="$dir"
6701                       found_a="$dir/lib$name.$libext"
6702                       if test -f "$dir/lib$name.la"; then
6703                         found_la="$dir/lib$name.la"
6704                       fi
6705                     fi
6706                   fi
6707                   ;;
6708               esac
6709               if test "X$found_dir" != "X"; then
6710                 break
6711               fi
6712             done
6713           fi
6714           if test "X$found_dir" != "X"; then
6715                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6716             if test "X$found_so" != "X"; then
6717                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6718                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6719               else
6720                                                                                 haveit=
6721                 for x in $ltrpathdirs; do
6722                   if test "X$x" = "X$found_dir"; then
6723                     haveit=yes
6724                     break
6725                   fi
6726                 done
6727                 if test -z "$haveit"; then
6728                   ltrpathdirs="$ltrpathdirs $found_dir"
6729                 fi
6730                                 if test "$hardcode_direct" = yes; then
6731                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6732                 else
6733                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6734                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6735                                                             haveit=
6736                     for x in $rpathdirs; do
6737                       if test "X$x" = "X$found_dir"; then
6738                         haveit=yes
6739                         break
6740                       fi
6741                     done
6742                     if test -z "$haveit"; then
6743                       rpathdirs="$rpathdirs $found_dir"
6744                     fi
6745                   else
6746                                                                                 haveit=
6747                     for x in $LDFLAGS $LIBICONV; do
6748
6749   acl_save_prefix="$prefix"
6750   prefix="$acl_final_prefix"
6751   acl_save_exec_prefix="$exec_prefix"
6752   exec_prefix="$acl_final_exec_prefix"
6753   eval x=\"$x\"
6754   exec_prefix="$acl_save_exec_prefix"
6755   prefix="$acl_save_prefix"
6756
6757                       if test "X$x" = "X-L$found_dir"; then
6758                         haveit=yes
6759                         break
6760                       fi
6761                     done
6762                     if test -z "$haveit"; then
6763                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6764                     fi
6765                     if test "$hardcode_minus_L" != no; then
6766                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6767                     else
6768                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6769                     fi
6770                   fi
6771                 fi
6772               fi
6773             else
6774               if test "X$found_a" != "X"; then
6775                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6776               else
6777                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6778               fi
6779             fi
6780                         additional_includedir=
6781             case "$found_dir" in
6782               */lib | */lib/)
6783                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6784                 additional_includedir="$basedir/include"
6785                 ;;
6786             esac
6787             if test "X$additional_includedir" != "X"; then
6788                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6789                 haveit=
6790                 if test "X$additional_includedir" = "X/usr/local/include"; then
6791                   if test -n "$GCC"; then
6792                     case $host_os in
6793                       linux*) haveit=yes;;
6794                     esac
6795                   fi
6796                 fi
6797                 if test -z "$haveit"; then
6798                   for x in $CPPFLAGS $INCICONV; do
6799
6800   acl_save_prefix="$prefix"
6801   prefix="$acl_final_prefix"
6802   acl_save_exec_prefix="$exec_prefix"
6803   exec_prefix="$acl_final_exec_prefix"
6804   eval x=\"$x\"
6805   exec_prefix="$acl_save_exec_prefix"
6806   prefix="$acl_save_prefix"
6807
6808                     if test "X$x" = "X-I$additional_includedir"; then
6809                       haveit=yes
6810                       break
6811                     fi
6812                   done
6813                   if test -z "$haveit"; then
6814                     if test -d "$additional_includedir"; then
6815                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6816                     fi
6817                   fi
6818                 fi
6819               fi
6820             fi
6821                         if test -n "$found_la"; then
6822                                                         save_libdir="$libdir"
6823               case "$found_la" in
6824                 */* | *\\*) . "$found_la" ;;
6825                 *) . "./$found_la" ;;
6826               esac
6827               libdir="$save_libdir"
6828                             for dep in $dependency_libs; do
6829                 case "$dep" in
6830                   -L*)
6831                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6832                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6833                       haveit=
6834                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6835                         if test -n "$GCC"; then
6836                           case $host_os in
6837                             linux*) haveit=yes;;
6838                           esac
6839                         fi
6840                       fi
6841                       if test -z "$haveit"; then
6842                         haveit=
6843                         for x in $LDFLAGS $LIBICONV; do
6844
6845   acl_save_prefix="$prefix"
6846   prefix="$acl_final_prefix"
6847   acl_save_exec_prefix="$exec_prefix"
6848   exec_prefix="$acl_final_exec_prefix"
6849   eval x=\"$x\"
6850   exec_prefix="$acl_save_exec_prefix"
6851   prefix="$acl_save_prefix"
6852
6853                           if test "X$x" = "X-L$additional_libdir"; then
6854                             haveit=yes
6855                             break
6856                           fi
6857                         done
6858                         if test -z "$haveit"; then
6859                           if test -d "$additional_libdir"; then
6860                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6861                           fi
6862                         fi
6863                         haveit=
6864                         for x in $LDFLAGS $LTLIBICONV; do
6865
6866   acl_save_prefix="$prefix"
6867   prefix="$acl_final_prefix"
6868   acl_save_exec_prefix="$exec_prefix"
6869   exec_prefix="$acl_final_exec_prefix"
6870   eval x=\"$x\"
6871   exec_prefix="$acl_save_exec_prefix"
6872   prefix="$acl_save_prefix"
6873
6874                           if test "X$x" = "X-L$additional_libdir"; then
6875                             haveit=yes
6876                             break
6877                           fi
6878                         done
6879                         if test -z "$haveit"; then
6880                           if test -d "$additional_libdir"; then
6881                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6882                           fi
6883                         fi
6884                       fi
6885                     fi
6886                     ;;
6887                   -R*)
6888                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6889                     if test "$enable_rpath" != no; then
6890                                                                   haveit=
6891                       for x in $rpathdirs; do
6892                         if test "X$x" = "X$dir"; then
6893                           haveit=yes
6894                           break
6895                         fi
6896                       done
6897                       if test -z "$haveit"; then
6898                         rpathdirs="$rpathdirs $dir"
6899                       fi
6900                                                                   haveit=
6901                       for x in $ltrpathdirs; do
6902                         if test "X$x" = "X$dir"; then
6903                           haveit=yes
6904                           break
6905                         fi
6906                       done
6907                       if test -z "$haveit"; then
6908                         ltrpathdirs="$ltrpathdirs $dir"
6909                       fi
6910                     fi
6911                     ;;
6912                   -l*)
6913                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6914                     ;;
6915                   *.la)
6916                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6917                     ;;
6918                   *)
6919                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6920                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6921                     ;;
6922                 esac
6923               done
6924             fi
6925           else
6926                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6927             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6928           fi
6929         fi
6930       fi
6931     done
6932   done
6933   if test "X$rpathdirs" != "X"; then
6934     if test -n "$hardcode_libdir_separator"; then
6935                         alldirs=
6936       for found_dir in $rpathdirs; do
6937         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6938       done
6939             acl_save_libdir="$libdir"
6940       libdir="$alldirs"
6941       eval flag=\"$hardcode_libdir_flag_spec\"
6942       libdir="$acl_save_libdir"
6943       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6944     else
6945             for found_dir in $rpathdirs; do
6946         acl_save_libdir="$libdir"
6947         libdir="$found_dir"
6948         eval flag=\"$hardcode_libdir_flag_spec\"
6949         libdir="$acl_save_libdir"
6950         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6951       done
6952     fi
6953   fi
6954   if test "X$ltrpathdirs" != "X"; then
6955             for found_dir in $ltrpathdirs; do
6956       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6957     done
6958   fi
6959
6960
6961
6962
6963
6964
6965
6966           am_save_CPPFLAGS="$CPPFLAGS"
6967
6968   for element in $INCICONV; do
6969     haveit=
6970     for x in $CPPFLAGS; do
6971
6972   acl_save_prefix="$prefix"
6973   prefix="$acl_final_prefix"
6974   acl_save_exec_prefix="$exec_prefix"
6975   exec_prefix="$acl_final_exec_prefix"
6976   eval x=\"$x\"
6977   exec_prefix="$acl_save_exec_prefix"
6978   prefix="$acl_save_prefix"
6979
6980       if test "X$x" = "X$element"; then
6981         haveit=yes
6982         break
6983       fi
6984     done
6985     if test -z "$haveit"; then
6986       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6987     fi
6988   done
6989
6990
6991   echo "$as_me:$LINENO: checking for iconv" >&5
6992 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6993 if test "${am_cv_func_iconv+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996
6997     am_cv_func_iconv="no, consider installing GNU libiconv"
6998     am_cv_lib_iconv=no
6999     cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h.  */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h.  */
7005 #include <stdlib.h>
7006 #include <iconv.h>
7007 int
7008 main ()
7009 {
7010 iconv_t cd = iconv_open("","");
7011        iconv(cd,NULL,NULL,NULL,NULL);
7012        iconv_close(cd);
7013   ;
7014   return 0;
7015 }
7016 _ACEOF
7017 rm -f conftest.$ac_objext conftest$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019   (eval $ac_link) 2>conftest.er1
7020   ac_status=$?
7021   grep -v '^ *+' conftest.er1 >conftest.err
7022   rm -f conftest.er1
7023   cat conftest.err >&5
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); } &&
7026          { ac_try='test -z "$ac_c_werror_flag"
7027                          || test ! -s conftest.err'
7028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029   (eval $ac_try) 2>&5
7030   ac_status=$?
7031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); }; } &&
7033          { ac_try='test -s conftest$ac_exeext'
7034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035   (eval $ac_try) 2>&5
7036   ac_status=$?
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); }; }; then
7039   am_cv_func_iconv=yes
7040 else
7041   echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 fi
7045 rm -f conftest.err conftest.$ac_objext \
7046       conftest$ac_exeext conftest.$ac_ext
7047     if test "$am_cv_func_iconv" != yes; then
7048       am_save_LIBS="$LIBS"
7049       LIBS="$LIBS $LIBICONV"
7050       cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h.  */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h.  */
7056 #include <stdlib.h>
7057 #include <iconv.h>
7058 int
7059 main ()
7060 {
7061 iconv_t cd = iconv_open("","");
7062          iconv(cd,NULL,NULL,NULL,NULL);
7063          iconv_close(cd);
7064   ;
7065   return 0;
7066 }
7067 _ACEOF
7068 rm -f conftest.$ac_objext conftest$ac_exeext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7070   (eval $ac_link) 2>conftest.er1
7071   ac_status=$?
7072   grep -v '^ *+' conftest.er1 >conftest.err
7073   rm -f conftest.er1
7074   cat conftest.err >&5
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); } &&
7077          { ac_try='test -z "$ac_c_werror_flag"
7078                          || test ! -s conftest.err'
7079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080   (eval $ac_try) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); }; } &&
7084          { ac_try='test -s conftest$ac_exeext'
7085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086   (eval $ac_try) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }; }; then
7090   am_cv_lib_iconv=yes
7091         am_cv_func_iconv=yes
7092 else
7093   echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096 fi
7097 rm -f conftest.err conftest.$ac_objext \
7098       conftest$ac_exeext conftest.$ac_ext
7099       LIBS="$am_save_LIBS"
7100     fi
7101
7102 fi
7103 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7104 echo "${ECHO_T}$am_cv_func_iconv" >&6
7105   if test "$am_cv_func_iconv" = yes; then
7106
7107 cat >>confdefs.h <<\_ACEOF
7108 #define HAVE_ICONV 1
7109 _ACEOF
7110
7111   fi
7112   if test "$am_cv_lib_iconv" = yes; then
7113     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7114 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7115     echo "$as_me:$LINENO: result: $LIBICONV" >&5
7116 echo "${ECHO_T}$LIBICONV" >&6
7117   else
7118             CPPFLAGS="$am_save_CPPFLAGS"
7119     LIBICONV=
7120     LTLIBICONV=
7121   fi
7122
7123
7124
7125   if test "$am_cv_func_iconv" = yes; then
7126     echo "$as_me:$LINENO: checking for iconv declaration" >&5
7127 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7128     if test "${am_cv_proto_iconv+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131
7132       cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h.  */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h.  */
7138
7139 #include <stdlib.h>
7140 #include <iconv.h>
7141 extern
7142 #ifdef __cplusplus
7143 "C"
7144 #endif
7145 #if defined(__STDC__) || defined(__cplusplus)
7146 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7147 #else
7148 size_t iconv();
7149 #endif
7150
7151 int
7152 main ()
7153 {
7154
7155   ;
7156   return 0;
7157 }
7158 _ACEOF
7159 rm -f conftest.$ac_objext
7160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7161   (eval $ac_compile) 2>conftest.er1
7162   ac_status=$?
7163   grep -v '^ *+' conftest.er1 >conftest.err
7164   rm -f conftest.er1
7165   cat conftest.err >&5
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } &&
7168          { ac_try='test -z "$ac_c_werror_flag"
7169                          || test ! -s conftest.err'
7170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171   (eval $ac_try) 2>&5
7172   ac_status=$?
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); }; } &&
7175          { ac_try='test -s conftest.$ac_objext'
7176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177   (eval $ac_try) 2>&5
7178   ac_status=$?
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); }; }; then
7181   am_cv_proto_iconv_arg1=""
7182 else
7183   echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 am_cv_proto_iconv_arg1="const"
7187 fi
7188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7189       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7190 fi
7191
7192     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7193     echo "$as_me:$LINENO: result: ${ac_t:-
7194          }$am_cv_proto_iconv" >&5
7195 echo "${ECHO_T}${ac_t:-
7196          }$am_cv_proto_iconv" >&6
7197
7198 cat >>confdefs.h <<_ACEOF
7199 #define ICONV_CONST $am_cv_proto_iconv_arg1
7200 _ACEOF
7201
7202   fi
7203
7204
7205
7206 if test "x$enable_nls" != xno; then
7207   ENABLE_NLS_TRUE=
7208   ENABLE_NLS_FALSE='#'
7209 else
7210   ENABLE_NLS_TRUE='#'
7211   ENABLE_NLS_FALSE=
7212 fi
7213
7214 # Check whether --enable-checking or --disable-checking was given.
7215 if test "${enable_checking+set}" = set; then
7216   enableval="$enable_checking"
7217
7218 else
7219   enable_checking=no
7220 fi;
7221
7222 if test $enable_checking != no ; then
7223
7224 cat >>confdefs.h <<\_ACEOF
7225 #define ENABLE_CHECKING 1
7226 _ACEOF
7227
7228 fi
7229
7230
7231 case $target in
7232         alpha*-*-* | \
7233         x86_64-*-* | \
7234         ia64-*-* | \
7235         hppa*64*-*-* | parisc*64*-*-* | \
7236         mips*-*-* | \
7237         mmix-*-* | \
7238         powerpc*-*-* | \
7239         rs6000*-*-* | \
7240         s390*-*-* | \
7241         sparc64*-*-* | ultrasparc-*-freebsd* | \
7242         sparcv9-*-solaris2* | \
7243         sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9] | \
7244         sh[123456789l]*-*-*)
7245                 need_64bit_hwint=yes ;;
7246         *)
7247                 need_64bit_hwint=no ;;
7248 esac
7249
7250 case $need_64bit_hwint:$ac_cv_sizeof_long in
7251         *:8 | no:*) host_wide_int=long ;;
7252         *) host_wide_int='long long' ;;
7253 esac
7254
7255
7256
7257 cat >>confdefs.h <<_ACEOF
7258 #define HOST_WIDE_INT $host_wide_int
7259 _ACEOF
7260
7261
7262           ac_config_headers="$ac_config_headers config.h:config.in"
7263
7264           ac_config_files="$ac_config_files Makefile"
7265
7266 cat >confcache <<\_ACEOF
7267 # This file is a shell script that caches the results of configure
7268 # tests run on this system so they can be shared between configure
7269 # scripts and configure runs, see configure's option --config-cache.
7270 # It is not useful on other systems.  If it contains results you don't
7271 # want to keep, you may remove or edit it.
7272 #
7273 # config.status only pays attention to the cache file if you give it
7274 # the --recheck option to rerun configure.
7275 #
7276 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7277 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7278 # following values.
7279
7280 _ACEOF
7281
7282 # The following way of writing the cache mishandles newlines in values,
7283 # but we know of no workaround that is simple, portable, and efficient.
7284 # So, don't put newlines in cache variables' values.
7285 # Ultrix sh set writes to stderr and can't be redirected directly,
7286 # and sets the high bit in the cache file unless we assign to the vars.
7287 {
7288   (set) 2>&1 |
7289     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7290     *ac_space=\ *)
7291       # `set' does not quote correctly, so add quotes (double-quote
7292       # substitution turns \\\\ into \\, and sed turns \\ into \).
7293       sed -n \
7294         "s/'/'\\\\''/g;
7295           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7296       ;;
7297     *)
7298       # `set' quotes correctly as required by POSIX, so do not add quotes.
7299       sed -n \
7300         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7301       ;;
7302     esac;
7303 } |
7304   sed '
7305      t clear
7306      : clear
7307      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7308      t end
7309      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7310      : end' >>confcache
7311 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7312   if test -w $cache_file; then
7313     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7314     cat confcache >$cache_file
7315   else
7316     echo "not updating unwritable cache $cache_file"
7317   fi
7318 fi
7319 rm -f confcache
7320
7321 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7322 # Let make expand exec_prefix.
7323 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7324
7325 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7326 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7327 # trailing colons and then remove the whole line if VPATH becomes empty
7328 # (actually we leave an empty line to preserve line numbers).
7329 if test "x$srcdir" = x.; then
7330   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7331 s/:*\$(srcdir):*/:/;
7332 s/:*\${srcdir}:*/:/;
7333 s/:*@srcdir@:*/:/;
7334 s/^\([^=]*=[     ]*\):*/\1/;
7335 s/:*$//;
7336 s/^[^=]*=[       ]*$//;
7337 }'
7338 fi
7339
7340 DEFS=-DHAVE_CONFIG_H
7341
7342 ac_libobjs=
7343 ac_ltlibobjs=
7344 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7345   # 1. Remove the extension, and $U if already installed.
7346   ac_i=`echo "$ac_i" |
7347          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7348   # 2. Add them.
7349   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7350   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7351 done
7352 LIBOBJS=$ac_libobjs
7353
7354 LTLIBOBJS=$ac_ltlibobjs
7355
7356
7357 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7358   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7359 Usually this means the macro was only invoked conditionally." >&5
7360 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7361 Usually this means the macro was only invoked conditionally." >&2;}
7362    { (exit 1); exit 1; }; }
7363 fi
7364 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7365   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7366 Usually this means the macro was only invoked conditionally." >&5
7367 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7368 Usually this means the macro was only invoked conditionally." >&2;}
7369    { (exit 1); exit 1; }; }
7370 fi
7371 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7372   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7373 Usually this means the macro was only invoked conditionally." >&5
7374 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7375 Usually this means the macro was only invoked conditionally." >&2;}
7376    { (exit 1); exit 1; }; }
7377 fi
7378 if test -z "${ENABLE_NLS_TRUE}" && test -z "${ENABLE_NLS_FALSE}"; then
7379   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NLS\" was never defined.
7380 Usually this means the macro was only invoked conditionally." >&5
7381 echo "$as_me: error: conditional \"ENABLE_NLS\" was never defined.
7382 Usually this means the macro was only invoked conditionally." >&2;}
7383    { (exit 1); exit 1; }; }
7384 fi
7385
7386 : ${CONFIG_STATUS=./config.status}
7387 ac_clean_files_save=$ac_clean_files
7388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7389 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7390 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7391 cat >$CONFIG_STATUS <<_ACEOF
7392 #! $SHELL
7393 # Generated by $as_me.
7394 # Run this file to recreate the current configuration.
7395 # Compiler output produced by configure, useful for debugging
7396 # configure, is in config.log if it exists.
7397
7398 debug=false
7399 ac_cs_recheck=false
7400 ac_cs_silent=false
7401 SHELL=\${CONFIG_SHELL-$SHELL}
7402 _ACEOF
7403
7404 cat >>$CONFIG_STATUS <<\_ACEOF
7405 ## --------------------- ##
7406 ## M4sh Initialization.  ##
7407 ## --------------------- ##
7408
7409 # Be Bourne compatible
7410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7411   emulate sh
7412   NULLCMD=:
7413   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7414   # is contrary to our usage.  Disable this feature.
7415   alias -g '${1+"$@"}'='"$@"'
7416 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7417   set -o posix
7418 fi
7419 DUALCASE=1; export DUALCASE # for MKS sh
7420
7421 # Support unset when possible.
7422 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7423   as_unset=unset
7424 else
7425   as_unset=false
7426 fi
7427
7428
7429 # Work around bugs in pre-3.0 UWIN ksh.
7430 $as_unset ENV MAIL MAILPATH
7431 PS1='$ '
7432 PS2='> '
7433 PS4='+ '
7434
7435 # NLS nuisances.
7436 for as_var in \
7437   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7438   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7439   LC_TELEPHONE LC_TIME
7440 do
7441   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7442     eval $as_var=C; export $as_var
7443   else
7444     $as_unset $as_var
7445   fi
7446 done
7447
7448 # Required to use basename.
7449 if expr a : '\(a\)' >/dev/null 2>&1; then
7450   as_expr=expr
7451 else
7452   as_expr=false
7453 fi
7454
7455 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7456   as_basename=basename
7457 else
7458   as_basename=false
7459 fi
7460
7461
7462 # Name of the executable.
7463 as_me=`$as_basename "$0" ||
7464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7465          X"$0" : 'X\(//\)$' \| \
7466          X"$0" : 'X\(/\)$' \| \
7467          .     : '\(.\)' 2>/dev/null ||
7468 echo X/"$0" |
7469     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7470           /^X\/\(\/\/\)$/{ s//\1/; q; }
7471           /^X\/\(\/\).*/{ s//\1/; q; }
7472           s/.*/./; q'`
7473
7474
7475 # PATH needs CR, and LINENO needs CR and PATH.
7476 # Avoid depending upon Character Ranges.
7477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7480 as_cr_digits='0123456789'
7481 as_cr_alnum=$as_cr_Letters$as_cr_digits
7482
7483 # The user is always right.
7484 if test "${PATH_SEPARATOR+set}" != set; then
7485   echo "#! /bin/sh" >conf$$.sh
7486   echo  "exit 0"   >>conf$$.sh
7487   chmod +x conf$$.sh
7488   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7489     PATH_SEPARATOR=';'
7490   else
7491     PATH_SEPARATOR=:
7492   fi
7493   rm -f conf$$.sh
7494 fi
7495
7496
7497   as_lineno_1=$LINENO
7498   as_lineno_2=$LINENO
7499   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7500   test "x$as_lineno_1" != "x$as_lineno_2" &&
7501   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7502   # Find who we are.  Look in the path if we contain no path at all
7503   # relative or not.
7504   case $0 in
7505     *[\\/]* ) as_myself=$0 ;;
7506     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509   IFS=$as_save_IFS
7510   test -z "$as_dir" && as_dir=.
7511   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7512 done
7513
7514        ;;
7515   esac
7516   # We did not find ourselves, most probably we were run as `sh COMMAND'
7517   # in which case we are not to be found in the path.
7518   if test "x$as_myself" = x; then
7519     as_myself=$0
7520   fi
7521   if test ! -f "$as_myself"; then
7522     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7523 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7524    { (exit 1); exit 1; }; }
7525   fi
7526   case $CONFIG_SHELL in
7527   '')
7528     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533   for as_base in sh bash ksh sh5; do
7534          case $as_dir in
7535          /*)
7536            if ("$as_dir/$as_base" -c '
7537   as_lineno_1=$LINENO
7538   as_lineno_2=$LINENO
7539   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7540   test "x$as_lineno_1" != "x$as_lineno_2" &&
7541   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7542              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7543              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7544              CONFIG_SHELL=$as_dir/$as_base
7545              export CONFIG_SHELL
7546              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7547            fi;;
7548          esac
7549        done
7550 done
7551 ;;
7552   esac
7553
7554   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7555   # uniformly replaced by the line number.  The first 'sed' inserts a
7556   # line-number line before each line; the second 'sed' does the real
7557   # work.  The second script uses 'N' to pair each line-number line
7558   # with the numbered line, and appends trailing '-' during
7559   # substitution so that $LINENO is not a special case at line end.
7560   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7561   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7562   sed '=' <$as_myself |
7563     sed '
7564       N
7565       s,$,-,
7566       : loop
7567       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7568       t loop
7569       s,-$,,
7570       s,^['$as_cr_digits']*\n,,
7571     ' >$as_me.lineno &&
7572   chmod +x $as_me.lineno ||
7573     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7574 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7575    { (exit 1); exit 1; }; }
7576
7577   # Don't try to exec as it changes $[0], causing all sort of problems
7578   # (the dirname of $[0] is not the place where we might find the
7579   # original and so on.  Autoconf is especially sensible to this).
7580   . ./$as_me.lineno
7581   # Exit status is that of the last command.
7582   exit
7583 }
7584
7585
7586 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7587   *c*,-n*) ECHO_N= ECHO_C='
7588 ' ECHO_T='      ' ;;
7589   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7590   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7591 esac
7592
7593 if expr a : '\(a\)' >/dev/null 2>&1; then
7594   as_expr=expr
7595 else
7596   as_expr=false
7597 fi
7598
7599 rm -f conf$$ conf$$.exe conf$$.file
7600 echo >conf$$.file
7601 if ln -s conf$$.file conf$$ 2>/dev/null; then
7602   # We could just check for DJGPP; but this test a) works b) is more generic
7603   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7604   if test -f conf$$.exe; then
7605     # Don't use ln at all; we don't have any links
7606     as_ln_s='cp -p'
7607   else
7608     as_ln_s='ln -s'
7609   fi
7610 elif ln conf$$.file conf$$ 2>/dev/null; then
7611   as_ln_s=ln
7612 else
7613   as_ln_s='cp -p'
7614 fi
7615 rm -f conf$$ conf$$.exe conf$$.file
7616
7617 if mkdir -p . 2>/dev/null; then
7618   as_mkdir_p=:
7619 else
7620   test -d ./-p && rmdir ./-p
7621   as_mkdir_p=false
7622 fi
7623
7624 as_executable_p="test -f"
7625
7626 # Sed expression to map a string onto a valid CPP name.
7627 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7628
7629 # Sed expression to map a string onto a valid variable name.
7630 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7631
7632
7633 # IFS
7634 # We need space, tab and new line, in precisely that order.
7635 as_nl='
7636 '
7637 IFS="   $as_nl"
7638
7639 # CDPATH.
7640 $as_unset CDPATH
7641
7642 exec 6>&1
7643
7644 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7645 # report actual input values of CONFIG_FILES etc. instead of their
7646 # values after options handling.  Logging --version etc. is OK.
7647 exec 5>>config.log
7648 {
7649   echo
7650   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7651 ## Running $as_me. ##
7652 _ASBOX
7653 } >&5
7654 cat >&5 <<_CSEOF
7655
7656 This file was extended by cpplib $as_me  , which was
7657 generated by GNU Autoconf 2.59.  Invocation command line was
7658
7659   CONFIG_FILES    = $CONFIG_FILES
7660   CONFIG_HEADERS  = $CONFIG_HEADERS
7661   CONFIG_LINKS    = $CONFIG_LINKS
7662   CONFIG_COMMANDS = $CONFIG_COMMANDS
7663   $ $0 $@
7664
7665 _CSEOF
7666 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7667 echo >&5
7668 _ACEOF
7669
7670 # Files that config.status was made for.
7671 if test -n "$ac_config_files"; then
7672   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7673 fi
7674
7675 if test -n "$ac_config_headers"; then
7676   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7677 fi
7678
7679 if test -n "$ac_config_links"; then
7680   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7681 fi
7682
7683 if test -n "$ac_config_commands"; then
7684   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7685 fi
7686
7687 cat >>$CONFIG_STATUS <<\_ACEOF
7688
7689 ac_cs_usage="\
7690 \`$as_me' instantiates files from templates according to the
7691 current configuration.
7692
7693 Usage: $0 [OPTIONS] [FILE]...
7694
7695   -h, --help       print this help, then exit
7696   -V, --version    print version number, then exit
7697   -q, --quiet      do not print progress messages
7698   -d, --debug      don't remove temporary files
7699       --recheck    update $as_me by reconfiguring in the same conditions
7700   --file=FILE[:TEMPLATE]
7701                    instantiate the configuration file FILE
7702   --header=FILE[:TEMPLATE]
7703                    instantiate the configuration header FILE
7704
7705 Configuration files:
7706 $config_files
7707
7708 Configuration headers:
7709 $config_headers
7710
7711 Configuration commands:
7712 $config_commands
7713
7714 Report bugs to <bug-autoconf@gnu.org>."
7715 _ACEOF
7716
7717 cat >>$CONFIG_STATUS <<_ACEOF
7718 ac_cs_version="\\
7719 cpplib config.status
7720 configured by $0, generated by GNU Autoconf 2.59,
7721   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7722
7723 Copyright (C) 2003 Free Software Foundation, Inc.
7724 This config.status script is free software; the Free Software Foundation
7725 gives unlimited permission to copy, distribute and modify it."
7726 srcdir=$srcdir
7727 INSTALL="$INSTALL"
7728 _ACEOF
7729
7730 cat >>$CONFIG_STATUS <<\_ACEOF
7731 # If no file are specified by the user, then we need to provide default
7732 # value.  By we need to know if files were specified by the user.
7733 ac_need_defaults=:
7734 while test $# != 0
7735 do
7736   case $1 in
7737   --*=*)
7738     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7739     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7740     ac_shift=:
7741     ;;
7742   -*)
7743     ac_option=$1
7744     ac_optarg=$2
7745     ac_shift=shift
7746     ;;
7747   *) # This is not an option, so the user has probably given explicit
7748      # arguments.
7749      ac_option=$1
7750      ac_need_defaults=false;;
7751   esac
7752
7753   case $ac_option in
7754   # Handling of the options.
7755 _ACEOF
7756 cat >>$CONFIG_STATUS <<\_ACEOF
7757   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7758     ac_cs_recheck=: ;;
7759   --version | --vers* | -V )
7760     echo "$ac_cs_version"; exit 0 ;;
7761   --he | --h)
7762     # Conflict between --help and --header
7763     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7764 Try \`$0 --help' for more information." >&5
7765 echo "$as_me: error: ambiguous option: $1
7766 Try \`$0 --help' for more information." >&2;}
7767    { (exit 1); exit 1; }; };;
7768   --help | --hel | -h )
7769     echo "$ac_cs_usage"; exit 0 ;;
7770   --debug | --d* | -d )
7771     debug=: ;;
7772   --file | --fil | --fi | --f )
7773     $ac_shift
7774     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7775     ac_need_defaults=false;;
7776   --header | --heade | --head | --hea )
7777     $ac_shift
7778     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7779     ac_need_defaults=false;;
7780   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7781   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7782     ac_cs_silent=: ;;
7783
7784   # This is an error.
7785   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7786 Try \`$0 --help' for more information." >&5
7787 echo "$as_me: error: unrecognized option: $1
7788 Try \`$0 --help' for more information." >&2;}
7789    { (exit 1); exit 1; }; } ;;
7790
7791   *) ac_config_targets="$ac_config_targets $1" ;;
7792
7793   esac
7794   shift
7795 done
7796
7797 ac_configure_extra_args=
7798
7799 if $ac_cs_silent; then
7800   exec 6>/dev/null
7801   ac_configure_extra_args="$ac_configure_extra_args --silent"
7802 fi
7803
7804 _ACEOF
7805 cat >>$CONFIG_STATUS <<_ACEOF
7806 if \$ac_cs_recheck; then
7807   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7808   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7809 fi
7810
7811 _ACEOF
7812
7813 cat >>$CONFIG_STATUS <<_ACEOF
7814 #
7815 # INIT-COMMANDS section.
7816 #
7817
7818 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7819
7820 _ACEOF
7821
7822
7823
7824 cat >>$CONFIG_STATUS <<\_ACEOF
7825 for ac_config_target in $ac_config_targets
7826 do
7827   case "$ac_config_target" in
7828   # Handling of arguments.
7829   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7830   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7831   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7832   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7833 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7834    { (exit 1); exit 1; }; };;
7835   esac
7836 done
7837
7838 # If the user did not use the arguments to specify the items to instantiate,
7839 # then the envvar interface is used.  Set only those that are not.
7840 # We use the long form for the default assignment because of an extremely
7841 # bizarre bug on SunOS 4.1.3.
7842 if $ac_need_defaults; then
7843   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7844   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7845   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7846 fi
7847
7848 # Have a temporary directory for convenience.  Make it in the build tree
7849 # simply because there is no reason to put it here, and in addition,
7850 # creating and moving files from /tmp can sometimes cause problems.
7851 # Create a temporary directory, and hook for its removal unless debugging.
7852 $debug ||
7853 {
7854   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7855   trap '{ (exit 1); exit 1; }' 1 2 13 15
7856 }
7857
7858 # Create a (secure) tmp directory for tmp files.
7859
7860 {
7861   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7862   test -n "$tmp" && test -d "$tmp"
7863 }  ||
7864 {
7865   tmp=./confstat$$-$RANDOM
7866   (umask 077 && mkdir $tmp)
7867 } ||
7868 {
7869    echo "$me: cannot create a temporary directory in ." >&2
7870    { (exit 1); exit 1; }
7871 }
7872
7873 _ACEOF
7874
7875 cat >>$CONFIG_STATUS <<_ACEOF
7876
7877 #
7878 # CONFIG_FILES section.
7879 #
7880
7881 # No need to generate the scripts if there are no CONFIG_FILES.
7882 # This happens for instance when ./config.status config.h
7883 if test -n "\$CONFIG_FILES"; then
7884   # Protect against being on the right side of a sed subst in config.status.
7885   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7886    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7887 s,@SHELL@,$SHELL,;t t
7888 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7889 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7890 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7891 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7892 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7893 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7894 s,@exec_prefix@,$exec_prefix,;t t
7895 s,@prefix@,$prefix,;t t
7896 s,@program_transform_name@,$program_transform_name,;t t
7897 s,@bindir@,$bindir,;t t
7898 s,@sbindir@,$sbindir,;t t
7899 s,@libexecdir@,$libexecdir,;t t
7900 s,@datadir@,$datadir,;t t
7901 s,@sysconfdir@,$sysconfdir,;t t
7902 s,@sharedstatedir@,$sharedstatedir,;t t
7903 s,@localstatedir@,$localstatedir,;t t
7904 s,@libdir@,$libdir,;t t
7905 s,@includedir@,$includedir,;t t
7906 s,@oldincludedir@,$oldincludedir,;t t
7907 s,@infodir@,$infodir,;t t
7908 s,@mandir@,$mandir,;t t
7909 s,@build_alias@,$build_alias,;t t
7910 s,@host_alias@,$host_alias,;t t
7911 s,@target_alias@,$target_alias,;t t
7912 s,@DEFS@,$DEFS,;t t
7913 s,@ECHO_C@,$ECHO_C,;t t
7914 s,@ECHO_N@,$ECHO_N,;t t
7915 s,@ECHO_T@,$ECHO_T,;t t
7916 s,@LIBS@,$LIBS,;t t
7917 s,@build@,$build,;t t
7918 s,@build_cpu@,$build_cpu,;t t
7919 s,@build_vendor@,$build_vendor,;t t
7920 s,@build_os@,$build_os,;t t
7921 s,@host@,$host,;t t
7922 s,@host_cpu@,$host_cpu,;t t
7923 s,@host_vendor@,$host_vendor,;t t
7924 s,@host_os@,$host_os,;t t
7925 s,@target@,$target,;t t
7926 s,@target_cpu@,$target_cpu,;t t
7927 s,@target_vendor@,$target_vendor,;t t
7928 s,@target_os@,$target_os,;t t
7929 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7930 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7931 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7932 s,@CYGPATH_W@,$CYGPATH_W,;t t
7933 s,@PACKAGE@,$PACKAGE,;t t
7934 s,@VERSION@,$VERSION,;t t
7935 s,@ACLOCAL@,$ACLOCAL,;t t
7936 s,@AUTOCONF@,$AUTOCONF,;t t
7937 s,@AUTOMAKE@,$AUTOMAKE,;t t
7938 s,@AUTOHEADER@,$AUTOHEADER,;t t
7939 s,@MAKEINFO@,$MAKEINFO,;t t
7940 s,@AMTAR@,$AMTAR,;t t
7941 s,@install_sh@,$install_sh,;t t
7942 s,@STRIP@,$STRIP,;t t
7943 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7944 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7945 s,@mkdir_p@,$mkdir_p,;t t
7946 s,@AWK@,$AWK,;t t
7947 s,@SET_MAKE@,$SET_MAKE,;t t
7948 s,@am__leading_dot@,$am__leading_dot,;t t
7949 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7950 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7951 s,@MAINT@,$MAINT,;t t
7952 s,@CC@,$CC,;t t
7953 s,@CFLAGS@,$CFLAGS,;t t
7954 s,@LDFLAGS@,$LDFLAGS,;t t
7955 s,@CPPFLAGS@,$CPPFLAGS,;t t
7956 s,@ac_ct_CC@,$ac_ct_CC,;t t
7957 s,@EXEEXT@,$EXEEXT,;t t
7958 s,@OBJEXT@,$OBJEXT,;t t
7959 s,@DEPDIR@,$DEPDIR,;t t
7960 s,@am__include@,$am__include,;t t
7961 s,@am__quote@,$am__quote,;t t
7962 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7963 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7964 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7965 s,@CCDEPMODE@,$CCDEPMODE,;t t
7966 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7967 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7968 s,@RANLIB@,$RANLIB,;t t
7969 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7970 s,@CPP@,$CPP,;t t
7971 s,@EGREP@,$EGREP,;t t
7972 s,@LIBOBJS@,$LIBOBJS,;t t
7973 s,@ALLOCA@,$ALLOCA,;t t
7974 s,@USE_NLS@,$USE_NLS,;t t
7975 s,@LIBINTL@,$LIBINTL,;t t
7976 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7977 s,@INCINTL@,$INCINTL,;t t
7978 s,@XGETTEXT@,$XGETTEXT,;t t
7979 s,@GMSGFMT@,$GMSGFMT,;t t
7980 s,@POSUB@,$POSUB,;t t
7981 s,@CATALOGS@,$CATALOGS,;t t
7982 s,@LIBICONV@,$LIBICONV,;t t
7983 s,@LTLIBICONV@,$LTLIBICONV,;t t
7984 s,@ENABLE_NLS_TRUE@,$ENABLE_NLS_TRUE,;t t
7985 s,@ENABLE_NLS_FALSE@,$ENABLE_NLS_FALSE,;t t
7986 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7987 CEOF
7988
7989 _ACEOF
7990
7991   cat >>$CONFIG_STATUS <<\_ACEOF
7992   # Split the substitutions into bite-sized pieces for seds with
7993   # small command number limits, like on Digital OSF/1 and HP-UX.
7994   ac_max_sed_lines=48
7995   ac_sed_frag=1 # Number of current file.
7996   ac_beg=1 # First line for current file.
7997   ac_end=$ac_max_sed_lines # Line after last line for current file.
7998   ac_more_lines=:
7999   ac_sed_cmds=
8000   while $ac_more_lines; do
8001     if test $ac_beg -gt 1; then
8002       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8003     else
8004       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8005     fi
8006     if test ! -s $tmp/subs.frag; then
8007       ac_more_lines=false
8008     else
8009       # The purpose of the label and of the branching condition is to
8010       # speed up the sed processing (if there are no `@' at all, there
8011       # is no need to browse any of the substitutions).
8012       # These are the two extra sed commands mentioned above.
8013       (echo ':t
8014   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8015       if test -z "$ac_sed_cmds"; then
8016         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8017       else
8018         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8019       fi
8020       ac_sed_frag=`expr $ac_sed_frag + 1`
8021       ac_beg=$ac_end
8022       ac_end=`expr $ac_end + $ac_max_sed_lines`
8023     fi
8024   done
8025   if test -z "$ac_sed_cmds"; then
8026     ac_sed_cmds=cat
8027   fi
8028 fi # test -n "$CONFIG_FILES"
8029
8030 _ACEOF
8031 cat >>$CONFIG_STATUS <<\_ACEOF
8032 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8033   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8034   case $ac_file in
8035   - | *:- | *:-:* ) # input from stdin
8036         cat >$tmp/stdin
8037         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8038         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8039   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8040         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8041   * )   ac_file_in=$ac_file.in ;;
8042   esac
8043
8044   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8045   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8046 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8047          X"$ac_file" : 'X\(//\)[^/]' \| \
8048          X"$ac_file" : 'X\(//\)$' \| \
8049          X"$ac_file" : 'X\(/\)' \| \
8050          .     : '\(.\)' 2>/dev/null ||
8051 echo X"$ac_file" |
8052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8053           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8054           /^X\(\/\/\)$/{ s//\1/; q; }
8055           /^X\(\/\).*/{ s//\1/; q; }
8056           s/.*/./; q'`
8057   { if $as_mkdir_p; then
8058     mkdir -p "$ac_dir"
8059   else
8060     as_dir="$ac_dir"
8061     as_dirs=
8062     while test ! -d "$as_dir"; do
8063       as_dirs="$as_dir $as_dirs"
8064       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8065 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8066          X"$as_dir" : 'X\(//\)[^/]' \| \
8067          X"$as_dir" : 'X\(//\)$' \| \
8068          X"$as_dir" : 'X\(/\)' \| \
8069          .     : '\(.\)' 2>/dev/null ||
8070 echo X"$as_dir" |
8071     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8072           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8073           /^X\(\/\/\)$/{ s//\1/; q; }
8074           /^X\(\/\).*/{ s//\1/; q; }
8075           s/.*/./; q'`
8076     done
8077     test ! -n "$as_dirs" || mkdir $as_dirs
8078   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8079 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8080    { (exit 1); exit 1; }; }; }
8081
8082   ac_builddir=.
8083
8084 if test "$ac_dir" != .; then
8085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8086   # A "../" for each directory in $ac_dir_suffix.
8087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8088 else
8089   ac_dir_suffix= ac_top_builddir=
8090 fi
8091
8092 case $srcdir in
8093   .)  # No --srcdir option.  We are building in place.
8094     ac_srcdir=.
8095     if test -z "$ac_top_builddir"; then
8096        ac_top_srcdir=.
8097     else
8098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8099     fi ;;
8100   [\\/]* | ?:[\\/]* )  # Absolute path.
8101     ac_srcdir=$srcdir$ac_dir_suffix;
8102     ac_top_srcdir=$srcdir ;;
8103   *) # Relative path.
8104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8106 esac
8107
8108 # Do not use `cd foo && pwd` to compute absolute paths, because
8109 # the directories may not exist.
8110 case `pwd` in
8111 .) ac_abs_builddir="$ac_dir";;
8112 *)
8113   case "$ac_dir" in
8114   .) ac_abs_builddir=`pwd`;;
8115   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8116   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8117   esac;;
8118 esac
8119 case $ac_abs_builddir in
8120 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8121 *)
8122   case ${ac_top_builddir}. in
8123   .) ac_abs_top_builddir=$ac_abs_builddir;;
8124   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8125   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8126   esac;;
8127 esac
8128 case $ac_abs_builddir in
8129 .) ac_abs_srcdir=$ac_srcdir;;
8130 *)
8131   case $ac_srcdir in
8132   .) ac_abs_srcdir=$ac_abs_builddir;;
8133   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8134   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8135   esac;;
8136 esac
8137 case $ac_abs_builddir in
8138 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8139 *)
8140   case $ac_top_srcdir in
8141   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8142   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8143   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8144   esac;;
8145 esac
8146
8147
8148   case $INSTALL in
8149   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8150   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8151   esac
8152
8153   if test x"$ac_file" != x-; then
8154     { echo "$as_me:$LINENO: creating $ac_file" >&5
8155 echo "$as_me: creating $ac_file" >&6;}
8156     rm -f "$ac_file"
8157   fi
8158   # Let's still pretend it is `configure' which instantiates (i.e., don't
8159   # use $as_me), people would be surprised to read:
8160   #    /* config.h.  Generated by config.status.  */
8161   if test x"$ac_file" = x-; then
8162     configure_input=
8163   else
8164     configure_input="$ac_file.  "
8165   fi
8166   configure_input=$configure_input"Generated from `echo $ac_file_in |
8167                                      sed 's,.*/,,'` by configure."
8168
8169   # First look for the input files in the build tree, otherwise in the
8170   # src tree.
8171   ac_file_inputs=`IFS=:
8172     for f in $ac_file_in; do
8173       case $f in
8174       -) echo $tmp/stdin ;;
8175       [\\/$]*)
8176          # Absolute (can't be DOS-style, as IFS=:)
8177          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8178 echo "$as_me: error: cannot find input file: $f" >&2;}
8179    { (exit 1); exit 1; }; }
8180          echo "$f";;
8181       *) # Relative
8182          if test -f "$f"; then
8183            # Build tree
8184            echo "$f"
8185          elif test -f "$srcdir/$f"; then
8186            # Source tree
8187            echo "$srcdir/$f"
8188          else
8189            # /dev/null tree
8190            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8191 echo "$as_me: error: cannot find input file: $f" >&2;}
8192    { (exit 1); exit 1; }; }
8193          fi;;
8194       esac
8195     done` || { (exit 1); exit 1; }
8196 _ACEOF
8197 cat >>$CONFIG_STATUS <<_ACEOF
8198   sed "$ac_vpsub
8199 $extrasub
8200 _ACEOF
8201 cat >>$CONFIG_STATUS <<\_ACEOF
8202 :t
8203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8204 s,@configure_input@,$configure_input,;t t
8205 s,@srcdir@,$ac_srcdir,;t t
8206 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8207 s,@top_srcdir@,$ac_top_srcdir,;t t
8208 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8209 s,@builddir@,$ac_builddir,;t t
8210 s,@abs_builddir@,$ac_abs_builddir,;t t
8211 s,@top_builddir@,$ac_top_builddir,;t t
8212 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8213 s,@INSTALL@,$ac_INSTALL,;t t
8214 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8215   rm -f $tmp/stdin
8216   if test x"$ac_file" != x-; then
8217     mv $tmp/out $ac_file
8218   else
8219     cat $tmp/out
8220     rm -f $tmp/out
8221   fi
8222
8223 done
8224 _ACEOF
8225 cat >>$CONFIG_STATUS <<\_ACEOF
8226
8227 #
8228 # CONFIG_HEADER section.
8229 #
8230
8231 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8232 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8233 #
8234 # ac_d sets the value in "#define NAME VALUE" lines.
8235 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8236 ac_dB='[         ].*$,\1#\2'
8237 ac_dC=' '
8238 ac_dD=',;t'
8239 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8240 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8241 ac_uB='$,\1#\2define\3'
8242 ac_uC=' '
8243 ac_uD=',;t'
8244
8245 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8246   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8247   case $ac_file in
8248   - | *:- | *:-:* ) # input from stdin
8249         cat >$tmp/stdin
8250         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8251         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8252   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8253         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8254   * )   ac_file_in=$ac_file.in ;;
8255   esac
8256
8257   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8258 echo "$as_me: creating $ac_file" >&6;}
8259
8260   # First look for the input files in the build tree, otherwise in the
8261   # src tree.
8262   ac_file_inputs=`IFS=:
8263     for f in $ac_file_in; do
8264       case $f in
8265       -) echo $tmp/stdin ;;
8266       [\\/$]*)
8267          # Absolute (can't be DOS-style, as IFS=:)
8268          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8269 echo "$as_me: error: cannot find input file: $f" >&2;}
8270    { (exit 1); exit 1; }; }
8271          # Do quote $f, to prevent DOS paths from being IFS'd.
8272          echo "$f";;
8273       *) # Relative
8274          if test -f "$f"; then
8275            # Build tree
8276            echo "$f"
8277          elif test -f "$srcdir/$f"; then
8278            # Source tree
8279            echo "$srcdir/$f"
8280          else
8281            # /dev/null tree
8282            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8283 echo "$as_me: error: cannot find input file: $f" >&2;}
8284    { (exit 1); exit 1; }; }
8285          fi;;
8286       esac
8287     done` || { (exit 1); exit 1; }
8288   # Remove the trailing spaces.
8289   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8290
8291 _ACEOF
8292
8293 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8294 # `conftest.undefs', that substitutes the proper values into
8295 # config.h.in to produce config.h.  The first handles `#define'
8296 # templates, and the second `#undef' templates.
8297 # And first: Protect against being on the right side of a sed subst in
8298 # config.status.  Protect against being in an unquoted here document
8299 # in config.status.
8300 rm -f conftest.defines conftest.undefs
8301 # Using a here document instead of a string reduces the quoting nightmare.
8302 # Putting comments in sed scripts is not portable.
8303 #
8304 # `end' is used to avoid that the second main sed command (meant for
8305 # 0-ary CPP macros) applies to n-ary macro definitions.
8306 # See the Autoconf documentation for `clear'.
8307 cat >confdef2sed.sed <<\_ACEOF
8308 s/[\\&,]/\\&/g
8309 s,[\\$`],\\&,g
8310 t clear
8311 : clear
8312 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8313 t end
8314 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8315 : end
8316 _ACEOF
8317 # If some macros were called several times there might be several times
8318 # the same #defines, which is useless.  Nevertheless, we may not want to
8319 # sort them, since we want the *last* AC-DEFINE to be honored.
8320 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8321 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8322 rm -f confdef2sed.sed
8323
8324 # This sed command replaces #undef with comments.  This is necessary, for
8325 # example, in the case of _POSIX_SOURCE, which is predefined and required
8326 # on some systems where configure will not decide to define it.
8327 cat >>conftest.undefs <<\_ACEOF
8328 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8329 _ACEOF
8330
8331 # Break up conftest.defines because some shells have a limit on the size
8332 # of here documents, and old seds have small limits too (100 cmds).
8333 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8334 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8335 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8336 echo '  :' >>$CONFIG_STATUS
8337 rm -f conftest.tail
8338 while grep . conftest.defines >/dev/null
8339 do
8340   # Write a limited-size here document to $tmp/defines.sed.
8341   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8342   # Speed up: don't consider the non `#define' lines.
8343   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8344   # Work around the forget-to-reset-the-flag bug.
8345   echo 't clr' >>$CONFIG_STATUS
8346   echo ': clr' >>$CONFIG_STATUS
8347   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8348   echo 'CEOF
8349   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8350   rm -f $tmp/in
8351   mv $tmp/out $tmp/in
8352 ' >>$CONFIG_STATUS
8353   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8354   rm -f conftest.defines
8355   mv conftest.tail conftest.defines
8356 done
8357 rm -f conftest.defines
8358 echo '  fi # grep' >>$CONFIG_STATUS
8359 echo >>$CONFIG_STATUS
8360
8361 # Break up conftest.undefs because some shells have a limit on the size
8362 # of here documents, and old seds have small limits too (100 cmds).
8363 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8364 rm -f conftest.tail
8365 while grep . conftest.undefs >/dev/null
8366 do
8367   # Write a limited-size here document to $tmp/undefs.sed.
8368   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8369   # Speed up: don't consider the non `#undef'
8370   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8371   # Work around the forget-to-reset-the-flag bug.
8372   echo 't clr' >>$CONFIG_STATUS
8373   echo ': clr' >>$CONFIG_STATUS
8374   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8375   echo 'CEOF
8376   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8377   rm -f $tmp/in
8378   mv $tmp/out $tmp/in
8379 ' >>$CONFIG_STATUS
8380   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8381   rm -f conftest.undefs
8382   mv conftest.tail conftest.undefs
8383 done
8384 rm -f conftest.undefs
8385
8386 cat >>$CONFIG_STATUS <<\_ACEOF
8387   # Let's still pretend it is `configure' which instantiates (i.e., don't
8388   # use $as_me), people would be surprised to read:
8389   #    /* config.h.  Generated by config.status.  */
8390   if test x"$ac_file" = x-; then
8391     echo "/* Generated by configure.  */" >$tmp/config.h
8392   else
8393     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8394   fi
8395   cat $tmp/in >>$tmp/config.h
8396   rm -f $tmp/in
8397   if test x"$ac_file" != x-; then
8398     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8399       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8400 echo "$as_me: $ac_file is unchanged" >&6;}
8401     else
8402       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8403 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8404          X"$ac_file" : 'X\(//\)[^/]' \| \
8405          X"$ac_file" : 'X\(//\)$' \| \
8406          X"$ac_file" : 'X\(/\)' \| \
8407          .     : '\(.\)' 2>/dev/null ||
8408 echo X"$ac_file" |
8409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8410           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8411           /^X\(\/\/\)$/{ s//\1/; q; }
8412           /^X\(\/\).*/{ s//\1/; q; }
8413           s/.*/./; q'`
8414       { if $as_mkdir_p; then
8415     mkdir -p "$ac_dir"
8416   else
8417     as_dir="$ac_dir"
8418     as_dirs=
8419     while test ! -d "$as_dir"; do
8420       as_dirs="$as_dir $as_dirs"
8421       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8422 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8423          X"$as_dir" : 'X\(//\)[^/]' \| \
8424          X"$as_dir" : 'X\(//\)$' \| \
8425          X"$as_dir" : 'X\(/\)' \| \
8426          .     : '\(.\)' 2>/dev/null ||
8427 echo X"$as_dir" |
8428     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8429           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8430           /^X\(\/\/\)$/{ s//\1/; q; }
8431           /^X\(\/\).*/{ s//\1/; q; }
8432           s/.*/./; q'`
8433     done
8434     test ! -n "$as_dirs" || mkdir $as_dirs
8435   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8436 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8437    { (exit 1); exit 1; }; }; }
8438
8439       rm -f $ac_file
8440       mv $tmp/config.h $ac_file
8441     fi
8442   else
8443     cat $tmp/config.h
8444     rm -f $tmp/config.h
8445   fi
8446 # Compute $ac_file's index in $config_headers.
8447 _am_stamp_count=1
8448 for _am_header in $config_headers :; do
8449   case $_am_header in
8450     $ac_file | $ac_file:* )
8451       break ;;
8452     * )
8453       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8454   esac
8455 done
8456 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8457 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8458          X$ac_file : 'X\(//\)[^/]' \| \
8459          X$ac_file : 'X\(//\)$' \| \
8460          X$ac_file : 'X\(/\)' \| \
8461          .     : '\(.\)' 2>/dev/null ||
8462 echo X$ac_file |
8463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8464           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8465           /^X\(\/\/\)$/{ s//\1/; q; }
8466           /^X\(\/\).*/{ s//\1/; q; }
8467           s/.*/./; q'`/stamp-h$_am_stamp_count
8468 done
8469 _ACEOF
8470 cat >>$CONFIG_STATUS <<\_ACEOF
8471
8472 #
8473 # CONFIG_COMMANDS section.
8474 #
8475 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8476   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8477   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8478   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8479 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8480          X"$ac_dest" : 'X\(//\)[^/]' \| \
8481          X"$ac_dest" : 'X\(//\)$' \| \
8482          X"$ac_dest" : 'X\(/\)' \| \
8483          .     : '\(.\)' 2>/dev/null ||
8484 echo X"$ac_dest" |
8485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8486           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8487           /^X\(\/\/\)$/{ s//\1/; q; }
8488           /^X\(\/\).*/{ s//\1/; q; }
8489           s/.*/./; q'`
8490   { if $as_mkdir_p; then
8491     mkdir -p "$ac_dir"
8492   else
8493     as_dir="$ac_dir"
8494     as_dirs=
8495     while test ! -d "$as_dir"; do
8496       as_dirs="$as_dir $as_dirs"
8497       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8499          X"$as_dir" : 'X\(//\)[^/]' \| \
8500          X"$as_dir" : 'X\(//\)$' \| \
8501          X"$as_dir" : 'X\(/\)' \| \
8502          .     : '\(.\)' 2>/dev/null ||
8503 echo X"$as_dir" |
8504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8505           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8506           /^X\(\/\/\)$/{ s//\1/; q; }
8507           /^X\(\/\).*/{ s//\1/; q; }
8508           s/.*/./; q'`
8509     done
8510     test ! -n "$as_dirs" || mkdir $as_dirs
8511   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8512 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8513    { (exit 1); exit 1; }; }; }
8514
8515   ac_builddir=.
8516
8517 if test "$ac_dir" != .; then
8518   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8519   # A "../" for each directory in $ac_dir_suffix.
8520   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8521 else
8522   ac_dir_suffix= ac_top_builddir=
8523 fi
8524
8525 case $srcdir in
8526   .)  # No --srcdir option.  We are building in place.
8527     ac_srcdir=.
8528     if test -z "$ac_top_builddir"; then
8529        ac_top_srcdir=.
8530     else
8531        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8532     fi ;;
8533   [\\/]* | ?:[\\/]* )  # Absolute path.
8534     ac_srcdir=$srcdir$ac_dir_suffix;
8535     ac_top_srcdir=$srcdir ;;
8536   *) # Relative path.
8537     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8538     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8539 esac
8540
8541 # Do not use `cd foo && pwd` to compute absolute paths, because
8542 # the directories may not exist.
8543 case `pwd` in
8544 .) ac_abs_builddir="$ac_dir";;
8545 *)
8546   case "$ac_dir" in
8547   .) ac_abs_builddir=`pwd`;;
8548   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8549   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8550   esac;;
8551 esac
8552 case $ac_abs_builddir in
8553 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8554 *)
8555   case ${ac_top_builddir}. in
8556   .) ac_abs_top_builddir=$ac_abs_builddir;;
8557   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8558   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8559   esac;;
8560 esac
8561 case $ac_abs_builddir in
8562 .) ac_abs_srcdir=$ac_srcdir;;
8563 *)
8564   case $ac_srcdir in
8565   .) ac_abs_srcdir=$ac_abs_builddir;;
8566   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8567   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8568   esac;;
8569 esac
8570 case $ac_abs_builddir in
8571 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8572 *)
8573   case $ac_top_srcdir in
8574   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8575   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8576   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8577   esac;;
8578 esac
8579
8580
8581   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8582 echo "$as_me: executing $ac_dest commands" >&6;}
8583   case $ac_dest in
8584     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8585   # Strip MF so we end up with the name of the file.
8586   mf=`echo "$mf" | sed -e 's/:.*$//'`
8587   # Check whether this is an Automake generated Makefile or not.
8588   # We used to match only the files named `Makefile.in', but
8589   # some people rename them; so instead we look at the file content.
8590   # Grep'ing the first line is not enough: some people post-process
8591   # each Makefile.in and add a new line on top of each file to say so.
8592   # So let's grep whole file.
8593   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8594     dirpart=`(dirname "$mf") 2>/dev/null ||
8595 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8596          X"$mf" : 'X\(//\)[^/]' \| \
8597          X"$mf" : 'X\(//\)$' \| \
8598          X"$mf" : 'X\(/\)' \| \
8599          .     : '\(.\)' 2>/dev/null ||
8600 echo X"$mf" |
8601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8602           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8603           /^X\(\/\/\)$/{ s//\1/; q; }
8604           /^X\(\/\).*/{ s//\1/; q; }
8605           s/.*/./; q'`
8606   else
8607     continue
8608   fi
8609   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8610   # Extract the definition of DEP_FILES from the Makefile without
8611   # running `make'.
8612   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8613   test -z "$DEPDIR" && continue
8614   # When using ansi2knr, U may be empty or an underscore; expand it
8615   U=`sed -n 's/^U = //p' < "$mf"`
8616   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8617   # We invoke sed twice because it is the simplest approach to
8618   # changing $(DEPDIR) to its actual value in the expansion.
8619   for file in `sed -n '
8620     /^DEP_FILES = .*\\\\$/ {
8621       s/^DEP_FILES = //
8622       :loop
8623         s/\\\\$//
8624         p
8625         n
8626         /\\\\$/ b loop
8627       p
8628     }
8629     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8630        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8631     # Make sure the directory exists.
8632     test -f "$dirpart/$file" && continue
8633     fdir=`(dirname "$file") 2>/dev/null ||
8634 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8635          X"$file" : 'X\(//\)[^/]' \| \
8636          X"$file" : 'X\(//\)$' \| \
8637          X"$file" : 'X\(/\)' \| \
8638          .     : '\(.\)' 2>/dev/null ||
8639 echo X"$file" |
8640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8641           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8642           /^X\(\/\/\)$/{ s//\1/; q; }
8643           /^X\(\/\).*/{ s//\1/; q; }
8644           s/.*/./; q'`
8645     { if $as_mkdir_p; then
8646     mkdir -p $dirpart/$fdir
8647   else
8648     as_dir=$dirpart/$fdir
8649     as_dirs=
8650     while test ! -d "$as_dir"; do
8651       as_dirs="$as_dir $as_dirs"
8652       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8654          X"$as_dir" : 'X\(//\)[^/]' \| \
8655          X"$as_dir" : 'X\(//\)$' \| \
8656          X"$as_dir" : 'X\(/\)' \| \
8657          .     : '\(.\)' 2>/dev/null ||
8658 echo X"$as_dir" |
8659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8660           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8661           /^X\(\/\/\)$/{ s//\1/; q; }
8662           /^X\(\/\).*/{ s//\1/; q; }
8663           s/.*/./; q'`
8664     done
8665     test ! -n "$as_dirs" || mkdir $as_dirs
8666   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8667 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8668    { (exit 1); exit 1; }; }; }
8669
8670     # echo "creating $dirpart/$file"
8671     echo '# dummy' > "$dirpart/$file"
8672   done
8673 done
8674  ;;
8675   esac
8676 done
8677 _ACEOF
8678
8679 cat >>$CONFIG_STATUS <<\_ACEOF
8680
8681 { (exit 0); exit 0; }
8682 _ACEOF
8683 chmod +x $CONFIG_STATUS
8684 ac_clean_files=$ac_clean_files_save
8685
8686
8687 # configure is writing to config.log, and then calls config.status.
8688 # config.status does its own redirection, appending to config.log.
8689 # Unfortunately, on DOS this fails, as config.log is still kept open
8690 # by configure, so config.status won't be able to write to it; its
8691 # output is simply discarded.  So we exec the FD to /dev/null,
8692 # effectively closing config.log, so it can be properly (re)opened and
8693 # appended to by config.status.  When coming back to configure, we
8694 # need to make the FD available again.
8695 if test "$no_create" != yes; then
8696   ac_cs_success=:
8697   ac_config_status_args=
8698   test "$silent" = yes &&
8699     ac_config_status_args="$ac_config_status_args --quiet"
8700   exec 5>/dev/null
8701   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8702   exec 5>>config.log
8703   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8704   # would make configure fail if this is the last instruction.
8705   $ac_cs_success || { (exit 1); exit 1; }
8706 fi
8707