]> git.deb.at Git - pkg/abook.git/blob - configure
30612e6eec7d28e37ba7c1844e6f9fd49c2b4c21
[pkg/abook.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="abook.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP GLIBC2 RANLIB ac_ct_RANLIB ALLOCA GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB localedir USE_INCLUDED_INTL_H_TRUE USE_INCLUDED_INTL_H_FALSE U ANSI2KNR LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --disable-nls           do not use Native Language Support
853   --disable-dependency-tracking  speeds up one-time build
854   --enable-dependency-tracking   do not reject slow dependency extractors
855   --disable-rpath         do not hardcode runtime library paths
856   --enable-debug          Enable debugging support
857
858 Optional Packages:
859   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
860   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
861   --with-gnu-ld           assume the C compiler uses GNU ld default=no
862   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
863   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
864   --with-included-gettext use the GNU gettext library included here
865   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
866   --without-libintl-prefix     don't search for libintl in includedir and libdir
867   --with-localedir=PATH      Where the locale files are installed
868   --with-curses=DIR       Where ncurses is installed
869   --with-readline=DIR     Where readline is installed
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 _ACEOF
884 fi
885
886 if test "$ac_init_help" = "recursive"; then
887   # If there are subdirs, report their specific --help.
888   ac_popdir=`pwd`
889   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890     test -d $ac_dir || continue
891     ac_builddir=.
892
893 if test "$ac_dir" != .; then
894   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895   # A "../" for each directory in $ac_dir_suffix.
896   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897 else
898   ac_dir_suffix= ac_top_builddir=
899 fi
900
901 case $srcdir in
902   .)  # No --srcdir option.  We are building in place.
903     ac_srcdir=.
904     if test -z "$ac_top_builddir"; then
905        ac_top_srcdir=.
906     else
907        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908     fi ;;
909   [\\/]* | ?:[\\/]* )  # Absolute path.
910     ac_srcdir=$srcdir$ac_dir_suffix;
911     ac_top_srcdir=$srcdir ;;
912   *) # Relative path.
913     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914     ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 esac
916
917 # Do not use `cd foo && pwd` to compute absolute paths, because
918 # the directories may not exist.
919 case `pwd` in
920 .) ac_abs_builddir="$ac_dir";;
921 *)
922   case "$ac_dir" in
923   .) ac_abs_builddir=`pwd`;;
924   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
925   *) ac_abs_builddir=`pwd`/"$ac_dir";;
926   esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *)
931   case ${ac_top_builddir}. in
932   .) ac_abs_top_builddir=$ac_abs_builddir;;
933   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
934   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935   esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_srcdir=$ac_srcdir;;
939 *)
940   case $ac_srcdir in
941   .) ac_abs_srcdir=$ac_abs_builddir;;
942   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
943   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944   esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *)
949   case $ac_top_srcdir in
950   .) ac_abs_top_srcdir=$ac_abs_builddir;;
951   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
952   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
953   esac;;
954 esac
955
956     cd $ac_dir
957     # Check for guested configure; otherwise get Cygnus style configure.
958     if test -f $ac_srcdir/configure.gnu; then
959       echo
960       $SHELL $ac_srcdir/configure.gnu  --help=recursive
961     elif test -f $ac_srcdir/configure; then
962       echo
963       $SHELL $ac_srcdir/configure  --help=recursive
964     elif test -f $ac_srcdir/configure.ac ||
965            test -f $ac_srcdir/configure.in; then
966       echo
967       $ac_configure --help
968     else
969       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970     fi
971     cd "$ac_popdir"
972   done
973 fi
974
975 test -n "$ac_init_help" && exit 0
976 if $ac_init_version; then
977   cat <<\_ACEOF
978
979 Copyright (C) 2003 Free Software Foundation, Inc.
980 This configure script is free software; the Free Software Foundation
981 gives unlimited permission to copy, distribute and modify it.
982 _ACEOF
983   exit 0
984 fi
985 exec 5>config.log
986 cat >&5 <<_ACEOF
987 This file contains any messages produced by compilers while
988 running configure, to aid debugging if configure makes a mistake.
989
990 It was created by $as_me, which was
991 generated by GNU Autoconf 2.59.  Invocation command line was
992
993   $ $0 $@
994
995 _ACEOF
996 {
997 cat <<_ASUNAME
998 ## --------- ##
999 ## Platform. ##
1000 ## --------- ##
1001
1002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007
1008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1009 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1010
1011 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1012 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1014 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1015 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1016 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1017 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1018
1019 _ASUNAME
1020
1021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022 for as_dir in $PATH
1023 do
1024   IFS=$as_save_IFS
1025   test -z "$as_dir" && as_dir=.
1026   echo "PATH: $as_dir"
1027 done
1028
1029 } >&5
1030
1031 cat >&5 <<_ACEOF
1032
1033
1034 ## ----------- ##
1035 ## Core tests. ##
1036 ## ----------- ##
1037
1038 _ACEOF
1039
1040
1041 # Keep a trace of the command line.
1042 # Strip out --no-create and --no-recursion so they do not pile up.
1043 # Strip out --silent because we don't want to record it for future runs.
1044 # Also quote any args containing shell meta-characters.
1045 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_configure_args=
1047 ac_configure_args0=
1048 ac_configure_args1=
1049 ac_sep=
1050 ac_must_keep_next=false
1051 for ac_pass in 1 2
1052 do
1053   for ac_arg
1054   do
1055     case $ac_arg in
1056     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1057     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058     | -silent | --silent | --silen | --sile | --sil)
1059       continue ;;
1060     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062     esac
1063     case $ac_pass in
1064     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065     2)
1066       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1067       if test $ac_must_keep_next = true; then
1068         ac_must_keep_next=false # Got value, back to normal.
1069       else
1070         case $ac_arg in
1071           *=* | --config-cache | -C | -disable-* | --disable-* \
1072           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1073           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1074           | -with-* | --with-* | -without-* | --without-* | --x)
1075             case "$ac_configure_args0 " in
1076               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077             esac
1078             ;;
1079           -* ) ac_must_keep_next=true ;;
1080         esac
1081       fi
1082       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1083       # Get rid of the leading space.
1084       ac_sep=" "
1085       ;;
1086     esac
1087   done
1088 done
1089 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1090 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091
1092 # When interrupted or exit'd, cleanup temporary files, and complete
1093 # config.log.  We remove comments because anyway the quotes in there
1094 # would cause problems or look ugly.
1095 # WARNING: Be sure not to use single quotes in there, as some shells,
1096 # such as our DU 5.0 friend, will then `close' the trap.
1097 trap 'exit_status=$?
1098   # Save into config.log some information that might help in debugging.
1099   {
1100     echo
1101
1102     cat <<\_ASBOX
1103 ## ---------------- ##
1104 ## Cache variables. ##
1105 ## ---------------- ##
1106 _ASBOX
1107     echo
1108     # The following way of writing the cache mishandles newlines in values,
1109 {
1110   (set) 2>&1 |
1111     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112     *ac_space=\ *)
1113       sed -n \
1114         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1115           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116       ;;
1117     *)
1118       sed -n \
1119         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120       ;;
1121     esac;
1122 }
1123     echo
1124
1125     cat <<\_ASBOX
1126 ## ----------------- ##
1127 ## Output variables. ##
1128 ## ----------------- ##
1129 _ASBOX
1130     echo
1131     for ac_var in $ac_subst_vars
1132     do
1133       eval ac_val=$`echo $ac_var`
1134       echo "$ac_var='"'"'$ac_val'"'"'"
1135     done | sort
1136     echo
1137
1138     if test -n "$ac_subst_files"; then
1139       cat <<\_ASBOX
1140 ## ------------- ##
1141 ## Output files. ##
1142 ## ------------- ##
1143 _ASBOX
1144       echo
1145       for ac_var in $ac_subst_files
1146       do
1147         eval ac_val=$`echo $ac_var`
1148         echo "$ac_var='"'"'$ac_val'"'"'"
1149       done | sort
1150       echo
1151     fi
1152
1153     if test -s confdefs.h; then
1154       cat <<\_ASBOX
1155 ## ----------- ##
1156 ## confdefs.h. ##
1157 ## ----------- ##
1158 _ASBOX
1159       echo
1160       sed "/^$/d" confdefs.h | sort
1161       echo
1162     fi
1163     test "$ac_signal" != 0 &&
1164       echo "$as_me: caught signal $ac_signal"
1165     echo "$as_me: exit $exit_status"
1166   } >&5
1167   rm -f core *.core &&
1168   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169     exit $exit_status
1170      ' 0
1171 for ac_signal in 1 2 13 15; do
1172   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173 done
1174 ac_signal=0
1175
1176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1177 rm -rf conftest* confdefs.h
1178 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 echo >confdefs.h
1180
1181 # Predefined preprocessor variables.
1182
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_NAME "$PACKAGE_NAME"
1185 _ACEOF
1186
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_STRING "$PACKAGE_STRING"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205 _ACEOF
1206
1207
1208 # Let the site file select an alternate cache file if it wants to.
1209 # Prefer explicitly selected file to automatically selected ones.
1210 if test -z "$CONFIG_SITE"; then
1211   if test "x$prefix" != xNONE; then
1212     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213   else
1214     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215   fi
1216 fi
1217 for ac_site_file in $CONFIG_SITE; do
1218   if test -r "$ac_site_file"; then
1219     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1220 echo "$as_me: loading site script $ac_site_file" >&6;}
1221     sed 's/^/| /' "$ac_site_file" >&5
1222     . "$ac_site_file"
1223   fi
1224 done
1225
1226 if test -r "$cache_file"; then
1227   # Some versions of bash will fail to source /dev/null (special
1228   # files actually), so we avoid doing that.
1229   if test -f "$cache_file"; then
1230     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1231 echo "$as_me: loading cache $cache_file" >&6;}
1232     case $cache_file in
1233       [\\/]* | ?:[\\/]* ) . $cache_file;;
1234       *)                      . ./$cache_file;;
1235     esac
1236   fi
1237 else
1238   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1239 echo "$as_me: creating cache $cache_file" >&6;}
1240   >$cache_file
1241 fi
1242
1243 # Check that the precious variables saved in the cache have kept the same
1244 # value.
1245 ac_cache_corrupted=false
1246 for ac_var in `(set) 2>&1 |
1247                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1248   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1249   eval ac_new_set=\$ac_env_${ac_var}_set
1250   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1251   eval ac_new_val="\$ac_env_${ac_var}_value"
1252   case $ac_old_set,$ac_new_set in
1253     set,)
1254       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1256       ac_cache_corrupted=: ;;
1257     ,set)
1258       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1260       ac_cache_corrupted=: ;;
1261     ,);;
1262     *)
1263       if test "x$ac_old_val" != "x$ac_new_val"; then
1264         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1265 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1266         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1267 echo "$as_me:   former value:  $ac_old_val" >&2;}
1268         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1269 echo "$as_me:   current value: $ac_new_val" >&2;}
1270         ac_cache_corrupted=:
1271       fi;;
1272   esac
1273   # Pass precious variables to config.status.
1274   if test "$ac_new_set" = set; then
1275     case $ac_new_val in
1276     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1278     *) ac_arg=$ac_var=$ac_new_val ;;
1279     esac
1280     case " $ac_configure_args " in
1281       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1282       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283     esac
1284   fi
1285 done
1286 if $ac_cache_corrupted; then
1287   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1288 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1289   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1290 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1291    { (exit 1); exit 1; }; }
1292 fi
1293
1294 ac_ext=c
1295 ac_cpp='$CPP $CPPFLAGS'
1296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318 am__api_version="1.9"
1319 ac_aux_dir=
1320 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321   if test -f $ac_dir/install-sh; then
1322     ac_aux_dir=$ac_dir
1323     ac_install_sh="$ac_aux_dir/install-sh -c"
1324     break
1325   elif test -f $ac_dir/install.sh; then
1326     ac_aux_dir=$ac_dir
1327     ac_install_sh="$ac_aux_dir/install.sh -c"
1328     break
1329   elif test -f $ac_dir/shtool; then
1330     ac_aux_dir=$ac_dir
1331     ac_install_sh="$ac_aux_dir/shtool install -c"
1332     break
1333   fi
1334 done
1335 if test -z "$ac_aux_dir"; then
1336   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338    { (exit 1); exit 1; }; }
1339 fi
1340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343
1344 # Find a good install program.  We prefer a C program (faster),
1345 # so one script is as good as another.  But avoid the broken or
1346 # incompatible versions:
1347 # SysV /etc/install, /usr/sbin/install
1348 # SunOS /usr/etc/install
1349 # IRIX /sbin/install
1350 # AIX /bin/install
1351 # AmigaOS /C/install, which installs bootblocks on floppy discs
1352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1355 # OS/2's system install, which has a completely different semantic
1356 # ./install, which can be erroneously created by make from ./install.sh.
1357 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1359 if test -z "$INSTALL"; then
1360 if test "${ac_cv_path_install+set}" = set; then
1361   echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 for as_dir in $PATH
1365 do
1366   IFS=$as_save_IFS
1367   test -z "$as_dir" && as_dir=.
1368   # Account for people who put trailing slashes in PATH elements.
1369 case $as_dir/ in
1370   ./ | .// | /cC/* | \
1371   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1372   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1373   /usr/ucb/* ) ;;
1374   *)
1375     # OSF1 and SCO ODT 3.0 have their own names for install.
1376     # Don't use installbsd from OSF since it installs stuff as root
1377     # by default.
1378     for ac_prog in ginstall scoinst install; do
1379       for ac_exec_ext in '' $ac_executable_extensions; do
1380         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1381           if test $ac_prog = install &&
1382             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383             # AIX install.  It has an incompatible calling convention.
1384             :
1385           elif test $ac_prog = install &&
1386             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1387             # program-specific install script used by HP pwplus--don't use.
1388             :
1389           else
1390             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1391             break 3
1392           fi
1393         fi
1394       done
1395     done
1396     ;;
1397 esac
1398 done
1399
1400
1401 fi
1402   if test "${ac_cv_path_install+set}" = set; then
1403     INSTALL=$ac_cv_path_install
1404   else
1405     # As a last resort, use the slow shell script.  We don't cache a
1406     # path for INSTALL within a source directory, because that will
1407     # break other packages using the cache if that directory is
1408     # removed, or if the path is relative.
1409     INSTALL=$ac_install_sh
1410   fi
1411 fi
1412 echo "$as_me:$LINENO: result: $INSTALL" >&5
1413 echo "${ECHO_T}$INSTALL" >&6
1414
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422
1423 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1424 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1425 # Just in case
1426 sleep 1
1427 echo timestamp > conftest.file
1428 # Do `set' in a subshell so we don't clobber the current shell's
1429 # arguments.  Must try -L first in case configure is actually a
1430 # symlink; some systems play weird games with the mod time of symlinks
1431 # (eg FreeBSD returns the mod time of the symlink's containing
1432 # directory).
1433 if (
1434    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1435    if test "$*" = "X"; then
1436       # -L didn't work.
1437       set X `ls -t $srcdir/configure conftest.file`
1438    fi
1439    rm -f conftest.file
1440    if test "$*" != "X $srcdir/configure conftest.file" \
1441       && test "$*" != "X conftest.file $srcdir/configure"; then
1442
1443       # If neither matched, then we have a broken ls.  This can happen
1444       # if, for instance, CONFIG_SHELL is bash and it inherits a
1445       # broken ls alias from the environment.  This has actually
1446       # happened.  Such a system could not be considered "sane".
1447       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1448 alias in your environment" >&5
1449 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1450 alias in your environment" >&2;}
1451    { (exit 1); exit 1; }; }
1452    fi
1453
1454    test "$2" = conftest.file
1455    )
1456 then
1457    # Ok.
1458    :
1459 else
1460    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1461 Check your system clock" >&5
1462 echo "$as_me: error: newly created file is older than distributed files!
1463 Check your system clock" >&2;}
1464    { (exit 1); exit 1; }; }
1465 fi
1466 echo "$as_me:$LINENO: result: yes" >&5
1467 echo "${ECHO_T}yes" >&6
1468 test "$program_prefix" != NONE &&
1469   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470 # Use a double $ so make ignores it.
1471 test "$program_suffix" != NONE &&
1472   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473 # Double any \ or $.  echo might interpret backslashes.
1474 # By default was `s,x,x', remove it if useless.
1475 cat <<\_ACEOF >conftest.sed
1476 s/[\\$]/&&/g;s/;s,x,x,$//
1477 _ACEOF
1478 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1479 rm conftest.sed
1480
1481 # expand $ac_aux_dir to an absolute path
1482 am_aux_dir=`cd $ac_aux_dir && pwd`
1483
1484 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1485 # Use eval to expand $SHELL
1486 if eval "$MISSING --run true"; then
1487   am_missing_run="$MISSING --run "
1488 else
1489   am_missing_run=
1490   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1491 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1492 fi
1493
1494 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1495   # We used to keeping the `.' as first argument, in order to
1496   # allow $(mkdir_p) to be used without argument.  As in
1497   #   $(mkdir_p) $(somedir)
1498   # where $(somedir) is conditionally defined.  However this is wrong
1499   # for two reasons:
1500   #  1. if the package is installed by a user who cannot write `.'
1501   #     make install will fail,
1502   #  2. the above comment should most certainly read
1503   #     $(mkdir_p) $(DESTDIR)$(somedir)
1504   #     so it does not work when $(somedir) is undefined and
1505   #     $(DESTDIR) is not.
1506   #  To support the latter case, we have to write
1507   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1508   #  so the `.' trick is pointless.
1509   mkdir_p='mkdir -p --'
1510 else
1511   # On NextStep and OpenStep, the `mkdir' command does not
1512   # recognize any option.  It will interpret all options as
1513   # directories to create, and then abort because `.' already
1514   # exists.
1515   for d in ./-p ./--version;
1516   do
1517     test -d $d && rmdir $d
1518   done
1519   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1520   if test -f "$ac_aux_dir/mkinstalldirs"; then
1521     mkdir_p='$(mkinstalldirs)'
1522   else
1523     mkdir_p='$(install_sh) -d'
1524   fi
1525 fi
1526
1527 for ac_prog in gawk mawk nawk awk
1528 do
1529   # Extract the first word of "$ac_prog", so it can be a program name with args.
1530 set dummy $ac_prog; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_AWK+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   if test -n "$AWK"; then
1537   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542   IFS=$as_save_IFS
1543   test -z "$as_dir" && as_dir=.
1544   for ac_exec_ext in '' $ac_executable_extensions; do
1545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546     ac_cv_prog_AWK="$ac_prog"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549   fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 AWK=$ac_cv_prog_AWK
1556 if test -n "$AWK"; then
1557   echo "$as_me:$LINENO: result: $AWK" >&5
1558 echo "${ECHO_T}$AWK" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564   test -n "$AWK" && break
1565 done
1566
1567 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1568 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1569 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1570 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1571   echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573   cat >conftest.make <<\_ACEOF
1574 all:
1575         @echo 'ac_maketemp="$(MAKE)"'
1576 _ACEOF
1577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1578 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1579 if test -n "$ac_maketemp"; then
1580   eval ac_cv_prog_make_${ac_make}_set=yes
1581 else
1582   eval ac_cv_prog_make_${ac_make}_set=no
1583 fi
1584 rm -f conftest.make
1585 fi
1586 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1587   echo "$as_me:$LINENO: result: yes" >&5
1588 echo "${ECHO_T}yes" >&6
1589   SET_MAKE=
1590 else
1591   echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1593   SET_MAKE="MAKE=${MAKE-make}"
1594 fi
1595
1596 rm -rf .tst 2>/dev/null
1597 mkdir .tst 2>/dev/null
1598 if test -d .tst; then
1599   am__leading_dot=.
1600 else
1601   am__leading_dot=_
1602 fi
1603 rmdir .tst 2>/dev/null
1604
1605 # test to see if srcdir already configured
1606 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1607    test -f $srcdir/config.status; then
1608   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1609 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1610    { (exit 1); exit 1; }; }
1611 fi
1612
1613 # test whether we have cygpath
1614 if test -z "$CYGPATH_W"; then
1615   if (cygpath --version) >/dev/null 2>/dev/null; then
1616     CYGPATH_W='cygpath -w'
1617   else
1618     CYGPATH_W=echo
1619   fi
1620 fi
1621
1622
1623 # Define the identity of the package.
1624  PACKAGE=abook
1625  VERSION=0.5.5pre1
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE "$PACKAGE"
1630 _ACEOF
1631
1632
1633 cat >>confdefs.h <<_ACEOF
1634 #define VERSION "$VERSION"
1635 _ACEOF
1636
1637 # Some tools Automake needs.
1638
1639 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1640
1641
1642 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1643
1644
1645 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1646
1647
1648 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1649
1650
1651 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1652
1653 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1654
1655 # Installed binaries are usually stripped using `strip' when the user
1656 # run `make install-strip'.  However `strip' might not be the right
1657 # tool to use in cross-compilation environments, therefore Automake
1658 # will honor the `STRIP' environment variable to overrule this program.
1659 if test "$cross_compiling" != no; then
1660   if test -n "$ac_tool_prefix"; then
1661   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1662 set dummy ${ac_tool_prefix}strip; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_STRIP+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   if test -n "$STRIP"; then
1669   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1673 do
1674   IFS=$as_save_IFS
1675   test -z "$as_dir" && as_dir=.
1676   for ac_exec_ext in '' $ac_executable_extensions; do
1677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680     break 2
1681   fi
1682 done
1683 done
1684
1685 fi
1686 fi
1687 STRIP=$ac_cv_prog_STRIP
1688 if test -n "$STRIP"; then
1689   echo "$as_me:$LINENO: result: $STRIP" >&5
1690 echo "${ECHO_T}$STRIP" >&6
1691 else
1692   echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1694 fi
1695
1696 fi
1697 if test -z "$ac_cv_prog_STRIP"; then
1698   ac_ct_STRIP=$STRIP
1699   # Extract the first word of "strip", so it can be a program name with args.
1700 set dummy strip; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   if test -n "$ac_ct_STRIP"; then
1707   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   for ac_exec_ext in '' $ac_executable_extensions; do
1715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716     ac_cv_prog_ac_ct_STRIP="strip"
1717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718     break 2
1719   fi
1720 done
1721 done
1722
1723   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1724 fi
1725 fi
1726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1727 if test -n "$ac_ct_STRIP"; then
1728   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1729 echo "${ECHO_T}$ac_ct_STRIP" >&6
1730 else
1731   echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1733 fi
1734
1735   STRIP=$ac_ct_STRIP
1736 else
1737   STRIP="$ac_cv_prog_STRIP"
1738 fi
1739
1740 fi
1741 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1742
1743 # We need awk for the "check" target.  The system "awk" is bad on
1744 # some platforms.
1745 # Always define AMTAR for backward compatibility.
1746
1747 AMTAR=${AMTAR-"${am_missing_run}tar"}
1748
1749 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1750
1751
1752
1753
1754
1755           ac_config_headers="$ac_config_headers config.h"
1756
1757
1758
1759
1760
1761         MKINSTALLDIRS=
1762   if test -n "$ac_aux_dir"; then
1763     case "$ac_aux_dir" in
1764       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
1765       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
1766     esac
1767   fi
1768   if test -z "$MKINSTALLDIRS"; then
1769     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1770   fi
1771
1772
1773
1774   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
1775 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
1776     # Check whether --enable-nls or --disable-nls was given.
1777 if test "${enable_nls+set}" = set; then
1778   enableval="$enable_nls"
1779   USE_NLS=$enableval
1780 else
1781   USE_NLS=yes
1782 fi;
1783   echo "$as_me:$LINENO: result: $USE_NLS" >&5
1784 echo "${ECHO_T}$USE_NLS" >&6
1785
1786
1787
1788
1789
1790
1791 # Prepare PATH_SEPARATOR.
1792 # The user is always right.
1793 if test "${PATH_SEPARATOR+set}" != set; then
1794   echo "#! /bin/sh" >conf$$.sh
1795   echo  "exit 0"   >>conf$$.sh
1796   chmod +x conf$$.sh
1797   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1798     PATH_SEPARATOR=';'
1799   else
1800     PATH_SEPARATOR=:
1801   fi
1802   rm -f conf$$.sh
1803 fi
1804
1805 # Find out how to test for executable files. Don't use a zero-byte file,
1806 # as systems may use methods other than mode bits to determine executability.
1807 cat >conf$$.file <<_ASEOF
1808 #! /bin/sh
1809 exit 0
1810 _ASEOF
1811 chmod +x conf$$.file
1812 if test -x conf$$.file >/dev/null 2>&1; then
1813   ac_executable_p="test -x"
1814 else
1815   ac_executable_p="test -f"
1816 fi
1817 rm -f conf$$.file
1818
1819 # Extract the first word of "msgfmt", so it can be a program name with args.
1820 set dummy msgfmt; ac_word=$2
1821 echo "$as_me:$LINENO: checking for $ac_word" >&5
1822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823 if test "${ac_cv_path_MSGFMT+set}" = set; then
1824   echo $ECHO_N "(cached) $ECHO_C" >&6
1825 else
1826   case "$MSGFMT" in
1827   [\\/]* | ?:[\\/]*)
1828     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
1829     ;;
1830   *)
1831     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1832     for ac_dir in $PATH; do
1833       IFS="$ac_save_IFS"
1834       test -z "$ac_dir" && ac_dir=.
1835       for ac_exec_ext in '' $ac_executable_extensions; do
1836         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1837           echo "$as_me: trying $ac_dir/$ac_word..." >&5
1838           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
1839      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1840             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
1841             break 2
1842           fi
1843         fi
1844       done
1845     done
1846     IFS="$ac_save_IFS"
1847   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
1848     ;;
1849 esac
1850 fi
1851 MSGFMT="$ac_cv_path_MSGFMT"
1852 if test "$MSGFMT" != ":"; then
1853   echo "$as_me:$LINENO: result: $MSGFMT" >&5
1854 echo "${ECHO_T}$MSGFMT" >&6
1855 else
1856   echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860   # Extract the first word of "gmsgfmt", so it can be a program name with args.
1861 set dummy gmsgfmt; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_path_GMSGFMT+set}" = set; then
1865   echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867   case $GMSGFMT in
1868   [\\/]* | ?:[\\/]*)
1869   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
1870   ;;
1871   *)
1872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875   IFS=$as_save_IFS
1876   test -z "$as_dir" && as_dir=.
1877   for ac_exec_ext in '' $ac_executable_extensions; do
1878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
1880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881     break 2
1882   fi
1883 done
1884 done
1885
1886   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
1887   ;;
1888 esac
1889 fi
1890 GMSGFMT=$ac_cv_path_GMSGFMT
1891
1892 if test -n "$GMSGFMT"; then
1893   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
1894 echo "${ECHO_T}$GMSGFMT" >&6
1895 else
1896   echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1898 fi
1899
1900
1901
1902 # Prepare PATH_SEPARATOR.
1903 # The user is always right.
1904 if test "${PATH_SEPARATOR+set}" != set; then
1905   echo "#! /bin/sh" >conf$$.sh
1906   echo  "exit 0"   >>conf$$.sh
1907   chmod +x conf$$.sh
1908   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1909     PATH_SEPARATOR=';'
1910   else
1911     PATH_SEPARATOR=:
1912   fi
1913   rm -f conf$$.sh
1914 fi
1915
1916 # Find out how to test for executable files. Don't use a zero-byte file,
1917 # as systems may use methods other than mode bits to determine executability.
1918 cat >conf$$.file <<_ASEOF
1919 #! /bin/sh
1920 exit 0
1921 _ASEOF
1922 chmod +x conf$$.file
1923 if test -x conf$$.file >/dev/null 2>&1; then
1924   ac_executable_p="test -x"
1925 else
1926   ac_executable_p="test -f"
1927 fi
1928 rm -f conf$$.file
1929
1930 # Extract the first word of "xgettext", so it can be a program name with args.
1931 set dummy xgettext; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_path_XGETTEXT+set}" = set; then
1935   echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937   case "$XGETTEXT" in
1938   [\\/]* | ?:[\\/]*)
1939     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
1940     ;;
1941   *)
1942     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1943     for ac_dir in $PATH; do
1944       IFS="$ac_save_IFS"
1945       test -z "$ac_dir" && ac_dir=.
1946       for ac_exec_ext in '' $ac_executable_extensions; do
1947         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1948           echo "$as_me: trying $ac_dir/$ac_word..." >&5
1949           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
1950      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1951             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
1952             break 2
1953           fi
1954         fi
1955       done
1956     done
1957     IFS="$ac_save_IFS"
1958   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
1959     ;;
1960 esac
1961 fi
1962 XGETTEXT="$ac_cv_path_XGETTEXT"
1963 if test "$XGETTEXT" != ":"; then
1964   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
1965 echo "${ECHO_T}$XGETTEXT" >&6
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969 fi
1970
1971     rm -f messages.po
1972
1973
1974 # Prepare PATH_SEPARATOR.
1975 # The user is always right.
1976 if test "${PATH_SEPARATOR+set}" != set; then
1977   echo "#! /bin/sh" >conf$$.sh
1978   echo  "exit 0"   >>conf$$.sh
1979   chmod +x conf$$.sh
1980   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1981     PATH_SEPARATOR=';'
1982   else
1983     PATH_SEPARATOR=:
1984   fi
1985   rm -f conf$$.sh
1986 fi
1987
1988 # Find out how to test for executable files. Don't use a zero-byte file,
1989 # as systems may use methods other than mode bits to determine executability.
1990 cat >conf$$.file <<_ASEOF
1991 #! /bin/sh
1992 exit 0
1993 _ASEOF
1994 chmod +x conf$$.file
1995 if test -x conf$$.file >/dev/null 2>&1; then
1996   ac_executable_p="test -x"
1997 else
1998   ac_executable_p="test -f"
1999 fi
2000 rm -f conf$$.file
2001
2002 # Extract the first word of "msgmerge", so it can be a program name with args.
2003 set dummy msgmerge; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   case "$MSGMERGE" in
2010   [\\/]* | ?:[\\/]*)
2011     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2012     ;;
2013   *)
2014     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2015     for ac_dir in $PATH; do
2016       IFS="$ac_save_IFS"
2017       test -z "$ac_dir" && ac_dir=.
2018       for ac_exec_ext in '' $ac_executable_extensions; do
2019         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2020           echo "$as_me: trying $ac_dir/$ac_word..." >&5
2021           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2022             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2023             break 2
2024           fi
2025         fi
2026       done
2027     done
2028     IFS="$ac_save_IFS"
2029   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2030     ;;
2031 esac
2032 fi
2033 MSGMERGE="$ac_cv_path_MSGMERGE"
2034 if test "$MSGMERGE" != ":"; then
2035   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2036 echo "${ECHO_T}$MSGMERGE" >&6
2037 else
2038   echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2040 fi
2041
2042
2043       if test "$GMSGFMT" != ":"; then
2044             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2045        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2046       : ;
2047     else
2048       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2049       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2050 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2051       GMSGFMT=":"
2052     fi
2053   fi
2054
2055       if test "$XGETTEXT" != ":"; then
2056             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2057        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2058       : ;
2059     else
2060       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2061 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2062       XGETTEXT=":"
2063     fi
2064         rm -f messages.po
2065   fi
2066
2067             ac_config_commands="$ac_config_commands default-1"
2068
2069
2070 DEPDIR="${am__leading_dot}deps"
2071
2072           ac_config_commands="$ac_config_commands depfiles"
2073
2074
2075 am_make=${MAKE-make}
2076 cat > confinc << 'END'
2077 am__doit:
2078         @echo done
2079 .PHONY: am__doit
2080 END
2081 # If we don't find an include directive, just comment out the code.
2082 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2083 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2084 am__include="#"
2085 am__quote=
2086 _am_result=none
2087 # First try GNU make style include.
2088 echo "include confinc" > confmf
2089 # We grep out `Entering directory' and `Leaving directory'
2090 # messages which can occur if `w' ends up in MAKEFLAGS.
2091 # In particular we don't look at `^make:' because GNU make might
2092 # be invoked under some other name (usually "gmake"), in which
2093 # case it prints its new name instead of `make'.
2094 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2095    am__include=include
2096    am__quote=
2097    _am_result=GNU
2098 fi
2099 # Now try BSD make style include.
2100 if test "$am__include" = "#"; then
2101    echo '.include "confinc"' > confmf
2102    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2103       am__include=.include
2104       am__quote="\""
2105       _am_result=BSD
2106    fi
2107 fi
2108
2109
2110 echo "$as_me:$LINENO: result: $_am_result" >&5
2111 echo "${ECHO_T}$_am_result" >&6
2112 rm -f confinc confmf
2113
2114 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2115 if test "${enable_dependency_tracking+set}" = set; then
2116   enableval="$enable_dependency_tracking"
2117
2118 fi;
2119 if test "x$enable_dependency_tracking" != xno; then
2120   am_depcomp="$ac_aux_dir/depcomp"
2121   AMDEPBACKSLASH='\'
2122 fi
2123
2124
2125 if test "x$enable_dependency_tracking" != xno; then
2126   AMDEP_TRUE=
2127   AMDEP_FALSE='#'
2128 else
2129   AMDEP_TRUE='#'
2130   AMDEP_FALSE=
2131 fi
2132
2133
2134
2135 ac_ext=c
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   if test -n "$CC"; then
2149   ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154   IFS=$as_save_IFS
2155   test -z "$as_dir" && as_dir=.
2156   for ac_exec_ext in '' $ac_executable_extensions; do
2157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160     break 2
2161   fi
2162 done
2163 done
2164
2165 fi
2166 fi
2167 CC=$ac_cv_prog_CC
2168 if test -n "$CC"; then
2169   echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6
2171 else
2172   echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2174 fi
2175
2176 fi
2177 if test -z "$ac_cv_prog_CC"; then
2178   ac_ct_CC=$CC
2179   # Extract the first word of "gcc", so it can be a program name with args.
2180 set dummy gcc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   if test -n "$ac_ct_CC"; then
2187   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192   IFS=$as_save_IFS
2193   test -z "$as_dir" && as_dir=.
2194   for ac_exec_ext in '' $ac_executable_extensions; do
2195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196     ac_cv_prog_ac_ct_CC="gcc"
2197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198     break 2
2199   fi
2200 done
2201 done
2202
2203 fi
2204 fi
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6
2209 else
2210   echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2212 fi
2213
2214   CC=$ac_ct_CC
2215 else
2216   CC="$ac_cv_prog_CC"
2217 fi
2218
2219 if test -z "$CC"; then
2220   if test -n "$ac_tool_prefix"; then
2221   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2222 set dummy ${ac_tool_prefix}cc; ac_word=$2
2223 echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 if test "${ac_cv_prog_CC+set}" = set; then
2226   echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228   if test -n "$CC"; then
2229   ac_cv_prog_CC="$CC" # Let the user override the test.
2230 else
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2233 do
2234   IFS=$as_save_IFS
2235   test -z "$as_dir" && as_dir=.
2236   for ac_exec_ext in '' $ac_executable_extensions; do
2237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238     ac_cv_prog_CC="${ac_tool_prefix}cc"
2239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240     break 2
2241   fi
2242 done
2243 done
2244
2245 fi
2246 fi
2247 CC=$ac_cv_prog_CC
2248 if test -n "$CC"; then
2249   echo "$as_me:$LINENO: result: $CC" >&5
2250 echo "${ECHO_T}$CC" >&6
2251 else
2252   echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6
2254 fi
2255
2256 fi
2257 if test -z "$ac_cv_prog_CC"; then
2258   ac_ct_CC=$CC
2259   # Extract the first word of "cc", so it can be a program name with args.
2260 set dummy cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   if test -n "$ac_ct_CC"; then
2267   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272   IFS=$as_save_IFS
2273   test -z "$as_dir" && as_dir=.
2274   for ac_exec_ext in '' $ac_executable_extensions; do
2275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276     ac_cv_prog_ac_ct_CC="cc"
2277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278     break 2
2279   fi
2280 done
2281 done
2282
2283 fi
2284 fi
2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286 if test -n "$ac_ct_CC"; then
2287   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288 echo "${ECHO_T}$ac_ct_CC" >&6
2289 else
2290   echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2292 fi
2293
2294   CC=$ac_ct_CC
2295 else
2296   CC="$ac_cv_prog_CC"
2297 fi
2298
2299 fi
2300 if test -z "$CC"; then
2301   # Extract the first word of "cc", so it can be a program name with args.
2302 set dummy cc; ac_word=$2
2303 echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_prog_CC+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   if test -n "$CC"; then
2309   ac_cv_prog_CC="$CC" # Let the user override the test.
2310 else
2311   ac_prog_rejected=no
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   test -z "$as_dir" && as_dir=.
2317   for ac_exec_ext in '' $ac_executable_extensions; do
2318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2320        ac_prog_rejected=yes
2321        continue
2322      fi
2323     ac_cv_prog_CC="cc"
2324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325     break 2
2326   fi
2327 done
2328 done
2329
2330 if test $ac_prog_rejected = yes; then
2331   # We found a bogon in the path, so make sure we never use it.
2332   set dummy $ac_cv_prog_CC
2333   shift
2334   if test $# != 0; then
2335     # We chose a different compiler from the bogus one.
2336     # However, it has the same basename, so the bogon will be chosen
2337     # first if we set CC to just the basename; use the full file name.
2338     shift
2339     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2340   fi
2341 fi
2342 fi
2343 fi
2344 CC=$ac_cv_prog_CC
2345 if test -n "$CC"; then
2346   echo "$as_me:$LINENO: result: $CC" >&5
2347 echo "${ECHO_T}$CC" >&6
2348 else
2349   echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6
2351 fi
2352
2353 fi
2354 if test -z "$CC"; then
2355   if test -n "$ac_tool_prefix"; then
2356   for ac_prog in cl
2357   do
2358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$CC"; then
2366   ac_cv_prog_CC="$CC" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381
2382 fi
2383 fi
2384 CC=$ac_cv_prog_CC
2385 if test -n "$CC"; then
2386   echo "$as_me:$LINENO: result: $CC" >&5
2387 echo "${ECHO_T}$CC" >&6
2388 else
2389   echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2391 fi
2392
2393     test -n "$CC" && break
2394   done
2395 fi
2396 if test -z "$CC"; then
2397   ac_ct_CC=$CC
2398   for ac_prog in cl
2399 do
2400   # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   if test -n "$ac_ct_CC"; then
2408   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_exec_ext in '' $ac_executable_extensions; do
2416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417     ac_cv_prog_ac_ct_CC="$ac_prog"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423
2424 fi
2425 fi
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6
2430 else
2431   echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2433 fi
2434
2435   test -n "$ac_ct_CC" && break
2436 done
2437
2438   CC=$ac_ct_CC
2439 fi
2440
2441 fi
2442
2443
2444 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: no acceptable C compiler found in \$PATH
2447 See \`config.log' for more details." >&2;}
2448    { (exit 1); exit 1; }; }
2449
2450 # Provide some information about the compiler.
2451 echo "$as_me:$LINENO:" \
2452      "checking for C compiler version" >&5
2453 ac_compiler=`set X $ac_compile; echo $2`
2454 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2455   (eval $ac_compiler --version </dev/null >&5) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }
2459 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2460   (eval $ac_compiler -v </dev/null >&5) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }
2464 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2465   (eval $ac_compiler -V </dev/null >&5) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }
2469
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h.  */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h.  */
2476
2477 int
2478 main ()
2479 {
2480
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 ac_clean_files_save=$ac_clean_files
2486 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2487 # Try to create an executable without -o first, disregard a.out.
2488 # It will help us diagnose broken compilers, and finding out an intuition
2489 # of exeext.
2490 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2492 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2494   (eval $ac_link_default) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }; then
2498   # Find the output, starting from the most likely.  This scheme is
2499 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2500 # resort.
2501
2502 # Be careful to initialize this variable, since it used to be cached.
2503 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2504 ac_cv_exeext=
2505 # b.out is created by i960 compilers.
2506 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2507 do
2508   test -f "$ac_file" || continue
2509   case $ac_file in
2510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2511         ;;
2512     conftest.$ac_ext )
2513         # This is the source file.
2514         ;;
2515     [ab].out )
2516         # We found the default executable, but exeext='' is most
2517         # certainly right.
2518         break;;
2519     *.* )
2520         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521         # FIXME: I believe we export ac_cv_exeext for Libtool,
2522         # but it would be cool to find out if it's true.  Does anybody
2523         # maintain Libtool? --akim.
2524         export ac_cv_exeext
2525         break;;
2526     * )
2527         break;;
2528   esac
2529 done
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2535 See \`config.log' for more details." >&5
2536 echo "$as_me: error: C compiler cannot create executables
2537 See \`config.log' for more details." >&2;}
2538    { (exit 77); exit 77; }; }
2539 fi
2540
2541 ac_exeext=$ac_cv_exeext
2542 echo "$as_me:$LINENO: result: $ac_file" >&5
2543 echo "${ECHO_T}$ac_file" >&6
2544
2545 # Check the compiler produces executables we can run.  If not, either
2546 # the compiler is broken, or we cross compile.
2547 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2548 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2549 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2550 # If not cross compiling, check that we can run a simple program.
2551 if test "$cross_compiling" != yes; then
2552   if { ac_try='./$ac_file'
2553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554   (eval $ac_try) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }; }; then
2558     cross_compiling=no
2559   else
2560     if test "$cross_compiling" = maybe; then
2561         cross_compiling=yes
2562     else
2563         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2564 If you meant to cross compile, use \`--host'.
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: cannot run C compiled programs.
2567 If you meant to cross compile, use \`--host'.
2568 See \`config.log' for more details." >&2;}
2569    { (exit 1); exit 1; }; }
2570     fi
2571   fi
2572 fi
2573 echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6
2575
2576 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2577 ac_clean_files=$ac_clean_files_save
2578 # Check the compiler produces executables we can run.  If not, either
2579 # the compiler is broken, or we cross compile.
2580 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2581 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2582 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2583 echo "${ECHO_T}$cross_compiling" >&6
2584
2585 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2586 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2588   (eval $ac_link) 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; then
2592   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2593 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2594 # work properly (i.e., refer to `conftest.exe'), while it won't with
2595 # `rm'.
2596 for ac_file in conftest.exe conftest conftest.*; do
2597   test -f "$ac_file" || continue
2598   case $ac_file in
2599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2600     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2601           export ac_cv_exeext
2602           break;;
2603     * ) break;;
2604   esac
2605 done
2606 else
2607   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2610 See \`config.log' for more details." >&2;}
2611    { (exit 1); exit 1; }; }
2612 fi
2613
2614 rm -f conftest$ac_cv_exeext
2615 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2616 echo "${ECHO_T}$ac_cv_exeext" >&6
2617
2618 rm -f conftest.$ac_ext
2619 EXEEXT=$ac_cv_exeext
2620 ac_exeext=$EXEEXT
2621 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2622 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2623 if test "${ac_cv_objext+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h.  */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h.  */
2632
2633 int
2634 main ()
2635 {
2636
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.o conftest.obj
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643   (eval $ac_compile) 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); }; then
2647   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2648   case $ac_file in
2649     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2650     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2651        break;;
2652   esac
2653 done
2654 else
2655   echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2661 See \`config.log' for more details." >&2;}
2662    { (exit 1); exit 1; }; }
2663 fi
2664
2665 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2666 fi
2667 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2668 echo "${ECHO_T}$ac_cv_objext" >&6
2669 OBJEXT=$ac_cv_objext
2670 ac_objext=$OBJEXT
2671 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2672 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2673 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682
2683 int
2684 main ()
2685 {
2686 #ifndef __GNUC__
2687        choke me
2688 #endif
2689
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696   (eval $ac_compile) 2>conftest.er1
2697   ac_status=$?
2698   grep -v '^ *+' conftest.er1 >conftest.err
2699   rm -f conftest.er1
2700   cat conftest.err >&5
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); } &&
2703          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705   (eval $ac_try) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; } &&
2709          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2715   ac_compiler_gnu=yes
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720 ac_compiler_gnu=no
2721 fi
2722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2724
2725 fi
2726 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2727 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2728 GCC=`test $ac_compiler_gnu = yes && echo yes`
2729 ac_test_CFLAGS=${CFLAGS+set}
2730 ac_save_CFLAGS=$CFLAGS
2731 CFLAGS="-g"
2732 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2733 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2734 if test "${ac_cv_prog_cc_g+set}" = set; then
2735   echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737   cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743
2744 int
2745 main ()
2746 {
2747
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754   (eval $ac_compile) 2>conftest.er1
2755   ac_status=$?
2756   grep -v '^ *+' conftest.er1 >conftest.err
2757   rm -f conftest.er1
2758   cat conftest.err >&5
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); } &&
2761          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; } &&
2767          { ac_try='test -s conftest.$ac_objext'
2768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; }; then
2773   ac_cv_prog_cc_g=yes
2774 else
2775   echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2777
2778 ac_cv_prog_cc_g=no
2779 fi
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 fi
2782 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2783 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2784 if test "$ac_test_CFLAGS" = set; then
2785   CFLAGS=$ac_save_CFLAGS
2786 elif test $ac_cv_prog_cc_g = yes; then
2787   if test "$GCC" = yes; then
2788     CFLAGS="-g -O2"
2789   else
2790     CFLAGS="-g"
2791   fi
2792 else
2793   if test "$GCC" = yes; then
2794     CFLAGS="-O2"
2795   else
2796     CFLAGS=
2797   fi
2798 fi
2799 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2800 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2801 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2802   echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804   ac_cv_prog_cc_stdc=no
2805 ac_save_CC=$CC
2806 cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h.  */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h.  */
2812 #include <stdarg.h>
2813 #include <stdio.h>
2814 #include <sys/types.h>
2815 #include <sys/stat.h>
2816 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2817 struct buf { int x; };
2818 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2819 static char *e (p, i)
2820      char **p;
2821      int i;
2822 {
2823   return p[i];
2824 }
2825 static char *f (char * (*g) (char **, int), char **p, ...)
2826 {
2827   char *s;
2828   va_list v;
2829   va_start (v,p);
2830   s = g (p, va_arg (v,int));
2831   va_end (v);
2832   return s;
2833 }
2834
2835 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2836    function prototypes and stuff, but not '\xHH' hex character constants.
2837    These don't provoke an error unfortunately, instead are silently treated
2838    as 'x'.  The following induces an error, until -std1 is added to get
2839    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2840    array size at least.  It's necessary to write '\x00'==0 to get something
2841    that's true only with -std1.  */
2842 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2843
2844 int test (int i, double x);
2845 struct s1 {int (*f) (int a);};
2846 struct s2 {int (*f) (double a);};
2847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2848 int argc;
2849 char **argv;
2850 int
2851 main ()
2852 {
2853 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2854   ;
2855   return 0;
2856 }
2857 _ACEOF
2858 # Don't try gcc -ansi; that turns off useful extensions and
2859 # breaks some systems' header files.
2860 # AIX                   -qlanglvl=ansi
2861 # Ultrix and OSF/1      -std1
2862 # HP-UX 10.20 and later -Ae
2863 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2864 # SVR4                  -Xc -D__EXTENSIONS__
2865 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2866 do
2867   CC="$ac_save_CC $ac_arg"
2868   rm -f conftest.$ac_objext
2869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870   (eval $ac_compile) 2>conftest.er1
2871   ac_status=$?
2872   grep -v '^ *+' conftest.er1 >conftest.err
2873   rm -f conftest.er1
2874   cat conftest.err >&5
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); } &&
2877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; } &&
2883          { ac_try='test -s conftest.$ac_objext'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; }; then
2889   ac_cv_prog_cc_stdc=$ac_arg
2890 break
2891 else
2892   echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 fi
2896 rm -f conftest.err conftest.$ac_objext
2897 done
2898 rm -f conftest.$ac_ext conftest.$ac_objext
2899 CC=$ac_save_CC
2900
2901 fi
2902
2903 case "x$ac_cv_prog_cc_stdc" in
2904   x|xno)
2905     echo "$as_me:$LINENO: result: none needed" >&5
2906 echo "${ECHO_T}none needed" >&6 ;;
2907   *)
2908     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2909 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2910     CC="$CC $ac_cv_prog_cc_stdc" ;;
2911 esac
2912
2913 # Some people use a C++ compiler to compile C.  Since we use `exit',
2914 # in C++ we need to declare it.  In case someone uses the same compiler
2915 # for both compiling C and C++ we need to have the C++ compiler decide
2916 # the declaration of exit, since it's the most demanding environment.
2917 cat >conftest.$ac_ext <<_ACEOF
2918 #ifndef __cplusplus
2919   choke me
2920 #endif
2921 _ACEOF
2922 rm -f conftest.$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924   (eval $ac_compile) 2>conftest.er1
2925   ac_status=$?
2926   grep -v '^ *+' conftest.er1 >conftest.err
2927   rm -f conftest.er1
2928   cat conftest.err >&5
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } &&
2931          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; } &&
2937          { ac_try='test -s conftest.$ac_objext'
2938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939   (eval $ac_try) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; }; then
2943   for ac_declaration in \
2944    '' \
2945    'extern "C" void std::exit (int) throw (); using std::exit;' \
2946    'extern "C" void std::exit (int); using std::exit;' \
2947    'extern "C" void exit (int) throw ();' \
2948    'extern "C" void exit (int);' \
2949    'void exit (int);'
2950 do
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957 $ac_declaration
2958 #include <stdlib.h>
2959 int
2960 main ()
2961 {
2962 exit (42);
2963   ;
2964   return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2969   (eval $ac_compile) 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } &&
2976          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978   (eval $ac_try) 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); }; } &&
2982          { ac_try='test -s conftest.$ac_objext'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; }; then
2988   :
2989 else
2990   echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993 continue
2994 fi
2995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2996   cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002 $ac_declaration
3003 int
3004 main ()
3005 {
3006 exit (42);
3007   ;
3008   return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013   (eval $ac_compile) 2>conftest.er1
3014   ac_status=$?
3015   grep -v '^ *+' conftest.er1 >conftest.err
3016   rm -f conftest.er1
3017   cat conftest.err >&5
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } &&
3020          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; } &&
3026          { ac_try='test -s conftest.$ac_objext'
3027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028   (eval $ac_try) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; }; then
3032   break
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 fi
3038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3039 done
3040 rm -f conftest*
3041 if test -n "$ac_declaration"; then
3042   echo '#ifdef __cplusplus' >>confdefs.h
3043   echo $ac_declaration      >>confdefs.h
3044   echo '#endif'             >>confdefs.h
3045 fi
3046
3047 else
3048   echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 fi
3052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_ext=c
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058
3059 depcc="$CC"   am_compiler_list=
3060
3061 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3062 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3063 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3064   echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3067   # We make a subdir and do the tests there.  Otherwise we can end up
3068   # making bogus files that we don't know about and never remove.  For
3069   # instance it was reported that on HP-UX the gcc test will end up
3070   # making a dummy file named `D' -- because `-MD' means `put the output
3071   # in D'.
3072   mkdir conftest.dir
3073   # Copy depcomp to subdir because otherwise we won't find it if we're
3074   # using a relative directory.
3075   cp "$am_depcomp" conftest.dir
3076   cd conftest.dir
3077   # We will build objects and dependencies in a subdirectory because
3078   # it helps to detect inapplicable dependency modes.  For instance
3079   # both Tru64's cc and ICC support -MD to output dependencies as a
3080   # side effect of compilation, but ICC will put the dependencies in
3081   # the current directory while Tru64 will put them in the object
3082   # directory.
3083   mkdir sub
3084
3085   am_cv_CC_dependencies_compiler_type=none
3086   if test "$am_compiler_list" = ""; then
3087      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3088   fi
3089   for depmode in $am_compiler_list; do
3090     # Setup a source with many dependencies, because some compilers
3091     # like to wrap large dependency lists on column 80 (with \), and
3092     # we should not choose a depcomp mode which is confused by this.
3093     #
3094     # We need to recreate these files for each test, as the compiler may
3095     # overwrite some of them when testing with obscure command lines.
3096     # This happens at least with the AIX C compiler.
3097     : > sub/conftest.c
3098     for i in 1 2 3 4 5 6; do
3099       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3100       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3101       # Solaris 8's {/usr,}/bin/sh.
3102       touch sub/conftst$i.h
3103     done
3104     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3105
3106     case $depmode in
3107     nosideeffect)
3108       # after this tag, mechanisms are not by side-effect, so they'll
3109       # only be used when explicitly requested
3110       if test "x$enable_dependency_tracking" = xyes; then
3111         continue
3112       else
3113         break
3114       fi
3115       ;;
3116     none) break ;;
3117     esac
3118     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3119     # mode.  It turns out that the SunPro C++ compiler does not properly
3120     # handle `-M -o', and we need to detect this.
3121     if depmode=$depmode \
3122        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3123        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3124        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3125          >/dev/null 2>conftest.err &&
3126        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3127        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3128        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3129       # icc doesn't choke on unknown options, it will just issue warnings
3130       # or remarks (even with -Werror).  So we grep stderr for any message
3131       # that says an option was ignored or not supported.
3132       # When given -MP, icc 7.0 and 7.1 complain thusly:
3133       #   icc: Command line warning: ignoring option '-M'; no argument required
3134       # The diagnosis changed in icc 8.0:
3135       #   icc: Command line remark: option '-MP' not supported
3136       if (grep 'ignoring option' conftest.err ||
3137           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3138         am_cv_CC_dependencies_compiler_type=$depmode
3139         break
3140       fi
3141     fi
3142   done
3143
3144   cd ..
3145   rm -rf conftest.dir
3146 else
3147   am_cv_CC_dependencies_compiler_type=none
3148 fi
3149
3150 fi
3151 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3152 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3153 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3154
3155
3156
3157 if
3158   test "x$enable_dependency_tracking" != xno \
3159   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3160   am__fastdepCC_TRUE=
3161   am__fastdepCC_FALSE='#'
3162 else
3163   am__fastdepCC_TRUE='#'
3164   am__fastdepCC_FALSE=
3165 fi
3166
3167
3168 # Make sure we can run config.sub.
3169 $ac_config_sub sun4 >/dev/null 2>&1 ||
3170   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3171 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3172    { (exit 1); exit 1; }; }
3173
3174 echo "$as_me:$LINENO: checking build system type" >&5
3175 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3176 if test "${ac_cv_build+set}" = set; then
3177   echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179   ac_cv_build_alias=$build_alias
3180 test -z "$ac_cv_build_alias" &&
3181   ac_cv_build_alias=`$ac_config_guess`
3182 test -z "$ac_cv_build_alias" &&
3183   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3184 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3185    { (exit 1); exit 1; }; }
3186 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3187   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3188 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3189    { (exit 1); exit 1; }; }
3190
3191 fi
3192 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3193 echo "${ECHO_T}$ac_cv_build" >&6
3194 build=$ac_cv_build
3195 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3196 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3197 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3198
3199
3200 echo "$as_me:$LINENO: checking host system type" >&5
3201 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3202 if test "${ac_cv_host+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   ac_cv_host_alias=$host_alias
3206 test -z "$ac_cv_host_alias" &&
3207   ac_cv_host_alias=$ac_cv_build_alias
3208 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3209   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3210 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3211    { (exit 1); exit 1; }; }
3212
3213 fi
3214 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3215 echo "${ECHO_T}$ac_cv_host" >&6
3216 host=$ac_cv_host
3217 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3218 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3219 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3220
3221
3222
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3229 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3230 # On Suns, sometimes $CPP names a directory.
3231 if test -n "$CPP" && test -d "$CPP"; then
3232   CPP=
3233 fi
3234 if test -z "$CPP"; then
3235   if test "${ac_cv_prog_CPP+set}" = set; then
3236   echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238       # Double quotes because CPP needs to be expanded
3239     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3240     do
3241       ac_preproc_ok=false
3242 for ac_c_preproc_warn_flag in '' yes
3243 do
3244   # Use a header file that comes with gcc, so configuring glibc
3245   # with a fresh cross-compiler works.
3246   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247   # <limits.h> exists even on freestanding compilers.
3248   # On the NeXT, cc -E runs the code through the compiler's parser,
3249   # not just through cpp. "Syntax error" is here to catch this case.
3250   cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256 #ifdef __STDC__
3257 # include <limits.h>
3258 #else
3259 # include <assert.h>
3260 #endif
3261                      Syntax error
3262 _ACEOF
3263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3264   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3265   ac_status=$?
3266   grep -v '^ *+' conftest.er1 >conftest.err
3267   rm -f conftest.er1
3268   cat conftest.err >&5
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); } >/dev/null; then
3271   if test -s conftest.err; then
3272     ac_cpp_err=$ac_c_preproc_warn_flag
3273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3274   else
3275     ac_cpp_err=
3276   fi
3277 else
3278   ac_cpp_err=yes
3279 fi
3280 if test -z "$ac_cpp_err"; then
3281   :
3282 else
3283   echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286   # Broken: fails on valid input.
3287 continue
3288 fi
3289 rm -f conftest.err conftest.$ac_ext
3290
3291   # OK, works on sane cases.  Now check whether non-existent headers
3292   # can be detected and how.
3293   cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h.  */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h.  */
3299 #include <ac_nonexistent.h>
3300 _ACEOF
3301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } >/dev/null; then
3309   if test -s conftest.err; then
3310     ac_cpp_err=$ac_c_preproc_warn_flag
3311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312   else
3313     ac_cpp_err=
3314   fi
3315 else
3316   ac_cpp_err=yes
3317 fi
3318 if test -z "$ac_cpp_err"; then
3319   # Broken: success on invalid input.
3320 continue
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325   # Passes both tests.
3326 ac_preproc_ok=:
3327 break
3328 fi
3329 rm -f conftest.err conftest.$ac_ext
3330
3331 done
3332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3333 rm -f conftest.err conftest.$ac_ext
3334 if $ac_preproc_ok; then
3335   break
3336 fi
3337
3338     done
3339     ac_cv_prog_CPP=$CPP
3340
3341 fi
3342   CPP=$ac_cv_prog_CPP
3343 else
3344   ac_cv_prog_CPP=$CPP
3345 fi
3346 echo "$as_me:$LINENO: result: $CPP" >&5
3347 echo "${ECHO_T}$CPP" >&6
3348 ac_preproc_ok=false
3349 for ac_c_preproc_warn_flag in '' yes
3350 do
3351   # Use a header file that comes with gcc, so configuring glibc
3352   # with a fresh cross-compiler works.
3353   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354   # <limits.h> exists even on freestanding compilers.
3355   # On the NeXT, cc -E runs the code through the compiler's parser,
3356   # not just through cpp. "Syntax error" is here to catch this case.
3357   cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363 #ifdef __STDC__
3364 # include <limits.h>
3365 #else
3366 # include <assert.h>
3367 #endif
3368                      Syntax error
3369 _ACEOF
3370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } >/dev/null; then
3378   if test -s conftest.err; then
3379     ac_cpp_err=$ac_c_preproc_warn_flag
3380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381   else
3382     ac_cpp_err=
3383   fi
3384 else
3385   ac_cpp_err=yes
3386 fi
3387 if test -z "$ac_cpp_err"; then
3388   :
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393   # Broken: fails on valid input.
3394 continue
3395 fi
3396 rm -f conftest.err conftest.$ac_ext
3397
3398   # OK, works on sane cases.  Now check whether non-existent headers
3399   # can be detected and how.
3400   cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h.  */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h.  */
3406 #include <ac_nonexistent.h>
3407 _ACEOF
3408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } >/dev/null; then
3416   if test -s conftest.err; then
3417     ac_cpp_err=$ac_c_preproc_warn_flag
3418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3419   else
3420     ac_cpp_err=
3421   fi
3422 else
3423   ac_cpp_err=yes
3424 fi
3425 if test -z "$ac_cpp_err"; then
3426   # Broken: success on invalid input.
3427 continue
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432   # Passes both tests.
3433 ac_preproc_ok=:
3434 break
3435 fi
3436 rm -f conftest.err conftest.$ac_ext
3437
3438 done
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then
3442   :
3443 else
3444   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&5
3446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&2;}
3448    { (exit 1); exit 1; }; }
3449 fi
3450
3451 ac_ext=c
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
3457
3458 echo "$as_me:$LINENO: checking for egrep" >&5
3459 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3460 if test "${ac_cv_prog_egrep+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3464     then ac_cv_prog_egrep='grep -E'
3465     else ac_cv_prog_egrep='egrep'
3466     fi
3467 fi
3468 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3469 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3470  EGREP=$ac_cv_prog_egrep
3471
3472
3473
3474     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
3475 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
3476 if test "${ac_cv_gnu_library_2+set}" = set; then
3477   echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479   cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485
3486 #include <features.h>
3487 #ifdef __GNU_LIBRARY__
3488  #if (__GLIBC__ >= 2)
3489   Lucky GNU user
3490  #endif
3491 #endif
3492
3493 _ACEOF
3494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3495   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
3496   ac_cv_gnu_library_2=yes
3497 else
3498   ac_cv_gnu_library_2=no
3499 fi
3500 rm -f conftest*
3501
3502
3503
3504 fi
3505 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
3506 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
3507
3508     GLIBC2="$ac_cv_gnu_library_2"
3509
3510
3511 if test -n "$ac_tool_prefix"; then
3512   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3513 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3514 echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_prog_RANLIB+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   if test -n "$RANLIB"; then
3520   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527   for ac_exec_ext in '' $ac_executable_extensions; do
3528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534 done
3535
3536 fi
3537 fi
3538 RANLIB=$ac_cv_prog_RANLIB
3539 if test -n "$RANLIB"; then
3540   echo "$as_me:$LINENO: result: $RANLIB" >&5
3541 echo "${ECHO_T}$RANLIB" >&6
3542 else
3543   echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3545 fi
3546
3547 fi
3548 if test -z "$ac_cv_prog_RANLIB"; then
3549   ac_ct_RANLIB=$RANLIB
3550   # Extract the first word of "ranlib", so it can be a program name with args.
3551 set dummy ranlib; ac_word=$2
3552 echo "$as_me:$LINENO: checking for $ac_word" >&5
3553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3554 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   if test -n "$ac_ct_RANLIB"; then
3558   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565   for ac_exec_ext in '' $ac_executable_extensions; do
3566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567     ac_cv_prog_ac_ct_RANLIB="ranlib"
3568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569     break 2
3570   fi
3571 done
3572 done
3573
3574   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3575 fi
3576 fi
3577 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3578 if test -n "$ac_ct_RANLIB"; then
3579   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3580 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3581 else
3582   echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3584 fi
3585
3586   RANLIB=$ac_ct_RANLIB
3587 else
3588   RANLIB="$ac_cv_prog_RANLIB"
3589 fi
3590
3591 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3592 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3593 if test "${ac_cv_search_strerror+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   ac_func_search_save_LIBS=$LIBS
3597 ac_cv_search_strerror=no
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604
3605 /* Override any gcc2 internal prototype to avoid an error.  */
3606 #ifdef __cplusplus
3607 extern "C"
3608 #endif
3609 /* We use char because int might match the return type of a gcc2
3610    builtin and then its argument prototype would still apply.  */
3611 char strerror ();
3612 int
3613 main ()
3614 {
3615 strerror ();
3616   ;
3617   return 0;
3618 }
3619 _ACEOF
3620 rm -f conftest.$ac_objext conftest$ac_exeext
3621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3622   (eval $ac_link) 2>conftest.er1
3623   ac_status=$?
3624   grep -v '^ *+' conftest.er1 >conftest.err
3625   rm -f conftest.er1
3626   cat conftest.err >&5
3627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628   (exit $ac_status); } &&
3629          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631   (eval $ac_try) 2>&5
3632   ac_status=$?
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); }; } &&
3635          { ac_try='test -s conftest$ac_exeext'
3636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637   (eval $ac_try) 2>&5
3638   ac_status=$?
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; }; then
3641   ac_cv_search_strerror="none required"
3642 else
3643   echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646 fi
3647 rm -f conftest.err conftest.$ac_objext \
3648       conftest$ac_exeext conftest.$ac_ext
3649 if test "$ac_cv_search_strerror" = no; then
3650   for ac_lib in cposix; do
3651     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3652     cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h.  */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h.  */
3658
3659 /* Override any gcc2 internal prototype to avoid an error.  */
3660 #ifdef __cplusplus
3661 extern "C"
3662 #endif
3663 /* We use char because int might match the return type of a gcc2
3664    builtin and then its argument prototype would still apply.  */
3665 char strerror ();
3666 int
3667 main ()
3668 {
3669 strerror ();
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 rm -f conftest.$ac_objext conftest$ac_exeext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3676   (eval $ac_link) 2>conftest.er1
3677   ac_status=$?
3678   grep -v '^ *+' conftest.er1 >conftest.err
3679   rm -f conftest.er1
3680   cat conftest.err >&5
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); } &&
3683          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685   (eval $ac_try) 2>&5
3686   ac_status=$?
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); }; } &&
3689          { ac_try='test -s conftest$ac_exeext'
3690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691   (eval $ac_try) 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); }; }; then
3695   ac_cv_search_strerror="-l$ac_lib"
3696 break
3697 else
3698   echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3700
3701 fi
3702 rm -f conftest.err conftest.$ac_objext \
3703       conftest$ac_exeext conftest.$ac_ext
3704   done
3705 fi
3706 LIBS=$ac_func_search_save_LIBS
3707 fi
3708 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3709 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3710 if test "$ac_cv_search_strerror" != no; then
3711   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3712
3713 fi
3714
3715 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3716 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3717 if test "${ac_cv_header_stdc+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h.  */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h.  */
3726 #include <stdlib.h>
3727 #include <stdarg.h>
3728 #include <string.h>
3729 #include <float.h>
3730
3731 int
3732 main ()
3733 {
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741   (eval $ac_compile) 2>conftest.er1
3742   ac_status=$?
3743   grep -v '^ *+' conftest.er1 >conftest.err
3744   rm -f conftest.er1
3745   cat conftest.err >&5
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); } &&
3748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750   (eval $ac_try) 2>&5
3751   ac_status=$?
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); }; } &&
3754          { ac_try='test -s conftest.$ac_objext'
3755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756   (eval $ac_try) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); }; }; then
3760   ac_cv_header_stdc=yes
3761 else
3762   echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3764
3765 ac_cv_header_stdc=no
3766 fi
3767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3768
3769 if test $ac_cv_header_stdc = yes; then
3770   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3771   cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h.  */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h.  */
3777 #include <string.h>
3778
3779 _ACEOF
3780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781   $EGREP "memchr" >/dev/null 2>&1; then
3782   :
3783 else
3784   ac_cv_header_stdc=no
3785 fi
3786 rm -f conftest*
3787
3788 fi
3789
3790 if test $ac_cv_header_stdc = yes; then
3791   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3792   cat >conftest.$ac_ext <<_ACEOF
3793 /* confdefs.h.  */
3794 _ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h.  */
3798 #include <stdlib.h>
3799
3800 _ACEOF
3801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3802   $EGREP "free" >/dev/null 2>&1; then
3803   :
3804 else
3805   ac_cv_header_stdc=no
3806 fi
3807 rm -f conftest*
3808
3809 fi
3810
3811 if test $ac_cv_header_stdc = yes; then
3812   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3813   if test "$cross_compiling" = yes; then
3814   :
3815 else
3816   cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h.  */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h.  */
3822 #include <ctype.h>
3823 #if ((' ' & 0x0FF) == 0x020)
3824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3826 #else
3827 # define ISLOWER(c) \
3828                    (('a' <= (c) && (c) <= 'i') \
3829                      || ('j' <= (c) && (c) <= 'r') \
3830                      || ('s' <= (c) && (c) <= 'z'))
3831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3832 #endif
3833
3834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3835 int
3836 main ()
3837 {
3838   int i;
3839   for (i = 0; i < 256; i++)
3840     if (XOR (islower (i), ISLOWER (i))
3841         || toupper (i) != TOUPPER (i))
3842       exit(2);
3843   exit (0);
3844 }
3845 _ACEOF
3846 rm -f conftest$ac_exeext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848   (eval $ac_link) 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853   (eval $ac_try) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }; }; then
3857   :
3858 else
3859   echo "$as_me: program exited with status $ac_status" >&5
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 ( exit $ac_status )
3864 ac_cv_header_stdc=no
3865 fi
3866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3867 fi
3868 fi
3869 fi
3870 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3871 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3872 if test $ac_cv_header_stdc = yes; then
3873
3874 cat >>confdefs.h <<\_ACEOF
3875 #define STDC_HEADERS 1
3876 _ACEOF
3877
3878 fi
3879
3880 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3881 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3882 if test "${ac_cv_c_const+set}" = set; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h.  */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h.  */
3891
3892 int
3893 main ()
3894 {
3895 /* FIXME: Include the comments suggested by Paul. */
3896 #ifndef __cplusplus
3897   /* Ultrix mips cc rejects this.  */
3898   typedef int charset[2];
3899   const charset x;
3900   /* SunOS 4.1.1 cc rejects this.  */
3901   char const *const *ccp;
3902   char **p;
3903   /* NEC SVR4.0.2 mips cc rejects this.  */
3904   struct point {int x, y;};
3905   static struct point const zero = {0,0};
3906   /* AIX XL C 1.02.0.0 rejects this.
3907      It does not let you subtract one const X* pointer from another in
3908      an arm of an if-expression whose if-part is not a constant
3909      expression */
3910   const char *g = "string";
3911   ccp = &g + (g ? g-g : 0);
3912   /* HPUX 7.0 cc rejects these. */
3913   ++ccp;
3914   p = (char**) ccp;
3915   ccp = (char const *const *) p;
3916   { /* SCO 3.2v4 cc rejects this.  */
3917     char *t;
3918     char const *s = 0 ? (char *) 0 : (char const *) 0;
3919
3920     *t++ = 0;
3921   }
3922   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3923     int x[] = {25, 17};
3924     const int *foo = &x[0];
3925     ++foo;
3926   }
3927   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3928     typedef const int *iptr;
3929     iptr p = 0;
3930     ++p;
3931   }
3932   { /* AIX XL C 1.02.0.0 rejects this saying
3933        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3934     struct s { int j; const int *ap[3]; };
3935     struct s *b; b->j = 5;
3936   }
3937   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3938     const int foo = 10;
3939   }
3940 #endif
3941
3942   ;
3943   return 0;
3944 }
3945 _ACEOF
3946 rm -f conftest.$ac_objext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3948   (eval $ac_compile) 2>conftest.er1
3949   ac_status=$?
3950   grep -v '^ *+' conftest.er1 >conftest.err
3951   rm -f conftest.er1
3952   cat conftest.err >&5
3953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); } &&
3955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957   (eval $ac_try) 2>&5
3958   ac_status=$?
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); }; } &&
3961          { ac_try='test -s conftest.$ac_objext'
3962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963   (eval $ac_try) 2>&5
3964   ac_status=$?
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); }; }; then
3967   ac_cv_c_const=yes
3968 else
3969   echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 ac_cv_c_const=no
3973 fi
3974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3975 fi
3976 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3977 echo "${ECHO_T}$ac_cv_c_const" >&6
3978 if test $ac_cv_c_const = no; then
3979
3980 cat >>confdefs.h <<\_ACEOF
3981 #define const
3982 _ACEOF
3983
3984 fi
3985
3986
3987   echo "$as_me:$LINENO: checking for signed" >&5
3988 echo $ECHO_N "checking for signed... $ECHO_C" >&6
3989 if test "${bh_cv_c_signed+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h.  */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h.  */
3998
3999 int
4000 main ()
4001 {
4002 signed char x;
4003   ;
4004   return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.$ac_objext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009   (eval $ac_compile) 2>conftest.er1
4010   ac_status=$?
4011   grep -v '^ *+' conftest.er1 >conftest.err
4012   rm -f conftest.er1
4013   cat conftest.err >&5
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); } &&
4016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018   (eval $ac_try) 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); }; } &&
4022          { ac_try='test -s conftest.$ac_objext'
4023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024   (eval $ac_try) 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }; }; then
4028   bh_cv_c_signed=yes
4029 else
4030   echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 bh_cv_c_signed=no
4034 fi
4035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4036 fi
4037 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4038 echo "${ECHO_T}$bh_cv_c_signed" >&6
4039   if test $bh_cv_c_signed = no; then
4040
4041 cat >>confdefs.h <<\_ACEOF
4042 #define signed
4043 _ACEOF
4044
4045   fi
4046
4047 echo "$as_me:$LINENO: checking for inline" >&5
4048 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4049 if test "${ac_cv_c_inline+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   ac_cv_c_inline=no
4053 for ac_kw in inline __inline__ __inline; do
4054   cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h.  */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h.  */
4060 #ifndef __cplusplus
4061 typedef int foo_t;
4062 static $ac_kw foo_t static_foo () {return 0; }
4063 $ac_kw foo_t foo () {return 0; }
4064 #endif
4065
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069   (eval $ac_compile) 2>conftest.er1
4070   ac_status=$?
4071   grep -v '^ *+' conftest.er1 >conftest.err
4072   rm -f conftest.er1
4073   cat conftest.err >&5
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } &&
4076          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078   (eval $ac_try) 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; } &&
4082          { ac_try='test -s conftest.$ac_objext'
4083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084   (eval $ac_try) 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; }; then
4088   ac_cv_c_inline=$ac_kw; break
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 fi
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 done
4096
4097 fi
4098 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4099 echo "${ECHO_T}$ac_cv_c_inline" >&6
4100
4101
4102 case $ac_cv_c_inline in
4103   inline | yes) ;;
4104   *)
4105     case $ac_cv_c_inline in
4106       no) ac_val=;;
4107       *) ac_val=$ac_cv_c_inline;;
4108     esac
4109     cat >>confdefs.h <<_ACEOF
4110 #ifndef __cplusplus
4111 #define inline $ac_val
4112 #endif
4113 _ACEOF
4114     ;;
4115 esac
4116
4117 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4128                   inttypes.h stdint.h unistd.h
4129 do
4130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4131 echo "$as_me:$LINENO: checking for $ac_header" >&5
4132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4134   echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136   cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142 $ac_includes_default
4143
4144 #include <$ac_header>
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148   (eval $ac_compile) 2>conftest.er1
4149   ac_status=$?
4150   grep -v '^ *+' conftest.er1 >conftest.err
4151   rm -f conftest.er1
4152   cat conftest.err >&5
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); } &&
4155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157   (eval $ac_try) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); }; } &&
4161          { ac_try='test -s conftest.$ac_objext'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; }; then
4167   eval "$as_ac_Header=yes"
4168 else
4169   echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 eval "$as_ac_Header=no"
4173 fi
4174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4175 fi
4176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4179   cat >>confdefs.h <<_ACEOF
4180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4181 _ACEOF
4182
4183 fi
4184
4185 done
4186
4187
4188 echo "$as_me:$LINENO: checking for off_t" >&5
4189 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4190 if test "${ac_cv_type_off_t+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 $ac_includes_default
4200 int
4201 main ()
4202 {
4203 if ((off_t *) 0)
4204   return 0;
4205 if (sizeof (off_t))
4206   return 0;
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 rm -f conftest.$ac_objext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4213   (eval $ac_compile) 2>conftest.er1
4214   ac_status=$?
4215   grep -v '^ *+' conftest.er1 >conftest.err
4216   rm -f conftest.er1
4217   cat conftest.err >&5
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } &&
4220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222   (eval $ac_try) 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }; } &&
4226          { ac_try='test -s conftest.$ac_objext'
4227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228   (eval $ac_try) 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); }; }; then
4232   ac_cv_type_off_t=yes
4233 else
4234   echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 ac_cv_type_off_t=no
4238 fi
4239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4240 fi
4241 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4242 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4243 if test $ac_cv_type_off_t = yes; then
4244   :
4245 else
4246
4247 cat >>confdefs.h <<_ACEOF
4248 #define off_t long
4249 _ACEOF
4250
4251 fi
4252
4253 echo "$as_me:$LINENO: checking for size_t" >&5
4254 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4255 if test "${ac_cv_type_size_t+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264 $ac_includes_default
4265 int
4266 main ()
4267 {
4268 if ((size_t *) 0)
4269   return 0;
4270 if (sizeof (size_t))
4271   return 0;
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 rm -f conftest.$ac_objext
4277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278   (eval $ac_compile) 2>conftest.er1
4279   ac_status=$?
4280   grep -v '^ *+' conftest.er1 >conftest.err
4281   rm -f conftest.er1
4282   cat conftest.err >&5
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); } &&
4285          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287   (eval $ac_try) 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); }; } &&
4291          { ac_try='test -s conftest.$ac_objext'
4292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293   (eval $ac_try) 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; }; then
4297   ac_cv_type_size_t=yes
4298 else
4299   echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 ac_cv_type_size_t=no
4303 fi
4304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4305 fi
4306 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4307 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4308 if test $ac_cv_type_size_t = yes; then
4309   :
4310 else
4311
4312 cat >>confdefs.h <<_ACEOF
4313 #define size_t unsigned
4314 _ACEOF
4315
4316 fi
4317
4318
4319   echo "$as_me:$LINENO: checking for long long" >&5
4320 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4321 if test "${ac_cv_type_long_long+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 long long ll = 1LL; int i = 63;
4331 int
4332 main ()
4333 {
4334 long long llmax = (long long) -1;
4335      return ll << i | ll >> i | llmax / ll | llmax % ll;
4336   ;
4337   return 0;
4338 }
4339 _ACEOF
4340 rm -f conftest.$ac_objext conftest$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342   (eval $ac_link) 2>conftest.er1
4343   ac_status=$?
4344   grep -v '^ *+' conftest.er1 >conftest.err
4345   rm -f conftest.er1
4346   cat conftest.err >&5
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); } &&
4349          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; } &&
4355          { ac_try='test -s conftest$ac_exeext'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; }; then
4361   ac_cv_type_long_long=yes
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 ac_cv_type_long_long=no
4367 fi
4368 rm -f conftest.err conftest.$ac_objext \
4369       conftest$ac_exeext conftest.$ac_ext
4370 fi
4371 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4372 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4373   if test $ac_cv_type_long_long = yes; then
4374
4375 cat >>confdefs.h <<\_ACEOF
4376 #define HAVE_LONG_LONG 1
4377 _ACEOF
4378
4379   fi
4380
4381
4382   echo "$as_me:$LINENO: checking for long double" >&5
4383 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4384 if test "${gt_cv_c_long_double+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   if test "$GCC" = yes; then
4388        gt_cv_c_long_double=yes
4389      else
4390        cat >conftest.$ac_ext <<_ACEOF
4391 /* confdefs.h.  */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h.  */
4396
4397          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
4398          long double foo = 0.0;
4399          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
4400          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4401
4402 int
4403 main ()
4404 {
4405
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410 rm -f conftest.$ac_objext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412   (eval $ac_compile) 2>conftest.er1
4413   ac_status=$?
4414   grep -v '^ *+' conftest.er1 >conftest.err
4415   rm -f conftest.er1
4416   cat conftest.err >&5
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); } &&
4419          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421   (eval $ac_try) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; } &&
4425          { ac_try='test -s conftest.$ac_objext'
4426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427   (eval $ac_try) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; }; then
4431   gt_cv_c_long_double=yes
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 gt_cv_c_long_double=no
4437 fi
4438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439      fi
4440 fi
4441 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4442 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4443   if test $gt_cv_c_long_double = yes; then
4444
4445 cat >>confdefs.h <<\_ACEOF
4446 #define HAVE_LONG_DOUBLE 1
4447 _ACEOF
4448
4449   fi
4450
4451
4452   echo "$as_me:$LINENO: checking for wchar_t" >&5
4453 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4454 if test "${gt_cv_c_wchar_t+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463 #include <stddef.h>
4464        wchar_t foo = (wchar_t)'\0';
4465 int
4466 main ()
4467 {
4468
4469   ;
4470   return 0;
4471 }
4472 _ACEOF
4473 rm -f conftest.$ac_objext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475   (eval $ac_compile) 2>conftest.er1
4476   ac_status=$?
4477   grep -v '^ *+' conftest.er1 >conftest.err
4478   rm -f conftest.er1
4479   cat conftest.err >&5
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); } &&
4482          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484   (eval $ac_try) 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; } &&
4488          { ac_try='test -s conftest.$ac_objext'
4489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490   (eval $ac_try) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; }; then
4494   gt_cv_c_wchar_t=yes
4495 else
4496   echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499 gt_cv_c_wchar_t=no
4500 fi
4501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4502 fi
4503 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4504 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4505   if test $gt_cv_c_wchar_t = yes; then
4506
4507 cat >>confdefs.h <<\_ACEOF
4508 #define HAVE_WCHAR_T 1
4509 _ACEOF
4510
4511   fi
4512
4513
4514   echo "$as_me:$LINENO: checking for wint_t" >&5
4515 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4516 if test "${gt_cv_c_wint_t+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h.  */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h.  */
4525 #include <wchar.h>
4526        wint_t foo = (wchar_t)'\0';
4527 int
4528 main ()
4529 {
4530
4531   ;
4532   return 0;
4533 }
4534 _ACEOF
4535 rm -f conftest.$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537   (eval $ac_compile) 2>conftest.er1
4538   ac_status=$?
4539   grep -v '^ *+' conftest.er1 >conftest.err
4540   rm -f conftest.er1
4541   cat conftest.err >&5
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); } &&
4544          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546   (eval $ac_try) 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; } &&
4550          { ac_try='test -s conftest.$ac_objext'
4551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552   (eval $ac_try) 2>&5
4553   ac_status=$?
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); }; }; then
4556   gt_cv_c_wint_t=yes
4557 else
4558   echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561 gt_cv_c_wint_t=no
4562 fi
4563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4564 fi
4565 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4566 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4567   if test $gt_cv_c_wint_t = yes; then
4568
4569 cat >>confdefs.h <<\_ACEOF
4570 #define HAVE_WINT_T 1
4571 _ACEOF
4572
4573   fi
4574
4575
4576   echo "$as_me:$LINENO: checking for inttypes.h" >&5
4577 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4578 if test "${gl_cv_header_inttypes_h+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h.  */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h.  */
4587 #include <sys/types.h>
4588 #include <inttypes.h>
4589 int
4590 main ()
4591 {
4592 uintmax_t i = (uintmax_t) -1;
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599   (eval $ac_compile) 2>conftest.er1
4600   ac_status=$?
4601   grep -v '^ *+' conftest.er1 >conftest.err
4602   rm -f conftest.er1
4603   cat conftest.err >&5
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); } &&
4606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608   (eval $ac_try) 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; } &&
4612          { ac_try='test -s conftest.$ac_objext'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618   gl_cv_header_inttypes_h=yes
4619 else
4620   echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 gl_cv_header_inttypes_h=no
4624 fi
4625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626 fi
4627 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
4628 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
4629   if test $gl_cv_header_inttypes_h = yes; then
4630
4631 cat >>confdefs.h <<_ACEOF
4632 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4633 _ACEOF
4634
4635   fi
4636
4637
4638   echo "$as_me:$LINENO: checking for stdint.h" >&5
4639 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4640 if test "${gl_cv_header_stdint_h+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h.  */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h.  */
4649 #include <sys/types.h>
4650 #include <stdint.h>
4651 int
4652 main ()
4653 {
4654 uintmax_t i = (uintmax_t) -1;
4655   ;
4656   return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661   (eval $ac_compile) 2>conftest.er1
4662   ac_status=$?
4663   grep -v '^ *+' conftest.er1 >conftest.err
4664   rm -f conftest.er1
4665   cat conftest.err >&5
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); } &&
4668          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670   (eval $ac_try) 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; } &&
4674          { ac_try='test -s conftest.$ac_objext'
4675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676   (eval $ac_try) 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); }; }; then
4680   gl_cv_header_stdint_h=yes
4681 else
4682   echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4684
4685 gl_cv_header_stdint_h=no
4686 fi
4687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4688 fi
4689 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
4690 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
4691   if test $gl_cv_header_stdint_h = yes; then
4692
4693 cat >>confdefs.h <<_ACEOF
4694 #define HAVE_STDINT_H_WITH_UINTMAX 1
4695 _ACEOF
4696
4697   fi
4698
4699
4700
4701
4702   echo "$as_me:$LINENO: checking for intmax_t" >&5
4703 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4704 if test "${gt_cv_c_intmax_t+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h.  */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h.  */
4713
4714 #include <stddef.h>
4715 #include <stdlib.h>
4716 #if HAVE_STDINT_H_WITH_UINTMAX
4717 #include <stdint.h>
4718 #endif
4719 #if HAVE_INTTYPES_H_WITH_UINTMAX
4720 #include <inttypes.h>
4721 #endif
4722
4723 int
4724 main ()
4725 {
4726 intmax_t x = -1;
4727   ;
4728   return 0;
4729 }
4730 _ACEOF
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733   (eval $ac_compile) 2>conftest.er1
4734   ac_status=$?
4735   grep -v '^ *+' conftest.er1 >conftest.err
4736   rm -f conftest.er1
4737   cat conftest.err >&5
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); } &&
4740          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742   (eval $ac_try) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); }; } &&
4746          { ac_try='test -s conftest.$ac_objext'
4747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748   (eval $ac_try) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; }; then
4752   gt_cv_c_intmax_t=yes
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757 gt_cv_c_intmax_t=no
4758 fi
4759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760 fi
4761 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4762 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4763   if test $gt_cv_c_intmax_t = yes; then
4764
4765 cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_INTMAX_T 1
4767 _ACEOF
4768
4769   fi
4770
4771
4772
4773   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4774 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4775 if test "${gt_cv_func_printf_posix+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778
4779       if test "$cross_compiling" = yes; then
4780
4781         cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787
4788 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4789   notposix
4790 #endif
4791
4792 _ACEOF
4793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794   $EGREP "notposix" >/dev/null 2>&1; then
4795   gt_cv_func_printf_posix="guessing no"
4796 else
4797   gt_cv_func_printf_posix="guessing yes"
4798 fi
4799 rm -f conftest*
4800
4801
4802 else
4803   cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809
4810 #include <stdio.h>
4811 #include <string.h>
4812 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4813    dollar expansion (possibly an autoconf bug).  */
4814 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4815 static char buf[100];
4816 int main ()
4817 {
4818   sprintf (buf, format, 33, 55);
4819   return (strcmp (buf, "55 33") != 0);
4820 }
4821 _ACEOF
4822 rm -f conftest$ac_exeext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4824   (eval $ac_link) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829   (eval $ac_try) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }; }; then
4833   gt_cv_func_printf_posix=yes
4834 else
4835   echo "$as_me: program exited with status $ac_status" >&5
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 ( exit $ac_status )
4840 gt_cv_func_printf_posix=no
4841 fi
4842 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4843 fi
4844
4845 fi
4846 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4847 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4848   case $gt_cv_func_printf_posix in
4849     *yes)
4850
4851 cat >>confdefs.h <<\_ACEOF
4852 #define HAVE_POSIX_PRINTF 1
4853 _ACEOF
4854
4855       ;;
4856   esac
4857
4858 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4859 # for constant arguments.  Useless!
4860 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4861 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4862 if test "${ac_cv_working_alloca_h+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h.  */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h.  */
4871 #include <alloca.h>
4872 int
4873 main ()
4874 {
4875 char *p = (char *) alloca (2 * sizeof (int));
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 rm -f conftest.$ac_objext conftest$ac_exeext
4881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4882   (eval $ac_link) 2>conftest.er1
4883   ac_status=$?
4884   grep -v '^ *+' conftest.er1 >conftest.err
4885   rm -f conftest.er1
4886   cat conftest.err >&5
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); } &&
4889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891   (eval $ac_try) 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; } &&
4895          { ac_try='test -s conftest$ac_exeext'
4896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897   (eval $ac_try) 2>&5
4898   ac_status=$?
4899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900   (exit $ac_status); }; }; then
4901   ac_cv_working_alloca_h=yes
4902 else
4903   echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906 ac_cv_working_alloca_h=no
4907 fi
4908 rm -f conftest.err conftest.$ac_objext \
4909       conftest$ac_exeext conftest.$ac_ext
4910 fi
4911 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4912 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4913 if test $ac_cv_working_alloca_h = yes; then
4914
4915 cat >>confdefs.h <<\_ACEOF
4916 #define HAVE_ALLOCA_H 1
4917 _ACEOF
4918
4919 fi
4920
4921 echo "$as_me:$LINENO: checking for alloca" >&5
4922 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4923 if test "${ac_cv_func_alloca_works+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h.  */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h.  */
4932 #ifdef __GNUC__
4933 # define alloca __builtin_alloca
4934 #else
4935 # ifdef _MSC_VER
4936 #  include <malloc.h>
4937 #  define alloca _alloca
4938 # else
4939 #  if HAVE_ALLOCA_H
4940 #   include <alloca.h>
4941 #  else
4942 #   ifdef _AIX
4943  #pragma alloca
4944 #   else
4945 #    ifndef alloca /* predefined by HP cc +Olibcalls */
4946 char *alloca ();
4947 #    endif
4948 #   endif
4949 #  endif
4950 # endif
4951 #endif
4952
4953 int
4954 main ()
4955 {
4956 char *p = (char *) alloca (1);
4957   ;
4958   return 0;
4959 }
4960 _ACEOF
4961 rm -f conftest.$ac_objext conftest$ac_exeext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4963   (eval $ac_link) 2>conftest.er1
4964   ac_status=$?
4965   grep -v '^ *+' conftest.er1 >conftest.err
4966   rm -f conftest.er1
4967   cat conftest.err >&5
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); } &&
4970          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; } &&
4976          { ac_try='test -s conftest$ac_exeext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   ac_cv_func_alloca_works=yes
4983 else
4984   echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987 ac_cv_func_alloca_works=no
4988 fi
4989 rm -f conftest.err conftest.$ac_objext \
4990       conftest$ac_exeext conftest.$ac_ext
4991 fi
4992 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4993 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4994
4995 if test $ac_cv_func_alloca_works = yes; then
4996
4997 cat >>confdefs.h <<\_ACEOF
4998 #define HAVE_ALLOCA 1
4999 _ACEOF
5000
5001 else
5002   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5003 # that cause trouble.  Some versions do not even contain alloca or
5004 # contain a buggy version.  If you still want to use their alloca,
5005 # use ar to extract alloca.o from them instead of compiling alloca.c.
5006
5007 ALLOCA=alloca.$ac_objext
5008
5009 cat >>confdefs.h <<\_ACEOF
5010 #define C_ALLOCA 1
5011 _ACEOF
5012
5013
5014 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5015 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5016 if test "${ac_cv_os_cray+set}" = set; then
5017   echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019   cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025 #if defined(CRAY) && ! defined(CRAY2)
5026 webecray
5027 #else
5028 wenotbecray
5029 #endif
5030
5031 _ACEOF
5032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5033   $EGREP "webecray" >/dev/null 2>&1; then
5034   ac_cv_os_cray=yes
5035 else
5036   ac_cv_os_cray=no
5037 fi
5038 rm -f conftest*
5039
5040 fi
5041 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5042 echo "${ECHO_T}$ac_cv_os_cray" >&6
5043 if test $ac_cv_os_cray = yes; then
5044   for ac_func in _getb67 GETB67 getb67; do
5045     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5046 echo "$as_me:$LINENO: checking for $ac_func" >&5
5047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5048 if eval "test \"\${$as_ac_var+set}\" = set"; then
5049   echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051   cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5059 #define $ac_func innocuous_$ac_func
5060
5061 /* System header to define __stub macros and hopefully few prototypes,
5062     which can conflict with char $ac_func (); below.
5063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064     <limits.h> exists even on freestanding compilers.  */
5065
5066 #ifdef __STDC__
5067 # include <limits.h>
5068 #else
5069 # include <assert.h>
5070 #endif
5071
5072 #undef $ac_func
5073
5074 /* Override any gcc2 internal prototype to avoid an error.  */
5075 #ifdef __cplusplus
5076 extern "C"
5077 {
5078 #endif
5079 /* We use char because int might match the return type of a gcc2
5080    builtin and then its argument prototype would still apply.  */
5081 char $ac_func ();
5082 /* The GNU C library defines this for functions which it implements
5083     to always fail with ENOSYS.  Some functions are actually named
5084     something starting with __ and the normal name is an alias.  */
5085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5086 choke me
5087 #else
5088 char (*f) () = $ac_func;
5089 #endif
5090 #ifdef __cplusplus
5091 }
5092 #endif
5093
5094 int
5095 main ()
5096 {
5097 return f != $ac_func;
5098   ;
5099   return 0;
5100 }
5101 _ACEOF
5102 rm -f conftest.$ac_objext conftest$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104   (eval $ac_link) 2>conftest.er1
5105   ac_status=$?
5106   grep -v '^ *+' conftest.er1 >conftest.err
5107   rm -f conftest.er1
5108   cat conftest.err >&5
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); } &&
5111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113   (eval $ac_try) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); }; } &&
5117          { ac_try='test -s conftest$ac_exeext'
5118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119   (eval $ac_try) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; }; then
5123   eval "$as_ac_var=yes"
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 eval "$as_ac_var=no"
5129 fi
5130 rm -f conftest.err conftest.$ac_objext \
5131       conftest$ac_exeext conftest.$ac_ext
5132 fi
5133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5135 if test `eval echo '${'$as_ac_var'}'` = yes; then
5136
5137 cat >>confdefs.h <<_ACEOF
5138 #define CRAY_STACKSEG_END $ac_func
5139 _ACEOF
5140
5141     break
5142 fi
5143
5144   done
5145 fi
5146
5147 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5148 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5149 if test "${ac_cv_c_stack_direction+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   if test "$cross_compiling" = yes; then
5153   ac_cv_c_stack_direction=0
5154 else
5155   cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h.  */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h.  */
5161 int
5162 find_stack_direction ()
5163 {
5164   static char *addr = 0;
5165   auto char dummy;
5166   if (addr == 0)
5167     {
5168       addr = &dummy;
5169       return find_stack_direction ();
5170     }
5171   else
5172     return (&dummy > addr) ? 1 : -1;
5173 }
5174
5175 int
5176 main ()
5177 {
5178   exit (find_stack_direction () < 0);
5179 }
5180 _ACEOF
5181 rm -f conftest$ac_exeext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5183   (eval $ac_link) 2>&5
5184   ac_status=$?
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188   (eval $ac_try) 2>&5
5189   ac_status=$?
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); }; }; then
5192   ac_cv_c_stack_direction=1
5193 else
5194   echo "$as_me: program exited with status $ac_status" >&5
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5197
5198 ( exit $ac_status )
5199 ac_cv_c_stack_direction=-1
5200 fi
5201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5202 fi
5203 fi
5204 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5205 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5206
5207 cat >>confdefs.h <<_ACEOF
5208 #define STACK_DIRECTION $ac_cv_c_stack_direction
5209 _ACEOF
5210
5211
5212 fi
5213
5214
5215
5216 for ac_header in stdlib.h unistd.h
5217 do
5218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5220   echo "$as_me:$LINENO: checking for $ac_header" >&5
5221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 fi
5225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5227 else
5228   # Is the header compilable?
5229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237 $ac_includes_default
5238 #include <$ac_header>
5239 _ACEOF
5240 rm -f conftest.$ac_objext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242   (eval $ac_compile) 2>conftest.er1
5243   ac_status=$?
5244   grep -v '^ *+' conftest.er1 >conftest.err
5245   rm -f conftest.er1
5246   cat conftest.err >&5
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } &&
5249          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251   (eval $ac_try) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; } &&
5255          { ac_try='test -s conftest.$ac_objext'
5256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257   (eval $ac_try) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }; }; then
5261   ac_header_compiler=yes
5262 else
5263   echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266 ac_header_compiler=no
5267 fi
5268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5270 echo "${ECHO_T}$ac_header_compiler" >&6
5271
5272 # Is the header present?
5273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h.  */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h.  */
5281 #include <$ac_header>
5282 _ACEOF
5283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5285   ac_status=$?
5286   grep -v '^ *+' conftest.er1 >conftest.err
5287   rm -f conftest.er1
5288   cat conftest.err >&5
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); } >/dev/null; then
5291   if test -s conftest.err; then
5292     ac_cpp_err=$ac_c_preproc_warn_flag
5293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5294   else
5295     ac_cpp_err=
5296   fi
5297 else
5298   ac_cpp_err=yes
5299 fi
5300 if test -z "$ac_cpp_err"; then
5301   ac_header_preproc=yes
5302 else
5303   echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306   ac_header_preproc=no
5307 fi
5308 rm -f conftest.err conftest.$ac_ext
5309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5310 echo "${ECHO_T}$ac_header_preproc" >&6
5311
5312 # So?  What about this header?
5313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5314   yes:no: )
5315     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5319     ac_header_preproc=yes
5320     ;;
5321   no:yes:* )
5322     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5324     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5325 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5326     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5328     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5329 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5332     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5334     (
5335       cat <<\_ASBOX
5336 ## ------------------------------------------ ##
5337 ## Report this to the AC_PACKAGE_NAME lists.  ##
5338 ## ------------------------------------------ ##
5339 _ASBOX
5340     ) |
5341       sed "s/^/$as_me: WARNING:     /" >&2
5342     ;;
5343 esac
5344 echo "$as_me:$LINENO: checking for $ac_header" >&5
5345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   eval "$as_ac_Header=\$ac_header_preproc"
5350 fi
5351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5353
5354 fi
5355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5356   cat >>confdefs.h <<_ACEOF
5357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5358 _ACEOF
5359
5360 fi
5361
5362 done
5363
5364
5365 for ac_func in getpagesize
5366 do
5367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5368 echo "$as_me:$LINENO: checking for $ac_func" >&5
5369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5370 if eval "test \"\${$as_ac_var+set}\" = set"; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h.  */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h.  */
5379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5381 #define $ac_func innocuous_$ac_func
5382
5383 /* System header to define __stub macros and hopefully few prototypes,
5384     which can conflict with char $ac_func (); below.
5385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5386     <limits.h> exists even on freestanding compilers.  */
5387
5388 #ifdef __STDC__
5389 # include <limits.h>
5390 #else
5391 # include <assert.h>
5392 #endif
5393
5394 #undef $ac_func
5395
5396 /* Override any gcc2 internal prototype to avoid an error.  */
5397 #ifdef __cplusplus
5398 extern "C"
5399 {
5400 #endif
5401 /* We use char because int might match the return type of a gcc2
5402    builtin and then its argument prototype would still apply.  */
5403 char $ac_func ();
5404 /* The GNU C library defines this for functions which it implements
5405     to always fail with ENOSYS.  Some functions are actually named
5406     something starting with __ and the normal name is an alias.  */
5407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5408 choke me
5409 #else
5410 char (*f) () = $ac_func;
5411 #endif
5412 #ifdef __cplusplus
5413 }
5414 #endif
5415
5416 int
5417 main ()
5418 {
5419 return f != $ac_func;
5420   ;
5421   return 0;
5422 }
5423 _ACEOF
5424 rm -f conftest.$ac_objext conftest$ac_exeext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5426   (eval $ac_link) 2>conftest.er1
5427   ac_status=$?
5428   grep -v '^ *+' conftest.er1 >conftest.err
5429   rm -f conftest.er1
5430   cat conftest.err >&5
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); } &&
5433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435   (eval $ac_try) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); }; } &&
5439          { ac_try='test -s conftest$ac_exeext'
5440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441   (eval $ac_try) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   eval "$as_ac_var=yes"
5446 else
5447   echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450 eval "$as_ac_var=no"
5451 fi
5452 rm -f conftest.err conftest.$ac_objext \
5453       conftest$ac_exeext conftest.$ac_ext
5454 fi
5455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5457 if test `eval echo '${'$as_ac_var'}'` = yes; then
5458   cat >>confdefs.h <<_ACEOF
5459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5460 _ACEOF
5461
5462 fi
5463 done
5464
5465 echo "$as_me:$LINENO: checking for working mmap" >&5
5466 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5467 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5468   echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470   if test "$cross_compiling" = yes; then
5471   ac_cv_func_mmap_fixed_mapped=no
5472 else
5473   cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h.  */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h.  */
5479 $ac_includes_default
5480 /* malloc might have been renamed as rpl_malloc. */
5481 #undef malloc
5482
5483 /* Thanks to Mike Haertel and Jim Avera for this test.
5484    Here is a matrix of mmap possibilities:
5485         mmap private not fixed
5486         mmap private fixed at somewhere currently unmapped
5487         mmap private fixed at somewhere already mapped
5488         mmap shared not fixed
5489         mmap shared fixed at somewhere currently unmapped
5490         mmap shared fixed at somewhere already mapped
5491    For private mappings, we should verify that changes cannot be read()
5492    back from the file, nor mmap's back from the file at a different
5493    address.  (There have been systems where private was not correctly
5494    implemented like the infamous i386 svr4.0, and systems where the
5495    VM page cache was not coherent with the file system buffer cache
5496    like early versions of FreeBSD and possibly contemporary NetBSD.)
5497    For shared mappings, we should conversely verify that changes get
5498    propagated back to all the places they're supposed to be.
5499
5500    Grep wants private fixed already mapped.
5501    The main things grep needs to know about mmap are:
5502    * does it exist and is it safe to write into the mmap'd area
5503    * how to use it (BSD variants)  */
5504
5505 #include <fcntl.h>
5506 #include <sys/mman.h>
5507
5508 #if !STDC_HEADERS && !HAVE_STDLIB_H
5509 char *malloc ();
5510 #endif
5511
5512 /* This mess was copied from the GNU getpagesize.h.  */
5513 #if !HAVE_GETPAGESIZE
5514 /* Assume that all systems that can run configure have sys/param.h.  */
5515 # if !HAVE_SYS_PARAM_H
5516 #  define HAVE_SYS_PARAM_H 1
5517 # endif
5518
5519 # ifdef _SC_PAGESIZE
5520 #  define getpagesize() sysconf(_SC_PAGESIZE)
5521 # else /* no _SC_PAGESIZE */
5522 #  if HAVE_SYS_PARAM_H
5523 #   include <sys/param.h>
5524 #   ifdef EXEC_PAGESIZE
5525 #    define getpagesize() EXEC_PAGESIZE
5526 #   else /* no EXEC_PAGESIZE */
5527 #    ifdef NBPG
5528 #     define getpagesize() NBPG * CLSIZE
5529 #     ifndef CLSIZE
5530 #      define CLSIZE 1
5531 #     endif /* no CLSIZE */
5532 #    else /* no NBPG */
5533 #     ifdef NBPC
5534 #      define getpagesize() NBPC
5535 #     else /* no NBPC */
5536 #      ifdef PAGESIZE
5537 #       define getpagesize() PAGESIZE
5538 #      endif /* PAGESIZE */
5539 #     endif /* no NBPC */
5540 #    endif /* no NBPG */
5541 #   endif /* no EXEC_PAGESIZE */
5542 #  else /* no HAVE_SYS_PARAM_H */
5543 #   define getpagesize() 8192   /* punt totally */
5544 #  endif /* no HAVE_SYS_PARAM_H */
5545 # endif /* no _SC_PAGESIZE */
5546
5547 #endif /* no HAVE_GETPAGESIZE */
5548
5549 int
5550 main ()
5551 {
5552   char *data, *data2, *data3;
5553   int i, pagesize;
5554   int fd;
5555
5556   pagesize = getpagesize ();
5557
5558   /* First, make a file with some known garbage in it. */
5559   data = (char *) malloc (pagesize);
5560   if (!data)
5561     exit (1);
5562   for (i = 0; i < pagesize; ++i)
5563     *(data + i) = rand ();
5564   umask (0);
5565   fd = creat ("conftest.mmap", 0600);
5566   if (fd < 0)
5567     exit (1);
5568   if (write (fd, data, pagesize) != pagesize)
5569     exit (1);
5570   close (fd);
5571
5572   /* Next, try to mmap the file at a fixed address which already has
5573      something else allocated at it.  If we can, also make sure that
5574      we see the same garbage.  */
5575   fd = open ("conftest.mmap", O_RDWR);
5576   if (fd < 0)
5577     exit (1);
5578   data2 = (char *) malloc (2 * pagesize);
5579   if (!data2)
5580     exit (1);
5581   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5582   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5583                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5584     exit (1);
5585   for (i = 0; i < pagesize; ++i)
5586     if (*(data + i) != *(data2 + i))
5587       exit (1);
5588
5589   /* Finally, make sure that changes to the mapped area do not
5590      percolate back to the file as seen by read().  (This is a bug on
5591      some variants of i386 svr4.0.)  */
5592   for (i = 0; i < pagesize; ++i)
5593     *(data2 + i) = *(data2 + i) + 1;
5594   data3 = (char *) malloc (pagesize);
5595   if (!data3)
5596     exit (1);
5597   if (read (fd, data3, pagesize) != pagesize)
5598     exit (1);
5599   for (i = 0; i < pagesize; ++i)
5600     if (*(data + i) != *(data3 + i))
5601       exit (1);
5602   close (fd);
5603   exit (0);
5604 }
5605 _ACEOF
5606 rm -f conftest$ac_exeext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5608   (eval $ac_link) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613   (eval $ac_try) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; }; then
5617   ac_cv_func_mmap_fixed_mapped=yes
5618 else
5619   echo "$as_me: program exited with status $ac_status" >&5
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ( exit $ac_status )
5624 ac_cv_func_mmap_fixed_mapped=no
5625 fi
5626 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5627 fi
5628 fi
5629 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5630 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5631 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5632
5633 cat >>confdefs.h <<\_ACEOF
5634 #define HAVE_MMAP 1
5635 _ACEOF
5636
5637 fi
5638 rm -f conftest.mmap
5639
5640
5641     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5642 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5643 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646   cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h.  */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h.  */
5652
5653 #include <features.h>
5654 #ifdef __GNU_LIBRARY__
5655  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5656   Lucky GNU user
5657  #endif
5658 #endif
5659
5660 _ACEOF
5661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5662   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5663   ac_cv_gnu_library_2_1=yes
5664 else
5665   ac_cv_gnu_library_2_1=no
5666 fi
5667 rm -f conftest*
5668
5669
5670
5671 fi
5672 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5673 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5674
5675     GLIBC21="$ac_cv_gnu_library_2_1"
5676
5677
5678
5679
5680   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5681 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5682 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5683   echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685
5686       if test "$cross_compiling" = yes; then
5687
5688           # Guess based on the CPU.
5689           case "$host_cpu" in
5690             alpha* | i3456786 | m68k | s390*)
5691               gt_cv_int_divbyzero_sigfpe="guessing yes";;
5692             *)
5693               gt_cv_int_divbyzero_sigfpe="guessing no";;
5694           esac
5695
5696 else
5697   cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h.  */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h.  */
5703
5704 #include <stdlib.h>
5705 #include <signal.h>
5706
5707 static void
5708 #ifdef __cplusplus
5709 sigfpe_handler (int sig)
5710 #else
5711 sigfpe_handler (sig) int sig;
5712 #endif
5713 {
5714   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5715   exit (sig != SIGFPE);
5716 }
5717
5718 int x = 1;
5719 int y = 0;
5720 int z;
5721 int nan;
5722
5723 int main ()
5724 {
5725   signal (SIGFPE, sigfpe_handler);
5726 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5727 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5728   signal (SIGTRAP, sigfpe_handler);
5729 #endif
5730 /* Linux/SPARC yields signal SIGILL.  */
5731 #if defined (__sparc__) && defined (__linux__)
5732   signal (SIGILL, sigfpe_handler);
5733 #endif
5734
5735   z = x / y;
5736   nan = y / y;
5737   exit (1);
5738 }
5739
5740 _ACEOF
5741 rm -f conftest$ac_exeext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5743   (eval $ac_link) 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; }; then
5752   gt_cv_int_divbyzero_sigfpe=yes
5753 else
5754   echo "$as_me: program exited with status $ac_status" >&5
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758 ( exit $ac_status )
5759 gt_cv_int_divbyzero_sigfpe=no
5760 fi
5761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5762 fi
5763
5764 fi
5765 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5766 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5767   case "$gt_cv_int_divbyzero_sigfpe" in
5768     *yes) value=1;;
5769     *) value=0;;
5770   esac
5771
5772 cat >>confdefs.h <<_ACEOF
5773 #define INTDIV0_RAISES_SIGFPE $value
5774 _ACEOF
5775
5776
5777
5778   echo "$as_me:$LINENO: checking for unsigned long long" >&5
5779 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5780 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5781   echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783   cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h.  */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h.  */
5789 unsigned long long ull = 1ULL; int i = 63;
5790 int
5791 main ()
5792 {
5793 unsigned long long ullmax = (unsigned long long) -1;
5794      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801   (eval $ac_link) 2>conftest.er1
5802   ac_status=$?
5803   grep -v '^ *+' conftest.er1 >conftest.err
5804   rm -f conftest.er1
5805   cat conftest.err >&5
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); } &&
5808          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810   (eval $ac_try) 2>&5
5811   ac_status=$?
5812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813   (exit $ac_status); }; } &&
5814          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5820   ac_cv_type_unsigned_long_long=yes
5821 else
5822   echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5824
5825 ac_cv_type_unsigned_long_long=no
5826 fi
5827 rm -f conftest.err conftest.$ac_objext \
5828       conftest$ac_exeext conftest.$ac_ext
5829 fi
5830 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5831 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5832   if test $ac_cv_type_unsigned_long_long = yes; then
5833
5834 cat >>confdefs.h <<\_ACEOF
5835 #define HAVE_UNSIGNED_LONG_LONG 1
5836 _ACEOF
5837
5838   fi
5839
5840
5841
5842
5843   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5844
5845     test $ac_cv_type_unsigned_long_long = yes \
5846       && ac_type='unsigned long long' \
5847       || ac_type='unsigned long'
5848
5849 cat >>confdefs.h <<_ACEOF
5850 #define uintmax_t $ac_type
5851 _ACEOF
5852
5853   else
5854
5855 cat >>confdefs.h <<\_ACEOF
5856 #define HAVE_UINTMAX_T 1
5857 _ACEOF
5858
5859   fi
5860
5861
5862   echo "$as_me:$LINENO: checking for inttypes.h" >&5
5863 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5864 if test "${gt_cv_header_inttypes_h+set}" = set; then
5865   echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867
5868     cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h.  */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h.  */
5874 #include <sys/types.h>
5875 #include <inttypes.h>
5876 int
5877 main ()
5878 {
5879
5880   ;
5881   return 0;
5882 }
5883 _ACEOF
5884 rm -f conftest.$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886   (eval $ac_compile) 2>conftest.er1
5887   ac_status=$?
5888   grep -v '^ *+' conftest.er1 >conftest.err
5889   rm -f conftest.er1
5890   cat conftest.err >&5
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); } &&
5893          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895   (eval $ac_try) 2>&5
5896   ac_status=$?
5897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898   (exit $ac_status); }; } &&
5899          { ac_try='test -s conftest.$ac_objext'
5900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901   (eval $ac_try) 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); }; }; then
5905   gt_cv_header_inttypes_h=yes
5906 else
5907   echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 gt_cv_header_inttypes_h=no
5911 fi
5912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5913
5914 fi
5915 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
5916 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
5917   if test $gt_cv_header_inttypes_h = yes; then
5918
5919 cat >>confdefs.h <<_ACEOF
5920 #define HAVE_INTTYPES_H 1
5921 _ACEOF
5922
5923   fi
5924
5925
5926
5927   if test $gt_cv_header_inttypes_h = yes; then
5928     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5929 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
5930 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933
5934         cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h.  */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h.  */
5940 #include <inttypes.h>
5941 #ifdef PRId32
5942 char *p = PRId32;
5943 #endif
5944
5945 int
5946 main ()
5947 {
5948
5949   ;
5950   return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955   (eval $ac_compile) 2>conftest.er1
5956   ac_status=$?
5957   grep -v '^ *+' conftest.er1 >conftest.err
5958   rm -f conftest.er1
5959   cat conftest.err >&5
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); } &&
5962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
5968          { ac_try='test -s conftest.$ac_objext'
5969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970   (eval $ac_try) 2>&5
5971   ac_status=$?
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); }; }; then
5974   gt_cv_inttypes_pri_broken=no
5975 else
5976   echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 gt_cv_inttypes_pri_broken=yes
5980 fi
5981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5982
5983 fi
5984 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5985 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
5986   fi
5987   if test "$gt_cv_inttypes_pri_broken" = yes; then
5988
5989 cat >>confdefs.h <<_ACEOF
5990 #define PRI_MACROS_BROKEN 1
5991 _ACEOF
5992
5993   fi
5994
5995
5996
5997 for ac_header in stdint.h
5998 do
5999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6001   echo "$as_me:$LINENO: checking for $ac_header" >&5
6002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 fi
6006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6008 else
6009   # Is the header compilable?
6010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6012 cat >conftest.$ac_ext <<_ACEOF
6013 /* confdefs.h.  */
6014 _ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h.  */
6018 $ac_includes_default
6019 #include <$ac_header>
6020 _ACEOF
6021 rm -f conftest.$ac_objext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023   (eval $ac_compile) 2>conftest.er1
6024   ac_status=$?
6025   grep -v '^ *+' conftest.er1 >conftest.err
6026   rm -f conftest.er1
6027   cat conftest.err >&5
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); } &&
6030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032   (eval $ac_try) 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); }; } &&
6036          { ac_try='test -s conftest.$ac_objext'
6037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038   (eval $ac_try) 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); }; }; then
6042   ac_header_compiler=yes
6043 else
6044   echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047 ac_header_compiler=no
6048 fi
6049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6051 echo "${ECHO_T}$ac_header_compiler" >&6
6052
6053 # Is the header present?
6054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062 #include <$ac_header>
6063 _ACEOF
6064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6066   ac_status=$?
6067   grep -v '^ *+' conftest.er1 >conftest.err
6068   rm -f conftest.er1
6069   cat conftest.err >&5
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); } >/dev/null; then
6072   if test -s conftest.err; then
6073     ac_cpp_err=$ac_c_preproc_warn_flag
6074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6075   else
6076     ac_cpp_err=
6077   fi
6078 else
6079   ac_cpp_err=yes
6080 fi
6081 if test -z "$ac_cpp_err"; then
6082   ac_header_preproc=yes
6083 else
6084   echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6086
6087   ac_header_preproc=no
6088 fi
6089 rm -f conftest.err conftest.$ac_ext
6090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6091 echo "${ECHO_T}$ac_header_preproc" >&6
6092
6093 # So?  What about this header?
6094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6095   yes:no: )
6096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6100     ac_header_preproc=yes
6101     ;;
6102   no:yes:* )
6103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6115     (
6116       cat <<\_ASBOX
6117 ## ------------------------------------------ ##
6118 ## Report this to the AC_PACKAGE_NAME lists.  ##
6119 ## ------------------------------------------ ##
6120 _ASBOX
6121     ) |
6122       sed "s/^/$as_me: WARNING:     /" >&2
6123     ;;
6124 esac
6125 echo "$as_me:$LINENO: checking for $ac_header" >&5
6126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   eval "$as_ac_Header=\$ac_header_preproc"
6131 fi
6132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6134
6135 fi
6136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6137   cat >>confdefs.h <<_ACEOF
6138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6139 _ACEOF
6140
6141 fi
6142
6143 done
6144
6145     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6146 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6147   result=
6148   cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154
6155 #include <limits.h>
6156 #if HAVE_STDINT_H
6157 #include <stdint.h>
6158 #endif
6159 #ifdef SIZE_MAX
6160 Found it
6161 #endif
6162
6163 _ACEOF
6164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6165   $EGREP "Found it" >/dev/null 2>&1; then
6166   result=yes
6167 fi
6168 rm -f conftest*
6169
6170   if test -z "$result"; then
6171                     if test "$cross_compiling" = yes; then
6172   # Depending upon the size, compute the lo and hi bounds.
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179 #include <stddef.h>
6180 int
6181 main ()
6182 {
6183 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6184 test_array [0] = 0
6185
6186   ;
6187   return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6192   (eval $ac_compile) 2>conftest.er1
6193   ac_status=$?
6194   grep -v '^ *+' conftest.er1 >conftest.err
6195   rm -f conftest.er1
6196   cat conftest.err >&5
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } &&
6199          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; } &&
6205          { ac_try='test -s conftest.$ac_objext'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; }; then
6211   ac_lo=0 ac_mid=0
6212   while :; do
6213     cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 #include <stddef.h>
6220 int
6221 main ()
6222 {
6223 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6224 test_array [0] = 0
6225
6226   ;
6227   return 0;
6228 }
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232   (eval $ac_compile) 2>conftest.er1
6233   ac_status=$?
6234   grep -v '^ *+' conftest.er1 >conftest.err
6235   rm -f conftest.er1
6236   cat conftest.err >&5
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); } &&
6239          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241   (eval $ac_try) 2>&5
6242   ac_status=$?
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); }; } &&
6245          { ac_try='test -s conftest.$ac_objext'
6246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247   (eval $ac_try) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; }; then
6251   ac_hi=$ac_mid; break
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 ac_lo=`expr $ac_mid + 1`
6257                     if test $ac_lo -le $ac_mid; then
6258                       ac_lo= ac_hi=
6259                       break
6260                     fi
6261                     ac_mid=`expr 2 '*' $ac_mid + 1`
6262 fi
6263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6264   done
6265 else
6266   echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6268
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h.  */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h.  */
6275 #include <stddef.h>
6276 int
6277 main ()
6278 {
6279 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6280 test_array [0] = 0
6281
6282   ;
6283   return 0;
6284 }
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288   (eval $ac_compile) 2>conftest.er1
6289   ac_status=$?
6290   grep -v '^ *+' conftest.er1 >conftest.err
6291   rm -f conftest.er1
6292   cat conftest.err >&5
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } &&
6295          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; } &&
6301          { ac_try='test -s conftest.$ac_objext'
6302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303   (eval $ac_try) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }; }; then
6307   ac_hi=-1 ac_mid=-1
6308   while :; do
6309     cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315 #include <stddef.h>
6316 int
6317 main ()
6318 {
6319 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6320 test_array [0] = 0
6321
6322   ;
6323   return 0;
6324 }
6325 _ACEOF
6326 rm -f conftest.$ac_objext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6328   (eval $ac_compile) 2>conftest.er1
6329   ac_status=$?
6330   grep -v '^ *+' conftest.er1 >conftest.err
6331   rm -f conftest.er1
6332   cat conftest.err >&5
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); } &&
6335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337   (eval $ac_try) 2>&5
6338   ac_status=$?
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); }; } &&
6341          { ac_try='test -s conftest.$ac_objext'
6342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343   (eval $ac_try) 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); }; }; then
6347   ac_lo=$ac_mid; break
6348 else
6349   echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6351
6352 ac_hi=`expr '(' $ac_mid ')' - 1`
6353                        if test $ac_mid -le $ac_hi; then
6354                          ac_lo= ac_hi=
6355                          break
6356                        fi
6357                        ac_mid=`expr 2 '*' $ac_mid`
6358 fi
6359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6360   done
6361 else
6362   echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 ac_lo= ac_hi=
6366 fi
6367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6368 fi
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370 # Binary search between lo and hi bounds.
6371 while test "x$ac_lo" != "x$ac_hi"; do
6372   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6373   cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h.  */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h.  */
6379 #include <stddef.h>
6380 int
6381 main ()
6382 {
6383 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6384 test_array [0] = 0
6385
6386   ;
6387   return 0;
6388 }
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392   (eval $ac_compile) 2>conftest.er1
6393   ac_status=$?
6394   grep -v '^ *+' conftest.er1 >conftest.err
6395   rm -f conftest.er1
6396   cat conftest.err >&5
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); } &&
6399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401   (eval $ac_try) 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; } &&
6405          { ac_try='test -s conftest.$ac_objext'
6406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407   (eval $ac_try) 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; }; then
6411   ac_hi=$ac_mid
6412 else
6413   echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 ac_lo=`expr '(' $ac_mid ')' + 1`
6417 fi
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 done
6420 case $ac_lo in
6421 ?*) res_hi=$ac_lo;;
6422 '') result=? ;;
6423 esac
6424 else
6425   if test "$cross_compiling" = yes; then
6426   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6427 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6428    { (exit 1); exit 1; }; }
6429 else
6430   cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 #include <stddef.h>
6437 long longval () { return ~(size_t)0 / 10; }
6438 unsigned long ulongval () { return ~(size_t)0 / 10; }
6439 #include <stdio.h>
6440 #include <stdlib.h>
6441 int
6442 main ()
6443 {
6444
6445   FILE *f = fopen ("conftest.val", "w");
6446   if (! f)
6447     exit (1);
6448   if ((~(size_t)0 / 10) < 0)
6449     {
6450       long i = longval ();
6451       if (i != (~(size_t)0 / 10))
6452         exit (1);
6453       fprintf (f, "%ld\n", i);
6454     }
6455   else
6456     {
6457       unsigned long i = ulongval ();
6458       if (i != (~(size_t)0 / 10))
6459         exit (1);
6460       fprintf (f, "%lu\n", i);
6461     }
6462   exit (ferror (f) || fclose (f) != 0);
6463
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 rm -f conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470   (eval $ac_link) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; }; then
6479   res_hi=`cat conftest.val`
6480 else
6481   echo "$as_me: program exited with status $ac_status" >&5
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6484
6485 ( exit $ac_status )
6486 result=?
6487 fi
6488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6489 fi
6490 fi
6491 rm -f conftest.val
6492     if test "$cross_compiling" = yes; then
6493   # Depending upon the size, compute the lo and hi bounds.
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h.  */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h.  */
6500 #include <stddef.h>
6501 int
6502 main ()
6503 {
6504 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6505 test_array [0] = 0
6506
6507   ;
6508   return 0;
6509 }
6510 _ACEOF
6511 rm -f conftest.$ac_objext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513   (eval $ac_compile) 2>conftest.er1
6514   ac_status=$?
6515   grep -v '^ *+' conftest.er1 >conftest.err
6516   rm -f conftest.er1
6517   cat conftest.err >&5
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); } &&
6520          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522   (eval $ac_try) 2>&5
6523   ac_status=$?
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); }; } &&
6526          { ac_try='test -s conftest.$ac_objext'
6527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528   (eval $ac_try) 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }; }; then
6532   ac_lo=0 ac_mid=0
6533   while :; do
6534     cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h.  */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h.  */
6540 #include <stddef.h>
6541 int
6542 main ()
6543 {
6544 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6545 test_array [0] = 0
6546
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6553   (eval $ac_compile) 2>conftest.er1
6554   ac_status=$?
6555   grep -v '^ *+' conftest.er1 >conftest.err
6556   rm -f conftest.er1
6557   cat conftest.err >&5
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); } &&
6560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562   (eval $ac_try) 2>&5
6563   ac_status=$?
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); }; } &&
6566          { ac_try='test -s conftest.$ac_objext'
6567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568   (eval $ac_try) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); }; }; then
6572   ac_hi=$ac_mid; break
6573 else
6574   echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 ac_lo=`expr $ac_mid + 1`
6578                     if test $ac_lo -le $ac_mid; then
6579                       ac_lo= ac_hi=
6580                       break
6581                     fi
6582                     ac_mid=`expr 2 '*' $ac_mid + 1`
6583 fi
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585   done
6586 else
6587   echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6589
6590 cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h.  */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h.  */
6596 #include <stddef.h>
6597 int
6598 main ()
6599 {
6600 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6601 test_array [0] = 0
6602
6603   ;
6604   return 0;
6605 }
6606 _ACEOF
6607 rm -f conftest.$ac_objext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6609   (eval $ac_compile) 2>conftest.er1
6610   ac_status=$?
6611   grep -v '^ *+' conftest.er1 >conftest.err
6612   rm -f conftest.er1
6613   cat conftest.err >&5
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); } &&
6616          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; } &&
6622          { ac_try='test -s conftest.$ac_objext'
6623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624   (eval $ac_try) 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); }; }; then
6628   ac_hi=-1 ac_mid=-1
6629   while :; do
6630     cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h.  */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h.  */
6636 #include <stddef.h>
6637 int
6638 main ()
6639 {
6640 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6641 test_array [0] = 0
6642
6643   ;
6644   return 0;
6645 }
6646 _ACEOF
6647 rm -f conftest.$ac_objext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649   (eval $ac_compile) 2>conftest.er1
6650   ac_status=$?
6651   grep -v '^ *+' conftest.er1 >conftest.err
6652   rm -f conftest.er1
6653   cat conftest.err >&5
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); } &&
6656          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658   (eval $ac_try) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }; } &&
6662          { ac_try='test -s conftest.$ac_objext'
6663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664   (eval $ac_try) 2>&5
6665   ac_status=$?
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); }; }; then
6668   ac_lo=$ac_mid; break
6669 else
6670   echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6672
6673 ac_hi=`expr '(' $ac_mid ')' - 1`
6674                        if test $ac_mid -le $ac_hi; then
6675                          ac_lo= ac_hi=
6676                          break
6677                        fi
6678                        ac_mid=`expr 2 '*' $ac_mid`
6679 fi
6680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6681   done
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686 ac_lo= ac_hi=
6687 fi
6688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6689 fi
6690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 # Binary search between lo and hi bounds.
6692 while test "x$ac_lo" != "x$ac_hi"; do
6693   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6694   cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h.  */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h.  */
6700 #include <stddef.h>
6701 int
6702 main ()
6703 {
6704 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6705 test_array [0] = 0
6706
6707   ;
6708   return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713   (eval $ac_compile) 2>conftest.er1
6714   ac_status=$?
6715   grep -v '^ *+' conftest.er1 >conftest.err
6716   rm -f conftest.er1
6717   cat conftest.err >&5
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); } &&
6720          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722   (eval $ac_try) 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); }; } &&
6726          { ac_try='test -s conftest.$ac_objext'
6727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728   (eval $ac_try) 2>&5
6729   ac_status=$?
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); }; }; then
6732   ac_hi=$ac_mid
6733 else
6734   echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6736
6737 ac_lo=`expr '(' $ac_mid ')' + 1`
6738 fi
6739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6740 done
6741 case $ac_lo in
6742 ?*) res_lo=$ac_lo;;
6743 '') result=? ;;
6744 esac
6745 else
6746   if test "$cross_compiling" = yes; then
6747   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6748 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6749    { (exit 1); exit 1; }; }
6750 else
6751   cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h.  */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h.  */
6757 #include <stddef.h>
6758 long longval () { return ~(size_t)0 % 10; }
6759 unsigned long ulongval () { return ~(size_t)0 % 10; }
6760 #include <stdio.h>
6761 #include <stdlib.h>
6762 int
6763 main ()
6764 {
6765
6766   FILE *f = fopen ("conftest.val", "w");
6767   if (! f)
6768     exit (1);
6769   if ((~(size_t)0 % 10) < 0)
6770     {
6771       long i = longval ();
6772       if (i != (~(size_t)0 % 10))
6773         exit (1);
6774       fprintf (f, "%ld\n", i);
6775     }
6776   else
6777     {
6778       unsigned long i = ulongval ();
6779       if (i != (~(size_t)0 % 10))
6780         exit (1);
6781       fprintf (f, "%lu\n", i);
6782     }
6783   exit (ferror (f) || fclose (f) != 0);
6784
6785   ;
6786   return 0;
6787 }
6788 _ACEOF
6789 rm -f conftest$ac_exeext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791   (eval $ac_link) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796   (eval $ac_try) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); }; }; then
6800   res_lo=`cat conftest.val`
6801 else
6802   echo "$as_me: program exited with status $ac_status" >&5
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6805
6806 ( exit $ac_status )
6807 result=?
6808 fi
6809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6810 fi
6811 fi
6812 rm -f conftest.val
6813     if test "$cross_compiling" = yes; then
6814   # Depending upon the size, compute the lo and hi bounds.
6815 cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h.  */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h.  */
6821 #include <stddef.h>
6822 int
6823 main ()
6824 {
6825 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6826 test_array [0] = 0
6827
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834   (eval $ac_compile) 2>conftest.er1
6835   ac_status=$?
6836   grep -v '^ *+' conftest.er1 >conftest.err
6837   rm -f conftest.er1
6838   cat conftest.err >&5
6839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840   (exit $ac_status); } &&
6841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843   (eval $ac_try) 2>&5
6844   ac_status=$?
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); }; } &&
6847          { ac_try='test -s conftest.$ac_objext'
6848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849   (eval $ac_try) 2>&5
6850   ac_status=$?
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); }; }; then
6853   ac_lo=0 ac_mid=0
6854   while :; do
6855     cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h.  */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h.  */
6861 #include <stddef.h>
6862 int
6863 main ()
6864 {
6865 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6866 test_array [0] = 0
6867
6868   ;
6869   return 0;
6870 }
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874   (eval $ac_compile) 2>conftest.er1
6875   ac_status=$?
6876   grep -v '^ *+' conftest.er1 >conftest.err
6877   rm -f conftest.er1
6878   cat conftest.err >&5
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); } &&
6881          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883   (eval $ac_try) 2>&5
6884   ac_status=$?
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); }; } &&
6887          { ac_try='test -s conftest.$ac_objext'
6888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889   (eval $ac_try) 2>&5
6890   ac_status=$?
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); }; }; then
6893   ac_hi=$ac_mid; break
6894 else
6895   echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898 ac_lo=`expr $ac_mid + 1`
6899                     if test $ac_lo -le $ac_mid; then
6900                       ac_lo= ac_hi=
6901                       break
6902                     fi
6903                     ac_mid=`expr 2 '*' $ac_mid + 1`
6904 fi
6905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6906   done
6907 else
6908   echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h.  */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h.  */
6917 #include <stddef.h>
6918 int
6919 main ()
6920 {
6921 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
6922 test_array [0] = 0
6923
6924   ;
6925   return 0;
6926 }
6927 _ACEOF
6928 rm -f conftest.$ac_objext
6929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6930   (eval $ac_compile) 2>conftest.er1
6931   ac_status=$?
6932   grep -v '^ *+' conftest.er1 >conftest.err
6933   rm -f conftest.er1
6934   cat conftest.err >&5
6935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936   (exit $ac_status); } &&
6937          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939   (eval $ac_try) 2>&5
6940   ac_status=$?
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); }; } &&
6943          { ac_try='test -s conftest.$ac_objext'
6944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945   (eval $ac_try) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); }; }; then
6949   ac_hi=-1 ac_mid=-1
6950   while :; do
6951     cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h.  */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h.  */
6957 #include <stddef.h>
6958 int
6959 main ()
6960 {
6961 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
6962 test_array [0] = 0
6963
6964   ;
6965   return 0;
6966 }
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970   (eval $ac_compile) 2>conftest.er1
6971   ac_status=$?
6972   grep -v '^ *+' conftest.er1 >conftest.err
6973   rm -f conftest.er1
6974   cat conftest.err >&5
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); } &&
6977          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979   (eval $ac_try) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; } &&
6983          { ac_try='test -s conftest.$ac_objext'
6984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985   (eval $ac_try) 2>&5
6986   ac_status=$?
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); }; }; then
6989   ac_lo=$ac_mid; break
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 ac_hi=`expr '(' $ac_mid ')' - 1`
6995                        if test $ac_mid -le $ac_hi; then
6996                          ac_lo= ac_hi=
6997                          break
6998                        fi
6999                        ac_mid=`expr 2 '*' $ac_mid`
7000 fi
7001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7002   done
7003 else
7004   echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007 ac_lo= ac_hi=
7008 fi
7009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7010 fi
7011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7012 # Binary search between lo and hi bounds.
7013 while test "x$ac_lo" != "x$ac_hi"; do
7014   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7015   cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h.  */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h.  */
7021 #include <stddef.h>
7022 int
7023 main ()
7024 {
7025 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7026 test_array [0] = 0
7027
7028   ;
7029   return 0;
7030 }
7031 _ACEOF
7032 rm -f conftest.$ac_objext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034   (eval $ac_compile) 2>conftest.er1
7035   ac_status=$?
7036   grep -v '^ *+' conftest.er1 >conftest.err
7037   rm -f conftest.er1
7038   cat conftest.err >&5
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); } &&
7041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043   (eval $ac_try) 2>&5
7044   ac_status=$?
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); }; } &&
7047          { ac_try='test -s conftest.$ac_objext'
7048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049   (eval $ac_try) 2>&5
7050   ac_status=$?
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); }; }; then
7053   ac_hi=$ac_mid
7054 else
7055   echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7057
7058 ac_lo=`expr '(' $ac_mid ')' + 1`
7059 fi
7060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7061 done
7062 case $ac_lo in
7063 ?*) fits_in_uint=$ac_lo;;
7064 '') result=? ;;
7065 esac
7066 else
7067   if test "$cross_compiling" = yes; then
7068   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7069 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7070    { (exit 1); exit 1; }; }
7071 else
7072   cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h.  */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h.  */
7078 #include <stddef.h>
7079 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7080 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7081 #include <stdio.h>
7082 #include <stdlib.h>
7083 int
7084 main ()
7085 {
7086
7087   FILE *f = fopen ("conftest.val", "w");
7088   if (! f)
7089     exit (1);
7090   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7091     {
7092       long i = longval ();
7093       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7094         exit (1);
7095       fprintf (f, "%ld\n", i);
7096     }
7097   else
7098     {
7099       unsigned long i = ulongval ();
7100       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7101         exit (1);
7102       fprintf (f, "%lu\n", i);
7103     }
7104   exit (ferror (f) || fclose (f) != 0);
7105
7106   ;
7107   return 0;
7108 }
7109 _ACEOF
7110 rm -f conftest$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112   (eval $ac_link) 2>&5
7113   ac_status=$?
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117   (eval $ac_try) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); }; }; then
7121   fits_in_uint=`cat conftest.val`
7122 else
7123   echo "$as_me: program exited with status $ac_status" >&5
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7126
7127 ( exit $ac_status )
7128 result=?
7129 fi
7130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7131 fi
7132 fi
7133 rm -f conftest.val
7134     if test "$fits_in_uint" = 1; then
7135                   cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h.  */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h.  */
7141 #include <stddef.h>
7142         extern size_t foo;
7143         extern unsigned long foo;
7144
7145 int
7146 main ()
7147 {
7148
7149   ;
7150   return 0;
7151 }
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7155   (eval $ac_compile) 2>conftest.er1
7156   ac_status=$?
7157   grep -v '^ *+' conftest.er1 >conftest.err
7158   rm -f conftest.er1
7159   cat conftest.err >&5
7160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161   (exit $ac_status); } &&
7162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164   (eval $ac_try) 2>&5
7165   ac_status=$?
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); }; } &&
7168          { ac_try='test -s conftest.$ac_objext'
7169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170   (eval $ac_try) 2>&5
7171   ac_status=$?
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); }; }; then
7174   fits_in_uint=0
7175 else
7176   echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 fi
7180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7181     fi
7182     if test -z "$result"; then
7183       if test "$fits_in_uint" = 1; then
7184         result="$res_hi$res_lo"U
7185       else
7186         result="$res_hi$res_lo"UL
7187       fi
7188     else
7189             result='~(size_t)0'
7190     fi
7191   fi
7192   echo "$as_me:$LINENO: result: $result" >&5
7193 echo "${ECHO_T}$result" >&6
7194   if test "$result" != yes; then
7195
7196 cat >>confdefs.h <<_ACEOF
7197 #define SIZE_MAX $result
7198 _ACEOF
7199
7200   fi
7201
7202
7203
7204
7205
7206 for ac_header in stdint.h
7207 do
7208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7210   echo "$as_me:$LINENO: checking for $ac_header" >&5
7211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 fi
7215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217 else
7218   # Is the header compilable?
7219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h.  */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h.  */
7227 $ac_includes_default
7228 #include <$ac_header>
7229 _ACEOF
7230 rm -f conftest.$ac_objext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232   (eval $ac_compile) 2>conftest.er1
7233   ac_status=$?
7234   grep -v '^ *+' conftest.er1 >conftest.err
7235   rm -f conftest.er1
7236   cat conftest.err >&5
7237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238   (exit $ac_status); } &&
7239          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241   (eval $ac_try) 2>&5
7242   ac_status=$?
7243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); }; } &&
7245          { ac_try='test -s conftest.$ac_objext'
7246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247   (eval $ac_try) 2>&5
7248   ac_status=$?
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); }; }; then
7251   ac_header_compiler=yes
7252 else
7253   echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256 ac_header_compiler=no
7257 fi
7258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7260 echo "${ECHO_T}$ac_header_compiler" >&6
7261
7262 # Is the header present?
7263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h.  */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h.  */
7271 #include <$ac_header>
7272 _ACEOF
7273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7275   ac_status=$?
7276   grep -v '^ *+' conftest.er1 >conftest.err
7277   rm -f conftest.er1
7278   cat conftest.err >&5
7279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); } >/dev/null; then
7281   if test -s conftest.err; then
7282     ac_cpp_err=$ac_c_preproc_warn_flag
7283     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7284   else
7285     ac_cpp_err=
7286   fi
7287 else
7288   ac_cpp_err=yes
7289 fi
7290 if test -z "$ac_cpp_err"; then
7291   ac_header_preproc=yes
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296   ac_header_preproc=no
7297 fi
7298 rm -f conftest.err conftest.$ac_ext
7299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7300 echo "${ECHO_T}$ac_header_preproc" >&6
7301
7302 # So?  What about this header?
7303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7304   yes:no: )
7305     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7309     ac_header_preproc=yes
7310     ;;
7311   no:yes:* )
7312     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7314     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7315 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7316     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7318     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7319 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7322     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7324     (
7325       cat <<\_ASBOX
7326 ## ------------------------------------------ ##
7327 ## Report this to the AC_PACKAGE_NAME lists.  ##
7328 ## ------------------------------------------ ##
7329 _ASBOX
7330     ) |
7331       sed "s/^/$as_me: WARNING:     /" >&2
7332     ;;
7333 esac
7334 echo "$as_me:$LINENO: checking for $ac_header" >&5
7335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   eval "$as_ac_Header=\$ac_header_preproc"
7340 fi
7341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7343
7344 fi
7345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7346   cat >>confdefs.h <<_ACEOF
7347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7348 _ACEOF
7349
7350 fi
7351
7352 done
7353
7354
7355
7356     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
7357 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
7358 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   gt_save_CPPFLAGS="$CPPFLAGS"
7362      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7363      gt_save_LIBS="$LIBS"
7364      LIBS="$LIBS -framework CoreFoundation"
7365      cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h.  */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h.  */
7371 #include <CFPreferences.h>
7372 int
7373 main ()
7374 {
7375 CFPreferencesCopyAppValue(NULL, NULL)
7376   ;
7377   return 0;
7378 }
7379 _ACEOF
7380 rm -f conftest.$ac_objext conftest$ac_exeext
7381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7382   (eval $ac_link) 2>conftest.er1
7383   ac_status=$?
7384   grep -v '^ *+' conftest.er1 >conftest.err
7385   rm -f conftest.er1
7386   cat conftest.err >&5
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); } &&
7389          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391   (eval $ac_try) 2>&5
7392   ac_status=$?
7393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394   (exit $ac_status); }; } &&
7395          { ac_try='test -s conftest$ac_exeext'
7396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397   (eval $ac_try) 2>&5
7398   ac_status=$?
7399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400   (exit $ac_status); }; }; then
7401   gt_cv_func_CFPreferencesCopyAppValue=yes
7402 else
7403   echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7405
7406 gt_cv_func_CFPreferencesCopyAppValue=no
7407 fi
7408 rm -f conftest.err conftest.$ac_objext \
7409       conftest$ac_exeext conftest.$ac_ext
7410      CPPFLAGS="$gt_save_CPPFLAGS"
7411      LIBS="$gt_save_LIBS"
7412 fi
7413 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7414 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
7415   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7416
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
7419 _ACEOF
7420
7421   fi
7422     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
7423 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
7424 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   gt_save_CPPFLAGS="$CPPFLAGS"
7428      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7429      gt_save_LIBS="$LIBS"
7430      LIBS="$LIBS -framework CoreFoundation"
7431      cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h.  */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h.  */
7437 #include <CFLocale.h>
7438 int
7439 main ()
7440 {
7441 CFLocaleCopyCurrent();
7442   ;
7443   return 0;
7444 }
7445 _ACEOF
7446 rm -f conftest.$ac_objext conftest$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448   (eval $ac_link) 2>conftest.er1
7449   ac_status=$?
7450   grep -v '^ *+' conftest.er1 >conftest.err
7451   rm -f conftest.er1
7452   cat conftest.err >&5
7453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454   (exit $ac_status); } &&
7455          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457   (eval $ac_try) 2>&5
7458   ac_status=$?
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); }; } &&
7461          { ac_try='test -s conftest$ac_exeext'
7462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463   (eval $ac_try) 2>&5
7464   ac_status=$?
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); }; }; then
7467   gt_cv_func_CFLocaleCopyCurrent=yes
7468 else
7469   echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7471
7472 gt_cv_func_CFLocaleCopyCurrent=no
7473 fi
7474 rm -f conftest.err conftest.$ac_objext \
7475       conftest$ac_exeext conftest.$ac_ext
7476      CPPFLAGS="$gt_save_CPPFLAGS"
7477      LIBS="$gt_save_LIBS"
7478 fi
7479 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7480 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
7481   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7482
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_CFLOCALECOPYCURRENT 1
7485 _ACEOF
7486
7487   fi
7488   INTL_MACOSX_LIBS=
7489   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7490     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7491   fi
7492
7493
7494
7495       if test "X$prefix" = "XNONE"; then
7496     acl_final_prefix="$ac_default_prefix"
7497   else
7498     acl_final_prefix="$prefix"
7499   fi
7500   if test "X$exec_prefix" = "XNONE"; then
7501     acl_final_exec_prefix='${prefix}'
7502   else
7503     acl_final_exec_prefix="$exec_prefix"
7504   fi
7505   acl_save_prefix="$prefix"
7506   prefix="$acl_final_prefix"
7507   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7508   prefix="$acl_save_prefix"
7509
7510
7511 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7512 if test "${with_gnu_ld+set}" = set; then
7513   withval="$with_gnu_ld"
7514   test "$withval" = no || with_gnu_ld=yes
7515 else
7516   with_gnu_ld=no
7517 fi;
7518 # Prepare PATH_SEPARATOR.
7519 # The user is always right.
7520 if test "${PATH_SEPARATOR+set}" != set; then
7521   echo "#! /bin/sh" >conf$$.sh
7522   echo  "exit 0"   >>conf$$.sh
7523   chmod +x conf$$.sh
7524   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7525     PATH_SEPARATOR=';'
7526   else
7527     PATH_SEPARATOR=:
7528   fi
7529   rm -f conf$$.sh
7530 fi
7531 ac_prog=ld
7532 if test "$GCC" = yes; then
7533   # Check if gcc -print-prog-name=ld gives a path.
7534   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7535 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7536   case $host in
7537   *-*-mingw*)
7538     # gcc leaves a trailing carriage return which upsets mingw
7539     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7540   *)
7541     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7542   esac
7543   case $ac_prog in
7544     # Accept absolute paths.
7545     [\\/]* | [A-Za-z]:[\\/]*)
7546       re_direlt='/[^/][^/]*/\.\./'
7547       # Canonicalize the path of ld
7548       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7549       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7550         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7551       done
7552       test -z "$LD" && LD="$ac_prog"
7553       ;;
7554   "")
7555     # If it fails, then pretend we aren't using GCC.
7556     ac_prog=ld
7557     ;;
7558   *)
7559     # If it is relative, then search for the first ld in PATH.
7560     with_gnu_ld=unknown
7561     ;;
7562   esac
7563 elif test "$with_gnu_ld" = yes; then
7564   echo "$as_me:$LINENO: checking for GNU ld" >&5
7565 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7566 else
7567   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7568 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7569 fi
7570 if test "${acl_cv_path_LD+set}" = set; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573   if test -z "$LD"; then
7574   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7575   for ac_dir in $PATH; do
7576     test -z "$ac_dir" && ac_dir=.
7577     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7578       acl_cv_path_LD="$ac_dir/$ac_prog"
7579       # Check to see if the program is GNU ld.  I'd rather use --version,
7580       # but apparently some GNU ld's only accept -v.
7581       # Break only if it was the GNU/non-GNU ld that we prefer.
7582       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7583       *GNU* | *'with BFD'*)
7584         test "$with_gnu_ld" != no && break ;;
7585       *)
7586         test "$with_gnu_ld" != yes && break ;;
7587       esac
7588     fi
7589   done
7590   IFS="$ac_save_ifs"
7591 else
7592   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7593 fi
7594 fi
7595
7596 LD="$acl_cv_path_LD"
7597 if test -n "$LD"; then
7598   echo "$as_me:$LINENO: result: $LD" >&5
7599 echo "${ECHO_T}$LD" >&6
7600 else
7601   echo "$as_me:$LINENO: result: no" >&5
7602 echo "${ECHO_T}no" >&6
7603 fi
7604 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7605 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7606    { (exit 1); exit 1; }; }
7607 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7608 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7609 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7610   echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7613 case `$LD -v 2>&1 </dev/null` in
7614 *GNU* | *'with BFD'*)
7615   acl_cv_prog_gnu_ld=yes ;;
7616 *)
7617   acl_cv_prog_gnu_ld=no ;;
7618 esac
7619 fi
7620 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7621 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7622 with_gnu_ld=$acl_cv_prog_gnu_ld
7623
7624
7625
7626
7627                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7628 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7629 if test "${acl_cv_rpath+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632
7633     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7634     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7635     . ./conftest.sh
7636     rm -f ./conftest.sh
7637     acl_cv_rpath=done
7638
7639 fi
7640 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7641 echo "${ECHO_T}$acl_cv_rpath" >&6
7642   wl="$acl_cv_wl"
7643   libext="$acl_cv_libext"
7644   shlibext="$acl_cv_shlibext"
7645   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7646   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7647   hardcode_direct="$acl_cv_hardcode_direct"
7648   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7649     # Check whether --enable-rpath or --disable-rpath was given.
7650 if test "${enable_rpath+set}" = set; then
7651   enableval="$enable_rpath"
7652   :
7653 else
7654   enable_rpath=yes
7655 fi;
7656
7657
7658
7659
7660
7661
7662
7663     use_additional=yes
7664
7665   acl_save_prefix="$prefix"
7666   prefix="$acl_final_prefix"
7667   acl_save_exec_prefix="$exec_prefix"
7668   exec_prefix="$acl_final_exec_prefix"
7669
7670     eval additional_includedir=\"$includedir\"
7671     eval additional_libdir=\"$libdir\"
7672
7673   exec_prefix="$acl_save_exec_prefix"
7674   prefix="$acl_save_prefix"
7675
7676
7677 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7678 if test "${with_libiconv_prefix+set}" = set; then
7679   withval="$with_libiconv_prefix"
7680
7681     if test "X$withval" = "Xno"; then
7682       use_additional=no
7683     else
7684       if test "X$withval" = "X"; then
7685
7686   acl_save_prefix="$prefix"
7687   prefix="$acl_final_prefix"
7688   acl_save_exec_prefix="$exec_prefix"
7689   exec_prefix="$acl_final_exec_prefix"
7690
7691           eval additional_includedir=\"$includedir\"
7692           eval additional_libdir=\"$libdir\"
7693
7694   exec_prefix="$acl_save_exec_prefix"
7695   prefix="$acl_save_prefix"
7696
7697       else
7698         additional_includedir="$withval/include"
7699         additional_libdir="$withval/lib"
7700       fi
7701     fi
7702
7703 fi;
7704       LIBICONV=
7705   LTLIBICONV=
7706   INCICONV=
7707   rpathdirs=
7708   ltrpathdirs=
7709   names_already_handled=
7710   names_next_round='iconv '
7711   while test -n "$names_next_round"; do
7712     names_this_round="$names_next_round"
7713     names_next_round=
7714     for name in $names_this_round; do
7715       already_handled=
7716       for n in $names_already_handled; do
7717         if test "$n" = "$name"; then
7718           already_handled=yes
7719           break
7720         fi
7721       done
7722       if test -z "$already_handled"; then
7723         names_already_handled="$names_already_handled $name"
7724                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7725         eval value=\"\$HAVE_LIB$uppername\"
7726         if test -n "$value"; then
7727           if test "$value" = yes; then
7728             eval value=\"\$LIB$uppername\"
7729             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7730             eval value=\"\$LTLIB$uppername\"
7731             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7732           else
7733                                     :
7734           fi
7735         else
7736                               found_dir=
7737           found_la=
7738           found_so=
7739           found_a=
7740           if test $use_additional = yes; then
7741             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7742               found_dir="$additional_libdir"
7743               found_so="$additional_libdir/lib$name.$shlibext"
7744               if test -f "$additional_libdir/lib$name.la"; then
7745                 found_la="$additional_libdir/lib$name.la"
7746               fi
7747             else
7748               if test -f "$additional_libdir/lib$name.$libext"; then
7749                 found_dir="$additional_libdir"
7750                 found_a="$additional_libdir/lib$name.$libext"
7751                 if test -f "$additional_libdir/lib$name.la"; then
7752                   found_la="$additional_libdir/lib$name.la"
7753                 fi
7754               fi
7755             fi
7756           fi
7757           if test "X$found_dir" = "X"; then
7758             for x in $LDFLAGS $LTLIBICONV; do
7759
7760   acl_save_prefix="$prefix"
7761   prefix="$acl_final_prefix"
7762   acl_save_exec_prefix="$exec_prefix"
7763   exec_prefix="$acl_final_exec_prefix"
7764   eval x=\"$x\"
7765   exec_prefix="$acl_save_exec_prefix"
7766   prefix="$acl_save_prefix"
7767
7768               case "$x" in
7769                 -L*)
7770                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7771                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7772                     found_dir="$dir"
7773                     found_so="$dir/lib$name.$shlibext"
7774                     if test -f "$dir/lib$name.la"; then
7775                       found_la="$dir/lib$name.la"
7776                     fi
7777                   else
7778                     if test -f "$dir/lib$name.$libext"; then
7779                       found_dir="$dir"
7780                       found_a="$dir/lib$name.$libext"
7781                       if test -f "$dir/lib$name.la"; then
7782                         found_la="$dir/lib$name.la"
7783                       fi
7784                     fi
7785                   fi
7786                   ;;
7787               esac
7788               if test "X$found_dir" != "X"; then
7789                 break
7790               fi
7791             done
7792           fi
7793           if test "X$found_dir" != "X"; then
7794                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7795             if test "X$found_so" != "X"; then
7796                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7797                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7798               else
7799                                                                                 haveit=
7800                 for x in $ltrpathdirs; do
7801                   if test "X$x" = "X$found_dir"; then
7802                     haveit=yes
7803                     break
7804                   fi
7805                 done
7806                 if test -z "$haveit"; then
7807                   ltrpathdirs="$ltrpathdirs $found_dir"
7808                 fi
7809                                 if test "$hardcode_direct" = yes; then
7810                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7811                 else
7812                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7813                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7814                                                             haveit=
7815                     for x in $rpathdirs; do
7816                       if test "X$x" = "X$found_dir"; then
7817                         haveit=yes
7818                         break
7819                       fi
7820                     done
7821                     if test -z "$haveit"; then
7822                       rpathdirs="$rpathdirs $found_dir"
7823                     fi
7824                   else
7825                                                                                 haveit=
7826                     for x in $LDFLAGS $LIBICONV; do
7827
7828   acl_save_prefix="$prefix"
7829   prefix="$acl_final_prefix"
7830   acl_save_exec_prefix="$exec_prefix"
7831   exec_prefix="$acl_final_exec_prefix"
7832   eval x=\"$x\"
7833   exec_prefix="$acl_save_exec_prefix"
7834   prefix="$acl_save_prefix"
7835
7836                       if test "X$x" = "X-L$found_dir"; then
7837                         haveit=yes
7838                         break
7839                       fi
7840                     done
7841                     if test -z "$haveit"; then
7842                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7843                     fi
7844                     if test "$hardcode_minus_L" != no; then
7845                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7846                     else
7847                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7848                     fi
7849                   fi
7850                 fi
7851               fi
7852             else
7853               if test "X$found_a" != "X"; then
7854                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7855               else
7856                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7857               fi
7858             fi
7859                         additional_includedir=
7860             case "$found_dir" in
7861               */lib | */lib/)
7862                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7863                 additional_includedir="$basedir/include"
7864                 ;;
7865             esac
7866             if test "X$additional_includedir" != "X"; then
7867                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7868                 haveit=
7869                 if test "X$additional_includedir" = "X/usr/local/include"; then
7870                   if test -n "$GCC"; then
7871                     case $host_os in
7872                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7873                     esac
7874                   fi
7875                 fi
7876                 if test -z "$haveit"; then
7877                   for x in $CPPFLAGS $INCICONV; do
7878
7879   acl_save_prefix="$prefix"
7880   prefix="$acl_final_prefix"
7881   acl_save_exec_prefix="$exec_prefix"
7882   exec_prefix="$acl_final_exec_prefix"
7883   eval x=\"$x\"
7884   exec_prefix="$acl_save_exec_prefix"
7885   prefix="$acl_save_prefix"
7886
7887                     if test "X$x" = "X-I$additional_includedir"; then
7888                       haveit=yes
7889                       break
7890                     fi
7891                   done
7892                   if test -z "$haveit"; then
7893                     if test -d "$additional_includedir"; then
7894                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7895                     fi
7896                   fi
7897                 fi
7898               fi
7899             fi
7900                         if test -n "$found_la"; then
7901                                                         save_libdir="$libdir"
7902               case "$found_la" in
7903                 */* | *\\*) . "$found_la" ;;
7904                 *) . "./$found_la" ;;
7905               esac
7906               libdir="$save_libdir"
7907                             for dep in $dependency_libs; do
7908                 case "$dep" in
7909                   -L*)
7910                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7911                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7912                       haveit=
7913                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7914                         if test -n "$GCC"; then
7915                           case $host_os in
7916                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7917                           esac
7918                         fi
7919                       fi
7920                       if test -z "$haveit"; then
7921                         haveit=
7922                         for x in $LDFLAGS $LIBICONV; do
7923
7924   acl_save_prefix="$prefix"
7925   prefix="$acl_final_prefix"
7926   acl_save_exec_prefix="$exec_prefix"
7927   exec_prefix="$acl_final_exec_prefix"
7928   eval x=\"$x\"
7929   exec_prefix="$acl_save_exec_prefix"
7930   prefix="$acl_save_prefix"
7931
7932                           if test "X$x" = "X-L$additional_libdir"; then
7933                             haveit=yes
7934                             break
7935                           fi
7936                         done
7937                         if test -z "$haveit"; then
7938                           if test -d "$additional_libdir"; then
7939                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7940                           fi
7941                         fi
7942                         haveit=
7943                         for x in $LDFLAGS $LTLIBICONV; do
7944
7945   acl_save_prefix="$prefix"
7946   prefix="$acl_final_prefix"
7947   acl_save_exec_prefix="$exec_prefix"
7948   exec_prefix="$acl_final_exec_prefix"
7949   eval x=\"$x\"
7950   exec_prefix="$acl_save_exec_prefix"
7951   prefix="$acl_save_prefix"
7952
7953                           if test "X$x" = "X-L$additional_libdir"; then
7954                             haveit=yes
7955                             break
7956                           fi
7957                         done
7958                         if test -z "$haveit"; then
7959                           if test -d "$additional_libdir"; then
7960                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7961                           fi
7962                         fi
7963                       fi
7964                     fi
7965                     ;;
7966                   -R*)
7967                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7968                     if test "$enable_rpath" != no; then
7969                                                                   haveit=
7970                       for x in $rpathdirs; do
7971                         if test "X$x" = "X$dir"; then
7972                           haveit=yes
7973                           break
7974                         fi
7975                       done
7976                       if test -z "$haveit"; then
7977                         rpathdirs="$rpathdirs $dir"
7978                       fi
7979                                                                   haveit=
7980                       for x in $ltrpathdirs; do
7981                         if test "X$x" = "X$dir"; then
7982                           haveit=yes
7983                           break
7984                         fi
7985                       done
7986                       if test -z "$haveit"; then
7987                         ltrpathdirs="$ltrpathdirs $dir"
7988                       fi
7989                     fi
7990                     ;;
7991                   -l*)
7992                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7993                     ;;
7994                   *.la)
7995                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7996                     ;;
7997                   *)
7998                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7999                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8000                     ;;
8001                 esac
8002               done
8003             fi
8004           else
8005                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8006             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8007           fi
8008         fi
8009       fi
8010     done
8011   done
8012   if test "X$rpathdirs" != "X"; then
8013     if test -n "$hardcode_libdir_separator"; then
8014                         alldirs=
8015       for found_dir in $rpathdirs; do
8016         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8017       done
8018             acl_save_libdir="$libdir"
8019       libdir="$alldirs"
8020       eval flag=\"$hardcode_libdir_flag_spec\"
8021       libdir="$acl_save_libdir"
8022       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8023     else
8024             for found_dir in $rpathdirs; do
8025         acl_save_libdir="$libdir"
8026         libdir="$found_dir"
8027         eval flag=\"$hardcode_libdir_flag_spec\"
8028         libdir="$acl_save_libdir"
8029         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8030       done
8031     fi
8032   fi
8033   if test "X$ltrpathdirs" != "X"; then
8034             for found_dir in $ltrpathdirs; do
8035       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8036     done
8037   fi
8038
8039
8040
8041
8042
8043
8044
8045
8046   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8047 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8048 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051   cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057 $ac_includes_default
8058 int
8059 main ()
8060 {
8061 if ((ptrdiff_t *) 0)
8062   return 0;
8063 if (sizeof (ptrdiff_t))
8064   return 0;
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8071   (eval $ac_compile) 2>conftest.er1
8072   ac_status=$?
8073   grep -v '^ *+' conftest.er1 >conftest.err
8074   rm -f conftest.er1
8075   cat conftest.err >&5
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); } &&
8078          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080   (eval $ac_try) 2>&5
8081   ac_status=$?
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); }; } &&
8084          { ac_try='test -s conftest.$ac_objext'
8085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086   (eval $ac_try) 2>&5
8087   ac_status=$?
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); }; }; then
8090   ac_cv_type_ptrdiff_t=yes
8091 else
8092   echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095 ac_cv_type_ptrdiff_t=no
8096 fi
8097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8098 fi
8099 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8100 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8101 if test $ac_cv_type_ptrdiff_t = yes; then
8102   :
8103 else
8104
8105 cat >>confdefs.h <<\_ACEOF
8106 #define ptrdiff_t long
8107 _ACEOF
8108
8109
8110 fi
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8123 stdlib.h string.h unistd.h sys/param.h
8124 do
8125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127   echo "$as_me:$LINENO: checking for $ac_header" >&5
8128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8130   echo $ECHO_N "(cached) $ECHO_C" >&6
8131 fi
8132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8134 else
8135   # Is the header compilable?
8136 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h.  */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h.  */
8144 $ac_includes_default
8145 #include <$ac_header>
8146 _ACEOF
8147 rm -f conftest.$ac_objext
8148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8149   (eval $ac_compile) 2>conftest.er1
8150   ac_status=$?
8151   grep -v '^ *+' conftest.er1 >conftest.err
8152   rm -f conftest.er1
8153   cat conftest.err >&5
8154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); } &&
8156          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158   (eval $ac_try) 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); }; } &&
8162          { ac_try='test -s conftest.$ac_objext'
8163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164   (eval $ac_try) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); }; }; then
8168   ac_header_compiler=yes
8169 else
8170   echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ac_header_compiler=no
8174 fi
8175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8177 echo "${ECHO_T}$ac_header_compiler" >&6
8178
8179 # Is the header present?
8180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h.  */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h.  */
8188 #include <$ac_header>
8189 _ACEOF
8190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8192   ac_status=$?
8193   grep -v '^ *+' conftest.er1 >conftest.err
8194   rm -f conftest.er1
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } >/dev/null; then
8198   if test -s conftest.err; then
8199     ac_cpp_err=$ac_c_preproc_warn_flag
8200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8201   else
8202     ac_cpp_err=
8203   fi
8204 else
8205   ac_cpp_err=yes
8206 fi
8207 if test -z "$ac_cpp_err"; then
8208   ac_header_preproc=yes
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213   ac_header_preproc=no
8214 fi
8215 rm -f conftest.err conftest.$ac_ext
8216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8217 echo "${ECHO_T}$ac_header_preproc" >&6
8218
8219 # So?  What about this header?
8220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8221   yes:no: )
8222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8226     ac_header_preproc=yes
8227     ;;
8228   no:yes:* )
8229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8231     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8232 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8233     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8235     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8236 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8239     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8241     (
8242       cat <<\_ASBOX
8243 ## ------------------------------------------ ##
8244 ## Report this to the AC_PACKAGE_NAME lists.  ##
8245 ## ------------------------------------------ ##
8246 _ASBOX
8247     ) |
8248       sed "s/^/$as_me: WARNING:     /" >&2
8249     ;;
8250 esac
8251 echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254   echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256   eval "$as_ac_Header=\$ac_header_preproc"
8257 fi
8258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8260
8261 fi
8262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8263   cat >>confdefs.h <<_ACEOF
8264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8265 _ACEOF
8266
8267 fi
8268
8269 done
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8295 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8296 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8297 __fsetlocking
8298 do
8299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8300 echo "$as_me:$LINENO: checking for $ac_func" >&5
8301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8302 if eval "test \"\${$as_ac_var+set}\" = set"; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8313 #define $ac_func innocuous_$ac_func
8314
8315 /* System header to define __stub macros and hopefully few prototypes,
8316     which can conflict with char $ac_func (); below.
8317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318     <limits.h> exists even on freestanding compilers.  */
8319
8320 #ifdef __STDC__
8321 # include <limits.h>
8322 #else
8323 # include <assert.h>
8324 #endif
8325
8326 #undef $ac_func
8327
8328 /* Override any gcc2 internal prototype to avoid an error.  */
8329 #ifdef __cplusplus
8330 extern "C"
8331 {
8332 #endif
8333 /* We use char because int might match the return type of a gcc2
8334    builtin and then its argument prototype would still apply.  */
8335 char $ac_func ();
8336 /* The GNU C library defines this for functions which it implements
8337     to always fail with ENOSYS.  Some functions are actually named
8338     something starting with __ and the normal name is an alias.  */
8339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8340 choke me
8341 #else
8342 char (*f) () = $ac_func;
8343 #endif
8344 #ifdef __cplusplus
8345 }
8346 #endif
8347
8348 int
8349 main ()
8350 {
8351 return f != $ac_func;
8352   ;
8353   return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358   (eval $ac_link) 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367   (eval $ac_try) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; } &&
8371          { ac_try='test -s conftest$ac_exeext'
8372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373   (eval $ac_try) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   eval "$as_ac_var=yes"
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 eval "$as_ac_var=no"
8383 fi
8384 rm -f conftest.err conftest.$ac_objext \
8385       conftest$ac_exeext conftest.$ac_ext
8386 fi
8387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8389 if test `eval echo '${'$as_ac_var'}'` = yes; then
8390   cat >>confdefs.h <<_ACEOF
8391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8392 _ACEOF
8393
8394 fi
8395 done
8396
8397
8398
8399   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8400 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8401 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410 #include <stdio.h>
8411 int
8412 main ()
8413 {
8414
8415 #ifndef _snprintf
8416   char *p = (char *) _snprintf;
8417 #endif
8418
8419   ;
8420   return 0;
8421 }
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425   (eval $ac_compile) 2>conftest.er1
8426   ac_status=$?
8427   grep -v '^ *+' conftest.er1 >conftest.err
8428   rm -f conftest.er1
8429   cat conftest.err >&5
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } &&
8432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434   (eval $ac_try) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); }; } &&
8438          { ac_try='test -s conftest.$ac_objext'
8439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440   (eval $ac_try) 2>&5
8441   ac_status=$?
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); }; }; then
8444   ac_cv_have_decl__snprintf=yes
8445 else
8446   echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ac_cv_have_decl__snprintf=no
8450 fi
8451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8452 fi
8453 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8454 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8455   if test $ac_cv_have_decl__snprintf = yes; then
8456     gt_value=1
8457   else
8458     gt_value=0
8459   fi
8460
8461 cat >>confdefs.h <<_ACEOF
8462 #define HAVE_DECL__SNPRINTF $gt_value
8463 _ACEOF
8464
8465
8466
8467   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8468 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8469 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8470   echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472   cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478 #include <stdio.h>
8479 int
8480 main ()
8481 {
8482
8483 #ifndef _snwprintf
8484   char *p = (char *) _snwprintf;
8485 #endif
8486
8487   ;
8488   return 0;
8489 }
8490 _ACEOF
8491 rm -f conftest.$ac_objext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493   (eval $ac_compile) 2>conftest.er1
8494   ac_status=$?
8495   grep -v '^ *+' conftest.er1 >conftest.err
8496   rm -f conftest.er1
8497   cat conftest.err >&5
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } &&
8500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; } &&
8506          { ac_try='test -s conftest.$ac_objext'
8507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508   (eval $ac_try) 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; }; then
8512   ac_cv_have_decl__snwprintf=yes
8513 else
8514   echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517 ac_cv_have_decl__snwprintf=no
8518 fi
8519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8520 fi
8521 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8522 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8523   if test $ac_cv_have_decl__snwprintf = yes; then
8524     gt_value=1
8525   else
8526     gt_value=0
8527   fi
8528
8529 cat >>confdefs.h <<_ACEOF
8530 #define HAVE_DECL__SNWPRINTF $gt_value
8531 _ACEOF
8532
8533
8534
8535
8536   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8537 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8538 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541   cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h.  */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h.  */
8547 #include <stdio.h>
8548 int
8549 main ()
8550 {
8551
8552 #ifndef feof_unlocked
8553   char *p = (char *) feof_unlocked;
8554 #endif
8555
8556   ;
8557   return 0;
8558 }
8559 _ACEOF
8560 rm -f conftest.$ac_objext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8562   (eval $ac_compile) 2>conftest.er1
8563   ac_status=$?
8564   grep -v '^ *+' conftest.er1 >conftest.err
8565   rm -f conftest.er1
8566   cat conftest.err >&5
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); } &&
8569          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571   (eval $ac_try) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); }; } &&
8575          { ac_try='test -s conftest.$ac_objext'
8576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577   (eval $ac_try) 2>&5
8578   ac_status=$?
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); }; }; then
8581   ac_cv_have_decl_feof_unlocked=yes
8582 else
8583   echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8585
8586 ac_cv_have_decl_feof_unlocked=no
8587 fi
8588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8589 fi
8590 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8591 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8592   if test $ac_cv_have_decl_feof_unlocked = yes; then
8593     gt_value=1
8594   else
8595     gt_value=0
8596   fi
8597
8598 cat >>confdefs.h <<_ACEOF
8599 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8600 _ACEOF
8601
8602
8603
8604   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8605 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8606 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609   cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615 #include <stdio.h>
8616 int
8617 main ()
8618 {
8619
8620 #ifndef fgets_unlocked
8621   char *p = (char *) fgets_unlocked;
8622 #endif
8623
8624   ;
8625   return 0;
8626 }
8627 _ACEOF
8628 rm -f conftest.$ac_objext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630   (eval $ac_compile) 2>conftest.er1
8631   ac_status=$?
8632   grep -v '^ *+' conftest.er1 >conftest.err
8633   rm -f conftest.er1
8634   cat conftest.err >&5
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); } &&
8637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639   (eval $ac_try) 2>&5
8640   ac_status=$?
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); }; } &&
8643          { ac_try='test -s conftest.$ac_objext'
8644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645   (eval $ac_try) 2>&5
8646   ac_status=$?
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); }; }; then
8649   ac_cv_have_decl_fgets_unlocked=yes
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654 ac_cv_have_decl_fgets_unlocked=no
8655 fi
8656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8657 fi
8658 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8659 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8660   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8661     gt_value=1
8662   else
8663     gt_value=0
8664   fi
8665
8666 cat >>confdefs.h <<_ACEOF
8667 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8668 _ACEOF
8669
8670
8671
8672   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8673 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8674 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8675   echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677   cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h.  */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h.  */
8683 #include <stdio.h>
8684 int
8685 main ()
8686 {
8687
8688 #ifndef getc_unlocked
8689   char *p = (char *) getc_unlocked;
8690 #endif
8691
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8698   (eval $ac_compile) 2>conftest.er1
8699   ac_status=$?
8700   grep -v '^ *+' conftest.er1 >conftest.err
8701   rm -f conftest.er1
8702   cat conftest.err >&5
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; } &&
8711          { ac_try='test -s conftest.$ac_objext'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   ac_cv_have_decl_getc_unlocked=yes
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 ac_cv_have_decl_getc_unlocked=no
8723 fi
8724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8725 fi
8726 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8727 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8728   if test $ac_cv_have_decl_getc_unlocked = yes; then
8729     gt_value=1
8730   else
8731     gt_value=0
8732   fi
8733
8734 cat >>confdefs.h <<_ACEOF
8735 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8736 _ACEOF
8737
8738
8739
8740   case $gt_cv_func_printf_posix in
8741     *yes) HAVE_POSIX_PRINTF=1 ;;
8742     *) HAVE_POSIX_PRINTF=0 ;;
8743   esac
8744
8745   if test "$ac_cv_func_asprintf" = yes; then
8746     HAVE_ASPRINTF=1
8747   else
8748     HAVE_ASPRINTF=0
8749   fi
8750
8751   if test "$ac_cv_func_snprintf" = yes; then
8752     HAVE_SNPRINTF=1
8753   else
8754     HAVE_SNPRINTF=0
8755   fi
8756
8757   if test "$ac_cv_func_wprintf" = yes; then
8758     HAVE_WPRINTF=1
8759   else
8760     HAVE_WPRINTF=0
8761   fi
8762
8763
8764
8765
8766
8767
8768
8769           am_save_CPPFLAGS="$CPPFLAGS"
8770
8771   for element in $INCICONV; do
8772     haveit=
8773     for x in $CPPFLAGS; do
8774
8775   acl_save_prefix="$prefix"
8776   prefix="$acl_final_prefix"
8777   acl_save_exec_prefix="$exec_prefix"
8778   exec_prefix="$acl_final_exec_prefix"
8779   eval x=\"$x\"
8780   exec_prefix="$acl_save_exec_prefix"
8781   prefix="$acl_save_prefix"
8782
8783       if test "X$x" = "X$element"; then
8784         haveit=yes
8785         break
8786       fi
8787     done
8788     if test -z "$haveit"; then
8789       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8790     fi
8791   done
8792
8793
8794   echo "$as_me:$LINENO: checking for iconv" >&5
8795 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8796 if test "${am_cv_func_iconv+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799
8800     am_cv_func_iconv="no, consider installing GNU libiconv"
8801     am_cv_lib_iconv=no
8802     cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h.  */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h.  */
8808 #include <stdlib.h>
8809 #include <iconv.h>
8810 int
8811 main ()
8812 {
8813 iconv_t cd = iconv_open("","");
8814        iconv(cd,NULL,NULL,NULL,NULL);
8815        iconv_close(cd);
8816   ;
8817   return 0;
8818 }
8819 _ACEOF
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822   (eval $ac_link) 2>conftest.er1
8823   ac_status=$?
8824   grep -v '^ *+' conftest.er1 >conftest.err
8825   rm -f conftest.er1
8826   cat conftest.err >&5
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); } &&
8829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); }; } &&
8835          { ac_try='test -s conftest$ac_exeext'
8836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837   (eval $ac_try) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; }; then
8841   am_cv_func_iconv=yes
8842 else
8843   echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846 fi
8847 rm -f conftest.err conftest.$ac_objext \
8848       conftest$ac_exeext conftest.$ac_ext
8849     if test "$am_cv_func_iconv" != yes; then
8850       am_save_LIBS="$LIBS"
8851       LIBS="$LIBS $LIBICONV"
8852       cat >conftest.$ac_ext <<_ACEOF
8853 /* confdefs.h.  */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h.  */
8858 #include <stdlib.h>
8859 #include <iconv.h>
8860 int
8861 main ()
8862 {
8863 iconv_t cd = iconv_open("","");
8864          iconv(cd,NULL,NULL,NULL,NULL);
8865          iconv_close(cd);
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872   (eval $ac_link) 2>conftest.er1
8873   ac_status=$?
8874   grep -v '^ *+' conftest.er1 >conftest.err
8875   rm -f conftest.er1
8876   cat conftest.err >&5
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); } &&
8879          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881   (eval $ac_try) 2>&5
8882   ac_status=$?
8883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884   (exit $ac_status); }; } &&
8885          { ac_try='test -s conftest$ac_exeext'
8886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887   (eval $ac_try) 2>&5
8888   ac_status=$?
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); }; }; then
8891   am_cv_lib_iconv=yes
8892         am_cv_func_iconv=yes
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897 fi
8898 rm -f conftest.err conftest.$ac_objext \
8899       conftest$ac_exeext conftest.$ac_ext
8900       LIBS="$am_save_LIBS"
8901     fi
8902
8903 fi
8904 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8905 echo "${ECHO_T}$am_cv_func_iconv" >&6
8906   if test "$am_cv_func_iconv" = yes; then
8907
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_ICONV 1
8910 _ACEOF
8911
8912   fi
8913   if test "$am_cv_lib_iconv" = yes; then
8914     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8915 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8916     echo "$as_me:$LINENO: result: $LIBICONV" >&5
8917 echo "${ECHO_T}$LIBICONV" >&6
8918   else
8919             CPPFLAGS="$am_save_CPPFLAGS"
8920     LIBICONV=
8921     LTLIBICONV=
8922   fi
8923
8924
8925
8926   if test "$am_cv_func_iconv" = yes; then
8927     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8928 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8929     if test "${am_cv_proto_iconv+set}" = set; then
8930   echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932
8933       cat >conftest.$ac_ext <<_ACEOF
8934 /* confdefs.h.  */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h.  */
8939
8940 #include <stdlib.h>
8941 #include <iconv.h>
8942 extern
8943 #ifdef __cplusplus
8944 "C"
8945 #endif
8946 #if defined(__STDC__) || defined(__cplusplus)
8947 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8948 #else
8949 size_t iconv();
8950 #endif
8951
8952 int
8953 main ()
8954 {
8955
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962   (eval $ac_compile) 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; } &&
8975          { ac_try='test -s conftest.$ac_objext'
8976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977   (eval $ac_try) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); }; }; then
8981   am_cv_proto_iconv_arg1=""
8982 else
8983   echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8985
8986 am_cv_proto_iconv_arg1="const"
8987 fi
8988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8989       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);"
8990 fi
8991
8992     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8993     echo "$as_me:$LINENO: result: ${ac_t:-
8994          }$am_cv_proto_iconv" >&5
8995 echo "${ECHO_T}${ac_t:-
8996          }$am_cv_proto_iconv" >&6
8997
8998 cat >>confdefs.h <<_ACEOF
8999 #define ICONV_CONST $am_cv_proto_iconv_arg1
9000 _ACEOF
9001
9002   fi
9003
9004
9005   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9006 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9007 if test "${am_cv_langinfo_codeset+set}" = set; then
9008   echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010   cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h.  */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h.  */
9016 #include <langinfo.h>
9017 int
9018 main ()
9019 {
9020 char* cs = nl_langinfo(CODESET);
9021   ;
9022   return 0;
9023 }
9024 _ACEOF
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027   (eval $ac_link) 2>conftest.er1
9028   ac_status=$?
9029   grep -v '^ *+' conftest.er1 >conftest.err
9030   rm -f conftest.er1
9031   cat conftest.err >&5
9032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); } &&
9034          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036   (eval $ac_try) 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); }; } &&
9040          { ac_try='test -s conftest$ac_exeext'
9041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042   (eval $ac_try) 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); }; }; then
9046   am_cv_langinfo_codeset=yes
9047 else
9048   echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 am_cv_langinfo_codeset=no
9052 fi
9053 rm -f conftest.err conftest.$ac_objext \
9054       conftest$ac_exeext conftest.$ac_ext
9055
9056 fi
9057 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9058 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9059   if test $am_cv_langinfo_codeset = yes; then
9060
9061 cat >>confdefs.h <<\_ACEOF
9062 #define HAVE_LANGINFO_CODESET 1
9063 _ACEOF
9064
9065   fi
9066
9067   if test $ac_cv_header_locale_h = yes; then
9068
9069   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9070 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9071 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
9072   echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074   cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h.  */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h.  */
9080 #include <locale.h>
9081 int
9082 main ()
9083 {
9084 return LC_MESSAGES
9085   ;
9086   return 0;
9087 }
9088 _ACEOF
9089 rm -f conftest.$ac_objext conftest$ac_exeext
9090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9091   (eval $ac_link) 2>conftest.er1
9092   ac_status=$?
9093   grep -v '^ *+' conftest.er1 >conftest.err
9094   rm -f conftest.er1
9095   cat conftest.err >&5
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); } &&
9098          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100   (eval $ac_try) 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); }; } &&
9104          { ac_try='test -s conftest$ac_exeext'
9105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106   (eval $ac_try) 2>&5
9107   ac_status=$?
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   (exit $ac_status); }; }; then
9110   gt_cv_val_LC_MESSAGES=yes
9111 else
9112   echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 gt_cv_val_LC_MESSAGES=no
9116 fi
9117 rm -f conftest.err conftest.$ac_objext \
9118       conftest$ac_exeext conftest.$ac_ext
9119 fi
9120 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
9121 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
9122   if test $gt_cv_val_LC_MESSAGES = yes; then
9123
9124 cat >>confdefs.h <<\_ACEOF
9125 #define HAVE_LC_MESSAGES 1
9126 _ACEOF
9127
9128   fi
9129
9130   fi
9131
9132   if test -n "$INTL_MACOSX_LIBS"; then
9133     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9134   fi
9135
9136                       for ac_prog in bison
9137 do
9138   # Extract the first word of "$ac_prog", so it can be a program name with args.
9139 set dummy $ac_prog; ac_word=$2
9140 echo "$as_me:$LINENO: checking for $ac_word" >&5
9141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9142 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9143   echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145   if test -n "$INTLBISON"; then
9146   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9147 else
9148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149 for as_dir in $PATH
9150 do
9151   IFS=$as_save_IFS
9152   test -z "$as_dir" && as_dir=.
9153   for ac_exec_ext in '' $ac_executable_extensions; do
9154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9155     ac_cv_prog_INTLBISON="$ac_prog"
9156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9157     break 2
9158   fi
9159 done
9160 done
9161
9162 fi
9163 fi
9164 INTLBISON=$ac_cv_prog_INTLBISON
9165 if test -n "$INTLBISON"; then
9166   echo "$as_me:$LINENO: result: $INTLBISON" >&5
9167 echo "${ECHO_T}$INTLBISON" >&6
9168 else
9169   echo "$as_me:$LINENO: result: no" >&5
9170 echo "${ECHO_T}no" >&6
9171 fi
9172
9173   test -n "$INTLBISON" && break
9174 done
9175
9176   if test -z "$INTLBISON"; then
9177     ac_verc_fail=yes
9178   else
9179         echo "$as_me:$LINENO: checking version of bison" >&5
9180 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9181     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9182     case $ac_prog_version in
9183       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9184       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9185          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9186       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9187     esac
9188     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9189 echo "${ECHO_T}$ac_prog_version" >&6
9190   fi
9191   if test $ac_verc_fail = yes; then
9192     INTLBISON=:
9193   fi
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
9211 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
9212 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   gt_save_CPPFLAGS="$CPPFLAGS"
9216      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9217      gt_save_LIBS="$LIBS"
9218      LIBS="$LIBS -framework CoreFoundation"
9219      cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h.  */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h.  */
9225 #include <CFPreferences.h>
9226 int
9227 main ()
9228 {
9229 CFPreferencesCopyAppValue(NULL, NULL)
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236   (eval $ac_link) 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245   (eval $ac_try) 2>&5
9246   ac_status=$?
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); }; } &&
9249          { ac_try='test -s conftest$ac_exeext'
9250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251   (eval $ac_try) 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); }; }; then
9255   gt_cv_func_CFPreferencesCopyAppValue=yes
9256 else
9257   echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260 gt_cv_func_CFPreferencesCopyAppValue=no
9261 fi
9262 rm -f conftest.err conftest.$ac_objext \
9263       conftest$ac_exeext conftest.$ac_ext
9264      CPPFLAGS="$gt_save_CPPFLAGS"
9265      LIBS="$gt_save_LIBS"
9266 fi
9267 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9268 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
9269   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9270
9271 cat >>confdefs.h <<\_ACEOF
9272 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
9273 _ACEOF
9274
9275   fi
9276     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
9277 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
9278 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
9279   echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281   gt_save_CPPFLAGS="$CPPFLAGS"
9282      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9283      gt_save_LIBS="$LIBS"
9284      LIBS="$LIBS -framework CoreFoundation"
9285      cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291 #include <CFLocale.h>
9292 int
9293 main ()
9294 {
9295 CFLocaleCopyCurrent();
9296   ;
9297   return 0;
9298 }
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302   (eval $ac_link) 2>conftest.er1
9303   ac_status=$?
9304   grep -v '^ *+' conftest.er1 >conftest.err
9305   rm -f conftest.er1
9306   cat conftest.err >&5
9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); } &&
9309          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311   (eval $ac_try) 2>&5
9312   ac_status=$?
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); }; } &&
9315          { ac_try='test -s conftest$ac_exeext'
9316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317   (eval $ac_try) 2>&5
9318   ac_status=$?
9319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320   (exit $ac_status); }; }; then
9321   gt_cv_func_CFLocaleCopyCurrent=yes
9322 else
9323   echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9325
9326 gt_cv_func_CFLocaleCopyCurrent=no
9327 fi
9328 rm -f conftest.err conftest.$ac_objext \
9329       conftest$ac_exeext conftest.$ac_ext
9330      CPPFLAGS="$gt_save_CPPFLAGS"
9331      LIBS="$gt_save_LIBS"
9332 fi
9333 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9334 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
9335   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9336
9337 cat >>confdefs.h <<\_ACEOF
9338 #define HAVE_CFLOCALECOPYCURRENT 1
9339 _ACEOF
9340
9341   fi
9342   INTL_MACOSX_LIBS=
9343   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9344     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9345   fi
9346
9347
9348
9349
9350   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9351 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9352     # Check whether --enable-nls or --disable-nls was given.
9353 if test "${enable_nls+set}" = set; then
9354   enableval="$enable_nls"
9355   USE_NLS=$enableval
9356 else
9357   USE_NLS=yes
9358 fi;
9359   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9360 echo "${ECHO_T}$USE_NLS" >&6
9361
9362
9363
9364
9365     BUILD_INCLUDED_LIBINTL=no
9366     USE_INCLUDED_LIBINTL=no
9367
9368   LIBINTL=
9369   LTLIBINTL=
9370   POSUB=
9371
9372     if test "$USE_NLS" = "yes"; then
9373     gt_use_preinstalled_gnugettext=no
9374
9375       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9376 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9377
9378 # Check whether --with-included-gettext or --without-included-gettext was given.
9379 if test "${with_included_gettext+set}" = set; then
9380   withval="$with_included_gettext"
9381   nls_cv_force_use_gnu_gettext=$withval
9382 else
9383   nls_cv_force_use_gnu_gettext=no
9384 fi;
9385       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9386 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9387
9388       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9389       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9390
9391
9392
9393
9394
9395
9396         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9397 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9398 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401   cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h.  */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h.  */
9407 #include <libintl.h>
9408 extern int _nl_msg_cat_cntr;
9409 extern int *_nl_domain_bindings;
9410 int
9411 main ()
9412 {
9413 bindtextdomain ("", "");
9414 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9415   ;
9416   return 0;
9417 }
9418 _ACEOF
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421   (eval $ac_link) 2>conftest.er1
9422   ac_status=$?
9423   grep -v '^ *+' conftest.er1 >conftest.err
9424   rm -f conftest.er1
9425   cat conftest.err >&5
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } &&
9428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430   (eval $ac_try) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); }; } &&
9434          { ac_try='test -s conftest$ac_exeext'
9435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436   (eval $ac_try) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); }; }; then
9440   gt_cv_func_gnugettext1_libc=yes
9441 else
9442   echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9444
9445 gt_cv_func_gnugettext1_libc=no
9446 fi
9447 rm -f conftest.err conftest.$ac_objext \
9448       conftest$ac_exeext conftest.$ac_ext
9449 fi
9450 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9451 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9452
9453         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9454
9455
9456
9457     use_additional=yes
9458
9459   acl_save_prefix="$prefix"
9460   prefix="$acl_final_prefix"
9461   acl_save_exec_prefix="$exec_prefix"
9462   exec_prefix="$acl_final_exec_prefix"
9463
9464     eval additional_includedir=\"$includedir\"
9465     eval additional_libdir=\"$libdir\"
9466
9467   exec_prefix="$acl_save_exec_prefix"
9468   prefix="$acl_save_prefix"
9469
9470
9471 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9472 if test "${with_libintl_prefix+set}" = set; then
9473   withval="$with_libintl_prefix"
9474
9475     if test "X$withval" = "Xno"; then
9476       use_additional=no
9477     else
9478       if test "X$withval" = "X"; then
9479
9480   acl_save_prefix="$prefix"
9481   prefix="$acl_final_prefix"
9482   acl_save_exec_prefix="$exec_prefix"
9483   exec_prefix="$acl_final_exec_prefix"
9484
9485           eval additional_includedir=\"$includedir\"
9486           eval additional_libdir=\"$libdir\"
9487
9488   exec_prefix="$acl_save_exec_prefix"
9489   prefix="$acl_save_prefix"
9490
9491       else
9492         additional_includedir="$withval/include"
9493         additional_libdir="$withval/lib"
9494       fi
9495     fi
9496
9497 fi;
9498       LIBINTL=
9499   LTLIBINTL=
9500   INCINTL=
9501   rpathdirs=
9502   ltrpathdirs=
9503   names_already_handled=
9504   names_next_round='intl '
9505   while test -n "$names_next_round"; do
9506     names_this_round="$names_next_round"
9507     names_next_round=
9508     for name in $names_this_round; do
9509       already_handled=
9510       for n in $names_already_handled; do
9511         if test "$n" = "$name"; then
9512           already_handled=yes
9513           break
9514         fi
9515       done
9516       if test -z "$already_handled"; then
9517         names_already_handled="$names_already_handled $name"
9518                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9519         eval value=\"\$HAVE_LIB$uppername\"
9520         if test -n "$value"; then
9521           if test "$value" = yes; then
9522             eval value=\"\$LIB$uppername\"
9523             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9524             eval value=\"\$LTLIB$uppername\"
9525             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9526           else
9527                                     :
9528           fi
9529         else
9530                               found_dir=
9531           found_la=
9532           found_so=
9533           found_a=
9534           if test $use_additional = yes; then
9535             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9536               found_dir="$additional_libdir"
9537               found_so="$additional_libdir/lib$name.$shlibext"
9538               if test -f "$additional_libdir/lib$name.la"; then
9539                 found_la="$additional_libdir/lib$name.la"
9540               fi
9541             else
9542               if test -f "$additional_libdir/lib$name.$libext"; then
9543                 found_dir="$additional_libdir"
9544                 found_a="$additional_libdir/lib$name.$libext"
9545                 if test -f "$additional_libdir/lib$name.la"; then
9546                   found_la="$additional_libdir/lib$name.la"
9547                 fi
9548               fi
9549             fi
9550           fi
9551           if test "X$found_dir" = "X"; then
9552             for x in $LDFLAGS $LTLIBINTL; do
9553
9554   acl_save_prefix="$prefix"
9555   prefix="$acl_final_prefix"
9556   acl_save_exec_prefix="$exec_prefix"
9557   exec_prefix="$acl_final_exec_prefix"
9558   eval x=\"$x\"
9559   exec_prefix="$acl_save_exec_prefix"
9560   prefix="$acl_save_prefix"
9561
9562               case "$x" in
9563                 -L*)
9564                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9565                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9566                     found_dir="$dir"
9567                     found_so="$dir/lib$name.$shlibext"
9568                     if test -f "$dir/lib$name.la"; then
9569                       found_la="$dir/lib$name.la"
9570                     fi
9571                   else
9572                     if test -f "$dir/lib$name.$libext"; then
9573                       found_dir="$dir"
9574                       found_a="$dir/lib$name.$libext"
9575                       if test -f "$dir/lib$name.la"; then
9576                         found_la="$dir/lib$name.la"
9577                       fi
9578                     fi
9579                   fi
9580                   ;;
9581               esac
9582               if test "X$found_dir" != "X"; then
9583                 break
9584               fi
9585             done
9586           fi
9587           if test "X$found_dir" != "X"; then
9588                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9589             if test "X$found_so" != "X"; then
9590                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9591                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9592               else
9593                                                                                 haveit=
9594                 for x in $ltrpathdirs; do
9595                   if test "X$x" = "X$found_dir"; then
9596                     haveit=yes
9597                     break
9598                   fi
9599                 done
9600                 if test -z "$haveit"; then
9601                   ltrpathdirs="$ltrpathdirs $found_dir"
9602                 fi
9603                                 if test "$hardcode_direct" = yes; then
9604                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9605                 else
9606                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9607                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9608                                                             haveit=
9609                     for x in $rpathdirs; do
9610                       if test "X$x" = "X$found_dir"; then
9611                         haveit=yes
9612                         break
9613                       fi
9614                     done
9615                     if test -z "$haveit"; then
9616                       rpathdirs="$rpathdirs $found_dir"
9617                     fi
9618                   else
9619                                                                                 haveit=
9620                     for x in $LDFLAGS $LIBINTL; do
9621
9622   acl_save_prefix="$prefix"
9623   prefix="$acl_final_prefix"
9624   acl_save_exec_prefix="$exec_prefix"
9625   exec_prefix="$acl_final_exec_prefix"
9626   eval x=\"$x\"
9627   exec_prefix="$acl_save_exec_prefix"
9628   prefix="$acl_save_prefix"
9629
9630                       if test "X$x" = "X-L$found_dir"; then
9631                         haveit=yes
9632                         break
9633                       fi
9634                     done
9635                     if test -z "$haveit"; then
9636                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9637                     fi
9638                     if test "$hardcode_minus_L" != no; then
9639                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9640                     else
9641                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9642                     fi
9643                   fi
9644                 fi
9645               fi
9646             else
9647               if test "X$found_a" != "X"; then
9648                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9649               else
9650                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9651               fi
9652             fi
9653                         additional_includedir=
9654             case "$found_dir" in
9655               */lib | */lib/)
9656                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9657                 additional_includedir="$basedir/include"
9658                 ;;
9659             esac
9660             if test "X$additional_includedir" != "X"; then
9661                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9662                 haveit=
9663                 if test "X$additional_includedir" = "X/usr/local/include"; then
9664                   if test -n "$GCC"; then
9665                     case $host_os in
9666                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9667                     esac
9668                   fi
9669                 fi
9670                 if test -z "$haveit"; then
9671                   for x in $CPPFLAGS $INCINTL; do
9672
9673   acl_save_prefix="$prefix"
9674   prefix="$acl_final_prefix"
9675   acl_save_exec_prefix="$exec_prefix"
9676   exec_prefix="$acl_final_exec_prefix"
9677   eval x=\"$x\"
9678   exec_prefix="$acl_save_exec_prefix"
9679   prefix="$acl_save_prefix"
9680
9681                     if test "X$x" = "X-I$additional_includedir"; then
9682                       haveit=yes
9683                       break
9684                     fi
9685                   done
9686                   if test -z "$haveit"; then
9687                     if test -d "$additional_includedir"; then
9688                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9689                     fi
9690                   fi
9691                 fi
9692               fi
9693             fi
9694                         if test -n "$found_la"; then
9695                                                         save_libdir="$libdir"
9696               case "$found_la" in
9697                 */* | *\\*) . "$found_la" ;;
9698                 *) . "./$found_la" ;;
9699               esac
9700               libdir="$save_libdir"
9701                             for dep in $dependency_libs; do
9702                 case "$dep" in
9703                   -L*)
9704                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9705                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9706                       haveit=
9707                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9708                         if test -n "$GCC"; then
9709                           case $host_os in
9710                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9711                           esac
9712                         fi
9713                       fi
9714                       if test -z "$haveit"; then
9715                         haveit=
9716                         for x in $LDFLAGS $LIBINTL; do
9717
9718   acl_save_prefix="$prefix"
9719   prefix="$acl_final_prefix"
9720   acl_save_exec_prefix="$exec_prefix"
9721   exec_prefix="$acl_final_exec_prefix"
9722   eval x=\"$x\"
9723   exec_prefix="$acl_save_exec_prefix"
9724   prefix="$acl_save_prefix"
9725
9726                           if test "X$x" = "X-L$additional_libdir"; then
9727                             haveit=yes
9728                             break
9729                           fi
9730                         done
9731                         if test -z "$haveit"; then
9732                           if test -d "$additional_libdir"; then
9733                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9734                           fi
9735                         fi
9736                         haveit=
9737                         for x in $LDFLAGS $LTLIBINTL; do
9738
9739   acl_save_prefix="$prefix"
9740   prefix="$acl_final_prefix"
9741   acl_save_exec_prefix="$exec_prefix"
9742   exec_prefix="$acl_final_exec_prefix"
9743   eval x=\"$x\"
9744   exec_prefix="$acl_save_exec_prefix"
9745   prefix="$acl_save_prefix"
9746
9747                           if test "X$x" = "X-L$additional_libdir"; then
9748                             haveit=yes
9749                             break
9750                           fi
9751                         done
9752                         if test -z "$haveit"; then
9753                           if test -d "$additional_libdir"; then
9754                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9755                           fi
9756                         fi
9757                       fi
9758                     fi
9759                     ;;
9760                   -R*)
9761                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9762                     if test "$enable_rpath" != no; then
9763                                                                   haveit=
9764                       for x in $rpathdirs; do
9765                         if test "X$x" = "X$dir"; then
9766                           haveit=yes
9767                           break
9768                         fi
9769                       done
9770                       if test -z "$haveit"; then
9771                         rpathdirs="$rpathdirs $dir"
9772                       fi
9773                                                                   haveit=
9774                       for x in $ltrpathdirs; do
9775                         if test "X$x" = "X$dir"; then
9776                           haveit=yes
9777                           break
9778                         fi
9779                       done
9780                       if test -z "$haveit"; then
9781                         ltrpathdirs="$ltrpathdirs $dir"
9782                       fi
9783                     fi
9784                     ;;
9785                   -l*)
9786                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9787                     ;;
9788                   *.la)
9789                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9790                     ;;
9791                   *)
9792                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9793                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9794                     ;;
9795                 esac
9796               done
9797             fi
9798           else
9799                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9800             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9801           fi
9802         fi
9803       fi
9804     done
9805   done
9806   if test "X$rpathdirs" != "X"; then
9807     if test -n "$hardcode_libdir_separator"; then
9808                         alldirs=
9809       for found_dir in $rpathdirs; do
9810         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9811       done
9812             acl_save_libdir="$libdir"
9813       libdir="$alldirs"
9814       eval flag=\"$hardcode_libdir_flag_spec\"
9815       libdir="$acl_save_libdir"
9816       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9817     else
9818             for found_dir in $rpathdirs; do
9819         acl_save_libdir="$libdir"
9820         libdir="$found_dir"
9821         eval flag=\"$hardcode_libdir_flag_spec\"
9822         libdir="$acl_save_libdir"
9823         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9824       done
9825     fi
9826   fi
9827   if test "X$ltrpathdirs" != "X"; then
9828             for found_dir in $ltrpathdirs; do
9829       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9830     done
9831   fi
9832
9833           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9834 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9835 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   gt_save_CPPFLAGS="$CPPFLAGS"
9839             CPPFLAGS="$CPPFLAGS $INCINTL"
9840             gt_save_LIBS="$LIBS"
9841             LIBS="$LIBS $LIBINTL"
9842                         cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848 #include <libintl.h>
9849 extern int _nl_msg_cat_cntr;
9850 extern
9851 #ifdef __cplusplus
9852 "C"
9853 #endif
9854 const char *_nl_expand_alias (const char *);
9855 int
9856 main ()
9857 {
9858 bindtextdomain ("", "");
9859 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9866   (eval $ac_link) 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } &&
9873          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875   (eval $ac_try) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; } &&
9879          { ac_try='test -s conftest$ac_exeext'
9880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881   (eval $ac_try) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   gt_cv_func_gnugettext1_libintl=yes
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 gt_cv_func_gnugettext1_libintl=no
9891 fi
9892 rm -f conftest.err conftest.$ac_objext \
9893       conftest$ac_exeext conftest.$ac_ext
9894                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9895               LIBS="$LIBS $LIBICONV"
9896               cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902 #include <libintl.h>
9903 extern int _nl_msg_cat_cntr;
9904 extern
9905 #ifdef __cplusplus
9906 "C"
9907 #endif
9908 const char *_nl_expand_alias (const char *);
9909 int
9910 main ()
9911 {
9912 bindtextdomain ("", "");
9913 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9914   ;
9915   return 0;
9916 }
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920   (eval $ac_link) 2>conftest.er1
9921   ac_status=$?
9922   grep -v '^ *+' conftest.er1 >conftest.err
9923   rm -f conftest.er1
9924   cat conftest.err >&5
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } &&
9927          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; } &&
9933          { ac_try='test -s conftest$ac_exeext'
9934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935   (eval $ac_try) 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); }; }; then
9939   LIBINTL="$LIBINTL $LIBICONV"
9940                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9941                 gt_cv_func_gnugettext1_libintl=yes
9942
9943 else
9944   echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9946
9947 fi
9948 rm -f conftest.err conftest.$ac_objext \
9949       conftest$ac_exeext conftest.$ac_ext
9950             fi
9951             CPPFLAGS="$gt_save_CPPFLAGS"
9952             LIBS="$gt_save_LIBS"
9953 fi
9954 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9955 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9956         fi
9957
9958                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9959            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9960                 && test "$PACKAGE" != gettext-runtime \
9961                 && test "$PACKAGE" != gettext-tools; }; then
9962           gt_use_preinstalled_gnugettext=yes
9963         else
9964                     LIBINTL=
9965           LTLIBINTL=
9966           INCINTL=
9967         fi
9968
9969
9970         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9971                               nls_cv_use_gnu_gettext=yes
9972         fi
9973       fi
9974
9975       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9976                 BUILD_INCLUDED_LIBINTL=yes
9977         USE_INCLUDED_LIBINTL=yes
9978         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9979         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9980         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9981       fi
9982
9983       CATOBJEXT=
9984       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9985          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9986                 CATOBJEXT=.gmo
9987       fi
9988
9989
9990     if test -n "$INTL_MACOSX_LIBS"; then
9991       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9992          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9993                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9994         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9995       fi
9996     fi
9997
9998     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9999        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10000
10001 cat >>confdefs.h <<\_ACEOF
10002 #define ENABLE_NLS 1
10003 _ACEOF
10004
10005     else
10006       USE_NLS=no
10007     fi
10008   fi
10009
10010   echo "$as_me:$LINENO: checking whether to use NLS" >&5
10011 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
10012   echo "$as_me:$LINENO: result: $USE_NLS" >&5
10013 echo "${ECHO_T}$USE_NLS" >&6
10014   if test "$USE_NLS" = "yes"; then
10015     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10016 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
10017     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10018       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10019         gt_source="external libintl"
10020       else
10021         gt_source="libc"
10022       fi
10023     else
10024       gt_source="included intl directory"
10025     fi
10026     echo "$as_me:$LINENO: result: $gt_source" >&5
10027 echo "${ECHO_T}$gt_source" >&6
10028   fi
10029
10030   if test "$USE_NLS" = "yes"; then
10031
10032     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10033       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10034         echo "$as_me:$LINENO: checking how to link with libintl" >&5
10035 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
10036         echo "$as_me:$LINENO: result: $LIBINTL" >&5
10037 echo "${ECHO_T}$LIBINTL" >&6
10038
10039   for element in $INCINTL; do
10040     haveit=
10041     for x in $CPPFLAGS; do
10042
10043   acl_save_prefix="$prefix"
10044   prefix="$acl_final_prefix"
10045   acl_save_exec_prefix="$exec_prefix"
10046   exec_prefix="$acl_final_exec_prefix"
10047   eval x=\"$x\"
10048   exec_prefix="$acl_save_exec_prefix"
10049   prefix="$acl_save_prefix"
10050
10051       if test "X$x" = "X$element"; then
10052         haveit=yes
10053         break
10054       fi
10055     done
10056     if test -z "$haveit"; then
10057       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10058     fi
10059   done
10060
10061       fi
10062
10063
10064 cat >>confdefs.h <<\_ACEOF
10065 #define HAVE_GETTEXT 1
10066 _ACEOF
10067
10068
10069 cat >>confdefs.h <<\_ACEOF
10070 #define HAVE_DCGETTEXT 1
10071 _ACEOF
10072
10073     fi
10074
10075         POSUB=po
10076   fi
10077
10078
10079             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10080       BUILD_INCLUDED_LIBINTL=yes
10081     fi
10082
10083
10084
10085
10086
10087         nls_cv_header_intl=
10088     nls_cv_header_libgt=
10089
10090         DATADIRNAME=share
10091
10092
10093         INSTOBJEXT=.mo
10094
10095
10096         GENCAT=gencat
10097
10098
10099         INTLOBJS=
10100     if test "$USE_INCLUDED_LIBINTL" = yes; then
10101       INTLOBJS="\$(GETTOBJS)"
10102     fi
10103
10104
10105         INTL_LIBTOOL_SUFFIX_PREFIX=
10106
10107
10108
10109     INTLLIBS="$LIBINTL"
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121         abook_localedir="$datadir/locale"
10122         abook_localedir=`(      test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10123                 eval echo \""$abook_localedir"\"        )`
10124
10125 localedir="\$(datadir)/locale"
10126
10127
10128 # Check whether --with-localedir or --without-localedir was given.
10129 if test "${with_localedir+set}" = set; then
10130   withval="$with_localedir"
10131
10132 fi;
10133 if test "x$with_localedir" != "x"; then
10134         abook_localedir="$with_localedir"
10135         localedir="$with_localedir"
10136 fi
10137
10138
10139 cat >>confdefs.h <<_ACEOF
10140 #define LOCALEDIR "$abook_localedir"
10141 _ACEOF
10142
10143
10144
10145
10146
10147 if test x$USE_INCLUDED_LIBINTL = xyes; then
10148   USE_INCLUDED_INTL_H_TRUE=
10149   USE_INCLUDED_INTL_H_FALSE='#'
10150 else
10151   USE_INCLUDED_INTL_H_TRUE='#'
10152   USE_INCLUDED_INTL_H_FALSE=
10153 fi
10154
10155
10156
10157 ac_ext=c
10158 ac_cpp='$CPP $CPPFLAGS'
10159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10162 if test -n "$ac_tool_prefix"; then
10163   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10164 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10165 echo "$as_me:$LINENO: checking for $ac_word" >&5
10166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10167 if test "${ac_cv_prog_CC+set}" = set; then
10168   echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170   if test -n "$CC"; then
10171   ac_cv_prog_CC="$CC" # Let the user override the test.
10172 else
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10175 do
10176   IFS=$as_save_IFS
10177   test -z "$as_dir" && as_dir=.
10178   for ac_exec_ext in '' $ac_executable_extensions; do
10179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10180     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10182     break 2
10183   fi
10184 done
10185 done
10186
10187 fi
10188 fi
10189 CC=$ac_cv_prog_CC
10190 if test -n "$CC"; then
10191   echo "$as_me:$LINENO: result: $CC" >&5
10192 echo "${ECHO_T}$CC" >&6
10193 else
10194   echo "$as_me:$LINENO: result: no" >&5
10195 echo "${ECHO_T}no" >&6
10196 fi
10197
10198 fi
10199 if test -z "$ac_cv_prog_CC"; then
10200   ac_ct_CC=$CC
10201   # Extract the first word of "gcc", so it can be a program name with args.
10202 set dummy gcc; ac_word=$2
10203 echo "$as_me:$LINENO: checking for $ac_word" >&5
10204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10206   echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208   if test -n "$ac_ct_CC"; then
10209   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10210 else
10211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212 for as_dir in $PATH
10213 do
10214   IFS=$as_save_IFS
10215   test -z "$as_dir" && as_dir=.
10216   for ac_exec_ext in '' $ac_executable_extensions; do
10217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10218     ac_cv_prog_ac_ct_CC="gcc"
10219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10220     break 2
10221   fi
10222 done
10223 done
10224
10225 fi
10226 fi
10227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10228 if test -n "$ac_ct_CC"; then
10229   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10230 echo "${ECHO_T}$ac_ct_CC" >&6
10231 else
10232   echo "$as_me:$LINENO: result: no" >&5
10233 echo "${ECHO_T}no" >&6
10234 fi
10235
10236   CC=$ac_ct_CC
10237 else
10238   CC="$ac_cv_prog_CC"
10239 fi
10240
10241 if test -z "$CC"; then
10242   if test -n "$ac_tool_prefix"; then
10243   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10244 set dummy ${ac_tool_prefix}cc; ac_word=$2
10245 echo "$as_me:$LINENO: checking for $ac_word" >&5
10246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10247 if test "${ac_cv_prog_CC+set}" = set; then
10248   echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250   if test -n "$CC"; then
10251   ac_cv_prog_CC="$CC" # Let the user override the test.
10252 else
10253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254 for as_dir in $PATH
10255 do
10256   IFS=$as_save_IFS
10257   test -z "$as_dir" && as_dir=.
10258   for ac_exec_ext in '' $ac_executable_extensions; do
10259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10260     ac_cv_prog_CC="${ac_tool_prefix}cc"
10261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10262     break 2
10263   fi
10264 done
10265 done
10266
10267 fi
10268 fi
10269 CC=$ac_cv_prog_CC
10270 if test -n "$CC"; then
10271   echo "$as_me:$LINENO: result: $CC" >&5
10272 echo "${ECHO_T}$CC" >&6
10273 else
10274   echo "$as_me:$LINENO: result: no" >&5
10275 echo "${ECHO_T}no" >&6
10276 fi
10277
10278 fi
10279 if test -z "$ac_cv_prog_CC"; then
10280   ac_ct_CC=$CC
10281   # Extract the first word of "cc", so it can be a program name with args.
10282 set dummy cc; ac_word=$2
10283 echo "$as_me:$LINENO: checking for $ac_word" >&5
10284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10286   echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288   if test -n "$ac_ct_CC"; then
10289   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10290 else
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294   IFS=$as_save_IFS
10295   test -z "$as_dir" && as_dir=.
10296   for ac_exec_ext in '' $ac_executable_extensions; do
10297   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298     ac_cv_prog_ac_ct_CC="cc"
10299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10300     break 2
10301   fi
10302 done
10303 done
10304
10305 fi
10306 fi
10307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10308 if test -n "$ac_ct_CC"; then
10309   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10310 echo "${ECHO_T}$ac_ct_CC" >&6
10311 else
10312   echo "$as_me:$LINENO: result: no" >&5
10313 echo "${ECHO_T}no" >&6
10314 fi
10315
10316   CC=$ac_ct_CC
10317 else
10318   CC="$ac_cv_prog_CC"
10319 fi
10320
10321 fi
10322 if test -z "$CC"; then
10323   # Extract the first word of "cc", so it can be a program name with args.
10324 set dummy cc; ac_word=$2
10325 echo "$as_me:$LINENO: checking for $ac_word" >&5
10326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10327 if test "${ac_cv_prog_CC+set}" = set; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330   if test -n "$CC"; then
10331   ac_cv_prog_CC="$CC" # Let the user override the test.
10332 else
10333   ac_prog_rejected=no
10334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335 for as_dir in $PATH
10336 do
10337   IFS=$as_save_IFS
10338   test -z "$as_dir" && as_dir=.
10339   for ac_exec_ext in '' $ac_executable_extensions; do
10340   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10341     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10342        ac_prog_rejected=yes
10343        continue
10344      fi
10345     ac_cv_prog_CC="cc"
10346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10347     break 2
10348   fi
10349 done
10350 done
10351
10352 if test $ac_prog_rejected = yes; then
10353   # We found a bogon in the path, so make sure we never use it.
10354   set dummy $ac_cv_prog_CC
10355   shift
10356   if test $# != 0; then
10357     # We chose a different compiler from the bogus one.
10358     # However, it has the same basename, so the bogon will be chosen
10359     # first if we set CC to just the basename; use the full file name.
10360     shift
10361     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10362   fi
10363 fi
10364 fi
10365 fi
10366 CC=$ac_cv_prog_CC
10367 if test -n "$CC"; then
10368   echo "$as_me:$LINENO: result: $CC" >&5
10369 echo "${ECHO_T}$CC" >&6
10370 else
10371   echo "$as_me:$LINENO: result: no" >&5
10372 echo "${ECHO_T}no" >&6
10373 fi
10374
10375 fi
10376 if test -z "$CC"; then
10377   if test -n "$ac_tool_prefix"; then
10378   for ac_prog in cl
10379   do
10380     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10382 echo "$as_me:$LINENO: checking for $ac_word" >&5
10383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10384 if test "${ac_cv_prog_CC+set}" = set; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387   if test -n "$CC"; then
10388   ac_cv_prog_CC="$CC" # Let the user override the test.
10389 else
10390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391 for as_dir in $PATH
10392 do
10393   IFS=$as_save_IFS
10394   test -z "$as_dir" && as_dir=.
10395   for ac_exec_ext in '' $ac_executable_extensions; do
10396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10397     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10399     break 2
10400   fi
10401 done
10402 done
10403
10404 fi
10405 fi
10406 CC=$ac_cv_prog_CC
10407 if test -n "$CC"; then
10408   echo "$as_me:$LINENO: result: $CC" >&5
10409 echo "${ECHO_T}$CC" >&6
10410 else
10411   echo "$as_me:$LINENO: result: no" >&5
10412 echo "${ECHO_T}no" >&6
10413 fi
10414
10415     test -n "$CC" && break
10416   done
10417 fi
10418 if test -z "$CC"; then
10419   ac_ct_CC=$CC
10420   for ac_prog in cl
10421 do
10422   # Extract the first word of "$ac_prog", so it can be a program name with args.
10423 set dummy $ac_prog; ac_word=$2
10424 echo "$as_me:$LINENO: checking for $ac_word" >&5
10425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10427   echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429   if test -n "$ac_ct_CC"; then
10430   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10431 else
10432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10433 for as_dir in $PATH
10434 do
10435   IFS=$as_save_IFS
10436   test -z "$as_dir" && as_dir=.
10437   for ac_exec_ext in '' $ac_executable_extensions; do
10438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10439     ac_cv_prog_ac_ct_CC="$ac_prog"
10440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10441     break 2
10442   fi
10443 done
10444 done
10445
10446 fi
10447 fi
10448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10449 if test -n "$ac_ct_CC"; then
10450   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10451 echo "${ECHO_T}$ac_ct_CC" >&6
10452 else
10453   echo "$as_me:$LINENO: result: no" >&5
10454 echo "${ECHO_T}no" >&6
10455 fi
10456
10457   test -n "$ac_ct_CC" && break
10458 done
10459
10460   CC=$ac_ct_CC
10461 fi
10462
10463 fi
10464
10465
10466 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10467 See \`config.log' for more details." >&5
10468 echo "$as_me: error: no acceptable C compiler found in \$PATH
10469 See \`config.log' for more details." >&2;}
10470    { (exit 1); exit 1; }; }
10471
10472 # Provide some information about the compiler.
10473 echo "$as_me:$LINENO:" \
10474      "checking for C compiler version" >&5
10475 ac_compiler=`set X $ac_compile; echo $2`
10476 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10477   (eval $ac_compiler --version </dev/null >&5) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }
10481 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10482   (eval $ac_compiler -v </dev/null >&5) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }
10486 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10487   (eval $ac_compiler -V </dev/null >&5) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); }
10491
10492 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10493 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10494 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10495   echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497   cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h.  */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h.  */
10503
10504 int
10505 main ()
10506 {
10507 #ifndef __GNUC__
10508        choke me
10509 #endif
10510
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517   (eval $ac_compile) 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } &&
10524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526   (eval $ac_try) 2>&5
10527   ac_status=$?
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); }; } &&
10530          { ac_try='test -s conftest.$ac_objext'
10531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532   (eval $ac_try) 2>&5
10533   ac_status=$?
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); }; }; then
10536   ac_compiler_gnu=yes
10537 else
10538   echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541 ac_compiler_gnu=no
10542 fi
10543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10545
10546 fi
10547 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10548 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10549 GCC=`test $ac_compiler_gnu = yes && echo yes`
10550 ac_test_CFLAGS=${CFLAGS+set}
10551 ac_save_CFLAGS=$CFLAGS
10552 CFLAGS="-g"
10553 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10554 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10555 if test "${ac_cv_prog_cc_g+set}" = set; then
10556   echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558   cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h.  */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h.  */
10564
10565 int
10566 main ()
10567 {
10568
10569   ;
10570   return 0;
10571 }
10572 _ACEOF
10573 rm -f conftest.$ac_objext
10574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10575   (eval $ac_compile) 2>conftest.er1
10576   ac_status=$?
10577   grep -v '^ *+' conftest.er1 >conftest.err
10578   rm -f conftest.er1
10579   cat conftest.err >&5
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); } &&
10582          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584   (eval $ac_try) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; } &&
10588          { ac_try='test -s conftest.$ac_objext'
10589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590   (eval $ac_try) 2>&5
10591   ac_status=$?
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); }; }; then
10594   ac_cv_prog_cc_g=yes
10595 else
10596   echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10598
10599 ac_cv_prog_cc_g=no
10600 fi
10601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10602 fi
10603 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10605 if test "$ac_test_CFLAGS" = set; then
10606   CFLAGS=$ac_save_CFLAGS
10607 elif test $ac_cv_prog_cc_g = yes; then
10608   if test "$GCC" = yes; then
10609     CFLAGS="-g -O2"
10610   else
10611     CFLAGS="-g"
10612   fi
10613 else
10614   if test "$GCC" = yes; then
10615     CFLAGS="-O2"
10616   else
10617     CFLAGS=
10618   fi
10619 fi
10620 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10621 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10622 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10623   echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625   ac_cv_prog_cc_stdc=no
10626 ac_save_CC=$CC
10627 cat >conftest.$ac_ext <<_ACEOF
10628 /* confdefs.h.  */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h.  */
10633 #include <stdarg.h>
10634 #include <stdio.h>
10635 #include <sys/types.h>
10636 #include <sys/stat.h>
10637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10638 struct buf { int x; };
10639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10640 static char *e (p, i)
10641      char **p;
10642      int i;
10643 {
10644   return p[i];
10645 }
10646 static char *f (char * (*g) (char **, int), char **p, ...)
10647 {
10648   char *s;
10649   va_list v;
10650   va_start (v,p);
10651   s = g (p, va_arg (v,int));
10652   va_end (v);
10653   return s;
10654 }
10655
10656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10657    function prototypes and stuff, but not '\xHH' hex character constants.
10658    These don't provoke an error unfortunately, instead are silently treated
10659    as 'x'.  The following induces an error, until -std1 is added to get
10660    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10661    array size at least.  It's necessary to write '\x00'==0 to get something
10662    that's true only with -std1.  */
10663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10664
10665 int test (int i, double x);
10666 struct s1 {int (*f) (int a);};
10667 struct s2 {int (*f) (double a);};
10668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10669 int argc;
10670 char **argv;
10671 int
10672 main ()
10673 {
10674 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10675   ;
10676   return 0;
10677 }
10678 _ACEOF
10679 # Don't try gcc -ansi; that turns off useful extensions and
10680 # breaks some systems' header files.
10681 # AIX                   -qlanglvl=ansi
10682 # Ultrix and OSF/1      -std1
10683 # HP-UX 10.20 and later -Ae
10684 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10685 # SVR4                  -Xc -D__EXTENSIONS__
10686 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10687 do
10688   CC="$ac_save_CC $ac_arg"
10689   rm -f conftest.$ac_objext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691   (eval $ac_compile) 2>conftest.er1
10692   ac_status=$?
10693   grep -v '^ *+' conftest.er1 >conftest.err
10694   rm -f conftest.er1
10695   cat conftest.err >&5
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); } &&
10698          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700   (eval $ac_try) 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); }; } &&
10704          { ac_try='test -s conftest.$ac_objext'
10705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706   (eval $ac_try) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; }; then
10710   ac_cv_prog_cc_stdc=$ac_arg
10711 break
10712 else
10713   echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 fi
10717 rm -f conftest.err conftest.$ac_objext
10718 done
10719 rm -f conftest.$ac_ext conftest.$ac_objext
10720 CC=$ac_save_CC
10721
10722 fi
10723
10724 case "x$ac_cv_prog_cc_stdc" in
10725   x|xno)
10726     echo "$as_me:$LINENO: result: none needed" >&5
10727 echo "${ECHO_T}none needed" >&6 ;;
10728   *)
10729     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10730 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10731     CC="$CC $ac_cv_prog_cc_stdc" ;;
10732 esac
10733
10734 # Some people use a C++ compiler to compile C.  Since we use `exit',
10735 # in C++ we need to declare it.  In case someone uses the same compiler
10736 # for both compiling C and C++ we need to have the C++ compiler decide
10737 # the declaration of exit, since it's the most demanding environment.
10738 cat >conftest.$ac_ext <<_ACEOF
10739 #ifndef __cplusplus
10740   choke me
10741 #endif
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745   (eval $ac_compile) 2>conftest.er1
10746   ac_status=$?
10747   grep -v '^ *+' conftest.er1 >conftest.err
10748   rm -f conftest.er1
10749   cat conftest.err >&5
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754   (eval $ac_try) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; } &&
10758          { ac_try='test -s conftest.$ac_objext'
10759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760   (eval $ac_try) 2>&5
10761   ac_status=$?
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); }; }; then
10764   for ac_declaration in \
10765    '' \
10766    'extern "C" void std::exit (int) throw (); using std::exit;' \
10767    'extern "C" void std::exit (int); using std::exit;' \
10768    'extern "C" void exit (int) throw ();' \
10769    'extern "C" void exit (int);' \
10770    'void exit (int);'
10771 do
10772   cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h.  */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h.  */
10778 $ac_declaration
10779 #include <stdlib.h>
10780 int
10781 main ()
10782 {
10783 exit (42);
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 rm -f conftest.$ac_objext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10790   (eval $ac_compile) 2>conftest.er1
10791   ac_status=$?
10792   grep -v '^ *+' conftest.er1 >conftest.err
10793   rm -f conftest.er1
10794   cat conftest.err >&5
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); } &&
10797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799   (eval $ac_try) 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); }; } &&
10803          { ac_try='test -s conftest.$ac_objext'
10804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805   (eval $ac_try) 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); }; }; then
10809   :
10810 else
10811   echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10813
10814 continue
10815 fi
10816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10817   cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h.  */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h.  */
10823 $ac_declaration
10824 int
10825 main ()
10826 {
10827 exit (42);
10828   ;
10829   return 0;
10830 }
10831 _ACEOF
10832 rm -f conftest.$ac_objext
10833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10834   (eval $ac_compile) 2>conftest.er1
10835   ac_status=$?
10836   grep -v '^ *+' conftest.er1 >conftest.err
10837   rm -f conftest.er1
10838   cat conftest.err >&5
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); } &&
10841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843   (eval $ac_try) 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; } &&
10847          { ac_try='test -s conftest.$ac_objext'
10848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849   (eval $ac_try) 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); }; }; then
10853   break
10854 else
10855   echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10857
10858 fi
10859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10860 done
10861 rm -f conftest*
10862 if test -n "$ac_declaration"; then
10863   echo '#ifdef __cplusplus' >>confdefs.h
10864   echo $ac_declaration      >>confdefs.h
10865   echo '#endif'             >>confdefs.h
10866 fi
10867
10868 else
10869   echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10871
10872 fi
10873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10874 ac_ext=c
10875 ac_cpp='$CPP $CPPFLAGS'
10876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10879
10880 depcc="$CC"   am_compiler_list=
10881
10882 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10883 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
10884 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
10885   echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10888   # We make a subdir and do the tests there.  Otherwise we can end up
10889   # making bogus files that we don't know about and never remove.  For
10890   # instance it was reported that on HP-UX the gcc test will end up
10891   # making a dummy file named `D' -- because `-MD' means `put the output
10892   # in D'.
10893   mkdir conftest.dir
10894   # Copy depcomp to subdir because otherwise we won't find it if we're
10895   # using a relative directory.
10896   cp "$am_depcomp" conftest.dir
10897   cd conftest.dir
10898   # We will build objects and dependencies in a subdirectory because
10899   # it helps to detect inapplicable dependency modes.  For instance
10900   # both Tru64's cc and ICC support -MD to output dependencies as a
10901   # side effect of compilation, but ICC will put the dependencies in
10902   # the current directory while Tru64 will put them in the object
10903   # directory.
10904   mkdir sub
10905
10906   am_cv_CC_dependencies_compiler_type=none
10907   if test "$am_compiler_list" = ""; then
10908      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10909   fi
10910   for depmode in $am_compiler_list; do
10911     # Setup a source with many dependencies, because some compilers
10912     # like to wrap large dependency lists on column 80 (with \), and
10913     # we should not choose a depcomp mode which is confused by this.
10914     #
10915     # We need to recreate these files for each test, as the compiler may
10916     # overwrite some of them when testing with obscure command lines.
10917     # This happens at least with the AIX C compiler.
10918     : > sub/conftest.c
10919     for i in 1 2 3 4 5 6; do
10920       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10921       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10922       # Solaris 8's {/usr,}/bin/sh.
10923       touch sub/conftst$i.h
10924     done
10925     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10926
10927     case $depmode in
10928     nosideeffect)
10929       # after this tag, mechanisms are not by side-effect, so they'll
10930       # only be used when explicitly requested
10931       if test "x$enable_dependency_tracking" = xyes; then
10932         continue
10933       else
10934         break
10935       fi
10936       ;;
10937     none) break ;;
10938     esac
10939     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10940     # mode.  It turns out that the SunPro C++ compiler does not properly
10941     # handle `-M -o', and we need to detect this.
10942     if depmode=$depmode \
10943        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10944        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10945        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
10946          >/dev/null 2>conftest.err &&
10947        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10948        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
10949        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10950       # icc doesn't choke on unknown options, it will just issue warnings
10951       # or remarks (even with -Werror).  So we grep stderr for any message
10952       # that says an option was ignored or not supported.
10953       # When given -MP, icc 7.0 and 7.1 complain thusly:
10954       #   icc: Command line warning: ignoring option '-M'; no argument required
10955       # The diagnosis changed in icc 8.0:
10956       #   icc: Command line remark: option '-MP' not supported
10957       if (grep 'ignoring option' conftest.err ||
10958           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10959         am_cv_CC_dependencies_compiler_type=$depmode
10960         break
10961       fi
10962     fi
10963   done
10964
10965   cd ..
10966   rm -rf conftest.dir
10967 else
10968   am_cv_CC_dependencies_compiler_type=none
10969 fi
10970
10971 fi
10972 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
10973 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
10974 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10975
10976
10977
10978 if
10979   test "x$enable_dependency_tracking" != xno \
10980   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10981   am__fastdepCC_TRUE=
10982   am__fastdepCC_FALSE='#'
10983 else
10984   am__fastdepCC_TRUE='#'
10985   am__fastdepCC_FALSE=
10986 fi
10987
10988
10989 echo "$as_me:$LINENO: checking for library containing strerror" >&5
10990 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
10991 if test "${ac_cv_search_strerror+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   ac_func_search_save_LIBS=$LIBS
10995 ac_cv_search_strerror=no
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002
11003 /* Override any gcc2 internal prototype to avoid an error.  */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 /* We use char because int might match the return type of a gcc2
11008    builtin and then its argument prototype would still apply.  */
11009 char strerror ();
11010 int
11011 main ()
11012 {
11013 strerror ();
11014   ;
11015   return 0;
11016 }
11017 _ACEOF
11018 rm -f conftest.$ac_objext conftest$ac_exeext
11019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11020   (eval $ac_link) 2>conftest.er1
11021   ac_status=$?
11022   grep -v '^ *+' conftest.er1 >conftest.err
11023   rm -f conftest.er1
11024   cat conftest.err >&5
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); } &&
11027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029   (eval $ac_try) 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; } &&
11033          { ac_try='test -s conftest$ac_exeext'
11034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035   (eval $ac_try) 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); }; }; then
11039   ac_cv_search_strerror="none required"
11040 else
11041   echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11043
11044 fi
11045 rm -f conftest.err conftest.$ac_objext \
11046       conftest$ac_exeext conftest.$ac_ext
11047 if test "$ac_cv_search_strerror" = no; then
11048   for ac_lib in cposix; do
11049     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11050     cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056
11057 /* Override any gcc2 internal prototype to avoid an error.  */
11058 #ifdef __cplusplus
11059 extern "C"
11060 #endif
11061 /* We use char because int might match the return type of a gcc2
11062    builtin and then its argument prototype would still apply.  */
11063 char strerror ();
11064 int
11065 main ()
11066 {
11067 strerror ();
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074   (eval $ac_link) 2>conftest.er1
11075   ac_status=$?
11076   grep -v '^ *+' conftest.er1 >conftest.err
11077   rm -f conftest.er1
11078   cat conftest.err >&5
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); } &&
11081          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083   (eval $ac_try) 2>&5
11084   ac_status=$?
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); }; } &&
11087          { ac_try='test -s conftest$ac_exeext'
11088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089   (eval $ac_try) 2>&5
11090   ac_status=$?
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); }; }; then
11093   ac_cv_search_strerror="-l$ac_lib"
11094 break
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 fi
11100 rm -f conftest.err conftest.$ac_objext \
11101       conftest$ac_exeext conftest.$ac_ext
11102   done
11103 fi
11104 LIBS=$ac_func_search_save_LIBS
11105 fi
11106 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
11107 echo "${ECHO_T}$ac_cv_search_strerror" >&6
11108 if test "$ac_cv_search_strerror" != no; then
11109   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
11110
11111 fi
11112
11113 echo "$as_me:$LINENO: checking for function prototypes" >&5
11114 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
11115 if test "$ac_cv_prog_cc_stdc" != no; then
11116   echo "$as_me:$LINENO: result: yes" >&5
11117 echo "${ECHO_T}yes" >&6
11118
11119 cat >>confdefs.h <<\_ACEOF
11120 #define PROTOTYPES 1
11121 _ACEOF
11122
11123
11124 cat >>confdefs.h <<\_ACEOF
11125 #define __PROTOTYPES 1
11126 _ACEOF
11127
11128 else
11129   echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6
11131 fi
11132
11133
11134 if test "$ac_cv_prog_cc_stdc" != no; then
11135   U= ANSI2KNR=
11136 else
11137   U=_ ANSI2KNR=./ansi2knr
11138 fi
11139 # Ensure some checks needed by ansi2knr itself.
11140
11141
11142 for ac_header in string.h
11143 do
11144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11146   echo "$as_me:$LINENO: checking for $ac_header" >&5
11147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11149   echo $ECHO_N "(cached) $ECHO_C" >&6
11150 fi
11151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11153 else
11154   # Is the header compilable?
11155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11157 cat >conftest.$ac_ext <<_ACEOF
11158 /* confdefs.h.  */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h.  */
11163 $ac_includes_default
11164 #include <$ac_header>
11165 _ACEOF
11166 rm -f conftest.$ac_objext
11167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11168   (eval $ac_compile) 2>conftest.er1
11169   ac_status=$?
11170   grep -v '^ *+' conftest.er1 >conftest.err
11171   rm -f conftest.er1
11172   cat conftest.err >&5
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); } &&
11175          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177   (eval $ac_try) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }; } &&
11181          { ac_try='test -s conftest.$ac_objext'
11182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183   (eval $ac_try) 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; }; then
11187   ac_header_compiler=yes
11188 else
11189   echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 ac_header_compiler=no
11193 fi
11194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11196 echo "${ECHO_T}$ac_header_compiler" >&6
11197
11198 # Is the header present?
11199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h.  */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h.  */
11207 #include <$ac_header>
11208 _ACEOF
11209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11210   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11211   ac_status=$?
11212   grep -v '^ *+' conftest.er1 >conftest.err
11213   rm -f conftest.er1
11214   cat conftest.err >&5
11215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216   (exit $ac_status); } >/dev/null; then
11217   if test -s conftest.err; then
11218     ac_cpp_err=$ac_c_preproc_warn_flag
11219     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11220   else
11221     ac_cpp_err=
11222   fi
11223 else
11224   ac_cpp_err=yes
11225 fi
11226 if test -z "$ac_cpp_err"; then
11227   ac_header_preproc=yes
11228 else
11229   echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11231
11232   ac_header_preproc=no
11233 fi
11234 rm -f conftest.err conftest.$ac_ext
11235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11236 echo "${ECHO_T}$ac_header_preproc" >&6
11237
11238 # So?  What about this header?
11239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11240   yes:no: )
11241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11245     ac_header_preproc=yes
11246     ;;
11247   no:yes:* )
11248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11260     (
11261       cat <<\_ASBOX
11262 ## ------------------------------------------ ##
11263 ## Report this to the AC_PACKAGE_NAME lists.  ##
11264 ## ------------------------------------------ ##
11265 _ASBOX
11266     ) |
11267       sed "s/^/$as_me: WARNING:     /" >&2
11268     ;;
11269 esac
11270 echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275   eval "$as_ac_Header=\$ac_header_preproc"
11276 fi
11277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11279
11280 fi
11281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11282   cat >>confdefs.h <<_ACEOF
11283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11284 _ACEOF
11285
11286 fi
11287
11288 done
11289
11290
11291 if test "x$U" != "x"; then
11292         { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
11293 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
11294    { (exit 1); exit 1; }; }
11295 fi
11296 echo "$as_me:$LINENO: checking for inline" >&5
11297 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11298 if test "${ac_cv_c_inline+set}" = set; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   ac_cv_c_inline=no
11302 for ac_kw in inline __inline__ __inline; do
11303   cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h.  */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h.  */
11309 #ifndef __cplusplus
11310 typedef int foo_t;
11311 static $ac_kw foo_t static_foo () {return 0; }
11312 $ac_kw foo_t foo () {return 0; }
11313 #endif
11314
11315 _ACEOF
11316 rm -f conftest.$ac_objext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11318   (eval $ac_compile) 2>conftest.er1
11319   ac_status=$?
11320   grep -v '^ *+' conftest.er1 >conftest.err
11321   rm -f conftest.er1
11322   cat conftest.err >&5
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); } &&
11325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327   (eval $ac_try) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); }; } &&
11331          { ac_try='test -s conftest.$ac_objext'
11332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333   (eval $ac_try) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; }; then
11337   ac_cv_c_inline=$ac_kw; break
11338 else
11339   echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 fi
11343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11344 done
11345
11346 fi
11347 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11348 echo "${ECHO_T}$ac_cv_c_inline" >&6
11349
11350
11351 case $ac_cv_c_inline in
11352   inline | yes) ;;
11353   *)
11354     case $ac_cv_c_inline in
11355       no) ac_val=;;
11356       *) ac_val=$ac_cv_c_inline;;
11357     esac
11358     cat >>confdefs.h <<_ACEOF
11359 #ifndef __cplusplus
11360 #define inline $ac_val
11361 #endif
11362 _ACEOF
11363     ;;
11364 esac
11365
11366 # Find a good install program.  We prefer a C program (faster),
11367 # so one script is as good as another.  But avoid the broken or
11368 # incompatible versions:
11369 # SysV /etc/install, /usr/sbin/install
11370 # SunOS /usr/etc/install
11371 # IRIX /sbin/install
11372 # AIX /bin/install
11373 # AmigaOS /C/install, which installs bootblocks on floppy discs
11374 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11377 # OS/2's system install, which has a completely different semantic
11378 # ./install, which can be erroneously created by make from ./install.sh.
11379 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11380 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11381 if test -z "$INSTALL"; then
11382 if test "${ac_cv_path_install+set}" = set; then
11383   echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11387 do
11388   IFS=$as_save_IFS
11389   test -z "$as_dir" && as_dir=.
11390   # Account for people who put trailing slashes in PATH elements.
11391 case $as_dir/ in
11392   ./ | .// | /cC/* | \
11393   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11394   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11395   /usr/ucb/* ) ;;
11396   *)
11397     # OSF1 and SCO ODT 3.0 have their own names for install.
11398     # Don't use installbsd from OSF since it installs stuff as root
11399     # by default.
11400     for ac_prog in ginstall scoinst install; do
11401       for ac_exec_ext in '' $ac_executable_extensions; do
11402         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11403           if test $ac_prog = install &&
11404             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11405             # AIX install.  It has an incompatible calling convention.
11406             :
11407           elif test $ac_prog = install &&
11408             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11409             # program-specific install script used by HP pwplus--don't use.
11410             :
11411           else
11412             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11413             break 3
11414           fi
11415         fi
11416       done
11417     done
11418     ;;
11419 esac
11420 done
11421
11422
11423 fi
11424   if test "${ac_cv_path_install+set}" = set; then
11425     INSTALL=$ac_cv_path_install
11426   else
11427     # As a last resort, use the slow shell script.  We don't cache a
11428     # path for INSTALL within a source directory, because that will
11429     # break other packages using the cache if that directory is
11430     # removed, or if the path is relative.
11431     INSTALL=$ac_install_sh
11432   fi
11433 fi
11434 echo "$as_me:$LINENO: result: $INSTALL" >&5
11435 echo "${ECHO_T}$INSTALL" >&6
11436
11437 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11438 # It thinks the first close brace ends the variable substitution.
11439 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11440
11441 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11442
11443 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11444
11445 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11446 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11447 if test "${ac_cv_header_stdc+set}" = set; then
11448   echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450   cat >conftest.$ac_ext <<_ACEOF
11451 /* confdefs.h.  */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h.  */
11456 #include <stdlib.h>
11457 #include <stdarg.h>
11458 #include <string.h>
11459 #include <float.h>
11460
11461 int
11462 main ()
11463 {
11464
11465   ;
11466   return 0;
11467 }
11468 _ACEOF
11469 rm -f conftest.$ac_objext
11470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11471   (eval $ac_compile) 2>conftest.er1
11472   ac_status=$?
11473   grep -v '^ *+' conftest.er1 >conftest.err
11474   rm -f conftest.er1
11475   cat conftest.err >&5
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); } &&
11478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480   (eval $ac_try) 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); }; } &&
11484          { ac_try='test -s conftest.$ac_objext'
11485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486   (eval $ac_try) 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); }; }; then
11490   ac_cv_header_stdc=yes
11491 else
11492   echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11494
11495 ac_cv_header_stdc=no
11496 fi
11497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11498
11499 if test $ac_cv_header_stdc = yes; then
11500   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11501   cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 #include <string.h>
11508
11509 _ACEOF
11510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11511   $EGREP "memchr" >/dev/null 2>&1; then
11512   :
11513 else
11514   ac_cv_header_stdc=no
11515 fi
11516 rm -f conftest*
11517
11518 fi
11519
11520 if test $ac_cv_header_stdc = yes; then
11521   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11522   cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h.  */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h.  */
11528 #include <stdlib.h>
11529
11530 _ACEOF
11531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11532   $EGREP "free" >/dev/null 2>&1; then
11533   :
11534 else
11535   ac_cv_header_stdc=no
11536 fi
11537 rm -f conftest*
11538
11539 fi
11540
11541 if test $ac_cv_header_stdc = yes; then
11542   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11543   if test "$cross_compiling" = yes; then
11544   :
11545 else
11546   cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552 #include <ctype.h>
11553 #if ((' ' & 0x0FF) == 0x020)
11554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11556 #else
11557 # define ISLOWER(c) \
11558                    (('a' <= (c) && (c) <= 'i') \
11559                      || ('j' <= (c) && (c) <= 'r') \
11560                      || ('s' <= (c) && (c) <= 'z'))
11561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11562 #endif
11563
11564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11565 int
11566 main ()
11567 {
11568   int i;
11569   for (i = 0; i < 256; i++)
11570     if (XOR (islower (i), ISLOWER (i))
11571         || toupper (i) != TOUPPER (i))
11572       exit(2);
11573   exit (0);
11574 }
11575 _ACEOF
11576 rm -f conftest$ac_exeext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11578   (eval $ac_link) 2>&5
11579   ac_status=$?
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583   (eval $ac_try) 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); }; }; then
11587   :
11588 else
11589   echo "$as_me: program exited with status $ac_status" >&5
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11592
11593 ( exit $ac_status )
11594 ac_cv_header_stdc=no
11595 fi
11596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11597 fi
11598 fi
11599 fi
11600 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11601 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11602 if test $ac_cv_header_stdc = yes; then
11603
11604 cat >>confdefs.h <<\_ACEOF
11605 #define STDC_HEADERS 1
11606 _ACEOF
11607
11608 fi
11609
11610
11611
11612
11613
11614 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
11615 do
11616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11618   echo "$as_me:$LINENO: checking for $ac_header" >&5
11619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 fi
11623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11625 else
11626   # Is the header compilable?
11627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11629 cat >conftest.$ac_ext <<_ACEOF
11630 /* confdefs.h.  */
11631 _ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h.  */
11635 $ac_includes_default
11636 #include <$ac_header>
11637 _ACEOF
11638 rm -f conftest.$ac_objext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640   (eval $ac_compile) 2>conftest.er1
11641   ac_status=$?
11642   grep -v '^ *+' conftest.er1 >conftest.err
11643   rm -f conftest.er1
11644   cat conftest.err >&5
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); } &&
11647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649   (eval $ac_try) 2>&5
11650   ac_status=$?
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); }; } &&
11653          { ac_try='test -s conftest.$ac_objext'
11654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655   (eval $ac_try) 2>&5
11656   ac_status=$?
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); }; }; then
11659   ac_header_compiler=yes
11660 else
11661   echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664 ac_header_compiler=no
11665 fi
11666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11668 echo "${ECHO_T}$ac_header_compiler" >&6
11669
11670 # Is the header present?
11671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11673 cat >conftest.$ac_ext <<_ACEOF
11674 /* confdefs.h.  */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h.  */
11679 #include <$ac_header>
11680 _ACEOF
11681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11682   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11683   ac_status=$?
11684   grep -v '^ *+' conftest.er1 >conftest.err
11685   rm -f conftest.er1
11686   cat conftest.err >&5
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); } >/dev/null; then
11689   if test -s conftest.err; then
11690     ac_cpp_err=$ac_c_preproc_warn_flag
11691     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11692   else
11693     ac_cpp_err=
11694   fi
11695 else
11696   ac_cpp_err=yes
11697 fi
11698 if test -z "$ac_cpp_err"; then
11699   ac_header_preproc=yes
11700 else
11701   echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11703
11704   ac_header_preproc=no
11705 fi
11706 rm -f conftest.err conftest.$ac_ext
11707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11708 echo "${ECHO_T}$ac_header_preproc" >&6
11709
11710 # So?  What about this header?
11711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11712   yes:no: )
11713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11717     ac_header_preproc=yes
11718     ;;
11719   no:yes:* )
11720     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11722     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11723 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11724     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11726     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11727 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11730     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11732     (
11733       cat <<\_ASBOX
11734 ## ------------------------------------------ ##
11735 ## Report this to the AC_PACKAGE_NAME lists.  ##
11736 ## ------------------------------------------ ##
11737 _ASBOX
11738     ) |
11739       sed "s/^/$as_me: WARNING:     /" >&2
11740     ;;
11741 esac
11742 echo "$as_me:$LINENO: checking for $ac_header" >&5
11743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747   eval "$as_ac_Header=\$ac_header_preproc"
11748 fi
11749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11751
11752 fi
11753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11754   cat >>confdefs.h <<_ACEOF
11755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11756 _ACEOF
11757
11758 fi
11759
11760 done
11761
11762 if test "${ac_cv_header_stdarg_h+set}" = set; then
11763   echo "$as_me:$LINENO: checking for stdarg.h" >&5
11764 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
11765 if test "${ac_cv_header_stdarg_h+set}" = set; then
11766   echo $ECHO_N "(cached) $ECHO_C" >&6
11767 fi
11768 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
11769 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
11770 else
11771   # Is the header compilable?
11772 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
11773 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h.  */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h.  */
11780 $ac_includes_default
11781 #include <stdarg.h>
11782 _ACEOF
11783 rm -f conftest.$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785   (eval $ac_compile) 2>conftest.er1
11786   ac_status=$?
11787   grep -v '^ *+' conftest.er1 >conftest.err
11788   rm -f conftest.er1
11789   cat conftest.err >&5
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); } &&
11792          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794   (eval $ac_try) 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); }; } &&
11798          { ac_try='test -s conftest.$ac_objext'
11799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800   (eval $ac_try) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; }; then
11804   ac_header_compiler=yes
11805 else
11806   echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11808
11809 ac_header_compiler=no
11810 fi
11811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11813 echo "${ECHO_T}$ac_header_compiler" >&6
11814
11815 # Is the header present?
11816 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
11817 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
11818 cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 #include <stdarg.h>
11825 _ACEOF
11826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11828   ac_status=$?
11829   grep -v '^ *+' conftest.er1 >conftest.err
11830   rm -f conftest.er1
11831   cat conftest.err >&5
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); } >/dev/null; then
11834   if test -s conftest.err; then
11835     ac_cpp_err=$ac_c_preproc_warn_flag
11836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11837   else
11838     ac_cpp_err=
11839   fi
11840 else
11841   ac_cpp_err=yes
11842 fi
11843 if test -z "$ac_cpp_err"; then
11844   ac_header_preproc=yes
11845 else
11846   echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849   ac_header_preproc=no
11850 fi
11851 rm -f conftest.err conftest.$ac_ext
11852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11853 echo "${ECHO_T}$ac_header_preproc" >&6
11854
11855 # So?  What about this header?
11856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11857   yes:no: )
11858     { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
11859 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11860     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
11861 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
11862     ac_header_preproc=yes
11863     ;;
11864   no:yes:* )
11865     { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
11866 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
11867     { echo "$as_me:$LINENO: WARNING: stdarg.h:     check for missing prerequisite headers?" >&5
11868 echo "$as_me: WARNING: stdarg.h:     check for missing prerequisite headers?" >&2;}
11869     { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
11870 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
11871     { echo "$as_me:$LINENO: WARNING: stdarg.h:     section \"Present But Cannot Be Compiled\"" >&5
11872 echo "$as_me: WARNING: stdarg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11873     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
11874 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
11875     { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
11876 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
11877     (
11878       cat <<\_ASBOX
11879 ## ------------------------------------------ ##
11880 ## Report this to the AC_PACKAGE_NAME lists.  ##
11881 ## ------------------------------------------ ##
11882 _ASBOX
11883     ) |
11884       sed "s/^/$as_me: WARNING:     /" >&2
11885     ;;
11886 esac
11887 echo "$as_me:$LINENO: checking for stdarg.h" >&5
11888 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
11889 if test "${ac_cv_header_stdarg_h+set}" = set; then
11890   echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892   ac_cv_header_stdarg_h=$ac_header_preproc
11893 fi
11894 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
11895 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
11896
11897 fi
11898 if test $ac_cv_header_stdarg_h = yes; then
11899
11900 cat >>confdefs.h <<\_ACEOF
11901 #define HAVE_STDARG_H 1
11902 _ACEOF
11903
11904 else
11905   { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
11906 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
11907    { (exit 1); exit 1; }; }
11908 fi
11909
11910
11911 echo "$as_me:$LINENO: checking for working strcoll" >&5
11912 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
11913 if test "${ac_cv_func_strcoll_works+set}" = set; then
11914   echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11916   if test "$cross_compiling" = yes; then
11917   ac_cv_func_strcoll_works=no
11918 else
11919   cat >conftest.$ac_ext <<_ACEOF
11920 /* confdefs.h.  */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h.  */
11925 $ac_includes_default
11926 int
11927 main ()
11928 {
11929 exit (strcoll ("abc", "def") >= 0 ||
11930          strcoll ("ABC", "DEF") >= 0 ||
11931          strcoll ("123", "456") >= 0)
11932   ;
11933   return 0;
11934 }
11935 _ACEOF
11936 rm -f conftest$ac_exeext
11937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11938   (eval $ac_link) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943   (eval $ac_try) 2>&5
11944   ac_status=$?
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); }; }; then
11947   ac_cv_func_strcoll_works=yes
11948 else
11949   echo "$as_me: program exited with status $ac_status" >&5
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 ( exit $ac_status )
11954 ac_cv_func_strcoll_works=no
11955 fi
11956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11957 fi
11958 fi
11959 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
11960 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
11961 if test $ac_cv_func_strcoll_works = yes; then
11962
11963 cat >>confdefs.h <<\_ACEOF
11964 #define HAVE_STRCOLL 1
11965 _ACEOF
11966
11967 fi
11968
11969
11970 for ac_func in setlocale
11971 do
11972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973 echo "$as_me:$LINENO: checking for $ac_func" >&5
11974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11975 if eval "test \"\${$as_ac_var+set}\" = set"; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978   cat >conftest.$ac_ext <<_ACEOF
11979 /* confdefs.h.  */
11980 _ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h.  */
11984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11986 #define $ac_func innocuous_$ac_func
11987
11988 /* System header to define __stub macros and hopefully few prototypes,
11989     which can conflict with char $ac_func (); below.
11990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11991     <limits.h> exists even on freestanding compilers.  */
11992
11993 #ifdef __STDC__
11994 # include <limits.h>
11995 #else
11996 # include <assert.h>
11997 #endif
11998
11999 #undef $ac_func
12000
12001 /* Override any gcc2 internal prototype to avoid an error.  */
12002 #ifdef __cplusplus
12003 extern "C"
12004 {
12005 #endif
12006 /* We use char because int might match the return type of a gcc2
12007    builtin and then its argument prototype would still apply.  */
12008 char $ac_func ();
12009 /* The GNU C library defines this for functions which it implements
12010     to always fail with ENOSYS.  Some functions are actually named
12011     something starting with __ and the normal name is an alias.  */
12012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12013 choke me
12014 #else
12015 char (*f) () = $ac_func;
12016 #endif
12017 #ifdef __cplusplus
12018 }
12019 #endif
12020
12021 int
12022 main ()
12023 {
12024 return f != $ac_func;
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031   (eval $ac_link) 2>conftest.er1
12032   ac_status=$?
12033   grep -v '^ *+' conftest.er1 >conftest.err
12034   rm -f conftest.er1
12035   cat conftest.err >&5
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); } &&
12038          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040   (eval $ac_try) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; } &&
12044          { ac_try='test -s conftest$ac_exeext'
12045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046   (eval $ac_try) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); }; }; then
12050   eval "$as_ac_var=yes"
12051 else
12052   echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12054
12055 eval "$as_ac_var=no"
12056 fi
12057 rm -f conftest.err conftest.$ac_objext \
12058       conftest$ac_exeext conftest.$ac_ext
12059 fi
12060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12062 if test `eval echo '${'$as_ac_var'}'` = yes; then
12063   cat >>confdefs.h <<_ACEOF
12064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12065 _ACEOF
12066
12067 fi
12068 done
12069
12070
12071 ac_widec_funcs=yes
12072 if test "${ac_cv_header_wchar_h+set}" = set; then
12073   echo "$as_me:$LINENO: checking for wchar.h" >&5
12074 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
12075 if test "${ac_cv_header_wchar_h+set}" = set; then
12076   echo $ECHO_N "(cached) $ECHO_C" >&6
12077 fi
12078 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
12079 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
12080 else
12081   # Is the header compilable?
12082 echo "$as_me:$LINENO: checking wchar.h usability" >&5
12083 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h.  */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h.  */
12090 $ac_includes_default
12091 #include <wchar.h>
12092 _ACEOF
12093 rm -f conftest.$ac_objext
12094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095   (eval $ac_compile) 2>conftest.er1
12096   ac_status=$?
12097   grep -v '^ *+' conftest.er1 >conftest.err
12098   rm -f conftest.er1
12099   cat conftest.err >&5
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); } &&
12102          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104   (eval $ac_try) 2>&5
12105   ac_status=$?
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); }; } &&
12108          { ac_try='test -s conftest.$ac_objext'
12109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110   (eval $ac_try) 2>&5
12111   ac_status=$?
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); }; }; then
12114   ac_header_compiler=yes
12115 else
12116   echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 ac_header_compiler=no
12120 fi
12121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12123 echo "${ECHO_T}$ac_header_compiler" >&6
12124
12125 # Is the header present?
12126 echo "$as_me:$LINENO: checking wchar.h presence" >&5
12127 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
12128 cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h.  */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h.  */
12134 #include <wchar.h>
12135 _ACEOF
12136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12138   ac_status=$?
12139   grep -v '^ *+' conftest.er1 >conftest.err
12140   rm -f conftest.er1
12141   cat conftest.err >&5
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); } >/dev/null; then
12144   if test -s conftest.err; then
12145     ac_cpp_err=$ac_c_preproc_warn_flag
12146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12147   else
12148     ac_cpp_err=
12149   fi
12150 else
12151   ac_cpp_err=yes
12152 fi
12153 if test -z "$ac_cpp_err"; then
12154   ac_header_preproc=yes
12155 else
12156   echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12158
12159   ac_header_preproc=no
12160 fi
12161 rm -f conftest.err conftest.$ac_ext
12162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12163 echo "${ECHO_T}$ac_header_preproc" >&6
12164
12165 # So?  What about this header?
12166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12167   yes:no: )
12168     { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
12169 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12170     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
12171 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
12172     ac_header_preproc=yes
12173     ;;
12174   no:yes:* )
12175     { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
12176 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
12177     { echo "$as_me:$LINENO: WARNING: wchar.h:     check for missing prerequisite headers?" >&5
12178 echo "$as_me: WARNING: wchar.h:     check for missing prerequisite headers?" >&2;}
12179     { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
12180 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
12181     { echo "$as_me:$LINENO: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&5
12182 echo "$as_me: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12183     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
12184 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
12185     { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
12186 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
12187     (
12188       cat <<\_ASBOX
12189 ## ------------------------------------------ ##
12190 ## Report this to the AC_PACKAGE_NAME lists.  ##
12191 ## ------------------------------------------ ##
12192 _ASBOX
12193     ) |
12194       sed "s/^/$as_me: WARNING:     /" >&2
12195     ;;
12196 esac
12197 echo "$as_me:$LINENO: checking for wchar.h" >&5
12198 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
12199 if test "${ac_cv_header_wchar_h+set}" = set; then
12200   echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202   ac_cv_header_wchar_h=$ac_header_preproc
12203 fi
12204 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
12205 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
12206
12207 fi
12208 if test $ac_cv_header_wchar_h = yes; then
12209
12210         ac_have_wchar_h=yes
12211
12212 cat >>confdefs.h <<\_ACEOF
12213 #define HAVE_WCHAR_H 1
12214 _ACEOF
12215
12216 else
12217   ac_have_wchar_h=no
12218 fi
12219
12220
12221
12222
12223
12224
12225 for ac_func in mbtowc wcwidth mbrtowc mbsinit
12226 do
12227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12228 echo "$as_me:$LINENO: checking for $ac_func" >&5
12229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12230 if eval "test \"\${$as_ac_var+set}\" = set"; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h.  */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h.  */
12239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12241 #define $ac_func innocuous_$ac_func
12242
12243 /* System header to define __stub macros and hopefully few prototypes,
12244     which can conflict with char $ac_func (); below.
12245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12246     <limits.h> exists even on freestanding compilers.  */
12247
12248 #ifdef __STDC__
12249 # include <limits.h>
12250 #else
12251 # include <assert.h>
12252 #endif
12253
12254 #undef $ac_func
12255
12256 /* Override any gcc2 internal prototype to avoid an error.  */
12257 #ifdef __cplusplus
12258 extern "C"
12259 {
12260 #endif
12261 /* We use char because int might match the return type of a gcc2
12262    builtin and then its argument prototype would still apply.  */
12263 char $ac_func ();
12264 /* The GNU C library defines this for functions which it implements
12265     to always fail with ENOSYS.  Some functions are actually named
12266     something starting with __ and the normal name is an alias.  */
12267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12268 choke me
12269 #else
12270 char (*f) () = $ac_func;
12271 #endif
12272 #ifdef __cplusplus
12273 }
12274 #endif
12275
12276 int
12277 main ()
12278 {
12279 return f != $ac_func;
12280   ;
12281   return 0;
12282 }
12283 _ACEOF
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12286   (eval $ac_link) 2>conftest.er1
12287   ac_status=$?
12288   grep -v '^ *+' conftest.er1 >conftest.err
12289   rm -f conftest.er1
12290   cat conftest.err >&5
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); } &&
12293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; } &&
12299          { ac_try='test -s conftest$ac_exeext'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; }; then
12305   eval "$as_ac_var=yes"
12306 else
12307   echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310 eval "$as_ac_var=no"
12311 fi
12312 rm -f conftest.err conftest.$ac_objext \
12313       conftest$ac_exeext conftest.$ac_ext
12314 fi
12315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12317 if test `eval echo '${'$as_ac_var'}'` = yes; then
12318   cat >>confdefs.h <<_ACEOF
12319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12320 _ACEOF
12321
12322 else
12323   ac_widec_funcs=no
12324 fi
12325 done
12326
12327 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
12328 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
12329 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
12330   echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332   cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h.  */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h.  */
12338 $ac_includes_default
12339 int
12340 main ()
12341 {
12342 #ifndef wcwidth
12343   char *p = (char *) wcwidth;
12344 #endif
12345
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352   (eval $ac_compile) 2>conftest.er1
12353   ac_status=$?
12354   grep -v '^ *+' conftest.er1 >conftest.err
12355   rm -f conftest.er1
12356   cat conftest.err >&5
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } &&
12359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; } &&
12365          { ac_try='test -s conftest.$ac_objext'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; }; then
12371   ac_cv_have_decl_wcwidth=yes
12372 else
12373   echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376 ac_cv_have_decl_wcwidth=no
12377 fi
12378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12379 fi
12380 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
12381 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
12382 if test $ac_cv_have_decl_wcwidth = yes; then
12383
12384 cat >>confdefs.h <<_ACEOF
12385 #define HAVE_DECL_WCWIDTH 1
12386 _ACEOF
12387
12388
12389 else
12390   cat >>confdefs.h <<_ACEOF
12391 #define HAVE_DECL_WCWIDTH 0
12392 _ACEOF
12393
12394
12395 fi
12396
12397
12398 echo "$as_me:$LINENO: checking for wchar_t" >&5
12399 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
12400 if test "${ac_cv_type_wchar_t+set}" = set; then
12401   echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403   cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h.  */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h.  */
12409 $ac_includes_default
12410 int
12411 main ()
12412 {
12413 if ((wchar_t *) 0)
12414   return 0;
12415 if (sizeof (wchar_t))
12416   return 0;
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423   (eval $ac_compile) 2>conftest.er1
12424   ac_status=$?
12425   grep -v '^ *+' conftest.er1 >conftest.err
12426   rm -f conftest.er1
12427   cat conftest.err >&5
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); } &&
12430          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432   (eval $ac_try) 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); }; } &&
12436          { ac_try='test -s conftest.$ac_objext'
12437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438   (eval $ac_try) 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; }; then
12442   ac_cv_type_wchar_t=yes
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447 ac_cv_type_wchar_t=no
12448 fi
12449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12450 fi
12451 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
12452 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
12453 if test $ac_cv_type_wchar_t = yes; then
12454   :
12455 else
12456   ac_widec_funcs=no
12457 fi
12458
12459
12460 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
12461         ac_widec_possible=yes
12462 else
12463         ac_widec_possible=no
12464 fi
12465
12466
12467 abook_cv_curses=/usr
12468
12469 # Check whether --with-curses or --without-curses was given.
12470 if test "${with_curses+set}" = set; then
12471   withval="$with_curses"
12472   if test $withval != yes; then
12473                 abook_cv_curses=$withval
12474         fi
12475         if test x$abook_cv_curses != x/usr; then
12476                 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
12477                 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
12478         fi
12479 fi;
12480
12481 echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
12482 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6
12483 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
12484   echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486   ac_check_lib_save_LIBS=$LIBS
12487 LIBS="-lncursesw  $LIBS"
12488 cat >conftest.$ac_ext <<_ACEOF
12489 /* confdefs.h.  */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h.  */
12494
12495 /* Override any gcc2 internal prototype to avoid an error.  */
12496 #ifdef __cplusplus
12497 extern "C"
12498 #endif
12499 /* We use char because int might match the return type of a gcc2
12500    builtin and then its argument prototype would still apply.  */
12501 char initscr ();
12502 int
12503 main ()
12504 {
12505 initscr ();
12506   ;
12507   return 0;
12508 }
12509 _ACEOF
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512   (eval $ac_link) 2>conftest.er1
12513   ac_status=$?
12514   grep -v '^ *+' conftest.er1 >conftest.err
12515   rm -f conftest.er1
12516   cat conftest.err >&5
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); } &&
12519          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; } &&
12525          { ac_try='test -s conftest$ac_exeext'
12526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527   (eval $ac_try) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; }; then
12531   ac_cv_lib_ncursesw_initscr=yes
12532 else
12533   echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 ac_cv_lib_ncursesw_initscr=no
12537 fi
12538 rm -f conftest.err conftest.$ac_objext \
12539       conftest$ac_exeext conftest.$ac_ext
12540 LIBS=$ac_check_lib_save_LIBS
12541 fi
12542 echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
12543 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6
12544 if test $ac_cv_lib_ncursesw_initscr = yes; then
12545   LIBS="$LIBS -lncursesw"
12546         if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
12547                 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
12548         fi
12549
12550 for ac_header in ncurses.h
12551 do
12552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12554   echo "$as_me:$LINENO: checking for $ac_header" >&5
12555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12557   echo $ECHO_N "(cached) $ECHO_C" >&6
12558 fi
12559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12561 else
12562   # Is the header compilable?
12563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h.  */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h.  */
12571 $ac_includes_default
12572 #include <$ac_header>
12573 _ACEOF
12574 rm -f conftest.$ac_objext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576   (eval $ac_compile) 2>conftest.er1
12577   ac_status=$?
12578   grep -v '^ *+' conftest.er1 >conftest.err
12579   rm -f conftest.er1
12580   cat conftest.err >&5
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } &&
12583          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585   (eval $ac_try) 2>&5
12586   ac_status=$?
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); }; } &&
12589          { ac_try='test -s conftest.$ac_objext'
12590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591   (eval $ac_try) 2>&5
12592   ac_status=$?
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); }; }; then
12595   ac_header_compiler=yes
12596 else
12597   echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12599
12600 ac_header_compiler=no
12601 fi
12602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12604 echo "${ECHO_T}$ac_header_compiler" >&6
12605
12606 # Is the header present?
12607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h.  */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h.  */
12615 #include <$ac_header>
12616 _ACEOF
12617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12619   ac_status=$?
12620   grep -v '^ *+' conftest.er1 >conftest.err
12621   rm -f conftest.er1
12622   cat conftest.err >&5
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); } >/dev/null; then
12625   if test -s conftest.err; then
12626     ac_cpp_err=$ac_c_preproc_warn_flag
12627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12628   else
12629     ac_cpp_err=
12630   fi
12631 else
12632   ac_cpp_err=yes
12633 fi
12634 if test -z "$ac_cpp_err"; then
12635   ac_header_preproc=yes
12636 else
12637   echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640   ac_header_preproc=no
12641 fi
12642 rm -f conftest.err conftest.$ac_ext
12643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12644 echo "${ECHO_T}$ac_header_preproc" >&6
12645
12646 # So?  What about this header?
12647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12648   yes:no: )
12649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12653     ac_header_preproc=yes
12654     ;;
12655   no:yes:* )
12656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12658     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12659 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12660     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12662     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12663 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12666     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12668     (
12669       cat <<\_ASBOX
12670 ## ------------------------------------------ ##
12671 ## Report this to the AC_PACKAGE_NAME lists.  ##
12672 ## ------------------------------------------ ##
12673 _ASBOX
12674     ) |
12675       sed "s/^/$as_me: WARNING:     /" >&2
12676     ;;
12677 esac
12678 echo "$as_me:$LINENO: checking for $ac_header" >&5
12679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12681   echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683   eval "$as_ac_Header=\$ac_header_preproc"
12684 fi
12685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12687
12688 fi
12689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12690   cat >>confdefs.h <<_ACEOF
12691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12692 _ACEOF
12693
12694 fi
12695
12696 done
12697
12698 else
12699
12700         ac_widec_possible=no
12701         echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
12702 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
12703 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706   ac_check_lib_save_LIBS=$LIBS
12707 LIBS="-lncurses  $LIBS"
12708 cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h.  */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h.  */
12714
12715 /* Override any gcc2 internal prototype to avoid an error.  */
12716 #ifdef __cplusplus
12717 extern "C"
12718 #endif
12719 /* We use char because int might match the return type of a gcc2
12720    builtin and then its argument prototype would still apply.  */
12721 char initscr ();
12722 int
12723 main ()
12724 {
12725 initscr ();
12726   ;
12727   return 0;
12728 }
12729 _ACEOF
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12732   (eval $ac_link) 2>conftest.er1
12733   ac_status=$?
12734   grep -v '^ *+' conftest.er1 >conftest.err
12735   rm -f conftest.er1
12736   cat conftest.err >&5
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } &&
12739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741   (eval $ac_try) 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); }; } &&
12745          { ac_try='test -s conftest$ac_exeext'
12746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747   (eval $ac_try) 2>&5
12748   ac_status=$?
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); }; }; then
12751   ac_cv_lib_ncurses_initscr=yes
12752 else
12753   echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12755
12756 ac_cv_lib_ncurses_initscr=no
12757 fi
12758 rm -f conftest.err conftest.$ac_objext \
12759       conftest$ac_exeext conftest.$ac_ext
12760 LIBS=$ac_check_lib_save_LIBS
12761 fi
12762 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
12763 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
12764 if test $ac_cv_lib_ncurses_initscr = yes; then
12765   LIBS="$LIBS -lncurses"
12766                 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
12767                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
12768                 fi
12769
12770 for ac_header in ncurses.h
12771 do
12772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12774   echo "$as_me:$LINENO: checking for $ac_header" >&5
12775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12777   echo $ECHO_N "(cached) $ECHO_C" >&6
12778 fi
12779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12781 else
12782   # Is the header compilable?
12783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12785 cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h.  */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h.  */
12791 $ac_includes_default
12792 #include <$ac_header>
12793 _ACEOF
12794 rm -f conftest.$ac_objext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796   (eval $ac_compile) 2>conftest.er1
12797   ac_status=$?
12798   grep -v '^ *+' conftest.er1 >conftest.err
12799   rm -f conftest.er1
12800   cat conftest.err >&5
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); } &&
12803          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805   (eval $ac_try) 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); }; } &&
12809          { ac_try='test -s conftest.$ac_objext'
12810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811   (eval $ac_try) 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; }; then
12815   ac_header_compiler=yes
12816 else
12817   echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12819
12820 ac_header_compiler=no
12821 fi
12822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12824 echo "${ECHO_T}$ac_header_compiler" >&6
12825
12826 # Is the header present?
12827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12829 cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h.  */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h.  */
12835 #include <$ac_header>
12836 _ACEOF
12837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12839   ac_status=$?
12840   grep -v '^ *+' conftest.er1 >conftest.err
12841   rm -f conftest.er1
12842   cat conftest.err >&5
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } >/dev/null; then
12845   if test -s conftest.err; then
12846     ac_cpp_err=$ac_c_preproc_warn_flag
12847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12848   else
12849     ac_cpp_err=
12850   fi
12851 else
12852   ac_cpp_err=yes
12853 fi
12854 if test -z "$ac_cpp_err"; then
12855   ac_header_preproc=yes
12856 else
12857   echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860   ac_header_preproc=no
12861 fi
12862 rm -f conftest.err conftest.$ac_ext
12863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12864 echo "${ECHO_T}$ac_header_preproc" >&6
12865
12866 # So?  What about this header?
12867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12868   yes:no: )
12869     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12873     ac_header_preproc=yes
12874     ;;
12875   no:yes:* )
12876     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12878     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12879 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12880     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12882     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12883 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12886     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12888     (
12889       cat <<\_ASBOX
12890 ## ------------------------------------------ ##
12891 ## Report this to the AC_PACKAGE_NAME lists.  ##
12892 ## ------------------------------------------ ##
12893 _ASBOX
12894     ) |
12895       sed "s/^/$as_me: WARNING:     /" >&2
12896     ;;
12897 esac
12898 echo "$as_me:$LINENO: checking for $ac_header" >&5
12899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12901   echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903   eval "$as_ac_Header=\$ac_header_preproc"
12904 fi
12905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12907
12908 fi
12909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12910   cat >>confdefs.h <<_ACEOF
12911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12912 _ACEOF
12913
12914 fi
12915
12916 done
12917
12918 else
12919
12920 echo "$as_me:$LINENO: checking for initscr" >&5
12921 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
12922 if test "${ac_cv_func_initscr+set}" = set; then
12923   echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925   cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h.  */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h.  */
12931 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
12932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12933 #define initscr innocuous_initscr
12934
12935 /* System header to define __stub macros and hopefully few prototypes,
12936     which can conflict with char initscr (); below.
12937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12938     <limits.h> exists even on freestanding compilers.  */
12939
12940 #ifdef __STDC__
12941 # include <limits.h>
12942 #else
12943 # include <assert.h>
12944 #endif
12945
12946 #undef initscr
12947
12948 /* Override any gcc2 internal prototype to avoid an error.  */
12949 #ifdef __cplusplus
12950 extern "C"
12951 {
12952 #endif
12953 /* We use char because int might match the return type of a gcc2
12954    builtin and then its argument prototype would still apply.  */
12955 char initscr ();
12956 /* The GNU C library defines this for functions which it implements
12957     to always fail with ENOSYS.  Some functions are actually named
12958     something starting with __ and the normal name is an alias.  */
12959 #if defined (__stub_initscr) || defined (__stub___initscr)
12960 choke me
12961 #else
12962 char (*f) () = initscr;
12963 #endif
12964 #ifdef __cplusplus
12965 }
12966 #endif
12967
12968 int
12969 main ()
12970 {
12971 return f != initscr;
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978   (eval $ac_link) 2>conftest.er1
12979   ac_status=$?
12980   grep -v '^ *+' conftest.er1 >conftest.err
12981   rm -f conftest.er1
12982   cat conftest.err >&5
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); } &&
12985          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987   (eval $ac_try) 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; } &&
12991          { ac_try='test -s conftest$ac_exeext'
12992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993   (eval $ac_try) 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; }; then
12997   ac_cv_func_initscr=yes
12998 else
12999   echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13001
13002 ac_cv_func_initscr=no
13003 fi
13004 rm -f conftest.err conftest.$ac_objext \
13005       conftest$ac_exeext conftest.$ac_ext
13006 fi
13007 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
13008 echo "${ECHO_T}$ac_cv_func_initscr" >&6
13009 if test $ac_cv_func_initscr = yes; then
13010   :
13011 else
13012
13013 case $host_os in #(vi
13014 freebsd*) #(vi
13015         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
13016 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
13017 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
13018   echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020   ac_check_lib_save_LIBS=$LIBS
13021 LIBS="-lmytinfo  $LIBS"
13022 cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h.  */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h.  */
13028
13029 /* Override any gcc2 internal prototype to avoid an error.  */
13030 #ifdef __cplusplus
13031 extern "C"
13032 #endif
13033 /* We use char because int might match the return type of a gcc2
13034    builtin and then its argument prototype would still apply.  */
13035 char tgoto ();
13036 int
13037 main ()
13038 {
13039 tgoto ();
13040   ;
13041   return 0;
13042 }
13043 _ACEOF
13044 rm -f conftest.$ac_objext conftest$ac_exeext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13046   (eval $ac_link) 2>conftest.er1
13047   ac_status=$?
13048   grep -v '^ *+' conftest.er1 >conftest.err
13049   rm -f conftest.er1
13050   cat conftest.err >&5
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } &&
13053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055   (eval $ac_try) 2>&5
13056   ac_status=$?
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); }; } &&
13059          { ac_try='test -s conftest$ac_exeext'
13060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061   (eval $ac_try) 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); }; }; then
13065   ac_cv_lib_mytinfo_tgoto=yes
13066 else
13067   echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13069
13070 ac_cv_lib_mytinfo_tgoto=no
13071 fi
13072 rm -f conftest.err conftest.$ac_objext \
13073       conftest$ac_exeext conftest.$ac_ext
13074 LIBS=$ac_check_lib_save_LIBS
13075 fi
13076 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
13077 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
13078 if test $ac_cv_lib_mytinfo_tgoto = yes; then
13079   LIBS="-lmytinfo $LIBS"
13080 fi
13081
13082         ;;
13083 hpux10.*|hpux11.*)
13084         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
13085 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
13086 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
13087   echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089   ac_check_lib_save_LIBS=$LIBS
13090 LIBS="-lcur_colr  $LIBS"
13091 cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h.  */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h.  */
13097
13098 /* Override any gcc2 internal prototype to avoid an error.  */
13099 #ifdef __cplusplus
13100 extern "C"
13101 #endif
13102 /* We use char because int might match the return type of a gcc2
13103    builtin and then its argument prototype would still apply.  */
13104 char initscr ();
13105 int
13106 main ()
13107 {
13108 initscr ();
13109   ;
13110   return 0;
13111 }
13112 _ACEOF
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115   (eval $ac_link) 2>conftest.er1
13116   ac_status=$?
13117   grep -v '^ *+' conftest.er1 >conftest.err
13118   rm -f conftest.er1
13119   cat conftest.err >&5
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); } &&
13122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124   (eval $ac_try) 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; } &&
13128          { ac_try='test -s conftest$ac_exeext'
13129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130   (eval $ac_try) 2>&5
13131   ac_status=$?
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); }; }; then
13134   ac_cv_lib_cur_colr_initscr=yes
13135 else
13136   echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13138
13139 ac_cv_lib_cur_colr_initscr=no
13140 fi
13141 rm -f conftest.err conftest.$ac_objext \
13142       conftest$ac_exeext conftest.$ac_ext
13143 LIBS=$ac_check_lib_save_LIBS
13144 fi
13145 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
13146 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
13147 if test $ac_cv_lib_cur_colr_initscr = yes; then
13148
13149                 LIBS="-lcur_colr $LIBS"
13150                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
13151                 ac_cv_func_initscr=yes
13152
13153 else
13154
13155         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
13156 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
13157 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   ac_check_lib_save_LIBS=$LIBS
13161 LIBS="-lHcurses  $LIBS"
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h.  */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h.  */
13168
13169 /* Override any gcc2 internal prototype to avoid an error.  */
13170 #ifdef __cplusplus
13171 extern "C"
13172 #endif
13173 /* We use char because int might match the return type of a gcc2
13174    builtin and then its argument prototype would still apply.  */
13175 char initscr ();
13176 int
13177 main ()
13178 {
13179 initscr ();
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 rm -f conftest.$ac_objext conftest$ac_exeext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13186   (eval $ac_link) 2>conftest.er1
13187   ac_status=$?
13188   grep -v '^ *+' conftest.er1 >conftest.err
13189   rm -f conftest.er1
13190   cat conftest.err >&5
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); } &&
13193          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195   (eval $ac_try) 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); }; } &&
13199          { ac_try='test -s conftest$ac_exeext'
13200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201   (eval $ac_try) 2>&5
13202   ac_status=$?
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); }; }; then
13205   ac_cv_lib_Hcurses_initscr=yes
13206 else
13207   echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13209
13210 ac_cv_lib_Hcurses_initscr=no
13211 fi
13212 rm -f conftest.err conftest.$ac_objext \
13213       conftest$ac_exeext conftest.$ac_ext
13214 LIBS=$ac_check_lib_save_LIBS
13215 fi
13216 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
13217 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
13218 if test $ac_cv_lib_Hcurses_initscr = yes; then
13219
13220                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
13221                 LIBS="-lHcurses $LIBS"
13222                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
13223                 ac_cv_func_initscr=yes
13224
13225 fi
13226
13227 fi
13228
13229         ;;
13230 linux*) # Suse Linux does not follow /usr/lib convention
13231         LIBS="$LIBS -L/lib"
13232         ;;
13233 esac
13234
13235 if test ".$With5lib" != ".no" ; then
13236 if test -d /usr/5lib ; then
13237         # SunOS 3.x or 4.x
13238         CPPFLAGS="$CPPFLAGS -I/usr/5include"
13239         LIBS="$LIBS -L/usr/5lib"
13240 fi
13241 fi
13242
13243 if test ".$ac_cv_func_initscr" != .yes ; then
13244         cf_save_LIBS="$LIBS"
13245         cf_term_lib=""
13246         cf_curs_lib=""
13247
13248         # Check for library containing tgoto.  Do this before curses library
13249         # because it may be needed to link the test-case for initscr.
13250         echo "$as_me:$LINENO: checking for tgoto" >&5
13251 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
13252 if test "${ac_cv_func_tgoto+set}" = set; then
13253   echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255   cat >conftest.$ac_ext <<_ACEOF
13256 /* confdefs.h.  */
13257 _ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h.  */
13261 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
13262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13263 #define tgoto innocuous_tgoto
13264
13265 /* System header to define __stub macros and hopefully few prototypes,
13266     which can conflict with char tgoto (); below.
13267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13268     <limits.h> exists even on freestanding compilers.  */
13269
13270 #ifdef __STDC__
13271 # include <limits.h>
13272 #else
13273 # include <assert.h>
13274 #endif
13275
13276 #undef tgoto
13277
13278 /* Override any gcc2 internal prototype to avoid an error.  */
13279 #ifdef __cplusplus
13280 extern "C"
13281 {
13282 #endif
13283 /* We use char because int might match the return type of a gcc2
13284    builtin and then its argument prototype would still apply.  */
13285 char tgoto ();
13286 /* The GNU C library defines this for functions which it implements
13287     to always fail with ENOSYS.  Some functions are actually named
13288     something starting with __ and the normal name is an alias.  */
13289 #if defined (__stub_tgoto) || defined (__stub___tgoto)
13290 choke me
13291 #else
13292 char (*f) () = tgoto;
13293 #endif
13294 #ifdef __cplusplus
13295 }
13296 #endif
13297
13298 int
13299 main ()
13300 {
13301 return f != tgoto;
13302   ;
13303   return 0;
13304 }
13305 _ACEOF
13306 rm -f conftest.$ac_objext conftest$ac_exeext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13308   (eval $ac_link) 2>conftest.er1
13309   ac_status=$?
13310   grep -v '^ *+' conftest.er1 >conftest.err
13311   rm -f conftest.er1
13312   cat conftest.err >&5
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); } &&
13315          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317   (eval $ac_try) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); }; } &&
13321          { ac_try='test -s conftest$ac_exeext'
13322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323   (eval $ac_try) 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; }; then
13327   ac_cv_func_tgoto=yes
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_cv_func_tgoto=no
13333 fi
13334 rm -f conftest.err conftest.$ac_objext \
13335       conftest$ac_exeext conftest.$ac_ext
13336 fi
13337 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
13338 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
13339 if test $ac_cv_func_tgoto = yes; then
13340   cf_term_lib=predefined
13341 else
13342
13343                 for cf_term_lib in termcap termlib unknown
13344                 do
13345                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
13346 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
13347 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
13348 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13349   echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351   ac_check_lib_save_LIBS=$LIBS
13352 LIBS="-l$cf_term_lib  $LIBS"
13353 cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h.  */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h.  */
13359
13360 /* Override any gcc2 internal prototype to avoid an error.  */
13361 #ifdef __cplusplus
13362 extern "C"
13363 #endif
13364 /* We use char because int might match the return type of a gcc2
13365    builtin and then its argument prototype would still apply.  */
13366 char tgoto ();
13367 int
13368 main ()
13369 {
13370 tgoto ();
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 rm -f conftest.$ac_objext conftest$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377   (eval $ac_link) 2>conftest.er1
13378   ac_status=$?
13379   grep -v '^ *+' conftest.er1 >conftest.err
13380   rm -f conftest.er1
13381   cat conftest.err >&5
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); } &&
13384          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386   (eval $ac_try) 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; } &&
13390          { ac_try='test -s conftest$ac_exeext'
13391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392   (eval $ac_try) 2>&5
13393   ac_status=$?
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); }; }; then
13396   eval "$as_ac_Lib=yes"
13397 else
13398   echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13400
13401 eval "$as_ac_Lib=no"
13402 fi
13403 rm -f conftest.err conftest.$ac_objext \
13404       conftest$ac_exeext conftest.$ac_ext
13405 LIBS=$ac_check_lib_save_LIBS
13406 fi
13407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13408 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13409 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13410   break
13411 fi
13412
13413                 done
13414
13415 fi
13416
13417
13418         # Check for library containing initscr
13419         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
13420         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
13421         do
13422                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
13423 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
13424 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
13425 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13426   echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428   ac_check_lib_save_LIBS=$LIBS
13429 LIBS="-l$cf_curs_lib  $LIBS"
13430 cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436
13437 /* Override any gcc2 internal prototype to avoid an error.  */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 /* We use char because int might match the return type of a gcc2
13442    builtin and then its argument prototype would still apply.  */
13443 char initscr ();
13444 int
13445 main ()
13446 {
13447 initscr ();
13448   ;
13449   return 0;
13450 }
13451 _ACEOF
13452 rm -f conftest.$ac_objext conftest$ac_exeext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13454   (eval $ac_link) 2>conftest.er1
13455   ac_status=$?
13456   grep -v '^ *+' conftest.er1 >conftest.err
13457   rm -f conftest.er1
13458   cat conftest.err >&5
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); } &&
13461          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463   (eval $ac_try) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); }; } &&
13467          { ac_try='test -s conftest$ac_exeext'
13468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469   (eval $ac_try) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; }; then
13473   eval "$as_ac_Lib=yes"
13474 else
13475   echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478 eval "$as_ac_Lib=no"
13479 fi
13480 rm -f conftest.err conftest.$ac_objext \
13481       conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13483 fi
13484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13485 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13486 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13487   break
13488 fi
13489
13490         done
13491         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
13492 echo "$as_me: error: no curses library found" >&2;}
13493    { (exit 1); exit 1; }; }
13494
13495         LIBS="-l$cf_curs_lib $cf_save_LIBS"
13496         if test "$cf_term_lib" = unknown ; then
13497                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
13498 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
13499                 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h.  */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h.  */
13505 #include <${cf_cv_ncurses_header-curses.h}>
13506 int
13507 main ()
13508 {
13509 initscr()
13510   ;
13511   return 0;
13512 }
13513 _ACEOF
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13516   (eval $ac_link) 2>conftest.er1
13517   ac_status=$?
13518   grep -v '^ *+' conftest.er1 >conftest.err
13519   rm -f conftest.er1
13520   cat conftest.err >&5
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } &&
13523          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525   (eval $ac_try) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); }; } &&
13529          { ac_try='test -s conftest$ac_exeext'
13530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531   (eval $ac_try) 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }; then
13535   cf_result=yes
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 cf_result=no
13541 fi
13542 rm -f conftest.err conftest.$ac_objext \
13543       conftest$ac_exeext conftest.$ac_ext
13544                 echo "$as_me:$LINENO: result: $cf_result" >&5
13545 echo "${ECHO_T}$cf_result" >&6
13546                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
13547 echo "$as_me: error: Cannot link curses library" >&2;}
13548    { (exit 1); exit 1; }; }
13549         elif test "$cf_term_lib" != predefined ; then
13550                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
13551 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
13552                 cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h.  */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h.  */
13558 #include <${cf_cv_ncurses_header-curses.h}>
13559 int
13560 main ()
13561 {
13562 initscr(); tgoto((char *)0, 0, 0);
13563   ;
13564   return 0;
13565 }
13566 _ACEOF
13567 rm -f conftest.$ac_objext conftest$ac_exeext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13569   (eval $ac_link) 2>conftest.er1
13570   ac_status=$?
13571   grep -v '^ *+' conftest.er1 >conftest.err
13572   rm -f conftest.er1
13573   cat conftest.err >&5
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); } &&
13576          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578   (eval $ac_try) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; } &&
13582          { ac_try='test -s conftest$ac_exeext'
13583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584   (eval $ac_try) 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }; }; then
13588   cf_result=no
13589 else
13590   echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593
13594                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
13595                         cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h.  */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h.  */
13601 #include <${cf_cv_ncurses_header-curses.h}>
13602 int
13603 main ()
13604 {
13605 initscr()
13606   ;
13607   return 0;
13608 }
13609 _ACEOF
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13612   (eval $ac_link) 2>conftest.er1
13613   ac_status=$?
13614   grep -v '^ *+' conftest.er1 >conftest.err
13615   rm -f conftest.er1
13616   cat conftest.err >&5
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } &&
13619          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621   (eval $ac_try) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; } &&
13625          { ac_try='test -s conftest$ac_exeext'
13626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627   (eval $ac_try) 2>&5
13628   ac_status=$?
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); }; }; then
13631   cf_result=yes
13632 else
13633   echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13635
13636 cf_result=error
13637 fi
13638 rm -f conftest.err conftest.$ac_objext \
13639       conftest$ac_exeext conftest.$ac_ext
13640
13641 fi
13642 rm -f conftest.err conftest.$ac_objext \
13643       conftest$ac_exeext conftest.$ac_ext
13644                 echo "$as_me:$LINENO: result: $cf_result" >&5
13645 echo "${ECHO_T}$cf_result" >&6
13646         fi
13647 fi
13648
13649
13650 fi
13651
13652 fi
13653
13654
13655 fi
13656
13657
13658
13659
13660 abook_cv_readline=/usr
13661
13662 # Check whether --with-readline or --without-readline was given.
13663 if test "${with_readline+set}" = set; then
13664   withval="$with_readline"
13665   if test $withval != yes; then
13666                 abook_cv_readline=$withval
13667         fi
13668         if test x$abook_cv_readline != x/usr; then
13669                 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
13670                 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
13671         fi
13672 fi;
13673
13674
13675   echo "$as_me:$LINENO: checking for a readline compatible library" >&5
13676 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
13677 if test "${ac_cv_lib_readline+set}" = set; then
13678   echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680
13681     ORIG_LIBS="$LIBS"
13682     for readline_lib in readline edit editline; do
13683       for termcap_lib in "" termcap curses ncurses; do
13684         if test -z "$termcap_lib"; then
13685           TRY_LIB="-l$readline_lib"
13686         else
13687           TRY_LIB="-l$readline_lib -l$termcap_lib"
13688         fi
13689         LIBS="$ORIG_LIBS $TRY_LIB"
13690         cat >conftest.$ac_ext <<_ACEOF
13691 /* confdefs.h.  */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h.  */
13696
13697 /* Override any gcc2 internal prototype to avoid an error.  */
13698 #ifdef __cplusplus
13699 extern "C"
13700 #endif
13701 /* We use char because int might match the return type of a gcc2
13702    builtin and then its argument prototype would still apply.  */
13703 char readline ();
13704 int
13705 main ()
13706 {
13707 readline ();
13708   ;
13709   return 0;
13710 }
13711 _ACEOF
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714   (eval $ac_link) 2>conftest.er1
13715   ac_status=$?
13716   grep -v '^ *+' conftest.er1 >conftest.err
13717   rm -f conftest.er1
13718   cat conftest.err >&5
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); } &&
13721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723   (eval $ac_try) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; } &&
13727          { ac_try='test -s conftest$ac_exeext'
13728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729   (eval $ac_try) 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; }; then
13733   ac_cv_lib_readline="$TRY_LIB"
13734 else
13735   echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 fi
13739 rm -f conftest.err conftest.$ac_objext \
13740       conftest$ac_exeext conftest.$ac_ext
13741         if test -n "$ac_cv_lib_readline"; then
13742           break
13743         fi
13744       done
13745       if test -n "$ac_cv_lib_readline"; then
13746         break
13747       fi
13748     done
13749     if test -z "$ac_cv_lib_readline"; then
13750       ac_cv_lib_readline="no"
13751     fi
13752     LIBS="$ORIG_LIBS"
13753
13754 fi
13755 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
13756 echo "${ECHO_T}$ac_cv_lib_readline" >&6
13757
13758   if test "$ac_cv_lib_readline" != "no"; then
13759     LIBS="$LIBS $ac_cv_lib_readline"
13760
13761 cat >>confdefs.h <<\_ACEOF
13762 #define HAVE_LIBREADLINE 1
13763 _ACEOF
13764
13765
13766
13767 for ac_header in readline.h readline/readline.h
13768 do
13769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13771   echo "$as_me:$LINENO: checking for $ac_header" >&5
13772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13774   echo $ECHO_N "(cached) $ECHO_C" >&6
13775 fi
13776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13778 else
13779   # Is the header compilable?
13780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h.  */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h.  */
13788 $ac_includes_default
13789 #include <$ac_header>
13790 _ACEOF
13791 rm -f conftest.$ac_objext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13793   (eval $ac_compile) 2>conftest.er1
13794   ac_status=$?
13795   grep -v '^ *+' conftest.er1 >conftest.err
13796   rm -f conftest.er1
13797   cat conftest.err >&5
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); } &&
13800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802   (eval $ac_try) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; } &&
13806          { ac_try='test -s conftest.$ac_objext'
13807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808   (eval $ac_try) 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); }; }; then
13812   ac_header_compiler=yes
13813 else
13814   echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13816
13817 ac_header_compiler=no
13818 fi
13819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13821 echo "${ECHO_T}$ac_header_compiler" >&6
13822
13823 # Is the header present?
13824 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13826 cat >conftest.$ac_ext <<_ACEOF
13827 /* confdefs.h.  */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h.  */
13832 #include <$ac_header>
13833 _ACEOF
13834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13835   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13836   ac_status=$?
13837   grep -v '^ *+' conftest.er1 >conftest.err
13838   rm -f conftest.er1
13839   cat conftest.err >&5
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); } >/dev/null; then
13842   if test -s conftest.err; then
13843     ac_cpp_err=$ac_c_preproc_warn_flag
13844     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13845   else
13846     ac_cpp_err=
13847   fi
13848 else
13849   ac_cpp_err=yes
13850 fi
13851 if test -z "$ac_cpp_err"; then
13852   ac_header_preproc=yes
13853 else
13854   echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857   ac_header_preproc=no
13858 fi
13859 rm -f conftest.err conftest.$ac_ext
13860 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13861 echo "${ECHO_T}$ac_header_preproc" >&6
13862
13863 # So?  What about this header?
13864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13865   yes:no: )
13866     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13870     ac_header_preproc=yes
13871     ;;
13872   no:yes:* )
13873     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13875     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13876 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13877     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13879     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13880 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13883     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13885     (
13886       cat <<\_ASBOX
13887 ## ------------------------------------------ ##
13888 ## Report this to the AC_PACKAGE_NAME lists.  ##
13889 ## ------------------------------------------ ##
13890 _ASBOX
13891     ) |
13892       sed "s/^/$as_me: WARNING:     /" >&2
13893     ;;
13894 esac
13895 echo "$as_me:$LINENO: checking for $ac_header" >&5
13896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13898   echo $ECHO_N "(cached) $ECHO_C" >&6
13899 else
13900   eval "$as_ac_Header=\$ac_header_preproc"
13901 fi
13902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13904
13905 fi
13906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13907   cat >>confdefs.h <<_ACEOF
13908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13909 _ACEOF
13910
13911 fi
13912
13913 done
13914
13915     echo "$as_me:$LINENO: checking whether readline supports history" >&5
13916 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
13917 if test "${ac_cv_lib_readline_history+set}" = set; then
13918   echo $ECHO_N "(cached) $ECHO_C" >&6
13919 else
13920
13921       ac_cv_lib_readline_history="no"
13922       cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928
13929 /* Override any gcc2 internal prototype to avoid an error.  */
13930 #ifdef __cplusplus
13931 extern "C"
13932 #endif
13933 /* We use char because int might match the return type of a gcc2
13934    builtin and then its argument prototype would still apply.  */
13935 char add_history ();
13936 int
13937 main ()
13938 {
13939 add_history ();
13940   ;
13941   return 0;
13942 }
13943 _ACEOF
13944 rm -f conftest.$ac_objext conftest$ac_exeext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13946   (eval $ac_link) 2>conftest.er1
13947   ac_status=$?
13948   grep -v '^ *+' conftest.er1 >conftest.err
13949   rm -f conftest.er1
13950   cat conftest.err >&5
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); } &&
13953          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; } &&
13959          { ac_try='test -s conftest$ac_exeext'
13960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961   (eval $ac_try) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; }; then
13965   ac_cv_lib_readline_history="yes"
13966 else
13967   echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 fi
13971 rm -f conftest.err conftest.$ac_objext \
13972       conftest$ac_exeext conftest.$ac_ext
13973
13974 fi
13975 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
13976 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
13977     if test "$ac_cv_lib_readline_history" = "yes"; then
13978
13979 cat >>confdefs.h <<\_ACEOF
13980 #define HAVE_READLINE_HISTORY 1
13981 _ACEOF
13982
13983
13984
13985 for ac_header in history.h readline/history.h
13986 do
13987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13989   echo "$as_me:$LINENO: checking for $ac_header" >&5
13990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13992   echo $ECHO_N "(cached) $ECHO_C" >&6
13993 fi
13994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13996 else
13997   # Is the header compilable?
13998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006 $ac_includes_default
14007 #include <$ac_header>
14008 _ACEOF
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011   (eval $ac_compile) 2>conftest.er1
14012   ac_status=$?
14013   grep -v '^ *+' conftest.er1 >conftest.err
14014   rm -f conftest.er1
14015   cat conftest.err >&5
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); } &&
14018          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020   (eval $ac_try) 2>&5
14021   ac_status=$?
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); }; } &&
14024          { ac_try='test -s conftest.$ac_objext'
14025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026   (eval $ac_try) 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; }; then
14030   ac_header_compiler=yes
14031 else
14032   echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035 ac_header_compiler=no
14036 fi
14037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14039 echo "${ECHO_T}$ac_header_compiler" >&6
14040
14041 # Is the header present?
14042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14044 cat >conftest.$ac_ext <<_ACEOF
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050 #include <$ac_header>
14051 _ACEOF
14052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14054   ac_status=$?
14055   grep -v '^ *+' conftest.er1 >conftest.err
14056   rm -f conftest.er1
14057   cat conftest.err >&5
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); } >/dev/null; then
14060   if test -s conftest.err; then
14061     ac_cpp_err=$ac_c_preproc_warn_flag
14062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14063   else
14064     ac_cpp_err=
14065   fi
14066 else
14067   ac_cpp_err=yes
14068 fi
14069 if test -z "$ac_cpp_err"; then
14070   ac_header_preproc=yes
14071 else
14072   echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14074
14075   ac_header_preproc=no
14076 fi
14077 rm -f conftest.err conftest.$ac_ext
14078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14079 echo "${ECHO_T}$ac_header_preproc" >&6
14080
14081 # So?  What about this header?
14082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14083   yes:no: )
14084     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14088     ac_header_preproc=yes
14089     ;;
14090   no:yes:* )
14091     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14093     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14094 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14095     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14097     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14098 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14101     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14103     (
14104       cat <<\_ASBOX
14105 ## ------------------------------------------ ##
14106 ## Report this to the AC_PACKAGE_NAME lists.  ##
14107 ## ------------------------------------------ ##
14108 _ASBOX
14109     ) |
14110       sed "s/^/$as_me: WARNING:     /" >&2
14111     ;;
14112 esac
14113 echo "$as_me:$LINENO: checking for $ac_header" >&5
14114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14116   echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118   eval "$as_ac_Header=\$ac_header_preproc"
14119 fi
14120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14122
14123 fi
14124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14125   cat >>confdefs.h <<_ACEOF
14126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14127 _ACEOF
14128
14129 fi
14130
14131 done
14132
14133     fi
14134   fi
14135
14136
14137
14138 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
14139         { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
14140 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
14141    { (exit 1); exit 1; }; }
14142 fi
14143
14144
14145 if test x$ac_widec_possible = xyes; then
14146
14147 cat >>confdefs.h <<\_ACEOF
14148 #define HANDLE_MULTIBYTE 1
14149 _ACEOF
14150
14151 fi
14152
14153
14154 for ac_func in resizeterm
14155 do
14156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14157 echo "$as_me:$LINENO: checking for $ac_func" >&5
14158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14159 if eval "test \"\${$as_ac_var+set}\" = set"; then
14160   echo $ECHO_N "(cached) $ECHO_C" >&6
14161 else
14162   cat >conftest.$ac_ext <<_ACEOF
14163 /* confdefs.h.  */
14164 _ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h.  */
14168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14170 #define $ac_func innocuous_$ac_func
14171
14172 /* System header to define __stub macros and hopefully few prototypes,
14173     which can conflict with char $ac_func (); below.
14174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14175     <limits.h> exists even on freestanding compilers.  */
14176
14177 #ifdef __STDC__
14178 # include <limits.h>
14179 #else
14180 # include <assert.h>
14181 #endif
14182
14183 #undef $ac_func
14184
14185 /* Override any gcc2 internal prototype to avoid an error.  */
14186 #ifdef __cplusplus
14187 extern "C"
14188 {
14189 #endif
14190 /* We use char because int might match the return type of a gcc2
14191    builtin and then its argument prototype would still apply.  */
14192 char $ac_func ();
14193 /* The GNU C library defines this for functions which it implements
14194     to always fail with ENOSYS.  Some functions are actually named
14195     something starting with __ and the normal name is an alias.  */
14196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14197 choke me
14198 #else
14199 char (*f) () = $ac_func;
14200 #endif
14201 #ifdef __cplusplus
14202 }
14203 #endif
14204
14205 int
14206 main ()
14207 {
14208 return f != $ac_func;
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 rm -f conftest.$ac_objext conftest$ac_exeext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14215   (eval $ac_link) 2>conftest.er1
14216   ac_status=$?
14217   grep -v '^ *+' conftest.er1 >conftest.err
14218   rm -f conftest.er1
14219   cat conftest.err >&5
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); } &&
14222          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224   (eval $ac_try) 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; } &&
14228          { ac_try='test -s conftest$ac_exeext'
14229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230   (eval $ac_try) 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); }; }; then
14234   eval "$as_ac_var=yes"
14235 else
14236   echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14238
14239 eval "$as_ac_var=no"
14240 fi
14241 rm -f conftest.err conftest.$ac_objext \
14242       conftest$ac_exeext conftest.$ac_ext
14243 fi
14244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14246 if test `eval echo '${'$as_ac_var'}'` = yes; then
14247   cat >>confdefs.h <<_ACEOF
14248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14249 _ACEOF
14250
14251 fi
14252 done
14253
14254
14255
14256
14257 for ac_func in snprintf vsnprintf
14258 do
14259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14260 echo "$as_me:$LINENO: checking for $ac_func" >&5
14261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14262 if eval "test \"\${$as_ac_var+set}\" = set"; then
14263   echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265   cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h.  */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h.  */
14271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14273 #define $ac_func innocuous_$ac_func
14274
14275 /* System header to define __stub macros and hopefully few prototypes,
14276     which can conflict with char $ac_func (); below.
14277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14278     <limits.h> exists even on freestanding compilers.  */
14279
14280 #ifdef __STDC__
14281 # include <limits.h>
14282 #else
14283 # include <assert.h>
14284 #endif
14285
14286 #undef $ac_func
14287
14288 /* Override any gcc2 internal prototype to avoid an error.  */
14289 #ifdef __cplusplus
14290 extern "C"
14291 {
14292 #endif
14293 /* We use char because int might match the return type of a gcc2
14294    builtin and then its argument prototype would still apply.  */
14295 char $ac_func ();
14296 /* The GNU C library defines this for functions which it implements
14297     to always fail with ENOSYS.  Some functions are actually named
14298     something starting with __ and the normal name is an alias.  */
14299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14300 choke me
14301 #else
14302 char (*f) () = $ac_func;
14303 #endif
14304 #ifdef __cplusplus
14305 }
14306 #endif
14307
14308 int
14309 main ()
14310 {
14311 return f != $ac_func;
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318   (eval $ac_link) 2>conftest.er1
14319   ac_status=$?
14320   grep -v '^ *+' conftest.er1 >conftest.err
14321   rm -f conftest.er1
14322   cat conftest.err >&5
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } &&
14325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; } &&
14331          { ac_try='test -s conftest$ac_exeext'
14332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333   (eval $ac_try) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; }; then
14337   eval "$as_ac_var=yes"
14338 else
14339   echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 eval "$as_ac_var=no"
14343 fi
14344 rm -f conftest.err conftest.$ac_objext \
14345       conftest$ac_exeext conftest.$ac_ext
14346 fi
14347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14349 if test `eval echo '${'$as_ac_var'}'` = yes; then
14350   cat >>confdefs.h <<_ACEOF
14351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14352 _ACEOF
14353
14354 fi
14355 done
14356
14357
14358 # Check whether --enable-debug or --disable-debug was given.
14359 if test "${enable_debug+set}" = set; then
14360   enableval="$enable_debug"
14361   case "${enableval}" in
14362         yes) debug=true ;;
14363         no) debug=false ;;
14364         *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
14365 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
14366    { (exit 1); exit 1; }; } ;;
14367         esac
14368 else
14369   debug=false
14370 fi;
14371
14372 if test x$debug = xtrue; then
14373         CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
14374         CFLAGS="-g $CFLAGS"
14375 fi
14376
14377 if test x$GCC = xyes; then
14378         CFLAGS="-Wall $CFLAGS"
14379 fi
14380
14381                                         ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
14382 cat >confcache <<\_ACEOF
14383 # This file is a shell script that caches the results of configure
14384 # tests run on this system so they can be shared between configure
14385 # scripts and configure runs, see configure's option --config-cache.
14386 # It is not useful on other systems.  If it contains results you don't
14387 # want to keep, you may remove or edit it.
14388 #
14389 # config.status only pays attention to the cache file if you give it
14390 # the --recheck option to rerun configure.
14391 #
14392 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14393 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14394 # following values.
14395
14396 _ACEOF
14397
14398 # The following way of writing the cache mishandles newlines in values,
14399 # but we know of no workaround that is simple, portable, and efficient.
14400 # So, don't put newlines in cache variables' values.
14401 # Ultrix sh set writes to stderr and can't be redirected directly,
14402 # and sets the high bit in the cache file unless we assign to the vars.
14403 {
14404   (set) 2>&1 |
14405     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14406     *ac_space=\ *)
14407       # `set' does not quote correctly, so add quotes (double-quote
14408       # substitution turns \\\\ into \\, and sed turns \\ into \).
14409       sed -n \
14410         "s/'/'\\\\''/g;
14411           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14412       ;;
14413     *)
14414       # `set' quotes correctly as required by POSIX, so do not add quotes.
14415       sed -n \
14416         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14417       ;;
14418     esac;
14419 } |
14420   sed '
14421      t clear
14422      : clear
14423      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14424      t end
14425      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14426      : end' >>confcache
14427 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14428   if test -w $cache_file; then
14429     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14430     cat confcache >$cache_file
14431   else
14432     echo "not updating unwritable cache $cache_file"
14433   fi
14434 fi
14435 rm -f confcache
14436
14437 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14438 # Let make expand exec_prefix.
14439 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14440
14441 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14442 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14443 # trailing colons and then remove the whole line if VPATH becomes empty
14444 # (actually we leave an empty line to preserve line numbers).
14445 if test "x$srcdir" = x.; then
14446   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14447 s/:*\$(srcdir):*/:/;
14448 s/:*\${srcdir}:*/:/;
14449 s/:*@srcdir@:*/:/;
14450 s/^\([^=]*=[     ]*\):*/\1/;
14451 s/:*$//;
14452 s/^[^=]*=[       ]*$//;
14453 }'
14454 fi
14455
14456 DEFS=-DHAVE_CONFIG_H
14457
14458 ac_libobjs=
14459 ac_ltlibobjs=
14460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14461   # 1. Remove the extension, and $U if already installed.
14462   ac_i=`echo "$ac_i" |
14463          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14464   # 2. Add them.
14465   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14466   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14467 done
14468 LIBOBJS=$ac_libobjs
14469
14470 LTLIBOBJS=$ac_ltlibobjs
14471
14472
14473 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14474   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14475 Usually this means the macro was only invoked conditionally." >&5
14476 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14477 Usually this means the macro was only invoked conditionally." >&2;}
14478    { (exit 1); exit 1; }; }
14479 fi
14480 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14481   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14482 Usually this means the macro was only invoked conditionally." >&5
14483 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14484 Usually this means the macro was only invoked conditionally." >&2;}
14485    { (exit 1); exit 1; }; }
14486 fi
14487 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
14488   { { echo "$as_me:$LINENO: error: conditional \"USE_INCLUDED_INTL_H\" was never defined.
14489 Usually this means the macro was only invoked conditionally." >&5
14490 echo "$as_me: error: conditional \"USE_INCLUDED_INTL_H\" was never defined.
14491 Usually this means the macro was only invoked conditionally." >&2;}
14492    { (exit 1); exit 1; }; }
14493 fi
14494 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14495   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14496 Usually this means the macro was only invoked conditionally." >&5
14497 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14498 Usually this means the macro was only invoked conditionally." >&2;}
14499    { (exit 1); exit 1; }; }
14500 fi
14501
14502 : ${CONFIG_STATUS=./config.status}
14503 ac_clean_files_save=$ac_clean_files
14504 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14505 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14506 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14507 cat >$CONFIG_STATUS <<_ACEOF
14508 #! $SHELL
14509 # Generated by $as_me.
14510 # Run this file to recreate the current configuration.
14511 # Compiler output produced by configure, useful for debugging
14512 # configure, is in config.log if it exists.
14513
14514 debug=false
14515 ac_cs_recheck=false
14516 ac_cs_silent=false
14517 SHELL=\${CONFIG_SHELL-$SHELL}
14518 _ACEOF
14519
14520 cat >>$CONFIG_STATUS <<\_ACEOF
14521 ## --------------------- ##
14522 ## M4sh Initialization.  ##
14523 ## --------------------- ##
14524
14525 # Be Bourne compatible
14526 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14527   emulate sh
14528   NULLCMD=:
14529   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14530   # is contrary to our usage.  Disable this feature.
14531   alias -g '${1+"$@"}'='"$@"'
14532 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14533   set -o posix
14534 fi
14535 DUALCASE=1; export DUALCASE # for MKS sh
14536
14537 # Support unset when possible.
14538 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14539   as_unset=unset
14540 else
14541   as_unset=false
14542 fi
14543
14544
14545 # Work around bugs in pre-3.0 UWIN ksh.
14546 $as_unset ENV MAIL MAILPATH
14547 PS1='$ '
14548 PS2='> '
14549 PS4='+ '
14550
14551 # NLS nuisances.
14552 for as_var in \
14553   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14554   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14555   LC_TELEPHONE LC_TIME
14556 do
14557   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14558     eval $as_var=C; export $as_var
14559   else
14560     $as_unset $as_var
14561   fi
14562 done
14563
14564 # Required to use basename.
14565 if expr a : '\(a\)' >/dev/null 2>&1; then
14566   as_expr=expr
14567 else
14568   as_expr=false
14569 fi
14570
14571 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14572   as_basename=basename
14573 else
14574   as_basename=false
14575 fi
14576
14577
14578 # Name of the executable.
14579 as_me=`$as_basename "$0" ||
14580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14581          X"$0" : 'X\(//\)$' \| \
14582          X"$0" : 'X\(/\)$' \| \
14583          .     : '\(.\)' 2>/dev/null ||
14584 echo X/"$0" |
14585     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14586           /^X\/\(\/\/\)$/{ s//\1/; q; }
14587           /^X\/\(\/\).*/{ s//\1/; q; }
14588           s/.*/./; q'`
14589
14590
14591 # PATH needs CR, and LINENO needs CR and PATH.
14592 # Avoid depending upon Character Ranges.
14593 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14594 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14595 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14596 as_cr_digits='0123456789'
14597 as_cr_alnum=$as_cr_Letters$as_cr_digits
14598
14599 # The user is always right.
14600 if test "${PATH_SEPARATOR+set}" != set; then
14601   echo "#! /bin/sh" >conf$$.sh
14602   echo  "exit 0"   >>conf$$.sh
14603   chmod +x conf$$.sh
14604   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14605     PATH_SEPARATOR=';'
14606   else
14607     PATH_SEPARATOR=:
14608   fi
14609   rm -f conf$$.sh
14610 fi
14611
14612
14613   as_lineno_1=$LINENO
14614   as_lineno_2=$LINENO
14615   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14616   test "x$as_lineno_1" != "x$as_lineno_2" &&
14617   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14618   # Find who we are.  Look in the path if we contain no path at all
14619   # relative or not.
14620   case $0 in
14621     *[\\/]* ) as_myself=$0 ;;
14622     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623 for as_dir in $PATH
14624 do
14625   IFS=$as_save_IFS
14626   test -z "$as_dir" && as_dir=.
14627   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14628 done
14629
14630        ;;
14631   esac
14632   # We did not find ourselves, most probably we were run as `sh COMMAND'
14633   # in which case we are not to be found in the path.
14634   if test "x$as_myself" = x; then
14635     as_myself=$0
14636   fi
14637   if test ! -f "$as_myself"; then
14638     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14639 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14640    { (exit 1); exit 1; }; }
14641   fi
14642   case $CONFIG_SHELL in
14643   '')
14644     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14645 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14646 do
14647   IFS=$as_save_IFS
14648   test -z "$as_dir" && as_dir=.
14649   for as_base in sh bash ksh sh5; do
14650          case $as_dir in
14651          /*)
14652            if ("$as_dir/$as_base" -c '
14653   as_lineno_1=$LINENO
14654   as_lineno_2=$LINENO
14655   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14656   test "x$as_lineno_1" != "x$as_lineno_2" &&
14657   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14658              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14659              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14660              CONFIG_SHELL=$as_dir/$as_base
14661              export CONFIG_SHELL
14662              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14663            fi;;
14664          esac
14665        done
14666 done
14667 ;;
14668   esac
14669
14670   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14671   # uniformly replaced by the line number.  The first 'sed' inserts a
14672   # line-number line before each line; the second 'sed' does the real
14673   # work.  The second script uses 'N' to pair each line-number line
14674   # with the numbered line, and appends trailing '-' during
14675   # substitution so that $LINENO is not a special case at line end.
14676   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14677   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14678   sed '=' <$as_myself |
14679     sed '
14680       N
14681       s,$,-,
14682       : loop
14683       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14684       t loop
14685       s,-$,,
14686       s,^['$as_cr_digits']*\n,,
14687     ' >$as_me.lineno &&
14688   chmod +x $as_me.lineno ||
14689     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14690 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14691    { (exit 1); exit 1; }; }
14692
14693   # Don't try to exec as it changes $[0], causing all sort of problems
14694   # (the dirname of $[0] is not the place where we might find the
14695   # original and so on.  Autoconf is especially sensible to this).
14696   . ./$as_me.lineno
14697   # Exit status is that of the last command.
14698   exit
14699 }
14700
14701
14702 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14703   *c*,-n*) ECHO_N= ECHO_C='
14704 ' ECHO_T='      ' ;;
14705   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14706   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14707 esac
14708
14709 if expr a : '\(a\)' >/dev/null 2>&1; then
14710   as_expr=expr
14711 else
14712   as_expr=false
14713 fi
14714
14715 rm -f conf$$ conf$$.exe conf$$.file
14716 echo >conf$$.file
14717 if ln -s conf$$.file conf$$ 2>/dev/null; then
14718   # We could just check for DJGPP; but this test a) works b) is more generic
14719   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14720   if test -f conf$$.exe; then
14721     # Don't use ln at all; we don't have any links
14722     as_ln_s='cp -p'
14723   else
14724     as_ln_s='ln -s'
14725   fi
14726 elif ln conf$$.file conf$$ 2>/dev/null; then
14727   as_ln_s=ln
14728 else
14729   as_ln_s='cp -p'
14730 fi
14731 rm -f conf$$ conf$$.exe conf$$.file
14732
14733 if mkdir -p . 2>/dev/null; then
14734   as_mkdir_p=:
14735 else
14736   test -d ./-p && rmdir ./-p
14737   as_mkdir_p=false
14738 fi
14739
14740 as_executable_p="test -f"
14741
14742 # Sed expression to map a string onto a valid CPP name.
14743 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14744
14745 # Sed expression to map a string onto a valid variable name.
14746 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14747
14748
14749 # IFS
14750 # We need space, tab and new line, in precisely that order.
14751 as_nl='
14752 '
14753 IFS="   $as_nl"
14754
14755 # CDPATH.
14756 $as_unset CDPATH
14757
14758 exec 6>&1
14759
14760 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14761 # report actual input values of CONFIG_FILES etc. instead of their
14762 # values after options handling.  Logging --version etc. is OK.
14763 exec 5>>config.log
14764 {
14765   echo
14766   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14767 ## Running $as_me. ##
14768 _ASBOX
14769 } >&5
14770 cat >&5 <<_CSEOF
14771
14772 This file was extended by $as_me, which was
14773 generated by GNU Autoconf 2.59.  Invocation command line was
14774
14775   CONFIG_FILES    = $CONFIG_FILES
14776   CONFIG_HEADERS  = $CONFIG_HEADERS
14777   CONFIG_LINKS    = $CONFIG_LINKS
14778   CONFIG_COMMANDS = $CONFIG_COMMANDS
14779   $ $0 $@
14780
14781 _CSEOF
14782 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14783 echo >&5
14784 _ACEOF
14785
14786 # Files that config.status was made for.
14787 if test -n "$ac_config_files"; then
14788   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14789 fi
14790
14791 if test -n "$ac_config_headers"; then
14792   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14793 fi
14794
14795 if test -n "$ac_config_links"; then
14796   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14797 fi
14798
14799 if test -n "$ac_config_commands"; then
14800   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14801 fi
14802
14803 cat >>$CONFIG_STATUS <<\_ACEOF
14804
14805 ac_cs_usage="\
14806 \`$as_me' instantiates files from templates according to the
14807 current configuration.
14808
14809 Usage: $0 [OPTIONS] [FILE]...
14810
14811   -h, --help       print this help, then exit
14812   -V, --version    print version number, then exit
14813   -q, --quiet      do not print progress messages
14814   -d, --debug      don't remove temporary files
14815       --recheck    update $as_me by reconfiguring in the same conditions
14816   --file=FILE[:TEMPLATE]
14817                    instantiate the configuration file FILE
14818   --header=FILE[:TEMPLATE]
14819                    instantiate the configuration header FILE
14820
14821 Configuration files:
14822 $config_files
14823
14824 Configuration headers:
14825 $config_headers
14826
14827 Configuration commands:
14828 $config_commands
14829
14830 Report bugs to <bug-autoconf@gnu.org>."
14831 _ACEOF
14832
14833 cat >>$CONFIG_STATUS <<_ACEOF
14834 ac_cs_version="\\
14835 config.status
14836 configured by $0, generated by GNU Autoconf 2.59,
14837   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14838
14839 Copyright (C) 2003 Free Software Foundation, Inc.
14840 This config.status script is free software; the Free Software Foundation
14841 gives unlimited permission to copy, distribute and modify it."
14842 srcdir=$srcdir
14843 INSTALL="$INSTALL"
14844 _ACEOF
14845
14846 cat >>$CONFIG_STATUS <<\_ACEOF
14847 # If no file are specified by the user, then we need to provide default
14848 # value.  By we need to know if files were specified by the user.
14849 ac_need_defaults=:
14850 while test $# != 0
14851 do
14852   case $1 in
14853   --*=*)
14854     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14855     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14856     ac_shift=:
14857     ;;
14858   -*)
14859     ac_option=$1
14860     ac_optarg=$2
14861     ac_shift=shift
14862     ;;
14863   *) # This is not an option, so the user has probably given explicit
14864      # arguments.
14865      ac_option=$1
14866      ac_need_defaults=false;;
14867   esac
14868
14869   case $ac_option in
14870   # Handling of the options.
14871 _ACEOF
14872 cat >>$CONFIG_STATUS <<\_ACEOF
14873   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14874     ac_cs_recheck=: ;;
14875   --version | --vers* | -V )
14876     echo "$ac_cs_version"; exit 0 ;;
14877   --he | --h)
14878     # Conflict between --help and --header
14879     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14880 Try \`$0 --help' for more information." >&5
14881 echo "$as_me: error: ambiguous option: $1
14882 Try \`$0 --help' for more information." >&2;}
14883    { (exit 1); exit 1; }; };;
14884   --help | --hel | -h )
14885     echo "$ac_cs_usage"; exit 0 ;;
14886   --debug | --d* | -d )
14887     debug=: ;;
14888   --file | --fil | --fi | --f )
14889     $ac_shift
14890     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14891     ac_need_defaults=false;;
14892   --header | --heade | --head | --hea )
14893     $ac_shift
14894     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14895     ac_need_defaults=false;;
14896   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14897   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14898     ac_cs_silent=: ;;
14899
14900   # This is an error.
14901   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14902 Try \`$0 --help' for more information." >&5
14903 echo "$as_me: error: unrecognized option: $1
14904 Try \`$0 --help' for more information." >&2;}
14905    { (exit 1); exit 1; }; } ;;
14906
14907   *) ac_config_targets="$ac_config_targets $1" ;;
14908
14909   esac
14910   shift
14911 done
14912
14913 ac_configure_extra_args=
14914
14915 if $ac_cs_silent; then
14916   exec 6>/dev/null
14917   ac_configure_extra_args="$ac_configure_extra_args --silent"
14918 fi
14919
14920 _ACEOF
14921 cat >>$CONFIG_STATUS <<_ACEOF
14922 if \$ac_cs_recheck; then
14923   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14924   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14925 fi
14926
14927 _ACEOF
14928
14929 cat >>$CONFIG_STATUS <<_ACEOF
14930 #
14931 # INIT-COMMANDS section.
14932 #
14933
14934 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14935     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14936     # from automake.
14937     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14938     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14939     LINGUAS="${LINGUAS-%UNSET%}"
14940
14941 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14942
14943 _ACEOF
14944
14945
14946
14947 cat >>$CONFIG_STATUS <<\_ACEOF
14948 for ac_config_target in $ac_config_targets
14949 do
14950   case "$ac_config_target" in
14951   # Handling of arguments.
14952   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14953   "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
14954   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
14955   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14956   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14957   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14958   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14959   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14960 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14961    { (exit 1); exit 1; }; };;
14962   esac
14963 done
14964
14965 # If the user did not use the arguments to specify the items to instantiate,
14966 # then the envvar interface is used.  Set only those that are not.
14967 # We use the long form for the default assignment because of an extremely
14968 # bizarre bug on SunOS 4.1.3.
14969 if $ac_need_defaults; then
14970   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14971   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14972   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14973 fi
14974
14975 # Have a temporary directory for convenience.  Make it in the build tree
14976 # simply because there is no reason to put it here, and in addition,
14977 # creating and moving files from /tmp can sometimes cause problems.
14978 # Create a temporary directory, and hook for its removal unless debugging.
14979 $debug ||
14980 {
14981   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14982   trap '{ (exit 1); exit 1; }' 1 2 13 15
14983 }
14984
14985 # Create a (secure) tmp directory for tmp files.
14986
14987 {
14988   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14989   test -n "$tmp" && test -d "$tmp"
14990 }  ||
14991 {
14992   tmp=./confstat$$-$RANDOM
14993   (umask 077 && mkdir $tmp)
14994 } ||
14995 {
14996    echo "$me: cannot create a temporary directory in ." >&2
14997    { (exit 1); exit 1; }
14998 }
14999
15000 _ACEOF
15001
15002 cat >>$CONFIG_STATUS <<_ACEOF
15003
15004 #
15005 # CONFIG_FILES section.
15006 #
15007
15008 # No need to generate the scripts if there are no CONFIG_FILES.
15009 # This happens for instance when ./config.status config.h
15010 if test -n "\$CONFIG_FILES"; then
15011   # Protect against being on the right side of a sed subst in config.status.
15012   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15013    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15014 s,@SHELL@,$SHELL,;t t
15015 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15016 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15017 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15018 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15019 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15020 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15021 s,@exec_prefix@,$exec_prefix,;t t
15022 s,@prefix@,$prefix,;t t
15023 s,@program_transform_name@,$program_transform_name,;t t
15024 s,@bindir@,$bindir,;t t
15025 s,@sbindir@,$sbindir,;t t
15026 s,@libexecdir@,$libexecdir,;t t
15027 s,@datadir@,$datadir,;t t
15028 s,@sysconfdir@,$sysconfdir,;t t
15029 s,@sharedstatedir@,$sharedstatedir,;t t
15030 s,@localstatedir@,$localstatedir,;t t
15031 s,@libdir@,$libdir,;t t
15032 s,@includedir@,$includedir,;t t
15033 s,@oldincludedir@,$oldincludedir,;t t
15034 s,@infodir@,$infodir,;t t
15035 s,@mandir@,$mandir,;t t
15036 s,@build_alias@,$build_alias,;t t
15037 s,@host_alias@,$host_alias,;t t
15038 s,@target_alias@,$target_alias,;t t
15039 s,@DEFS@,$DEFS,;t t
15040 s,@ECHO_C@,$ECHO_C,;t t
15041 s,@ECHO_N@,$ECHO_N,;t t
15042 s,@ECHO_T@,$ECHO_T,;t t
15043 s,@LIBS@,$LIBS,;t t
15044 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15045 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15046 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15047 s,@CYGPATH_W@,$CYGPATH_W,;t t
15048 s,@PACKAGE@,$PACKAGE,;t t
15049 s,@VERSION@,$VERSION,;t t
15050 s,@ACLOCAL@,$ACLOCAL,;t t
15051 s,@AUTOCONF@,$AUTOCONF,;t t
15052 s,@AUTOMAKE@,$AUTOMAKE,;t t
15053 s,@AUTOHEADER@,$AUTOHEADER,;t t
15054 s,@MAKEINFO@,$MAKEINFO,;t t
15055 s,@install_sh@,$install_sh,;t t
15056 s,@STRIP@,$STRIP,;t t
15057 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15058 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15059 s,@mkdir_p@,$mkdir_p,;t t
15060 s,@AWK@,$AWK,;t t
15061 s,@SET_MAKE@,$SET_MAKE,;t t
15062 s,@am__leading_dot@,$am__leading_dot,;t t
15063 s,@AMTAR@,$AMTAR,;t t
15064 s,@am__tar@,$am__tar,;t t
15065 s,@am__untar@,$am__untar,;t t
15066 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15067 s,@USE_NLS@,$USE_NLS,;t t
15068 s,@MSGFMT@,$MSGFMT,;t t
15069 s,@GMSGFMT@,$GMSGFMT,;t t
15070 s,@XGETTEXT@,$XGETTEXT,;t t
15071 s,@MSGMERGE@,$MSGMERGE,;t t
15072 s,@CC@,$CC,;t t
15073 s,@CFLAGS@,$CFLAGS,;t t
15074 s,@LDFLAGS@,$LDFLAGS,;t t
15075 s,@CPPFLAGS@,$CPPFLAGS,;t t
15076 s,@ac_ct_CC@,$ac_ct_CC,;t t
15077 s,@EXEEXT@,$EXEEXT,;t t
15078 s,@OBJEXT@,$OBJEXT,;t t
15079 s,@DEPDIR@,$DEPDIR,;t t
15080 s,@am__include@,$am__include,;t t
15081 s,@am__quote@,$am__quote,;t t
15082 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15083 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15084 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15085 s,@CCDEPMODE@,$CCDEPMODE,;t t
15086 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15087 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15088 s,@build@,$build,;t t
15089 s,@build_cpu@,$build_cpu,;t t
15090 s,@build_vendor@,$build_vendor,;t t
15091 s,@build_os@,$build_os,;t t
15092 s,@host@,$host,;t t
15093 s,@host_cpu@,$host_cpu,;t t
15094 s,@host_vendor@,$host_vendor,;t t
15095 s,@host_os@,$host_os,;t t
15096 s,@CPP@,$CPP,;t t
15097 s,@EGREP@,$EGREP,;t t
15098 s,@GLIBC2@,$GLIBC2,;t t
15099 s,@RANLIB@,$RANLIB,;t t
15100 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15101 s,@ALLOCA@,$ALLOCA,;t t
15102 s,@GLIBC21@,$GLIBC21,;t t
15103 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
15104 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
15105 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
15106 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
15107 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
15108 s,@LIBICONV@,$LIBICONV,;t t
15109 s,@LTLIBICONV@,$LTLIBICONV,;t t
15110 s,@INTLBISON@,$INTLBISON,;t t
15111 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15112 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15113 s,@CATOBJEXT@,$CATOBJEXT,;t t
15114 s,@DATADIRNAME@,$DATADIRNAME,;t t
15115 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15116 s,@GENCAT@,$GENCAT,;t t
15117 s,@INTLOBJS@,$INTLOBJS,;t t
15118 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15119 s,@INTLLIBS@,$INTLLIBS,;t t
15120 s,@LIBINTL@,$LIBINTL,;t t
15121 s,@LTLIBINTL@,$LTLIBINTL,;t t
15122 s,@POSUB@,$POSUB,;t t
15123 s,@localedir@,$localedir,;t t
15124 s,@USE_INCLUDED_INTL_H_TRUE@,$USE_INCLUDED_INTL_H_TRUE,;t t
15125 s,@USE_INCLUDED_INTL_H_FALSE@,$USE_INCLUDED_INTL_H_FALSE,;t t
15126 s,@U@,$U,;t t
15127 s,@ANSI2KNR@,$ANSI2KNR,;t t
15128 s,@LIBOBJS@,$LIBOBJS,;t t
15129 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15130 CEOF
15131
15132 _ACEOF
15133
15134   cat >>$CONFIG_STATUS <<\_ACEOF
15135   # Split the substitutions into bite-sized pieces for seds with
15136   # small command number limits, like on Digital OSF/1 and HP-UX.
15137   ac_max_sed_lines=48
15138   ac_sed_frag=1 # Number of current file.
15139   ac_beg=1 # First line for current file.
15140   ac_end=$ac_max_sed_lines # Line after last line for current file.
15141   ac_more_lines=:
15142   ac_sed_cmds=
15143   while $ac_more_lines; do
15144     if test $ac_beg -gt 1; then
15145       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15146     else
15147       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15148     fi
15149     if test ! -s $tmp/subs.frag; then
15150       ac_more_lines=false
15151     else
15152       # The purpose of the label and of the branching condition is to
15153       # speed up the sed processing (if there are no `@' at all, there
15154       # is no need to browse any of the substitutions).
15155       # These are the two extra sed commands mentioned above.
15156       (echo ':t
15157   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15158       if test -z "$ac_sed_cmds"; then
15159         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15160       else
15161         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15162       fi
15163       ac_sed_frag=`expr $ac_sed_frag + 1`
15164       ac_beg=$ac_end
15165       ac_end=`expr $ac_end + $ac_max_sed_lines`
15166     fi
15167   done
15168   if test -z "$ac_sed_cmds"; then
15169     ac_sed_cmds=cat
15170   fi
15171 fi # test -n "$CONFIG_FILES"
15172
15173 _ACEOF
15174 cat >>$CONFIG_STATUS <<\_ACEOF
15175 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15176   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15177   case $ac_file in
15178   - | *:- | *:-:* ) # input from stdin
15179         cat >$tmp/stdin
15180         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15181         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15182   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15183         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15184   * )   ac_file_in=$ac_file.in ;;
15185   esac
15186
15187   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15188   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15189 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15190          X"$ac_file" : 'X\(//\)[^/]' \| \
15191          X"$ac_file" : 'X\(//\)$' \| \
15192          X"$ac_file" : 'X\(/\)' \| \
15193          .     : '\(.\)' 2>/dev/null ||
15194 echo X"$ac_file" |
15195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15196           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15197           /^X\(\/\/\)$/{ s//\1/; q; }
15198           /^X\(\/\).*/{ s//\1/; q; }
15199           s/.*/./; q'`
15200   { if $as_mkdir_p; then
15201     mkdir -p "$ac_dir"
15202   else
15203     as_dir="$ac_dir"
15204     as_dirs=
15205     while test ! -d "$as_dir"; do
15206       as_dirs="$as_dir $as_dirs"
15207       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15209          X"$as_dir" : 'X\(//\)[^/]' \| \
15210          X"$as_dir" : 'X\(//\)$' \| \
15211          X"$as_dir" : 'X\(/\)' \| \
15212          .     : '\(.\)' 2>/dev/null ||
15213 echo X"$as_dir" |
15214     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15215           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15216           /^X\(\/\/\)$/{ s//\1/; q; }
15217           /^X\(\/\).*/{ s//\1/; q; }
15218           s/.*/./; q'`
15219     done
15220     test ! -n "$as_dirs" || mkdir $as_dirs
15221   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15222 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15223    { (exit 1); exit 1; }; }; }
15224
15225   ac_builddir=.
15226
15227 if test "$ac_dir" != .; then
15228   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15229   # A "../" for each directory in $ac_dir_suffix.
15230   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15231 else
15232   ac_dir_suffix= ac_top_builddir=
15233 fi
15234
15235 case $srcdir in
15236   .)  # No --srcdir option.  We are building in place.
15237     ac_srcdir=.
15238     if test -z "$ac_top_builddir"; then
15239        ac_top_srcdir=.
15240     else
15241        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15242     fi ;;
15243   [\\/]* | ?:[\\/]* )  # Absolute path.
15244     ac_srcdir=$srcdir$ac_dir_suffix;
15245     ac_top_srcdir=$srcdir ;;
15246   *) # Relative path.
15247     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15248     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15249 esac
15250
15251 # Do not use `cd foo && pwd` to compute absolute paths, because
15252 # the directories may not exist.
15253 case `pwd` in
15254 .) ac_abs_builddir="$ac_dir";;
15255 *)
15256   case "$ac_dir" in
15257   .) ac_abs_builddir=`pwd`;;
15258   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15259   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15260   esac;;
15261 esac
15262 case $ac_abs_builddir in
15263 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15264 *)
15265   case ${ac_top_builddir}. in
15266   .) ac_abs_top_builddir=$ac_abs_builddir;;
15267   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15268   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15269   esac;;
15270 esac
15271 case $ac_abs_builddir in
15272 .) ac_abs_srcdir=$ac_srcdir;;
15273 *)
15274   case $ac_srcdir in
15275   .) ac_abs_srcdir=$ac_abs_builddir;;
15276   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15277   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15278   esac;;
15279 esac
15280 case $ac_abs_builddir in
15281 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15282 *)
15283   case $ac_top_srcdir in
15284   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15285   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15286   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15287   esac;;
15288 esac
15289
15290
15291   case $INSTALL in
15292   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15293   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15294   esac
15295
15296   # Let's still pretend it is `configure' which instantiates (i.e., don't
15297   # use $as_me), people would be surprised to read:
15298   #    /* config.h.  Generated by config.status.  */
15299   if test x"$ac_file" = x-; then
15300     configure_input=
15301   else
15302     configure_input="$ac_file.  "
15303   fi
15304   configure_input=$configure_input"Generated from `echo $ac_file_in |
15305                                      sed 's,.*/,,'` by configure."
15306
15307   # First look for the input files in the build tree, otherwise in the
15308   # src tree.
15309   ac_file_inputs=`IFS=:
15310     for f in $ac_file_in; do
15311       case $f in
15312       -) echo $tmp/stdin ;;
15313       [\\/$]*)
15314          # Absolute (can't be DOS-style, as IFS=:)
15315          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15316 echo "$as_me: error: cannot find input file: $f" >&2;}
15317    { (exit 1); exit 1; }; }
15318          echo "$f";;
15319       *) # Relative
15320          if test -f "$f"; then
15321            # Build tree
15322            echo "$f"
15323          elif test -f "$srcdir/$f"; then
15324            # Source tree
15325            echo "$srcdir/$f"
15326          else
15327            # /dev/null tree
15328            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15329 echo "$as_me: error: cannot find input file: $f" >&2;}
15330    { (exit 1); exit 1; }; }
15331          fi;;
15332       esac
15333     done` || { (exit 1); exit 1; }
15334
15335   if test x"$ac_file" != x-; then
15336     { echo "$as_me:$LINENO: creating $ac_file" >&5
15337 echo "$as_me: creating $ac_file" >&6;}
15338     rm -f "$ac_file"
15339   fi
15340 _ACEOF
15341 cat >>$CONFIG_STATUS <<_ACEOF
15342   sed "$ac_vpsub
15343 $extrasub
15344 _ACEOF
15345 cat >>$CONFIG_STATUS <<\_ACEOF
15346 :t
15347 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15348 s,@configure_input@,$configure_input,;t t
15349 s,@srcdir@,$ac_srcdir,;t t
15350 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15351 s,@top_srcdir@,$ac_top_srcdir,;t t
15352 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15353 s,@builddir@,$ac_builddir,;t t
15354 s,@abs_builddir@,$ac_abs_builddir,;t t
15355 s,@top_builddir@,$ac_top_builddir,;t t
15356 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15357 s,@INSTALL@,$ac_INSTALL,;t t
15358 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15359   rm -f $tmp/stdin
15360   if test x"$ac_file" != x-; then
15361     mv $tmp/out $ac_file
15362   else
15363     cat $tmp/out
15364     rm -f $tmp/out
15365   fi
15366
15367 done
15368 _ACEOF
15369 cat >>$CONFIG_STATUS <<\_ACEOF
15370
15371 #
15372 # CONFIG_HEADER section.
15373 #
15374
15375 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15376 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15377 #
15378 # ac_d sets the value in "#define NAME VALUE" lines.
15379 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
15380 ac_dB='[         ].*$,\1#\2'
15381 ac_dC=' '
15382 ac_dD=',;t'
15383 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15384 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15385 ac_uB='$,\1#\2define\3'
15386 ac_uC=' '
15387 ac_uD=',;t'
15388
15389 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15390   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15391   case $ac_file in
15392   - | *:- | *:-:* ) # input from stdin
15393         cat >$tmp/stdin
15394         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15395         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15396   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15397         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15398   * )   ac_file_in=$ac_file.in ;;
15399   esac
15400
15401   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15402 echo "$as_me: creating $ac_file" >&6;}
15403
15404   # First look for the input files in the build tree, otherwise in the
15405   # src tree.
15406   ac_file_inputs=`IFS=:
15407     for f in $ac_file_in; do
15408       case $f in
15409       -) echo $tmp/stdin ;;
15410       [\\/$]*)
15411          # Absolute (can't be DOS-style, as IFS=:)
15412          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15413 echo "$as_me: error: cannot find input file: $f" >&2;}
15414    { (exit 1); exit 1; }; }
15415          # Do quote $f, to prevent DOS paths from being IFS'd.
15416          echo "$f";;
15417       *) # Relative
15418          if test -f "$f"; then
15419            # Build tree
15420            echo "$f"
15421          elif test -f "$srcdir/$f"; then
15422            # Source tree
15423            echo "$srcdir/$f"
15424          else
15425            # /dev/null tree
15426            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15427 echo "$as_me: error: cannot find input file: $f" >&2;}
15428    { (exit 1); exit 1; }; }
15429          fi;;
15430       esac
15431     done` || { (exit 1); exit 1; }
15432   # Remove the trailing spaces.
15433   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15434
15435 _ACEOF
15436
15437 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15438 # `conftest.undefs', that substitutes the proper values into
15439 # config.h.in to produce config.h.  The first handles `#define'
15440 # templates, and the second `#undef' templates.
15441 # And first: Protect against being on the right side of a sed subst in
15442 # config.status.  Protect against being in an unquoted here document
15443 # in config.status.
15444 rm -f conftest.defines conftest.undefs
15445 # Using a here document instead of a string reduces the quoting nightmare.
15446 # Putting comments in sed scripts is not portable.
15447 #
15448 # `end' is used to avoid that the second main sed command (meant for
15449 # 0-ary CPP macros) applies to n-ary macro definitions.
15450 # See the Autoconf documentation for `clear'.
15451 cat >confdef2sed.sed <<\_ACEOF
15452 s/[\\&,]/\\&/g
15453 s,[\\$`],\\&,g
15454 t clear
15455 : clear
15456 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15457 t end
15458 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15459 : end
15460 _ACEOF
15461 # If some macros were called several times there might be several times
15462 # the same #defines, which is useless.  Nevertheless, we may not want to
15463 # sort them, since we want the *last* AC-DEFINE to be honored.
15464 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15465 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15466 rm -f confdef2sed.sed
15467
15468 # This sed command replaces #undef with comments.  This is necessary, for
15469 # example, in the case of _POSIX_SOURCE, which is predefined and required
15470 # on some systems where configure will not decide to define it.
15471 cat >>conftest.undefs <<\_ACEOF
15472 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15473 _ACEOF
15474
15475 # Break up conftest.defines because some shells have a limit on the size
15476 # of here documents, and old seds have small limits too (100 cmds).
15477 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15478 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15479 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15480 echo '  :' >>$CONFIG_STATUS
15481 rm -f conftest.tail
15482 while grep . conftest.defines >/dev/null
15483 do
15484   # Write a limited-size here document to $tmp/defines.sed.
15485   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15486   # Speed up: don't consider the non `#define' lines.
15487   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
15488   # Work around the forget-to-reset-the-flag bug.
15489   echo 't clr' >>$CONFIG_STATUS
15490   echo ': clr' >>$CONFIG_STATUS
15491   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15492   echo 'CEOF
15493   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15494   rm -f $tmp/in
15495   mv $tmp/out $tmp/in
15496 ' >>$CONFIG_STATUS
15497   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15498   rm -f conftest.defines
15499   mv conftest.tail conftest.defines
15500 done
15501 rm -f conftest.defines
15502 echo '  fi # grep' >>$CONFIG_STATUS
15503 echo >>$CONFIG_STATUS
15504
15505 # Break up conftest.undefs because some shells have a limit on the size
15506 # of here documents, and old seds have small limits too (100 cmds).
15507 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15508 rm -f conftest.tail
15509 while grep . conftest.undefs >/dev/null
15510 do
15511   # Write a limited-size here document to $tmp/undefs.sed.
15512   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15513   # Speed up: don't consider the non `#undef'
15514   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15515   # Work around the forget-to-reset-the-flag bug.
15516   echo 't clr' >>$CONFIG_STATUS
15517   echo ': clr' >>$CONFIG_STATUS
15518   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15519   echo 'CEOF
15520   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15521   rm -f $tmp/in
15522   mv $tmp/out $tmp/in
15523 ' >>$CONFIG_STATUS
15524   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15525   rm -f conftest.undefs
15526   mv conftest.tail conftest.undefs
15527 done
15528 rm -f conftest.undefs
15529
15530 cat >>$CONFIG_STATUS <<\_ACEOF
15531   # Let's still pretend it is `configure' which instantiates (i.e., don't
15532   # use $as_me), people would be surprised to read:
15533   #    /* config.h.  Generated by config.status.  */
15534   if test x"$ac_file" = x-; then
15535     echo "/* Generated by configure.  */" >$tmp/config.h
15536   else
15537     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15538   fi
15539   cat $tmp/in >>$tmp/config.h
15540   rm -f $tmp/in
15541   if test x"$ac_file" != x-; then
15542     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15543       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15544 echo "$as_me: $ac_file is unchanged" >&6;}
15545     else
15546       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15547 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15548          X"$ac_file" : 'X\(//\)[^/]' \| \
15549          X"$ac_file" : 'X\(//\)$' \| \
15550          X"$ac_file" : 'X\(/\)' \| \
15551          .     : '\(.\)' 2>/dev/null ||
15552 echo X"$ac_file" |
15553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15554           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15555           /^X\(\/\/\)$/{ s//\1/; q; }
15556           /^X\(\/\).*/{ s//\1/; q; }
15557           s/.*/./; q'`
15558       { if $as_mkdir_p; then
15559     mkdir -p "$ac_dir"
15560   else
15561     as_dir="$ac_dir"
15562     as_dirs=
15563     while test ! -d "$as_dir"; do
15564       as_dirs="$as_dir $as_dirs"
15565       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15567          X"$as_dir" : 'X\(//\)[^/]' \| \
15568          X"$as_dir" : 'X\(//\)$' \| \
15569          X"$as_dir" : 'X\(/\)' \| \
15570          .     : '\(.\)' 2>/dev/null ||
15571 echo X"$as_dir" |
15572     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15573           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15574           /^X\(\/\/\)$/{ s//\1/; q; }
15575           /^X\(\/\).*/{ s//\1/; q; }
15576           s/.*/./; q'`
15577     done
15578     test ! -n "$as_dirs" || mkdir $as_dirs
15579   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15580 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15581    { (exit 1); exit 1; }; }; }
15582
15583       rm -f $ac_file
15584       mv $tmp/config.h $ac_file
15585     fi
15586   else
15587     cat $tmp/config.h
15588     rm -f $tmp/config.h
15589   fi
15590 # Compute $ac_file's index in $config_headers.
15591 _am_stamp_count=1
15592 for _am_header in $config_headers :; do
15593   case $_am_header in
15594     $ac_file | $ac_file:* )
15595       break ;;
15596     * )
15597       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15598   esac
15599 done
15600 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15601 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15602          X$ac_file : 'X\(//\)[^/]' \| \
15603          X$ac_file : 'X\(//\)$' \| \
15604          X$ac_file : 'X\(/\)' \| \
15605          .     : '\(.\)' 2>/dev/null ||
15606 echo X$ac_file |
15607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15608           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15609           /^X\(\/\/\)$/{ s//\1/; q; }
15610           /^X\(\/\).*/{ s//\1/; q; }
15611           s/.*/./; q'`/stamp-h$_am_stamp_count
15612 done
15613 _ACEOF
15614 cat >>$CONFIG_STATUS <<\_ACEOF
15615
15616 #
15617 # CONFIG_COMMANDS section.
15618 #
15619 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15620   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15621   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15622   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15623 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15624          X"$ac_dest" : 'X\(//\)[^/]' \| \
15625          X"$ac_dest" : 'X\(//\)$' \| \
15626          X"$ac_dest" : 'X\(/\)' \| \
15627          .     : '\(.\)' 2>/dev/null ||
15628 echo X"$ac_dest" |
15629     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15630           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15631           /^X\(\/\/\)$/{ s//\1/; q; }
15632           /^X\(\/\).*/{ s//\1/; q; }
15633           s/.*/./; q'`
15634   { if $as_mkdir_p; then
15635     mkdir -p "$ac_dir"
15636   else
15637     as_dir="$ac_dir"
15638     as_dirs=
15639     while test ! -d "$as_dir"; do
15640       as_dirs="$as_dir $as_dirs"
15641       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15643          X"$as_dir" : 'X\(//\)[^/]' \| \
15644          X"$as_dir" : 'X\(//\)$' \| \
15645          X"$as_dir" : 'X\(/\)' \| \
15646          .     : '\(.\)' 2>/dev/null ||
15647 echo X"$as_dir" |
15648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15649           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15650           /^X\(\/\/\)$/{ s//\1/; q; }
15651           /^X\(\/\).*/{ s//\1/; q; }
15652           s/.*/./; q'`
15653     done
15654     test ! -n "$as_dirs" || mkdir $as_dirs
15655   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15657    { (exit 1); exit 1; }; }; }
15658
15659   ac_builddir=.
15660
15661 if test "$ac_dir" != .; then
15662   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15663   # A "../" for each directory in $ac_dir_suffix.
15664   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15665 else
15666   ac_dir_suffix= ac_top_builddir=
15667 fi
15668
15669 case $srcdir in
15670   .)  # No --srcdir option.  We are building in place.
15671     ac_srcdir=.
15672     if test -z "$ac_top_builddir"; then
15673        ac_top_srcdir=.
15674     else
15675        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15676     fi ;;
15677   [\\/]* | ?:[\\/]* )  # Absolute path.
15678     ac_srcdir=$srcdir$ac_dir_suffix;
15679     ac_top_srcdir=$srcdir ;;
15680   *) # Relative path.
15681     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15682     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15683 esac
15684
15685 # Do not use `cd foo && pwd` to compute absolute paths, because
15686 # the directories may not exist.
15687 case `pwd` in
15688 .) ac_abs_builddir="$ac_dir";;
15689 *)
15690   case "$ac_dir" in
15691   .) ac_abs_builddir=`pwd`;;
15692   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15693   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15694   esac;;
15695 esac
15696 case $ac_abs_builddir in
15697 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15698 *)
15699   case ${ac_top_builddir}. in
15700   .) ac_abs_top_builddir=$ac_abs_builddir;;
15701   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15702   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15703   esac;;
15704 esac
15705 case $ac_abs_builddir in
15706 .) ac_abs_srcdir=$ac_srcdir;;
15707 *)
15708   case $ac_srcdir in
15709   .) ac_abs_srcdir=$ac_abs_builddir;;
15710   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15711   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15712   esac;;
15713 esac
15714 case $ac_abs_builddir in
15715 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15716 *)
15717   case $ac_top_srcdir in
15718   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15719   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15720   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15721   esac;;
15722 esac
15723
15724
15725   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15726 echo "$as_me: executing $ac_dest commands" >&6;}
15727   case $ac_dest in
15728     default-1 )
15729     for ac_file in $CONFIG_FILES; do
15730       # Support "outfile[:infile[:infile...]]"
15731       case "$ac_file" in
15732         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15733       esac
15734       # PO directories have a Makefile.in generated from Makefile.in.in.
15735       case "$ac_file" in */Makefile.in)
15736         # Adjust a relative srcdir.
15737         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15738         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15739         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15740         # In autoconf-2.13 it is called $ac_given_srcdir.
15741         # In autoconf-2.50 it is called $srcdir.
15742         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15743         case "$ac_given_srcdir" in
15744           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15745           /*) top_srcdir="$ac_given_srcdir" ;;
15746           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15747         esac
15748         # Treat a directory as a PO directory if and only if it has a
15749         # POTFILES.in file. This allows packages to have multiple PO
15750         # directories under different names or in different locations.
15751         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15752           rm -f "$ac_dir/POTFILES"
15753           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15754           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15755           POMAKEFILEDEPS="POTFILES.in"
15756           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15757           # on $ac_dir but don't depend on user-specified configuration
15758           # parameters.
15759           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15760             # The LINGUAS file contains the set of available languages.
15761             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15762               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15763             fi
15764             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15765             # Hide the ALL_LINGUAS assigment from automake.
15766             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15767             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15768           else
15769             # The set of available languages was given in configure.in.
15770             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15771           fi
15772           # Compute POFILES
15773           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15774           # Compute UPDATEPOFILES
15775           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15776           # Compute DUMMYPOFILES
15777           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15778           # Compute GMOFILES
15779           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15780           case "$ac_given_srcdir" in
15781             .) srcdirpre= ;;
15782             *) srcdirpre='$(srcdir)/' ;;
15783           esac
15784           POFILES=
15785           UPDATEPOFILES=
15786           DUMMYPOFILES=
15787           GMOFILES=
15788           for lang in $ALL_LINGUAS; do
15789             POFILES="$POFILES $srcdirpre$lang.po"
15790             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15791             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15792             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15793           done
15794           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15795           # environment variable.
15796           INST_LINGUAS=
15797           if test -n "$ALL_LINGUAS"; then
15798             for presentlang in $ALL_LINGUAS; do
15799               useit=no
15800               if test "%UNSET%" != "$LINGUAS"; then
15801                 desiredlanguages="$LINGUAS"
15802               else
15803                 desiredlanguages="$ALL_LINGUAS"
15804               fi
15805               for desiredlang in $desiredlanguages; do
15806                 # Use the presentlang catalog if desiredlang is
15807                 #   a. equal to presentlang, or
15808                 #   b. a variant of presentlang (because in this case,
15809                 #      presentlang can be used as a fallback for messages
15810                 #      which are not translated in the desiredlang catalog).
15811                 case "$desiredlang" in
15812                   "$presentlang"*) useit=yes;;
15813                 esac
15814               done
15815               if test $useit = yes; then
15816                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15817               fi
15818             done
15819           fi
15820           CATALOGS=
15821           if test -n "$INST_LINGUAS"; then
15822             for lang in $INST_LINGUAS; do
15823               CATALOGS="$CATALOGS $lang.gmo"
15824             done
15825           fi
15826           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15827           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15828         fi
15829         ;;
15830       esac
15831     done ;;
15832     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15833   # Strip MF so we end up with the name of the file.
15834   mf=`echo "$mf" | sed -e 's/:.*$//'`
15835   # Check whether this is an Automake generated Makefile or not.
15836   # We used to match only the files named `Makefile.in', but
15837   # some people rename them; so instead we look at the file content.
15838   # Grep'ing the first line is not enough: some people post-process
15839   # each Makefile.in and add a new line on top of each file to say so.
15840   # So let's grep whole file.
15841   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15842     dirpart=`(dirname "$mf") 2>/dev/null ||
15843 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15844          X"$mf" : 'X\(//\)[^/]' \| \
15845          X"$mf" : 'X\(//\)$' \| \
15846          X"$mf" : 'X\(/\)' \| \
15847          .     : '\(.\)' 2>/dev/null ||
15848 echo X"$mf" |
15849     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15850           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15851           /^X\(\/\/\)$/{ s//\1/; q; }
15852           /^X\(\/\).*/{ s//\1/; q; }
15853           s/.*/./; q'`
15854   else
15855     continue
15856   fi
15857   # Extract the definition of DEPDIR, am__include, and am__quote
15858   # from the Makefile without running `make'.
15859   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15860   test -z "$DEPDIR" && continue
15861   am__include=`sed -n 's/^am__include = //p' < "$mf"`
15862   test -z "am__include" && continue
15863   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15864   # When using ansi2knr, U may be empty or an underscore; expand it
15865   U=`sed -n 's/^U = //p' < "$mf"`
15866   # Find all dependency output files, they are included files with
15867   # $(DEPDIR) in their names.  We invoke sed twice because it is the
15868   # simplest approach to changing $(DEPDIR) to its actual value in the
15869   # expansion.
15870   for file in `sed -n "
15871     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15872        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15873     # Make sure the directory exists.
15874     test -f "$dirpart/$file" && continue
15875     fdir=`(dirname "$file") 2>/dev/null ||
15876 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15877          X"$file" : 'X\(//\)[^/]' \| \
15878          X"$file" : 'X\(//\)$' \| \
15879          X"$file" : 'X\(/\)' \| \
15880          .     : '\(.\)' 2>/dev/null ||
15881 echo X"$file" |
15882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15883           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15884           /^X\(\/\/\)$/{ s//\1/; q; }
15885           /^X\(\/\).*/{ s//\1/; q; }
15886           s/.*/./; q'`
15887     { if $as_mkdir_p; then
15888     mkdir -p $dirpart/$fdir
15889   else
15890     as_dir=$dirpart/$fdir
15891     as_dirs=
15892     while test ! -d "$as_dir"; do
15893       as_dirs="$as_dir $as_dirs"
15894       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15896          X"$as_dir" : 'X\(//\)[^/]' \| \
15897          X"$as_dir" : 'X\(//\)$' \| \
15898          X"$as_dir" : 'X\(/\)' \| \
15899          .     : '\(.\)' 2>/dev/null ||
15900 echo X"$as_dir" |
15901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15902           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15903           /^X\(\/\/\)$/{ s//\1/; q; }
15904           /^X\(\/\).*/{ s//\1/; q; }
15905           s/.*/./; q'`
15906     done
15907     test ! -n "$as_dirs" || mkdir $as_dirs
15908   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15909 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15910    { (exit 1); exit 1; }; }; }
15911
15912     # echo "creating $dirpart/$file"
15913     echo '# dummy' > "$dirpart/$file"
15914   done
15915 done
15916  ;;
15917   esac
15918 done
15919 _ACEOF
15920
15921 cat >>$CONFIG_STATUS <<\_ACEOF
15922
15923 { (exit 0); exit 0; }
15924 _ACEOF
15925 chmod +x $CONFIG_STATUS
15926 ac_clean_files=$ac_clean_files_save
15927
15928
15929 # configure is writing to config.log, and then calls config.status.
15930 # config.status does its own redirection, appending to config.log.
15931 # Unfortunately, on DOS this fails, as config.log is still kept open
15932 # by configure, so config.status won't be able to write to it; its
15933 # output is simply discarded.  So we exec the FD to /dev/null,
15934 # effectively closing config.log, so it can be properly (re)opened and
15935 # appended to by config.status.  When coming back to configure, we
15936 # need to make the FD available again.
15937 if test "$no_create" != yes; then
15938   ac_cs_success=:
15939   ac_config_status_args=
15940   test "$silent" = yes &&
15941     ac_config_status_args="$ac_config_status_args --quiet"
15942   exec 5>/dev/null
15943   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15944   exec 5>>config.log
15945   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15946   # would make configure fail if this is the last instruction.
15947   $ac_cs_success || { (exit 1); exit 1; }
15948 fi
15949
15950